Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
refine k8 deploy docs
Maidul Islamecd17e1d6d83
diff --git a/docs/self-hosting/deployment-options/kubernetes-helm.mdx b/docs/self-hosting/deployment-options/kubernetes-helm.mdxindex 415990b4de..9754f2e07d 100644--- a/docs/self-hosting/deployment-options/kubernetes-helm.mdx+++ b/docs/self-hosting/deployment-options/kubernetes-helm.mdx@@ -16,7 +16,7 @@ To make the installation process easier and more streamlined, we have created aHelm is a package manager for Kubernetes that simplifies the installation and management of Kubernetes applications.With our Helm chart, you can easily install Infisical on Kubernetes, configure it to your liking, and scale it up or down as needed.-In the following guide, we'll walk you through the step-by-step process of installing Infisical on Kubernetes using our Helm chart. By the end of this guide, you'll have a fully functional deployment of Infisical running on Kubernetes.+In the following guide, we'll walk you through the step-by-step process of installing Infisical on Kubernetes using the Helm chart. By the end of this guide, you'll have a fully functional deployment of Infisical running on Kubernetes.## Install Infisical Helm repository@@ -26,35 +26,86 @@ helm repo add infisical-helm-charts 'https://dl.cloudsmith.io/public/infisical/hhelm repo update```-## Add Helm configurations+## Add Helm valuesCreate a values.yaml file to configure various installation settings, such as the docker image tags and environment variables for both the frontend and backend. To explore all configurable properties for your values file, [visit this page](https://github.com/Infisical/infisical/tree/main/helm-charts/infisical).#### Set image tags-By default, the application will use the latest tag to retrieve the required Docker images, which may be appropriate for most cases. However, it's important to specify a particular version of Infisical during installation to prevent any significant updates from disrupting your deployment.+By default, the application will use the latest tag to retrieve the required Docker images, which may be appropriate for most cases.+However, it's important to specify a particular version of Infisical during installation to prevent any significant updates from disrupting your deployment.+View [properties for frontend and backend](https://github.com/Infisical/infisical/tree/main/helm-charts/infisical).-To determine the appropriate versions to use for the docker images, please follow this [link](https://hub.docker.com/r/infisical/frontend/tags) for the frontend and this [link](https://hub.docker.com/r/infisical/backend/tags) for the backend.++To determine the appropriate versions to use for the docker images, follow the links bellow+- [frontend Docker image](https://hub.docker.com/r/infisical/frontend/tags)+- [backend Docker image](https://hub.docker.com/r/infisical/backend/tags)++```yaml simple-values-example.yaml+frontend:+ name: frontend+ replicaCount: 2+ image:+ repository: infisical/frontend+ tag: "v0.1.3"+ pullPolicy: Always++backend:+ replicaCount: 2+ image:+ repository: infisical/backend+ tag: "v0.1.3"+ pullPolicy: Always+```#### Configure environment variables-You can configure environment variable for the frontend and backend in your Helm values file under the property `frontendEnvironmentVariables` and `backendEnvironmentVariables` respectively. View configurable [environment variables](../configuration/envars).+You can configure environment variables for the frontend and backend in your Helm values file under the property `frontendEnvironmentVariables` and `backendEnvironmentVariables` respectively. View configurable [environment variables](../configuration/envars).Infisical requires the following backend environment variables to be defined: _`ENCRYPTION_KEY`_, _`JWT_SIGNUP_SECRET`_, _`JWT_REFRESH_SECRET`_, _`JWT_AUTH_SECRET`_, _`JWT_MFA_SECRET`_ and _`JWT_SERVICE_SECRET`_.However, when the above environment variables are not defined, our Helm chartwill automatically generate these environment variables for you. The generated environment variables will be saved to a Kubernetes secret and will be preserved between upgrades or uninstalls.+```yaml simple-values-example.yaml+...+backendEnvironmentVariables:+ HTTPS_ENABLED: true+ INVITE_ONLY_SIGNUP: false+ ...+```++<Info>+ Infisical assumes that you have configured HTTPS. If you didn't configure HTTPS, set `HTTPS_ENABLED` to `false` in the backend environment variable to avoid frequent logouts.+</Info>+#### Routing external trafficBy default, Infisical takes all traffic coming to your external load balancer's IP address and routes them Infisical's services.-Infisical uses Nginx to route external traffic. You can install install Nginx along with Infisical by setting `ingress.enabled` to `true` in the Helm values file.+Infisical uses Nginx to route external traffic. You can install Nginx along with Infisical by setting `ingress.enabled` to `true` in the Helm values file. View all [properties for ingress](https://github.com/Infisical/infisical/tree/main/helm-charts/infisical).-#### Example helm values```yaml simple-values-example.yaml+...ingress:nginx:enabled: false #<-- if you would like to install nginx along with Infisical+```++#### Database+Infisical uses a document database as its persistence layer. With this Helm chart, you spin up a MongoDB instance power by Bitnami along side other Infisical services in your cluster.+When persistence is enabled, the data will be stored a Kubernetes Persistence Volume. View all [properties for mongodb](https://github.com/Infisical/infisical/tree/main/helm-charts/infisical).++```yaml simple-values-example.yaml+mongodb:+ enabled: false+ persistence:+ enabled: false+```++To increase data redundancy, we recommend that you use a managed MongoDB service such as AWS Document DB, MongoDB or similar services instead.+Managed database connection string can be set in the `backendEnvironmentVariables`.+#### Example helm values+```yaml simple-values-example.yamlfrontend:name: frontendreplicaCount: 2@@ -72,6 +123,11 @@ backend:backendEnvironmentVariables:HTTPS_ENABLED: true++ingress:+ nginx:+ enabled: false #<-- if you would like to install nginx along with Infisical+```<Accordion title="Full helm values example">@@ -143,10 +199,6 @@ backendEnvironmentVariables:```</Accordion>-<Info>- Infisical assumes that you have configured HTTPS. If you didn't configure HTTPS, set `HTTPS_ENABLED` to `false` in the backend environment variable to avoid frequent logouts.-</Info>-### Install the Helm chartBy default, the helm chart will be installed on your default namespace. If you wish to install the Chart on a different namespace, you may specify