Kubernetes Level 2 - Q8 Deploy Tomcat App on Kubernetesis failing even after doing it twice



apiVersion: apps/v1
kind: Deployment
metadata:
name: tomcat-deployment-nautilus
labels:
app: tomcat
spec:
replicas: 1
selector:
matchLabels:
app: tomcat
template:
metadata:
labels:
app: tomcat
spec:
containers:
- name: tomcat-container-nautilus
image: Google Cloud console
ports:
- containerPort: 8080


apiVersion: v1
kind: Service
metadata:
name: tomcat-service-nautilus
spec:
type: NodePort
selector:
app: tomcat
ports:

  • protocol: TCP
    port: 8080
    targetPort: 8080
    nodePort: 32227

Please use the </> button of the edit widget in order to create code blocks like this:

This is a code block:
   - indentation is preserved.
   - The "-" character is not turned into a solid or hollow dot

It’s much harder to help you if you don’t do this.

I am not getting What you have suggested above

Please look at this guide; it should explain a bit better.