k8s-tutorials
k8s tutorials | k8s 教程
A free, hands-on Kubernetes tutorial in Chinese that walks through every core resource type step by step, from containers to Helm, with working code examples using a small Go sample app throughout.
This repository is a free, open-source Kubernetes tutorial written primarily in Chinese. Kubernetes (often shortened to k8s) is a system used to run and manage containerized applications at scale. The tutorial is aimed at people who want hands-on practice rather than just reading documentation.
The course is structured as a progressive series of lessons. It starts with the most basic concept, a container, and then introduces each Kubernetes resource type one at a time: pods, deployments, services, ingress, namespaces, configmaps, secrets, jobs and cronjobs, and finally Helm, which is a tool for packaging and deploying a full application. Each lesson builds on the previous one with gradually modified example code.
The README notes that the tutorial assumes you have some familiarity with containers and basic Kubernetes theory beforehand. If you are starting from zero, it recommends reading the official Kubernetes documentation first, then using this tutorial to reinforce that knowledge through practice.
The tutorial content is also published on the author's personal website at guangzhengli.com/courses/kubernetes, where the reading experience is described as better than browsing GitHub directly. The repository accepts community contributions through pull requests and issues, and hosts a discussions section for questions. A small Go application called hellok8s is used as the sample workload throughout the lessons.
Where it fits
- Follow step-by-step exercises to learn Kubernetes by deploying real workloads rather than reading documentation alone.
- Use the hellok8s Go sample app to practice deploying, scaling, and managing applications on a Kubernetes cluster.
- Learn Helm packaging by deploying a complete application using the chart examples in the final lessons.
- Study Kubernetes secrets, configmaps, and ingress by modifying the example code incrementally across lessons.