Skip to content

Instantly share code, notes, and snippets.

@nmofonseca
nmofonseca / podman_wsl.md
Last active October 9, 2025 15:50
Use Podman form other WSL

Podman installation

Just download podman from their website and follow the instraction steps to install and setup podman on Windows

WSL distro setup

The steps described here all come from from Podman documentation but for ease of use they are all here described.

Get podman-remote in WSL

@nmofonseca
nmofonseca / k8s_resources.sh
Last active April 25, 2024 10:42
Script to get resources used and available in a K8s cluster
#!/bin/bash
# Variables to keep track of the total available CPU and memory
total_available_cpu=0
total_available_memory=0
for node in $(kubectl get nodes -o jsonpath='{.items[*].metadata.name}'); do
echo "Node: $node"
# Get the current usage