We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc89065 commit 42e461fCopy full SHA for 42e461f
deploymentservice.yaml
@@ -0,0 +1,38 @@
1
+apiVersion: apps/v1
2
+kind: Deployment
3
+metadata:
4
+ name: nodeapp-deployment
5
+ labels:
6
+ app: nodeapp
7
+spec:
8
+ replicas: 1
9
+ selector:
10
+ matchLabels:
11
12
+ template:
13
+ metadata:
14
15
16
+ spec:
17
+ containers:
18
+ - name: nodeserver
19
+ image: akterd/testsuper30:latest
20
+ ports:
21
+ - containerPort: 3000
22
+
23
24
+---
25
26
+apiVersion: v1
27
+kind: Service
28
29
+ name: nodeapp-service
30
31
32
33
+ type: LoadBalancer
34
35
+ - protocol: TCP
36
+ port: 5000
37
+ targetPort: 3000
38
+ nodePort: 31110
0 commit comments