Skip to content

HariCazorla/Kubernetes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kubernetes

A project to explore K8s concepts using minikube.

Setups

  1. Monogo cluster
  2. RabbitMQ cluster
  3. RabbitMQ Prometheus Grafana
  4. Expense-tracker

kubectl commands

Create deployment:

kubectl create deployment [name]

Edit deployment:

kubectl edit deployment [name]

Delete deployment:

kubectl delete deployment [name]

Status of different K8s components:

kubectl get nodes
kubectl get pod
kubectl get pod -o wide
kubectl get services
kubectl get replicaset
kubectl get deployment
kubectl get secret

Debugging pods:

kubectl logs [podname]
kubectl exec -ti [podname] -- bin/bash
kubectl describe pod [podname]
kubectl get deployment [deployment name] -o yaml > filename.yaml

Using config file:

kubectl apply -f [filename]
kubectl delete -f [filename]

namespaces:

kubectl create namespace [name]

Check service:

minikube service servicename

Other commands:

kubectl cluster-info