49 lines
1.3 KiB
YAML
49 lines
1.3 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
io.kompose.service: app
|
|
name: app
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
io.kompose.service: app
|
|
strategy:
|
|
type: Recreate
|
|
template:
|
|
metadata:
|
|
labels:
|
|
io.kompose.service: app
|
|
spec:
|
|
containers:
|
|
- image: reg.cadoles.com/cadoles/oidc-test:2023.11.2-stable.1831.8496a4e
|
|
name: app
|
|
ports:
|
|
- containerPort: 8080
|
|
resources: {}
|
|
env:
|
|
- name: LOG_LEVEL
|
|
value: "0"
|
|
- name: HTTP_ADDRESS
|
|
value: 0.0.0.0:8080
|
|
- name: OIDC_CLIENT_ID
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: app-oidc-secret
|
|
key: client_id
|
|
- name: OIDC_CLIENT_SECRET
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: app-oidc-secret
|
|
key: client_secret
|
|
- name: OIDC_ISSUER_URL
|
|
value: http://hydra:4444
|
|
- name: OIDC_REDIRECT_URL
|
|
value: https://ssokustom
|
|
- name: OIDC_POST_LOGOUT_REDIRECT_URL
|
|
value: https://ssokustom
|
|
- name: OIDC_SKIP_ISSUER_VERIFICATION
|
|
value: "true"
|
|
restartPolicy: Always
|