Source: Iximiuz Labs — All new posts All sources
Latest stories
Newest first
Updates are delayed. Showing the last checked articles.

Course: Observability 101: Metrics
Welcome to Observability 101, a hands-on course about turning production behavior into numbers you can query, graph, alert on, and trust. Is This Course for You?Is observability a new concept for you? Have you heard of observability before, but not quite sure where to start? Do you have metrics, but not sure what to do with them? Is your monitoring setup unreliable? If the answer to any of these questions is yes, then this course is for you.

Tutorial: Can One VM Really Host 15 Million Web Servers?
This is not my original work; all credit goes to the author of 15 million web servers on one VM, a very cool article that I wanted to have a one-click environment to play through (just since some of the commands are very low level and I didn't wanna risk borking my own system). I wanted to not just read the article, but actually see this happening, and it just so happens that the resources needed (ie, just under 10GB of RAM) are available on a single VM in the iximiuz Labs remote environment! So this is a tutorial

Challenge: Recover a Deleted Secret from a Docker Image
A developer copied a sensitive file named secret.txt into a Docker image. After they found out about the mistake, they added a RUN rm instruction to the Dockerfile to delete the file and rebuilt the image.

Challenge: Fix a Node-Level Config File Without SSH Access
ScenarioThe platform team runs a small telemetry agent called lumen-agent in the lumen namespace. It runs on node-02 and reads its settings from /etc/lumen/agent.conf. The file exists only on the disk of node-02. Nothing in the cluster stores a copy of it, and the Deployment mounts the node's /etc/lumen directory into the agent with a hostPath volume: Over the weekend, an engineer changed a setting in that file during a maintenance window. Since then, the agent fails right after it starts, and Kubernetes keeps restarting it:

Challenge: Create a Custom Resource Definition and Verify It in the Kubernetes API
ScenarioYour team runs an internal platform that keeps website configurations in Kubernetes. The platform team wants a Website resource type, so that operators can create and list Website objects with the same tools they use for built-in resources such as Deployments.

Challenge: Move a Multi-Container Application Off the Host Network
Starting the containers with --network host is a quick way to move an application from a VM to Docker. The components keep talking to each other over localhost, but the containers lose the network isolation that Docker gives them. In this challenge, you'll fix such a deployment with a combination of Docker networking features: published ports, user-defined and internal networks, and name resolution.

Skill Path: Learn Docker Networking End to End
Running a container is only the first step: you still need to make it reachable. A web app needs to accept requests, connect to its database, and perhaps call a service running on the Docker host. How do you make these connections work while keeping the container network sufficiently isolated?

Challenge: Connect a Local Container Registry to a kind Cluster
The kind tool runs local Kubernetes clusters in Docker containers, with one container per node. To make locally built images available to a kind cluster, you can run a local registry on the same Docker host. You push images to the registry from the host, and the cluster's nodes pull them from it.

Challenge: Block Outbound Access with an Internal Docker Network
A containerized application uses separate frontend and backend networks, but its database can still reach the internet. Make the backend network internal while keeping the application’s access to external services.

Challenge: Connect a Container to Two Docker Networks to Isolate Application Tiers
In real projects, Docker Compose is often a handier way to solve this problem. Under the hood, Compose uses the same bridge networks as the commands in this challenge, so it's worth setting them up by hand a few times before you rely on Compose - to understand how it really works. A small engineering team hosts its Git repositories on a self-managed Gitea server, gitsvc-01. Some time ago, the team moved the server's Nginx reverse proxy into a container. Since then, Gitea has moved into a container as well, and it now keeps its database in a

Challenge: Isolate Two Preview Deployments on One Docker Host
In real projects, Docker Compose is often a handier way to solve this problem. Under the hood, Compose uses the same bridge networks and network aliases as the commands in this challenge, so it's worth setting them up by hand a few times before you rely on Compose - to understand how it really works. Isolating several copies of the same application from each other is a common task on a shared Docker host. For example, preview deployments of different branches often run side by side on one server, and a bug or a wrong setting in one of them

Challenge: Connect Containers with a User-Defined Docker Bridge Network
This challenge focuses on Docker Engine running directly on a Linux server, which is the setup most production Docker installations use. Docker Desktop runs Docker Engine inside a separate VM, so the network interfaces Docker creates are not visible on your computer directly.

Challenge: Launch a Multi-Container Web Application, Then Upgrade Its Backend
In this challenge, you'll launch a small web application consisting of two containers: a UI frontend and an API backend.

Shell Gym: Kubernetes Gym: NetworkPolicies and Ingress
Repeatable kubectl exercises for ingress and egress NetworkPolicies and for Ingress host, path, default backend, and TLS rules.

Shell Gym: Kubernetes Gym: Services
Repeatable kubectl exercises for ClusterIP, NodePort, headless, ExternalName, and LoadBalancer Services, Service and Pod DNS names, and port-forwarding.

Challenge: Add an HAProxy Sidecar to Serve an MQTT Broker over TLS
ScenarioTemperature sensors in a factory send their readings over MQTT to a broker. A sensor publishes a reading to a topic, such as factory/line1/temperature, and every client subscribed to that topic receives it. The broker is Eclipse Mosquitto, running as the mqtt-broker Deployment in the iot-platform namespace.

Challenge: Prevent a Service from Starting Without Its Data Disk
When a data volume fails to mount at boot, the service that keeps its data there may start anyway and write to the root filesystem. Practice making a systemd service depend on its data disk, so a failed mount won’t bring down the whole server.

Challenge: Recover an Ingestion Service After a VM Upgrade
The ingest-01 server runs ingestd, a service that processes events from an upstream queue. The incoming data amounts to roughly 3 GiB per day, and the service keeps a local disk cache of the last ten days of events for fast lookups and duplicate detection. The cache can be rebuilt from the primary data store if needed.

Challenge: Fix a Firewall Blocking a Docker Container from Reaching the Host
A small engineering team hosts its Git repositories on a self-managed Gitea server. Gitea runs directly on the host, behind an Nginx reverse proxy. It listens on port 3000 on all addresses of the host, but the server's ufw firewall allows only ports :22 (SSH) and :80 (HTTP) from the network, so the team can reach Gitea only through the proxy.

Challenge: Install a Private Go Module in a Dockerfile Without Leaking Credentials
Your team's Go app depends on git.corp/mycompany/logger, a module hosted on the company's private Git server. To download it, the build needs the credentials stored in ~/app/.netrc.

Challenge: Preserve Firewall Rules Across Server Reboots (nftables edition)
Firewall rules added with the nft command exist only in the kernel's memory. When the server reboots, the rules disappear, and the ports they protect become exposed again. This server runs an HTTP service on port 8080 that should be accessible only from the server itself. A colleague has blocked access to the port from the network with the following commands, as in the Protect an Unintentionally Exposed Server Port with Firewall Rules challenge:

Challenge: Bypass a Broken VPN with a Routing Trick to Restore SSH Access to a Dual-Homed Server
The management VPN is down, but you urgently need SSH access to a datacenter server that is still reachable through its application network. Find an alternative path to SSH using a routing trick and Linux’s weak end host behavior.

Challenge: Block Unexpected Access to a Service on a Dual-Homed Linux Server
On a dual-homed Linux server, a service bound to one network’s IP address may still be reachable from another network. Learn how to prevent this unexpected access without disrupting legitimate connections.

Skill Path: Troubleshoot Kubernetes Pods with kubectl debug
Troubleshooting a running Kubernetes Pod isn't always as simple as kubectl exec. Many production containers have no shell, lack common debugging tools, or run as a non-root user with limited permissions. Ephemeral containers offer a way around these limitations: using kubectl debug, you can add a container with its own tools to a running Pod without restarting the application.

Challenge: Edit a File in a Running Kubernetes Pod: a Non-Root Container Case
The Pod in the default namespace runs a simple web server that serves static files from the /var/www/html directory on port 8080. Unlike in the Simple Case of this challenge, the container runs as a non-root user, and the files in /var/www/html belong to root.

Challenge: Edit a File in a Running Kubernetes Pod: a Distroless Container Case
The Pod in the default namespace runs the same web server as in the Non-Root Container Case of this challenge, but this time from a distroless image. The image has no shell, no tar, and no other tools, and the server runs as a non-root user that owns the files in the /var/www/html directory. On top of that, the default namespace enforces the baseline level of the Pod Security Standards.

Challenge: Use a Kubernetes Job to Test NATS Pub/Sub
ScenarioNATS is a messaging system. Applications use it to send messages to each other without connecting to each other directly. It works with publish/subscribe: A publisher sends a message to a subject, a name such as payments.requests. A subscriber listens on a subject and receives every message sent to it. The NATS server sits between them. Clients connect to it on port 4222, and it delivers each message to every subscriber of the subject. A NATS server already runs in this cluster. More about NATS: What is NATS (NATS)

Challenge: Reach a Linux Service Through an Interface It Doesn't Listen On
In 2002, a surprising Linux networking behavior was documented: on a multi-homed machine, a service listening on the IP address assigned to eth1 could still be reached through eth0, even with IP forwarding disabled.

Shell Gym: Kubernetes Gym: Managing Container Images
Fast, repeatable Docker and kubectl exercises for local images and containers, tags, registries, image archives, and private images in Kubernetes.

Shell Gym: Kubernetes Gym: Building Container Images
Fast, repeatable Docker exercises for Dockerfile instructions, multi-stage builds, and build options.
You have reached the end of this list.
Showing 30 of 30 stories