Skip to content

Instantly share code, notes, and snippets.

@eliaspn
Created February 1, 2020 17:45
Show Gist options
  • Save eliaspn/a5b721c67b38ca525251bfc213b3ee85 to your computer and use it in GitHub Desktop.
Save eliaspn/a5b721c67b38ca525251bfc213b3ee85 to your computer and use it in GitHub Desktop.
K8s ninja
#Deploy a short lived sidecontainer to connect to Mysql inside cluster
kubectl run -i --tty ubuntu --image=ubuntu:16.04 --restart=Never -- bash -il
apt-get update && apt-get install mysql-client -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment