To install the chart with the release name my-release
at version 0.0.2:
helm repo add rstudio https://helm.rstudio.com
helm install my-release rstudio/prepull-daemonset --version=0.0.2
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
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
kubelet
service) 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
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.5.0