Helm chartv0.3.0App 0.22.1Apache-2.0Verified publisher

Popeye is a utility that scans live Kubernetes clusters and reports potential issues with deployed resources and configurations

About this chart

Ad Noctem Collective - Popeye Helm Chart

Popeye is a utility that scans live Kubernetes cluster and reports potential issues with deployed resources and configurations. It sanitizes your cluster based on what's deployed and not what's sitting on disk. By scanning your cluster, it detects misconfigurations and helps you to ensure that best practices are in place, thus preventing future headaches. It aims at reducing the cognitive overload one faces when operating a Kubernetes cluster in the wild. Furthermore, if your cluster employs a metric-server, it reports potential resources over/under allocations and attempts to warn you should your cluster run out of capacity.

Popeye is a readonly tool, it does not alter any of your Kubernetes resources in any way!

It delivers all of these features within a single Docker image available on Docker Hub.

Head to the Popeye GitHub Repository or their Website for in-depth documentation and configuration guides.

✨ TL;DR

Helm Repository Installation

helm repo add adnoctem https://adnoctem.github.io/charts
helm install popeye adnoctem/popeye --version X.Y.Z

OCI Installation

helm install oci://ghcr.io/adnoctem/charts/popeye:X.Y.Z

Introduction

This chart bootstraps a Popeye CronJob a Kubernetes cluster using the Helm package manager. RBAC manifests are enabled by default.

The chart supports the configuration of all Popeye CLI arguments and configuration files via the popeye key in Helm's values and makes use of the official Docker Hub container image, although this is configurable via the Image Parameters.

Upgrading

To 0.3.0

  • Corrected metadata copy-pasted from the ntfy chart: the ArtifactHub image name, GitHub/documentation link labels, and license (this chart is Apache-2.0, not MIT, as previously listed).
  • popeye.args.force-exit-zero now defaults to true. Popeye's CronJob previously left its Job in an Error state whenever lint findings were reported, since Popeye's own exit code reflects the scan result. The Job now always exits 0 regardless of findings. Set popeye.args.force-exit-zero: false to restore the old behavior.
  • appVersion bumped from 0.21.3 to 0.22.1, skipping 0.21.6 and 0.22.0, both of which have known upstream scanning regressions.
  • Fixed a template bug where CLI arguments could render as malformed YAML (two flags concatenated onto one line) depending on which flags were combined - the CLI arguments actually applied by the CronJob may change if you were relying on this.
  • Fixed the S3 scan destination's auto-created Secret, which previously failed outright when no popeye.scans.s3.existingSecret was provided (the only case where the Secret is actually needed).
  • Fixed the S3 scan destination's CLI arguments (--s3-bucket, --s3-region, --s3-endpoint), which previously were silently dropped unless push-gtwy was also configured as a destination.

Parameters

Popeye Image parameters

NameDescriptionValue
image.registryThe Docker registry to pull the image fromdocker.io
image.repositoryThe registry repository to pull the image fromderailed/popeye
image.tagThe image tag to pullv0.22.1
image.digestThe image digest to pull""
image.pullPolicyThe Kubernetes image pull policyIfNotPresent
image.pullSecretsA list of secrets to use for pulling images from private registries[]

Name overrides

NameDescriptionValue
nameOverrideString to partially override popeye.fullname""
fullnameOverrideString to fully override popeye.fullname""

CronJob parameters

NameDescriptionValue
cronjob.labelsLabels to attach to the CronJob manifest{}
cronjob.annotationsAnnotations to attach to the CronJob manifest{}
cronjob.scheduleThe schedule to for the CronJob. Once an hour per default.* */1 * * *
cronjob.concurrencyPolicyConcurrency is disabled for Popeye by default.Forbid
cronjob.restartPolicyPopeye containers should exit and never be auto-recreatedNever

Popeye Configuration parameters

NameDescriptionValue
popeye.configThe SpinachYAML configuration for popeye""
popeye.argsDefine the CLI arguments and flags that the container's entrypoint will execute{}
popeye.args.force-exit-zeroExit 0 on lint findings instead of leaving the CronJob's Job in an Error statetrue
popeye.scans.destinationsSet Scan destinations for Popeye. Valid keys are s3 and push-gtwy.[]
popeye.scans.pushGateway.urlSet the URL for the Push Gateway service""
popeye.scans.pushGateway.userSet the HTTP Basic Auth username for the Push Gateway service""
popeye.scans.pushGateway.passwordSet the HTTP Basic Auth password for the Push Gateway service""
popeye.scans.pushGateway.existingSecretProvide an existing basic-auth Secret to use as a credential source for the Push Gateway service""
popeye.scans.s3.bucketSet the S3 bucket name""
popeye.scans.s3.regionSet the S3 region to use""
popeye.scans.s3.endpointSet a custom S3 endpoint to use instead of the AWS one""
popeye.scans.s3.accessKeySet the S3 Access Key""
popeye.scans.s3.secretKeySet the S3 Secret Key""
popeye.scans.s3.existingSecretProvide an existing Secret to with accessKey and secretKey keys to use as a credential source""
configMap.annotationsAnnotations for the ConfigMap resource{}
configMap.labelsExtra Labels for the ConfigMap resource{}

Common Secret parameters

NameDescriptionValue
secret.annotationsCommon annotations for the S3 secret{}
secret.labelsCommon extra labels for the S3 secret{}

RBAC parameters

NameDescriptionValue
rbac.createWhether to create RBAC resourcestrue
rbac.rulesExtra rules to add to the Role[]

Service Account parameters

NameDescriptionValue
serviceAccount.createWhether a service account should be createdtrue
serviceAccount.automountWhether to automount the service account tokenfalse
serviceAccount.annotationsAnnotations to add to the service account{}
serviceAccount.nameA custom name for the service account, otherwise gobackup.fullname is used""
serviceAccount.secretsA list of secrets mountable by this service account[]

Pod settings

NameDescriptionValue
resourcesThe resource limits/requests for the Popeye pod{}
volumesDefine volumes for the Popeye pod[]
volumeMountsDefine volumeMounts for the Popeye pod[]
initContainersDefine initContainers for the main Popeye server[]
nodeSelectorNode labels for pod assignment{}
tolerationsTolerations for pod assignment[]
affinityAffinity for pod assignment{}
podAnnotationsExtra annotations for the Popeye pod{}
podLabelsExtra labels for the Popeye pod{}
priorityClassNameThe name of an existing PriorityClass""

Security context settings

NameDescriptionValue
podSecurityContextSecurity context settings for the Popeye pod{}
securityContextGeneral security context settings for{}

Deploy popeye with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has popeye 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 chartpopeye is pinned at v0.3.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