---
layout: post.html
title: "T.I.L. kubectl replace"
summary: "Today I Learnt: kubectl replace"
date: 2020-09-25
tags: til kubernetes kubectl

---

After working with Kubernetes for a few years now I've only just today learnt about `kubectl replace` which, you guessed it, completely replaces a resource.

I've always used `kubectl apply` to update existing resources (or create new ones) which does a merge between the existing and the supplied manifest.

Hat tip to [@vdemeest](https://twitter.com/vdemeest) for this:

[![](data:image/png;base64,[encoded data, 188800 characters])](https://twitter.com/vdemeest/status/1309411899826724867)
