helm: add gcp ccm permissions for internal LBs (#2474)

* helm: add gcp ccm permissions
This commit is contained in:
3u13r 2023-10-19 10:57:59 +02:00 committed by GitHub
parent 0bfb4f7e11
commit 498b5d68f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 27 additions and 0 deletions

View file

@ -0,0 +1,14 @@
{{- if eq .Values.csp "GCP" -}}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: system:cloud-provider
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
subjects:
- kind: ServiceAccount
name: cloud-provider
namespace: {{ .Release.Namespace }}
{{- end -}}