简体   繁体   English

在Spinnaker内部组件部署中添加Kubernetes注释

[英]Add Kubernetes annotations on Spinnaker internal component deployments

We're using Kubernetes 1.9 as our cloud provider for Spinnaker v1.6. 我们使用Kubernetes 1.9作为Spinnaker v1.6的云提供商。

In this mode, halyard deploys all of the Spinnaker components - orca , rosco , igor , etc. - as Kubernetes deployments in the spinnaker namespace. 在这种模式下, halyard部署所有的三角帆组成部分- orcaroscoigor等-作为Kubernetes部署spinnaker命名空间。

We want to add custom Kubernetes annotations to these specific Spinnaker pods owing to the way our logging solution for containers is defined. 我们希望为这些特定的Spinnaker pod添加自定义Kubernetes注释,因为我们定义了容器的日志记录解决方案。

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. 虽然我们可以手动编辑这些pod,但我想知道是否有办法配置Halyard在其创建的所有pod上附加自定义注释。

While its not documented here , it does look like there is a podAnnations option . 虽然这里没有记录,但看起来确实有podAnnations选项

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. 我能够使用以下配置添加文件~/.hal/default/service-settings/front50.yml以获取front50 pod上的kube2iam注释。

kubernetes:
  podAnnotations:
    iam.amazonaws.com/role: myawsrole

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM