Helm Install MySQL InnoDB Cluster: tls.routerCertAndPKsecretName: secret 'my-mysql-innodbcluster-router-tls' not found in namespace 'default'
-
When I https://artifacthub.io/packages/helm/mysql-operator/mysql-innodbcluster?modal=install
helm install my-mysql-innodbcluster mysql-operator/mysql-innodbcluster --version 2.0.4
I get the following error,
Error: INSTALLATION FAILED: execution error at (
mysql-innodbcluster/templates/deployment_cluster.yaml:18:8
tls.routerCertAndPKsecretName: secret 'my-mysql-innodbcluster-router-tls' not found in namespace 'default'
How can I resolve it?
-
The instructions for deploying/creating a https://dev.mysql.com/doc/mysql-operator/en/mysql-operator-innodbcluster-simple-helm.html ,
You have two options with MySQL, either deploy with
- A self-signed certificate. This will require setting
tls.useSelfSigned
- An externally signed certificate. his will require providing a
tls.caSecretName
,tls.serverCertAndPKsecretName
andtls.serverCertAndPKsecretName
You can set these options like this with
--set
like thishelm install mysql-operator/mysql-innodbcluster \ --set tls.useSelfSigned=true
No matter what you'll also always have to provide
credentials.root.password
for this specific chart--set credentials.root.password=foobar
See also,
- https://devops.stackexchange.com/q/16066/18965
- A self-signed certificate. This will require setting