DELAPARRA
Index
Color
NL
Category: Kubernetes

edit

Explained by Updated

What is edit?

edit: Open a live resource in your editor and apply changes on save. Quick fixes, but changes are not tracked in your manifests. kubectl edit opens a live Kubernetes resource in your text editor. When you save and close, the changes are applied to the cluster immediately. It is quick for experiments and emergencies, such as raising a memory limit during an incident or checking what a setting does.

Definition source Coders Lingo, CC BY 4.0

Frequently asked questions about edit

What should you keep in mind with edit?

The problem is that the change exists only in the cluster. Your manifest files in Git still contain the old value, so the next deploy undoes your fix, and nobody can see later why the setting changed. If you use a GitOps tool, it may revert your edit within minutes. Treat kubectl edit as a temporary measure, and copy any change you want to keep into the manifests in your repository straight away.

What does an example of edit look like?

kubectl edit deployment web

At a glance

CategoryKubernetes
Explained by
Updated

More Kubernetes terms

All terms starting with E

Skills

Download all skills (zip)

Manuals

Related services

Need any help?

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.