upgradoor

by ethPandaOps

Helm chartv0.1.0Verified publisher

Per-devnet controller that staggers docker image rolls, package upgrades and reboots across the hosts of an Ethereum devnet, gated on network health.

About this chart

upgradoor

Per-devnet controller that staggers docker image rolls, package upgrades and reboots across the hosts of an Ethereum devnet, gated on network health.

Homepage: https://github.com/ethpandaops/upgradoor

Source Code

Values

KeyTypeDefaultDescription
affinityobject{}Affinity configuration for pods
allowOpenApiboolfalseServe the user API without login (everything allowed). Only for tests.
annotationsobject{}Annotations for the StatefulSet
authProviderUrlstring""Authenticatoor URL. Required unless allowOpenApi is set.
beaconEndpointslist[]Beacon API endpoints for the network health gate. Required.
containerSecurityContextobjectSee values.yamlThe security context for containers
controllerSeedstring""Controller seed of the devnet group (at least 32 characters, or a vault-plugin reference). Written to a Secret. Required unless controllerSeedExistingSecret is set.
controllerSeedExistingSecretstring""Existing Secret holding the controller seed under the key seed
customCommandlist[]Command replacement for the upgradoor container
extraArgslist[]Extra args for the upgradoor container
extraContainerslist[]Additional containers
extraEnvlist[]Additional env variables
extraPodPortslist[]Additional ports on the pod (in addition to http)
extraPortslist[]Additional ports on the Service (in addition to http)
extraVolumeMountslist[]Additional volume mounts
extraVolumeslist[]Additional volumes
fullnameOverridestring""Overrides the chart's computed fullname
httpPortint8080HTTP port for the agent API, user API, web UI, /healthz and /metrics
image.pullPolicystring"Always"upgradoor container pull policy
image.repositorystring"ghcr.io/ethpandaops/upgradoor"upgradoor container image repository
image.tagstring"latest"upgradoor container image tag
imagePullSecretslist[]Image pull secrets for Docker images
ingress.annotationsobject{}Annotations for Ingress
ingress.classNamestring""IngressClass that will be used to implement the Ingress
ingress.enabledboolfalseIngress resource for the HTTP API and web UI
ingress.hosts[0].hoststring"chart-example.local"
ingress.hosts[0].pathslist[]
ingress.tlslist[]Ingress TLS
initContainerslist[]Additional init containers
livenessProbeobjectSee values.yamlLiveness probe
logging.formatstring"json"Log format: text
logging.levelstring"info"Log level: debug
metrics.blockOnIngressbooltrueRoute /metrics on the Ingress to a Service without endpoints, so it is not public
nameOverridestring""Overrides the chart's name
networkstring""Name of the devnet this controller manages. Required.
nodeSelectorobject{}Node selector for pods
persistence.accessModeslist["ReadWriteOnce"]Access modes for the PersistentVolumeClaim
persistence.annotationsobject{}Annotations for the PersistentVolumeClaim
persistence.enabledbooltrueKeep the SQLite database on a volume claim of the StatefulSet. Uses an emptyDir when disabled.
persistence.existingClaimstring""Use an existing PersistentVolumeClaim instead of provisioning one
persistence.sizestring"1Gi"Requested size for the PersistentVolumeClaim
persistence.storageClassNamestringnilStorage class name. Uses the cluster default when null.
podAnnotationsobject{}Pod annotations
podLabelsobject{}Pod labels
podManagementPolicystring"OrderedReady"Pod management policy of the StatefulSet
priorityClassNamestringnilPod priority class
prometheusRule.enabledboolfalseIf true, a PrometheusRule CRD is created for a prometheus operator
prometheusRule.labelsobject{}Additional PrometheusRule labels
prometheusRule.namespacestringnilAlternative namespace for PrometheusRule
prometheusRule.ruleslistSee values.yamlAlert rules. expr is rendered as a template.
publicUrlslist[]Public base URLs agents reach the controller under
readinessProbeobjectSee values.yamlReadiness probe
registry.allowPrivateboolfalseAllow lookups at registries on private, loopback and link-local addresses
registry.authstring""Docker config.json ({"auths": {...}}) for the registry lookups, written to a Secret
registry.caBundlestring""Extra CA bundle (PEM) for private registries
registry.existingSecretstring""Existing Secret holding the Docker config.json under the key .dockerconfigjson
registry.plainHttplist[]Registry hosts looked up without TLS
resourcesobject{}Resource requests and limits
securityContextobjectSee values.yamlThe security context for pods
service.typestring"ClusterIP"Service type
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
serviceMonitor.annotationsobject{}Additional ServiceMonitor annotations
serviceMonitor.enabledboolfalseIf true, a ServiceMonitor CRD is created for a prometheus operator https://github.com/coreos/prometheus-operator
serviceMonitor.intervalstring"1m"ServiceMonitor scrape interval
serviceMonitor.labelsobject{}Additional ServiceMonitor labels
serviceMonitor.namespacestringnilAlternative namespace for ServiceMonitor
serviceMonitor.pathstring"/metrics"Path to scrape
serviceMonitor.relabelingslist[]ServiceMonitor relabelings
serviceMonitor.schemestring"http"ServiceMonitor scheme
serviceMonitor.scrapeTimeoutstring"30s"ServiceMonitor scrape timeout
serviceMonitor.tlsConfigobject{}ServiceMonitor TLS configuration
settingsobject{}Default scheduler settings, passed as --default-setting=<key>=<value>. Settings changed in the UI win.
signerPublicKeystring""Signer public key of the devnet (upgradoor-controller keygen signer-pubkey). Required.
terminationGracePeriodSecondsint30How long to wait until the pod is forcefully terminated
tolerationslist[]Tolerations for pods
topologySpreadConstraintslist[]Topology Spread Constraints for pods
trustForwardedHeadersbooltrueTake the client address from X-Forwarded-For (behind an ingress)
updateStrategyobject{"type":"RollingUpdate"}Update strategy for the StatefulSet. With one replica the old pod is gone before the new one starts.
validatorRangesUrlstring""Validator ranges inventory the hosts' validators come from; empty gives no host validators

