我刚刚安装了 OpenShift-Okd 3.11,并且正在尝试一个持久的 Postgres 数据库。
尝试创建数据库后,出现以下错误:
MountVolume.SetUp failed for volume "postgresql" :
mount failed: exit status 32 Mounting command: systemd-run Mounting arguments: --description=Kubernetes transient mount for /var/lib/origin/openshift.local.volumes/pods/b76a314a-d59a-11e8-a502-6c626d58b24d/volumes/kubernetes.io~nfs/postgresql --scope -- mount -t nfs apps.mydomain.com:/pg-data /var/lib/origin/openshift.local.volumes/pods/b76a314a-d59a-11e8-a502-6c626d58b24d/volumes/kubernetes.io~nfs/postgresql Output:
Running scope as unit run-7329.scope. mount.nfs: Protocol not supported
我还创建了以下持久卷:
apiVersion: v1
kind: PersistentVolume
metadata:
name: postgresql
spec:
capacity:
storage: 5Gi
accessModes:
- ReadWriteOnce
nfs:
path: /pg-data
server: apps.mydomain.com
persistentVolumeReclaimPolicy: Retain
即使在创建 PV(使用oc create -f pv.yml
)之后,我仍然会收到上述错误。