Created
July 8, 2021 14:07
-
-
Save ferdinandosimonetti/405994dee0911e4ce8b0621ce0c21fec to your computer and use it in GitHub Desktop.
Cleanup old empty ReplicaSets
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| kubectl delete replicaset $(kubectl get replicaset -o jsonpath='{ .items[?(@.spec.replicas==0)].metadata.name }') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment