Giter VIP home page Giter VIP logo

kubernetes's Introduction

kubernetes

Atividade - Matéria: Infrastructure and Cloud Computing - Turma: MBA FULL_02 FSD02

Subir dois pods, nginx e mysql, mapeando a porta 80 do nginx para acesso externo ao cluster e permitir que o contêiner do nginx tenha comunicação de rede no contêiner mysql pela porta 3306. A atividade pode ser feita localmente (minikube), AKS (Azure), EKS (AWS) ou no GKE (GCP). Se quiser criar o cluster nuvem Kubernetes com Terraform é opcional.

Comandos

PODS

$ kubectl get nodes -> list nodes
$ kubectl run ngpod --image=nginx:latest -> run pod
$ kubectl get pods -> list pods
$ kubectl get pods –watch -> list pods
$ kubectl exec –it ngpod – sh -> access pod
$ kubectl apply –f primeiro-pod.yaml -> exec file
$ kubectl delete pod [name] -> del pod
$ kubectl delete –f primeiro-pod.yaml -> del file
$ kubectl run -it --image=ubuntu – bash -> run and exec
$ kubectl top pod -> show cpu mem pods (metrics.server)

LOGS

$ kubectl get events -> node events
$ kubectl get events -n aulainfra -> nm events
$ kubectl describe pod/mysql -n aulainfra -> details pod
$ kubectl describe service/app -n aulainfra -> details pod
$ kubectl logs mysqldb-0 -n aulainfra -> pod logs

DEPLOYMENT

$ kubectl get deployments
$ kubectl rollout history deployment deployment-01
$ kubectl apply –f [FOLDER/FILE] –record
$ kubectl annotate deployment deployment-01 kubernetes.io/change-cause=“texto“
$ kubectl rollout undo deployment deployment-01 --to-revision=1

Links

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

https://docs.microsoft.com/en-us/azure/aks/kubernetes-walkthrough

kubernetes's People

Contributors

natasilva01 avatar nataliajsilva avatar

Watchers

James Cloos avatar  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.