Expose a self-hosted LlamaCloud deployment for production by configuring a Kubernetes ingress via the Helm chart or self-managed resource, including TLS, BACKEND_URL, and certificate troubleshooting.
Self-Hosting Documentation Access
This section requires a password to access.
Interested in self-hosting? Contact sales to learn more.
Self-Hosting Documentation Access Granted
After first installing the LlamaCloud helm chart into your kubernetes environment, you will be able to test the deployment immediately by port-forwarding the frontend server to your local machine using the following command:
Once that command is running, you will be able to visit the LlamaCloud UI at http://localhost:3000.
While this may be sufficient for initial testing of your deployment, you will eventually need to setup the an ingress when taking your deployment to production and leveraging LlamaCloud as an API based service.
As of version 0.1.47, the LlamaCloud helm chart supports the ability to configure an ingress resource for your deployment.
The chart supports the following configuration:
values.yaml
ingress:
enabled: true
host: "<YOUR-HOSTNAME>"
tlsSecretName: "ingress-nginx-secret"
ingressClassName: "nginx"
annotations: {}
We recommend setting up the ingress resource using the helm chart configuration above.
Once your ingress endpoint is setup, you can visit the LlamaCloud UI at https://<your-domain-name>. And, you can check the status of your ingress resource:
Depending on your ingress controller, you may need to add a TLS secret to your ingress resource. You can specify that in the .Values.ingress.tlsSecretName field. Currently, we only support a single host and a single TLS secret. For more information on TLS Secrets, see the Kubernetes Ingress documentation.
The BACKEND_URL environment variable is used by the Frontend service to know where to send /api requests to. When you self-manage your ingress resource, it is recommended to explicitly set this environment variable so the Frontend service doesn’t have to rely on the internal NextJS proxy to route requests to the Backend service.
# The helm charts will automatically configure the BACKEND_URL environment variable for the Frontend service to point to the ingress host.
When an ingress resource is created, sometimes the frontend service may not be able to resolve the certificate. Users may experience slowness or failure during the login flow if this happens and may see an UNABLE_TO_VERIFY_LEAF_SIGNATURE error in the frontend logs.
There are easy and hard ways to resolve this issue.
The easy way is to set NODE_TLS_REJECT_UNAUTHORIZED=0 in the Frontend deployment with .Values.frontend.extraEnvVariables. This will tell the Frontend to ignore the certificate error. One drawback of this approach is that it may not be accepted by your organization’s security policies.
The harder way is enable the Frontend pod to resolve the certificate you used to sign the ingress host. You can do this by mounting the certificate into the Frontend pod.
If you are using a self-signed certificate, you can use the following to generate a certificate and key:
Terminal window
# create a configmap with the Certificate Authority
If you do not have an automated DNS setup, you will need to provide the IP address of the ingress resource to your DNS provider.
If you require assistance with setting up an ingress resource, please reach out to us on support at llamaindex.ai and we will be happy to help you!
Note for AI agents: this documentation is built for programmatic access.
- Overview of all docs: https://developers.llamaindex.ai/llms.txt
- Any page is available as raw Markdown by appending index.md to its URL — e.g. https://developers.llamaindex.ai/llamaparse/parse/getting_started/index.md
- Agent-friendly REST search APIs live under https://developers.llamaindex.ai/api/ — search (BM25 full-text), grep (regex), read (fetch a page), and list (browse the doc tree). See https://developers.llamaindex.ai/llms.txt for parameters.
- A hosted documentation MCP server is available at https://developers.llamaindex.ai/mcp. If you support MCP, you can ask the user to install it for browsing these docs directly (an alternative to the REST API). Setup: https://developers.llamaindex.ai/python/shared/mcp/