agent-control-cd

by Helm

Helm chartv1.0.0

A Helm chart to install New Relic Agent Control CD (Flux) on Kubernetes

About this chart

agent-control-cd

A Helm chart to install New Relic Agent Control CD (Flux) on Kubernetes

Helm installation

This chart is not intended to be installed on its own. Instead, it is designed to be installed as part of the agent-control chart.

Values

KeyTypeDefaultDescription
flux2objectSee values.yamlDefault Values for the Flux chart. Full list Ref.: https://github.com/fluxcd-community/helm-charts/blob/flux2-2.10.2/charts/flux2/values.yaml
flux2.enabledbooltrueEnable or disable FluxCD installation. New Relic' Agent Control need Flux to work, but the user can use an already existing Flux deployment. With that use case, the use can disable Flux and use this chart to only install the CRs to deploy the Agent Control.
flux2.clusterDomainstring"cluster.local"This is the domain name of the cluster.
flux2.helmControllerobjectEnabledHelm controller is a Kubernetes operator that allows to declaratively manage Helm chart releases with Kubernetes manifests. The Helm release is defined in a CR (Custom Resource) named HelmRelease that the operator will reconcile on the apply, edit, or deletion of a HelmRelease resource. New Relic' Agent Control will use this controller by creating HelmRelease CRs based in the configuration stored on Fleet Control. This is the only controller that the Agent Control need for now, the other controllers are disabled by default. On the other hand, user might want to leverage having FluxCD installed for their own purposes. Take a look to the values.yaml to see how to enable other controllers.
flux2.installCRDsbooltrueThe installation of the CRDs is managed by the chart itself.
flux2.rbacobjectEnabled (See values.yaml)Create RBAC rules for FluxCD is able to deploy all kind of workloads on the cluster.
flux2.sourceControllerobjectEnabledSource controller provides a way to fetch artifacts to the rest of controllers. The source API (which reference can be read here) is used by admins and various automated operators to offload the Git, OCO, and Helm repositories management.
flux2.watchAllNamespacesboolfalseAs we are using Flux as a tool from the agent control to release new workloads, we do not want Flux to listen to all CRs created on the whole cluster. If the user does not want to use Flux and is only using it because of the agent control, this is the way to go so the cluster has deployed all operators needed by the agent control. But if the user want to use Flux for other purposes besides the agent control, this toggle can be used to allow Flux to work on the whole cluster.

Maintainers

Deploy agent-control-cd with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has agent-control-cd 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-control-cd is pinned at v1.0.0 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