Skip to content

Commit

Permalink
Create mavenwebappdeployment.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
devopstrainingbanglore authored Dec 2, 2021
1 parent c7127d1 commit 25208bb
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions mavenwebappdeployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: mavenwebappdeployment
spec:
revisionHistoryLimit: 10
replicas: 2
strategy:
type: Recreate
selector:
matchLabels:
app: mavenwebapp
template:
metadata:
name: mavenwebapppod
labels:
app: mavenwebapp
spec:
containers:
- name: mavenwebappcontainer
image: dockerhandson/maven-web-application:TAG
ports:
- containerPort: 8080
resources:
requests:
cpu: 200m
memory: 256Mi
limits:
cpu: 500m
memory: 512Mi
---
apiVersion: v1
kind: Service
metadata:
name: mavenwebappsvc
spec:
selector:
app: mavenwebapp
type: NodePort
ports:
- port: 80
targetPort: 8080

0 comments on commit 25208bb

Please sign in to comment.