Skip to content

new code #651

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions deployment_ecr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: mavenwebappdeployment
spec:
revisionHistoryLimit: 5
replicas: 2
strategy:
type: RollingUpdate
selector:
matchLabels:
app: mavenwebapp
template:
metadata:
name: mavenwebapppod
labels:
app: mavenwebapp
spec:
containers:
- name: mavenwebappcontainer
image: 412381781771.dkr.ecr.us-east-1.amazonaws.com/maven-web-application:IMAGE_TAG_PLACEHOLDER
ports:
- containerPort: 8080
resources:
requests:
cpu: 200m
memory: 256Mi
limits:
cpu: 500m
memory: 512Mi
imagePullSecrets:
- name: ecr-secret # Required if your cluster needs authentication to pull from ECR
---
apiVersion: v1
kind: Service
metadata:
name: mavenwebappsvc
spec:
selector:
app: mavenwebapp
type: NodePort
ports:
- port: 80
targetPort: 8080
nodePort: 30001
14 changes: 7 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
version: '3.1'
name: mavenwebapp
services:
springboot:
image: dockerhandson/maven-web-application:VERSION
restart: always
mavenwebapp:
image: vkrishna8/maven-web-app:${IMAGE_TAG}
ports:
- 9090:8080
- 7070:8080
networks:
- mavenappbridge
- mavenwebappbridge
networks:
mavenappbridge:
mavenwebappbridge:
driver: bridge
60 changes: 60 additions & 0 deletions eks_mavendeploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: mavenwebappdeployment
spec:
revisionHistoryLimit: 5
replicas: 2
strategy:
type: RollingUpdate
selector:
matchLabels:
app: mavenwebapp
template:
metadata:
name: mavenwebapppod
labels:
app: mavenwebapp
spec:
containers:
- name: mavenwebappcontainer
image: vkrishna8/maven-web-app:IMAGE_TAG_PLACEHOLDER
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: ClusterIP
ports:
- port: 80
targetPort: 8080
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: mavenweabppingressrule
spec:
ingressClassName: nginx
rules:
- host: mavenwebapp.tech.com
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: mavenwebappsvc
port:
number: 80
7 changes: 4 additions & 3 deletions mavenwebappdeployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ kind: Deployment
metadata:
name: mavenwebappdeployment
spec:
revisionHistoryLimit: 10
revisionHistoryLimit: 5
replicas: 2
strategy:
type: Recreate
type: RollingUpdate
selector:
matchLabels:
app: mavenwebapp
Expand All @@ -18,7 +18,7 @@ spec:
spec:
containers:
- name: mavenwebappcontainer
image: dockerhandson/maven-web-application:TAG
image: vkrishna8/maven-web-app:IMAGE_TAG_PLACEHOLDER
ports:
- containerPort: 8080
resources:
Expand All @@ -40,3 +40,4 @@ spec:
ports:
- port: 80
targetPort: 8080
nodePort: 30005
2 changes: 1 addition & 1 deletion src/main/webapp/jsps/home.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</head>
</head>
<body>
<h1 align="center">Welcome to Mithun Technologies Private Ltd. Ph No: +91-9980923226,+91-9900012028</h1>
<h1 align="center">Welcome to Mithun Technologies Private Ltd. Ph No: +91-9980923226,+91-9999988888</h1>
<h1 align="center"> Mithun Technologies- Very Good Training center for DevOps with AWS,Azure Admin & Azure DevOps ,Terraform & AWS Solution Architect & Terraform in Bangalore India.Teaching Real Time scnerios</h1>
<hr>
<br>
Expand Down