mirror of
https://github.com/michaelthomson0797/fleet-infra.git
synced 2026-02-04 13:09:53 +00:00
18
bootstrap/kustomizations/kustomization-keycloak.yaml
Normal file
18
bootstrap/kustomizations/kustomization-keycloak.yaml
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||||
|
kind: Kustomization
|
||||||
|
metadata:
|
||||||
|
name: keycloak
|
||||||
|
namespace: flux-system
|
||||||
|
spec:
|
||||||
|
interval: 15m
|
||||||
|
path: ./keycloak
|
||||||
|
prune: true # remove any elements later removed from the above path
|
||||||
|
timeout: 2m # if not set, this defaults to interval duration, which is 1h
|
||||||
|
sourceRef:
|
||||||
|
kind: GitRepository
|
||||||
|
name: flux-system
|
||||||
|
healthChecks:
|
||||||
|
- apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
||||||
|
kind: HelmRelease
|
||||||
|
name: keycloak
|
||||||
|
namespace: keycloak
|
||||||
4
bootstrap/namespaces/namespace-keycloak.yaml
Normal file
4
bootstrap/namespaces/namespace-keycloak.yaml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: keycloak
|
||||||
15
keycloak/dns-endpoint.yaml
Normal file
15
keycloak/dns-endpoint.yaml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
apiVersion: externaldns.k8s.io/v1alpha1
|
||||||
|
kind: DNSEndpoint
|
||||||
|
metadata:
|
||||||
|
name: keycloak.michaelthomson.dev
|
||||||
|
namespace: keycloak
|
||||||
|
spec:
|
||||||
|
endpoints:
|
||||||
|
- dnsName: keycloak.michaelthomson.dev
|
||||||
|
recordTTL: 180
|
||||||
|
recordType: CNAME
|
||||||
|
targets:
|
||||||
|
- michaelthomson.ddns.net
|
||||||
|
providerSpecific:
|
||||||
|
- name: external-dns.alpha.kubernetes.io/cloudflare-proxied
|
||||||
|
value: "true"
|
||||||
31
keycloak/helmrelease-keycloak.yaml
Normal file
31
keycloak/helmrelease-keycloak.yaml
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: keycloak
|
||||||
|
namespace: keycloak
|
||||||
|
spec:
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: keycloak
|
||||||
|
version: 23.x
|
||||||
|
sourceRef:
|
||||||
|
kind: HelmRepository
|
||||||
|
name: bitnami
|
||||||
|
namespace: flux-system
|
||||||
|
interval: 15m
|
||||||
|
timeout: 5m
|
||||||
|
releaseName: keycloak
|
||||||
|
values:
|
||||||
|
ingress:
|
||||||
|
enabled: true
|
||||||
|
annotations:
|
||||||
|
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
||||||
|
traefik.ingress.kubernetes.io/router.tls: "true"
|
||||||
|
tls: true
|
||||||
|
extraHosts:
|
||||||
|
- name: keycloak.michaelthomson.dev
|
||||||
|
path: /
|
||||||
|
extraTls:
|
||||||
|
- hosts:
|
||||||
|
- keycloak.michaelthomson.dev
|
||||||
|
secretName: letsencrypt-wildcard-cert-michaelthomson.dev
|
||||||
Reference in New Issue
Block a user