Now we sign each of these CSRs with the CA certificate we created.
And again for the client certificate.
At this point, the important files for us are these:
Setup RBAC
Create a ServiceAccount for Tiller in the kube-system namespace:
Create a ClusterRoleBinding for Tiller:
Creating a Custom Tiller Installation
Helm includes full support for creating a deployment configured for SSL. By specifying a few flags, the helm init command can create a new Tiller installation complete with all of our SSL configuration.
To take a look at what this will generate, run this command:
The output will show you a Deployment, a Secret, and a Service. Your SSL information will be preloaded into the Secret, which the Deployment will mount to pods as they start up.
If you want to customise the manifest, you can save that output to a file and then use kubectl create to load it into your cluster.
Otherwise, you can remove the --dry-run and --debug flags.
In a minute or two it should be ready. We can check Tiller like this:
Sample output:
If there is a problem, you may want to use kubectl get pods -n kube-system to find out what went wrong. With the SSL/TLS support, the most common problems all have to do with improperly generated TLS certificates or accidentally swapping the cert and the key.
Configuring the Helm Client
For a quick test, we can specify our configuration manually. We'll run a normal Helm command (helm ls), but with SSL/TLS enabled.
This configuration sends our client-side certificate to establish identity, uses the client key for encryption, and uses the CA certificate to validate the remote Tiller's identity.
Typing a line that is cumbersome, though. The shortcut is to move the key, cert, and CA into $HELM_HOME:
With this, you can simply run helm ls --tls to enable TLS.
It might be caused by a previous Tiller instillation that was not deleted properly (especially the tiller-secret), follow the "Uninstall -> Manually" on this page.
Configmaps is forbidden
It happens when Tiller Service Account does not have enough permissions.
Helm ls (or any other command) hangs when using TLS
# The CA. Make sure the key is kept secret.
ca.cert.pem
ca.key.pem
# The Helm client files
helm.cert.pem
helm.key.pem
# The Tiller server files.
tiller.cert.pem
tiller.key.pem