Skip to content

Instantly share code, notes, and snippets.

@armory-gists
Last active March 16, 2021 17:17
Show Gist options
  • Save armory-gists/5c104bc6602861862eab13169b67fbb5 to your computer and use it in GitHub Desktop.
Save armory-gists/5c104bc6602861862eab13169b67fbb5 to your computer and use it in GitHub Desktop.
SpinnakerService.yml file configured to deploy the pf4jStagePlugin pf4j-deploy-example.md
apiVersion: spinnaker.armory.io/v1alpha2
kind: SpinnakerService
metadata:
name: spinnaker
spec:
# spec.spinnakerConfig - This section is how to specify configuration spinnaker
spinnakerConfig:
# spec.spinnakerConfig.config - This section contains the contents of a deployment found in a halconfig .deploymentConfigurations[0]
config:
version: 2.24 # the version of Spinnaker to be deployed
security:
apiSecurity:
overrideBaseUrl: http://<ec2-instance-public-ip>:8084
uiSecurity:
overrideBaseUrl: http://<ec2-instance-public-ip>:9000
persistentStorage:
persistentStoreType: s3
s3:
bucket: <my-bucket>
rootFolder: front50
# spec.spinnakerConfig.profiles - This section contains the YAML of each service's profile
profiles:
deck:
# settings-local.js - contents of ~/.hal/default/profiles/settings-local.js
# Use the | YAML symbol to indicate a block-style multiline string
settings-local.js: |
window.spinnakerSettings.feature.kustomizeEnabled = true;
window.spinnakerSettings.feature.artifactsRewrite = true;
gate: # is the contents of ~/.hal/default/profiles/gate.yml
spinnaker:
extensibility:
deck-proxy: # you need this for plugins with a Deck component
enabled: true
plugins:
Armory.RandomWaitPlugin:
enabled: true
version: 1.1.17
repositories:
examplePluginsRepo:
url: https://raw.githubusercontent.com/spinnaker-plugin-examples/examplePluginRepository/master/plugins.json
orca: # is the contents of ~/.hal/default/profiles/orca.yml
spinnaker:
extensibility:
plugins:
Armory.RandomWaitPlugin:
enabled: true
version: 1.1.17
config:
defaultMaxWaitTime: 15
repositories:
examplePluginsRepo:
id: examplePluginsRepo
url: https://raw.githubusercontent.com/spinnaker-plugin-examples/examplePluginRepository/master/plugins.json
# spec.expose - This section defines how Spinnaker should be publicly exposed
# spec.expose - This section defines how Spinnaker should be publicly exposed
expose:
type: service # Kubernetes LoadBalancer type (service/ingress), note: only "service" is supported for now
service:
type: LoadBalancer
# annotations to be set on Kubernetes LoadBalancer type
# they will only apply to spin-gate, spin-gate-x509, or spin-deck
annotations:
service.beta.kubernetes.io/aws-load-balancer-backend-protocol: http
# uncomment the line below to provide an AWS SSL certificate to terminate SSL at the LoadBalancer
#service.beta.kubernetes.io/aws-load-balancer-ssl-cert: arn:aws:acm:us-west-2:9999999:certificate/abc-123-abc
# provide an override to the exposing KubernetesService
overrides:
deck:
publicPort: 9000
gate:
publicPort: 8084
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment