How would you migrate workloads from `kubectl apply` scripts to Argo CD without downtime?
AdvancedScenarioHelm, operators and GitOps
Answer
Situation read → Many resources already exist, deployed manually.
What I'd do →
- Commit current live manifests to Git (
kubectl get -o yamlcleaned) - Create the Argo Application with automated sync off
- Use
argocd app diffuntil it is clean - Enable sync without prune first
- Then enable prune and self-heal
Why → Adoption is safe when Argo sees no difference before taking control.
Interview tip → Say you do the first sync manually.
More on Helm, operators and GitOps
A `helm upgrade` failed halfway. How do you see state and recover?BeginnerHelm says `cannot re-use a name that is still in use` or `another operation is in progress`. What now?IntermediateHow do you review what a Helm upgrade will change before running it?IntermediateWhere do you keep chart values for multiple environments?BeginnerWhat does `helm template` do and how is it different from `helm install`?BeginnerA Helm chart upgrade changed an immutable field and failed. How do you proceed?Advanced