forked from rstudio/helm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.md.gotmpl
42 lines (29 loc) · 1.32 KB
/
README.md.gotmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{{ template "rstudio.header" . }}
{{ template "chart.versionBadge" . }}{{ template "chart.typeBadge" . }}{{ template "chart.appVersionBadge" . }}
{{ template "rstudio.description" . }}
{{ template "rstudio.install" . }}
## 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<sup>†</sup> 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
```
> <sup>†</sup> 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
{{ template "chart.valuesSection" . }}
{{ template "helm-docs.versionFooter" . }}