
Requirements
- A machine / laptop running Windows 10 or 11, MacOS or a Linux distribution of your choice. I use Ubuntu in the example setup video.
- To follow the CLI based workflow I'm teaching, please learn basic vim editing before starting this course. You only need to know the very basics:
- opening, saving and closing a file
- navigating with hjkl
- These can be learned in 15 minutes by following a basic tutorial of your choosing. More advanced vim usage will be explained as we go along
- Knowing this vim editing is also required for doing the CKA/CKAD exams, so I advise you to do it from the start if you plan to do these exams
What we will cover
- Setting up a cluster on your local machine
- Setting up a basic CLI based workflow using tmux, vim and k9s, which is also compatible with VSCode or other tools
- What is Kubernetes and what is it used for
- Basic structure of a Kubernetes cluster
- Fundamentals of Kubernetes applications: pods, deployments
- Kubernetes Manifests: It's all just yaml
- Fundamentals of Kubernetes Storage: persistent volumes, pvc, storage provider
- Fundamentals of Kubernetes networking: service, loadbalancer and ingress
- Kubernetes troubleshooting and where to look for issues
- Installing applications with Helm
- Setting up a basic monitoring stack
Rancher Desktop
* Easy to get going
* Works on MacOS, Linux & Windows out of the box
* Also sets up Docker & Docker registry
Vim
* Overall great skill to have
* CKA / CKAD exams
* Kubernetes Engineer Reality
* Required, if you wish to follow: Basic editing
* open and close files
* Save files
* basic navigation with hjkl
* run vimtutor a couple of times
You are free to use any editor you like!
Required packages
apt/brew:
tmux
vim or nvim
bash-completion (for Linux/WSL)
brew:
kubectl
k9s
.bashrc
Set up .bashrc for kubectl completion by adding the following:
alias k='kubectl'
source /etc/bash_completion # not needed on macos
source <(kubectl completion bash)
complete -o default -F __start_kubectl k
.vimrc
This is a basic .vimrc for YAML editing:
" Ensure Vim uses filetype plugins
filetype plugin on
" Enable indentation
filetype indent on
" Set the default indentation to 2 spaces for all files
set tabstop=2
set softtabstop=2
set shiftwidth=2
set expandtab
" Highlight trailing whitespace in all files
autocmd BufRead,BufNewFile * match Error /\s\+$/
" Enable auto-indentation
set autoindent
" Turn on syntax highlighting
syntax on
" Set backspace so it acts more intuitively
set backspace=indent,eol,start
raw.githubusercontent.com/mischavandenburg/lab/main/kubernetes/grafana/dashboards/simple-namespace-overview.json
Download the bonus document below for an exclusive invite. KubeCraft is the #1 DevOps community helping people accelerate their careers in Kubernetes and DevOps.
Are you ready to dive into the world of Kubernetes? This comprehensive course will guide you through everything you need to know to become proficient in managing Kubernetes clusters. Whether you're a beginner or looking to enhance your skills, this course covers all the essential aspects of Kubernetes.
This course is an excellent preparation for the CKA/CKAD courses. Other courses tell you about Kubernetes, but don't necessarily show you HOW to do it. This course puts a lot of emphasis on learning how to manage Kubernetes clusters from the command line using kubectl, tmux and vim.
These skills are absolutely essential if you are going for your CKA, CKAD or CKS certifications. But these are not taught in the other courses. This course is the missing link for that.
Note that this course is not a complete CKA/CKAD course, further study will be needed for those certifications, and by the end of the course I will suggest the next steps for you.
Course Highlights:
Setting up a Cluster on Your Local Machine
Learn how to configure a Kubernetes cluster on your local machine, making it easy to practice and experiment with Kubernetes in a controlled environment.
Creating a Basic CLI Workflow with Tmux, Vim, and k9s
Develop a robust command-line interface (CLI) workflow using tmux, Vim, and k9s. This setup is also compatible with popular tools like VSCode, enhancing your productivity and efficiency.
These tools are required to know for the CKA/CKAD exams
Introduction to Kubernetes
Understand what Kubernetes is and its primary use cases.
Gain insights into why Kubernetes is a powerful tool for managing containerized applications.
Structure of a Kubernetes Cluster
Explore the basic structure of a Kubernetes cluster.
Learn about the different components that make up a cluster and how they interact with each other.
Kubernetes Applications: Pods and Deployments
Dive into the fundamentals of Kubernetes applications.
Learn about pods, the smallest deployable units in Kubernetes, and how to manage applications using deployments.
Kubernetes Manifests: YAML Configuration
Get hands-on experience with Kubernetes manifests.
Understand how to configure and manage your applications using YAML files.
Kubernetes Storage Fundamentals
Learn about Kubernetes storage solutions, including persistent volumes (PV), persistent volume claims (PVC), and storage providers.
Understand how to manage data in your Kubernetes applications.
Kubernetes Networking Fundamentals
Explore Kubernetes networking concepts such as services, load balancers, and ingress.
Learn how to expose your applications and manage traffic within your cluster.
Kubernetes Troubleshooting
Gain essential troubleshooting skills.
Learn where to look for issues and how to resolve common problems in your Kubernetes environment.
Installing Applications with Helm
Discover how to use Helm, the package manager for Kubernetes.
Learn to install and manage applications efficiently using Helm charts.
Setting up a Basic Monitoring Stack
Set up a monitoring stack to keep track of your Kubernetes cluster’s performance and health.
Learn about the tools and practices necessary for effective monitoring.
Why Enroll?
Comprehensive Curriculum: Covering everything from setup to advanced troubleshooting and monitoring.
Hands-On Learning: Practical examples and exercises to reinforce your understanding.
Expert Guidance: Learn from an industry professional with real-world experience.
Enroll today and start your journey to mastering Kubernetes!