trying authentik

This commit is contained in:
Matt Reeves 2024-07-07 17:35:48 -04:00
parent 6fea02a18d
commit 300dc46ca4
6 changed files with 47 additions and 12 deletions

View file

@ -0,0 +1,9 @@
---
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: authentik-chart
namespace: flux-system
spec:
interval: 1h
url: https://charts.goauthentik.io

View file

@ -1,15 +1,17 @@
apiVersion: helm.toolkit.fluxcd.io/v2beta1
---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: authentik
namespace: default
spec:
interval: 5m
interval: 15m
chart:
spec:
chart: authentik
version: "2024.6.0"
sourceRef:
kind: HelmRepository
name: authentik
name: authentik-chart
namespace: flux-system
interval: 1m
interval: 15m

View file

@ -0,0 +1,21 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: authentik-pub
namespace: default
annotations:
kubernetes.io/ingress.class: "traefik-external"
traefik.ingress.kubernetes.io/router.entrypoints: web
traefik.ingress.kubernetes.io/router.middlewares: default-headers@kubernetescrd
spec:
rules:
- host: auth.${PUBLIC_DOMAIN}
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: authentik
port:
number: 6767

View file

@ -0,0 +1,6 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- helmrelease.yaml
- ingress.yaml

View file

@ -0,0 +1,5 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- authentik

View file

@ -1,8 +0,0 @@
apiVersion: source.toolkit.fluxcd.io/v1
kind: GitRepository
metadata:
name: authentik
namespace: default
spec:
interval: 5m
url: https://github.com/goauthentik/helm