Uploaded image for project: 'OpenShift Storage'
  1. OpenShift Storage
  2. STOR-1304

Automatically restart vSphere pods when the secret `vmware-vsphere-csi-driver-controller-metrics-serving-cert` or `vmware-vsphere-csi-driver-webhook-secret` is updated

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Undefined Undefined
    • openshift-4.14
    • None
    • None
    • BU Product Work
    • False
    • None
    • False
    • OCPSTRAT-193 - Automatically restart storage operators pods when the CA certificates are updated

      1. The pod `vmware-vsphere-csi-driver-controller` mounts the secret:

      $ oc get po -n openshift-cluster-csi-drivers vmware-vsphere-csi-driver-controller-8467ddf4c-5lgd8 -o yaml
      ...
        containers:
          name: driver-kube-rbac-proxy
          name: provisioner-kube-rbac-proxy
          name: attacher-kube-rbac-proxy
          name: resizer-kube-rbac-proxy
          name: snapshotter-kube-rbac-proxy
          name: syncer-kube-rbac-proxy
      
          volumeMounts:
          - mountPath: /etc/tls/private
            name: metrics-serving-cert
      
        volumes:
        - name: metrics-serving-cert
          secret:
            defaultMode: 420
            secretName: vmware-vsphere-csi-driver-controller-metrics-serving-cert
      

      Hence, if the secret is updated (e.g. as a result of CA cert update), the Pod must be restarted.

      2. Similarly, the pod `vmware-vsphere-csi-driver-webhook` mounts another secret:

      $ oc get po -n openshift-cluster-csi-drivers vmware-vsphere-csi-driver-webhook-c557dbf54-crrxp -o yaml
      ...
        containers:
          name: vsphere-webhook
      
          volumeMounts:
          - mountPath: /etc/webhook/certs
            name: certs
      
        volumes:
        - name: certs
          secret:
            defaultMode: 420
            secretName: vmware-vsphere-csi-driver-webhook-secret
      

      Again, if the secret is updated (e.g. as a result of CA cert update), the Pod must be restarted.

            rh-ee-mpatlaso Maxim Patlasov
            rh-ee-mpatlaso Maxim Patlasov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: