Feedback

Chat Icon

Observability with Prometheus and Grafana

A Complete Hands-On Guide to Operational Clarity in Cloud-Native Systems

Monitoring Kubernetes with Prometheus
81%

Setting Up a Kubernetes Cluster

For the purpose of this guide, we will set up a simple Kubernetes cluster using K3s, a lightweight Kubernetes distribution. K3s is easy to install and is suitable for learning, testing and even production use cases with resource constraints.

We need a single VM to act as the control node (master) and the worker node. There's no real need to create a multi-node cluster for this guide. You can choose any machine where the single-node cluster can be installed. In this guide, we will use the server1 VM. You can install K3s by running the following command on the VM:

ssh root@${server1}

# Install K3s
curl -sfL https://get.k3s.io | \
    INSTALL_K3S_VERSION="v1.33.5+k3s1" sh -s - \
    server \
    --write-kubeconfig-mode '0644'

Observability with Prometheus and Grafana

A Complete Hands-On Guide to Operational Clarity in Cloud-Native Systems

Enroll now to unlock all content and receive all future updates for free.