c12s-kubespray/roles/kubernetes-apps/external_provisioner/cephfs_provisioner/templates/cephfs-provisioner-rs.yml.j2

36 lines
1,012 B
Text
Raw Normal View History

---
2018-02-13 01:55:59 +00:00
apiVersion: apps/v1
kind: ReplicaSet
metadata:
2018-02-13 01:55:59 +00:00
name: cephfs-provisioner-v{{ cephfs_provisioner_image_tag }}
namespace: {{ cephfs_provisioner_namespace }}
2018-02-13 01:55:59 +00:00
labels:
k8s-app: cephfs-provisioner
version: v{{ cephfs_provisioner_image_tag }}
spec:
replicas: 1
2018-02-13 01:55:59 +00:00
selector:
matchLabels:
k8s-app: cephfs-provisioner
version: v{{ cephfs_provisioner_image_tag }}
template:
metadata:
labels:
2018-02-13 01:55:59 +00:00
k8s-app: cephfs-provisioner
version: v{{ cephfs_provisioner_image_tag }}
spec:
containers:
- name: cephfs-provisioner
image: {{ cephfs_provisioner_image_repo }}:{{ cephfs_provisioner_image_tag }}
2018-02-13 01:55:59 +00:00
imagePullPolicy: {{ k8s_image_pull_policy }}
env:
- name: PROVISIONER_NAME
value: ceph.com/cephfs
command:
- "/usr/local/bin/cephfs-provisioner"
args:
- "-id=cephfs-provisioner-1"
2018-02-13 01:55:59 +00:00
{% if rbac_enabled %}
serviceAccount: cephfs-provisioner
2018-02-13 01:55:59 +00:00
{% endif %}