kubectl port-forward

From wikieduonline
Revision as of 21:01, 29 November 2021 by Welcome (talk | contribs)
Jump to navigation Jump to search
This article is a Draft. Help us to complete it.

kubectl port-forward


  • kubectl --namespace default port-forward $POD_NAME 3000
export POD_NAME=$(kubectl get pods --namespace default -l "app.kubernetes.io/name=grafana,app.kubernetes.io/instance=grafana" -o jsonpath="{.items[0].metadata.name}")
kubectl --namespace default port-forward $POD_NAME 3000
error: unable to forward port because pod is not running. Current status=Failed
kubectl --namespace default port-forward $POD_NAME 3000
error: unable to forward port because pod is not running. Current status=Pending


Related

See also

Advertising: