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.

32 lines
1.0 KiB

  1. # This YAML file shows how to deploy the snapshot controller
  2. # The snapshot controller implements the control loop for CSI snapshot functionality.
  3. # It should be installed as part of the base Kubernetes distribution in an appropriate
  4. # namespace for components implementing base system functionality. For installing with
  5. # Vanilla Kubernetes, kube-system makes sense for the namespace.
  6. ---
  7. kind: StatefulSet
  8. apiVersion: apps/v1
  9. metadata:
  10. name: snapshot-controller
  11. namespace: kube-system
  12. spec:
  13. serviceName: "snapshot-controller"
  14. replicas: {{ snapshot_controller_replicas }}
  15. selector:
  16. matchLabels:
  17. app: snapshot-controller
  18. template:
  19. metadata:
  20. labels:
  21. app: snapshot-controller
  22. spec:
  23. serviceAccount: snapshot-controller
  24. containers:
  25. - name: snapshot-controller
  26. image: {{ snapshot_controller_image_repo }}:{{ snapshot_controller_image_tag }}
  27. args:
  28. - "--v=5"
  29. - "--leader-election=false"
  30. imagePullPolicy: {{ k8s_image_pull_policy }}