我正在minikube上部署jenkins,并遇到此错误
helm inspect values stable/jenkins > values.yaml
有人在说
master:
usePodSecurityContext: true
# Set runAsUser to 1000 to let Jenkins run as non-root user 'jenkins' which exists in 'jenkins/jenkins' docker image.
# When setting runAsUser to a different value than 0 also set fsGroup to the same value:
# runAsUser: <defaults to 0>
# fsGroup: <will be omitted in deployment if runAsUser is 0>
所以在我的values.yaml中,当我像这样运行头盔时,一切正常:并且我可以在<minikube ip>:32000/login
上访问jenkins
master:
#runAsUser: 1000 <-----
#fsGroup: 1000 <-----
adminPassword: admin
componentName: jenkins-master
slaveKubernetesNamespace: jenkins
serviceType: NodePort
servicePort: 8080
ingress:
apiVersion: "extensions/v1beta1"
enabled: false
annotations:
kubernetes.io/ingress.class: nginx
但是当我解散uid和组映像具有CrashLoopBack / Error
时,遇到此问题的任何人都知道出了什么问题?