armory-spinnaker-operator

by Armory

Helm chartv1.8.11App 1.8.11

Provides easy installation of the Armory Spinnaker Operator

About this chart

Armory Spinnaker Operator on Kubernetes Helm Chart

Prerequisites

  • Kubernetes 1.14+

Chart Details

This chart does the following:

  • Deploy Armory Operator
  • Deploy Armory Spinnaker (Optional)

Requirements

  • A running Kubernetes cluster
  • Kubectl installed and configured to use the cluster
  • Helm installed and configured to use the cluster

Install Armory Operator

Add Armory Helm Repository

Add the Armory charts repo to the Helm client:

$ helm repo add armory https://armory.jfrog.io/artifactory/charts/
$ helm repo update

To install the Armory Operator Chart into your Kubernetes cluster:

$ helm install armory-spinnaker-operator --namespace spinnaker-operator --wait armory/armory-spinnaker-operator

Note: Use the --wait flag for initial creation because the spinnaker creation takes longer than the default 300 seconds

To upgrade the Armory Operator Chart in your Kubernetes cluster:

$ helm upgrade armory-spinnaker-operator --namespace spinnaker-operator armory/armory-spinnaker-operator

To uninstall the release deployment:

$ helm delete armory-spinnaker-operator --namespace spinnaker-operator

Add Spinnaker Service

The Armory Operator chart provides the ability to deploy a Spinnaker instance using the CRD SpinnakerService. View the Spinnaker Operator Reference for configuration details.

Once you have your Spinnaker Service configured, upgrade your Helm chart as follows:

$ helm upgrade armory-spinnaker-operator --namespace spinnaker-operator --wait \
        --set spinnakerService.enabled=true \       
        -f spinnakerService.yaml \
        armory/armory-spinnaker-operator

Configuration

The following table lists the configurable parameters of the Armory Operator chart and their default values.

Armory Operator

ParameterDescriptionDefault
spinnakerOperator.rbac.createCreate RBAC resourcestrue
spinnakerOperator.imagePullSecretsReference to one or more secrets to be used when pulling images[]
spinnakerOperator.enabledCreate Spinnaker Operatortrue
spinnakerOperator.serviceAccount.createIf true armory operator will create Service Accounttrue
spinnakerOperator.serviceAccount.nameOperator serviceAccount namespinnaker-operator
spinnakerOperator.customConfiguration.enabledCreates ConfigMap with Custom halyard configuration https://docs.armory.io/spinnaker/operator/#custom-halyard-configurationfalse
spinnakerOperator.customConfiguration.nameName of ConfigMap with Custom halyard configurationhalyard-custom-config
spinnakerOperator.customConfiguration.dataContent of ConfigMap with Custom halyard configuration``
spinnakerOperator.operator.image.repositoryRepository for armory operator imageindex.docker.io/armory/armory-operator
spinnakerOperator.operator.image.tagTag for armory operator imagedev
spinnakerOperator.operator.image.pullPolicyPull policy for armory operator imageIfNotPresent
spinnakerOperator.operator.resourcesResource limits for armory operator{}
spinnakerOperator.operator.volumeMountsVolume mounts for the armory operator service[]
spinnakerOperator.halyard.image.repositoryRepository for halyard operator imageindex.docker.io/armory/halyard-armory
spinnakerOperator.halyard.image.tagTag for halyard operator imageoperator-0.4.x
spinnakerOperator.halyard.image.pullPolicyPull policy for armory operator imageIfNotPresent
spinnakerOperator.halyard.resourcesResource limits for halyard operator service{}
spinnakerOperator.halyard.volumeMountsVolume mounts for the halyard service[]
spinnakerOperator.podLabelsLabels to add to the operator pod{}
spinnakerOperator.podAnnotationsAnnotations to add to the operator pod{}
spinnakerOperator.nodeSelectorArmory operator node selector https://kubernetes.io/docs/user-guide/node-selection/{}
spinnakerOperator.tolerationsTolerations for use with node taints https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/[]
spinnakerOperator.affinityAssign custom affinity rules to the armory operator https://kubernetes.io/docs/concepts/configuration/assign-pod-node/{}
spinnakerOperator.securityContextSecurityContext for armory operator{}
spinnakerOperator.volumesVolumes for the armory operator service[]

Armory Spinnaker Service

ParameterDescriptionDefault
spinnakerService.enabledCreate Spinnaker Servicefalse
spinnakerService.metadataStandard object’s metadata. https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#metadata``
spinnakerService.spinnakerConfigThis section is how to specify configuration spinnaker https://docs.armory.io/operator_reference/operator-config/#specspinnakerconfig``
spinnakerService.exposeThis section defines how Spinnaker should be publicly exposed https://docs.armory.io/operator_reference/operator-config/#specexpose``
spinnakerService.validationThis section defines configuration for Operator validation https://docs.armory.io/operator_reference/operator-config/#specvalidation``
spinnakerService.kustomizePatching of generated service or deployment by Spinnaker service``

Specify each parameter using the --set key=value argument to helm install.

Alternatively, provide a YAML file that specifies the values for the parameters while installing the chart. For example,

$ helm install armory-spinnaker-operator --namespace "spinnaker-operator" \
     -f values.yaml --wait armory/armory-spinnaker-operator

Tip: You can use the default values.yaml

Deploy armory-spinnaker-operator with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has armory-spinnaker-operator on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartarmory-spinnaker-operator is pinned at v1.8.11 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply