Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion charts/typesense-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.3.5
version: 0.3.6
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
Expand Down
23 changes: 23 additions & 0 deletions charts/typesense-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,29 @@ helm repo update
helm upgrade --install typesense-operator tyko/typesense-operator -n typesense-system --create-namespace
```

## 🏗️ High Availability

Deploy with multiple replicas and pod anti-affinity:

```yaml
# values.yaml
controllerManager:
replicas: 2
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: control-plane
operator: In
values: [controller-manager]
topologyKey: kubernetes.io/hostname
```

For more options, see [Kubernetes Pod Scheduling](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/).

```

<details>
<summary>Quick example for Open Telekom Cloud CCE</summary>

Expand Down
9 changes: 9 additions & 0 deletions charts/typesense-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,13 @@ spec:
securityContext: {{- toYaml .Values.controllerManager.podSecurityContext | nindent
8 }}
serviceAccountName: {{ include "typesense-operator.fullname" . }}-controller-manager
{{- with .Values.controllerManager.affinity }}
affinity: {{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.controllerManager.nodeSelector }}
nodeSelector: {{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.controllerManager.tolerations }}
tolerations: {{- toYaml . | nindent 8 }}
{{- end }}
terminationGracePeriodSeconds: 10
3 changes: 3 additions & 0 deletions charts/typesense-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ controllerManager:
podSecurityContext:
runAsNonRoot: true
replicas: 1
affinity: {}
nodeSelector: {}
tolerations: []
serviceAccount:
annotations: {}
imagePullSecrets: []
Expand Down