What To Expect

This guide should include:

  • How to give your Spinnaker instance a new domain name
  • SSL Termination at the ELB with Gate and Deck

Create a DNS Entry for your Load Balancer

Add a DNS Entry to your DNS management system. You should only need to add a DNS entry for the user-facing ELB which is what you use to currently access Spinnaker. It typically has a name such as the one below


Add a CNAME entry for the given ELB to create a simple name you will use to access your instance of Spinnaker, e.g. spinnaker.armory.io.

Update Spinnaker Configuration

Update the values for DECK_HOST and API_HOST in your environment file in the /opt/spinnaker/env directory.


SSL Termination at the ELB

For SSL, it can be beneficial to terminate SSL at the Elastic Load Balancer (ELB) whenever feasible. Amazon has the Key Management Service (KMS) for this purpose. If you need to handle certificate management at the application level, you might want to check out Netflix’s Lemur project.

Enabling HTTPS/SSL in Spinnaker

In order to enable SSL we’ll need to provide Gate (and thus Java) with certificates in a java keystore (JKS) or terminate at the ELB. This will ensure secure communication between your browser/clients and Spinnaker Deck & Gate

For the following example we’re going to create self-signed certificates although for production use you will want to have an official certificate authority (CA) sign your certificate.

You can eiter create a self signed cert, or import your own cert.

  • Creating a self-signed CA with java keystore
    apt-get install openjdk-7-jre-headless -y;
    keytool -genkey -keyalg RSA -alias server -keystore keystore.jks -storepass ${YOUR_KEYSTORE_PASSWORD} -validity 360 -keysize 2048
  • Import your own Certificate
    keytool -importkeystore -srckeystore server.p12 -srcstoretype pkcs12 -srcalias spinnaker -srcstorepass ${YOUR_KEY_PASSWORD} -destkeystore keystore.jks -deststoretype jks -destalias server -deststorepass ${YOUR_KEY_PASSWORD} -destkeypass ${YOUR_KEYSTORE_PASSWORD}

Place the resulting keystore.jks in /opt/spinnaker/config

In /opt/spinnaker/config/gate-local.yml add the following, making sure to replace the password with your own that you provided in the previous step:

    enabled: true
    keyStore: /opt/spinnaker/config/keystore.jks
    keyStorePassword: ${YOUR_KEYSTORE_PASSWORD}
    keyAlias: server

Update our API_HOST and DECK_HOST environment variables to now have https. Add the following into default.env or if your environment specific env file place it in there: ${CLOUD_STACK}.env:


Update your ELB to contain the following port mappings:


Now you can restart Armory Spinnaker by doing

service armory-spinnaker restart