-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy.yaml
38 lines (38 loc) · 901 Bytes
/
deploy.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
# k8s deploy.yaml where deploy name: techtrends and image: vinhloc30796/techtrends:latest
apiVersion: apps/v1
kind: Deployment
metadata:
name: techtrends
namespace: sandbox
spec:
replicas: 1
selector:
matchLabels:
app: techtrends
template:
metadata:
labels:
app: techtrends
spec:
containers:
- name: techtrends
image: vinhloc30796/techtrends:latest
ports:
- containerPort: 3111
# liveness probe and readiness probe: :3111/healthz
livenessProbe:
httpGet:
path: /healthz
port: 3111
readinessProbe:
httpGet:
path: /healthz
port: 3111
# resources: requests and limits
resources:
requests:
memory: "64Mi"
cpu: "250m"
limits:
memory: "128Mi"
cpu: "500m"