Score:0

Deploying helm chart of jenkins giving error as invalid image name, even it is correct. How to fix that?

ck flag

Deploying helm chart of jenkins giving error as invalid image name, even it is correct. How to fix that?

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

My values.yaml file:

#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

Command executed:

kubectl create ns jenkins
helm install jenkins jenkins/jenkins -f ./values.yaml --namespace jenkins
Score:0
us flag

you need to add the tag

lts-jdk11

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.