We'll use of the following tools:
Make sure minikube
is running.
minikube start
Run skaffold
, by using the dev
command.
skaffold dev --port-forward
Debugging inside the pod.
export POD_NAME=$(kubectl get pods -o go-template --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')
kubectl exec --stdin --tty $POD_NAME -- /bin/bash
Make a request.
curl localhost:9000
Now you should be able to debug your service inside the running pod.