Skip to content

✨(helm) add PostHog reverse proxy ingresses - #223

Open
kernicPanel wants to merge 1 commit into
mainfrom
feat/helm-posthog-ingress
Open

kernicPanel wants to merge 1 commit into
mainfrom
feat/helm-posthog-ingress

Conversation

@kernicPanel

Copy link
Copy Markdown
Collaborator

Purpose

Add the PostHog reverse proxy ingresses to the helm chart, copied from the
drive chart.

@@ -0,0 +1,86 @@
{{- if .Values.posthog.ingress.enabled -}}
{{- $fullName := include "template.fullname" . -}}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{{- $fullName := include "template.fullname" . -}}
{{- $fullName := include "template.posthog.fullname" . -}}

{{- end }}
kind: Ingress
metadata:
name: {{ $fullName }}-posthog

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
name: {{ $fullName }}-posthog
name: {{ $fullName }}

{{- if .Values.posthog.ingress.tls.enabled }}
tls:
{{- if .Values.posthog.ingress.host }}
- secretName: {{ $fullName }}-posthog-tls

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- secretName: {{ $fullName }}-posthog-tls
- secretName: {{ $fullName }}-tls

@@ -0,0 +1,66 @@
{{- if .Values.posthog.ingressAssets.enabled -}}
{{- $fullName := include "template.fullname" . -}}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{{- $fullName := include "template.fullname" . -}}
{{- $fullName := include "template.posthog.fullname" . -}}

{{- end }}
kind: Ingress
metadata:
name: {{ $fullName }}-posthog-assets

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
name: {{ $fullName }}-posthog-assets
name: {{ $fullName }}-assets

port:
number: {{ $.Values.posthog.assetsService.port }}
{{- else }}
serviceName: {{ include "template.posthog.fullname" $ }}-assets-proxy

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
serviceName: {{ include "template.posthog.fullname" $ }}-assets-proxy
serviceName: {{ $fullName }}-assets-proxy

backend:
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
service:
name: {{ include "template.posthog.fullname" . }}-proxy

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
name: {{ include "template.posthog.fullname" . }}-proxy
name: {{ $fullName }}-proxy

port:
number: {{ .Values.posthog.service.port }}
{{- else }}
serviceName: {{ include "template.posthog.fullname" . }}-proxy

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
serviceName: {{ include "template.posthog.fullname" . }}-proxy
serviceName: {{{ $fullName }}-proxy

backend:
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
service:
name: {{ include "template.posthog.fullname" . }}-proxy

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
name: {{ include "template.posthog.fullname" . }}-proxy
name: {{ $fullName }}-proxy

port:
number: {{ $.Values.posthog.service.port }}
{{- else }}
serviceName: {{ include "template.posthog.fullname" . }}-proxy

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
serviceName: {{ include "template.posthog.fullname" . }}-proxy
serviceName: {{ $fullName }}-proxy

@kernicPanel
kernicPanel requested a review from lunika September 17, 2026 06:52
The frontend sends PostHog events through a first-party domain to
avoid ad blockers. The production values already configure
posthog.ingress and posthog.ingressAssets but the chart had no
matching templates, so nothing was deployed.

Templates and values are copied from the drive chart to keep both
charts easy to compare.
@kernicPanel
kernicPanel force-pushed the feat/helm-posthog-ingress branch from 44ae04f to aade777 Compare September 17, 2026 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants