-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhanoproxy.yaml
119 lines (100 loc) · 2.82 KB
/
hanoproxy.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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
GlobalOptions:
EnableRecursiveDnsServer: true
UpStreamDnsServer: "1.1.1.1"
HADomain: "ha.local" #domain that supports HealthCheck.
ListenPort: "53" #udp
ListenIP: "0.0.0.0"
TTL: "10" #Seconds
UpdateInterval: "60" #Seconds
DnsRecords:
##################################################
############ HTTP Check (round robin) ############
- Name: "www"
ServiceType: "http"
Options:
CheckForHealth: true
Expected_Response_Code: 200
RetryCount: 1
Ip:
- Addr: "10.1.1.1"
Url: "http://10.1.1.1"
- Addr: "10.1.1.2"
Url: "https://www.mywebsite.com"
##################################################
########## HTTP Check (Active-Passive) ###########
- Name: "portal"
ServiceType: "http"
Options:
CheckForHealth: true
Expected_Response_Code: 200
RetryCount: 1
LBmethod: "active-passive"
Ip:
- Addr: "10.1.1.1"
Url: "http://10.1.1.1"
- Addr: "10.1.1.2"
Url: "https://www.mywebsite.com"
##################################################
############## PostgreSQL example #################
- Name: "database"
ServiceType: "postgres"
Options:
CheckForHealth: true
MasterOnly: true
SlaveOnly: false
LBmethod: "active-passive"
Ip:
- Addr: "10.10.10.1"
Port: "5432"
UserName: "postgres"
Password: "pass"
- Addr: "10.10.10.2"
Port: "5432"
UserName: "postgres"
Password: "pass"
##################################################
############# Redis Sentinel example #############
- Name: "myredis"
ServiceType: "sentinel"
Options:
CheckForHealth: true
SentinelMonitorMasterName: "mymaster"
Ip:
- Addr: "192.168.3.68" #predefined master ip (optional, it automatically detected by server)
Sentinels:
- Addr: "192.168.3.5"
Port: "26379"
Password: "auth_pass"
- Addr: "192.168.3.6"
Port: "26379"
Password: "auth_pass"
##################################################
################### TCP Check ####################
- Name: "imap"
ServiceType: "tcp"
Options:
CheckForHealth: true
RetryCount: 1
Ip:
- Addr: "10.20.30.1"
port: "143"
- Addr: "10.20.30.2"
port: "143"
##################################################
################# No Health Check ################
- Name: "blog"
ServiceType: "none"
Options:
CheckForHealth: false
Ip:
- Addr: "10.10.1.1"
- Addr: "10.10.1.2"
##################################################
# default address for not declared records ( like * record) #
- Name: ""
ServiceType: "none"
Options:
CheckForHealth: false
Ip:
- Addr: "192.168.6.6"
- Addr: "192.168.7.7"