Skip to content

Commit

Permalink
Add minReadySeconds & strategy support for caraml-store/serving chart
Browse files Browse the repository at this point in the history
  • Loading branch information
romanwozniak committed Oct 30, 2023
1 parent accf539 commit 07a39db
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/caraml-store/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ maintainers:
- email: [email protected]
name: caraml-dev
name: caraml-store
version: 0.1.15
version: 0.1.16
2 changes: 2 additions & 0 deletions charts/caraml-store/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ CaraML store registry: Feature registry for CaraML store.
| serving.image.tag | string | `""` | |
| serving.imagePullSecrets | list | `[]` | |
| serving.javaOpts | string | `nil` | |
| serving.minReadySeconds | int | `0` | The minimum number of seconds for which a newly created Pod should be ready without any of its containers crashing, for it to be considered available. |
| serving.name | string | `"serving"` | |
| serving.nameOverride | string | `""` | |
| serving.nodeSelector | object | `{}` | |
Expand All @@ -104,6 +105,7 @@ CaraML store registry: Feature registry for CaraML store.
| serving.service.grpc.port | int | `6566` | Service port for GRPC requests |
| serving.service.grpc.targetPort | int | `6566` | Container port serving GRPC requests |
| serving.service.type | string | `"ClusterIP"` | Kubernetes service type |
| serving.strategy | object | `{}` | Strategy used to replace old Pods by new ones. .spec.strategy.type can be "Recreate" or "RollingUpdate". "RollingUpdate" is the default value. |
| serving.tolerations | list | `[]` | |

----------------------------------------------
Expand Down
7 changes: 7 additions & 0 deletions charts/caraml-store/templates/serving/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ metadata:
{{- include "caraml-store.serving.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.serving.replicaCount }}
{{- if .Values.serving.strategy }}
strategy:
{{ toYaml .Values.serving.strategy | indent 4 }}
{{- end }}
{{- if .Values.serving.minReadySeconds }}
minReadySeconds: {{ .Values.serving.minReadySeconds }}
{{- end }}
selector:
matchLabels:
{{- include "caraml-store.serving.selectorLabels" . | nindent 6 }}
Expand Down
6 changes: 6 additions & 0 deletions charts/caraml-store/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,12 @@ serving:

secrets: []

# serving.strategy -- Strategy used to replace old Pods by new ones. .spec.strategy.type can be "Recreate" or "RollingUpdate". "RollingUpdate" is the default value.
strategy: {}

# serving.minReadySeconds -- The minimum number of seconds for which a newly created Pod should be ready without any of its containers crashing, for it to be considered available.
minReadySeconds: 0

podLabels: {}
podAnnotations: {}
service:
Expand Down

0 comments on commit 07a39db

Please sign in to comment.