-
Notifications
You must be signed in to change notification settings - Fork 184
/
sso-proxy-deployment.yml
81 lines (81 loc) · 2.24 KB
/
sso-proxy-deployment.yml
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: sso-proxy
labels:
k8s-app: sso-proxy
namespace: sso
spec:
replicas: 1
template:
metadata:
labels:
k8s-app: sso-proxy
spec:
containers:
- image: buzzfeed/sso-dev:latest
name: sso-proxy
command: ["/bin/sso-proxy"]
ports:
- containerPort: 4180
env:
- name: EMAIL_DOMAIN
value: 'mydomain.com'
- name: UPSTREAM_CONFIGS
value: /sso/upstream_configs.yml
- name: PROVIDER_URL
value: https://sso-auth.mydomain.com
- name: CLIENT_ID
valueFrom:
secretKeyRef:
name: proxy-client-id
key: proxy-client-id
- name: CLIENT_SECRET
valueFrom:
secretKeyRef:
name: proxy-client-secret
key: proxy-client-secret
- name: AUTH_CODE_SECRET
valueFrom:
secretKeyRef:
name: proxy-auth-code-secret
key: proxy-auth-code-secret
- name: COOKIE_SECRET
valueFrom:
secretKeyRef:
name: proxy-cookie-secret
key: proxy-cookie-secret
# STATSD_HOST and STATSD_PORT must be defined or the app wont launch, they dont need to be a real host / port, but they do need to be defined.
- name: STATSD_HOST
value: localhost
- name: STATSD_PORT
value: "11111"
- name: COOKIE_SECURE
value: "false"
- name: CLUSTER
value: dev
- name: VIRTUAL_HOST
value: "*.sso.mydomain.com"
readinessProbe:
httpGet:
path: /ping
port: 4180
scheme: HTTP
livenessProbe:
httpGet:
path: /ping
port: 4180
scheme: HTTP
initialDelaySeconds: 10
timeoutSeconds: 1
resources:
limits:
memory: "256Mi"
cpu: "200m"
volumeMounts:
- name: upstream-configs
mountPath: /sso
volumes:
- name: upstream-configs
configMap:
name: upstream-configs