Skip to content

Instantly share code, notes, and snippets.

@andreasevers
Last active February 19, 2018 17:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreasevers/166a247d3f148a509d692f6fd72b7ad3 to your computer and use it in GitHub Desktop.
Save andreasevers/166a247d3f148a509d692f6fd72b7ad3 to your computer and use it in GitHub Desktop.
Demo Spinnaker environment on GKE

Possible issues with halyard deployment might require you to help it along with some manual pod and rs management:

Sometimes when deployments fail, new deployments fail due to insufficient memory.
In this case pods get Evicted continuously, and need cleanup:
kubectl get pods -n spinnaker | grep Evicted | awk '{print $1}' | xargs kubectl delete pod -n spinnaker

Find all old (in this example old is v008) pods & rs which haven't scaled down to 0 yet, and scale them down:
kubectl get rs -n spinnaker | grep v008 | awk '{print $1}' | xargs echo
kubectl get rs -n spinnaker | grep v008 | awk '{print $1}' | xargs kubectl scale rs --replicas=0 -n spinnaker

Updating halyard only works through Google's Cloud Shell because of the JWorks user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment