Created
April 24, 2020 19:39
-
-
Save gordyt/9b85e39c058b0be343dbcdc8a8e41a99 to your computer and use it in GitHub Desktop.
tiny script to get the k8s ip address of the specified 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
#!/bin/bash | |
name=$1 | |
namespace=${2:-default} | |
kubectl -n $namespace get services | grep $name | awk '{print $3}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment