Skip to content

Commit

Permalink
Create deploy-k8s.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
legah2045 authored Dec 13, 2022
1 parent 5635dac commit de0a1ea
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions deploy-k8s.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: webapp
spec:
selector:
matchLabels:
app: myapp
template:
metadata:
labels:
app: myapp
spec:
containers:
- name: myapp
image: mylandmarktech/maven-web-app
ports:
- containerPort: 8080
---
apiVersion: v1
kind: Service
metadata:
name: myapp
spec:
type: NodePort
selector:
app: myapp
ports:
- port: 80
targetPort: 8080
nodePort: 30300

0 comments on commit de0a1ea

Please sign in to comment.