Tutorial Application for Teaching k8s on k8s
Rewritten from the original to work on a hardened rke2 (this is not claiming to be original work, I took it from: https://vzilla.co.uk/vzilla-blog/building-the-home-lab-kubernetes-playground-part-9 )
- Set up a local development environment using docker compose
- Understand linux containers
- Deploy pacman on kubernetes
https://aocc-public.slack.com/join/signup
The application is made up of the following components:
- Namespace
- Deployment
- MongoDB Pod
- DB Authentication configured
- Attached to a PVC
- Pac-Man Pod
- Nodejs web front end that connects back to the MongoDB Pod by looking for the Pod DNS address internally.
- MongoDB Pod
- RBAC Configuration for Pod Security and Service Account
- Secret which holds the data for the MongoDB Usernames and Passwords to be configured
- Service
- Type: ClusterIP
- Ingress
- Using a certificate generated via certman
These are modified files from the below github repos , changed mildly to make them run contained in a single namespace and without priviledged pods.
https://github.com/font/k8s-example-apps/tree/master/pacman-nodejs-app
Snyk's vulnerability database: https://security.snyk.io/vuln/npm