Skip to content

Set of Kubernetes configs intended for tutorials.

License

Notifications You must be signed in to change notification settings

Hashfyre/k8s-tutes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kubernetes Tutorials

A Set of graded Kubernetes tutorials to document self-progress and help peers

Credits

Build a Docker image

Replace DOCKER_HUB_USER with your Docker Hub username.

cd Docker
docker build -t <DOCKER_HUB_USER>/web .
docker push <DOCKER_HUB_USER>/web

Launch the app with Docker Compose

docker-compose up -d

Test the app

curl localhost:5000

Setup Minikube

macOS / OS X: Minikube

101: Pods exposed as Services

cd ../101-pod-service
kubectl create -f db-pod.yml
kubectl create -f db-svc.yml
kubectl create -f web-pod.yml
kubectl create -f web-svc.yml

102: Pods with ReplicaSet exposed as Services

WIP

103: Deployments exposed as Services

cd ../103-deployment-replicas-service
kubectl create -f db-dpl.yml
kubectl create -f db-svc.yml
kubectl create -f web-dpl.yml
kubectl create -f web-svc.yml

Check that the Pods and Services are created

kubectl get pods
kubectl get svc

Get the NodePort for the web Service. Make a note of the port.

kubectl describe svc web

Test the app by using minkube service url

minikube service web --url

About

Set of Kubernetes configs intended for tutorials.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published