Helm chartv0.1.2App 0.21.3MIT

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

About this chart

FMJ Studios - 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 fmjstudios https://fmjstudios.github.io/helm
helm install ntfy fmjstudios/popeye --version X.Y.Z

OCI Installation

helm install oci://ghcr.io/fmjstudios/helm/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.

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.21.3
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.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.1.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