-
Notifications
You must be signed in to change notification settings - Fork 591
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
New Kong instances fail to boostrap configuration with KongPlugin invalid configuration #539
Comments
I understand that this is a pain-point and we have to fix it. Our current solution against this problem is to use Admission Controller to guard against erroneous behaviors. You can use the following guide to set it up: https:/Kong/kubernetes-ingress-controller/blob/master/docs/deployment/admission-webhook.md |
Oh... I thought the default deployment files were already setting this up and not even verified. Ok, then, since this prevents incorrect configs from being created, we can go ahead with Kong Ingress until the controller itself is more resilient to these kind of errors. Thanks for pointing this up! |
@hbagdi I set up the validatingWebhook properly and it worked as expected. Thanks for the advice. Should I keep this issue open? Is there another one for this "problem" already? |
Summary
Kong Ingress controller version
0.7.1
Kong or Kong Enterprise version
Kong (open-source)
Kubernetes version
Environment
uname -a
): Linux ip-10-35-37-57.ec2.internal 4.19.95-coreos Status of controller? #1 SMP Thu Feb 6 12:30:43 -00 2020 x86_64 Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz GenuineIntel GNU/LinuxWhat happened
After setting an unknown plugin config option in a KongPlugin (one in use), new Kong pods won't get ANY configuration at bootstrap, returning only 404. The more new pods you have, the greater your error rate. An eventual recycling of all pods would lead to a complete unavailability of APIs.
Expected behavior
Kong should be configured preperly, according to resources set on cluster, despite the existence of a broken/incorrect KongPlugin configuration.
Steps To Reproduce
config.foo=bar
);Delete pods
kubectl delete pods -l app=ingress-kong -n kong
Kong will initialize and no configuration will be set by the Ingress Controller to it.
An eventual fix in the plugin configuration (added in step 2) will bring everything up again.
The text was updated successfully, but these errors were encountered: