insights-agent
by Fairwinds
A Helm chart to run the Fairwinds Insights agent
About this chart
Fairwinds Insights Agent
The Fairwinds Insights Agent is a collection of reporting tools, which send data back to Fairwinds Insights.
A list of breaking changes for each major version release is available at the bottom of this document.
Changes in 6.0.0
Most plugin image defaults now come from Google Artifact Registry (us-docker.pkg.dev/fairwinds-ops/oss/...) instead of Quay, pinned to immutable semver tags. If you mirror images or allow registries explicitly, update your configuration before upgrading. Still on Quay: insights-right-sizer and vpa-*.
Installation
We recommend installing insights-agent in its own namespace.
helm repo add fairwinds-stable https://charts.fairwinds.com/stable
helm upgrade --install insights-agent fairwinds-stable/insights-agent \
--namespace insights-agent \
--set insights.organization=acme-co \
--set insights.cluster=staging \
--set insights.base64token="abcde=="
CronJob schedules
Most Insights reports run as CronJobs, typically every hour.
In order to avoid every report consuming resources at once, you can stagger the reports
by setting the minute of the cron schedule to a random number. For example,
to run at a random minute every hour, your cron expression can be rand * * * *.
Reports
There are several different report types which can be enabled and configured:
polarisgoldilocksworkloadskube-huntertrivyimage-trustnovarbac-reporterkube-benchplutoopaprometheus-metricsadmissioncloudcosts(AWS, GCP, or Azure; optional FOCUS format)network-observability
See below for configuration details.
Fleet Installation
If you're installing the Insights Agent across a large fleet of clusters, it can be tedious to use the UI to create each cluster, then copy out the cluster's access token.
To better serve customers with a large number of clusters, we've created a flow that allows you to easily deploy the Insights Agent across your fleet. Read more here
Configuration
| Parameter | Description | Default |
|---|---|---|
insights.organization | The name of the organization to upload data to | "" |
insights.cluster | The name of the cluster the data is coming from | "" |
insights.base64token | Your cluster's base64-encoded auth token provided by Insights | "" |
insights.tokenSecretName | If you don't provide a base64token, you can specify the name of a secret to pull the token from | "" |
insights.host | The location of the Insights server | https://insights.fairwinds.com |
rbac.disabled | Don't use any of the built-in RBAC | false |
fleetInstall | See Fleet Installation docs | false |
global.proxy.http | Annotations used to access the proxy servers(http) | "" |
global.proxy.https | Annotations used to access the proxy servers(https) | "" |
global.proxy.ftp | Annotations used to access the proxy servers(ftp) | "" |
global.proxy.no_proxy | Annotations to provides a way to exclude traffic destined to certain hosts from using the proxy | "" |
global.sslCertFileSecretName | The name of an existing Secret containing an SSL certificate file to be used when communicating with a self-hosted Insights API. | "" |
global.sslCertFileSecretKey | The key, within global.sslCertFileSecretName, containing an SSL certificate file to be used when communicating with a self-hosted Insights API. | "" |
customWorkloadAnnotations | Additional annotations to add to each workload. (excluding Falco, uses metadata) | {} |
insights.apiToken | Only needed if fleetInstall=true | "" |
uploader.image.repository | The repository to pull the uploader script from | us-docker.pkg.dev/fairwinds-ops/oss/insights-uploader |
uploader.imagePullSecret | A pull secret for a private uploader image | |
uploader.image.tag | The tag to use for the uploader script | 0.6.12 |
uploader.resources | CPU/memory requests and limits for the uploader script | |
uploader.sendFailures | Send logs of failure to Insights when a job fails. | true |
uploader.env | Set extra environment variables for the uploader script | [] |
installReporter.ttl | Set to -1 to prevent install reporter job from cleaning up after itself | 300 |
cronjobs.disableServiceMesh | Adds annotations to all CronJobs to not inject Linkerd or Istio | true |
cronjobs.backoffLimit | Backoff limit to use for each report CronJob | 1 |
cronjobs.imagePullSecret | A pull secret for cronjob images | |
cronjobs.failedJobsHistoryLimit | Number of failed jobs to keep in history for each report | 1 |
cronjobs.successfulJobsHistoryLimit | Number of successful jobs to keep in history for each report | 1 |
cronjobs.nodeSelector | Node selector to use for cronjobs | null |
cronjobs.tolerations | Tolerations to use for cronjobs | null |
cronjobs.runJobsImmediately | Run each of the reports immediately upon install of the Insights Agent | true |
cronjobs.suspend | Suspend all report CronJobs. Jobs created by runJobsImmediately still run. | false |
cronjobs.dnsPolicy | Adds pod DNS policy | |
cronjobs.imagePullSecret | Name of a pull secret to attach to all CronJobs | |
{report}.enabled | Enable the report type | |
{report}.schedule | Cron expression for running the report | rand * * * * |
{report}.timeout | Maximum time in seconds to wait for the report | |
{report}.resources | CPU/memory requests and limits for the report | |
{report}.securityContext | Additional securityContext field in the Pod specification(PodSecurityContext) for the report | |
{report}.image.repository | Repository to use for the report image | |
{report}.image.tag | Image tag to use for the report | |
{report}.securityContext | Pod securityContext for the CronJob | {} |
{report}.containerSecurityContext | Container securityContext for the CronJob | {} |
{report}.labels | labels for the CronJob | {} |
{report}.annotations | annotations for the CronJob | {} |
{report}.jobLabels | labels for the Jobs created by the CronJob | {} |
{report}.jobAnnotations | annotations for the Jobs created by the CronJob | {} |
polaris.config | A custom polaris configuration | |
polaris.extraArgs | A string of custom arguments to pass to the polaris CLI, e.g. --disallow-annotation-exemptions=true | |
kube-hunter.logLevel | DEFAULT, INFO, or WARNING | INFO |
kube-bench.mode | Changes the way this plugin is deployed, either cronjob where it will run a single pod on the schedule that will pull the data necessary from a single node and report that back to Insights. daemonset which deploys a daemonset to the cluster which gathers data then a cronjob will gather data from each of those pods. daemonsetMaster is the same as daemonset except the daemonset can also run on masters. | cronjob |
kube-bench.hourInterval | If running in daemonset or daemonsetMaster this configuration changes how often the daemonset pods will rescan the node they are running on | 2 |
kube-bench.aggregator | contains resources and image.repository and image.tag, this controls the pod scheduled via a CronJob that aggregates from the daemonset in daemonset or daemonsetMaster deployment modes. | |
trivy.ignoreUnfixed | Adds --ignore-unfixed trivy flag | false |
trivy.insecureSSL | Can be used to allow insecure connections to a container registry when using SSL. | false |
trivy.privateImages.dockerConfigSecret | Name of a secret containing a docker config.json | "" |
trivy.maxConcurrentScans | Maximum number of scans to run concurrently | 1 |
trivy.maxScansPerRun | Maximum number of images to scan on a single run | 20 |
trivy.namespaceAllowlist | Specifies which namespaces to scan, takes an array of namespaces for example: --set trivy.namespaceAllowlist="{kube-system,default}" | [] |
trivy.namespaceBlocklist | Specifies which namespaces to not scan, takes an array of namespaces for example: --set trivy.namespaceBlocklist="{kube-system,default}" | [] |
trivy.serviceAccount.annotations | Annotations to add to the Trivy service account, e.g. eks.amazonaws.com/role-arn: arn:aws:iam::ACCOUNT_ID:role/IAM_ROLE_NAME for accessing private images | nil |
trivy.env | A map of environment variables that will be set for the trivy container. | nil |
image-trust.enabled | Enable Cosign image trust reporting | false |
image-trust.modes | Modes: cosign-keyless, cosign-key, cosign-attestation-keyless, cosign-attestation-key | [cosign-keyless] |
image-trust.modePolicy | any (first successful mode in list order) or all (every configured mode must verify) | any |
image-trust.trustedIssuers | OIDC issuers for keyless verification | [] |
image-trust.trustedSubjects | Exact certificate identities for keyless verification | [] |
image-trust.trustedSubjectRegexps | Subject regexes for keyless verification | [] |
image-trust.attestations.enabled | Enable attestation verification; auto-appends cosign-attestation-* modes | false |
image-trust.attestations.types | Predicate types (e.g. slsaprovenance1); setting types alone also enables attestations | [] |
image-trust.attestationTypes | Deprecated; use attestations.types | [] |
image-trust.imageAllowlist | Glob patterns; matching images do not generate findings | [] |
image-trust.registryAllowlist | Glob patterns for registries | [] |
image-trust.signerAllowlist | Issuer, subject, or issuer|subject signer patterns | [] |
image-trust.publicKeys.secretName | Secret with .pub / PEM files mounted at /etc/image-trust/keys | "" |
image-trust.publicKeys.paths | Absolute paths to public keys inside the container | [] |
image-trust.publicKeys.refs | Remote/KMS public key URIs | [] |
image-trust.privateImages.dockerConfigSecret | Secret containing config.json for multi-registry auth | "" |
image-trust.privateImages.registryAuthsSecret | Secret with JSON array mounted for IMAGE_TRUST_REGISTRY_AUTHS_FILE | "" |
image-trust.privateImages.registryPasswordSecret | Secret with registry password for private images | "" |
image-trust.privateImages.registryUser | Registry username when not using docker config | "" |
image-trust.registryMirrors | mirror=upstream pairs for pull-through registries | "" |
image-trust.registryMirrorsFile.secret | Secret with mirror pairs (IMAGE_TRUST_REGISTRY_MIRRORS_FILE) | "" |
image-trust.registryCertDirs | Per-registry custom CA bundles (host=/path pairs); mount CA directories at those paths (e.g. via image-trust.env) | "" |
image-trust.registryCertDirsFile.secret | Secret with cert dir pairs (IMAGE_TRUST_REGISTRY_CERT_DIRS_FILE); mount CA directories at the paths in the file | "" |
image-trust.registryAuthHost | Docker config host key for legacy REGISTRY_USER / password | "" |
image-trust.sigstore.env | Private Sigstore env vars (Fulcio, Rekor URLs) | {} |
image-trust.sigstore.envFileSecret | Secret with KEY=VALUE lines for IMAGE_TRUST_SIGSTORE_ENV_FILE | "" |
image-trust.sigstore.trustBundleSecret | Secret with Sigstore root bundle (SIGSTORE_ROOT_FILE) | "" |
image-trust.namespaceAllowlist | Namespaces to scan | [] |
image-trust.namespaceBlocklist | Namespaces to exclude | [] |
image-trust.maxConcurrentScans | Parallel cosign verifications per run | 5 |
image-trust.imageVerifyTimeoutSeconds | Per-image verify timeout in seconds | 180 |
image-trust.verifyRetries | Retries for transient registry/Sigstore errors | 3 |
image-trust.verifyRetryBackoffSeconds | Base delay between retries | 2 |
image-trust.verifyRetryJitter | Add random jitter to retry backoff | true |
image-trust.resolveDigests | Resolve tag-only images via registry API | true |
image-trust.ignoreTlog | Skip Rekor for keyed verification | false |
image-trust.env | Extra environment variables for the image-trust container | {} |
onDemandJobRunner.image.tag | On-demand job runner image tag; use 0.2.19 or newer for on-demand image-trust jobs | 0.2.29 |
opa.role | Specifies which ClusterRole to grant the OPA agent access to | view |
opa.additionalAccess | Specifies additional access to grant the OPA agent. This should contain an array of objects with each having an array of apiGroups, an array of resources, and an array of verbs. Just like a RoleBinding. | null |
insights-agent chart twice you will want to set this flag to false on one of the installs, doesn't matter which. | true | |
opa.targetResources | A user-specified list of Kubernetes targets to which OPA policies will be applied. Each target requires a list of apiGroups and a list of Resources. | {} |
opa.targetResourcesAutoRBAC | Automatically add RBAC rules allowing get and list operations for APIGroups and Resources supplied via targetResources. This does not impact RBAC rules added for defaultTargetResources. | true |
opa.admissionRulesAsTargetResources | IF the admission controller is enabled, the APIGroups and Resources found in insights-admission webhookConfig.rules will be added as OPA Kubernetes target resources, plus supporting RBAC rules are granted to OPA, if the insights-admission webhookConfig.rulesAutoRBAC value is also set. | true |
goldilocks.controller.flags.exclude-namespaces | Namespaces to exclude from the goldilocks report | kube-system |
goldilocks.vpa.enabled | Install the Vertical Pod Autoscaler as part of the Goldilocks installation | true |
goldilocks.controller.flags.on-by-default | Goldilocks will by default monitor all namespaces that aren't excluded | true |
goldilocks.controller.resources | CPU/memory requests and limits for the Goldilocks controller | |
goldilocks.dashboard.enabled | Installs the Goldilocks Dashboard | false |
prometheus-metrics.installPrometheusServer | Install a new Prometheus server instance for the prometheus report | false |
prometheus-metrics.address | The address of an existing Prom |
Deploy insights-agent with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has insights-agent 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartinsights-agent is pinned at v6.29.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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