skip to content
Alvin Lucillo

Skaffold port forward

/ 1 min read

To let Skaffold handle port forwarding, include this in skaffold.yaml. This exposes the port without using a LoadBalancer or NodePort.

portForward:
  - resourceType: service
    resourceName: my-ingress-ingress-nginx-controller
    namespace: kube-system
    port: 80
    localPort: 8080

The alternative to the above is the manual method of port forwarding: kubectl port-forward svc/my-ingress-ingress-nginx-controller 8080:80 -n kube-system