This commit is contained in:
2025-09-30 14:07:33 +02:00
parent 6c9c62a582
commit 2527de0ed5
2 changed files with 34 additions and 7 deletions

View File

@@ -4,15 +4,9 @@ metadata:
name: kubernetes-dashboard-ingress
namespace: i-dashboard
annotations:
# Use this annotation if you are using the NGINX Ingress Controller
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
# Add annotations for cert-manager if you use it for TLS
# cert-manager.io/cluster-issuer: "letsencrypt-prod"
spec:
# tls:
# - hosts:
# - dashboard.your-domain.com
# secretName: dashboard-tls-cert
ingressClassName: nginx
rules:
- host: "dashboard.darkstars.local"
http:

View File

@@ -0,0 +1,33 @@
# templates/service-account.yaml
---
# ------------------- Dashboard Service Account ------------------- #
apiVersion: v1
kind: ServiceAccount
metadata:
name: dashboard-admin
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
kind: ClusterRoleBinding
metadata:
name: dashboard-admin-binding
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:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
subjects:
- kind: ServiceAccount
name: dashboard-admin
namespace: i-dashboard