Example

network, signerPublicKey, beaconEndpoints and a controller seed are required:

network: my-devnet-0
signerPublicKey: "<output of upgradoor-controller keygen signer-pubkey>"
controllerSeed: "<path:/secrets/services/services.enc.yaml#ethereum | jsonPath {.testnets.my-devnets.upgradoor_controller_seed}>"
publicUrls:
  - https://upgradoor.my-devnet-0.example.com
beaconEndpoints:
  - http://beacon-node:5052
authProviderUrl: https://auth.my-devnet-0.example.com

settings:
  maxUnavailablePercent: 10
  policyReboot: manual

ingress:
  enabled: true
  className: ingress-nginx-public
  annotations:
    nginx.ingress.kubernetes.io/proxy-body-size: "8m"
  hosts:
    - host: upgradoor.my-devnet-0.example.com
      paths:
        - path: /
          pathType: Prefix

The controller seed is mounted from a Secret at /etc/upgradoor/controller-seed/seed. To change it, change the value and redeploy.

registry.auth (or registry.existingSecret, e.g. a kubernetes.io/dockerconfigjson pull secret) gives the controller credentials for looking up private images.

/metrics shares the port with the API. With metrics.blockOnIngress the Ingress routes /metrics to a Service without endpoints, which ingress-nginx answers with 503. Check other ingress controllers with curl -si https://<host>/metrics.

Agents upload their package inventory in one request; on ingress-nginx raise nginx.ingress.kubernetes.io/proxy-body-size (e.g. 8m).

More details: https://github.com/ethpandaops/upgradoor.

Deploy upgradoor with OpenTenant

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