Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add Kubernetes annotations on Spinnaker internal component deployments

We're using Kubernetes 1.9 as our cloud provider for Spinnaker v1.6.

In this mode, halyard deploys all of the Spinnaker components - orca, rosco, igor, etc. - as Kubernetes deployments in the spinnaker namespace.

We want to add custom Kubernetes annotations to these specific Spinnaker pods owing to the way our logging solution for containers is defined.

While we can edit these pods by hand, I was wondering if there was a way to configure Halyard to attach custom annotations on all the pods it creates.

like image 388
Akshat Mahajan Avatar asked May 10 '18 21:05

Akshat Mahajan


Video Answer


1 Answers

While its not documented here, it does look like there is a podAnnations option.

I was able to add the file ~/.hal/default/service-settings/front50.yml with the following config to get kube2iam annotations on the front50 pods.

kubernetes:
  podAnnotations:
    iam.amazonaws.com/role: myawsrole
like image 196
Stephen Garlick Avatar answered Sep 24 '22 07:09

Stephen Garlick