【问题标题】:How to use alb-ingress-controller in k8s cluster which installed by kops on AWS?如何在 kops 在 AWS 上安装的 k8s 集群中使用 alb-ingress-controller?
【发布时间】:2018-05-26 02:18:48
【问题描述】:

想在 AWS 上使用 alb-ingress-controller

kops已经安装了k8s集群。

按照本指南使用alb-ingress-controller:

https://github.com/coreos/alb-ingress-controller/blob/master/docs/walkthrough.md

运行$ kubectl apply -f echoserver-ingress.yaml后检查日志时,

$ kubectl logs -n kube-system \
$(kubectl get po -n kube-system | \
egrep -o alb-ingress[a-zA-Z0-9-]+) | \
egrep -o '\[ALB-INGRESS.*$' | \
grep 'echoserver\/echoserver'

[ALB-INGRESS] [echoserver/echoserver] [ERROR]: Error parsing annotations: Retrieval of subnets failed to resolve 2 qualified subnets. Subnets must contain the tag:kubernetes.io/cluster/cluster01.orange-test.dev.drecom.jp tag with a value of shared and the tag:kubernetes.io/role/alb-ingress tag signifying it should be used for ALBs Additionally, their must be at least 2 subnets with unique availability zones as required by ALBs. Either tag subnets to meet this requirement or use the subnets annotation on the ingress resource to explicitly call out what subnets to use for ALB creation. The subnets that did resolve were []. (cache hit)

我在每个唯一可用区为一个特殊 VPC 设置了两个子网。并将集群名称的值设置为shared,添加了kubernetes.io/role/alb-ingress。为什么不能通过?

【问题讨论】:

    标签: amazon-web-services load-balancing kops


    【解决方案1】:

    您是否将标签添加到您的子网

    在演练中它说:

    ...

    1. 向应部署 ALB 的子网添加标签。

    ...

    【讨论】:

      猜你喜欢
      • 2018-05-22
      • 1970-01-01
      • 2021-03-25
      • 2021-05-29
      • 2020-07-03
      • 2022-11-19
      • 2019-04-04
      • 1970-01-01
      • 2022-08-18
      相关资源
      最近更新 更多