【问题标题】:How to configure AWS tags for AWS NLB/ALB using the deployment of the ingress istio gateway?如何使用 ingress istio 网关的部署为 AWS NLB/ALB 配置 AWS 标签?
【发布时间】:2021-01-06 22:25:14
【问题描述】:

如何使用 ingress istio 网关的部署为 AWS NLB/ALB 配置 AWS 标签?

例如当 AWS NLB 在 aws 中列出的默认标签下方创建时:

kubernetes.io/service-name: istio-system/istio-ingressgateway
kubernetes.io/cluster/<kubernetes-cluster-name>: owned

是否可以在 AWS 中将用户定义的标签添加到此 NLB?

【问题讨论】:

    标签: amazon-web-services istio


    【解决方案1】:

    找到了一种在 Istio 入口网关预置的 AWS(以及为负载均衡器创建的安全组)中向 NLB/ALB/ELB/ 添加标签的方法:

    使用serviceAnnotations

    service.beta.kubernetes.io/aws-load-balancer-additional-resource-tags: stringMap

    例如:

    service.beta.kubernetes.io/aws-load-balancer-additional-resource-tags: "owner=gvh-ram,environment=dev,type=istio-gateway"
    

    从以下对 Kubernetes 代码的代码更改开始支持此功能: https://github.com/kubernetes/cloud-provider-aws/commit/d9e60b53c67297c1667dbe0ab58a9bf65c513395

    https://github.com/kubernetes/cloud-provider-aws/commit/f336a8894b2e2fcf9a7cd5176748ef4de29aed0f

    服务注解请参考:https://kubernetes-sigs.github.io/aws-load-balancer-controller/v2.1/guide/service/annotations/

    对于其他云提供商,请参阅:https://v1-18.docs.kubernetes.io/docs/concepts/cluster-administration/cloud-providers/

    【讨论】:

      猜你喜欢
      • 2019-12-30
      • 2019-06-28
      • 1970-01-01
      • 2023-03-12
      • 2019-01-22
      • 2020-06-20
      • 2019-05-31
      • 2020-10-05
      • 2021-05-29
      相关资源
      最近更新 更多