mirror of https://git.rancher.io/charts
38 lines
1.1 KiB
YAML
38 lines
1.1 KiB
YAML
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
name: {{ include "harvester-cloud-provider.name" . }}
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
{{- include "harvester-cloud-provider.labels" . | nindent 4 }}
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: ClusterRole
|
|
metadata:
|
|
name: {{ include "harvester-cloud-provider.name" . }}
|
|
rules:
|
|
- apiGroups: [ "" ]
|
|
resources: [ "services", "nodes", "events" ]
|
|
verbs: [ "get", "watch", "list", "update", "create", "patch" ]
|
|
- apiGroups: [ "" ]
|
|
resources: [ "nodes/status", "services/status" ]
|
|
verbs: [ "update", "patch" ]
|
|
- apiGroups: [ "coordination.k8s.io" ]
|
|
resources: [ "leases" ]
|
|
verbs: [ "get", "update", "create" ]
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: ClusterRoleBinding
|
|
metadata:
|
|
name: {{ include "harvester-cloud-provider.name" . }}
|
|
labels:
|
|
{{- include "harvester-cloud-provider.labels" . | nindent 4 }}
|
|
roleRef:
|
|
apiGroup: rbac.authorization.k8s.io
|
|
kind: ClusterRole
|
|
name: {{ include "harvester-cloud-provider.name" . }}
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: {{ include "harvester-cloud-provider.name" . }}
|
|
namespace: {{ .Release.Namespace }}
|