-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheks-node-demo.yaml
54 lines (51 loc) · 1.01 KB
/
eks-node-demo.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
52
53
54
# eks-node-demo.yaml
apiVersion: v1
kind: Namespace
metadata:
name: node-demo
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: node-demo
namespace: node-demo
spec:
replicas: 2
selector:
matchLabels:
app: node-demo-deployment
strategy:
type: Recreate
template:
metadata:
labels:
app: node-demo-deployment
spec:
containers:
- image: 700478352903.dkr.ecr.eu-central-1.amazonaws.com/trn-node-demo-docker:latest
name: trn-node-demo-docker
imagePullPolicy: Always
ports:
- containerPort: 3000
name: node-demo
resources:
requests:
cpu: "0.25"
memory: "64Mi"
limits:
cpu: "1"
memory: "2Gi"
---
apiVersion: v1
kind: Service
metadata:
name: node-demo-clusterip
namespace: node-demo
spec:
type: LoadBalancer
ports:
- name: "http"
port: 80
targetPort: 3000
selector:
app: node-demo-deployment