Custom Kubectl Output with Go-template

Zhimin Wen
3 min readSep 20, 2023
Image by René Vlak from Pixabay

I have a local registry for the OpenShift Cluster. We just did some migration and retired the old registry. However some images were missed out leading to some of the Pods not running properly. The issue was not so obvious as the default image pull policy for most of the pods was set as IfNotPresent. When the pod is being refreshed the problem starts to pop out.

--

--