我为现有的nfs服务器创建了pv / pvc并启动了jhub,但是它无法启动服务器并出现错误。由于我已经有NFS服务器,因此我遵循了https://zero-to-jupyterhub.readthedocs.io/en/latest/user-storage.html中的“其他存储卷”。
<serenity.version>2.0.54</serenity.version>
<serenity.maven.version>2.0.54</serenity.maven.version>
<serenity.cucumber.version>1.0.14</serenity.cucumber.version>
<cucumber.version>4.2.0</cucumber.version>
<wiremock.version>2.5.1</wiremock.version>
PV yaml
[Warning] pod has unbound immediate PersistentVolumeClaims (repeated 4 times)
PVC yaml
apiVersion: v1
kind: PersistentVolume
metadata:
name: pv0001
spec:
capacity:
storage: 30Gi
accessModes:
- ReadWriteMany
nfs:
path: /mnt/nfs
server: 192.168.5.67
persistentVolumeReclaimPolicy: Retain
PV和PVC对我来说很好。
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: nfs-claim1
namespace: jhub
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 10Gi
NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS REASON AGE
pv0001 30Gi RWX Retain Bound jhub/nfs-claim1 58m
jupyterhub conf.yaml
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
claim-gp4r Pending 4m32s
nfs-claim1 Bound pv0001 30Gi RWX 58m
对于解决此问题的任何建议,我们将不胜感激。