Costas Nicou Back Office

Kubernetes Introduction

Basic Concepts

Node also known as minion is a machine which kubernetes is installed, Kublet is the agent running on each minion on the cluster, etcd is responsible to hold information and logs about the cluster, the scheduler is responsible for distributing containers across the nodes. Controllers analyze the cluster and can bring up more containers if they are needed.

 

Commands

  • kubectl run hello-minikube -> kubectl run, runs an application on the cluster
  • kubectl cluster-info
  • kubectl get nodes
  • kubectl version
  • kubectl get node -o wide
  • kubectl get pods
  • kubectl run nginx –image=nginx
  • kubctl get pods -o wide

  • kubectl get pods
  • kubectl describe pod myapp-pod
  • kubectl delete pod podname
  • kubectl edit pod redis
  • kubectl apply -f redis-definition.yaml