-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Description
What happened:
Hi. I am using kind within a pre-emptible VM from GCP (so, my VM and thereby kind restarts every 24 hours). I was trying to get Dgraph setup with Kind and it worked great. But, on restart of the VM or Docker service, the pod throws errors.
I am using the standard storage class (I guess it uses rancher's local path provisioner). I am not sure if it is an issue with Kind or Dgraph, so I have added all details here with all the details and logs: https://discuss.dgraph.io/t/dgraph-fails-to-start-on-restarts-with-kind-kubernetes/11104
What you expected to happen:
Dgraph works consistently even after restarts. I guess according to #148 this should work.
How to reproduce it (as minimally and precisely as possible):
- Create a kubernetes cluster locally using kind
- Deploy Dgraph (1 zero, 1 alpha, 1 ratel) using the helm chart using the inbuilt
standardstorage class in kind which uses rancher's provisioner (https://github.com/rancher/local-path-provisioner) withReadWriteOnceset
helm upgrade --install --namespace <namespace> dgraph -f <path>/values.yaml --set zero.replicaCount=1 --set alpha.replicaCount=1 --set alpha.persistence.size=200Mi --set zero.persistence.size=200Mi --set alpha.persistence.accessModes={ReadWriteOnce} --set zero.persistence.accessModes={ReadWriteOnce} --set zero.persistence.storageClass=standard --set alpha.persistence.storageClass=standard ./charts/dgraph
- Everything works great.
- Now, restart docker with
sudo service docker restart - Dgraph fails to start with errors (pods are running though)
It works again only after I destroy the entire cluster and create it again.
Just to validate if normal pod restart works, I tried running kubectl -n db rollout restart statefulset dgraph-dgraph-alpha and everything was great.
Anything else we need to know?:
More details, logs and other details have been added here: https://discuss.dgraph.io/t/dgraph-fails-to-start-on-restarts-with-kind-kubernetes/11104
Environment:
- kind version: (use
kind version): kind v0.9.0 go1.15.2 linux/amd64 - Kubernetes version: (use
kubectl version):v1.19.3 - Docker version: (use
docker info):19.03.13 - OS (e.g. from
/etc/os-release): Ubuntu 20.04.1 LTS