1
  • using Docker Desktop and running the built-in Kubernetes enter image description here

  • deployed hello app and a load-balancer service

  • you can see the output of kk get all -o wide //kk short for kubectl

  • also see output of

    • kk get nodes
    • kk describe service hello-service
    • kk describe deployment
  • you can also see output of kk get endpoints

    • hello-service <none>

enter image description here

  • finally you can see the output of curl localhost:8080
    • curl: (52) Empty reply from server

I think the reason for Empty reply from server is because the endpoints is <none>. Any idea why the endpoints is empty? and how I can fix this?

jakstack
  • 2,143
  • 3
  • 20
  • 37

1 Answers1

2
  • turns out the service selector was bad it is app=helloapp but should be name=helloapp

enter image description here

  • with correct selector

enter image description here

jakstack
  • 2,143
  • 3
  • 20
  • 37