Deploy Tomcat App on Kubernetes -> "CheckCompleteIncomplete -> tomcat app is not up and accessible."

Dear KodeKloud Team:

I keep receiving the following message: “CheckCompleteIncomplete → tomcat app is not up and accessible.” I’m not sure why this message is appearing, and I would appreciate any help you can provide.

Wild guess: Tomcat is running, but for the completion of the task, the platform is looking at the (kubernetes) service.

The service seems there, but it might not be associated correctly.

Check that the label(s) defined in the pod and used in the selector of the service match.

Example:

# Show labels defined in the pod:
jtheo@mac $: kubectl get po pod-devops -o jsonpath="{.metadata.labels}"; echo
{"pod":"pod-devops"}

# describe the service, note the "Selector"
jtheo@mac $: k describe svc web-devops
Name:                     web-devops
Namespace:                default
Labels:                   <none>
Annotations:              <none>
Selector:                 pod=pod-devops
Type:                     NodePort
IP Family Policy:         SingleStack
IP Families:              IPv4
IP:                       10.96.191.16
IPs:                      10.96.191.16
Port:                     <unset>  80/TCP
TargetPort:               80/TCP
NodePort:                 <unset>  30008/TCP
Endpoints:                10.244.0.13:80
Session Affinity:         None
External Traffic Policy:  Cluster
Events:                   <none>