https://rancher.com/ logo
Title
g

gorgeous-iron-45755

12/06/2022, 8:51 AM
Hi everybody, We have deployed Rancher on Kubernetes, and we want to enable the Monitoring feature. However, Prometheus cannot be deployed as its PVCs' names are longer than 63 characters which is not supported by the Storage Class (OpenEBS Jiva). Is there any way to specify the PVC name prior to the deployment as a workaround? Thanks
p

powerful-energy-34627

12/06/2022, 9:08 AM
@gorgeous-iron-45755 , I think you can do it but not via Rancher UI. You need to delete the app and install it via helm chart and configure it inside.
g

gorgeous-iron-45755

12/06/2022, 9:26 AM
@powerful-energy-34627 thank you for the hint. I will try to deploy it through helm as instructed in the Monitoring Chart.
👍 1
I managed to solve this by selecting Edit YAML after making the necessary changes in Edit Options. In the volumeClaimTemplate section I added the metadata subsection with the name so that a PVC with a shorter name is created. I also removed the spec subsection not supported by the OpenEBS Jiva storage class, so the code is as follows:
volumeClaimTemplate:
        metadata:
          name: prometheus
        spec:
          accessModes:
            - ReadWriteOnce
          resources:
            requests:
              storage: 100Gi
          volumeMode: Filesystem
          storageClassName: openebs-jiva-csi-sc
1