AthirsonSilva / kubernetes-simple-demo

Source code for a simple demo of a kubernetes configuration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Repository for the K8s in 1 hour video

K8s manifest files

  • mongo-config.yaml
  • mongo-secret.yaml
  • mongo.yaml
  • webapp.yaml

K8s commands

start Minikube and check status
minikube start --vm-driver=hyperkit 
minikube status
get minikube node's ip address
minikube ip
get basic info about k8s components
kubectl get node
kubectl get pod
kubectl get svc
kubectl get all
get extended info about components
kubectl get pod -o wide
kubectl get node -o wide
get detailed info about a specific component
kubectl describe svc {svc-name}
kubectl describe pod {pod-name}
get application logs
kubectl logs {pod-name}
stop your Minikube cluster
minikube stop

⚠️ Known issue - Minikube IP not accessible

If you can't access the NodePort service webapp with MinikubeIP:NodePort, execute the following command:

minikube service webapp-service

Links

About

Source code for a simple demo of a kubernetes configuration