2018-02-01 12:25:21 +08:00
|
|
|
---
|
2018-02-13 09:55:59 +08:00
|
|
|
apiVersion: apps/v1
|
2018-07-01 13:14:07 +08:00
|
|
|
kind: Deployment
|
2018-02-01 12:25:21 +08:00
|
|
|
metadata:
|
2018-08-22 11:02:56 +08:00
|
|
|
name: cephfs-provisioner
|
2018-02-01 12:25:21 +08:00
|
|
|
namespace: {{ cephfs_provisioner_namespace }}
|
2018-02-13 09:55:59 +08:00
|
|
|
labels:
|
2018-08-17 11:12:01 +08:00
|
|
|
app: cephfs-provisioner
|
|
|
|
version: {{ cephfs_provisioner_image_tag }}
|
2018-02-01 12:25:21 +08:00
|
|
|
spec:
|
|
|
|
replicas: 1
|
2018-02-13 09:55:59 +08:00
|
|
|
selector:
|
|
|
|
matchLabels:
|
2018-08-17 11:12:01 +08:00
|
|
|
app: cephfs-provisioner
|
|
|
|
version: {{ cephfs_provisioner_image_tag }}
|
2018-02-01 12:25:21 +08:00
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
2018-08-17 11:12:01 +08:00
|
|
|
app: cephfs-provisioner
|
|
|
|
version: {{ cephfs_provisioner_image_tag }}
|
2018-02-01 12:25:21 +08:00
|
|
|
spec:
|
2018-08-17 11:12:01 +08:00
|
|
|
serviceAccount: cephfs-provisioner
|
2018-02-01 12:25:21 +08:00
|
|
|
containers:
|
|
|
|
- name: cephfs-provisioner
|
|
|
|
image: {{ cephfs_provisioner_image_repo }}:{{ cephfs_provisioner_image_tag }}
|
2018-02-13 09:55:59 +08:00
|
|
|
imagePullPolicy: {{ k8s_image_pull_policy }}
|
2018-02-01 12:25:21 +08:00
|
|
|
env:
|
|
|
|
- name: PROVISIONER_NAME
|
|
|
|
value: ceph.com/cephfs
|
|
|
|
command:
|
|
|
|
- "/usr/local/bin/cephfs-provisioner"
|
|
|
|
args:
|
|
|
|
- "-id=cephfs-provisioner-1"
|