Splunk Operator: no way to utilize pre-created EBS
yaroslav-nakonechnikov opened this issue · 2 comments
Please select the type of request
Feature Request
Tell us more
Describe the request
At the moment storage is being created dynamically, which is not good in a lot of cases: no way to put correct tags, for example.
especially very useful for single nodes, like standalone or license manager.
Expected behavior
there is a way to pass vol-id identifier.
maybe as array(or map), as there maybe several replicas. and in that case field "replicas" may be omitted, if several ids passed.
this also leads to one of the issues with creating pvc's: no way to extend disks in case it is needed.
You will be forced to recreate ebs.
if somebody will try to edit pvc, so there will be next error:
error: persistentvolumeclaims "pvc-var-splunk-prod-monitoring-console-0" could not be patched: persistentvolumeclaims "pvc-var-splunk-prod-monitoring-console-0" is forbidden: only dynamically provisioned pvc can be resized and the storageclass that provisions the pvc must support resize
storageclass:
$ kubectl get storageclass gp3 -o yaml
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"storage.k8s.io/v1","kind":"StorageClass","metadata":{"annotations":{"storageclass.kubernetes.io/is-default-class":"true"},"name":"gp3"},"parameters":{"csi.storage.k8s.io/fstype":"ext4","encrypted":"true","kmsKeyId":"arn:aws:kms:eu-central-1:111111111111:alias/proj-prod","type":"gp3"},"provisioner":"ebs.csi.aws.com","volumeBindingMode":"WaitForFirstConsumer"}
storageclass.kubernetes.io/is-default-class: "true"
creationTimestamp: "2023-12-05T17:40:23Z"
name: gp3
resourceVersion: "202093653"
uid: 6cae9dd7-be8e-479a-9e5d-39c99948b502
parameters:
csi.storage.k8s.io/fstype: ext4
encrypted: "true"
kmsKeyId: arn:aws:kms:eu-central-1:111111111111:alias/proj-prod
type: gp3
provisioner: ebs.csi.aws.com
reclaimPolicy: Delete
volumeBindingMode: WaitForFirstConsumer
@yaroslav-nakonechnikov we will look into this issue and get back to you. have you tried recreating the pvc before , CR is created with the same names?