Skip to content

Commit

Permalink
feat(caraml-store): Add minReadySeconds & strategy support for caraml…
Browse files Browse the repository at this point in the history
…-store/serving chart (#367)
  • Loading branch information
romanwozniak authored Oct 31, 2023
1 parent accf539 commit 84643bc
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 2 deletions.
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
5 changes: 4 additions & 1 deletion charts/caraml-store/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# caraml-store

![Version: 0.1.15](https://img.shields.io/badge/Version-0.1.15-informational?style=flat-square) ![AppVersion: 0.1.3](https://img.shields.io/badge/AppVersion-0.1.3-informational?style=flat-square)
![Version: 0.1.16](https://img.shields.io/badge/Version-0.1.16-informational?style=flat-square) ![AppVersion: 0.1.3](https://img.shields.io/badge/AppVersion-0.1.3-informational?style=flat-square)

CaraML store registry: Feature registry for CaraML store.

Expand Down Expand Up @@ -85,10 +85,12 @@ 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 | `{}` | |
| serving.podAnnotations | object | `{}` | |
| serving.podDisruptionBudget | object | `{}` | This value is used to configure a Kubernetes PodDisruptionBudget for Serving deployment |
| serving.podLabels | object | `{}` | |
| serving.prometheus.monitor.enabled | bool | `false` | Create a ServiceMonitor resource to expose Prometheus metrics |
| serving.readinessProbe.enabled | bool | `true` | Flag to enable the probe |
Expand All @@ -104,6 +106,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
2 changes: 2 additions & 0 deletions charts/caraml-store/ci/ci-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
environmentConfigs:
- {}
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
19 changes: 19 additions & 0 deletions charts/caraml-store/templates/serving/pdb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{{- if index .Values "serving" "enabled" }}
{{- $fullname := include "caraml-store.serving.fullname" . }}
{{- if .Values.serving.podDisruptionBudget }}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: {{ include "caraml-store.serving.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "caraml-store.serving.labels" . | nindent 4 }}
spec:
selector:
matchLabels:
{{- include "caraml-store.serving.selectorLabels" . | nindent 6 }}
{{- with .Values.serving.podDisruptionBudget }}
{{- toYaml . | nindent 2 }}
{{- end }}
{{- end }}
{{- end }}
10 changes: 10 additions & 0 deletions charts/caraml-store/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,18 @@ 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: {}

# serving.podDisruptionBudget -- This value is used to configure a Kubernetes PodDisruptionBudget for Serving deployment
podDisruptionBudget: {}

service:
# serving.service.type -- Kubernetes service type
type: ClusterIP
Expand Down

0 comments on commit 84643bc

Please sign in to comment.