Hello, I’m deploying the K8s Percona Server with Helm. I use StorageClass for volumes of data but I also need to have a PVC mounting point in the main container that I keep unfolded in my cluster.
I use sidecardVolumes to add the volume to the pod for satisfaction but I don’t know how to mount it in the “mongod” container.
sidecarVolumes:
- name: pvc-exports
persistentVolumeClaim:
claimName: pvc-exports
resources:
limits:
cpu: "2000m"
memory: "3G"
requests:
cpu: "100m"
memory: "0.5G"
volumeMounts: ### No it works
- mountPath: /exports
name: pvc-exports
volumeSpec:
# emptyDir: {}
# hostPath:
# path: /data
pvc:
# annotations:
# volume.beta.kubernetes.io/storage-class: example-hostpath
# labels:
# rack: rack-22
storageClassName: oci-bv
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 10Gi