Skip to content

Instantly share code, notes, and snippets.

@linkdd
Created January 23, 2022 03:08
Show Gist options
  • Save linkdd/34770dbd201d7ec1e2c68b00731e0384 to your computer and use it in GitHub Desktop.
Save linkdd/34770dbd201d7ec1e2c68b00731e0384 to your computer and use it in GitHub Desktop.
Github Workflow Step to edit the KinD generated kubeconfig for use inside a Docker container
# uses script from https://gist.github.com/linkdd/4bbd9fc4966e00e067305f1fb8c2588c
- name: setup@kubeconfig
run: |
hostip=$(sh .github/scripts/get-docker-host.sh)
sed "s/127.0.0.1/$hostip/g" $HOME/.kube/config > ${{ github.workspace }}/kubeconfig.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment