Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: volume permission in kubernetes setup #1747

Merged
merged 17 commits into from
Oct 3, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 1 addition & 14 deletions kubernetes/Helm/templates/torchserve.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,7 @@ spec:
volumes:
- name: persistent-storage
persistentVolumeClaim:
claimName: model-store-claim
initContainers:
- name: volume-ownership
image: alpine:3
command:
- chown
- root:{{ .Values.securityContext.groupId }}
- {{ .Values.torchserve.pvd_mount }}
volumeMounts:
- name: persistent-storage
mountPath: {{ .Values.torchserve.pvd_mount }}
claimName: {{ .Values.persistentVolume.name }}
containers:
- name: torchserve
image: {{ .Values.torchserve_image }}
Expand All @@ -73,6 +63,3 @@ spec:
cpu: {{ .Values.torchserve.n_cpu }}
memory: {{ .Values.torchserve.memory_limit }}
nvidia.com/gpu: {{ .Values.torchserve.n_gpu }}
requests:
cpu: {{ .Values.torchserve.n_cpu }}
memory: {{ .Values.torchserve.memory_request }}
11 changes: 5 additions & 6 deletions kubernetes/Helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,12 @@ torchserve:
inference_port: 8080
metrics_port: 8082
pvd_mount: /home/model-server/shared/
n_gpu: 1
n_cpu: 1
memory_limit: 4Gi
memory_request: 1Gi
n_gpu: 4
n_cpu: 16
memory_limit: 32Gi

deployment:
replicas: 1

persitant_volume:
size: 1Gi
persistentVolume:
name: efs-claim