-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathhaproxy-keepalived.yaml
66 lines (66 loc) · 1.33 KB
/
haproxy-keepalived.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
apiVersion: v1
kind: Pod
metadata:
name: haproxy-keepalived
namespace: system
labels:
app: "haproxy-keepalived"
enable: "true"
service: "base"
spec:
hostNetwork: true
securityContext:
privileged: true
containers:
- name: haproxy
image: reg.dnt:5000/haproxy:20161016
command:
- /usr/local/sbin/haproxy
- -p
- /run/haproxy.pid
- -f
- /etc/haproxy/haproxy.cfg
- -d
resources:
limits:
cpu: 2000m
memory: 4096Mi
requests:
cpu: 1000m
memory: 2048Mi
volumeMounts:
- mountPath: /etc/haproxy/haproxy.cfg
name: haproxy-cfg
readOnly: true
- name: keepalived
image: reg.dnt:5000/keepalived:20161016
securityContext:
privileged: true
command:
- /bin/bash
- -c
- /entrypoint.sh
resources:
limits:
cpu: 1000m
memory: 2048Mi
requests:
cpu: 500m
memory: 1024Mi
volumeMounts:
- mountPath: /etc/keepalived
name: keepalived-cfg
readOnly: true
- mountPath: /entrypoint.sh
name: entrypoint
readOnly: true
volumes:
- hostPath:
path: /etc/haproxy/haproxy.cfg
name: haproxy-cfg
- hostPath:
path: /etc/keepalived
name: keepalived-cfg
- hostPath:
path: /etc/keepalived/entrypoint.sh
name: entrypoint