-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsobre_kind.txt
50 lines (31 loc) · 1.31 KB
/
sobre_kind.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
###################### KIND ######################
# INSTALE O KIND (NESTE CASO, A PARTIR DA VERSÃO DE GO INSTALADA NA MÁQUINA)
go get sigs.k8s.io/kind
# USE O COMPLETION DO KIND
## Para Oh My ZSH
mkdir "${HOME}/.oh-my-zsh/custom/plugins/kind"
kind completion zsh >> "${HOME}/.oh-my-zsh/custom/plugins/kind/_kind"
# CRIE UM POD (NOMEADO)
kind create cluster --name << NOME DO POD >>
ex: kind create cluster --name giropops-01
# INTERAJA COM SEU POD
kubectl cluster-info --context kind-<< NOME DO POD >>
ex: kubectl cluster-info --context kind-giropops-01
# PEGUE TODOS OS PODS
kind get clusters
# DELETE O POD (NOMEADO)
kind delete cluster --name << NOME DO POD >>
ex: kind delete cluster --name giropops-01
## Kind
[](https://github.com/kubernetes-sigs/kind/)
###################### KIND ######################
###################### KUBECTL ######################
# BAIXA O KUBECTL
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
# DÁ PERMISSÃO DE EXECUÇÃO AO KUBECTL
chmod +x kubectl
# MOVA O KUBECTL PARA O DIRETÓRIO BIN, DO USUÁRIO QUE FEZ O DOWNLOAD DO KUBECTL
mv kubectl ~/.local/bin
# WPEGA INFORMAÇÃO DO CLUSTER
kubectl cluster-info --context kind-giropops-01
###################### KUBECTL ######################