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.

74 lines
2.6 KiB

  1. kind: StatefulSet
  2. apiVersion: apps/v1
  3. metadata:
  4. name: csi-gce-pd-controller
  5. namespace: kube-system
  6. spec:
  7. serviceName: "csi-gce-pd"
  8. replicas: {{ gcp_pd_csi_controller_replicas }}
  9. selector:
  10. matchLabels:
  11. app: gcp-compute-persistent-disk-csi-driver
  12. template:
  13. metadata:
  14. labels:
  15. app: gcp-compute-persistent-disk-csi-driver
  16. spec:
  17. # Host network must be used for interaction with Workload Identity in GKE
  18. # since it replaces GCE Metadata Server with GKE Metadata Server. Remove
  19. # this requirement when issue is resolved and before any exposure of
  20. # metrics ports
  21. hostNetwork: true
  22. serviceAccountName: csi-gce-pd-controller-sa
  23. priorityClassName: csi-gce-pd-controller
  24. containers:
  25. - name: csi-provisioner
  26. image: {{ gcp_pd_csi_image_repo }}/csi-provisioner:{{ gcp_pd_csi_provisioner_image_tag }}
  27. args:
  28. - "--v=5"
  29. - "--csi-address=/csi/csi.sock"
  30. - "--feature-gates=Topology=true"
  31. # - "--run-controller-service=false" # disable the controller service of the CSI driver
  32. # - "--run-node-service=false" # disable the node service of the CSI driver
  33. volumeMounts:
  34. - name: socket-dir
  35. mountPath: /csi
  36. - name: csi-attacher
  37. image: {{ gcp_pd_csi_image_repo }}/csi-attacher:{{ gcp_pd_csi_attacher_image_tag }}
  38. args:
  39. - "--v=5"
  40. - "--csi-address=/csi/csi.sock"
  41. volumeMounts:
  42. - name: socket-dir
  43. mountPath: /csi
  44. - name: csi-resizer
  45. image: {{ gcp_pd_csi_image_repo }}/csi-resizer:{{ gcp_pd_csi_resizer_image_tag }}
  46. args:
  47. - "--v=5"
  48. - "--csi-address=/csi/csi.sock"
  49. volumeMounts:
  50. - name: socket-dir
  51. mountPath: /csi
  52. - name: gce-pd-driver
  53. # Don't change base image without changing pdImagePlaceholder in
  54. # test/k8s-integration/main.go
  55. image: {{ gcp_pd_csi_image_repo }}/gcp-compute-persistent-disk-csi-driver:{{ gcp_pd_csi_driver_image_tag }}
  56. args:
  57. - "--v=5"
  58. - "--endpoint=unix:/csi/csi.sock"
  59. env:
  60. - name: GOOGLE_APPLICATION_CREDENTIALS
  61. value: "/etc/cloud-sa/cloud-sa.json"
  62. volumeMounts:
  63. - name: socket-dir
  64. mountPath: /csi
  65. - name: cloud-sa-volume
  66. readOnly: true
  67. mountPath: "/etc/cloud-sa"
  68. volumes:
  69. - name: socket-dir
  70. emptyDir: {}
  71. - name: cloud-sa-volume
  72. secret:
  73. secretName: cloud-sa
  74. volumeClaimTemplates: []