Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# Usando o Kubernetes com Docker in Docker (DIND)
sudo mkdir -p /usr/local
cd /usr/local
sudo mkdir dind-cluster
cd dind-cluster/
sudo chmod o+w .
ls -lat .. | head
# wget https://cdn.rawgit.com/kubernetes-sigs/kubeadm-dind-cluster/master/fixed/dind-cluster-v1.10.sh
curl -O https://cdn.rawgit.com/kubernetes-sigs/kubeadm-dind-cluster/master/fixed/dind-cluster-v1.10.sh
file dind-cluster-v1.10.sh
chmod a+rx dind-cluster-v1.10.sh
sudo chmod o-w .
./dind-cluster-v1.10.sh
brew update
brew install md5sha1sum # no MacOS sha1sum é um requisito e é preciso instalar
sha1sum -V
export PATH="$HOME/.kubeadm-dind-cluster:$PATH"
./dind-cluster-v1.10.sh up
docker images
docker ps
kubectl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment