Andrea Casarin

Andrea Casarin

Published on: 12/9/2023, 2:40:16 PM - Reading time: 2 minutes

Kubernetes, my DevOps Stack

Foto di Growtika su Unsplash

Introduction to Kubernetes

Kubernetes, often abbreviated as K8s, is an open-source container orchestration platform that automates the deployment, scaling, and management of applications. As a pivotal aspect of DevOps, it allows expansive control over containerized applications and services. Kubernetes' proliferating popularity is indicative of its robust framework and broad ecosystem. However, Kubernetes is a double-edged sword—its sheer complexity can be overwhelming.

This complexity can, nevertheless, be tamed with the right tools. These are the tools, from command-line interfaces to visualizers, I use to simplify the interaction with Kubernetes.

These utilities make Kubernetes more approachable without undermining its powerful functionalities.

Mastering Kubernetes With 'kubectl'

kubectl is your gateway to interacting with Kubernetes. This command-line tool communicates with Kubernetes clusters (groupings of nodes), executing commands through the Kubernetes API. You can use kubectl to deploy applications, inspect resources, and manage your cluster.

For instance, with a single kubectl apply command, you can deploy an application onto your Kubernetes cluster. Moreover, kubectl also helps with debugging and updating applications in real time, making it indispensable in the DevOps stack.

However, remember, kubectl is a very sharp tool: use kubectl config use-context to make sure you're running commands on the right cluster!

Simplifying Kubernetes Configuration With 'kustomize'

kustomize is a standalone tool used for customizing Kubernetes configurations. It manipulates the configuration directly, side-stepping templating and maintaining the original YAML structure. This results in cleaner, more maintainable configurations.

Let's say you want to alter the number of replicas of an object across different environments (dev, staging, and prod). Instead of having separate YAML files for each environment, 'kustomize' allows you to apply changes directly, maintaining a single source of truth.

Despite the emergence of helm, kustomize still holds its ground due to its simplicity, underline 'Kubernetes native' philosophy, and seamless integration with kubectl.

Enhancing Kubernetes Development Workflow With 'skaffold' and 'kompose'

skaffold and kompose are tools that supercharge the Kubernetes development workflow.

skaffold automates the process of building, pushing, and deploying applications to a Kubernetes environment. It handles the workflow, allowing you to focus on writing and maintaining applications.

kompose, on the other hand, is a conversion tool. With a simple kompose convert command, you can transform Docker Compose files into Kubernetes resources. This allows developers already versed in Docker to make a smooth transition to Kubernetes.

Visualizing Kubernetes With 'k9s'

k9s provides a terminal-based UI to interact with your Kubernetes cluster. It helps you to visualize and manage your applications in real time. With the capability of viewing logs, events, and pods on the fly, k9s serves as an invaluable tool for tracking and monitoring your Kubernetes.


Kubernetes is a powerhouse, but its complexity can be intimidating. These tools—kubectl, kustomize, skaffold, kompose, and k9s—make Kubernetes a lot more approachable.

When used in harmony, they can propel your DevOps to new heights, encapsulating the essence of what Kubernetes was intended - automating, simplifying, and iterating. At the end of the day, continuous learning and utilisation of such tools can help to unravel the true potential of Kubernetes.