[Kubernetes] How to remove undeletable resource (pod/secret/configmap/namespace)

Issue Kubernetes resource can be undeletable due to random errors. In this case, the secret is undeletable. Even you use –force and –grace-period=0 on delete command, the resource is still there without deleting. Solution Referring to the official doc about force deletion of pod, modifying the metadata.finalizers can help to remove the resource.  Simply execute […]

Kubernetes nameserver error fix

Kubernetes error message: Nameserver limits were exceeded, some nameservers have been omitted This can be easily fixed by editing the nameserver resolve config. The path of the config is  /run/systemd/resolve/resolv.conf.  If you open up the file, you can see the comment # Too many DNS servers configured, the following entries may be ignored., and this […]