Created
January 18, 2019 23:56
-
-
Save rgregg/d737e4421a3b51bbdb3ae5d8bae933ae to your computer and use it in GitHub Desktop.
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 | |
# Changes exmaple.com to use nip, which is DNS magic for any IP address | |
export EXTERNAL_IP=$(kubectl get svc istio-ingressgateway -n istio-system -o jsonpath='{.status.loadBalancer.ingress.*.ip}') | |
kubectl patch cm config-domain -n knative-serving -p "{\"data\": { \"${EXTERNAL_IP}.nip.io\": \"\" }}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment