Skip to content

Sajal Choudhary

Garden Stream Nordletter Shelf About
Colophon Now Feeds
Evergreen TIL Story Poem Haiku
Blog Micro Photo
Book Film TV Game
til k8s
Sajal Choudhary https://sajalchoudhary.net

How to Export Current Config to Edit in Yaml

K8S
Planted .

You use kubectl get with -o yaml

kubectl get pod <pod-name> -o yaml > pod.yaml

Once yaml is exported, edit it with vi, and use kubectl apply to apply the config (after deleting the existing thing).

Updated October 23, 2026 at 16:32 . Thoughts? Email me.
Posted to:
Mastodon Bluesky Threads
About Colophon Now Books Evergreen TIL Story Poem Haiku Photo

© 2012–2026 Sajal Choudhary

Streak New posts for 139 consecutive weeks