2022-08-16 09:40:54 +00:00
|
|
|
---
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: whoami
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
revisionHistoryLimit: 0
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: whoami
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: whoami
|
|
|
|
spec:
|
|
|
|
containers:
|
2024-02-12 03:40:59 +00:00
|
|
|
- image: traefik/whoami
|
2022-08-16 09:40:54 +00:00
|
|
|
name: whoami
|
|
|
|
ports:
|
|
|
|
- containerPort: 80
|
|
|
|
protocol: TCP
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: whoami
|
|
|
|
labels:
|
|
|
|
app: whoami
|
|
|
|
spec:
|
|
|
|
type: ClusterIP
|
|
|
|
selector:
|
|
|
|
app: whoami
|
|
|
|
ports:
|
|
|
|
- name: whoami-http
|
|
|
|
port: 80
|
|
|
|
targetPort: 80
|
|
|
|
---
|
|
|
|
apiVersion: networking.k8s.io/v1
|
|
|
|
kind: Ingress
|
|
|
|
metadata:
|
|
|
|
name: whoami
|
|
|
|
annotations:
|
|
|
|
external-dns.alpha.kubernetes.io/target: traefik.k-space.ee
|
|
|
|
kubernetes.io/ingress.class: traefik
|
|
|
|
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
|
|
|
traefik.ingress.kubernetes.io/router.tls: "true"
|
2023-08-28 18:10:28 +00:00
|
|
|
traefik.ingress.kubernetes.io/router.middlewares: oidc-gateway-whoami@kubernetescrd
|
2022-08-16 09:40:54 +00:00
|
|
|
spec:
|
|
|
|
tls:
|
|
|
|
- hosts:
|
2022-10-14 11:26:03 +00:00
|
|
|
- "*.k-space.ee"
|
2022-08-16 09:40:54 +00:00
|
|
|
rules:
|
|
|
|
- host: "whoami.k-space.ee"
|
|
|
|
http:
|
|
|
|
paths:
|
|
|
|
- pathType: Prefix
|
|
|
|
path: /
|
|
|
|
backend:
|
|
|
|
service:
|
|
|
|
name: whoami
|
|
|
|
port:
|
|
|
|
number: 80
|
2023-06-29 11:48:52 +00:00
|
|
|
---
|
|
|
|
apiVersion: codemowers.io/v1alpha1
|
|
|
|
kind: OIDCGWMiddlewareClient
|
|
|
|
metadata:
|
|
|
|
name: whoami
|
|
|
|
spec:
|
|
|
|
displayName: Who-Am-I
|
|
|
|
uri: 'https://whoami.k-space.ee'
|
|
|
|
headerMapping:
|
|
|
|
email: Remote-Email
|
|
|
|
groups: Remote-Groups
|
|
|
|
name: Remote-Name
|
|
|
|
user: Remote-Username
|