Hello !
We are trying to deploy our app to a Kubernetes cluster. To achieve that, I am a using a Kubernetes secret backend in Vault. This gives us a token that I’m trying to pass to the kubernetes provider. However, I get an error: “invalid configuration: client-key-data or client-key must be specified for to use the clientCert authentication method.”
This tutorial has an example of generating a token with the Kubernetes secrets engine and using it in the Kubernetes cluster. You should be able to follow this and adjust the permissions needed for your app to be deployed.
That’s this section that returns “invalid configuration: client-key-data or client-key must be specified for to use the clientCert authentication method.”
Thanks for checking - appreciate the confirmation. It will take me some time to set up an environment to test this - I haven’t tried with TF before. Also, you may get some additional eyes on this topic in the Terraform section since it seems like the Vault part is working properly.
@jonathanfrappier Thanks! It was initially in the Terraform section, but @apparentlymart moved it to Vault… Maybe should it be moved back to Terraform ? I don’t think I can do it myself