5

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.

Akshat Mahajan
  • 9,543
  • 4
  • 35
  • 44
  • I'm also looking for a way to do this. We use Kube2iam to give pods specific IAM roles. Without an annotation, pods get the default role which is "deny all". This makes standing up Spinnaker difficult. – Michael Andrews May 17 '18 at 13:32

1 Answers1

6

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
Stephen Rauch
  • 47,830
  • 31
  • 106
  • 135