Unable to increase storage size of kafka and zookeeper pods #4956
shreyasarani23
started this conversation in
General
Replies: 1 comment 16 replies
-
Can you please format the YAML snippets as code? It will make it much more readable and easier to see any issues or errors. In which YAML do you increase the size? You have to do it in the Kafka custom resource. You should probably also share the Cluster Operator logs to better understand what is going on. |
Beta Was this translation helpful? Give feedback.
16 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In my storage class I have given allowvolumeexpansion as true
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: kafka-storage-class
provisioner: kubernetes.io/azure-disk
reclaimPolicy: Retain
allowVolumeExpansion: true
parameters:
storageaccounttype: Standard_LRS
kind: Managed
volumeBindingMode: WaitForFirstConsumer
And in my yaml file when I try to increase the size from 1Gi to 2Gi
it doesn't reflect in my pvc
kubectl describe pvc data-my-kafka-cluster-kafka-0 -n kafka
Name: data-my-kafka-cluster-kafka-0
Namespace: kafka
StorageClass: kafka-storage-class
Status: Bound
Volume: pvc-aa9f8636-5655-40d1-8a8a-51a59a2e76ef
Labels: app.kubernetes.io/instance=my-kafka-cluster
app.kubernetes.io/managed-by=strimzi-cluster-operator
app.kubernetes.io/name=kafka
app.kubernetes.io/part-of=strimzi-my-kafka-cluster
strimzi.io/cluster=my-kafka-cluster
strimzi.io/kind=Kafka
strimzi.io/name=my-kafka-cluster-kafka
Annotations: pv.kubernetes.io/bind-completed: yes
strimzi.io/delete-claim: true
Finalizers: [kubernetes.io/pvc-protection]
Capacity: 1Gi
Access Modes: RWO
VolumeMode: Filesystem
Used By: my-kafka-cluster-kafka-0
Events:
please help
And how do I restart my kafka pods?
Beta Was this translation helpful? Give feedback.
All reactions