Not able access the application running with skaffold and docker desktop on WSL 2
By default, skaffold dev
only port-forwards user-defined port-forwards, those that are explicitly defined in the skaffold.yaml
. For example:
portForward:
- resourceType: deployment
resourceName: accounts-backend-deployment
port: 5000
localPort: 8080
You can use skaffold dev --port-forward=user,services
to also port-forward services as well as any user-defined port-forwards.
Skaffold port-forwarding does not include ingress: that's currently cluster-specific. For example, with minikube, you'll need to run minikube tunnel
separately, or alternatively minikube service -n ingress-nginx --url ingress-nginx-controller
if using nginx-ingress
.