Skip to content

Instantly share code, notes, and snippets.

@onelittlenightmusic
Created February 5, 2020 03:44
Show Gist options
  • Save onelittlenightmusic/8e143fa0f9522a39cec7a5b242a9d4b4 to your computer and use it in GitHub Desktop.
Save onelittlenightmusic/8e143fa0f9522a39cec7a5b242a9d4b4 to your computer and use it in GitHub Desktop.
sed -i -e "s/server:.*/server: https:\/\/$(docker port capi-quickstart-lb 6443/tcp | sed "s/0.0.0.0/127.0.0.1/")/g" ./capi-quickstart.kubeconfig
# Ignore the CA, because it is not signed for 127.0.0.1
sed -i -e "s/certificate-authority-data:.*/insecure-skip-tls-verify: true/g" ./capi-quickstart.kubeconfig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment