Add Kubernetes annotations on Spinnaker internal component deployments
Asked Answered
D

1

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.

Densimeter answered 10/5, 2018 at 21:18 Comment(1)
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.Elizbeth
M
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
Mendicity answered 1/8, 2018 at 0:15 Comment(1)
Is it possible to add the annotation on all services, without having to do it for all 7 ones, individually?Lowboy

© 2022 - 2024 — McMap. All rights reserved.