Strimzi - Local Storage: Defined static PVs
authorKai Moritz <kai@juplo.de>
Tue, 3 Oct 2023 13:39:20 +0000 (15:39 +0200)
committerKai Moritz <kai@juplo.de>
Wed, 4 Oct 2023 17:43:16 +0000 (19:43 +0200)
commit6fe3a5da1607916752397f391356135e097db6c0
treeee5400676542647e49635e6f2ce8a0efdf00e336
parentf182e0f0dbb7ca9b49c4748da1c13c3f5ba49dd9
Strimzi - Local Storage: Defined static PVs

See:

* https://kubernetes.io/blog/2019/04/04/kubernetes-1.14-local-persistent-volumes-ga/
* https://docs.confluent.io/operator/current/co-storage.html#use-statically-provisioned-persistent-volumes

sudo mkdir /var/lib/local-storage
sudo mkdir /var/lib/local-storage/zookeeper-0
sudo mkdir /var/lib/local-storage/kafka-0

kubectl -n juplo apply -f local-storage.yaml

kubectl apply -f pv-zookeeper-0.yaml
kubectl apply -f pv-kafka-0.yaml

kubectl get pv

kubectl -n juplo apply -f cluster.yaml
kubectl -n juplo get pvc
kubectl -n juplo get pvc/data-0-juplo-kafka-0 -o yaml
strimzi-kafka/cluster.yaml
strimzi-kafka/local-storage.yaml [new file with mode: 0644]
strimzi-kafka/pv-kafka-0.yaml [new file with mode: 0644]
strimzi-kafka/pv-zookeeper-0.yaml [new file with mode: 0644]