Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amazon web services 如何在AWS上由kops安装的k8s集群中使用alb入口控制器?_Amazon Web Services_Load Balancing_Kops - Fatal编程技术网

Amazon web services 如何在AWS上由kops安装的k8s集群中使用alb入口控制器?

Amazon web services 如何在AWS上由kops安装的k8s集群中使用alb入口控制器?,amazon-web-services,load-balancing,kops,Amazon Web Services,Load Balancing,Kops,想要在AWS上使用alb入口控制器 已通过kops安装了k8s群集 遵循本指南使用alb入口控制器: 运行后检查日志时,$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 'ech

想要在AWS上使用alb入口控制器

已通过
kops
安装了k8s群集

遵循本指南使用alb入口控制器:

运行后检查日志时,
$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)

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

您是否向子网添加了标记

在演练中,它说:

  • 向应部署ALB的子网添加标记