Skip to content

Commit

Permalink
feat: ensure to download tmp files on pv
Browse files Browse the repository at this point in the history
  • Loading branch information
junminahn committed Nov 7, 2023
1 parent bad3ffd commit d21a943
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions helm/_clamav/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ spec:
command: ["/bin/sh", "-c"]
args:
- |
mkdir -p /var/lib/clamav/tmp
wget -O /var/lib/clamav/main.cvd https://clamav-mirror.apps.silver.devops.gov.bc.ca/main.cvd;
wget -O /var/lib/clamav/daily.cvd https://clamav-mirror.apps.silver.devops.gov.bc.ca/daily.cvd;
wget -O /var/lib/clamav/bytecode.cvd https://clamav-mirror.apps.silver.devops.gov.bc.ca/bytecode.cvd;
Expand Down
4 changes: 2 additions & 2 deletions helm/_clamav/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ service:
# Ensure to have the minimum resources to run clamd
resources:
limits:
cpu: 500m
cpu: 1000m
memory: 3Gi
requests:
cpu: 100m
cpu: 300m
memory: 2Gi

nodeSelector: {}
Expand Down
6 changes: 3 additions & 3 deletions helm/main/values-b5395d-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ clamav:

resources:
limits:
cpu: 500m
cpu: 1000m
memory: 3Gi
requests:
cpu: 100m
memory: 2Gi
cpu: 300m
memory: 1800Mi

persistentVolume:
size: 1Gi
4 changes: 2 additions & 2 deletions helm/main/values-b5395d-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ clamav:

resources:
limits:
cpu: 500m
cpu: 1000m
memory: 3Gi
requests:
cpu: 100m
cpu: 300m
memory: 2Gi

persistentVolume:
Expand Down
4 changes: 2 additions & 2 deletions helm/main/values-b5395d-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ clamav:

resources:
limits:
cpu: 500m
cpu: 1000m
memory: 3Gi
requests:
cpu: 100m
cpu: 300m
memory: 2Gi

persistentVolume:
Expand Down

0 comments on commit d21a943

Please sign in to comment.