sso-kustom/examples/authenticated-app/resources/app-deployment.yaml

49 lines
1.3 KiB
YAML
Raw Normal View History

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:
- 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
valueFrom:
secretKeyRef:
name: app-oidc-secret
key: client_id
2023-02-27 09:36:36 +01:00
- name: OIDC_CLIENT_SECRET
valueFrom:
secretKeyRef:
name: app-oidc-secret
key: client_secret
2023-02-27 09:36:36 +01:00
- name: OIDC_ISSUER_URL
value: http://hydra:4444
2023-02-27 09:36:36 +01:00
- name: OIDC_REDIRECT_URL
value: https://ssokustom
2023-02-27 09:36:36 +01:00
- name: OIDC_POST_LOGOUT_REDIRECT_URL
value: https://ssokustom
- name: OIDC_SKIP_ISSUER_VERIFICATION
value: "true"
2023-02-27 09:36:36 +01:00
restartPolicy: Always