Jenkins service always pending on minikube

后端 未结 1 1130
离开以前
离开以前 2021-02-15 20:23

I installed minikube on local.

Dashboard is 192.168.99.100:30000

I installed Jenkins by helm:

$ helm install stable/jenkins
<         


        
1条回答
  •  生来不讨喜
    2021-02-15 20:36

    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
    

    0 讨论(0)
提交回复
热议问题