The declarative kubectl apply command checks the local config file (stored on the local system), the live config (stored in K8s memory) and the last applied config (stored in the live config as an annotation in JSON format), to decide what changes are to be made to take the system to the desired state.

Untitled

Last applied config is required to find out if something has been removed in the local config file.

Untitled