LinuxCommandLibrary

k8sec

manages Kubernetes secrets from the command line

TLDR

List secrets

$ k8sec list
copy
Get secret value
$ k8sec get [secret-name]
copy
Set secret
$ k8sec set [secret-name] [key=value]
copy
Delete secret key
$ k8sec unset [secret-name] [key]
copy
List in namespace
$ k8sec list -n [namespace]
copy
Dump secret as env
$ k8sec dump [secret-name]
copy

SYNOPSIS

k8sec command [options]

DESCRIPTION

k8sec manages Kubernetes secrets from the command line. It simplifies viewing and editing secret values.
The tool decodes base64 automatically. It provides an easier interface than kubectl for secret management.

PARAMETERS

list

List secrets.
get NAME
Get secret values.
set NAME KEY=VALUE
Set secret key.
unset NAME KEY
Remove secret key.
dump NAME
Export as env vars.
-n NAMESPACE
Kubernetes namespace.
--help
Display help information.

CAVEATS

Requires kubeconfig. Secrets stored base64. Consider RBAC permissions.

HISTORY

k8sec was created to simplify Kubernetes secret management with a more intuitive command-line interface.

SEE ALSO

kubectl(1), kubeseal(1), vault(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community