-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdeploy-ipfailover.yaml
90 lines (90 loc) · 2.43 KB
/
deploy-ipfailover.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
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
ipfailover: ipfailover
name: ipfailover
namespace: default
spec:
progressDeadlineSeconds: 600
replicas: 3
revisionHistoryLimit: 10
selector:
matchLabels:
ipfailover: ipfailover
strategy:
activeDeadlineSeconds: 21600
recreateParams:
timeoutSeconds: 600
resources: {}
type: Recreate
template:
metadata:
creationTimestamp: null
labels:
ipfailover: ipfailover
spec:
containers:
- env:
- name: OPENSHIFT_HA_CHECK_INTERVAL
value: "2"
- name: OPENSHIFT_HA_CHECK_SCRIPT
- name: OPENSHIFT_HA_CONFIG_NAME
value: ipfailover
- name: OPENSHIFT_HA_IPTABLES_CHAIN
value: INPUT
- name: OPENSHIFT_HA_MONITOR_PORT
value: "8080"
- name: OPENSHIFT_HA_NETWORK_INTERFACE
- name: OPENSHIFT_HA_NOTIFY_SCRIPT
- name: OPENSHIFT_HA_PREEMPTION
value: nopreempt
- name: OPENSHIFT_HA_REPLICA_COUNT
value: "1"
- name: OPENSHIFT_HA_USE_UNICAST
value: "false"
- name: OPENSHIFT_HA_VIP_GROUPS
value: "0"
- name: OPENSHIFT_HA_VIRTUAL_IPS
value: 192.168.1.9
- name: OPENSHIFT_HA_VRRP_ID_OFFSET
value: "0"
image: registry.redhat.io/openshift3/ose-keepalived-ipfailover:v3.11.200
imagePullPolicy: IfNotPresent
livenessProbe:
exec:
command:
- pgrep
- keepalived
failureThreshold: 3
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
name: ipfailover-keepalived
ports:
- containerPort: 63000
hostPort: 63000
protocol: TCP
resources: {}
securityContext:
privileged: true
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: FallbackToLogsOnError
volumeMounts:
- mountPath: /lib/modules
name: lib-modules
readOnly: true
dnsPolicy: ClusterFirst
hostNetwork: true
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
serviceAccount: ipfailover
serviceAccountName: ipfailover
terminationGracePeriodSeconds: 30
volumes:
- hostPath:
path: /lib/modules
type: ""
name: lib-modules