You are viewing version 2.21 of the documentation, which is no longer maintained. For up-to-date documentation, see the latest version.

Armory Halyard

CLI tool for configuring, deploying, and managing Spinnaker

Armory Halyard is a versatile command line interface (CLI) to configure and deploy Spinnaker. It is made of a CLI that connects to a daemon.

Running in Docker

Running Armory Halyard in Docker is convenient and portable. The daemon will need access to files and environment variables, such as:

  • Halyard’s main configuration directory - make sure the daemon has write access to that directory
  • kubeconfig file for Spinnaker’s installation cluster (usually ~/.kube/config)
  • AWS profiles (usually ~/.aws) if access to AWS is needed
  • Any other configuration files that reside on the Docker host

The Docker container expects to use heptio-authenticator-aws instead of aws-iam-authenticator

Starting Daemon

You can start Armory Halyard in a Docker container with the following command:

docker run --name armory-halyard --rm \
    -v ~/.hal:/home/spinnaker/.hal \
    -v ~/.kube:/home/spinnaker/.kube \
    -v ~/.aws:/home/spinnaker/.aws \

Note: If you’re installing to Google Cloud, you’ll want to change the “.aws” mapping above to your Google credentials json file, and then you’ll need to set the environment variable GOOGLE_APPLICATION_CREDENTIALS within the shell so the installer can find it.

Our installer currently expects to find your kubeconfig named config in the .kube directory you map below. If you’ve named your config something else, you’ll need to rename or symlink the file accordingly.

Running Halyard Commands

Once Armory Halyard is running, you can interact with it by opening a separate Terminal and running:

docker exec -it armory-halyard bash

From there, you can issue all your halyard commands.

Run in Kubernetes

Armory Halyard can also be installed as a Kubernetes StatefulSet. The advantage of running Halyard in the same cluster as Spinnaker is to get the same network access as Spinnaker itself in some locked down environments.

Installing Daemon

You can install Armory Halyard with the following manifest:

apiVersion: v1
kind: PersistentVolumeClaim
  name: halconfig-pvc
    app: halyard
  namespace: halyard
  - ReadWriteOnce
      storage: 10Gi

apiVersion: apps/v1
kind: StatefulSet
  name: halyard
  namespace: halyard
  replicas: 1
      app: halyard
  serviceName: halyard
        app: halyard
      - name: halyard
        - name: halconfig
          mountPath: /home/spinnaker/
        fsGroup: 65533
      - name: halconfig
          claimName: halconfig-pvc

Copy and paste the manifest into a file named halyard.yml, then deploy the above manifest (halyard.yml) into Kubernetes with the following command:

kubectl apply -f halyard.yml

Note: This installs Halyard into the namespace ‘halyard’

Running Halyard Commands

Once the StatefulSet is ready - you can interact with it by running:

kubectl -n halyard exec -ti statefulset/halyard bash