Kubernetes -06- Demo

 

https://github.com/apocoder/kubernetes-101

pip install -r requirements.txt

python app.py

curl localhost:5000

devpc:~ apocoder$ curl localhost:5000
Hello Container World! I have been seen 2 times.

Docker

cd Docker

docker-compose up

curl localhost:3000

Kubernetes

kubectl create -f db-pod.yml

 

devpc:Kubernetes apocoder$ kubectl get pods
NAME READY STATUS RESTARTS AGE
my-web-857d97b7cd-k754z 1/1 Running 0 5h
redis 1/1 Running 0 2m
web 0/1 ContainerCreating 0 14s

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s