Course · Training · Workshop

Kubernetes & Docker DevOps

Three days hands-on: build containers with Docker, deploy, run and scale applications on Kubernetes, and automate rollouts with Helm, GitLab CI/CD and Argo CD.

The application is meant to run in containers, the Kubernetes cluster is in place or being planned, and Dockerfiles, YAML manifests, Helm charts and pipelines all meet in one team. Developers need to understand how their code is built into an image and run in the cluster. System engineers need to know what an application expects from the platform. This course takes both sides through the whole path in three days, from the first container to an automated rollout on Kubernetes. On day one you build images with Docker, work with networks, volumes and a registry, and start your first Pods, Deployments and Services. Day two covers Ingress, Namespaces, storage, Secrets and ConfigMaps, probes, resources, autoscaling, StatefulSets and deployment strategies. On day three you install applications with Helm, build a GitLab CI/CD pipeline that builds images and rolls them out to several environments, and set up GitOps with Argo CD. You work in your own Labmachine with Docker, a multi-node Kubernetes cluster and your own GitLab project. At the end you have taken a sample application from the Dockerfile to a rollout by pipeline and Argo CD yourself, you read and write Kubernetes manifests and you narrow down faults with kubectl. In-house courses are adapted to your team, with a development or operations focus and in two to four days.

What participants say

This was one of the best hands-on trainings I ever had. The lab environment is outstanding and the exercises are well documented. All of the exercises did work without any hiccup. Many thanks!
Matthias Matthias
Principal Engineer, Schindler
Kubernetes in my mind was a supernatural monster that could neither be understood nor tamed. It was magic a mere programer couldn't grasp. The Kubernetes course prooved my superstitions wrong!
Pascal
It was easy to follow along the course using the lab environment, providing a professional playground to deep dive into Kubernetes and Rancher. The instructor supplied in-depth knowledge with his real life experience.
Ambrosius Ambrosius
Senior Systementwickler, Universitätsspital Basel
The preparation, passion and especially knowledge of the trainer was really impressive. Equipped with all necessary training tools it made easy for me to put the theory into practice and play around with Gitlab Pipelines, Docker and Kubernetes.
Patryk Patryk
Software Engineer
The course with letsboot.ch was a game-changer for my understanding of containerization. Highly recommended for anyone looking to gain practical skills.
Laurin Laurin
Software Engineer I Noser
The course was excellently prepared and executed. The balance between theory and practice was very good and the content was logically presented. It was really fun to learn about Docker, Kubernetes and how containers can be used for modern CI/CD in real life.
Marco

These customers booked courses in the same topic cluster.More customers →

Content

This Kubernetes and Docker course is for system engineers, developers and DevOps engineers who build applications in containers and run them on Kubernetes. You work in your own Labmachine with Docker, a multi-node Kubernetes cluster and your own GitLab project, and take a sample application step by step from the Dockerfile to an automated rollout.

The course consists of the following topics and can be adapted to the audience. Day one covers containers and the first steps in Kubernetes, day two running applications in the cluster, day three Helm, CI/CD and GitOps. For in-house courses we put the agenda together with a development or operations focus and for two to four days.

Containers with Docker

  • Containers and virtual machines compared: image, container and runtime
  • Starting and inspecting containers with docker run, exec, logs and ps
  • Container networking: user-defined networks, name resolution between containers and published ports
  • Keeping data with named volumes and bind mounts
  • Hands-On: Build and start the todo-app image, connect MariaDB and Adminer over a user-defined Docker network

Images and registries

  • Dockerfile: FROM, WORKDIR, COPY, RUN, and CMD and ENTRYPOINT
  • Using the layer cache and choosing the order of instructions
  • Multistage builds, minimal base images (scratch, distroless) and containers without root
  • Image references: registry, tag and digest
  • Hands-On: Optimise the todo-app Dockerfile, push the image to the GitLab Container Registry and start it by digest

Kubernetes basics and workloads

  • What orchestration provides: control plane, control loop and desired state
  • Working with kubectl: run, apply, get, describe, explain and events
  • Pods, ReplicaSets and Deployments and how they relate
  • Rolling update and rollback of a Deployment
  • Hands-On: Create a Pod imperatively and declaratively, roll out a web server as a Deployment, update it and roll it back

Services, Ingress and Namespaces

  • Services of type ClusterIP, NodePort and LoadBalancer, labels, selectors, Endpoints and EndpointSlices
  • DNS names of Services within a Namespace and across Namespaces
  • Ingress with path-based routing and TLS
  • Gateway API with Gateway and HTTPRoute as the migration path after the end of ingress-nginx
  • Namespaces, kubeconfig and contexts, several clusters with one KUBECONFIG per directory
  • Hands-On: Expose a frontend and a backend through one Ingress and check the connection from inside the cluster with a debug Pod

Configuration and storage

  • Mounting ConfigMaps and Secrets as environment variables and as files
  • PersistentVolumes, PersistentVolumeClaims, StorageClasses and CSI drivers
  • Access modes and reclaim policies
  • Multi-container Pods: initContainer and sidecar with a shared volume
  • Hands-On: Run the todo-app with a PersistentVolumeClaim and provide the database credentials as a Secret

Probes, resources, autoscaling and scheduling

  • startupProbe, readinessProbe and livenessProbe and their effect on Service endpoints and restarts
  • Requests and limits with CPU throttling, OOM kill and Pod eviction, LimitRanges and ResourceQuotas
  • Horizontal Pod Autoscaler, and where the Vertical Pod Autoscaler fits
  • StatefulSets: fixed Pod names, ordered scaling and stable network identities
  • Blue-green and canary deployments with Service selectors and replicas
  • Scheduling with taints, tolerations, node affinity, PriorityClasses and PodDisruptionBudgets
  • Hands-On: Configure probes for a Deployment and trigger failures, scale under CPU load with the Horizontal Pod Autoscaler and switch traffic from blue to green

Helm and Kustomize

  • Installing, upgrading and rolling back charts as releases: helm upgrade –install, rollback and history
  • Overriding values with –set and values files, rendering templates locally with helm template
  • Chart sources: Helm repository and OCI registry
  • Kustomize: one base with overlays for staging and production (optional topic)
  • Hands-On: Install the Kubernetes dashboard Headlamp with Helm and Ingress, upgrade a local chart and roll it back

CI/CD with GitLab

  • Structure of a .gitlab-ci.yml: stages, jobs and a pipeline per commit
  • Building, tagging and pushing images to the registry in the pipeline
  • Rolling out to the cluster with kubectl apply
  • Separating environments: staging automatically, production with manual approval
  • Deployment with helm upgrade –install and values per environment
  • Hands-On: Build a pipeline that builds the image on every commit, rolls it out to staging and updates production after manual approval

GitOps with Argo CD

  • CD push and pull compared: deployment from the pipeline, or by Argo CD and Flux from inside the cluster
  • Argo CD architecture, Applications and sync status
  • Working with the argocd CLI and the web interface
  • Hands-On: Register your own GitLab repository in Argo CD and scale the todo-app with a commit

Optional topics depending on the group’s focus

  • Troubleshooting: failed releases, Services without traffic and Pods in status Pending
  • NetworkPolicies and CNI plugins, using Cilium as the example
  • RBAC and ServiceAccounts: Roles, ClusterRoles and bindings
  • Jobs and CronJobs
  • Podman as a Docker alternative and Docker Compose for local environments
  • Dynamic review environments per feature branch
  • Hands-On: Work through the on-call scenario «Webshop down» and find and fix three faults one after another

At the end of the course you have built the sample application as an image, deployed, configured and scaled it on Kubernetes and rolled it out by pipeline and Argo CD. GitLab is used for CI/CD and the registry; concepts, examples and workflows are platform independent and transfer to other CI/CD systems.

To go deeper, Container & Kubernetes Security, Helm Charts for Kubernetes, GitOps with ArgoCD, Talos Linux for Kubernetes and Hands-on OpenShift follow on from this course. CKAD Preparation and CKA Preparation prepare you for certification.

The actual course content may differ from the above depending on the trainer, delivery, duration and the composition of participants.

Request this course in-house

By submitting you accept our Privacy Policy.

Request a public date

No suitable public date? Register without obligation — once there is enough interest we schedule a new public date and let you know first.

Number of participants (approx.)

More than 3 participants? Best to request a dedicated in-house date directly.

By submitting you accept our Privacy Policy.

More about Kubernetes & Docker

Kubernetes is an open-source system for the automated deployment, scaling and management of containerised applications. It was originally developed by Google and is based on their internal system called "Borg". The project was open-sourced in 2014 and has since been managed by the Cloud Native Computing Foundation (CNCF). The principal architects were Joe Beda, Brendan Burns and Craig McLuckie.

Docker, developed by Solomon Hykes and originally part of dotCloud, made containers widely usable from 2013 with a user-friendly interface and a standardised image format. Today containers and Kubernetes are building blocks of cloud-native architectures, microservices and GitOps.

Further resources:

Related courses