Skip to content

Commit

Permalink
Merge pull request #5 from synthesized-io/define-proper-pvc-plus-fixes
Browse files Browse the repository at this point in the history
Proper PVC mounts + minor tunes
  • Loading branch information
kurumar authored Oct 5, 2023
2 parents f4dbc12 + 0124b73 commit 48f61fd
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
23 changes: 23 additions & 0 deletions charts/sdk/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,32 @@ spec:
labels:
tag: synth
spec:
initContainers:
- name: pre-populate-pvc
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: IfNotPresent
command: ["sh", "-c", "cp -r /home/synthesized/* /mnt/synthesized/"]
volumeMounts:
- name: {{ .Values.synthesized.name }}-storage
mountPath: /mnt/synthesized
containers:
- name: synthesized
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: IfNotPresent
volumeMounts:
- name: {{ .Values.synthesized.name }}-storage
mountPath: /home/synthesized
envFrom:
- secretRef:
name: {{ .Values.synthesized.name }}-secret
resources:
requests:
memory: {{ .Values.resources.requests.memory }}
cpu: {{ .Values.resources.requests.cpu }}
limits:
memory: {{ .Values.resources.limits.memory }}
cpu: {{ .Values.resources.limits.cpu }}
volumes:
- name: {{ .Values.synthesized.name }}-storage
persistentVolumeClaim:
claimName: {{ .Values.synthesized.name }}-pvc
8 changes: 8 additions & 0 deletions charts/sdk/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,11 @@ service:
port: 8888
targetPort: 8888
nodePort: 30001

resources:
requests:
memory: "8Gi"
cpu: "4"
limits:
memory: "8Gi"
cpu: "4"

0 comments on commit 48f61fd

Please sign in to comment.