Back to Infisical

Agent Injector

docs/self-hosting/helm-charts/agent-injector.mdx

0.162.72.4 KB
Original Source

The Infisical Agent Injector automatically injects Infisical Agent sidecar or init containers into your Kubernetes pods via a mutating admission webhook. Pods with the org.infisical.com/inject: "true" annotation are patched to include an agent that fetches secrets from Infisical and renders them into a shared volume.

For usage details including annotations reference, injection modes, and agent configuration, see the Agent Injector documentation.

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"> ```bash helm install infisical-agent-injector infisical-helm-charts/infisical-agent-injector \ --namespace infisical \ --create-namespace ``` </Step> <Step title="Verify the deployment"> ```bash kubectl get pods -n infisical kubectl logs -n infisical deployment/infisical-agent-injector ``` </Step> </Steps>

Uninstall

bash
helm uninstall infisical-agent-injector --namespace infisical

Configuration Reference

ParameterDefaultDescription
replicaCount1Number of injector replicas.
image.repositoryinfisical/infisical-agent-injectorContainer image.
image.tagv0.1.12Image tag.
failurePolicyIgnoreWebhook failure policy. Ignore means pods still deploy if the webhook is unavailable.
resources.requests.cpu100mCPU request.
resources.requests.memory128MiMemory request.
resources.limits.cpu200mCPU limit.
resources.limits.memory256MiMemory 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