forked from torchbox/kube-ldap-authn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdaemonset.yaml
80 lines (69 loc) · 1.77 KB
/
daemonset.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
# This is an example DaemonSet configuration for kube-ldap-authn. It runs it
# on the master's host network on port 8087.
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: kube-ldap-authn
namespace: kube-system
spec:
selector:
matchLabels:
app: kube-ldap-authn
template:
metadata:
labels:
app: kube-ldap-authn
spec:
nodeSelector:
node-role.kubernetes.io/master: "true"
tolerations:
- effect: NoSchedule
key: node-role.kubernetes.io/master
volumes:
- name: config
secret:
secretName: ldap-authn-config
hostNetwork: true
containers:
- name: kube-ldap-authn
image: docker.io/torchbox/kube-ldap-authn:latest
imagePullPolicy: Always
env:
- name: KUBE_LDAP_AUTHN_SETTINGS
value: /config/config.py
resources:
limits:
cpu: 250m
memory: 64Mi
requests:
cpu: 50m
memory: 64Mi
ports:
- containerPort: 8087
hostPort: 8087
name: http
protocol: TCP
livenessProbe:
failureThreshold: 2
httpGet:
path: /healthz
port: http
scheme: HTTP
initialDelaySeconds: 5
periodSeconds: 3
successThreshold: 1
timeoutSeconds: 10
readinessProbe:
failureThreshold: 2
httpGet:
path: /healthz
port: http
scheme: HTTP
initialDelaySeconds: 5
periodSeconds: 3
successThreshold: 1
timeoutSeconds: 10
# Mount the cache storage we configured above.
volumeMounts:
- mountPath: /config
name: config