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 5635dac commit de0a1eaCopy full SHA for de0a1ea
deploy-k8s.yml
@@ -0,0 +1,31 @@
1
+apiVersion: apps/v1
2
+kind: Deployment
3
+metadata:
4
+ name: webapp
5
+spec:
6
+ selector:
7
+ matchLabels:
8
+ app: myapp
9
+ template:
10
+ metadata:
11
+ labels:
12
13
+ spec:
14
+ containers:
15
+ - name: myapp
16
+ image: mylandmarktech/maven-web-app
17
+ ports:
18
+ - containerPort: 8080
19
+---
20
+apiVersion: v1
21
+kind: Service
22
23
+ name: myapp
24
25
+ type: NodePort
26
27
28
29
+ - port: 80
30
+ targetPort: 8080
31
+ nodePort: 30300
0 commit comments