-
Notifications
You must be signed in to change notification settings - Fork 11
/
004-deployment.yaml
96 lines (96 loc) · 2.85 KB
/
004-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
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
---
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: kube-system
name: traefik-forward-auth
labels:
app: traefik-forward-auth
spec:
replicas: 1
selector:
matchLabels:
app: traefik-forward-auth
template:
metadata:
labels:
app: traefik-forward-auth
annotations:
container.apparmor.security.beta.kubernetes.io/traefik-forward-auth: runtime/default
spec:
containers:
- name: traefik-forward-auth
image: thomseddon/traefik-forward-auth
imagePullPolicy: Always
securityContext:
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 65534
runAsGroup: 65534
capabilities:
drop:
- ALL
livenessProbe:
failureThreshold: 3
tcpSocket:
port: 4181
initialDelaySeconds: 10
periodSeconds: 10
resources:
limits:
memory: '10Mi'
cpu: '100m'
ports:
- name: http
containerPort: 4181
env:
- name: PROVIDERS_OIDC_CLIENT_SECRET
valueFrom:
secretKeyRef:
name: traefik-forward-auth
key: PROVIDERS_OIDC_CLIENT_SECRET
- name: SECRET
valueFrom:
secretKeyRef:
name: traefik-forward-auth
key: SECRET
- name: DEFAULT_PROVIDER
valueFrom:
configMapKeyRef:
name: traefik-forward-auth
key: DEFAULT_PROVIDER
- name: PROVIDERS_OIDC_ISSUER_URL
valueFrom:
configMapKeyRef:
name: traefik-forward-auth
key: PROVIDERS_OIDC_ISSUER_URL
- name: PROVIDERS_OIDC_CLIENT_ID
valueFrom:
configMapKeyRef:
name: traefik-forward-auth
key: PROVIDERS_OIDC_CLIENT_ID
- name: INSECURE_COOKIE
valueFrom:
configMapKeyRef:
name: traefik-forward-auth
key: INSECURE_COOKIE
- name: COOKIE_DOMAIN
valueFrom:
configMapKeyRef:
name: traefik-forward-auth
key: COOKIE_DOMAIN
- name: DOMAINS
valueFrom:
configMapKeyRef:
name: traefik-forward-auth
key: DOMAINS
- name: AUTH_HOST
valueFrom:
configMapKeyRef:
name: traefik-forward-auth
key: AUTH_HOST
- name: URL_PATH
valueFrom:
configMapKeyRef:
name: traefik-forward-auth
key: URL_PATH