Skip to content

ericywl/k8s-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Repository for K8s Demo

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

Docker refresher

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages