To productionalize a Spinnaker installation for high availability,
one of the recommendations is to use an external Redis store, such as AWS ElasticCache. This guide will go over how to migrate a Kubernetes installation of Spinnaker to an AWS ElasticCache Redis instance using Halyard.
All config files (with the proper directory structure) used in this guide can be found in this
this repo: ysawa0/spinnaker-elasticcache-redis
Create the ElastiCache instance
Cluster Mode unchecked.
Node type will depend on your needs and budget, here we chose a
Engine Version choose
Configure Halyard and update Spinnaker
After the instance is created, copy the
Primary Endpoint for the cluster.
If you want to update all Spinnaker services at once, place this snippet into
~/.hal/default/service-settings/redis.yml, and replace
$REDIS_PRIMARY_ENDPOINT with your endpoint.
1 2 overrideBaseUrl: redis://$REDIS_PRIMARY_ENDPOINT skipLifeCycleManagement: true
To update each Spinnaker service at a time, place the below into
Where $SERVICE would be orca, clouddriver, gate, etc.
1 services.redis.baseUrl: redis://$REDIS_PRIMARY_ENDPOINT
Lastly, after updating the base URLs, place this into
1 2 3 redis: configuration: secure: true
Now update Spinnaker by running
hal deploy apply.
After you confirm that everything is working as expected, it’s time to disable the spin-redis service.
~/.hal/default/service-settings/redis.yml by inserting
1 2 3 overrideBaseUrl: redis://$REDIS_PRIMARY_ENDPOINT skipLifeCycleManagement: true enabled: false
And scale down the Redis Deployment to 0 replicas in Kubernetes.
1 kubectl scale deploy spin-redis -n spinnaker --replicas=0
Now sit back, relax and enjoy having to monitor one less data store.