-
-
Notifications
You must be signed in to change notification settings - Fork 362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set tls-san option to the array of control-plane node IPs both public and private #325
Comments
@captnCC This regularly happens to me when I first try to kubectl into the cluster the first time. Glad you bumped into this issue so we can fix it. There is a param in k3s install config called I just checked and it is already being used when The changes need to happen in both |
Thanks @mysticaltech for the hint, this was an easy fix, but making the setup much more reliable! |
Released in v1.5.5 🚀 |
Discussed in #324
Originally posted by captnCC September 27, 2022
Hello folks out there,
I'm currently playing around with this module to create clusters and deploy applications on it.
The straight forward path seemed to be to use the cluster module together with the Kubernetes provider.
So I take the retuned
kubeconfig
from the cluster module and put it into the Kubernetes provider:This works well after the cluster is created, but on the first run most resources will fail with an cert error
Failed to create deployment: Post "https://142.132.239.194:6443/apis/apps/v1/namespaces/default/deployments": x509: certificate is valid for 10.255.0.101, 10.43.0.1, 127.0.0.1, ::1, not 142.132.239.194
.Weirdly enough in some instances a part of the resources would succeed while the rest fails. Even adding a delay of 3 minutes before creating the resources didn't resolve that issue.
As base of the infrastructure I needed some additional components to be installed via helm. So I take the same config and put it in the helm provider:
And to my surprise this just works fine.
Has anyone faced the same issue and what is your workaround? And the more general question: Keep infra and application in the same place or split it up in 2 separated terraform workflows?
Update
By playing around with the order and dependencies of resources I found that generally the first request(s) to the Kubernetes API fail both with Kubernetes or Helm resources.
The text was updated successfully, but these errors were encountered: