Skip to content

Commit

Permalink
feat: empty dir volumes (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcgrath207 authored Jan 29, 2024
1 parent cfe43f6 commit 616c81c
Show file tree
Hide file tree
Showing 8 changed files with 263 additions and 87 deletions.
4 changes: 4 additions & 0 deletions chart/templates/DeployType.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ spec:
- name: EPHEMERAL_STORAGE_CONTAINER_LIMIT_PERCENTAGE
value: "{{ .Values.metrics.ephemeral_storage_container_limit_percentage }}"
{{- end }}
{{- if .Values.metrics.ephemeral_storage_container_volume_limit_percentage }}
- name: EPHEMERAL_STORAGE_CONTAINER_VOLUME_LIMITS_PERCENTAGE
value: "{{ .Values.metrics.ephemeral_storage_container_volume_limit_percentage }}"
{{- end }}
{{- if .Values.metrics.adjusted_polling_rate }}
- name: ADJUSTED_POLLING_RATE
value: "{{ .Values.metrics.adjusted_polling_rate }}"
Expand Down
28 changes: 26 additions & 2 deletions chart/templates/test_deployments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,19 @@ spec:
requests:
ephemeral-storage: "1Mi"
limits:
ephemeral-storage: "5Mi"
ephemeral-storage: "60Mi"
volumeMounts:
- mountPath: /cache
name: cache-volume-1
- mountPath: /cachez
name: cache-volume-3
volumes:
- name: cache-volume-1
emptyDir:
sizeLimit: 24Mi
- name: cache-volume-3
emptyDir:
sizeLimit: 24Mi

---

Expand All @@ -49,5 +61,17 @@ spec:
requests:
ephemeral-storage: "1Mi"
limits:
ephemeral-storage: "5Mi"
ephemeral-storage: "60Mi"
volumeMounts:
- mountPath: /cache
name: cache-volume-two
- mountPath: /cachez
name: cache-volume-four
volumes:
- name: cache-volume-two
emptyDir:
sizeLimit: 24Mi
- name: cache-volume-four
emptyDir:
sizeLimit: 24Mi
{{ end }}
2 changes: 2 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ image:
metrics:
# -- Percentage of ephemeral storage used by a container in a pod
ephemeral_storage_container_limit_percentage: true
# -- Percentage of ephemeral storage used by a container's volume in a pod
ephemeral_storage_container_volume_limit_percentage: true
# -- Current ephemeral byte usage of pod
ephemeral_storage_pod_usage: true
# -- Available ephemeral storage for a node
Expand Down
Loading

0 comments on commit 616c81c

Please sign in to comment.