67 lines
1.6 KiB
YAML
67 lines
1.6 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.6-stable.1557.e16b905
|
||
|
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/oauth2/callback
|
||
|
- name: OIDC_POST_LOGOUT_REDIRECT_URL
|
||
|
value: https://ssokustom
|
||
|
- name: OIDC_SKIP_ISSUER_VERIFICATION
|
||
|
value: "true"
|
||
|
- name: OIDC_INSECURE_SKIP_VERIFY
|
||
|
value: "true"
|
||
|
restartPolicy: Always
|
||
|
---
|
||
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
labels:
|
||
|
io.kompose.service: app
|
||
|
name: app
|
||
|
spec:
|
||
|
ports:
|
||
|
- name: http
|
||
|
port: 8080
|
||
|
targetPort: 8080
|
||
|
selector:
|
||
|
io.kompose.service: app
|
||
|
status:
|
||
|
loadBalancer: {}
|