This repository contains example Kustomize resources to configure and deploy Armory Continuous Deployment to your Kubernetes cluster using the Armory Operator.
The example configurations provided in this repository serve as a starting point for configuring Armory Continuous Deployment. You may need to modify the contents for the target environment to work properly. These examples are not exhaustive and don't showcase all available combinations of settings. It's possible that not all configurations work with all versions of Armory Continuous Delivery.
See our System Requirements page for more details.
This repository makes use of Kustomize Components to make configuration simpler for evaluation purposes.
There are two options for persisting cluster metadata. For instructions on configuring each, consult the associated READMEs.
This repo provides a one-click deploy.sh
script that deploys the Armory
Operator in cluster
mode and then Armory Continuous Deployment. This is useful
for a proof of concept, but you should not use this script in a production
environment.
Clone this repository and run ./deploy.sh
.
The script does the following:
- Deploys the Armory Operator to the
spinnaker-operator
namespace. - Deploys a basic Armory Continuous Deployment instance with some default
integrations to the
spinnaker
namespace.
The script also provide variables based on customize usage, you can set those variables as environment before execute the script
Variable
-
SPIN_FLAVOR: Distribution of spinnaker operator to deploy (default: armory)
armory
oss
-
SPIN_OP_DEPLOY : Deploy Operator or not. (default: 1)
- Set to
0
to skip deploy Operator - Set to
1
to deploy the operator.When deploying, if we already one running operator in our cluster with the same namespace. It will delete the old one automatically
- Set to
-
SPIN_OP_VERSION : Define the version of operator we want to deploy (default: latest), check https://github.com/armory/spinnaker-operator/releases for the list release version
-
SPIN_OP_NS: Specify the namespace of operator (default: spinnaker-operator)
-
SPIN_OP_MODE: Distribution of Spinnaker operator mode to use (default: cluster)
basic
cluster
Currently, this script isn't support for
helm
mode. If you want to deploy operator with helm, please deploy it manually and set variableSPIN_OP_DEPLOY
-
SPIN_WATCH: Watch/Wait for spinnaker to come up or not (default: 1)
- Set to
0
to skip - Set to
1
to watch/wait
- Set to
-
You can use oss recipes to deploy Spinnaker instead of Armory Continuous Delivery.
# Delete default recipe rm kustomization.yml # Create symlink for oss recipe ln -s ./recipes/kustomization-oss-minimum.yml kustomization.yml
When you use an oss recipe, it does the following:
- Modifies relevant patch files, replacing
apiVersion: spinnaker.armory.io/v1alpha2
withapiVersion: spinnaker.io/v1alpha2
. - Deploys a basic of Spinnaker to the
spinnaker
namespace.
- Modifies relevant patch files, replacing
-
Execute
deploy.sh
script to deploy Spinnaker Operator, with latest version, and Spinnaker
For adding remote Kubernetes clusters to Armory Continuous Deployment, you can
use the helper script secrets/create-kubeconfig.sh
to create a Kubernetes
service account (with cluster admin role) and its corresponding kubeconfig
file for Armory Continuous Deployment to use.