Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

add advanced use cases for hostAPI

Maidul Islam04a9604ba94a
diff --git a/docs/integrations/platforms/kubernetes.mdx b/docs/integrations/platforms/kubernetes.mdx
index eb58a36c57..efe5297ad9 100644
--- a/docs/integrations/platforms/kubernetes.mdx
+++ b/docs/integrations/platforms/kubernetes.mdx
@@ -71,11 +71,18 @@ spec:
If you are fetching secrets from a self hosted instance of Infisical set the value of `hostAPI` to
` https://your-self-hosted-instace.com/api`
- If you are self-hosting and want to access Infisical backend's service directly you can use a hostAPI configuration as below.
- ``` bash
- http://<backend-svc-name>.<namespace>.svc.cluster.local:4000/api
- ```
When `hostAPI` is not defined the operator fetches secrets from Infisical Cloud.
+
+ <Accordion title="Advanced use case">
+ If you have installed your Infisical instance within the same cluster as the Infisical operator, you can optionally access the Infisical backend's service directly without having to route through the public internet.
+ To achieve this, use the following address for the hostAPI field:
+
+ ``` bash
+ http://<backend-svc-name>.<namespace>.svc.cluster.local:4000/api
+ ```
+
+ Make sure to replace `<backend-svc-name>` and `<namespace>` with the appropriate values for your backend service and namespace.
+ </Accordion>
</Accordion>
<Accordion title="authentication">