-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
[bitnami/apisix] Standalone Mode Not Working #26881
Comments
I made a few minor updates to get it to deploy in standalone mode. Namely, I added conditional logic to only include the After this was fixed, I hit an issue because the init container was still trying to handle etcd configurations, even though etcd was disabled. To handle this, I removed the Unless I'm missing something, it seems the current standalone instructions do not work, and I'm not sure when they last worked. By team has tried to use this chart a few times in the past to deploy Apisix in standalone mode, but we haven't ever been able to. |
Hi @james-mchugh , |
Yep, I should be able to put in a PR for it later today or over the weekend. I don't think the fixes I currently have are exactly what we'll need, as they may impact other deployment modes, but they worked for my use case as I'm currently only concerned about standalone mode. I'll try to clean it up my branch in hopes I can get it closer to a full solution and then put in a PR for it. I'll probably need feedback from you all during the review to get it finalized. |
PR is in! Looking forward to working with you all to get it merged! |
Thank you for opening this issue and submitting the associated Pull Request. Our team will review and provide feedback. Once the PR is merged, the issue will automatically close. Your contribution is greatly appreciated! |
Name and Version
bitnami/apisix:3.1.1
What architecture are you using?
amd64
What steps will reproduce the bug?
helm install bitnami/apisix --values values.yaml
)Are you using any custom parameters or values?
What is the expected behavior?
Data plane pod runs as expected in standalone mode without init containers trying to mount secrets for disabled components.
What do you see instead?
Data plane pod fails with an error as it is trying to mount a secret for the control-plane that doesn't exist.
Additional information
Looking at the _helpers.tpl file, it appears that the
APISIX_ADMIN_API_TOKEN
environment variable that mounts the control plane secret is always included in theapisix.prepareApisixInitContainer
template without any conditional logic to remove it if the control-plane is disabled. This named template is always used when deploying the data plane Deployment, so even if the control-plane is disabled, it still adds the environment variable for the control-plane's secret.The text was updated successfully, but these errors were encountered: