-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yaml
56 lines (56 loc) · 1.29 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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
annotations:
description: k8s-signal-logger
labels:
app: k8s-signal-logger
name: k8s-signal-logger
namespace: default
spec:
replicas: 2
selector:
matchLabels:
app: k8s-signal-logger
strategy:
rollingUpdate:
maxSurge: "50%"
maxUnavailable: 0
type: RollingUpdate
template:
metadata:
annotations:
description: k8s-signal-logger
labels:
app: k8s-signal-logger
server: web
name: k8s-signal-logger
spec:
containers:
- name: k8s-signal-logger
image: micahhausler/k8s-signal-logger
livenessProbe:
failureThreshold: 3
httpGet:
path: /healthz
port: 8080
scheme: HTTP
initialDelaySeconds: 5
periodSeconds: 4
successThreshold: 1
timeoutSeconds: 1
readinessProbe:
failureThreshold: 1
httpGet:
path: /ready
port: 8080
scheme: HTTP
initialDelaySeconds: 5
periodSeconds: 10
successThreshold: 1
ports:
- containerPort: 8080
protocol: TCP
dnsPolicy: Default
restartPolicy: Always
terminationGracePeriodSeconds: 30