Skip to content

Latest commit

 

History

History
76 lines (53 loc) · 1.19 KB

README.md

File metadata and controls

76 lines (53 loc) · 1.19 KB

Este repositório tem comandos referente a kubernetes

Requisitos

kubectl eksctl aws cli

Para instalar o eksctl acesse o link:

https://docs.aws.amazon.com/eks/latest/userguide/eksctl.html

Para instalar o kubectl acesse o link:

https://kubernetes.io/docs/tasks/tools/

Criar Cluster EKS

eksctl create cluster --name duarte --version 1.27 --region us-east-1 --nodegroup-name workers --node-type t3a.medium --nodes 2 --nodes-min 1 --nodes-max 2 --managed

Habilita conexao no Cluster

aws eks --region us-east-1 update-kubeconfig --name duarte
export KUBECONFIG=config

Checando o cluster

kubectl get nodes

Cria o servico

kubectl apply -f ./nginx-svc.yaml

Verifica o status do servico

kubectl get service

Cria o Deployment

kubectl apply -f ./nginx-deployment.yaml

Verifica o status do Deployment

kubectl get deployment

Verifica o status dos nodes

kubectl get node

Verifica o status dos pods

kubectl get pods

Terminou o teste ? Bora derrubar tudo!

eksctl delete cluster meu-cluster