728024e8ff
- cephfs-provisioner 06fddbe2 (https://github.com/kubernetes-incubator/external-storage/tree/06fddbe2/ceph/cephfs) Noteable changes from upstream: - Added storage class parameters to specify a root path within the backing cephfs and, optionally, use deterministic directory and user names (https://github.com/kubernetes-incubator/external-storage/pull/696) - Support capacity (https://github.com/kubernetes-incubator/external-storage/pull/770) - Enable metrics server (https://github.com/kubernetes-incubator/external-storage/pull/797) Other noteable changes: - Clean up legacy manifests file naming - Remove legacy manifests, namespace and storageclass before upgrade - `cephfs_provisioner_monitors` simplified as string - Default to new deterministic naming - Add `reclaimPolicy` support in StorageClass With legacy non-deterministic naming style (where $UUID are generated ramdonly): - cephfs_provisioner_claim_root: /volumes/kubernetes - cephfs_provisioner_deterministic_names: false - Generated CephFS volume: /volumes/kubernetes/kubernetes-dynamic-pvc-$UUID - Generated CephFS user: kubernetes-dynamic-user-$UUID With new default deterministic naming style (where $NAMESPACE and $PVC are predictable): - cephfs_provisioner_claim_root: /volumes - cephfs_provisioner_deterministic_names: true - Generated CephFS volume: /volumes/$NAMESPACE/$PVC - Generated CephFS user: k8s.$NAMESPACE.$PVC
15 lines
571 B
Django/Jinja
15 lines
571 B
Django/Jinja
---
|
|
apiVersion: storage.k8s.io/v1
|
|
kind: StorageClass
|
|
metadata:
|
|
name: {{ cephfs_provisioner_storage_class }}
|
|
provisioner: ceph.com/cephfs
|
|
reclaimPolicy: {{ cephfs_provisioner_reclaim_policy }}
|
|
parameters:
|
|
cluster: {{ cephfs_provisioner_cluster }}
|
|
monitors: {{ cephfs_provisioner_monitors }}
|
|
adminId: {{ cephfs_provisioner_admin_id }}
|
|
adminSecretName: cephfs-provisioner
|
|
adminSecretNamespace: {{ cephfs_provisioner_namespace }}
|
|
claimRoot: {{ cephfs_provisioner_claim_root }}
|
|
deterministicNames: "{{ cephfs_provisioner_deterministic_names | bool | lower }}"
|