traefik restructure and backup

This commit is contained in:
Steffen Illium 2024-03-26 15:26:07 +01:00
parent 5585ff5fe6
commit bbdcd9dc74
10 changed files with 55 additions and 5 deletions

View File

@ -0,0 +1,16 @@
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: argocd-ui
spec:
entryPoints:
- web
- websecure
routes:
- match: Host(`argocd.steffenillium.de`)
kind: Rule
services:
- name: argocd-server
port: 80
tls:
certResolver: myresolver

View File

@ -0,0 +1,9 @@
apiVersion: builtin
kind: HelmChartInflationGenerator
metadata:
name: traefik-ingress-controller
name: traefik-ingress-controller
namespace: traefik
releaseName: latest
repo: https://traefik.github.io/charts
valuesFile: values.yaml

View File

@ -0,0 +1,22 @@
deployment:
kind: Deployment
replicas: 1
rbac:
namespaced: false
autoscaling:
enabled: false
ingressRoute:
dashboard:
enabled: true
# Custom match rule with host domain
matchRule: Host(`tr.steffenillium.de`)
entryPoints: ["websecure", "web"]
# Add custom middlewares : authentication and redirection
# middlewares:
# - name: traefik-dashboard-auth
additionalArguments:
- "--api.insecure=true"

View File

@ -0,0 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- base/argo-cd-ui-ingress.yaml
generators:
- base/traefik-helm-chart.yaml

View File

@ -1,11 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
# - base/traefik-RBAC.yaml
# - base/traefik-clusterrole.yaml
# - base/traefik-crds.yaml
# - base/traefik-dashboard-ingress.yaml
# - base/traefik-service-account.yaml
- base/argo-cd-ui-ingress.yaml
generators: