Clean up completed pods and jobs from a namespace

By default, Kubernetes and OpenShift keep completed pods in namespaces indefinitely, which can make the namespace difficult to navigate using the command-line and web interfaces. There are ways to optional set history for completed or failed jobs, but this may not be an option for you if the application is not under active development. You can delete completed resources using the kubectl delete or oc delete commands, like this: # Delete a pod in the current Kubernetes namespace kubectl delete pod ste4site-web-test # Delete a pod in the current OpenShift namespace oc delete pod ste4site-web-test You can manually remove completed pods individually, but this could be time-consuming if there are many completed pods, and you could accidentally delete an active resource....

May 13, 2023 · 2 min

Extend Bluetooth range and get USB ports on the front of your monitor

I’ve been crawling under desks to access ports for decades. Many modern monitors incorporate a USB hub, but manufacturers still (inexplicably) put the ports on the underside or back of the screen. I frequently need to temporarily attach USB drives, peripherals, dongles, security keys, and more. How can I make my USB life easier with less desk clutter? The answer comes in the form of mounting tape, a lightweight USB hub, and an extension cable:...

May 13, 2023 · 2 min