40 lines
977 B
YAML
40 lines
977 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: oidc-test
|
|
name: oidc-test
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: oidc-test
|
|
strategy:
|
|
type: Recreate
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: oidc-test
|
|
spec:
|
|
containers:
|
|
- image: reg.cadoles.com/cadoles/oidc-test:2023.12.6-stable.1502.ebfd504
|
|
name: oidc-test
|
|
ports:
|
|
- containerPort: 8080
|
|
resources: {}
|
|
envFrom:
|
|
- configMapRef:
|
|
name: oidc-test-env
|
|
env:
|
|
- name: OIDC_CLIENT_ID
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: oidc-test-oauth2-client
|
|
key: client_id
|
|
- name: OIDC_CLIENT_SECRET
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: oidc-test-oauth2-client
|
|
key: client_secret
|
|
restartPolicy: Always
|