snowjs / cli

CLI tool for dead-simple serverless Docker deployments on managed Kubernetes services. A self-hosted PaaS. ⚡️
https://github.com/snowjs/cli/tree/secrets
MIT License
409 stars 10 forks source link

[Create] store helm certificates in Kubernetes secrets #15

Open petermikitsh opened 5 years ago

petermikitsh commented 5 years ago

Currently, snow create will write to the user's ~/.helm directory, creating a bunch of files:

This is problematic if we want to use snow with different clusters-- running snow create repetitively would overwrite the old files. Additionally, if you run snow create in a CI environment, it's possible you might lose the files forever.

To keep things portable, these files should be stored as Kubernetes secrets, and retrieved as necessary.

petermikitsh commented 4 years ago

Upgrading to Helm 3 will solve this problem. The tiller client is eliminated, so no need to generate certificates.