Skip to content

AndriyKalashnykov/bitnami-tomcat9-jdk18-root-war-k8s

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hits License: MIT

Deploying Bitnami Tomcat 9 on Kubernetes

Default bitnami-tomcat9-debian-10-r13 image:

  • Tomcat 9 ✅
  • HTTP/2 adapter for protocol upgrade - requires Apache APR ✅
  • JDK 1.8 ❌
  • WAR deployed as a root "/" ❌

Deploy bitnami-tomcat9-debian-10-r13

GitHub repo: bitnami-docker-tomcat

DockerHub image: bitnami/tomcat:9.0.34-debian-10-r13

Create namespace

cd scripts
. ./set-evn.sh
kubectl create ns $NS

Create PVC

cd scripts
. ./set-evn.sh
kubectl create -f $K8S_DIR/pvc.yaml -n $NS

Deploy bitnami-tomcat9-debian-10-r13

cd scripts
./deploy.sh bitnami-tomcat9-debian-10-r13

Test bitnami-tomcat9-debian-10-r13

cd scripts
./test.sh bitnami-tomcat9-debian-10-r13

Get a shell to the running container

cd scripts
./connect.sh bitnami-tomcat9-debian-10-r13

$ curl http://localhost:8080/
$ curl -u admin:admin http://localhost:8080/host-manager/text/list

Deploy hello-world-webapp via Tomcat UI

Upload ../apps/hellow-world-webapp.war via Web UI

UnDeploy bitnami-tomcat9-debian-10-r13

cd scripts
./undeploy.sh bitnami-tomcat9-debian-10-r13

Customized andriykalashnykov/bitnami-tomcat9-jdk18 image:

I've customized Bitami docker image bitnami-tomcat9-jdk18 a bit to incorporate missing requiremets and few enhancement: andriykalashnykov/bitnami-tomcat9-jdk18

  • Tomcat 9 ✅
  • HTTP/2 adapter for protocol upgrade - requires Apache APR ✅
  • JDK 1.8 ✅
  • WAR deployed as a root "/" ✅

and created another image to demonstrate how deploy WAR file as ROOT "/" context andriykalashnykov/bitnami-tomcat9-jdk18-root-war

Deploy andriykalashnykov/bitnami-tomcat9-jdk18-root-war

cd scripts
./deploy.sh bitnami-tomcat9-jdk18-root-war

Test andriykalashnykov/bitnami-tomcat9-jdk18-root-war

cd scripts
./test.sh bitnami-tomcat9-jdk18-root-war

Get a shell to the running Container andriykalashnykov/bitnami-tomcat9-jdk18-root-war

cd scripts
./connect.sh bitnami-tomcat9-jdk18-root-war

$ curl http://localhost:8080/index.html
$ curl -k https://localhost:8443/index.html
$ curl -k -u admin:admin https://localhost:8443/manager/status/all?XML=true
$ netstat -a | egrep 'Proto|LISTEN'
$ lsof -i -P 2>/dev/null

Uneploy andriykalashnykov/bitnami-tomcat9-jdk18-root-war

cd scripts
./undeploy.sh bitnami-tomcat9-jdk18-root-war

Releases

No releases published

Packages

No packages published

Languages