@airbus-webfactory/k8s-push-secret v0.1.1
@airbus-webfactory/k8s-push-secret
This project exposes a tooling script to push Kubernetes secrets with ease.
š Please note that this script could be used in your Google Cloud Shell
Two secret types are supported: tls
for pushing SSL certificates and json
for pushing JSON files.
ā Caution
For security reasons, please not that all input files are always deleted when script finished.
TLS
Pushing existing certificate/key pair
npx @airbus-webfactory/k8s-push-secret my-secret-name --type tls --file tls.crt --file tls.key
Pushing a self signed certificate/key pair
npx @airbus-webfactory/k8s-push-secret my-secret-name --type tls --self-signed
JSON
Pushing existing json file
npx @airbus-webfactory/k8s-push-secret my-secret-name --type json --file foo.json
Pushing multiple existing json files
npx @airbus-webfactory/k8s-push-secret my-secret-name --type json --file foo.json --file bar.json
Common options
Namespace
You could specify Kubernetes targeted namespace using --namespace my-namespace