잘못된 이미지 이름으로 오류가 발생하는 젠킨스의 투구 차트 배포가 정확하더라도. 문제를 해결하는 방법은 무엇입니까?

잘못된 이미지 이름으로 오류가 발생하는 젠킨스의 투구 차트 배포가 정확하더라도. 문제를 해결하는 방법은 무엇입니까?

잘못된 이미지 이름으로 오류가 발생하는 젠킨스의 투구 차트 배포가 정확하더라도. 문제를 해결하는 방법은 무엇입니까?

kubectl get po -n jenkins
NAME        READY   STATUS                  RESTARTS   AGE
jenkins-0   0/2     Init:InvalidImageName   0          46s

내 value.yaml 파일:

#https://github.com/jenkinsci/helm-charts/blob/main/charts/jenkins/values.yaml
controller: # renamed from master
  image: jenkins/jenkins:lts
  imagePullPolicy: Always
  serviceType: LoadBalancer
  adminSecret: true #useSecurity: true
  adminUser: admin
  adminPassword: password
  #jenkinsUrl: http://jenkins.example.com/
  jenkinsUriPrefix: "/jenkins"
  agents:
    enabled: true
    jnlp:
      enabled: true
    kubernetes:
      enabled: true
      namespace: default
      label: jenkins-slave
      podName: jenkins-slave-${UUID}
      volumes:
        - type: Secret
          secretName: jenkins-k8s-secret
          mountPath: /var/jenkins_home/.kube
        - type: Secret
          secretName: jenkins-k8s-config
          mountPath: /home/jenkins/.kube/config
      serviceAccountName: jenkins
      image: jenkins/jnlp-slave
      privileged: true
      alwaysPullImage: true
      idleMinutes: 5
      containerCap: 10
  installPlugins:
    - kubernetes:3734.v562b_b_a_627ea_c
    - workflow-aggregator:590.v6a_d052e5a_a_b_5
    - git:4.13.0
    - configuration-as-code:1569.vb_72405b_80249
  overwritePluginsFromImage: true
  # Set to false to download the minimum required version of all dependencies.
  installLatestPlugins: true

  # Set to true to download latest dependencies of any plugin that is requested to have the latest version.
  installLatestSpecifiedPlugins: false
  usePodSecurityContext: true
  runAsUser: 1000
  fsGroup: 1000
  healthProbes: true
  probes:
    startupProbe:
      httpGet:
        path: '{{ default "" .Values.controller.jenkinsUriPrefix }}/login'
        port: http
      periodSeconds: 10
      timeoutSeconds: 5
      failureThreshold: 12
    livenessProbe:
      failureThreshold: 5
      httpGet:
        path: '{{ default "" .Values.controller.jenkinsUriPrefix }}/login'
        port: http
      periodSeconds: 10
      timeoutSeconds: 5
      # If Startup Probe is not supported on your Kubernetes cluster, you might want to use "initialDelaySeconds" instead.
      # It delays the initial liveness probe while Jenkins is starting
      # initialDelaySeconds: 60
    readinessProbe:
      failureThreshold: 3
      httpGet:
        path: '{{ default "" .Values.controller.jenkinsUriPrefix }}/login'
        port: http
      periodSeconds: 10
      timeoutSeconds: 5
      # If Startup Probe is not supported on your Kubernetes cluster, you might want to use "initialDelaySeconds" instead.
      # It delays the initial readyness probe while Jenkins is starting
      # initialDelaySeconds: 60

실행된 명령:

kubectl create ns jenkins
helm install jenkins jenkins/jenkins -f ./values.yaml --namespace jenkins

답변1

태그를 추가해야 합니다

lts-jdk11

관련 정보