Skip to content

Instantly share code, notes, and snippets.

@rgregg
Created January 18, 2019 23:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rgregg/d737e4421a3b51bbdb3ae5d8bae933ae to your computer and use it in GitHub Desktop.
Save rgregg/d737e4421a3b51bbdb3ae5d8bae933ae to your computer and use it in GitHub Desktop.
#!/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