prepull-daemonset
by Posit PBC
a daemonset to prepull images so they are cached
About this chart
prepull-daemonset
a daemonset to prepull images so they are cached
Installing the Chart
To install the chart with the release name my-release at version 0.0.5:
helm repo add rstudio https://helm.rstudio.com
helm install my-release rstudio/prepull-daemonset --version=0.0.5
Use
Create a values.yaml file somewhere that lists the images you'd like to be pre-pulled (use the values.yaml file in this repo for format):
images:
- name: my-first-image
image: some-id.dkr.ecr.us-east-1.amazonaws.com/my-ecr-repo:latest
- name: my-second-image
image: some-id.dkr.ecr.us-east-1.amazonaws.com/my-other-repo:latest
- name: my-third-public-image
image: ubuntu:bionic
Pull Again
To run the pre-pull again (i.e. to pull new images with the same tag, to ensure node caches† are fresh), there are a few options:
# by default, every upgrade is randomized / does a rollout (`--set randomize=false` to disable this behavior)
helm upgrade install prepull-daemonset rstudio/prepull-daemonset
# or use kubectl
kubectl rollout restart daemonset/prepull-daemonset
† Kubernetes Nodes (specifically, the
kubeletservice) periodically remove images from the node's cache to free up disk space, especially if an image is not in use and has not been used lately
Values
| Key | Type | Default | Description |
|---|---|---|---|
| images[0].image | string | "ubuntu:bionic" | |
| images[0].name | string | "ubuntu-bionic" | |
| randomize | bool | true | |
| updateStrategy | object | {} |
Autogenerated from chart metadata using helm-docs v1.13.1
Deploy prepull-daemonset with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has prepull-daemonset 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 chartprepull-daemonset is pinned at v0.0.5 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