Skip to content

Instantly share code, notes, and snippets.

@feltnerm
Last active September 18, 2019 19:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save feltnerm/b4b2565f1d1e024a5894c359aa984621 to your computer and use it in GitHub Desktop.
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`.
## 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 $@"
#!/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