Skip to content

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

feedback

Matheus Nogueiracf6717ac133f
diff --git a/docs/integrations/platforms/kubernetes/overview.mdx b/docs/integrations/platforms/kubernetes/overview.mdx
index 75a395f926..4f23eb0dd9 100644
--- a/docs/integrations/platforms/kubernetes/overview.mdx
+++ b/docs/integrations/platforms/kubernetes/overview.mdx
@@ -5,6 +5,7 @@ description: "How to use Infisical to inject, push, and manage secrets within Ku
---
import KubernetesOperatorTemplating from "/snippets/kubernetes-operator-v1beta1-templating.mdx";
+import KubernetesOperatorInstall from "/snippets/kubernetes-operator-install.mdx";
The Infisical Operator is a collection of Kubernetes controllers that streamline how secrets are managed between Infisical and your Kubernetes cluster.
It provides multiple Custom Resource Definitions (CRDs) which enable you to:
@@ -67,16 +68,9 @@ The short video below walks through how the Infisical Operator syncs secrets int
## Install
-The operator is installed via [Helm](https://helm.sh). The quickest way to get started:
+The operator is installed via [Helm](/self-hosting/helm-charts/secrets-operator).
-```bash
-helm repo add infisical-helm-charts 'https://dl.cloudsmith.io/public/infisical/helm-charts/helm/charts/'
-helm repo update
-
-helm install --generate-name infisical-helm-charts/secrets-operator
-```
-
-This installs the operator cluster-wide. For namespace-scoped installations, custom service accounts, and all configurable values, see the [Secrets Operator Helm chart documentation](/self-hosting/helm-charts/secrets-operator).
+<KubernetesOperatorInstall />
## Custom Resource Definitions
diff --git a/docs/self-hosting/deployment-options/kubernetes-helm.mdx b/docs/self-hosting/deployment-options/kubernetes-helm.mdx
index 28923bc12e..4be274c8c3 100644
--- a/docs/self-hosting/deployment-options/kubernetes-helm.mdx
+++ b/docs/self-hosting/deployment-options/kubernetes-helm.mdx
@@ -183,3 +183,237 @@ For production deployments with many users or secrets, increase these values acc
Your Infisical instance should now be running on Kubernetes. Access it via the ingress hostname you configured, or use `kubectl port-forward` for local testing.
![self-hosted sign up](/images/self-hosting/applicable-to-all/selfhost-signup.png)
+
+## Default Helm Values
+
+```yaml
+# -- Overrides the default release name
+nameOverride: ""
+
+# -- Overrides the full name of the release, affecting resource names
+fullnameOverride: ""
+
+infisical:
+ # -- Enable Infisical chart deployment
+ enabled: true
+ # -- Sets the name of the deployment within this chart
+ name: infisical
+
+ autoBootstrap:
+ # -- Enable auto-bootstrap of the Infisical instance
+ enabled: false
+
+ image:
+ # -- Infisical Infisical CLI image tag version
+ tag: "0.41.86"
+
+ # -- Template for the data/stringData section of the Kubernetes secret. Available functions: encodeBase64
+ secretTemplate: '{"data":{"token":"{{.Identity.Credentials.Token}}"}}'
+
+ secretDestination:
+ # -- Name of the bootstrap secret to create in the Kubernetes cluster which will store the formatted root identity credentials
+ name: "infisical-bootstrap-secret"
+
+ # -- Namespace to create the bootstrap secret in. If not provided, the secret will be created in the same namespace as the release.
+ namespace: "default"
+
+ # -- Infisical organization to create in the Infisical instance during auto-bootstrap
+ organization: "default-org"
+
+ credentialSecret:
+ # -- Name of the Kubernetes secret containing the credentials for the auto-bootstrap workflow
+ name: "infisical-bootstrap-credentials"
+
+ databaseSchemaMigrationJob:
+ image:
+ # -- Image repository for migration wait job
+ repository: ghcr.io/groundnuty/k8s-wait-for
+ # -- Image tag version
+ tag: no-root-v2.0
+ # -- Pulls image only if not present on the node
+ pullPolicy: IfNotPresent
+
+ serviceAccount:
+ # -- Creates a new service account if true, with necessary permissions for this chart. If false and `serviceAccount.name` is not defined, the chart will attempt to use the Default service account
+ create: true
+ # -- Custom annotations for the auto-created service account
+ annotations: {}
+ # -- Optional custom service account name, if existing service account is used
+ name: null
+
+ # -- Override for the full name of Infisical resources in this deployment
+ fullnameOverride: ""
+ # -- Custom annotations for Infisical pods
+ podAnnotations: {}
+ # -- Custom annotations for Infisical deployment
+ deploymentAnnotations: {}
+ # -- Number of pod replicas for high availability
+ replicaCount: 2
+
+ image:
+ # -- Image repository for the Infisical service
+ repository: infisical/infisical
+ # -- Specific version tag of the Infisical image. View the latest version here https://hub.docker.com/r/infisical/infisical
+ tag: "v0.158.0"
+ # -- Pulls image only if not already present on the node
+ pullPolicy: IfNotPresent
+ # -- Secret references for pulling the image, if needed
+ imagePullSecrets: []
+
+ # -- Node affinity settings for pod placement
+ affinity: {}
+ # -- Tolerations definitions
+ tolerations: []
+ # -- Node selector for pod placement
+ nodeSelector: {}
+ # -- Topology spread constraints for multi-zone deployments
+ # -- Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
+ topologySpreadConstraints: []
+
+ # -- Kubernetes Secret reference containing Infisical root credentials
+ kubeSecretRef: "infisical-secrets"
+
+ service:
+ # -- Custom annotations for Infisical service
+ annotations: {}
+ # -- Service type, can be changed based on exposure needs (e.g., LoadBalancer)
+ type: ClusterIP
+ # -- Optional node port for service when using NodePort type
+ nodePort: ""
+
+ # -- Extra environment variables to set on the Infisical container. Useful for setting variables like NODE_EXTRA_CA_CERTS.
+ # -- Example:
+ # -- - name: NODE_EXTRA_CA_CERTS
+ # -- value: /etc/ssl/certs/ca-certificates.crt
+ extraEnv: []
+
+ resources:
+ limits:
+ # -- Memory limit for Infisical container
+ memory: 1000Mi
+ requests:
+ # -- CPU request for Infisical container
+ cpu: 350m
+
+ # -- Additional containers to run alongside the Infisical container (sidecars).
+ # -- Useful for running auxiliary services like HSM PKCS#11 clients.
+ # -- Example:
+ # -- - name: hsm-client
+ # -- image: my-hsm-client:latest
+ # -- volumeMounts:
+ # -- - name: pkcs11-socket
+ # -- mountPath: /var/run/hsm
+ extraContainers: []
+
+ # -- Additional init containers to run before the Infisical container starts.
+ # -- Example:
+ # -- - name: wait-for-hsm
+ # -- image: busybox:latest
+ # -- command: ['sh', '-c', 'until nc -z hsm-host 9004; do sleep 2; done']
+ extraInitContainers: []
+
+ # -- Additional volumes to attach to the Infisical pods.
+ # -- Example:
+ # -- - name: pkcs11-socket
+ # -- emptyDir: {}
+ extraVolumes: []
+
+ # -- Additional volume mounts for the Infisical container.
+ # -- Example:
+ # -- - name: pkcs11-socket
+ # -- mountPath: /var/run/hsm
+ extraVolumeMounts: []
+
+ingress:
+ # -- Enable or disable ingress configuration
+ enabled: true
+ # -- Hostname for ingress access, e.g., app.example.com
+ hostName: ""
+ # -- Specifies the ingress class. When not set, defaults to "infisical-nginx" if the bundled ingress-nginx is enabled, or "nginx" otherwise.
+ ingressClassName: ""
+
+ nginx:
+ # -- Enable NGINX-specific settings, if using NGINX ingress controller
+ enabled: true
+
+ # -- Custom annotations for ingress resource
+ annotations: {}
+ # -- TLS settings for HTTPS access
+ tls: []
+ # -- TLS secret name for HTTPS
+ # - secretName: letsencrypt-prod
+ # -- Domain name to associate with the TLS certificate
+ # hosts:
+ # - some.domain.com
+
+postgresql:
+ # -- Enables an in-cluster PostgreSQL deployment. To achieve HA for Postgres, we recommend deploying https://github.com/zalando/postgres-operator instead.
+ enabled: true
+ # -- PostgreSQL resource name
+ name: "postgresql"
+ # -- Full name override for PostgreSQL resources
+ fullnameOverride: "postgresql"
+
+ image:
+ # -- Image registry for PostgreSQL
+ registry: mirror.gcr.io
+ # -- Image repository for PostgreSQL
+ repository: bitnamilegacy/postgresql
+
+ auth:
+ # -- Database username for PostgreSQL
+ username: infisical
+ # -- Password for PostgreSQL database access
+ password: root
+ # -- Database name for Infisical
+ database: infisicalDB
+
+ useExistingPostgresSecret:
+ # -- Set to true if using an existing Kubernetes secret that contains PostgreSQL connection string
+ enabled: false
+ existingConnectionStringSecret:
+ # -- Kubernetes secret name containing the PostgreSQL connection string
+ name: ""
+ # -- Key name in the Kubernetes secret that holds the connection string
+ key: ""
+
+redis:
+ # -- Enables an in-cluster Redis deployment
+ enabled: true
+ # -- Redis resource name
+ name: "redis"
+ # -- Full name override for Redis resources
+ fullnameOverride: "redis"
+
+ image:
+ # -- Image registry for Redis
+ registry: mirror.gcr.io
+ # -- Image repository for Redis
+ repository: bitnamilegacy/redis
+
+ cluster:
+ # -- Clustered Redis deployment
+ enabled: false
+
+ # -- Requires a password for Redis authentication
+ usePassword: true
+
+ auth:
+ # -- Redis password
+ password: "mysecretpassword"
+
+ # -- Redis deployment type (e.g., standalone or cluster)
+ architecture: standalone
+
+# -- Configuration for the bundled ingress-nginx subchart (only applies when ingress.nginx.enabled=true)
+ingress-nginx:
+ controller:
+ ingressClassResource:
+ # -- Use a unique IngressClass name so the bundled controller only serves Infisical's Ingress,
+ # -- not other Ingresses in the cluster that use the common "nginx" class.
+ name: infisical-nginx
+ controllerValue: k8s.io/infisical-nginx
+ # -- Do not set this as the default IngressClass for the cluster
+ default: false
+ ingressClass: infisical-nginx
+```
diff --git a/docs/self-hosting/helm-charts/agent-injector.mdx b/docs/self-hosting/helm-charts/agent-injector.mdx
index 19c332c4c0..0b29883dda 100644
--- a/docs/self-hosting/helm-charts/agent-injector.mdx
+++ b/docs/self-hosting/helm-charts/agent-injector.mdx
@@ -52,3 +52,40 @@ helm uninstall infisical-agent-injector --namespace infisical
| `resources.requests.memory` | `128Mi` | Memory request. |
| `resources.limits.cpu` | `200m` | CPU limit. |
| `resources.limits.memory` | `256Mi` | Memory limit. |
+
+## Default Helm Values
+
+```yaml
+replicaCount: 1
+
+resources:
+ requests:
+ cpu: 100m
+ memory: 128Mi
+ limits:
+ cpu: 200m
+ memory: 256Mi
+
+failurePolicy: Ignore
+
+image:
+ repository: infisical/infisical-agent-injector
+ tag: v0.1.12
+
+livenessProbe:
+ failureThreshold: 2
+ initialDelaySeconds: 5
+ periodSeconds: 2
+ successThreshold: 1
+ timeoutSeconds: 5
+
+readinessProbe:
+ failureThreshold: 2
+ initialDelaySeconds: 5
+ periodSeconds: 2
+ successThreshold: 1
+ timeoutSeconds: 5
+
+# nodeSelector:
+ # kubernetes.io/os: windows
+```
diff --git a/docs/self-hosting/helm-charts/csi-provider.mdx b/docs/self-hosting/helm-charts/csi-provider.mdx
index f82e8fa023..95ed377c54 100644
--- a/docs/self-hosting/helm-charts/csi-provider.mdx
+++ b/docs/self-hosting/helm-charts/csi-provider.mdx
@@ -85,3 +85,72 @@ helm uninstall infisical-csi-provider
| `tolerations` | `[]` | Pod tolerations. |
| `labels` | `{}` | Additional labels for resources. |
| `podLabels` | `{}` | Additional labels for pods. |
+
+## Default Helm Values
+
+```yaml
+# Name of the CSI provider deployment
+name: infisical-csi-provider
+# Namespace where CSI provider will be deployed
+namespace: kube-system
+
+# Container image configuration
+image:
+ repository: infisical/infisical-csi-provider
+ tag: v0.0.7
+ pullPolicy: IfNotPresent
+
+# Infisical provider arguments
+args:
+ - -endpoint=/provider/infisical.sock
+
+# Unix domain socket path for CSI driver communication
+endpoint: /provider/infisical.sock
+
+# Resource limits and requests
+resources:
+ requests:
+ cpu: 50m
+ memory: 100Mi
+ limits:
+ cpu: 50m
+ memory: 100Mi
+
+# Volume configuration for provider socket
+providerVolume:
+ mountPath: /provider
+ hostPath: /etc/kubernetes/secrets-store-csi-providers
+
+# Health check for container liveness
+livenessProbe:
+ httpGet:
+ path: /health/ready
+ port: 8080
+ scheme: HTTP
+ failureThreshold: 2
+ initialDelaySeconds: 5
+ periodSeconds: 5
+ successThreshold: 1
+ timeoutSeconds: 3
+
+# Health check for container readiness
+readinessProbe:
+ httpGet:
+ path: /health/ready
+ port: 8080
+ scheme: HTTP
+ failureThreshold: 2
+ initialDelaySeconds: 5
+ periodSeconds: 5
+ successThreshold: 1
+ timeoutSeconds: 3
+
+# Node selection criteria
+nodeSelector:
+ kubernetes.io/os: linux
+
+# Optional configurations
+labels: {}
+podLabels: {}
+tolerations: []
+```
diff --git a/docs/self-hosting/helm-charts/gateway.mdx b/docs/self-hosting/helm-charts/gateway.mdx
index 4c5478b2ed..fa48e43b1c 100644
--- a/docs/self-hosting/helm-charts/gateway.mdx
+++ b/docs/self-hosting/helm-charts/gateway.mdx
@@ -92,3 +92,105 @@ helm uninstall infisical-gateway --namespace infisical-gateway
| `nodeSelector` | `{}` | Node selector. |
| `tolerations` | `{}` | Pod tolerations. |
| `affinity` | `{}` | Pod affinity rules. |
+
+## Default Helm Values
+
+```yaml
+image:
+ repository: infisical/cli
+ tag: "0.43.84"
+ pullPolicy: IfNotPresent
+
+# Machine identity flow: name of the K8s Secret containing env vars like INFISICAL_AUTH_METHOD, etc.
+# Only used when gateway.enrollment.method is unset.
+secret:
+ name: "infisical-gateway-environment"
+
+gateway:
+ # Name of the gateway created in the Infisical UI. Required when enrollment.method is set.
+ name: ""
+
+ # Infisical instance URL (e.g. https://app.infisical.com). Required when enrollment.method is set.
+ domain: ""
+
+ enrollment:
+ # Enrollment method: "token" or "aws".
+ # Leave empty to use the legacy machine identity flow (env vars from secret.name).
+ method: ""
+
+ # Token enrollment settings (method=token)
+ token:
+ # Inline enrollment token value. Mutually exclusive with existingSecretRef.
+ value: ""
+ # Name of an existing K8s Secret containing the enrollment token.
+ existingSecretRef: ""
+ # Key within the secret that holds the enrollment token.
+ secretKey: "enrollment-token"
+
+ # AWS enrollment settings (method=aws)
+ aws:
+ # Required when method=aws. Gateway ID from the Infisical UI.
+ gatewayId: ""
+
+ # Name of a K8s Secret whose key-value pairs are injected as env vars.
+ # Use this to provide credentials for the enrollment method (e.g. AWS keys, GCP credentials).
+ # Not needed when credentials are provided via workload identity (IRSA, GCP Workload Identity, etc.).
+ credentialsSecretRef: ""
+
+ # Specific relay to connect to. Leave empty for automatic selection.
+ relayName: ""
+
+ pamSessionRecordingsDirectory: /var/lib/infisical/session_recordings
+
+# Persistent storage for the gateway (credentials and session recordings).
+# Required when enrollment.method=token so credentials survive pod restarts.
+# Optional when enrollment.method=aws since it re-authenticates via STS on every start.
+# For legacy machine-identity installs (no enrollment.method), persistence only takes effect
+# when existingClaim is provided.
+persistence:
+ enabled: true
+ storageClass: ""
+ size: 5Gi
+ accessModes:
+ - ReadWriteOnce
+ existingClaim: ""
+
+resources:
+ limits:
+ cpu: 500m
+ memory: 128Mi
+ requests:
+ cpu: 100m
+ memory: 128Mi
+
+imagePullSecrets: []
+nameOverride: ""
+fullnameOverride: ""
+
+serviceAccount:
+ create: true
+ automount: true
+ createAsAuthDelegator: true
+ annotations: {}
+ name: ""
+
+podAnnotations: {}
+podLabels: {}
+podSecurityContext:
+ runAsNonRoot: true
+ fsGroup: 1000
+
+securityContext:
+ runAsNonRoot: true
+ runAsUser: 1000
+
+affinity: {}
+tolerations: {}
+nodeSelector: {}
+service:
+ type: ClusterIP
+ port: 80
+
+ingress:
+ enabled: false
+```
diff --git a/docs/self-hosting/helm-charts/pki-issuer.mdx b/docs/self-hosting/helm-charts/pki-issuer.mdx
index 6ffd60ae3d..808e6d7dfb 100644
--- a/docs/self-hosting/helm-charts/pki-issuer.mdx
+++ b/docs/self-hosting/helm-charts/pki-issuer.mdx
@@ -57,3 +57,42 @@ helm uninstall infisical-pki-issuer --namespace infisical-pki
| `controllerManager.manager.resources.limits.cpu` | `500m` | CPU limit. |
| `controllerManager.manager.resources.limits.memory` | `128Mi` | Memory limit. |
| `controllerManager.serviceAccount.annotations` | `{}` | Service account annotations. |
+
+## Default Helm Values
+
+```yaml
+controllerManager:
+ manager:
+ args:
+ - --metrics-bind-address=:8443
+ - --leader-elect
+ - --health-probe-bind-address=:8081
+ containerSecurityContext:
+ allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ image:
+ repository: docker.io/infisical/pki-issuer
+ tag: latest
+ resources:
+ limits:
+ cpu: 500m
+ memory: 128Mi
+ requests:
+ cpu: 10m
+ memory: 64Mi
+ podSecurityContext:
+ runAsNonRoot: true
+ replicas: 1
+ serviceAccount:
+ annotations: {}
+controllerMetrics:
+ ports:
+ - name: https
+ port: 8443
+ protocol: TCP
+ targetPort: 8443
+ type: ClusterIP
+kubernetesClusterDomain: cluster.local
+```
diff --git a/docs/self-hosting/helm-charts/secrets-operator.mdx b/docs/self-hosting/helm-charts/secrets-operator.mdx
index a428aa58fc..c5f019e415 100644
--- a/docs/self-hosting/helm-charts/secrets-operator.mdx
+++ b/docs/self-hosting/helm-charts/secrets-operator.mdx
@@ -4,132 +4,15 @@ sidebarTitle: "Secrets Operator"
description: "Deploy the Infisical Kubernetes Operator using the official Helm chart."
---
+import KubernetesOperatorInstall from "/snippets/kubernetes-operator-install.mdx";
+
The Infisical Kubernetes Operator automates secret management between Infisical and your Kubernetes cluster. It syncs secrets from Infisical into Kubernetes, pushes secrets from Kubernetes to Infisical, and manages dynamic secrets with time-bound leases.
For usage details, CRD reference, and examples, see the [Kubernetes Operator documentation](/integrations/platforms/kubernetes/overview).
## Installation
-<Steps>
- <Step title="Add the Helm repository">
- ```bash
- helm repo add infisical-helm-charts 'https://dl.cloudsmith.io/public/infisical/helm-charts/helm/charts/'
- helm repo update
- ```
- </Step>
-
- <Step title="Install the chart">
- The operator can be installed either cluster-wide or restricted to specific namespaces.
- If you require stronger isolation and stricter access controls, a namespace-scoped installation may make more sense.
-
- <Tabs>
- <Tab title="Cluster-wide (default)">
- The operator will watch and manage CRDs across all namespaces in the cluster. This is the default and quickest way to get started.
-
- ```bash
- helm install --generate-name infisical-helm-charts/secrets-operator
- ```
- </Tab>
-
- <Tab title="Namespace-scoped">
- Limit the operator's permissions to only specific namespaces instead of cluster-wide access. Useful for multi-tenant clusters or environments requiring strict resource isolation.
-
- <Note>
- For multiple namespace-scoped installations, only the first installation should install CRDs. Subsequent installations should set `installCRDs: false` to avoid conflicts as CRDs are cluster-wide resources.
- </Note>
-
- **Single namespace:**
- ```bash
- helm install operator-namespaced infisical-helm-charts/secrets-operator \
- --namespace single-namespace \
- --set scopedNamespaces=single-namespace \
- --set scopedRBAC=true
- ```
-
- <Accordion title="Using values.yaml file">
- ```yaml values.yaml
- scopedNamespaces: single-namespace
- scopedRBAC: true
- installCRDs: true
- ```
- </Accordion>
-
- **Multiple namespaces (separate operators):**
- ```bash
- helm install operator-1 infisical-helm-charts/secrets-operator \
- --namespace ns1 \
- --set scopedNamespaces=ns1 \
- --set scopedRBAC=true \
- --set installCRDs=true # Only install CRDs once in the cluster (default is true)
-
- helm install operator-namespace2 infisical-helm-charts/secrets-operator \
- --namespace ns2 \
- --set scopedNamespaces=ns2 \
- --set scopedRBAC=true \
- --set installCRDs=false # Do not install CRDs in subsequent namespace installations
- ```
-
- <Accordion title="Using values.yaml file">
- ```yaml values-operator1.yaml
- scopedNamespaces: ns1
- scopedRBAC: true
- installCRDs: false
- ```
-
- ```yaml values-operator2.yaml
- scopedNamespaces: ns2
- scopedRBAC: true
- installCRDs: false
- ```
- </Accordion>
-
- **Multiple namespaces (single operator):**
- ```bash
- helm install operator infisical-helm-charts/secrets-operator \
- --namespace operator-namespace \
- --set "scopedNamespaces={ns1,ns2,ns3}" \
- --set scopedRBAC=true
- ```
-
- <Accordion title="Using values.yaml file">
- ```yaml values.yaml
- scopedNamespaces:
- - ns1
- - ns2
- - ns3
- scopedRBAC: true
- ```
- </Accordion>
- </Tab>
- </Tabs>
- </Step>
-
- <Step title="Verify the deployment">
- ```bash
- kubectl get pods -n infisical
- ```
- </Step>
-</Steps>
-
-### Using your own service account
-
-By default a service account is created for the operator based on the release name.
-You can bring your own service account by setting `controllerManager.serviceAccount.create` to `false` and `controllerManager.serviceAccount.name` to the name of your existing service account.
-
-```yaml values.yaml
-controllerManager:
- serviceAccount:
- create: false
- name: my-service-account
-```
-
-<Note>
- The service account must already exist in the namespace you are installing the operator in.
-</Note>
-
-<Tip>
- Custom service accounts are supported in chart version `0.10.11` and above.
-</Tip>
+<KubernetesOperatorInstall />
## Uninstall
@@ -165,3 +48,95 @@ helm uninstall <release-name>
| `controllerManager.extraVolumes` | `[]` | Extra volumes. |
| `imagePullSecrets` | `[]` | Image pull secrets for private registries. |
| `telemetry.serviceMonitor.enabled` | `false` | Enable Prometheus ServiceMonitor. |
+
+## Default Helm Values
+
+```yaml
+# -- The Infisical API host URL. This is the default host used when no hostAPI is set on the CRD or global ConfigMap.
+hostAPI: "https://app.infisical.com/api"
+
+logger:
+ # -- The output of the logs. Can be "stdout" or "stderr". Defaults to "stderr".
+ writer: "stderr"
+
+controllerManager:
+ serviceAccount:
+ create: true
+ name: ""
+ annotations: {}
+ nodeSelector: {}
+ tolerations: []
+ affinity: {}
+ topologySpreadConstraints: []
+ # -- Extra volumes to add to the pod
+ extraVolumes: []
+ # -- Extra init containers to add to the pod
+ extraInitContainers: []
+ manager:
+ args:
+ - --metrics-bind-address=:8443
+ - --leader-elect
+ - --health-probe-bind-address=:8081
+ containerSecurityContext:
+ allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ readOnlyRootFilesystem: true
+ image:
+ repository: infisical/kubernetes-operator
+ tag: v0.11.2
+ resources:
+ limits:
+ cpu: 500m
+ memory: 128Mi
+ requests:
+ cpu: 10m
+ memory: 64Mi
+ # -- Extra environment variables to add to the manager container
+ extraEnv: []
+ # -- Extra volume mounts to add to the manager container
+ extraVolumeMounts: []
+ podSecurityContext:
+ runAsNonRoot: true
+ seccompProfile:
+ type: RuntimeDefault
+ replicas: 1
+kubernetesClusterDomain: cluster.local
+
+# DEPRECATED: Use scopedNamespaces instead. This field will be removed in a future version.
+# If both scopedNamespace and scopedNamespaces are set, scopedNamespaces takes precedence.
+scopedNamespace: ""
+
+# List of namespaces to watch. If empty, the operator watches all namespaces (cluster-scoped).
+# When scopedRBAC is true, a Role and RoleBinding will be created in each namespace.
+# Example:
+# scopedNamespaces:
+# - team-a-namespace
+# - team-b-namespace
+scopedNamespaces: []
+
+scopedRBAC: false
+installCRDs: true
+imagePullSecrets: []
+
+metricsService:
+ ports:
+ - name: https
+ port: 8443
+ protocol: TCP
+ targetPort: 8443
+ type: ClusterIP
+
+telemetry:
+ serviceMonitor:
+ enabled: false
+
+ selectors: {}
+ scheme: https
+ port: https
+ path: /metrics
+ bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
+ interval: 30s
+ scrapeTimeout: 10s
+```
diff --git a/docs/snippets/kubernetes-operator-install.mdx b/docs/snippets/kubernetes-operator-install.mdx
new file mode 100644
index 0000000000..1a6fa0ac5a
--- /dev/null
+++ b/docs/snippets/kubernetes-operator-install.mdx
@@ -0,0 +1,120 @@
+<Steps>
+ <Step title="Add the Helm repository">
+ ```bash
+ helm repo add infisical-helm-charts 'https://dl.cloudsmith.io/public/infisical/helm-charts/helm/charts/'
+ helm repo update
+ ```
+ </Step>
+
+ <Step title="Install the chart">
+ The operator can be installed either cluster-wide or restricted to specific namespaces.
+ If you require stronger isolation and stricter access controls, a namespace-scoped installation may make more sense.
+
+ <Tabs>
+ <Tab title="Cluster-wide (default)">
+ The operator will watch and manage CRDs across all namespaces in the cluster. This is the default and quickest way to get started.
+
+ ```bash
+ helm install --generate-name infisical-helm-charts/secrets-operator
+ ```
+ </Tab>
+
+ <Tab title="Namespace-scoped">
+ Limit the operator's permissions to only specific namespaces instead of cluster-wide access. Useful for multi-tenant clusters or environments requiring strict resource isolation.
+
+ <Note>
+ For multiple namespace-scoped installations, only the first installation should install CRDs. Subsequent installations should set `installCRDs: false` to avoid conflicts as CRDs are cluster-wide resources.
+ </Note>
+
+ **Single namespace:**
+ ```bash
+ helm install operator-namespaced infisical-helm-charts/secrets-operator \
+ --namespace single-namespace \
+ --set scopedNamespaces=single-namespace \
+ --set scopedRBAC=true
+ ```
+
+ <Accordion title="Using values.yaml file">
+ ```yaml values.yaml
+ scopedNamespaces: single-namespace
+ scopedRBAC: true
+ installCRDs: true
+ ```
+ </Accordion>
+
+ **Multiple namespaces (separate operators):**
+ ```bash
+ helm install operator-1 infisical-helm-charts/secrets-operator \
+ --namespace ns1 \
+ --set scopedNamespaces=ns1 \
+ --set scopedRBAC=true \
+ --set installCRDs=true # Only install CRDs once in the cluster (default is true)
+
+ helm install operator-namespace2 infisical-helm-charts/secrets-operator \
+ --namespace ns2 \
+ --set scopedNamespaces=ns2 \
+ --set scopedRBAC=true \
+ --set installCRDs=false # Do not install CRDs in subsequent namespace installations
+ ```
+
+ <Accordion title="Using values.yaml file">
+ ```yaml values-operator1.yaml
+ scopedNamespaces: ns1
+ scopedRBAC: true
+ installCRDs: false
+ ```
+
+ ```yaml values-operator2.yaml
+ scopedNamespaces: ns2
+ scopedRBAC: true
+ installCRDs: false
+ ```
+ </Accordion>
+
+ **Multiple namespaces (single operator):**
+ ```bash
+ helm install operator infisical-helm-charts/secrets-operator \
+ --namespace operator-namespace \
+ --set "scopedNamespaces={ns1,ns2,ns3}" \
+ --set scopedRBAC=true
+ ```
+
+ <Accordion title="Using values.yaml file">
+ ```yaml values.yaml
+ scopedNamespaces:
+ - ns1
+ - ns2
+ - ns3
+ scopedRBAC: true
+ ```
+ </Accordion>
+ </Tab>
+ </Tabs>
+ </Step>
+
+ <Step title="Verify the deployment">
+ ```bash
+ kubectl get pods -n infisical
+ ```
+ </Step>
+</Steps>
+
+### Using your own service account
+
+By default a service account is created for the operator based on the release name.
+You can bring your own service account by setting `controllerManager.serviceAccount.create` to `false` and `controllerManager.serviceAccount.name` to the name of your existing service account.
+
+```yaml values.yaml
+controllerManager:
+ serviceAccount:
+ create: false
+ name: my-service-account
+```
+
+<Note>
+ The service account must already exist in the namespace you are installing the operator in.
+</Note>
+
+<Tip>
+ Custom service accounts are supported in chart version `0.10.11` and above.
+</Tip>