Skip to content

Instantly share code, notes, and snippets.

@suhas316380
suhas316380 / gist:2182be680ba0bc27ac0af351e7d42c34
Last active December 11, 2021 00:44
Remove unwanted info from Kubernetes manifests to make them more readable

This can be achieved using 2 ways:

  1. Using kubectl-neat: kubectl-neat
  2. using jq/yq

Approach 1: kubectl-neat

  1. Run the following from your terminal to Install krew:
(
 set -x; cd "$(mktemp -d)" &&