aerospike / aerospike-kubernetes-operator

Kubernetes operator for the Aerospike database
https://docs.aerospike.com/cloud/kubernetes/operator
Apache License 2.0
92 stars 37 forks source link

Unable to add annotations in volumeClaimTemplates / annotations on PVC #326

Open ShahroZafar opened 2 days ago

ShahroZafar commented 2 days ago

Inorder to keep costs in check, we have a kyverno policy deployed in our kubernetes clusters which requires that each PVC which is created have a certain annotation. The result of the annotation is that it applies tags on EBS volumes in AWS.

There is no option (Atleast in docs and CRDs) in the aerospike cluster CRD using which we can either add annotation in volumeClaimTemplate section of statefulsets created by the operator or directly on PVCs.

The annotation described above is a must have for us. We already did some workarounds in other applications (non aerospike), where we disable kyverno policy for that application specifically and add a cronjob which annotate the PVCs but its not a very clean solution and have to be maintained independently.

sud82 commented 2 days ago

Hi @ShahroZafar, please tell me your organization name and the priority for this feature. We will evaluate the request and update you. Thanks.

ShahroZafar commented 2 days ago

Hi @sud82 , We are from Unity Technologies / Ironsource. The above feature is required for mounting workdir on a persistentVolume and is basically a blocker for us migrating our aerospike clusters from EC2 to kubernetes