forked from operate-first/operate-first.github.io-old
-
Notifications
You must be signed in to change notification settings - Fork 1
/
deployment.yaml
46 lines (46 loc) · 1.05 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
apiVersion: apps/v1
kind: Deployment
metadata:
name: operate-first-app
spec:
replicas: 1
selector:
matchLabels:
deployment: operate-first-app
template:
metadata:
labels:
deployment: operate-first-app
spec:
containers:
- name: operate-first-app
image: quay.io/cfchase/operate-first-app:latest
ports:
- containerPort: 8080
resources:
requests:
cpu: 250m
memory: 300Mi
limits:
cpu: 500m
memory: 1000Mi
livenessProbe:
httpGet:
path: /
port: 8080
scheme: HTTP
initialDelaySeconds: 30
timeoutSeconds: 15
periodSeconds: 30
successThreshold: 1
failureThreshold: 3
readinessProbe:
httpGet:
path: /
port: 8080
scheme: HTTP
initialDelaySeconds: 30
timeoutSeconds: 15
periodSeconds: 30
successThreshold: 1
failureThreshold: 3