Skip to content

jdgabriel/descomplicando_kubernetes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Descomplicando Kubernetes

DIA - #1

1. Ferramentas

Docker

curl -fsSL https://get.docker.com | bash

kubectl

curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl.sha256"

sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl

Kind - Kubernetes in Docker

# For AMD64 / x86_64
[ $(uname -m) = x86_64 ] && curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.22.0/kind-linux-amd64
# For ARM64
[ $(uname -m) = aarch64 ] && curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.22.0/kind-linux-arm64
chmod +x ./kind
sudo mv ./kind /usr/local/bin/kind

2. Primeiros passos

Criando seu primeiro cluster com Kind. Necessário ter o Docker rodando.

kind create --name kind-cluster --config=meu-primeiro-cluster.yaml

Criando seu primeiro Pod Kubernetes - Nginx

kubectl apply -f meu-primeiro-pod.yaml