Skip to content

Commit b06d197

Browse files
Updated Project Code
1 parent a9050bc commit b06d197

File tree

2 files changed

+42
-42
lines changed

2 files changed

+42
-42
lines changed

MavenWebApplication.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: webpage-deployment
5+
namespace: production
6+
spec:
7+
replicas: 2
8+
revisionHistoryLimit: 5
9+
selector:
10+
matchLabels:
11+
application: webpage
12+
strategy:
13+
type: RollingUpdate
14+
rollingUpdate:
15+
maxSurge: 1
16+
maxUnavailable: 1
17+
minReadySeconds: 30
18+
template:
19+
metadata:
20+
name: webpage-pod
21+
labels:
22+
application: webpage
23+
spec:
24+
containers:
25+
- name: webpage-container
26+
image: mithuntechnologies/maven-web-application:1
27+
imagePullPolicy: Always
28+
ports:
29+
- containerPort: 8080
30+
---
31+
apiVersion: v1
32+
kind: Service
33+
metadata:
34+
name: webpage-service
35+
namespace: production
36+
spec:
37+
type: NodePort
38+
selector:
39+
application: webpage
40+
ports:
41+
- port: 80
42+
targetPort: 8080

mavenwebappdeployment.yaml

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)