Skip to content

craigloewen-msft/microk8sdemo

Repository files navigation

Microk8s demo

Getting Started

Set up

Make sure systemd is enabled in WSL

Install the npm packages

  • Install npm packages: npm install && cd frontend && npm install && cd ../backend && npm install && cd ..

Install microk8s

Set up a local registry with the image

You need to deploy microk8s locally with a docker container registry running.

  • Install microk8s https://microk8s.io/docs/getting-started
  • Enable a registry with docker run -d -p 32000:5000 --restart=always --name registry registry:2
  • Build the container cd ./server-backend && docker build . -t localhost:32000/microk8sdemo:latest && cd ..
  • Push the image to the registry docker push localhost:32000/microk8sdemo:latest

Apply the microk8s image

  • Run microk8s kubectl apply -f ./kubedeploy

Run the sample

Run npm run dev to run this

Change the number of servers

Run this to change servers to 8: microk8s kubectl scale --replicas=8 deployment/microk8sdemo

Full list of commands to run to get started

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published