Kubernetes

Posts tagged with #k8s
Total: 8

Replace item in list with Kustomize

Notes | 2025-09-16 (updated 2025-10-25) | 1 min read
#k8s #kustomize

Kubernetes resources have quite a lot of lists in them and replacing an item in such lists is quite easy using kustomize patches with op: replace.

Replacing a specific list item safely however is not as obvious as the order of items could change, leading to a technically valid but practically incorrect manifest.

Read more…

kubeswitch: The kubectl for operators

Notes | 2025-04-17 (updated 2025-10-25) | 1 min read
#k8s #tools

kubeswitch (lazy: switch) is the single pane of glass for all of your kubeconfig files. Caters to operators of large scale Kubernetes installations. Designed as a drop-in replacement for kubectx.

I’m using it for all my cluster-switching needs.

kubectx & kubens

Notes | 2025-02-17 (updated 2025-10-25) | 1 min read
#k8s #tools

When working with multiple Kubernetes clusters and namespaces switching context can be a chore.

For this I enjoy using kubectx and kubens.

They can be installed using kubectl krew.

kubectl krew install ctx
kubectl krew install ns
I’ve since switched to [[kubeswitch]], which works much nicer for me.

Managing Multiple Kube Config Files

Notes | 2024-02-22 (updated 2025-10-25) | 1 min read
#k8s #productivity #scripting

This is a simple script that takes multiple kube config files and deeply merges them into one.

I’ve since switched to [[kubeswitch]], which works much cleaner than this home-grown script.

Read more…

Debugging Container Workloads

A Helper Container

Posts | 2023-12-04 (updated 2025-10-23) | 1 min read
#containers #debugging #k8s #python

Debugging container workloads can be a challenge sometimes, especially when running them in k8s, behind a reverse proxy or in other, possibly complex, traffic flow scenarios.

Read more…

Add fields to list with Kustomize

Notes | 2023-10-18 (updated 2025-10-25) | 1 min read
#k8s #kustomize

How to add things to a list using kustomize. This is useful for example when you need to patch additional environment variables into a pod.

Read more…

Helm: Join two lists

Notes | 2023-07-22 (updated 2025-10-25) | 1 min read
#helm #k8s

Since early 2019 the sprig library used by helm provides a concat function that does exactly this.

Read more…

Kubernetes

Notes | 2020-01-01 (updated 2025-10-25) | 1 min read
#k8s #slashpage-uses

I have run and am still running loads of Kubernetes clusters, mostly on-premise.