Add Kubernetes dashboard

This commit is contained in:
2025-05-14 21:10:56 +02:00
parent d951418609
commit 5fc041fa67
9 changed files with 99 additions and 25 deletions

View File

@@ -0,0 +1,18 @@
# /apps/prod/dashboard/ingress.yaml
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: dashboard
namespace: dashboard
spec:
entryPoints:
- websecure
routes:
- match: Host(`${K8S_DASHBOARD_DOMAIN}`)
kind: Rule
middlewares:
- name: authelia
namespace: auth
services:
- name: kubernetes-dashboard
port: 80

View File

@@ -0,0 +1,12 @@
# /apps/prod/dashboard/kustomization.yaml
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: dashboard
resources:
- ../../base/dashboard
- release.yaml
- ingress.yaml
configurations:
- kustomizeconfig.yaml

View File

@@ -0,0 +1,7 @@
# /apps/prod/dashboard/kustomizeconfig.yaml
nameReference:
- kind: ConfigMap
version: v1
fieldSpecs:
- path: spec/valuesFrom/name
kind: HelmRelease

View File

@@ -0,0 +1,18 @@
# /apps/prod/dashboard/release.yaml
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: dashboard
namespace: dashboard
spec:
interval: 12h
chart:
spec:
chart: kubernetes-dashboard
version: "7.12.0"
sourceRef:
kind: HelmRepository
name: dashboard
namespace: dashboard
interval: 12h