[英]Traefik ingress controller on minikube: External IP pending
I am trying to deploy a Traefik Ingress controller in my minikube environment by following this :我正在尝试按照以下步骤在我的 minikube 环境中部署 Traefik Ingress controller :
helm install stable/traefik --name-template traefik --set dashboard.enabled=true,dashboard.domain=dashboard.traefik,rbac.enabled=true --namespace kube-system
Even after half an hour I still see that External IP is pending:即使半小时后,我仍然看到 External IP 待定:
pascals@pascals:~$ kubectl get svc -l app=traefik -n kube-system
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
traefik LoadBalancer 10.96.172.128 <pending> 443:30812/TCP,80:31078/TCP 20m
traefik-dashboard ClusterIP 10.96.56.105 <none> 80/TCP 20m
Ideally I would like to reach http://dashboard.traefik
but I am not able to do so.理想情况下,我想达到http://dashboard.traefik
但我无法做到。
I tried to assign an External Ip using the kubectl patch
Api:我尝试使用kubectl patch
Api 分配外部 Ip:
kubectl patch svc traefik -n kube-system -p '{"spec":{"externalIPs":["192.168.99.107"]}}'
where, 192.168.99.107 is the minikube ip.其中,192.168.99.107 是 minikube ip。 This however still did not solve my problem.然而,这仍然没有解决我的问题。
Appreciate any nudge in the right direction!赞赏任何朝着正确方向的推动!
The external IP is assigned by the ServiceController if any cloud provider
used in the cluster, usually in managed clusters.如果集群中使用cloud provider
(通常在托管集群中),则外部 IP 由 ServiceController 分配。
In a minikube
cluster, LoadBalance-typed Service will never have an external IP.在minikube
集群中,LoadBalance 类型的服务永远不会有外部 IP。 You can access Services through minikubeip:nodeport
, or running minikube service
.您可以通过minikubeip:nodeport
或运行minikube service
。 For the Service traefik-dashboard
, it should be a NodePort-typed Service first.对于服务traefik-dashboard
,它首先应该是一个 NodePort 类型的服务。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.