Hello,
I succeeded in deploying a Kubernetes on my on-premises 3-master 3-worker cluster.
I failed in configuring the Persistent Volumes. It leads to a jupyterhub pod remaining “pending”.
The error message included in the pod description is:0/6 nodes are available: 1 node(s) had taint {node.kubernetes.io/unreachable: }, that the pod didn't tolerate, 5 node(s) didn't find available persistent volumes to bind.
I join my PersistentVolume and PersistentVolumeClaim configurations hereafter.
The pv, pvc and sc are ok on every node.
Thanks for any help
apiVersion: v1
kind: PersistentVolume
metadata:
name: hub-db-dir
spec:
capacity:
storage: 10Gi
volumeMode: Filesystem
accessModes:
ReadWriteOnce
persistentVolumeReclaimPolicy: Delete
storageClassName: local-storage
local:
path: /dev/sda1
nodeAffinity:
required:
nodeSelectorTerms:
matchExpressions:
key: kubernetes.io/hostname
operator: In
values:
192.168.0.81
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: hub-db-dir
spec:
storageClassName: local-storage
accessModes:
ReadWriteOnce
resources:
requests:
storage: 3Gi
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
annotations:
storageclass.kubernetes.io/is-default-class: "true"
name: local-storage
provisioner: kubernetes.io/no-provisioner
volumeBindingMode: WaitForFirstConsumer