agent-forge-operator

by containeroo

Helm chartv1.3.2App v1.3.2Verified publisher

Helm chart for Agent Forge Operator

About this chart

agent-forge-operator chart

The agent-forge-operator chart provides a Helm chart as a first-class method of installation on Kubernetes.

The chart installs the VsphereAgent, VsphereAgentPool, OpenStackAgent, and OpenStackAgentPool CRDs from the chart crds/ directory. Version 1.3.2 uses operator image v1.3.2 and includes OpenStack provider permissions. Existing crdRoles names are preserved; those roles now cover both providers.

Installation

helm repo add containeroo https://charts.containeroo.ch
helm install agent-forge-operator containeroo/agent-forge-operator --namespace agent-forge-operator-system --create-namespace

Configuration

The following table lists the configurable parameters of the agent-forge-operator Helm chart and their default values.

ParameterDefaultDescription
image.repositoryghcr.io/containeroo/agent-forge-operatorImage repository
image.pullPolicyIfNotPresentImage pull policy
image.tagNoneOverrides the image tag of chart appVersion
imagePullSecrets[]Image pull secrets
args["--leader-elect", "--health-probe-bind-address=:8081", "--metrics-bind-address=:8443"]Command line arguments to pass to the container
nameOverrideNoneOverride the chart name
fullnameOverrideNoneOverride the full name of resources
serviceAccount.createtrueIf true, create a new service account
serviceAccount.annotations{}Additional Service Account annotations
serviceAccount.nameagent-forge-operatorService account to be used
clusterRole.createtrueIf true, create cluster role and cluster role binding
clusterRole.nameagent-forge-operatorThe name of a cluster role to bind to
clusterRole.extraRules[]Additional rules to be included in the role
crdRoles.createtrueCreate user-facing roles for managing the operator CRDs
crdRoles.adminNamevsphereagentpool-admin-roleName of the full-access CRD role
crdRoles.editorNamevsphereagentpool-editor-roleName of the CRD editor role
crdRoles.viewerNamevsphereagentpool-viewer-roleName of the read-only CRD role
leaderElectionRole.createtrueIf true, create leader election role and role binding
leaderElectionRole.nameagent-forge-operator-leader-electionThe name of a leader election role to bind to
leaderElectionRole.extraRules[]Additional rules to be included in the role
podAnnotations{kubectl.kubernetes.io/default-container: agent-forge-operator}Additional pod annotations
podSecurityContext{runAsNonRoot: true, seccompProfile: {type: RuntimeDefault}}Pod-level security context
securityContext{allowPrivilegeEscalation: false, capabilities: {drop: [ALL]}}Container-level security context
resources.requests.cpu10mCPU resource requests for the deployment
resources.requests.memory64MiMemory resource requests for the deployment
resources.limits.cpu500mCPU resource limits for the deployment
resources.limits.memory128MiMemory resource limits for the deployment
metrics.service.enabledtrueEnable metrics service
metrics.containerPort8443Metrics container port
metrics.service.portNamehttpsMetrics service port name
metrics.service.port8443Metrics service port
metrics.service.targetPortmetricsMetrics service target port
metrics.service.additionalLabels{}Additional labels for the metrics service
metrics.authRole.createtrueCreate authn/authz RBAC for secure metrics
metrics.authRole.nameagent-forge-operator-metrics-authMetrics auth role name
metrics.readerRole.createfalseCreate a cluster role that can read /metrics
metrics.readerRole.nameagent-forge-operator-metrics-readerMetrics reader role name
metrics.serviceMonitor.enabledfalseEnable ServiceMonitor
metrics.serviceMonitor.namespacesame as release namespaceNamespace for the ServiceMonitor
metrics.serviceMonitor.additionalLabels{}Additional labels for the ServiceMonitor
metrics.serviceMonitor.scrapeInterval60sScrape interval for the ServiceMonitor
metrics.serviceMonitor.schemehttpsMetrics scrape scheme
metrics.serviceMonitor.bearerTokenFile/var/run/secrets/kubernetes.io/serviceaccount/tokenBearer token file for secure metrics
metrics.serviceMonitor.tlsConfig{insecureSkipVerify: true}TLS config for the ServiceMonitor
metrics.prometheusRule.enabledfalseEnable PrometheusRule
metrics.prometheusRule.namespacesame as release namespaceNamespace for the PrometheusRule
metrics.prometheusRule.additionalLabels{}Additional labels for the PrometheusRule
livenessProbe.enabledtrueIf true, enables livenessProbe for the deployment
readinessProbe.enabledtrueIf true, enables readinessProbe for the deployment
nodeSelector{}Node Selector properties for the deployment
tolerations[]Tolerations properties for the deployment
affinity{}Affinity properties for the deployment
sidecars[]Add additional sidecar containers to the operator pod

CRD Upgrades

Helm installs CRDs from the chart crds/ directory on first install, but does not upgrade or delete CRDs during normal chart upgrades. When using the Commodore component, CRDs are rendered into the catalog and managed by Argo CD together with the operator resources.

Upgrading to 1.3.2

This patch fixes DiscoveryImageChangedBeforeUpload: the operator hashes and uploads the same downloaded ISO snapshot. Workers stuck before discovery-volume or instance creation recover automatically, preserving their existing port and OS volume. Shared image references and restart recovery are respected; discovery media on running workers is never replaced. CRDs, RBAC, and Helm values are unchanged from 1.3.1.

helm repo update containeroo
helm upgrade agent-forge-operator containeroo/agent-forge-operator \
  --namespace agent-forge-operator-system --version 1.3.2 \
  --reuse-values --set-string image.tag=v1.3.2

Use your existing release name and namespace. After upgrading, affected workers may briefly report RefreshingDiscoveryImage while the obsolete cache reference is released. No worker deletion, status reset, or OS volume recreation is needed. If cleanup fails, the condition message reports the error and recovery resumes on a later reconciliation. DiscoveryImageRefreshBlocked indicates provisioning has advanced beyond safe image refresh; do not bypass that guard.

Upgrading to 1.3.1

This patch adds safe OpenStack diagnostics in worker condition messages and logs, and explicit HTTP support through the credentials Secret. CRDs and RBAC are unchanged from 1.3.0. If upgrading from an earlier version, apply the release CRDs first as described below.

helm repo update containeroo
helm upgrade agent-forge-operator containeroo/agent-forge-operator \
  --namespace agent-forge-operator-system --version 1.3.1 \
  --reuse-values --set-string image.tag=v1.3.1

Use your existing release name and namespace. The explicit image tag overrides any old tag retained by --reuse-values. For an HTTP-only OpenStack deployment, opt in on its existing credentials Secret (use your own namespace and Secret name):

kubectl -n example-cluster patch secret example-openstack-credentials \
  --type=merge -p '{"stringData":{"allow-insecure-http":"true"}}'

Keep auth-url set to the scheme actually served by Keystone. This opt-in permits HTTP for authentication and service catalog endpoints; credentials and tokens travel without TLS protection. HTTPS remains the default, and HTTPS certificate verification is always enabled. The Secret change takes effect on existing workers without replacing them. The chart does not manage credentials or transport policy.

Read .status.conditions[].message on the OpenStackAgent for the failed service, operation, safe category, HTTP status, and validated request ID where available. Raw errors, response bodies, endpoints, and credentials remain excluded. See the OpenStack troubleshooting guide.

Upgrading to 1.3.0

Apply the release CRDs before upgrading the controller. Helm does not update CRDs from crds/ on upgrade, so helm upgrade alone is insufficient when adding the OpenStack provider. The bundle includes updated vSphere schemas too.

kubectl apply --server-side -f https://github.com/containeroo/agent-forge-operator/releases/download/v1.3.0/crds.yaml
helm repo update containeroo
helm upgrade agent-forge-operator containeroo/agent-forge-operator \
  --namespace agent-forge-operator-system --version 1.3.0 \
  --reuse-values --set-string image.tag=v1.3.0

Use your existing Helm release name and namespace if they differ. The explicit image tag overrides any tag retained from previous values. If you use a custom registry, make image v1.3.0 available there first. If clusterRole.create=false, update the externally managed role with the new OpenStack and cache permissions. The chart does not create or read OpenStack credentials. Supply a Secret in each pool namespace and configure OpenStackAgentPool separately.

See the [OpenStack setup

Deploy agent-forge-operator with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has agent-forge-operator on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartagent-forge-operator is pinned at v1.3.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply