I understand the difference between Declarative and Imperative Management, well explained in this thread kubectl apply vs kubectl create? and in the official doc https://kubernetes.io/docs/tasks/manage-kubernetes-objects/declarative-config/
But my residual doubt is that even in the Declarative Management a (manual) command like
kubectl scale
although persists further
kubectl apply
commands still "won't survive" a cluster restart (since its configuration change is stored in the cluster store, like etcd), right? If so, shouldn't we make changes only to the
object configuration file
and redeploy through
kubectl apply
command? thanks