kubernetes;詹金斯掌舵-将用户ID更改为1000时,pod失败

时间:2020-01-16 11:53:07

标签: jenkins kubernetes kubernetes-helm

我正在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时,遇到此问题的任何人都知道出了什么问题?

0 个答案:

没有答案