0

I have created a cluster in Gke. I have created a presistant volume. In the host path I have given the path. And as I can understant It will be created in a worker node. What if the node goes down! How can I avoid this.

apiVersion: v1
kind: PersistentVolume
metadata:
name: task-pv-volume
labels:
  type: local
spec:
storageClassName: manual
  capacity:
 storage: 10Gi
accessModes:
 - ReadWriteOnce
hostPath:
  path: "/home/username/data_for_pv"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.