When using TKGi, it may be observed that the fluent bit pods are in Init:0/1 state. When checking further with kubectl describe pod fluent-bit-xxx -n pks-system , it shows the following in events:
Warning FailedMount 6m41s (x3 over 6m42s) kubelet MountVolume.SetUp failed for volume "pks-ca" : secret "pks-ca" not found
Warning FailedMount 6m39s (x4 over 6m42s) kubelet MountVolume.SetUp failed for volume "fluent-bit-certs" : secret "fluent-bit" not foundTKGi
As per the errors, the fluent bit pods are failing due to a lack of the pks-ca and fluent-bit secrets. You can validate this by running:
kubectl get secrets -n pks-system
To resolve this, the missing secrets need to be regenerated. This can be done like so: