Kubernetes Lab
Course: Kubernetes Part 3 (Scaling) - chapter 9
Base repository - https://github.com/code100x/algorithmic-arena/
Things to do -
Section titled “Things to do -”- Create a PV, PVC for the postgres database.
- Create a PV, PVC for redis.
- Create deployments for redis, postgres.
- Create ClusterIP services for redis, postgres
- Create a deployment for the nextjs app, expose it via a loadbalancer service on ‣
- Create a deployment for the judge api server. Expose it via a ClusterIP service
- Create a deployment for the judge workers. Add resource limits and requests to it
- Create a HPA that scales based on the
pending submission queuelength in the redis queue - You can either expose an endpoint that you use as a custom metric
- You can put all metrics in prometheus and pick them up from there
- You can use KEDA to scale based on redis queue length
