-
Notifications
You must be signed in to change notification settings - Fork 0
/
k8s-proxy.yml
95 lines (95 loc) · 2.64 KB
/
k8s-proxy.yml
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
# HTTP Ingress
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: k8s-proxy
spec:
rules:
- http:
paths:
- path: /*
backend:
serviceName: k8s-proxy
servicePort: 80
---
# Service
kind: Service
apiVersion: v1
metadata:
name: k8s-proxy
spec:
selector:
app: k8s-proxy
type: LoadBalancer
ports:
- port: 80
targetPort: 80
protocol: TCP
name: k8s-proxy
- port: 443
targetPort: 443
protocol: TCP
name: k8s-proxy-ssl
---
# Deployment
kind: Deployment
apiVersion: apps/v1beta1
metadata:
name: k8s-proxy
labels:
app: k8s-proxy
spec:
replicas: 1
revisionHistoryLimit: 2
strategy:
rollingUpdate:
maxSurge: 3
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
name: k8s-proxy
labels:
app: k8s-proxy
spec:
containers:
- name: k8s-proxy
image: mkenney/k8s-proxy:latest
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
- containerPort: 443
env:
- name: LOG_LEVEL
value: info
- name: K8S_PROXY_PORT
value: "80"
- name: K8S_PROXY_SSLPORT
value: "443"
- name: K8S_PROXY_TIMEOUT
value: "10"
resources:
limits:
cpu: 0.5
memory: 256Mi
requests:
cpu: 0.1
memory: 128Mi
livenessProbe:
httpGet:
path: "/k8s-alive"
port: 80
scheme: HTTP
failureThreshold: 2
initialDelaySeconds: 2
periodSeconds: 10
timeoutSeconds: 5
readinessProbe:
httpGet:
path: "/k8s-ready"
port: 80
scheme: HTTP
failureThreshold: 2
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 5