kb Handle files with very long names in Windows Yesterday I stumbled upon a problem that is quite unusual: a user has been able to download a file with a very long name, and since Windows can only handle path of 259 characters for files it was impossible to delete or rename the file. I tried in cmd to
kb Download a certificate from a web page via CLI I wanted to get the certificate from a Kubernetes API server, so I thought to download it from the https page, but then I had to use in a server without Desktop Environment and I didn't want to bother copying it with scp, so I searched a way
kb Resize additional disks in Siderolabs Talos Linux "Talos will automatically resize the system disk partition(s) if the underlaying block size changes, but not user-managed disks. You would need to schedule a privileged pod with the host /dev/ mounted (kubectl debug node/<name> can do this for you) and use xfs_growfs to expand
kb List all resources in a namespace A couple of times I needed to check what resources where still in a namespace, to understand why the namespace was still deleting after a while. The kubectl get all -n namepace-name does not show all the resources so I found in internet this clever little command to show everything:
kb Port-Forward Kubernetes service or pod port to local port In Kubernetes you often need to troubleshoot an application and one of the first step is to port-forward the container port to a local port to check if it's all working. It's very simple, but still I have to check the syntax every time: kubectl --namespace
kb Helm Debugging Using GitOps and Helm Charts is nice, but it took me a while to understand how to debug how the Chart is rendered by ArgoCD. You can use helm template to generate locally all the manifests from the templates and values: helm template <chart folder> \ --name-template <template
kb Rotate GitHub PAT on Flux If your GitHub token is expired and you need to update it on Flux these are the steps you need to take: * delete the auth secret from the cluster with kubectl -n flux-system delete secret flux-system * re-run flux bootstrap with the same args as before source: https://github.com/fluxcd/
kb Copy ssh GPG keys from Windows to a remote Linux machine In Linux you have ssh-copy-id which is quick and useful: ssh-copy-id [email protected] But how do you copy you ssh keys from your Windows machine to a remote Linux machine? It's a bit more convoluted but you can use: type .ssh\keyfile.pub | ssh user@hostname.
Welcome Welcome to my blog! I'm Agostino. I'm a technology addict and music lover. I've been working in IT since 2014, and I've been tinkering with technology since I was a kid. Over the years I noticed that I keep googling the same commands that I use