Skip to content

Commit

Permalink
Add first implemetation of volumes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kasen committed Feb 13, 2024
1 parent 9f205c2 commit 2ff7055
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
19 changes: 19 additions & 0 deletions helm-charts/tarantool-cartridge/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,14 @@ spec:
volumeMounts:
- name: {{ $.Release.Name }}
mountPath: "{{ $.Values.TarantoolWorkDir }}"
# - name: share
# mountPath: /opt/share
{{- if .Volumes }}
{{- range $name, $volume := .Volumes }}
- name: "{{ $name }}"
mountPath: "{{ $volume.mountpoint }}"
{{- end }}
{{- end }}
resources:
requests:
cpu: "{{ .CPUallocation }}"
Expand Down Expand Up @@ -145,6 +153,17 @@ spec:
port: http
initialDelaySeconds: 15
periodSeconds: 10
# volumes:
# - name: share
# hostPath:
# path: /mnt/share
# type: Directory
{{- if .Volumes }}
volumes:
{{- range $name, $volume := .Volumes }}
- name: "{{ $name }}"{{ $volume.type | toYaml | nindent 10 }}
{{- end }}
{{- end }}
---
apiVersion: v1
kind: Service
Expand Down
7 changes: 7 additions & 0 deletions helm-charts/tarantool-cartridge/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ RoleConfig:
DiskSize: 1Gi
CPUallocation: 0.25
MemtxMemoryMB: 256
Volumes:
testVolume:
mountpoint: /foo
type:
hostPath:
path: /mnt
type: Directory
RolesToAssign:
- app.roles.storage

Expand Down

0 comments on commit 2ff7055

Please sign in to comment.