create dashboard access
This commit is contained in:
parent
2dc6e3f460
commit
437a4158ce
@ -0,0 +1,12 @@
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: dashboard-user
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: ClusterRole
|
||||
name: cluster-admin
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: dashboard-user
|
||||
namespace: kubernetes-dashboard
|
@ -0,0 +1,5 @@
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: dashboard-user
|
||||
namespace: kubernetes-dashboard
|
@ -0,0 +1,8 @@
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: dashboard-user
|
||||
namespace: kubernetes-dashboard
|
||||
annotations:
|
||||
kubernetes.io/service-account.name: "dashboard-user"
|
||||
type: kubernetes.io/service-account-token
|
@ -5,6 +5,9 @@ namespace: kubernetes-dashboard
|
||||
|
||||
resources:
|
||||
- base/kube-dashboard-ui-ingress.yaml
|
||||
- base/kube-dashboard-user-secret.yaml
|
||||
- base/kube-dashboard-rolebinding.yaml
|
||||
- base/kube-dashboard-serviceaccount.yaml
|
||||
- https://raw.githubusercontent.com/kubernetes/dashboard/v2.7.0/aio/deploy/recommended.yaml
|
||||
|
||||
patches:
|
||||
|
Loading…
x
Reference in New Issue
Block a user