-
Notifications
You must be signed in to change notification settings - Fork 0
/
haproxy-ingress-devops.yaml
55 lines (51 loc) · 1.32 KB
/
haproxy-ingress-devops.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: haproxy-ingress-devops
namespace: haproxy-controller-devops
labels:
run: haproxy-ingress
spec:
replicas: 3
selector:
matchLabels:
run: haproxy-ingress
template:
metadata:
labels:
run: haproxy-ingress
spec:
serviceAccountName: haproxy-service-account-devops
containers:
- name: ingress-container-devops
image: haproxytech/kubernetes-ingress
args:
- --default-backend-service=haproxy-controller-devops/service-backend-devops
resources:
requests:
memory: "50Mi"
cpu: "500m"
livenessProbe:
httpGet:
path: /healthz
port: 1024
initialDelaySeconds: 5
periodSeconds: 5
env:
- name: TZ
value: Etc/UTC
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
ports:
- name: http
containerPort: 80
- name: https
containerPort: 443
- name: stat
containerPort: 1024