-
Notifications
You must be signed in to change notification settings - Fork 0
/
client.yaml
44 lines (42 loc) · 991 Bytes
/
client.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: client-depl
spec:
replicas: 1
selector:
matchLabels:
app: client
# template section describes exactly how every pod that is created and managed by this deployment should behave
template:
metadata:
labels:
app: client
spec:
containers:
- name: client
image: 913524939383.dkr.ecr.us-west-1.amazonaws.com/test-ecr/client:v32
ports:
- containerPort: 3000
resources:
requests:
memory: "512Mi"
cpu: "250m"
limits:
memory: "1Gi"
cpu: "500m"
---
apiVersion: v1
kind: Service
metadata:
name: client-srv
spec:
type: LoadBalancer
# 이게 위에있는 depl template 안에있는 metadata 랑 일치해야 pod 찾을수있음
selector:
app: client
ports:
# 이걸 logging purpose 별로안중요
- name: client
port: 80
targetPort: 3000