我在AWS上搭建了一个两个节点的集群,并使用helm安装了traefik。我发现服务的外部IP一直处于挂起状态。查看了几个来源,但没有找到解决问题的方法。感谢任何帮助。
helm install stable/traefik
ubuntu@ip-172-31-34-78:~$ kubectl get pods -n default
NAME READY STATUS RESTARTS AGE
unhinged-prawn-traefik-67b67f55f4-tnz5w 1/1 Running 0 18m
ubuntu@ip-172-31-34-78:~$ kubectl get services -n default
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 55m
unhinged-prawn-traefik LoadBalancer 10.102.38.210 <pending> 80:30680/TCP,443:32404/TCP 18m
ubuntu@ip-172-31-34-78:~$ kubectl describe service unhinged-prawn-traefik
Name: unhinged-prawn-traefik
Namespace: default
Labels: app=traefik
chart=traefik-1.52.6
heritage=Tiller
release=unhinged-prawn
Annotations: <none>
Selector: app=traefik,release=unhinged-prawn
Type: LoadBalancer
IP: 10.102.38.210
Port: http 80/TCP
TargetPort: http/TCP
NodePort: http 30680/TCP
Endpoints: 10.32.0.6:80
Port: https 443/TCP
TargetPort: httpn/TCP
NodePort: https 32404/TCP
Endpoints: 10.32.0.6:8880
Session Affinity: None
External Traffic Policy: Cluster
Events: <none>
ubuntu@ip-172-31-34-78:~$ kubectl get svc unhinged-prawn-traefik --namespace default -w
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
unhinged-prawn-traefik LoadBalancer 10.102.38.210 <pending> 80:30680/TCP,443:32404/TCP 24m