I am trying to set storage sig-storage-local-static-provisioner to /vagrant mapped folder on windows host, my expectation is that the localstorage calss will automatically provision pvs based on pvc requests, is that possible, trying to use confluent kafka with it with following config:
common:
namespace: kube-system
classes:
- name: local-storage
hostDir: /vagrant/kafkastorage
However I am stuck on waiting for consume I don’t see PVs getting created, any idea if that is possible at all?
Latest events are:
2m52s Normal WaitForFirstConsumer persistentvolumeclaim/datadir-0-confluent-prod-cp-kafka-0 waiting for first consumer to be created before binding
2m52s Normal WaitForFirstConsumer persistentvolumeclaim/datadir-confluent-prod-cp-zookeeper-0 waiting for first consumer to be created before binding
2m52s Normal WaitForFirstConsumer persistentvolumeclaim/datalogdir-confluent-prod-cp-zookeeper-0 waiting for first consumer to be created before binding
cat local.storage.class.yaml
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: local-storage
provisioner: kubernetes.io/no-provisioner
volumeBindingMode: WaitForFirstConsumer
Go to Source
Author: anVzdGFub3RoZXJodW1hbg