forked from ooraini/oidc-auth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yaml
38 lines (38 loc) · 1.18 KB
/
deployment.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: oidc-auth
spec:
template:
spec:
containers:
- name: oidc-auth
image: oidc-auth
ports:
- containerPort: 80
name: http
envFrom:
- secretRef:
name: oidc-auth
env:
- name: HEADER_Authorization
value: "join(' ', ['Bearer', raw])"
- name: HEADER_X-Auth-Request-Subject
value: "sub"
- name: HEADER_X-Auth-Request-User
value: "name"
- name: HEADER_X-Auth-Request-Preferred-Username
value: "preferred_username"
- name: HEADER_X-Auth-Request-Email
value: "email"
- name: HEADER_X-Auth-Request-Groups
value: "join(',', groups)"
- name: DEFAULT_HEADERS
value: Authorization,X-Auth-Request-Subject,X-Auth-Request-User,X-Auth-Request-Preferred-Username,X-Auth-Request-Email,X-Auth-Request-Groups
resources:
requests:
cpu: "250m"
memory: "64Mi"
limits:
cpu: "250m"
memory: "64Mi"