<p>We're using <a href="https://www.spinnaker.io/reference/providers/kubernetes/" rel="noreferrer">Kubernetes 1.9</a> as our cloud provider for Spinnaker v1.6. </p>

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

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

<p>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. </p>

<p>While its not documented <a href="https://www.spinnaker.io/reference/halyard/custom/#kubernetes" rel="noreferrer">here</a>, it does look like there is a <a href="https://github.com/spinnaker/halyard/blob/master/halyard-deploy/src/main/java/com/netflix/spinnaker/halyard/deploy/spinnaker/v1/service/KubernetesSettings.java#L32" rel="noreferrer">podAnnations option</a>.</p>

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

<pre><code>kubernetes:
  podAnnotations:
    iam.amazonaws.com/role: myawsrole
</code></pre>
