Python on Kubernetes: A primer
Nabarun Pal (~palnabarun) |
Kubernetes has been an ever-growing phenomenon for deploying and managing workloads at scale. With Kubernetes, the operations of scaling and managing workloads become simpler as compared to managing them by hand on virtual machines. In order to leverage the power of Kubernetes, the user needs to
- A quick recap on containers and Docker (~15 mins)
- Writing a Dockerfile for a Python web server (~15 mins)
- Introduction to the Kubernetes architecture (~15 mins)
- Types of Kubernetes workloads with examples (~15mins)
- Creating a local Kubernetes cluster (~30 mins)
- Deploying the Python web server to the cluster (~15mins)
- Getting traffic into the web server (~15mins)
- Scaling the deployment (~15mins)
- Adding health checks (~15mins)
- Knowledge of building web APIs in Python
- Basic knowledge of workload types (eg, servers, one-off jobs, scheduled jobs)
- Basic knowledge of packaging Python applications
- A computer/VM with Linux installed
- Knowledge of containerization/Docker is needed.
All the workshop code would be present eventually in the following repository: https://github.com/palnabarun/kubernetes-workshop
The workshop will be very hands-on and we will build something as we learn. The repository above would have some glimpse of the content by September 26th.
Nabarun Pal works as an Infrastructure Engineer at Clarisights. He has had worn several hats ranging from software to data pipelines to infrastructure in the industry after graduating from IIT Roorkee. Nabarun actively contributes to diverse open source communities like Kubernetes, Python, etc. He also participates in conducting lectures on Free and Open Source Software at Durgapur Linux Users' Group, aka, DGPLUG. Nabarun speaks about technology and his experiences at conferences and meetups in India and abroad. Nabarun also holds a Certified Kubernetes Administrator (CKA) certification.
Nabarun, in his free time, currently contributes to a variety of subprojects in the Kubernetes ecosystem notable of which are leading the Kubernetes 1.19 Release Enhancements Team and maintaining the release of Kubernetes Python Client along with taking care of adding features and fixing bugs in the Python client. In addition to that, he is also one of the Kubernetes SIG Contributor Experience Asia Pacific Coordinators and New Membership Coordinators.
Nabarun can be reached out on the following:
- Website: https://naba.run
- GitHub: https://github.com/palnabarun
- LinkedIn: https://linkedin.com/in/palnabarun
- Twitter: https://twitter.com/theonlynabarun