create dashboard access

This commit is contained in:
Steffen Illium 2024-03-27 14:45:08 +01:00
parent 2dc6e3f460
commit 437a4158ce
4 changed files with 28 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1,5 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: dashboard-user
namespace: kubernetes-dashboard

View File

@ -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

View File

@ -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: