Skip to content
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
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# test
FROM bitnami/tomcat
ENV ALLOW_EMPTY_PASSWORD=yes
COPY addressbook.war /opt/bitnami/tomcat/webapps_default/addressbook.war
COPY target/addressbook.war /opt/bitnami/tomcat/webapps_default/addressbook.war
30 changes: 19 additions & 11 deletions deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,30 +1,38 @@
# test
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
name: mydeploy
labels:
app: mydeploy
name: mydeploy
spec:
replicas: 1
selector:
matchLabels:
app: mydeploy
strategy: {}
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
template:
metadata:
creationTimestamp: null
labels:
app: mydeploy
spec:
imagePullSecrets:
- name: ecr-secret
containers:
- image: rajendrait99/addressbook:1.0
name: addressbook
- name: addressbook
image: bitnami/tomcat:latest
ports:
- containerPort: 8080
resources: {}
env:
- name: ALLOW_EMPTY_PASSWORD
value: "yes"
status: {}
- name: ALLOW_EMPTY_PASSWORD
value: "yes"
resources:
requests:
cpu: "100m"
memory: "128Mi"
limits:
cpu: "500m"
memory: "512Mi"
16 changes: 11 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -162,17 +162,23 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.2</version>
<version>3.10.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<source>11</source>
<target>11</target>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>9.2.3.v20140905</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.3.2</version>
</plugin>


<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -274,7 +280,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.0</version>
<version>3.2.1</version>
<executions>
<execution>
<id>enforce-versions</id>
Expand All @@ -299,7 +305,7 @@
<reportPlugins>
<plugin>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>2.7</version>
<version>3.8.7</version>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
Expand Down
12 changes: 12 additions & 0 deletions service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: mydeploy-service
spec:
type: NodePort
selector:
app: mydeploy
ports:
- port: 80
targetPort: 8080
nodePort: 30080