Created
August 29, 2023 15:03
-
-
Save Daenyth/e33eaec4799a966d0b76cce484ea2661 to your computer and use it in GitHub Desktop.
Get exposed port for a kubernetes service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kubectl get svc SERVICENAME --namespace NAMESPACE -o jsonpath='{.spec.ports[?(@.nodePort)].nodePort}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment