HELM AND KUBERNETES: How to configure custom storage class to create PVC for JFrog application in Helm chart
By default JFrog helm charts will create the PVC in the default storage class and if we would like the create the PVC in the custom storage class then we need to configure the custom storage class in the values YAML file like below:
For Artifactory:
artifactory:
name: artifactory
replicaCount: 1
persistence:
enabled: true
size: 200Gi
storageClassName: "custom-storage-class-name"
For Xray:
xray:
name: xray
masterKeySecretName:
joinKey: EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
jfrogUrl:
common:
persistence:
enabled: true
storageClass: "custom-storage-class-name"
For Distribution:
distribution:
name: distribution
masterKeySecretName:
joinKey: EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
jfrogUrl:
persistence:
enabled: true
storageClass: "custom-storage-class-name"
For Insight:
insightServer:
name: insight-server
masterKeySecretName:
joinKey:
jfrogUrl:
persistence:
enabled: true
storageClass: "custom-storage-class-name"insightScheduler:
name: insight-scheduler
persistence:
enabled: true
storageClass: "custom-storage-class-name"
For third party applications like Postgres, RabbitMQ and Redis we are using bitnami charts (https://github.com/bitnami/charts/tree/master/bitnami) and we can find the detailed persistent storage configurations in the above link, But if would like to just change the storage class for these third party applications then Below is the configuration:
For Postgres:
postgresql:
enabled: true
persistence:
enabled: true
storageClass: "custom-storage-class-name"
For RabbitMq:
rabbitmq:
enabled: true
persistence:
enabled: true
storageClass: "custom-storage-class-name"
For Redis:
redis:
persistence:
enabled: true
storageClass: "custom-storage-class-name"
For Elastic search:
elasticsearch:
enabled: true
persistence:
enabled: true
storageClass: "custom-storage-class-name"
JFrog pipelines chart doesn’t need persistent storage now. so we don't have an option in the charts to provide the persistence details.
