with traefik

This commit is contained in:
Kasper Juul Hermansen 2022-05-08 21:57:17 +02:00
parent 871e33a65b
commit 3c7194fa3c
Signed by: kjuulh
GPG Key ID: 0F95C140730F2F23
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,15 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
name: traefik
namespace: platform
spec:
interval: 30m0s
retryInterval: 30s
path: ./clank/platform/traefik
prune: true
sourceRef:
kind: GitRepository
name: traefik
namespace: flux-system

View File

@ -0,0 +1,16 @@
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: traefik-dashboard
namespace: traefik-system
spec:
entryPoints:
- web
- websecure
routes:
- match: Host(`traefik.kjuulh.app`) # Hostname to match
kind: Rule
services: # Service to redirect requests to
- name: api@internal # Special service created by Traefik pod
kind: TraefikService