Skip to content

Commit

Permalink
feat: Expose pvc retention policy via helm (#6056)
Browse files Browse the repository at this point in the history
* feat: Expose pvc retention policy via helm

* fix: typo fix for mlserver
  • Loading branch information
abhimanyu003 authored Nov 21, 2024
1 parent 4c3740d commit aee8a08
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ spec:
podSpec: {{ toJson .Values.mlserver.podSpec }}
replicas: {{ .Values.mlserver.replicas }}
serverConfig: mlserver
statefulSetPersistentVolumeClaimRetentionPolicy:
whenDeleted: {{ .Values.mlserver.statefulSetPersistentVolumeClaimRetentionPolicy.whenDeleted
}}
whenScaled: {{ .Values.mlserver.statefulSetPersistentVolumeClaimRetentionPolicy.whenScaled
}}
---
apiVersion: mlops.seldon.io/v1alpha1
kind: Server
Expand All @@ -25,3 +30,8 @@ spec:
podSpec: {{ toJson .Values.triton.podSpec }}
replicas: {{ .Values.triton.replicas }}
serverConfig: triton
statefulSetPersistentVolumeClaimRetentionPolicy:
whenDeleted: {{ .Values.triton.statefulSetPersistentVolumeClaimRetentionPolicy.whenDeleted
}}
whenScaled: {{ .Values.triton.statefulSetPersistentVolumeClaimRetentionPolicy.whenScaled
}}
6 changes: 6 additions & 0 deletions k8s/helm-charts/seldon-core-v2-servers/values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
mlserver:
replicas: 1
statefulSetPersistentVolumeClaimRetentionPolicy:
whenDeleted: Retain
whenScaled: Retain

triton:
replicas: 1
statefulSetPersistentVolumeClaimRetentionPolicy:
whenDeleted: Retain
whenScaled: Retain
3 changes: 3 additions & 0 deletions k8s/kustomize/helm-servers/patch_mlserver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ metadata:
spec:
replicas: HACK_REMOVE_ME{{ .Values.mlserver.replicas }}
podSpec: HACK_REMOVE_ME{{ toJson .Values.mlserver.podSpec }}
statefulSetPersistentVolumeClaimRetentionPolicy:
whenDeleted: HACK_REMOVE_ME{{ .Values.mlserver.statefulSetPersistentVolumeClaimRetentionPolicy.whenDeleted }}
whenScaled: HACK_REMOVE_ME{{ .Values.mlserver.statefulSetPersistentVolumeClaimRetentionPolicy.whenScaled }}
3 changes: 3 additions & 0 deletions k8s/kustomize/helm-servers/patch_triton.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ metadata:
spec:
replicas: HACK_REMOVE_ME{{ .Values.triton.replicas }}
podSpec: HACK_REMOVE_ME{{ toJson .Values.triton.podSpec }}
statefulSetPersistentVolumeClaimRetentionPolicy:
whenDeleted: HACK_REMOVE_ME{{ .Values.triton.statefulSetPersistentVolumeClaimRetentionPolicy.whenDeleted }}
whenScaled: HACK_REMOVE_ME{{ .Values.triton.statefulSetPersistentVolumeClaimRetentionPolicy.whenScaled }}
6 changes: 6 additions & 0 deletions k8s/yaml/servers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ spec:
podSpec: null
replicas: 1
serverConfig: mlserver
statefulSetPersistentVolumeClaimRetentionPolicy:
whenDeleted: Retain
whenScaled: Retain
---
# Source: seldon-core-v2-servers/templates/seldon-v2-servers.yaml
apiVersion: mlops.seldon.io/v1alpha1
Expand All @@ -26,3 +29,6 @@ spec:
podSpec: null
replicas: 1
serverConfig: triton
statefulSetPersistentVolumeClaimRetentionPolicy:
whenDeleted: Retain
whenScaled: Retain

0 comments on commit aee8a08

Please sign in to comment.