Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-68114

Upgrading the persistent volume of Jenkins through helm charts

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • helm-charts
    • None
    • GCP cloud

      I'm working on Upgrading the persistent volume of Jenkins through helm charts. Manually modifying the helm chart(values.yaml) file is working fine but i'm working on other ways to modify the helm charts, So I have installed jenkins using helm charts there are pre defined repos in my org i installed using the docs, It's installed successfully so now i want to increase my persistent volume using existing values.yaml file which i used for deploying jenkins... Is it possible to add updated config in values.yaml file.? How do i add those configurations.? I tried adding these steps in the existing helm charts -jenkins-values.yaml file ----

      persistence:
      enabled: true
      storageClass: standard
      annotations: [storageclassclass]: "true"
      labels:
      [addonmanagermode]: EnsureExists
      accessMode: "ReadWriteOnce"
      size: "12Gi"
      volumes: - name: pvc-2fa71a4a-86cc-4f17-9aa7-7a81638db64d
      emptyDir: {}
      mounts: -
      mountPath: /var/jenkins_home
      name: jenkins-home

      Can anyone suggest to me is this the right way? or do i need to add some other annotations, attributes, labels in the values.yaml file...?

      Attached my existing values.yaml file -
      controller:

      Change the following image and tag to our GCR wherever we've pushed the Jenkins image with all plugins

      image: "gcr.iolz_jenkins"
      tag: "2.319.3-SNAPSHOT"
      imagePullPolicy: "Always"

      Plugins should already be packeged into Jenkins image

      installPlugins: false
      overwritePlugins: true
      overwritePluginsFromImage: false

      serviceType: ClusterIP
      serviceAnnotations:
      cloudcom/backend-config: '{"ports": {"8080":"jenkins-iap"}}'
      cloudcom/neg: '{"ingress": true}'

      this are the lines i updated in these values file

      persistence:
      enabled: true

      A manually managed Persistent Volume and Claim

      Requires persistence.enabled: true

      If defined, PVC must be created manually before volume will be bound

      existingClaim:

      jenkins data Persistent Volume Storage Class

      If defined, storageClassName:

      If set to "-", storageClassName: "", which disables dynamic provisioning

      If undefined (the default) or set to null, no storageClassName spec is

      set, choosing the default provisioner. (gp2 on AWS, standard on

      GKE, AWS & OpenStack)

       

      storageClass: standard
      annotations:
      storageclass-class: "true"
      labels:
      kubernetesio/mode: EnsureExists
      accessMode: "ReadWriteOnce"
      size: "12Gi"
      volumes:

      • name: pvc-d5ad8b03-2e07-4c93-b596-ccf5c1999f09
        emptyDir: {}
        mounts:
      • mountPath: /var/jenkins_home
        name: jenkins-home

      ingress:
      enabled: true
      hostName: jenkins-lz-ma.globalpay
      annotations:
      --------------------

      jenkinsUrlProtocol: https
      agent:
      jenkinsUrl: jenkins.jenkin.svc.cluster.local:8083
      jenkinsTunnel: jenkins-agent.jenkins.svc.cluster.local:40000

      JCasC:
      authorizationStrategy: |-
      projectMatrix:
      permissions:

      • "Overall/Administer:yeswanthmallam14@gmail.com"
        Some other administrator settings.
        Hope you got my point and provide me the solution...
        Thanks in advance!!

            twalter Torsten Walter
            yeswanth141997 Yeswanth Mallam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: