Skip to content

deividduarte20/comandos-k8s

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published