mirror of
https://github.com/lordmathis/dev-cluster.git
synced 2025-12-22 08:34:22 +00:00
Add dashboard service account
This commit is contained in:
@@ -10,8 +10,6 @@ spec:
|
||||
routes:
|
||||
- match: Host(`${K8S_DASHBOARD_DOMAIN}`)
|
||||
kind: Rule
|
||||
middlewares:
|
||||
- name: "auth-authelia@kubernetescrd"
|
||||
services:
|
||||
- name: dashboard-kong-proxy
|
||||
port: 443
|
||||
|
||||
@@ -7,6 +7,7 @@ resources:
|
||||
- ../../base/dashboard
|
||||
- release.yaml
|
||||
- ingress.yaml
|
||||
- service-account.yaml
|
||||
|
||||
configurations:
|
||||
- kustomizeconfig.yaml
|
||||
|
||||
18
apps/prod/dashboard/service-account.yaml
Normal file
18
apps/prod/dashboard/service-account.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: admin-user
|
||||
namespace: dashboard
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: admin-user
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: ClusterRole
|
||||
name: cluster-admin
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: admin-user
|
||||
namespace: dashboard
|
||||
Reference in New Issue
Block a user