-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkube.yaml
More file actions
72 lines (72 loc) · 1.44 KB
/
kube.yaml
File metadata and controls
72 lines (72 loc) · 1.44 KB
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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: loadbalancer
labels:
app: loadbalancer
version: v1
spec:
replicas: 2
template:
metadata:
labels:
app: loadbalancer
version: v1
spec:
volumes:
- name: ssl-cert
secret:
secretName: ssl-certs
containers:
- image: thehumaneffort/kube-haproxy-lb:0.4
resources:
requests:
memory: "64Mi"
cpu: "25m"
limits:
memory: "128Mi"
cpu: "100m"
volumeMounts:
- name: ssl-cert
mountPath: /dev/ssl-cert
readOnly: true
imagePullPolicy: Always
livenessProbe:
httpGet:
path: /healthz
port: 8081
scheme: HTTP
initialDelaySeconds: 30
timeoutSeconds: 5
name: haproxy
ports:
- containerPort: 80
hostPort: 80
protocol: TCP
- containerPort: 443
hostPort: 443
protocol: TCP
args:
- --ssl-cert=/dev/ssl-cert/
---
apiVersion: v1
kind: Service
metadata:
labels:
app: loadbalancer
version: v1
name: loadbalancer
spec:
ports:
- name: port-2
port: 443
protocol: TCP
targetPort: 443
- name: port-1
port: 80
protocol: TCP
targetPort: 80
selector:
app: loadbalancer
version: v1
type: LoadBalancer