/volume-mount-node

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

simple-node

A Containerized Node JS web app display helloworld

Environemnt setup

  • Install Docker desktop
  • Enable Kubernetes
  • Setup local docker registry Reference
docker run -d -p 5000:5000 --restart=always --name registry registry:2

Build docker image

docker build -t localhost:5000/hello-world-image .

Push image to local container registry

docker push localhost:5000/hello-world-image 

Create configmaps

kubectl create configmap file12-config --from-file=files-1.yml
kubectl create configmap file3-config --from-file=files-2.yml

Deploy k8s pod

kubectl create -f deployment.yml

Cleanup

  • Remove docker registry
docker container stop registry
docker container stop registry && docker container rm -v registry