简体   繁体   English

spinnaker支持针对多个Kubernetes集群吗?

[英]Will spinnaker support targeting multiple Kubernetes clusters?

We use a separate VPC per environment. 我们在每个环境中使用单独的VPC。 Does or will spinnaker support targeting different Kubernetes clusters? 针对不同Kubernetes集群的大三角帆支持还是将支持? Will adding environments ad-hoc be viable? ad-hoc添加环境是否可行?

Spinnaker supports multiple Kubernetes clusters, each is added as an 'account' in Spinnaker configuration. Spinnaker支持多个Kubernetes集群,每个集群都在Spinnaker配置中添加为“帐户”。 The configured accounts are presented as options at deployment time, and the Server Groups for each application are rolled up under the account they belong to. 配置的帐户在部署时显示为选项,每个应用程序的服务器组在其所属的帐户下汇总。

It is possible to change that configuration and refresh it at runtime, but it would involve editing the on-disk yaml file that backs the Clouddriver component of Spinnaker and triggering the /config-refresh endpoint. 可以更改该配置并在运行时刷新它,但它将涉及编辑支持Spinnaker的Clouddriver组件并触发/ config-refresh端点的磁盘上yaml文件。

You can use configuration similar to this. 您可以使用与此类似的配置。 Here I am adding 2 k8s account with context as k8s selector. 这里我添加2 k8s帐户与上下文作为k8s选择器。

  kubernetes:
    enabled: true
    accounts:
    - name: scratch-k8s-account
      requiredGroupMembership: []
      context: k8s-poc1.dev-domain.net
      namespaces: []
      omitNamespaces: []
      dockerRegistries:
      - accountName: poc-ecr
        namespaces: []
      kubeconfigFile: /home/ubuntu/.kops/config
    - name: dev-k8s-account
      requiredGroupMembership: []
      context: k8s-poc2.dev-domain.net
      namespaces: []
      omitNamespaces: []
      dockerRegistries:
      - accountName: poc-ecr
        namespaces: []
      kubeconfigFile: /home/ubuntu/.kops/config
    primaryAccount: scratch-k8s-account

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

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