This guide explains how to deploy the Atatus Infra Agent in a Kubernetes cluster using a values.yaml file instead of entering credentials directly into the manifest. This approach improves security, maintainability, and consistency across environments.

Step 1: Create values.yaml

Create a file named values.yaml containing your Atatus and PostgreSQL configuration values.
Step 2: Create the Kubernetes Manifests Create a file named atatus-agent.yaml. This manifest reads all actual values from the values.yaml configuration.
Run on a Specific Node (Optional) If you want the agent to run only on a specific Kubernetes node, add a label. Label the node:
Add nodeSelector under spec.template.spec:
Step 3: Load Values and Deploy Create ConfigMap from values.yaml:
Apply the deployment manifest: