-
Notifications
You must be signed in to change notification settings - Fork 0
/
haproxy.yaml
44 lines (44 loc) · 1000 Bytes
/
haproxy.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
apiVersion: v1
kind: ReplicationController
metadata:
name: service-loadbalancer
labels:
app: service-loadbalancer
version: v1
k8s-app: service-loadbalancer
spec:
replicas: 1
selector:
app: service-loadbalancer
version: v1
template:
metadata:
labels:
k8s-app: service-loadbalancer
app: service-loadbalancer
version: v1
spec:
# nodeSelector:
# role: loadbalancer
containers:
- image: gcr.io/google_containers/servicelb:0.4
imagePullPolicy: Always
livenessProbe:
httpGet:
path: /healthz
port: 8081
scheme: HTTP
initialDelaySeconds: 30
timeoutSeconds: 5
name: haproxy
ports:
# All http services
- containerPort: 80
hostPort: 80
protocol: TCP
# nginx https
- containerPort: 443
hostPort: 443
protocol: TCP
resources: {}
args: