Skip to content

Commit

Permalink
Add config for capture ingress (#768)
Browse files Browse the repository at this point in the history
- Adds enable/disable
- Adds target service config
- Claims `/i/` as the new ingestion pipeline entry point
  • Loading branch information
Ellie Huxtable authored Sep 11, 2023
1 parent 0f0a240 commit 801c37b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/posthog/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,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.
version: 30.27.4
version: 30.27.5

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
Expand Down
10 changes: 10 additions & 0 deletions charts/posthog/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,16 @@ spec:
path: "/capture"
backend: *INGESTION

{{- if .Values.capture.ingress.enabled}}
- pathType: Prefix
path: "/i/"
backend:
service:
name: {{ .Values.capture.ingress.service.name }}
port:
number: {{ .Values.capture.ingress.service.port }}
{{- end }}

{{- if .Values.decide.ingressEnabled}}
- pathType: Prefix
path: "/decide/"
Expand Down
8 changes: 8 additions & 0 deletions charts/posthog/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,14 @@ recordings:
podSecurityContext:
enabled: false

# The majority of the capture config + chart resides in posthog/charts
capture:
ingress:
enabled: false
service:
name: capture
port: 3000

decide:
# -- Whether to install the PostHog decide stack or not.
enabled: false
Expand Down

0 comments on commit 801c37b

Please sign in to comment.