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
35 lines
1,012 B
Django/Jinja
35 lines
1,012 B
Django/Jinja
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: cephfs-provisioner-v{{ cephfs_provisioner_image_tag }}
|
|
namespace: {{ cephfs_provisioner_namespace }}
|
|
labels:
|
|
k8s-app: cephfs-provisioner
|
|
version: v{{ cephfs_provisioner_image_tag }}
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
k8s-app: cephfs-provisioner
|
|
version: v{{ cephfs_provisioner_image_tag }}
|
|
template:
|
|
metadata:
|
|
labels:
|
|
k8s-app: cephfs-provisioner
|
|
version: v{{ cephfs_provisioner_image_tag }}
|
|
spec:
|
|
containers:
|
|
- name: cephfs-provisioner
|
|
image: {{ cephfs_provisioner_image_repo }}:{{ cephfs_provisioner_image_tag }}
|
|
imagePullPolicy: {{ k8s_image_pull_policy }}
|
|
env:
|
|
- name: PROVISIONER_NAME
|
|
value: ceph.com/cephfs
|
|
command:
|
|
- "/usr/local/bin/cephfs-provisioner"
|
|
args:
|
|
- "-id=cephfs-provisioner-1"
|
|
{% if rbac_enabled %}
|
|
serviceAccount: cephfs-provisioner
|
|
{% endif %}
|