-
Notifications
You must be signed in to change notification settings - Fork 1
/
deployment.yaml
49 lines (48 loc) · 969 Bytes
/
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-web-deployment
spec:
replicas: 2
selector:
matchLabels:
app: my-web-deployment
template:
metadata:
labels:
app: my-web-deployment
spec:
containers:
- name: my-web-deployment
image: <name>.azurecr.io/my-web-deployment:v1
ports:
- containerPort: 8000
resources:
limits:
memory: "512mi"
cpu: "500m"
livenessProbe:
httpGet:
path: /health
port: 8000
initialDelaySeconds: 3
periodSeconds: 3
readinessProbe:
httpGet:
port: 8000
path: /health
initialDelaySeconds: 3
periodSeconds: 3
---
apiVersion: v1
kind: Service
metadata:
name: my-web-deployment
spec:
selector:
app: my-web-deployment
ports:
- port: 80
targetPort: 8000
protocol: TCP
type: LoadBalancer