popeye

by christianhuth

Helm chartv2.4.4App v0.22.1Verified publisher

Popeye - A Kubernetes Cluster Sanitizer

About this chart

popeye

Popeye - A Kubernetes Cluster Sanitizer

TL;DR;

helm repo add christianhuth https://charts.christianhuth.de
helm repo update
helm install my-release christianhuth/popeye

Or install it from the OCI registry:

helm install my-release oci://ghcr.io/christianhuth/helm-charts/popeye

Introduction

This chart bootstraps the Kubernetes cluster resource sanitizer called popeye using the Helm package manager.

Prerequisites

  • Kubernetes 1.19+

Installing the Chart

To install the chart with the release name my-release:

helm repo add christianhuth https://charts.christianhuth.de
helm repo update
helm install my-release christianhuth/popeye

The chart is also published as an OCI artifact which can be installed like this:

helm install my-release oci://ghcr.io/christianhuth/helm-charts/popeye

These commands deploy popeye on the Kubernetes cluster in the default configuration. The Values section lists the values that can be configured during installation.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall the my-release deployment:

helm uninstall my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Values

KeyTypeDefaultDescription
affinityobject{}Affinity settings for pod assignment
cronJob.clusterNamestring""Specify a cluster name when running popeye in cluster
cronJob.extraArgslist[]List of additional arguments that will be added to the Container
cronJob.history.failedJobsHistoryLimitint1The number of failed finished jobs to retain. Value must be non-negative integer
cronJob.history.successfulJobsHistoryLimitint1The number of successful finished jobs to retain. Value must be non-negative integer
cronJob.outputFormatstring"standard"
cronJob.prometheus.basicAuth.enabledboolfalseUse authentication against Prometheus Pushgateway
cronJob.prometheus.basicAuth.existingSecretstring""Name of existing secret to use for authentication against Prometheus Pushgateway, needs to contain the key pushgateway-password
cronJob.prometheus.basicAuth.passwordstring""Password for authentication against Prometheus Pushgateway
cronJob.prometheus.basicAuth.userstring""Username for authentication against Prometheus Pushgateway
cronJob.prometheus.pushgatewayAddressstring""
cronJob.s3.bucketstring""bucket name can be the URI and the bucket name path s3://example-bucket
cronJob.s3.endpointstring""example endpoint: "https://s3.us-east-1.amazonaws.com"
cronJob.s3.regionstring""example region: "us-east-1"
cronJob.schedulestring"* */1 * * *"The schedule in Cron format
cronJob.spinachConfigurationobject{}
fullnameOverridestring""String to fully override "popeye.fullname"
image.pullPolicystring"Always"image pull policy
image.registrystring"docker.io"image registory
image.repositorystring"derailed/popeye"image repository
image.tagstring"v0.22.1"Overrides the image tag
imagePullSecretslist[]If defined, uses a Secret to pull an image from a private Docker registry or repository.
nameOverridestring""Provide a name in place of popeye
nodeSelectorobject{}Node labels for pod assignment
podAnnotationsobject{}Annotations to be added to exporter pods
podSecurityContextobject{}pod-level security context
resourcesobject{"limits":{"cpu":"1000m","memory":"1000Mi"}}Resource limits and requests for the headwind pods.
securityContextobject{}container-level security context
serviceAccount.annotationsobject{}Annotations to add to the service account
serviceAccount.createbooltrueSpecifies whether a service account should be created
serviceAccount.namestring""The name of the service account to use. If not set and create is true, a name is generated using the fullname template
tolerationslist[]Toleration labels for pod assignment

Specify each parameter using the --set key=value[,key=value] argument to helm install.

Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,

helm install my-release -f values.yaml christianhuth/popeye

Upgrading the Chart

To 2.0.0

This major upgrades the Docker Image to v0.20.0. This new version contains breaking changes in the SpinachYAML configuration. See [here](SpinachYAML configuration ) for more information.

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 v2.4.4 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