forked from streamshub/console
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path050-Deployment-console-dex.yaml
62 lines (58 loc) · 1.41 KB
/
050-Deployment-console-dex.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: console-dex
spec:
replicas: 1
selector:
matchLabels:
app: console-dex
template:
metadata:
labels:
app: console-dex
spec:
serviceAccountName: console-dex
volumes:
- name: config
secret:
secretName: console-dex
items:
- key: config.yaml
path: config.yaml
- name: openshift-ca
configMap:
name: kube-root-ca.crt
items:
- key: ca.crt
path: openshift.pem
containers:
- image: ghcr.io/dexidp/dex:v2.32.0
name: dex
command: ["/usr/local/bin/dex", "serve", "/etc/dex/cfg/config.yaml"]
ports:
- name: http
containerPort: 5556
volumeMounts:
- name: config
mountPath: /etc/dex/cfg
- name: openshift-ca
mountPath: /etc/ssl/openshift.pem
subPath: openshift.pem
env:
- name: OPENSHIFT_OAUTH_CLIENT_ID
valueFrom:
secretKeyRef:
name: console-dex-secrets
key: DEX_CLIENT_ID
- name: OPENSHIFT_OAUTH_CLIENT_SECRET
valueFrom:
secretKeyRef:
name: console-dex-secrets
key: DEX_CLIENT_SECRET
readinessProbe:
httpGet:
path: /healthz
port: 5556
scheme: HTTP