File tree Expand file tree Collapse file tree 2 files changed +12
-7
lines changed
Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 1- Krew prune plugin
2- =================
1+ Kubectl plugins
2+ ===============
33
4- > Krew plugin which delete secrets or configmaps that are not being used in a
5- given namespace. It checks from mounted volumes, env, envFrom and
4+ > Kubectl plugins repository.
5+
6+ | plugin | description |
7+ | ---------------------| -------------|
8+ | prune | Delete secrets or configmaps that are not being used in
9+ a given namespace. It checks from mounted volumes, env, envFrom and
610imagePullSecrets.
711
812## Getting started
913
10- Install as a kubectl plugin using [ krew] ( https://krew.dev ) . Refer to the
14+ Install [ krew] ( https://krew.dev ) to manage Kubectl plugins . Refer to the
1115[ Krew documentation] ( https://krew.dev ) to get started.
1216
1317``` bash
18+ # install the prune plugin
1419$ kubectl krew install prune
1520
16- # Usage:
21+ # usage
1722$ kubectl prune < resource type> < namespace>
1823
1924# delete unused secrets
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
2- # Krew plugin which delete secrets or configmaps that are not being used in a
2+ # Kubectl plugin which delete secrets or configmaps that are not being used in a
33# given namespace. It checks from mounted volumes, env, envFrom and
44# imagePullSecrets.
55#
You can’t perform that action at this time.
0 commit comments