forked from kapicorp/kapitan-reference
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgke-pvm-killer-bundle.yml
76 lines (76 loc) · 2.01 KB
/
gke-pvm-killer-bundle.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
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
manifests.kapicorp.com/generated: 'true'
labels:
app.kapicorp.dev/component: gke-pvm-killer
name: gke-pvm-killer
name: gke-pvm-killer
namespace: gke-pvm-killer
spec:
replicas: 1
selector:
matchLabels:
name: gke-pvm-killer
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
name: gke-pvm-killer
spec:
containers:
- env:
- name: DRAIN_TIMEOUT
value: '300'
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /opt/secrets/service_account_file
- name: INTERVAL
value: '600'
image: estafette/estafette-gke-preemptible-killer:1.2.5
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 3
httpGet:
path: /liveness
port: liveness
scheme: HTTP
initialDelaySeconds: 0
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 3
name: gke-pvm-killer
ports:
- containerPort: 5000
name: liveness
protocol: TCP
- containerPort: 9001
name: prom-metrics
protocol: TCP
readinessProbe:
failureThreshold: 3
httpGet:
path: /liveness
port: liveness
scheme: HTTP
initialDelaySeconds: 0
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 3
volumeMounts:
- mountPath: /opt/secrets
name: secrets
restartPolicy: Always
terminationGracePeriodSeconds: 30
volumes:
- name: secrets
secret:
defaultMode: 420
items:
- key: service_account_file
path: service_account_file
secretName: gke-pvm-killer