Jenkins服务始终在minikube上待定 [英] Jenkins service always pending on minikube
问题描述
我在本地安装了minikube
.
控制面板为192.168.99.100:30000
Dashboard is 192.168.99.100:30000
我通过掌舵安装了詹金斯:
I installed Jenkins by helm:
$ helm install stable/jenkins
然后该服务始终处于待处理状态:
Then the service always pending:
$ kubectl get services --namespace=default -w wandering-buffoon-jenkins
NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
wandering-buffoon-jenkins 10.0.0.153 <pending> 8080:31326/TCP,50000:31090/TCP 26m
为什么?因此不能使用external-ip进行访问.
Why? So can't use external-ip to access it.
推荐答案
我猜您没有更新参数来使用NodePort
而不是默认的LoadBalancer
. minikube集群不支持LoadBalancer
类型,因此Kubernetes正在循环尝试创建负载均衡器以获取外部IP.
I'm guessing that you didn't update the parameters to use NodePort
instead of the default LoadBalancer
. The minikube cluster doesn't support the LoadBalancer
type so Kubernetes is looping trying to create a load balancer to get an external IP.
使用掌舵查看稳定/詹金斯图表的选项:
Use helm to see the options for the stable/jenkins chart:
$ helm inspect values stable/jenkins
# Default values for jenkins.
...
# For minikube, set this to NodePort, elsewhere use LoadBalancer
# Use ClusterIP if your setup includes ingress controller
ServiceType: LoadBalancer
...
您可以通过以下操作进行设置:
You can set this by doing something like this:
$ echo $'Master:\n ServiceType: NodePort' > config.yaml
$ helm install -f config.yaml stable/jenkins
这篇关于Jenkins服务始终在minikube上待定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!