当我使用大量的cephfs时,它正在工作。路径是/ test,用户是test
apiVersion: v1
kind: Pod
metadata:
name: cephfs
spec:
containers:
- name: cephfs
image: kubernetes/pause
volumeMounts:
- mountPath: "/mnt/cephfs"
name: cephfs
volumes:
- name: cephfs
cephfs:
monitors:
- 10.16.154.78:6789
- 10.16.154.82:6789
- 10.16.154.83:6789
path: /test
user: test
secretRef:
name: ceph-test
readOnly: true
但是当我这样创建StorageClass时它不起作用
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: cephfs
provisioner: ceph.com/cephfs
parameters:
monitors: 10.16.154.78:6789,10.16.154.82:6789,10.16.154.73:6789
adminId: test
adminSecretName: ceph-test
adminSecretNamespace: default
我认为不支持参数“ path”,我该如何将path / test传输到StorageClass yaml?
答案 0 :(得分:0)