feat(dashboard): Deploying k8s dashboard with ArgoCD

This commit is contained in:
Vegard Hagen
2023-01-08 10:57:14 +01:00
parent b4c00972e6
commit 4e717aa607
4 changed files with 25 additions and 6 deletions

View File

@@ -9,6 +9,8 @@ spec:
destinations:
- namespace: 'argocd'
server: '*'
- namespace: 'kubernetes-dashboard'
server: '*'
- namespace: 'metallb-system'
server: '*'
clusterResourceWhitelist:

21
infra/dashboard.yaml Normal file
View File

@@ -0,0 +1,21 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: dashboard
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: infrastructure
source:
path: infra/dashboard
repoURL: https://github.com/vehagn/homelab
targetRevision: HEAD
destination:
namespace: kubernetes-dashboard
name: in-cluster
syncPolicy:
automated:
selfHeal: true
syncOptions:
- CreateNamespace=true

View File

@@ -11,9 +11,4 @@ resources:
configMapGenerator:
- name: configs
files:
- configs/traefik-forward-auth.ini
secretGenerator:
- name: traefik-forward-auth-secrets
envs:
- secrets/traefik-forward-auth.env
- configs/traefik-forward-auth.ini

View File

@@ -3,4 +3,5 @@ kind: Kustomization
resources:
- arr.yaml
- dashboard.yaml
- whoami.yaml