popeye
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
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | {} | Affinity settings for pod assignment |
| cronJob.clusterName | string | "" | Specify a cluster name when running popeye in cluster |
| cronJob.extraArgs | list | [] | List of additional arguments that will be added to the Container |
| cronJob.history.failedJobsHistoryLimit | int | 1 | The number of failed finished jobs to retain. Value must be non-negative integer |
| cronJob.history.successfulJobsHistoryLimit | int | 1 | The number of successful finished jobs to retain. Value must be non-negative integer |
| cronJob.outputFormat | string | "standard" | |
| cronJob.prometheus.basicAuth.enabled | bool | false | Use authentication against Prometheus Pushgateway |
| cronJob.prometheus.basicAuth.existingSecret | string | "" | Name of existing secret to use for authentication against Prometheus Pushgateway, needs to contain the key pushgateway-password |
| cronJob.prometheus.basicAuth.password | string | "" | Password for authentication against Prometheus Pushgateway |
| cronJob.prometheus.basicAuth.user | string | "" | Username for authentication against Prometheus Pushgateway |
| cronJob.prometheus.pushgatewayAddress | string | "" | |
| cronJob.s3.bucket | string | "" | bucket name can be the URI and the bucket name path s3://example-bucket |
| cronJob.s3.endpoint | string | "" | example endpoint: "https://s3.us-east-1.amazonaws.com" |
| cronJob.s3.region | string | "" | example region: "us-east-1" |
| cronJob.schedule | string | "* */1 * * *" | The schedule in Cron format |
| cronJob.spinachConfiguration | object | {} | |
| fullnameOverride | string | "" | String to fully override "popeye.fullname" |
| image.pullPolicy | string | "Always" | image pull policy |
| image.registry | string | "docker.io" | image registory |
| image.repository | string | "derailed/popeye" | image repository |
| image.tag | string | "v0.22.1" | Overrides the image tag |
| imagePullSecrets | list | [] | If defined, uses a Secret to pull an image from a private Docker registry or repository. |
| nameOverride | string | "" | Provide a name in place of popeye |
| nodeSelector | object | {} | Node labels for pod assignment |
| podAnnotations | object | {} | Annotations to be added to exporter pods |
| podSecurityContext | object | {} | pod-level security context |
| resources | object | {"limits":{"cpu":"1000m","memory":"1000Mi"}} | Resource limits and requests for the headwind pods. |
| securityContext | object | {} | container-level security context |
| serviceAccount.annotations | object | {} | Annotations to add to the service account |
| serviceAccount.create | bool | true | Specifies whether a service account should be created |
| serviceAccount.name | string | "" | The name of the service account to use. If not set and create is true, a name is generated using the fullname template |
| tolerations | list | [] | 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartpopeye is pinned at v2.4.4 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