We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0c4da6 commit 99469e5Copy full SHA for 99469e5
kubernetes-basics/javaapp-all-in-one-nodeport-access.yml
@@ -0,0 +1,37 @@
1
+apiVersion: v1
2
+kind: Service
3
+metadata:
4
+ name: covid-19-bangladesh-nodeport-service
5
+spec:
6
+ type: NodePort
7
+ ports:
8
+ - port: 8080
9
+ nodePort: 30001
10
+ selector:
11
+ app: covid-19-bangladesh
12
+
13
+---
14
15
+apiVersion: apps/v1
16
+kind: Deployment
17
18
+ name: covid-19-bangladesh-nodeport-deployment
19
20
+ replicas: 3
21
22
+ matchLabels:
23
24
+ template:
25
+ metadata:
26
+ labels:
27
28
+ spec:
29
+ containers:
30
+ - name: covid-19-bangladesh
31
+ image: mmahmood/covid-19-bangladesh:latest
32
33
+ - containerPort: 8080
34
35
36
37
0 commit comments