是否有用于在 AWS 中设置自动创建的 LB 名称的 k8s 注释

Is there an k8s annotation for setting the name of an auto-created LB in AWS

对于 AWS 云,我可以创建一个包含

的 Kubernetes ingress yaml
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
  annotations:
    alb.ingress.kubernetes.io/actions.ssl-redirect: '{"Type": "redirect", "RedirectConfig":
      { "Protocol": "HTTPS", "Port": "443", "StatusCode": "HTTP_301"}}'
    alb.ingress.kubernetes.io/certificate-arn: <<<my-cert-arn>>>
    alb.ingress.kubernetes.io/healthcheck-path: /
    alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 80}, {"HTTPS":443}]'
    alb.ingress.kubernetes.io/scheme: internet-facing
    alb.ingress.kubernetes.io/shield-advanced-protection: "true"
    alb.ingress.kubernetes.io/ssl-policy: ELBSecurityPolicy-TLS-1-2-2017-01
    alb.ingress.kubernetes.io/tags: environment=prod,client=templar-order,name=templar-prod-app
    alb.ingress.kubernetes.io/target-type: ip

tags 出现在 AWS 控制台中,但未设置负载均衡器名称。

read the docs。我可以使用什么注释来设置负载均衡器名称,这里:

很遗憾,此功能尚不支持,因此您无法使用注释更改 lb 名称。

正在生成名称here:

    func (gen *NameGenerator) NameLB(namespace string, ingressName string) string {
    .....
    }

但是 feature request github 看起来很有希望。您可能希望关注该案例以获取更新。