Skip to content

zaelgohary/k8s-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

k8s-demo

A demo for Kubernetes using mongoDB.

start minikube with docker as a dirver

minikube start —driver docker 

create config files

kubectl apply -f mongo-config.yaml 
kubectl apply -f mongo-secret.yaml 
kubectl apply -f mongo.yaml 
kubectl apply -f webapp.yaml 

verify all components creation

kubectl get all

get internal IP of the node

kubectl get node -o wide

get the port of the service

kubectl get svc

you can now access the application externally on the nodeIP:svcPort

About

A demo for Kubernetes using mongoDB.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published