HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

k8s-unused-secret-detector — Detect unused Kubernetes secrets. More information: <https://github.com/dtan4/k8s-unused-secret-dete

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandunuseddetectk8s-unused-secret-detectorclikubernetesmoresecrets

Problem

How to use the k8s-unused-secret-detector command: Detect unused Kubernetes secrets. More information: <https://github.com/dtan4/k8s-unused-secret-detector>.

Solution

k8s-unused-secret-detector — Detect unused Kubernetes secrets. More information: <https://github.com/dtan4/k8s-unused-secret-detector>.

Detect unused secrets:
k8s-unused-secret-detector


Detect unused secrets in a specific namespace:
k8s-unused-secret-detector {{[-n|--namespace]}} {{namespace}}


Delete unused secrets in a specific namespace:
k8s-unused-secret-detector {{[-n|--namespace]}} {{namespace}} | kubectl delete secrets {{[-n|--namespace]}} {{namespace}}

Code Snippets

Detect unused secrets

k8s-unused-secret-detector

Detect unused secrets in a specific namespace

k8s-unused-secret-detector {{[-n|--namespace]}} {{namespace}}

Delete unused secrets in a specific namespace

k8s-unused-secret-detector {{[-n|--namespace]}} {{namespace}} | kubectl delete secrets {{[-n|--namespace]}} {{namespace}}

Context

tldr-pages: common/k8s-unused-secret-detector

Revisions (0)

No revisions yet.