# Trouble configuring JupyterHub with Kubernetes on my local cluster

**URL:** <https://discourse.jupyter.org/t/trouble-configuring-jupyterhub-with-kubernetes-on-my-local-cluster/4016>\
**Category:** Zero to JupyterHub on Kubernetes\
**Created:** [April 16, 2020, 11:47am UTC](https://discourse.jupyter.org/t/trouble-configuring-jupyterhub-with-kubernetes-on-my-local-cluster/4016 "2020-04-16T11:47:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hdlbq0](https://avatars.discourse-cdn.com/v4/letter/h/22d042/32.png) [@hdlbq0](https://discourse.jupyter.org/u/hdlbq0)\
**Post date:** [April 16, 2020, 11:47am UTC](https://discourse.jupyter.org/t/trouble-configuring-jupyterhub-with-kubernetes-on-my-local-cluster/4016/1 "2020-04-16T11:47:32Z")

</div>

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

```auto
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

```

---

<div class="post-metadata">

**Author:** ![manics](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/manics/32/85_2.png) [@manics](https://discourse.jupyter.org/u/manics)\
**Post date:** [April 16, 2020, 8:34pm UTC](https://discourse.jupyter.org/t/trouble-configuring-jupyterhub-with-kubernetes-on-my-local-cluster/4016/2 "2020-04-16T20:34:37Z")

</div>

@hdlbq0 I’ve editted your post so that your configuration is formatted. For future reference if you want to format a multi-line code block you can use triple backticks
