Skip to content

Commit

Permalink
fix(charts): manifest-repo-export-service pod now stores manifest rep…
Browse files Browse the repository at this point in the history
…o in an emptyDir volume (#2061)

Altered the mount point of the emptyDir volume for the
manifeset-repo-export-service pod.
It now mounts to the home folder so that the service can create the repo
from scratch and be the owner.
Altered the size from 10Gi to 30Gi.
The relevant documentation was added to the chart.

Ref: SRX-F26M7C
  • Loading branch information
diogo-nogueira-freiheit authored Oct 25, 2024
1 parent 3aeb3db commit d748338
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion charts/kuberpult/templates/manifest-repo-export-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,12 @@ spec:
- name: KUBERPULT_RELEASE_VERSIONS_LIMIT
value: "{{ .Values.git.releaseVersionsLimit }}"
volumeMounts:
- name: repository
# The repository volume, an emptyDir, is mounted to the kp directory.
# The manifest-repo-export-service creates the repository inside this directory in /kp/repository.
# We mount the volume to the parent because kubernetes volumes belong to root.
# This way the container can create /kp/repository itself without any permission issues.
mountPath: /kp/
- name: ssh
mountPath: /etc/ssh
{{- if .Values.datadogProfiling.enabled }}
Expand All @@ -252,7 +258,7 @@ spec:
# EmptyDir has the nice advantage, that it triggers a restart of the pod and creates a new volume when the current one is full
# Because of an issue in gitlib2, this actually happens.
emptyDir:
sizeLimit: 10Gi
sizeLimit: 30Gi
- name: ssh
secret:
secretName: kuberpult-ssh
Expand Down

0 comments on commit d748338

Please sign in to comment.