Skip to content

Commit 1e0d018

Browse files
committed
Update readme for helm
1 parent a0d0cfb commit 1e0d018

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

README.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -79,16 +79,17 @@ Why do I need docker-gc for Kubernetes???
7979

8080
- Kubernetes comes with built-in image and container GC, however, it only deals with the images/containers deployed by k8s but not the ones that get used/generated by containers which talk directly to host docker. Imagine you have a deployment of docker builders in Kubernetes which uses host docker to build stuff.
8181

82-
An example of helm config:
83-
84-
dockerEndpoint: unix:///var/run/docker.sock
85-
executionIntervalInMinutes: 60
86-
dockerClientTimeoutInSeconds: 180
87-
imageDeletionOrder: ByImageLastTouchDate
88-
strategy: ByDiskSpace
89-
sizeLimitInGigabyte: 100
90-
containerStateBlacklist: dead,exited
91-
82+
## How to install?
83+
84+
Examples:
85+
```
86+
helm install --set config.strategy=ByDiskSpace --set config.sizeLimitInGigabyte=15 --set config.executionIntervalInMinutes=720 jackil-docker-gc
87+
```
88+
or
89+
```
90+
helm install --set config.strategy=ByDate --set config.daysBeforeDeletion=30 --set config.executionIntervalInMinutes=720 jackil-docker-gc
91+
```
92+
9293
Note: When executionIntervalInMinutes set to -1, docker-gc will perform one-time cleanup.
9394

9495
For custom configurations, please head to values.yaml.

0 commit comments

Comments
 (0)