-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yaml
62 lines (62 loc) · 1.43 KB
/
deployment.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: pimlico-proxy
labels:
app.kubernetes.io/name: pimlico-proxy
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: pimlico-proxy
template:
metadata:
# annotations:
# prometheus.io/scrape: "true"
# prometheus.io/port: "9090"
# prometheus.io/path: "/stats/prometheus"
labels:
app.kubernetes.io/name: pimlico-proxy
spec:
containers:
- name: envoy-container
image: envoyproxy/envoy:v1.28.0
args:
- --log-level
- info
- -c
- /etc/envoy/envoy.yaml
ports:
- name: http
containerPort: 8080
- name: admin
containerPort: 9090
volumeMounts:
- name: config-volume
mountPath: /etc/envoy
resources:
requests:
cpu: 100m
memory: 50Mi
lifecycle:
preStop:
exec:
command: [ "/bin/sleep", "15" ] # for graceful shutdown
terminationGracePeriodSeconds: 15
volumes:
- name: config-volume
configMap:
name: envoy-config
---
apiVersion: v1
kind: Service
metadata:
name: pimlico-proxy
spec:
selector:
app.kubernetes.io/name: pimlico-proxy
ports:
- protocol: TCP
port: 80
targetPort: http
type: ClusterIP