<p>Hello I am trying to deploy a simple tomcat service. Below are the details:</p>

<p>1.minikube version: v1.8.1</p>

<p>2.OS: mac</p>

<p>3.The <strong>deployment.yaml</strong> file (I am in the directory of the yaml file)</p>

<pre><code>apiVersion: apps/v1
kind: Deployment
metadata:
  name: tomcat-deployment
spec:
  selector:
    matchLabels:
      app: tomcat
  replicas: 1
  template:
    metadata:
      labels:
        app: tomcat
    spec:
      containers:
      - name: tomcat
        image: tomcat:9.0
        ports:
        - containerPort: 8080
</code></pre>

<p>4.Commands used to deploy and expose the service</p>

<pre><code>kubectl apply -f deployment.yaml

kubectl expose deployment tomcat-deployment --type=NodePort

minikube service tomcat-deployment --url

curl [URL]
</code></pre>

<p>I get a 404 when I curl the URL. 
I am unsure if there's an issue with the deployment.yaml file or some minikube settings.</p>

Nath
<p>Tomcat image comes with the default preinstalled apps (ROOT, manager...) inside webapps.dist folder, to avoid them to be loaded by default at container startup (<a href="https://github.com/docker-library/tomcat/issues/183" rel="nofollow noreferrer">https://github.com/docker-library/tomcat/issues/183</a>). You can for example simply rename webapps.dist to webapps and (via e.g. kubectl exec &lt;pod_name&gt; -- bash), and after apps are deployed, the 404 should no longer occur.</p>
