Skip to content
Merged
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 Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: typesense
description: >-
Deploy Typesense search engine on Kubernetes with Raft-based HA clustering, Prometheus metrics, and Gateway API support. This chart is not officially maintained by or affiliated with the Typesense project.
type: application
version: 1.1.2
version: 1.1.3
appVersion: "30.1"
icon: https://typesense.org/typesense-logo.svg
home: https://github.com/hackthebox/typesense-helm
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# typesense

![Version: 1.1.2](https://img.shields.io/badge/Version-1.1.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 30.1](https://img.shields.io/badge/AppVersion-30.1-informational?style=flat-square)
![Version: 1.1.3](https://img.shields.io/badge/Version-1.1.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 30.1](https://img.shields.io/badge/AppVersion-30.1-informational?style=flat-square)

[![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/typesense)](https://artifacthub.io/packages/search?repo=typesense)

Expand Down
4 changes: 2 additions & 2 deletions templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
- port: {{ .Values.service.port }}
targetPort: http
protocol: TCP
appProtocol: http2
appProtocol: http
name: http
selector:
{{- include "typesense.selectorLabels" . | nindent 4 }}
Expand All @@ -33,7 +33,7 @@ spec:
- port: {{ .Values.service.port }}
targetPort: http
protocol: TCP
appProtocol: http2
appProtocol: tcp
name: http
- port: 8107
targetPort: tcp-peering
Expand Down
6 changes: 3 additions & 3 deletions tests/service_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ tests:
port: 8108
targetPort: http
protocol: TCP
appProtocol: http2
appProtocol: tcp
name: http
- contains:
path: .spec.ports
Expand Down Expand Up @@ -82,7 +82,7 @@ tests:
port: 8108
targetPort: http
protocol: TCP
appProtocol: http2
appProtocol: http
name: http
- it: should render the service when gateway is enabled with correct spec
set:
Expand All @@ -106,7 +106,7 @@ tests:
port: 8108
targetPort: http
protocol: TCP
appProtocol: http2
appProtocol: http
name: http
- it: should be possible to override the service port for both services
set:
Expand Down
2 changes: 1 addition & 1 deletion values.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# typesense

![Version: 1.1.2](https://img.shields.io/badge/Version-1.1.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 30.1](https://img.shields.io/badge/AppVersion-30.1-informational?style=flat-square)
![Version: 1.1.3](https://img.shields.io/badge/Version-1.1.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 30.1](https://img.shields.io/badge/AppVersion-30.1-informational?style=flat-square)

[![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/typesense)](https://artifacthub.io/packages/search?repo=typesense)

Expand Down
139 changes: 122 additions & 17 deletions values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"affinity": {
"description": "Affinity rules for pod scheduling. When unset and replicaCount \u003e 1, a soft pod anti-affinity on kubernetes.io/hostname is automatically applied. Set to a non-empty affinity object to override.",
"description": "Affinity rules for pod scheduling. When unset or empty and replicaCount \u003e 1, a soft pod anti-affinity on kubernetes.io/hostname is automatically applied. Set to a non-empty affinity object to override this default behavior.",
"required": [],
"title": "affinity",
"type": "object"
Expand Down Expand Up @@ -180,13 +180,12 @@
"livenessProbe": {
"properties": {
"failureThreshold": {
"default": "2",
"default": "6",
"description": "Number of failed liveness checks before restarting the container",
"required": [],
"title": "failureThreshold"
},
"httpGet": {
"description": "HTTP GET path and port to check Typesense health for liveness",
"properties": {
"path": {
"default": "/health",
Expand All @@ -203,16 +202,46 @@
"path",
"port"
],
"title": "httpGet"
"title": "httpGet",
"type": "object"
},
"periodSeconds": {
"default": "10",
"default": "20",
"description": "Period (in seconds) to perform the liveness check",
"required": [],
"title": "periodSeconds"
},
"tcpSocket": {
"properties": {
"port": {
"default": "http",
"title": "port",
"type": "string"
}
},
"required": [
"port"
],
"title": "tcpSocket",
"type": "object"
},
"timeoutSeconds": {
"default": 3,
"title": "timeoutSeconds",
"type": "integer"
},
"type": {
"default": "tcpSocket",
"description": "Probe type: 'tcpSocket' or 'httpGet'. Default is tcpSocket to check only that the process is alive and listening. Avoid httpGet /health for liveness: Typesense returns 503 when the write queue exceeds --healthy-write-lag (default 500), which occurs normally during Raft catch-up after a restart, causing a liveness-triggered restart loop that prevents the cluster from ever recovering.",
"required": [],
"title": "type"
}
},
"required": [],
"required": [
"httpGet",
"tcpSocket",
"timeoutSeconds"
],
"title": "livenessProbe",
"type": "object"
},
Expand Down Expand Up @@ -380,13 +409,12 @@
"readinessProbe": {
"properties": {
"failureThreshold": {
"default": "3",
"default": "12",
"description": "Number of failed readiness checks before marking the pod as unready",
"required": [],
"title": "failureThreshold"
},
"httpGet": {
"description": "HTTP GET path and port to check Typesense readiness",
"properties": {
"path": {
"default": "/health",
Expand All @@ -403,16 +431,46 @@
"path",
"port"
],
"title": "httpGet"
"title": "httpGet",
"type": "object"
},
"periodSeconds": {
"default": "5",
"default": "10",
"description": "Period (in seconds) to perform the readiness check",
"required": [],
"title": "periodSeconds"
},
"tcpSocket": {
"properties": {
"port": {
"default": "http",
"title": "port",
"type": "string"
}
},
"required": [
"port"
],
"title": "tcpSocket",
"type": "object"
},
"timeoutSeconds": {
"default": 3,
"title": "timeoutSeconds",
"type": "integer"
},
"type": {
"default": "httpGet",
"description": "Probe type: 'httpGet' or 'tcpSocket'",
"required": [],
"title": "type"
}
},
"required": [],
"required": [
"httpGet",
"tcpSocket",
"timeoutSeconds"
],
"title": "readinessProbe",
"type": "object"
},
Expand All @@ -424,8 +482,26 @@
"type": "integer"
},
"resources": {
"description": "Resource requests and limits for the Typesense container",
"required": [],
"description": "Resource requests and limits for the Typesense container. Typesense requires at least 2 vCPUs to operate correctly. No CPU limit is set by default to avoid throttling during indexing and Raft catch-up.",
"properties": {
"requests": {
"properties": {
"cpu": {
"default": "2000m",
"title": "cpu",
"type": "string"
}
},
"required": [
"cpu"
],
"title": "requests",
"type": "object"
}
},
"required": [
"requests"
],
"title": "resources"
},
"secrets": {
Expand Down Expand Up @@ -568,13 +644,12 @@
"startupProbe": {
"properties": {
"failureThreshold": {
"default": "10",
"default": "60",
"description": "Number of failed startup checks before marking the container as unhealthy",
"required": [],
"title": "failureThreshold"
},
"httpGet": {
"description": "HTTP GET path and port to check Typesense health for startup",
"properties": {
"path": {
"default": "/health",
Expand All @@ -591,16 +666,46 @@
"path",
"port"
],
"title": "httpGet"
"title": "httpGet",
"type": "object"
},
"periodSeconds": {
"default": "10",
"description": "Period (in seconds) to perform the startup check",
"required": [],
"title": "periodSeconds"
},
"tcpSocket": {
"properties": {
"port": {
"default": "http",
"title": "port",
"type": "string"
}
},
"required": [
"port"
],
"title": "tcpSocket",
"type": "object"
},
"timeoutSeconds": {
"default": 3,
"title": "timeoutSeconds",
"type": "integer"
},
"type": {
"default": "httpGet",
"description": "Probe type: 'httpGet' or 'tcpSocket'",
"required": [],
"title": "type"
}
},
"required": [],
"required": [
"httpGet",
"tcpSocket",
"timeoutSeconds"
],
"title": "startupProbe",
"type": "object"
},
Expand Down
Loading