SkillsCast coming soon.
Many of us might just be getting started with Kubernetes. A really good way to do so is by creating a small web server in your language of choice with a simple health check. Doing so will give you an awesome playground so you put all of the documentation you’ve read into action.
I’ll start with brief overview of the pieces of Kubernetes needed (rc, manifest, etc) and a running cluster as a prerequisite. I’ll show off a simple go app with a web server. I’ll add a /healthz endpoint, build and push my image to a registry. I’ll reference my new image in the manifest. I will then deploy my manifest into my cluster to create a pod. I’ll show the audience how to talk to my /healthz endpoint. I’ll then go back and introduce the liveness probe and put the liveness probe definition into the manifest, delete my existing rc, re-deploy my new manifest, and show off the logs for the pod confirming that the health check is being performed at the specified intervals.
YOU MAY ALSO LIKE: