/pacman

pacman as a service - sample application for tutorials and lectures

Primary LanguageJavaScriptApache License 2.0Apache-2.0

Pacman

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 )

Documentation

Support and Community Slack

https://aocc-public.slack.com/join/signup

Architecture

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.
  • 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

Source

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/saintdle/pacman-tanzu.git

https://github.com/font/k8s-example-apps/tree/master/pacman-nodejs-app

Recommended Reading

Snyk's vulnerability database: https://security.snyk.io/vuln/npm