This is the repository used for the Demo App in the VMworld 2021 talk: Cloud-Native Fundamentals: Containers and Kubernetes 101 for the VI Admin [MCL1257]
The talk consists of two parts:
- Building the Container
- Running the container in a Kubernetes environment
This is a very simple static HTML side showing the VMworld content and some additional links with more information around the topics. The site is based on HTML5 UP. If you would like to learn more about containers follow these links:
We use the docker daemon to build the container and run it afterwards.
docker build . -t your-docker-hub-account/vmworld:1.0
We run the container localy and exposite to the local port 5000
:
docker run -d -p 5000:80 --rm --name vmworld your-docker-hub-account/vmworld:1.0
If you just want to test it without building it. We got you covered as well:
docker run -d -p 5000:80 --rm --name vmworld ghcr.io/devulrix/vmworld:1.0
We're using a simple deployment file to start the application in our Kubernetes cluster. For more advanced techniques like helm or carvel please have a look at the following content:
We have two files to match the steps in the Demo. First we create the deployment and afterwards we create the Load Balancer. If you want to use your own image, please update the deployment file to reference your image. The default setting is to pull the image from github.
kubectl apply -f deployment/01-vmworld-deployment.yaml
kubectl apply -f deployment/02-vmworld-lb.yaml
Here are the sources for the HTML and images used in the app:
- HTML5 UP
- Photo by Cameron Venti on Unsplash
- Photo by ThisisEngineering RAEng on Unsplash
- Photo by AbsolutVision on Unsplash