Namespaces to watch; one Role and RoleBinding is created in each.
[]
When either namespace-scoped option is configured, the chart omits the controller
ClusterRole and ClusterRoleBinding and creates namespace-scoped controller RBAC.
The metrics authentication RBAC remains independently controlled by
metrics.rbac.create because Kubernetes authentication reviews are cluster-scoped.
Profile & annotations
Key
Description
Default Value
profile.path
Path to the profiles file in the container.
/etc/autovpa/config.yaml
profile.annotation
Workload annotation used to select a profile.
autovpa.containeroo.ch/profile
profile.managedLabel
Label applied to managed VPAs.
autovpa.containeroo.ch/managed
profile.nameTemplate
Template for VPA names.
{{ .WorkloadName }}-{{ .Profile }}-vpa
profile.configMap.create
Create and mount a profile ConfigMap.
true
profile.configMap.name
Existing/custom profile ConfigMap name.
""
profile.configMap.key
Key containing the profile configuration.
config.yaml
profile.defaultProfile
Name of the default profile.
default
profile.profiles
Profile definitions written to the ConfigMap.
Default profile with Off mode
Probes
Key
Description
Default Value
probes.address
Override the health and readiness bind address.
""
probes.port
Container port used by the named probe port.
8081
server.enableHTTP2
Enable HTTP/2 for metrics and probe servers.
false
startupProbe.enabled
Enable startup probe.
true
startupProbe.spec
Configuration for the startup probe.
See default values.
livenessProbe.enabled
Enable liveness probe.
true
livenessProbe.spec
Configuration for the liveness probe.
See default values.
readinessProbe.enabled
Enable readiness probe.
true
readinessProbe.spec
Configuration for the readiness probe.
See default values.
Security
Key
Description
Default Value
podSecurityContext
Security context for the pod.
{}
securityContext
Security context for the containers.
{}
Resource Configuration
Key
Description
Default Value
resources.limits.cpu
CPU limit for the container.
100m
resources.limits.memory
Memory limit for the container.
200Mi
resources.requests.cpu
CPU request for the container.
100m
resources.requests.memory
Memory request for the container.
200Mi
Metrics Configuration
Key
Description
Default Value
metrics.enabled
Enable the metrics endpoint.
true
metrics.address
Override the metrics bind address.
""
metrics.port
Container port exposed under the metrics name.
8443
metrics.secure
Serve metrics over HTTPS instead of HTTP.
true
metrics.rbac.create
Create HTTPS metrics authentication cluster RBAC.
true
metrics.rbac.name
Custom metrics authentication RBAC name.
""
metrics.service.enabled
Create the metrics Service.
true
metrics.service.type
Metrics Service type.
ClusterIP
metrics.service.ports
Ports for the metrics Service.
See default values.
metrics.serviceMonitor.enabled
Create the ServiceMonitor.
true
metrics.serviceMonitor.jobLabel
Service label used as the Prometheus job.
app.kubernetes.io/name
metrics.prometheusRule.enabled
Enable Prometheus rules for alerts.
true
metrics.prometheusRule.namespace
Namespace for Prometheus rules.
monitoring
metrics.prometheusRule.severity
Severity of alerts.
critical
metrics.prometheusRule.additionalLabels
Additional labels for Prometheus rules.
{}
The ServiceMonitor scheme follows metrics.secure: https includes the TLS
configuration and bearer token used by the controller-runtime authenticated
endpoint, while http omits both. When changing the port in metrics.address, set
metrics.port to the same port. The default Service targets this named port.
Likewise, keep probes.port aligned with a custom probes.address.
Metrics authentication RBAC is rendered only when metrics and HTTPS are enabled.
RBAC and Service Account
Key
Description
Default Value
clusterRole.create
Create controller cluster RBAC in cluster-wide mode.
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has autovpa 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 chartautovpa is pinned at v0.4.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