explaingit

guangzhengli/k8s-tutorials

5,805GoAudience · developerComplexity · 3/5Setup · moderate

TLDR

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.

Mindmap

mindmap
  root((k8s-tutorials))
    What it covers
      Containers basics
      Pods and Deployments
      Services and Ingress
      Helm packaging
    Learning path
      Progressive lessons
      Hands-on exercises
      Modified example code
    Sample app
      hellok8s in Go
      Used throughout
    Prerequisites
      Container knowledge
      Basic k8s theory
    Access
      GitHub repo
      Author website
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Things people build with this

USE CASE 1

Follow step-by-step exercises to learn Kubernetes by deploying real workloads rather than reading documentation alone.

USE CASE 2

Use the hellok8s Go sample app to practice deploying, scaling, and managing applications on a Kubernetes cluster.

USE CASE 3

Learn Helm packaging by deploying a complete application using the chart examples in the final lessons.

USE CASE 4

Study Kubernetes secrets, configmaps, and ingress by modifying the example code incrementally across lessons.

Tech stack

GoKubernetesDockerHelm

Getting it running

Difficulty · moderate Time to first run · 1h+

Requires a running Kubernetes cluster such as Minikube or Kind and basic familiarity with containers before starting.

In plain English

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.

Copy-paste prompts

Prompt 1
I'm following the k8s-tutorials by guangzhengli. I've set up a basic pod but need help writing a Deployment manifest that scales to 3 replicas with a rolling update strategy.
Prompt 2
Using the hellok8s example app from guangzhengli/k8s-tutorials, show me how to expose it via a Kubernetes Service and Ingress so I can reach it from my browser.
Prompt 3
Help me create a Kubernetes ConfigMap and Secret for the hellok8s app, then mount them as environment variables inside the pod.
Prompt 4
I'm on the Helm lesson in guangzhengli/k8s-tutorials. Show me how to package the hellok8s app as a Helm chart with configurable replica count.
Prompt 5
Walk me through setting up a Kubernetes namespace and deploying hellok8s into it with a dedicated service account.
Open on GitHub → Explain another repo

← guangzhengli on gitmyhub — every repo by this author, as a profile.

Verify against the repo before relying on details.