Hi,
I have been trying to deploy .war files in Apache Tomcat Docker Containers and perform container orchestration using Kubernetes. As my effort, I downloaded a sample helloworld.war file from a website, wrote a Dockerfile using Apache Tomcat to build a new Docker Image and tried to deploy it using Kubernetes pods. I deployed the image as a pod and exposed it as a service.
NAME LABELS SELECTOR IP(S) PORT(S)
helloworld run=helloworld run=helloworld 10.0.0.5 80/TCP
This is the result I got but as used the 'curl' command against the IP
10.0.0.5:
curl: (56) Recv failure: Connection reset by peer
Even when I ping using the above IP, I find that all data packets are lost.
I have attached the Dockerfile (as Dockerfile.txt) I built to obtain the image and the helloworld.war file I am deploying, with this post.
I am a fresher to most of these technologies. Any help is highly appreciated.