auth migra: whoami

This commit is contained in:
rasmus 2024-08-03 04:02:06 +03:00
parent 6879a4e5a5
commit 41da5931f9
2 changed files with 26 additions and 6 deletions

View File

@ -0,0 +1,20 @@
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: whoami
namespace: argocd
spec:
project: default
source:
repoURL: 'git@git.k-space.ee:k-space/kube.git'
path: whoami
targetRevision: HEAD
destination:
server: 'https://kubernetes.default.svc'
namespace: whoami
syncPolicy:
automated:
prune: true
syncOptions:
- CreateNamespace=true

View File

@ -45,11 +45,8 @@ metadata:
kubernetes.io/ingress.class: traefik kubernetes.io/ingress.class: traefik
traefik.ingress.kubernetes.io/router.entrypoints: websecure traefik.ingress.kubernetes.io/router.entrypoints: websecure
traefik.ingress.kubernetes.io/router.tls: "true" traefik.ingress.kubernetes.io/router.tls: "true"
traefik.ingress.kubernetes.io/router.middlewares: oidc-gateway-whoami@kubernetescrd traefik.ingress.kubernetes.io/router.middlewares: whoami-whoami@kubernetescrd
spec: spec:
tls:
- hosts:
- "*.k-space.ee"
rules: rules:
- host: "whoami.k-space.ee" - host: "whoami.k-space.ee"
http: http:
@ -61,9 +58,12 @@ spec:
name: whoami name: whoami
port: port:
number: 80 number: 80
tls:
- hosts:
- "*.k-space.ee"
--- ---
apiVersion: codemowers.io/v1alpha1 apiVersion: codemowers.cloud/v1beta1
kind: OIDCGWMiddlewareClient kind: OIDCMiddlewareClient
metadata: metadata:
name: whoami name: whoami
spec: spec: