mirror of
https://github.com/lordmathis/dev-cluster.git
synced 2025-12-22 16:44:24 +00:00
Add dashboard service account
This commit is contained in:
@@ -10,8 +10,6 @@ spec:
|
|||||||
routes:
|
routes:
|
||||||
- match: Host(`${K8S_DASHBOARD_DOMAIN}`)
|
- match: Host(`${K8S_DASHBOARD_DOMAIN}`)
|
||||||
kind: Rule
|
kind: Rule
|
||||||
middlewares:
|
|
||||||
- name: "auth-authelia@kubernetescrd"
|
|
||||||
services:
|
services:
|
||||||
- name: dashboard-kong-proxy
|
- name: dashboard-kong-proxy
|
||||||
port: 443
|
port: 443
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ resources:
|
|||||||
- ../../base/dashboard
|
- ../../base/dashboard
|
||||||
- release.yaml
|
- release.yaml
|
||||||
- ingress.yaml
|
- ingress.yaml
|
||||||
|
- service-account.yaml
|
||||||
|
|
||||||
configurations:
|
configurations:
|
||||||
- kustomizeconfig.yaml
|
- 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