Hi, I have K8S with docker desktop, I apply a deployment as well as a service and forward port 80 to port 8080. Issuing the following commands show that everything is OK
1 - get pods
NAME READY STATUS RESTARTS AGE
stable-deployment-7cc45c64fb-5vgp6 1/1 Running 0 31m
stable-deployment-7cc45c64fb-6x8m4 1/1 Running 0 31m
stable-deployment-7cc45c64fb-cdwk4 1/1 Running 0 31m
stable-deployment-7cc45c64fb-vtmt6 1/1 Running 0 31m
2 - get services
3 - describe service
Name: stable-service
Namespace: default
Labels: app=aspnetcore
Annotations:
Selector: app=aspnetcore
Type: LoadBalancer
IP Family Policy: SingleStack
IP Families: IPv4
IP: 10.108.92.58
IPs: 10.108.92.58
LoadBalancer Ingress: localhost
Port: 80/TCP
TargetPort: 8080/TCP
NodePort: 31951/TCP
Endpoints: 10.1.0.70:8080,10.1.0.71:8080,10.1.0.72:8080 + 1 more…
Session Affinity: None
External Traffic Policy: Cluster
Events:
When I browse the application at http:localhost:8080 it does not respond. The question is : How can I troubleshoot/debug why the web server is not responding? Knowing that when I run the same image used in the deployment using docker run, website responds correctly on port 8080
Thanks for your help
Finally, if your issue has not been addressed elsewhere, running:
Settings
Diagnose & Feedback
Open Issues.
This forum is not an official product support or issue reporting channel.

