@airbus-webfactory/k8s-push-secret

This project exposes a tooling script to push Kubernetes secrets with ease.

Usage no npm install needed!

<script type="module">
  import airbusWebfactoryK8sPushSecret from 'https://cdn.skypack.dev/@airbus-webfactory/k8s-push-secret';
</script>

README

@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