adjust sa
This commit is contained in:
@@ -1,33 +1,18 @@
|
|||||||
# templates/service-account.yaml
|
|
||||||
---
|
|
||||||
# ------------------- Dashboard Service Account ------------------- #
|
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ServiceAccount
|
kind: ServiceAccount
|
||||||
metadata:
|
metadata:
|
||||||
name: dashboard-admin
|
name: admin-user
|
||||||
namespace: i-dashboard
|
namespace: i-dashboard
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: kubernetes-dashboard
|
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
|
||||||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
|
||||||
|
|
||||||
---
|
---
|
||||||
# ------------------- Dashboard ClusterRoleBinding ------------------- #
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: ClusterRoleBinding
|
kind: ClusterRoleBinding
|
||||||
metadata:
|
metadata:
|
||||||
name: dashboard-admin-binding
|
name: admin-user
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: kubernetes-dashboard
|
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
|
||||||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
|
||||||
roleRef:
|
roleRef:
|
||||||
apiGroup: rbac.authorization.k8s.io
|
apiGroup: rbac.authorization.k8s.io
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
name: cluster-admin
|
name: cluster-admin
|
||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: dashboard-admin
|
name: admin-user
|
||||||
namespace: i-dashboard
|
namespace: i-dashboard
|
||||||
|
|||||||
Reference in New Issue
Block a user