简体   繁体   English

AWS EKS 负载均衡器服务卡在外部 IP [待定]

[英]AWS EKS load balancer service stuck at external-ip[pending]

I am new to aws.我是aws的新手。

I am tryin to deploy my application to aws eks, everything is created well, except for my caddy server service, it stuck at pending status when it tries to get external-ip.我正在尝试将我的应用程序部署到 aws eks,一切都创建得很好,除了我的 caddy 服务器服务,它在尝试获取外部 ip 时停留在挂起状态。

When I describe the service this is the output:当我描述服务时,这是输出:

Name:                     caddy
Namespace:                default
Labels:                   app=caddy
Annotations:              service.beta.kubernetes.io/aws-load-balancer-nlb-target-type: instance
                          service.beta.kubernetes.io/aws-load-balancer-scheme: internet-facing
                          service.beta.kubernetes.io/aws-load-balancer-type: external
Selector:                 app=caddy
Type:                     LoadBalancer
IP Family Policy:         SingleStack
IP Families:              IPv4
IP:                       10.100.4.149
IPs:                      10.100.4.149
Port:                     http  80/TCP
TargetPort:               80/TCP
NodePort:                 http  31064/TCP
Endpoints:                192.168.26.17:80
Port:                     https  443/TCP
TargetPort:               443/TCP
NodePort:                 https  30707/TCP
Endpoints:                192.168.26.17:443
Session Affinity:         None
External Traffic Policy:  Cluster
Events:
  Type     Reason                Age   From                Message
  ----     ------                ----  ----                -------
  Normal   EnsuringLoadBalancer  16m   service-controller  Ensuring load balancer
  Warning  FailedBuildModel      15m   service             Failed build model due to WebIdentityErr: failed to retrieve credentials
caused by: InvalidIdentityToken: Incorrect token audience
           status code: 400, request id: dd76289e-ca16-48e5-8985-3a4fc1b64f43
  Warning  FailedBuildModel  7m49s  service  Failed build model due to WebIdentityErr: failed to retrieve credentials
caused by: InvalidIdentityToken: Incorrect token audience
  status code: 400, request id: 62ed516f-c505-4bc8-979f-74edc449217e

I discovered that the problem was coming from the serviceAccount I have created, there was aa typo in the OIDC provider URI.我发现问题出在我创建的 serviceAccount,OIDC 提供者 URI 中有一个拼写错误。

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

相关问题 AWS EKS 服务账户认证 - AWS EKS service account authentication EKS:同步负载均衡器时出错:无法确保负载均衡器:例如找到多个标记的安全组 - EKS: Error syncing load balancer: failed to ensure load balancer: Multiple tagged security groups found for instance 有没有办法用 aws 降低负载均衡器的成本? - Is there a way to reduce load balancer cost with aws? 如何使用服务 label 连接到负载均衡器? - How to connect to the load balancer using the service label? terraform output Google Kubernetes 集群入口负载均衡器 Z957B527BCFBAD3E380F58ZD2068 - terraform output Google Kubernetes cluster inggress load balancer ip AWS CDK Python 使用默认操作创建 App Load Balancer Listner - AWS CDK Python Create App Load Balancer Listner with default action AWS Elastic Beanstalk 负载均衡器未显示 SSL 证书 - AWS Elastic Beanstalk load balancer not showing SSL certificate GCP - 我们可以为负载均衡器/CDN 创建服务帐户吗? - GCP - can we create service account for Load Balancer / CDN? 如何为 AWS 负载均衡器配置 Google Cloud DNS - How to configure Google Cloud DNS for an AWS Load balancer 从 Ionic 移动应用程序到 aws 负载均衡器的 SSl/TLS 不工作 - SSl/TLS from Ionic mobile App to aws load balancer not working
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM