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
Reinstalling Consul with consul-k8s CLI does not recreate previously uninstalled CRDs #1062
Comments
We had this problem after removing the consul from one of our clusters and reinstalling it. As a workaround, running helm upgrade to create a new revision fixed it for us. If that also fails for you, you could use helm template to generate the manifests and manually apply the CRDs missing. |
@webdog this issue still exists. The root cause is that on uninstall, k8s marks all the CRDs and CRs for deletion. It can't actually delete them though because the consul controller isn't running. On re-install, the controller starts up and processes all the deletions and so you end up with the CRDs and CRs deleted. The only solution is to actually fully delete all the CRDs/CRs on uninstall. Then on re-install there's no "pending deletions". |
Uninstall now removes CRD which is the preferred design for uninstall: #1623. So I'll mark this as closed. CRDs will need to re-applied upon re-install. |
Community Note
Overview of the Issue
When installing Consul on EKS, the
consul-k8s
CLI creates several CRDs specific to the Consul API in Kubernetes.During uninstall, it removes them:
After a successful uninstallation, re-running
consul-k8s install
on this same cluster results in inconsistent CRD creation. In the latest scenario, I am missing the Service Intention CRD in Kubernetes:In the (re) install log from stdout, it is not showing that this CRD was created:
Strangely enough, serviceintentions still appear in my kubernetes auto-complete when doing a
kubectl get <resource>
, so I'm wondering if the CRD is cached somewhere in Kubernetes, causing the consul-k8s install to skip it?Previously, this happened with the ExportedService CRD, but I assumed it to be an aberration.
Reproduction Steps
Expected behavior
I expect all CRDs needed by Consul to be created on an install.
Environment details
If not already included, please provide the following:
consul-k8s
version: v0.40.0values.yaml
used to deploy the helm chart:Additionally, please provide details regarding the Kubernetes Infrastructure, as shown below:
Additional Context
The text was updated successfully, but these errors were encountered: