Skip to content

Tier 1 Quickstart (One-Command GitOps PRs)

Tier 1 adds isolated repository editing, offline manifest validation inside ephemeral kubernetes-sigs/agent-sandbox pods, operator-side hard diff policy gates, optional human-in-the-loop approval checkpoints, and automated Pull Request or Merge Request creation.

  • A Kubernetes cluster (>= 1.28) with kubectl and helm (>= 3.12)
  • A GitOps repository hosted on GitHub, GitLab, Forgejo, or Gitea
  • An LLM API key (or a ModelProfile already created from Tier 0 Quickstart)

1. One-Command Helm Install with Bundled agent-sandbox

Section titled “1. One-Command Helm Install with Bundled agent-sandbox”

Faber vendors the upstream kubernetes-sigs/agent-sandbox controller (v1.0.12, chart 0.1.5) as an optional subchart under agentSandbox.*. Enable both agentSandbox.enabled=true and sandbox.enabled=true for a single-command Tier 1 install:

Terminal window
helm upgrade --install faber oci://ghcr.io/faberops/charts/faber \
--version 2.0.0 \
--namespace faber \
--create-namespace \
--set agentSandbox.enabled=true \
--set sandbox.enabled=true

By default, sandbox.runtimeClassName is empty ("") so sandbox pods work out of the box on EKS, GKE, AKS, Talos, and kind clusters without pre-installing a custom RuntimeClass.

For production clusters that run a gVisor (runsc) RuntimeClass, add --set sandbox.runtimeClassName=gvisor to isolate untrusted sandbox execution inside a user-space kernel:

Terminal window
helm upgrade --install faber oci://ghcr.io/faberops/charts/faber \
--version 2.0.0 \
--namespace faber \
--set agentSandbox.enabled=true \
--set sandbox.enabled=true \
--set sandbox.runtimeClassName=gvisor

If your cluster already runs agent-sandbox independently, leave agentSandbox.enabled=false and set only --set sandbox.enabled=true to avoid CRD or controller conflicts.

2. Scaffold GitOps Manifests with faberctl init

Section titled “2. Scaffold GitOps Manifests with faberctl init”

Install faberctl and scaffold starter manifests for your GitOps repository. faberctl init probes your cluster for Flux, Argo CD, cert-manager, ExternalSecrets, Prometheus MCP, and VictoriaLogs MCP (or pass --offline to skip cluster probing):

Terminal window
go install github.com/faberops/faber/cmd/faberctl@latest
faberctl init \
--repo my-org/cluster-gitops \
--forge github \
--model-provider openai \
--out-dir ./faber-gitops

Start quickly on GitHub using a fine-grained Personal Access Token (contents: write, pull_requests: write, metadata: read scoped to your GitOps repository only):

Terminal window
kubectl -n faber create secret generic faber-github-token \
--from-literal=token="$GITHUB_PAT"

Create a GitOpsRepository pointing to the bundled faber-validator SandboxTemplate and enabling offline kubeconform validation:

apiVersion: faberops.dev/v1alpha1
kind: GitOpsRepository
metadata:
name: cluster-gitops
namespace: faber
spec:
forge:
provider: github
owner: my-org
repo: cluster-gitops
defaultBranch: main
branchPrefix: agent/
tokenSecretRef:
name: faber-github-token
key: token
validation:
sandboxTemplateRef:
name: faber-validator
namespace: faber
validationProfiles:
- kubeconform
guardrails:
maxChangedFiles: 10
maxChangedLines: 500
requireValidation: true
secretScan: true

For production GitHub App setup (short-lived installation tokens and GitHub-signed Verified GraphQL commits) or GitLab, Forgejo, and Gitea configuration, see Git Forges.

Render and apply a Tier 1 remediation preset such as flux-failure-fixer or argocd-sync-fixer:

Terminal window
faberctl pack render flux-failure-fixer --repo cluster-gitops > flux-failure-fixer.yaml
kubectl apply -f flux-failure-fixer.yaml

For Argo CD clusters, enable least-privilege read-only Argo CD RBAC (--set rbac.argocdReadOnly=true) and render argocd-sync-fixer:

Terminal window
faberctl pack render argocd-sync-fixer --repo cluster-gitops > argocd-sync-fixer.yaml
kubectl apply -f argocd-sync-fixer.yaml

Ensure a namespace-default ModelProfile (spec.default: true) exists in faber, or reference one explicitly via GitOpsRepository.spec.defaultModelProfileRef.

Watch runs live from the embedded Web GUI (kubectl -n faber port-forward svc/faber 8080:8080) or faberctl:

Terminal window
faberctl --server http://127.0.0.1:8080 runs list --tier 1 --limit 10
faberctl --server http://127.0.0.1:8080 runs diff <run-id>
faberctl --server http://127.0.0.1:8080 runs watch <run-id>