Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins service always pending on minikube

I installed minikube on local.

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

Why? So can't use external-ip to access it.

like image 542
cloud_cloud Avatar asked May 12 '17 08:05

cloud_cloud


Video Answer


1 Answers

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
like image 157
coreypobrien Avatar answered Sep 17 '22 14:09

coreypobrien