-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yaml
51 lines (51 loc) · 1.02 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
apiVersion: apps/v1
kind: Deployment
metadata:
name: test
namespace: default
labels:
app: test
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: test
template:
metadata:
labels:
app: test
tier: test
spec:
containers:
- name: test
image: minju0907/test:latest
ports:
- containerPort: 8080 # 컨테이너 내부 포트
resources:
requests:
cpu: "2500m" # CPU 요청 : 컨테이너 리소스에 대한 request (이정도 쓰겠다)
memory: "0.5Gi"
limits:
cpu: "3500m" # CPU 제한
memory: "1.5Gi"
---
apiVersion: v1
kind: Service
metadata:
name: test
namespace: default
labels:
app: test
annotations:
alb.ingress.kubernetes.io/healthcheck-path: "/health"
spec:
ports:
- port: 80 # 서비스가 생성할 포트
targetPort: 8080 # 컨테이너 내부
protocol: TCP
selector:
app: test
tier: test
type: NodePort