Last active
September 18, 2019 19:25
-
-
Save feltnerm/b4b2565f1d1e024a5894c359aa984621 to your computer and use it in GitHub Desktop.
Add the following to your `~/.zshrc`. Assumes you have docker installed, a valid `~/.kube/config` file, and a valid `~/.aws/config` and `~/.aws/credentials`.
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
## kubernetes | |
K8S_DOCKER_IMAGE_VERSION=1.1.0-20190426 #1.0.2 | |
K8S_CLI="docker run --tty --interactive --rm \ | |
--user $(id -u) \ | |
-v ~/.kube:/config/.kube \ | |
-v ~/.aws:/config/.aws \ | |
quay.io/widen/k8s:$K8S_DOCKER_IMAGE_VERSION" | |
alias kubectl="$K8S_CLI kubectl $@" | |
alias helm="$K8S_CLI helm $@" |
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
#!/usr/bin/env bash | |
cp ~/.kube/config ~/.kube/config.backup | |
aws s3 cp s3://devops-widen/clitools/kubeconfig ~/.kube/config |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment