Code Monkey home page Code Monkey logo

install-kind's Introduction

Criação de cluster Kubernets através da instalação do Kind

Instalando Kubernetes com o Kind

Pré requisitos

Instalar o Docker

Step by Step

Instalar o Lens

wget https://downloads.k8slens.dev/ide/Lens-5.5.4-latest.20220609.2.amd64.deb
sudo dpkg -i ~/Downloads/Lens-5.5.4-latest.20220609.2.amd64.deb

Instalar o Helm

curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
chmod 700 get_helm.sh
./get_helm.sh

Baixar o Kind

curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.11.1/kind-linux-amd64
chmod +x ./kind
sudo mv ./kind /usr/local/bin/

Obs: Arquivos do Kind são binaŕios, sendo assim mover para pasta /usr/local/bin/ para facilitar

Criando o Cluster do rancher

kind create cluster --name cluster-rancher --config kind-config.yaml

Listando os clusters

kind get clusters

Listando os nodes

kind get nodes

Adicionando o rancher no helm

helm repo add rancher-latest https://releases.rancher.com/server-charts/latest

Criando namespace para rancher

kubectl create namespace cattle-system

Instalando o rancher

helm install rancher rancher-latest/rancher \
  --namespace cattle-system \
  --set hostname=rancher.my.org \
  --set ingress.tls.source=secret

Obtendo porta do serviço

kubectl get service rancher -n cattle-system

Fazendo port-forward para acessar o service localmente

kubectl port-forward service/rancher :443 -n cattle-system

Deploy o app de exemplo

kubectl apply -f Deployment-Service.yaml

Aplicações com imagens locais

kubectl create deploy custom-web --replicas=3 --image=custom-nginx:v1

Removendo os Clusters (Opcional)

kind delete clusters cluster-rancher

Outras Referências:

Desenvolvedores/Contribuintes :octocat:


Bruno Cantisano

🤘

Thiago Santos

😎

install-kind's People

Contributors

thiagosnts avatar brunocantisano avatar

Stargazers

 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.