CariZa / Kubernetes-Demo-Nginx-2021

A demo with using docker-compose and the kubernetes to run an nginx environment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Kubernetes-Demo-Nginx-2021

A demo with using docker-compose and the kubernetes to run an nginx environment

docker-compose

Run the docker-compose

$ docker-compose up -d

View the website:

http://localhost:8000

I've pushed a publicly available image here (just for testing purposes):

https://hub.docker.com/repository/docker/cariza/nginxtest

Kubernetes

Run on kubernetes cluster:

$ kubectl apply -f ./k8s

Port forward service:

$ kubectl port-forward service/nginx-service 8005:80

View the website:

http://localhost:8005

About

A demo with using docker-compose and the kubernetes to run an nginx environment


Languages

Language:HTML 75.2%Language:Dockerfile 24.8%