You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1012 B

  1. ---
  2. apiVersion: apps/v1
  3. kind: ReplicaSet
  4. metadata:
  5. name: cephfs-provisioner-v{{ cephfs_provisioner_image_tag }}
  6. namespace: {{ cephfs_provisioner_namespace }}
  7. labels:
  8. k8s-app: cephfs-provisioner
  9. version: v{{ cephfs_provisioner_image_tag }}
  10. spec:
  11. replicas: 1
  12. selector:
  13. matchLabels:
  14. k8s-app: cephfs-provisioner
  15. version: v{{ cephfs_provisioner_image_tag }}
  16. template:
  17. metadata:
  18. labels:
  19. k8s-app: cephfs-provisioner
  20. version: v{{ cephfs_provisioner_image_tag }}
  21. spec:
  22. containers:
  23. - name: cephfs-provisioner
  24. image: {{ cephfs_provisioner_image_repo }}:{{ cephfs_provisioner_image_tag }}
  25. imagePullPolicy: {{ k8s_image_pull_policy }}
  26. env:
  27. - name: PROVISIONER_NAME
  28. value: ceph.com/cephfs
  29. command:
  30. - "/usr/local/bin/cephfs-provisioner"
  31. args:
  32. - "-id=cephfs-provisioner-1"
  33. {% if rbac_enabled %}
  34. serviceAccount: cephfs-provisioner
  35. {% endif %}