2024-02-12 05:46:12 +00:00
|
|
|
---
|
2024-12-15 03:19:33 +00:00
|
|
|
apiVersion: codemowers.cloud/v1beta1
|
|
|
|
kind: OIDCClient
|
2024-02-12 05:46:12 +00:00
|
|
|
metadata:
|
|
|
|
name: whoami-oidc
|
2024-12-15 03:19:33 +00:00
|
|
|
namespace: whoami-oidc
|
2024-02-12 05:46:12 +00:00
|
|
|
spec:
|
2024-12-15 03:19:33 +00:00
|
|
|
displayName: Whoami OIDC
|
2024-02-12 05:46:12 +00:00
|
|
|
uri: https://whoami-oidc.k-space.ee
|
|
|
|
redirectUris:
|
2024-02-12 06:13:05 +00:00
|
|
|
- https://whoami-oidc.k-space.ee/auth/callback
|
2024-02-12 05:46:12 +00:00
|
|
|
grantTypes:
|
|
|
|
- authorization_code
|
|
|
|
- refresh_token
|
|
|
|
responseTypes:
|
|
|
|
- code
|
|
|
|
availableScopes:
|
|
|
|
- openid
|
|
|
|
- profile
|
|
|
|
pkce: false
|
|
|
|
---
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: whoami-oidc
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/name: whoami-oidc
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
revisionHistoryLimit: 0
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app.kubernetes.io/name: whoami-oidc
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/name: whoami-oidc
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: whoami-oidc
|
2024-02-12 06:49:45 +00:00
|
|
|
image: harbor.k-space.ee/rasmus/oidctest:latest@sha256:55927b9a50580fb087277af25fbc492b5ab4abcc1926c29ed40c190a99ced77b
|
2024-02-12 05:46:12 +00:00
|
|
|
env:
|
2024-02-12 06:13:05 +00:00
|
|
|
- name: OIDC_ROOT_URL
|
|
|
|
value: https://whoami-oidc.k-space.ee
|
|
|
|
- name: OIDC_PROVIDER
|
2024-02-12 05:46:12 +00:00
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: oidc-client-whoami-oidc-owner-secrets
|
|
|
|
key: OIDC_GATEWAY_URI
|
2024-02-12 06:13:05 +00:00
|
|
|
- name: OIDC_CLIENT_ID
|
2024-02-12 05:46:12 +00:00
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: oidc-client-whoami-oidc-owner-secrets
|
|
|
|
key: OIDC_CLIENT_ID
|
2024-02-12 06:13:05 +00:00
|
|
|
- name: OIDC_CLIENT_SECRET
|
2024-02-12 05:46:12 +00:00
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: oidc-client-whoami-oidc-owner-secrets
|
|
|
|
key: OIDC_CLIENT_SECRET
|
|
|
|
ports:
|
2024-02-12 06:13:05 +00:00
|
|
|
- containerPort: 9009
|
2024-02-12 05:46:12 +00:00
|
|
|
name: http
|
2024-02-12 06:49:45 +00:00
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
cpu: "1"
|
|
|
|
memory: "512Mi"
|
2024-02-12 05:46:12 +00:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: whoami-oidc
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
app.kubernetes.io/name: whoami-oidc
|
|
|
|
ports:
|
|
|
|
- port: 80
|
|
|
|
name: http
|
|
|
|
targetPort: http
|
|
|
|
---
|
|
|
|
apiVersion: networking.k8s.io/v1
|
|
|
|
kind: Ingress
|
|
|
|
metadata:
|
|
|
|
name: whoami-oidc
|
|
|
|
annotations:
|
|
|
|
kubernetes.io/ingress.class: traefik
|
|
|
|
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
|
|
|
traefik.ingress.kubernetes.io/router.tls: "true"
|
|
|
|
external-dns.alpha.kubernetes.io/target: traefik.k-space.ee
|
|
|
|
spec:
|
|
|
|
rules:
|
|
|
|
- host: whoami-oidc.k-space.ee
|
|
|
|
http:
|
|
|
|
paths:
|
|
|
|
- pathType: Prefix
|
|
|
|
path: "/"
|
|
|
|
backend:
|
|
|
|
service:
|
|
|
|
name: whoami-oidc
|
|
|
|
port:
|
|
|
|
name: http
|
|
|
|
tls:
|
|
|
|
- hosts:
|
|
|
|
- "*.k-space.ee"
|