-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yaml.tpl
80 lines (80 loc) · 2.2 KB
/
deployment.yaml.tpl
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: gitops-sample-server
spec:
replicas: 2
revisionHistoryLimit: 2
selector:
matchLabels:
app: gitops-sample-server
template:
metadata:
labels:
app: gitops-sample-server
spec:
containers:
- name: gitops-sample-server
image: gcr.io/PROJECT_ID/app:COMMIT_SHA
command: ["/gitops-sample-server"]
imagePullPolicy: Always
resources:
limits:
cpu: 500m
memory: 1000Mi
requests:
cpu: 200m
memory: 500Mi
ports:
- containerPort: 8080
envFrom:
- secretRef:
name: env-secret
readinessProbe:
exec:
command: ["/bin/grpc_health_probe", "-addr=:8080"]
initialDelaySeconds: 1
livenessProbe:
exec:
command: ["/bin/grpc_health_probe", "-addr=:8080"]
initialDelaySeconds: 1
- name: envoy-proxy
image: envoyproxy/envoy-alpine:v1.14.4
command: ["/bin/sh", "-c", "/usr/local/bin/envoy -c /etc/envoy/envoy.yaml"]
resources:
limits:
cpu: 500m
memory: 500Mi
requests:
cpu: 100m
memory: 100Mi
ports:
- name: app
containerPort: 10000
- name: envoy-admin
containerPort: 8001
volumeMounts:
- name: envoy-volume
mountPath: /etc/envoy
readinessProbe:
httpGet:
scheme: HTTP
path: /healthz
httpHeaders:
- name: x-envoy-livenessprobe
value: healthz
port: 10000
initialDelaySeconds: 3
livenessProbe:
httpGet:
scheme: HTTP
path: /healthz
httpHeaders:
- name: x-envoy-livenessprobe
value: healthz
port: 10000
initialDelaySeconds: 10
volumes:
- name: envoy-volume
configMap:
name: envoy-gitops-sample-server-config