2023-02-27 09:36:36 +01:00
|
|
|
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:
|
2023-11-02 18:32:37 +01:00
|
|
|
- image: reg.cadoles.com/cadoles/oidc-test:2023.11.2-stable.1831.8496a4e
|
2023-02-27 09:36:36 +01:00
|
|
|
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
|
2023-11-02 18:32:37 +01:00
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: app-oidc-secret
|
|
|
|
key: client_id
|
2023-02-27 09:36:36 +01:00
|
|
|
- name: OIDC_CLIENT_SECRET
|
2023-11-02 18:32:37 +01:00
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: app-oidc-secret
|
|
|
|
key: client_secret
|
2023-02-27 09:36:36 +01:00
|
|
|
- name: OIDC_ISSUER_URL
|
2023-11-02 18:32:37 +01:00
|
|
|
value: http://hydra:4444
|
2023-02-27 09:36:36 +01:00
|
|
|
- name: OIDC_REDIRECT_URL
|
2023-11-02 18:32:37 +01:00
|
|
|
value: https://ssokustom
|
2023-02-27 09:36:36 +01:00
|
|
|
- name: OIDC_POST_LOGOUT_REDIRECT_URL
|
2023-11-02 18:32:37 +01:00
|
|
|
value: https://ssokustom
|
|
|
|
- name: OIDC_SKIP_ISSUER_VERIFICATION
|
|
|
|
value: "true"
|
2023-02-27 09:36:36 +01:00
|
|
|
restartPolicy: Always
|