Skip to content

Commit

Permalink
Ephemeral volume for worker /tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
ramanan-ravi committed Oct 15, 2024
1 parent c286b89 commit d3a59da
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: deepfence-console
description: A Helm chart for Kubernetes
type: application
version: 2.4.0
version: 2.4.1
appVersion: 2.4.0
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ spec:
# port: http
resources:
{{- toYaml .Values.worker.resources | nindent 12 }}
{{- if .Values.worker.ephemeralVolume.create }}
volumeMounts:
- mountPath: /tmp
name: worker-tmp-volume
{{- end }}
{{- with .Values.worker.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand All @@ -99,6 +104,21 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.worker.ephemeralVolume.create }}
volumes:
- name: worker-tmp-volume
ephemeral:
volumeClaimTemplate:
metadata:
labels:
{{- include "deepfence-console.labels" . | nindent 16 }}
spec:
accessModes: [ "ReadWriteOnce" ]
storageClassName: {{ default .Values.global.storageClass .Values.worker.ephemeralVolume.storageClass }}
resources:
requests:
storage: {{ .Values.worker.ephemeralVolume.volumeSize }}
{{- end }}
---
apiVersion: v1
kind: Service
Expand Down
9 changes: 8 additions & 1 deletion deployment-scripts/helm-charts/deepfence-console/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ global:
# this image tag is used everywhere for console services
# to override set tag at service level
imageTag: 2.4.0
storageClass: "standard"
storageClass: ""
# used in service name generation
# <service>.<namespace>.svc.<cluster_domain>
cluster_domain: "cluster.local"
Expand Down Expand Up @@ -408,6 +408,13 @@ worker:
tolerations: []
affinity: {}
podLabels: {}
ephemeralVolume:
# Create ephemeral volume and mount it at /tmp
create: false
# Storage class
# AWS: gp3, GCP: standard
storageClass: ""
volumeSize: 200G

ingester:
replicaCount: 1
Expand Down
12 changes: 11 additions & 1 deletion deployment-scripts/helm-charts/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,16 @@ entries:
- deepfence-agent-1.0.0.tgz
version: 1.0.0
deepfence-console:
- apiVersion: v2
appVersion: 2.4.0
created: "2024-10-15T22:15:18.185303+05:30"
description: A Helm chart for Kubernetes
digest: e9428315f126ffbd961dbe59ebef4f5b4d389e86142ce532903ceb21e9c31112
name: deepfence-console
type: application
urls:
- deepfence-console-2.4.1.tgz
version: 2.4.1
- apiVersion: v2
appVersion: 2.4.0
created: "2024-10-07T20:53:51.55053+05:30"
Expand Down Expand Up @@ -823,4 +833,4 @@ entries:
urls:
- deepfence-router-1.0.0.tgz
version: 1.0.0
generated: "2024-10-10T14:42:06.186533+05:30"
generated: "2024-10-15T22:15:18.183859+05:30"

0 comments on commit d3a59da

Please sign in to comment.