forked from in4it/node-demo-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdemo-app.yml
More file actions
42 lines (41 loc) · 734 Bytes
/
demo-app.yml
File metadata and controls
42 lines (41 loc) · 734 Bytes
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: demo-app-deployment
labels:
app: demo-app
spec:
replicas: 2
selector:
matchLabels:
app: demo-app
template:
metadata:
labels:
app: demo-app
spec:
containers:
- name: demo-app
image: index.docker.io/in4it/node-demo-app
ports:
- containerPort: 3000
livenessProbe:
httpGet:
path: /
port: 3000
initialDelaySeconds: 15
timeoutSeconds: 30
---
apiVersion: v1
kind: Service
metadata:
name: demo-app-service
spec:
ports:
- nodePort: 31001
targetPort: 3000
port: 3000
protocol: TCP
selector:
app: demo-app
type: NodePort