Skip to content

Commit

Permalink
Merge branch 'main' into common_nodeSelector_and_tolerations
Browse files Browse the repository at this point in the history
  • Loading branch information
klamas1 authored Nov 30, 2022
2 parents a8e17e7 + c0d3c6e commit d4f1d70
Show file tree
Hide file tree
Showing 54 changed files with 30,196 additions and 374 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codespell.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ jobs:
with:
check_filenames: true
check_hidden: true
skip: .git,./ci/k6/lib/*,./charts/posthog/crds/*,./charts/posthog/tests/clickhouse-operator/__snapshot__/*,./charts/posthog/templates/clickhouse-operator/*,./charts/posthog/grafana-dashboards/http-by-application-endpoint.json,./yarn.lock
skip: .git,./ci/k6/lib/*,./charts/posthog/crds/*,./charts/posthog/tests/clickhouse-operator/__snapshot__/*,./charts/posthog/templates/clickhouse-operator/*,./charts/posthog/grafana-dashboards/http-by-application-endpoint.json,./charts/posthog/grafana-dashboards/instance-overview.json,./yarn.lock
2 changes: 1 addition & 1 deletion .github/workflows/pr-deploy-cleanup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
return member
- name: Checkout
uses: actions/checkout@v2 # no way of getting the correct ref from the issue event, hence the below
uses: actions/checkout@v3 # no way of getting the correct ref from the issue event, hence the below
if: ${{ steps.permissions.outputs.result == 'true' && contains(github.event.pull_request.labels.*.name, 'deploy') }}

- name: Declare variables that we can share across steps
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
return member
- name: Checkout
uses: actions/checkout@v2 # no way of getting the correct ref from the issue event, hence the below
uses: actions/checkout@v3 # no way of getting the correct ref from the issue event, hence the below
if: ${{ steps.permissions.outputs.result == 'true' && contains(github.event.pull_request.labels.*.name, 'deploy') }}

- name: Declare variables that we can share across steps
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-digitalocean-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ jobs:
${{ steps.vars.outputs.k8s_cluster_name }} \
--version "$DO_K8S_VERSION" \
--tag="provisioned_by:github_action" \
--size s-2vcpu-4gb \
--count 2 \
--size s-4vcpu-8gb \
--count 3 \
--wait
- name: Install PostHog using the Helm chart
Expand Down
19 changes: 16 additions & 3 deletions charts/posthog/ALL_VALUES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# PostHog Helm chart configuration

![Version: 29.0.2](https://img.shields.io/badge/Version-29.0.2-informational?style=flat-square) ![AppVersion: 1.41.2](https://img.shields.io/badge/AppVersion-1.41.2-informational?style=flat-square)
![Version: 30.0.0](https://img.shields.io/badge/Version-30.0.0-informational?style=flat-square) ![AppVersion: 1.42.0](https://img.shields.io/badge/AppVersion-1.42.0-informational?style=flat-square)

## Configuration

Expand All @@ -16,8 +16,9 @@ The following table lists the configurable parameters of the PostHog chart and t
| image.repository | string | `"posthog/posthog"` | PostHog image repository to use. |
| image.sha | string | `nil` | PostHog image SHA to use (example: `sha256:20af35fca6756d689d6705911a49dd6f2f6631e001ad43377b605cfc7c133eb4`). |
| image.tag | string | `nil` | PostHog image tag to use (example: `release-1.35.0`). |
| image.default | string | `":release-1.41.2"` | PostHog default image. Do not overwrite, use `image.sha` or `image.tag` instead. |
| image.default | string | `":release-1.42.0"` | PostHog default image. Do not overwrite, use `image.sha` or `image.tag` instead. |
| image.pullPolicy | string | `"IfNotPresent"` | PostHog image pull policy. |
| image.pullSecrets | list | `[]` | |
| sentryDSN | string | `nil` | Sentry endpoint to send errors to. |
| posthogSecretKey.existingSecret | string | `nil` | Specify that the key should be pulled from an existing secret key. By default the chart will generate a secret and create a Kubernetes Secret containing it. |
| posthogSecretKey.existingSecretKey | string | `"posthog-secret"` | Specify the key within the secret from which SECRET_KEY should be taken. |
Expand Down Expand Up @@ -48,7 +49,7 @@ The following table lists the configurable parameters of the PostHog chart and t
| web.env[0] | object | `{"name":"SOCIAL_AUTH_GOOGLE_OAUTH2_KEY","value":null}` | Set google oauth 2 key. Requires posthog ee license. |
| web.env[1] | object | `{"name":"SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET","value":null}` | Set google oauth 2 secret. Requires posthog ee license. |
| web.env[2] | object | `{"name":"SOCIAL_AUTH_GOOGLE_OAUTH2_WHITELISTED_DOMAINS","value":"posthog.com"}` | Set google oauth 2 whitelisted domains users can log in from. |
| web.internalMetrics.capture | bool | `true` | Whether to capture information on operation of posthog into posthog, exposed in /instance/status page |
| web.internalMetrics.capture | bool | `false` | Deprecated: Whether to capture information on operation of posthog into posthog, exposed in /instance/status page |
| web.nodeSelector | object | `{}` | Node labels for web stack deployment. |
| web.tolerations | list | `[]` | Toleration labels for web stack deployment. |
| web.affinity | object | `{}` | Affinity settings for web stack deployment. |
Expand Down Expand Up @@ -299,6 +300,7 @@ The following table lists the configurable parameters of the PostHog chart and t
| pgbouncer.exporter.image.repository | string | `"prometheuscommunity/pgbouncer-exporter"` | |
| pgbouncer.exporter.image.tag | string | `"v0.4.1"` | |
| pgbouncer.exporter.image.pullPolicy | string | `"IfNotPresent"` | |
| pgbouncer.exporter.image.pullSecrets | list | `[]` | |
| pgbouncer.exporter.resources | object | `{}` | Resource limits for pgbouncer-exporter. |
| pgbouncer.exporter.securityContext | object | `{"enabled":false}` | Container security context for pgbouncer-exporter. |
| pgbouncer.replicacount | int | `1` | Count of pgbouncer pods to run. This setting is ignored if `pgbouncer.hpa.enabled` is set to `true`. |
Expand Down Expand Up @@ -327,6 +329,7 @@ The following table lists the configurable parameters of the PostHog chart and t
| pgbouncer.image.repository | string | `"bitnami/pgbouncer"` | |
| pgbouncer.image.tag | string | `"1.17.0"` | |
| pgbouncer.image.pullPolicy | string | `"IfNotPresent"` | |
| pgbouncer.image.pullSecrets | list | `[]` | |
| pgbouncer.service.type | string | `"ClusterIP"` | |
| pgbouncer.service.annotations | object | `{}` | |
| pgbouncer.podAnnotations | object | `{}` | |
Expand Down Expand Up @@ -377,6 +380,7 @@ The following table lists the configurable parameters of the PostHog chart and t
| clickhouse.image.repository | string | `"clickhouse/clickhouse-server"` | ClickHouse image repository. |
| clickhouse.image.tag | string | `"22.3.13.80"` | ClickHouse image tag. Note: PostHog does not support all versions of ClickHouse. Please override the default only if you know what you are doing. |
| clickhouse.image.pullPolicy | string | `"IfNotPresent"` | Image pull policy |
| clickhouse.image.pullSecrets | list | `[]` | |
| clickhouse.tolerations | list | `[]` | Toleration labels for clickhouse pod assignment |
| clickhouse.affinity | object | `{}` | Affinity settings for clickhouse pod |
| clickhouse.resources | object | `{}` | Clickhouse resource requests/limits. See more at http://kubernetes.io/docs/user-guide/compute-resources/ |
Expand All @@ -398,15 +402,18 @@ The following table lists the configurable parameters of the PostHog chart and t
| clickhouse.settings | object | `{}` | |
| clickhouse.defaultSettings.default_database | string | `"posthog"` | |
| clickhouse.defaultSettings.format_schema_path | string | `"/etc/clickhouse-server/config.d/"` | |
| clickhouse.additionalUsersConfig | string | `nil` | |
| clickhouse.podAnnotations | string | `nil` | |
| clickhouse.podDistribution | string | `nil` | |
| clickhouse.client.image.repository | string | `"clickhouse/clickhouse-server"` | ClickHouse image repository. |
| clickhouse.client.image.tag | string | `"22.3.13.80"` | ClickHouse image tag. Note: PostHog does not support all versions of ClickHouse. Please override the default only if you know what you are doing. |
| clickhouse.client.image.pullPolicy | string | `"IfNotPresent"` | Image pull policy |
| clickhouse.client.image.pullSecrets | list | `[]` | |
| clickhouse.backup.enabled | bool | `false` | |
| clickhouse.backup.image.repository | string | `"altinity/clickhouse-backup"` | Clickhouse backup image repository. |
| clickhouse.backup.image.tag | string | `"1.5.0"` | ClickHouse backup image tag. |
| clickhouse.backup.image.pullPolicy | string | `"IfNotPresent"` | Image pull policy |
| clickhouse.backup.image.pullSecrets | list | `[]` | |
| clickhouse.backup.backup_user | string | `"backup"` | |
| clickhouse.backup.backup_password | string | `"backup_password"` | |
| clickhouse.backup.existingSecret | string | `""` | Use an existing secret name in the deployed namespace for the backup password |
Expand Down Expand Up @@ -465,6 +472,7 @@ The following table lists the configurable parameters of the PostHog chart and t
| loki.enabled | bool | `false` | Whether to install Loki or not. With the default configuration you will get no replication, so as to easily support small deploys that e.g. do not have multiple nodes in the cluster. For production setups that are distributed across e.g. multiple AWS AZs it's recommended that you increase the replica counts for `read:` and `write:`. These stateful sets by default have an anti-affinity so you'll need at least as many nodes as replicas in a set. |
| loki.loki.auth_enabled | bool | `false` | |
| loki.loki.commonConfig.replication_factor | int | `1` | |
| loki.loki.podAnnotations | object | `{}` | |
| loki.read.replicas | int | `1` | |
| loki.write.replicas | int | `1` | |
| loki.gateway.enabled | bool | `false` | |
Expand All @@ -478,11 +486,14 @@ The following table lists the configurable parameters of the PostHog chart and t
| loki.monitoring.rules.enabled | bool | `false` | |
| loki.monitoring.selfMonitoring.enabled | bool | `false` | |
| loki.monitoring.selfMonitoring.grafanaAgent.installOperator | bool | `false` | |
| loki.monitoring.selfMonitoring.lokiCanary.enabled | bool | `false` | |
| loki.monitoring.serviceMonitor.enabled | bool | `false` | |
| loki.test.enabled | bool | `false` | |
| eventrouter.enabled | bool | `false` | Whether to install eventrouter. |
| eventrouter.image.repository | string | `"gcr.io/heptio-images/eventrouter"` | |
| eventrouter.image.tag | string | `"v0.3"` | |
| eventrouter.image.pullPolicy | string | `"IfNotPresent"` | |
| eventrouter.image.pullSecrets | list | `[]` | |
| eventrouter.resources | object | `{}` | Resource limits for eventrouter. |
| promtail.enabled | bool | `false` | Whether to install Promtail or not. |
| promtail.config.clients[0].url | string | `"http://posthog-loki-write:3100/loki/api/v1/push"` | |
Expand Down Expand Up @@ -528,6 +539,8 @@ The following table lists the configurable parameters of the PostHog chart and t
| installCustomStorageClass | bool | `false` | |
| busybox.image | string | `"busybox:1.34"` | Specify the image to use for e.g. init containers |
| busybox.pullPolicy | string | `"IfNotPresent"` | Image pull policy |
| busybox.pullSecrets | list | `[]` | |
| clusterDomain | string | `"cluster.local"` | Kubernetes cluster domain name |

Dependent charts can also have values overwritten. For more info see our [docs](https://posthog.com/docs/self-host/deploy/configuration).

8 changes: 4 additions & 4 deletions charts/posthog/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ dependencies:
version: 6.40.0
- name: loki
repository: https://grafana.github.io/helm-charts
version: 3.0.6
version: 3.3.4
- name: promtail
repository: https://grafana.github.io/helm-charts
version: 6.5.0
version: 6.6.2
- name: prometheus
repository: https://prometheus-community.github.io/helm-charts
version: 15.10.4
Expand All @@ -44,5 +44,5 @@ dependencies:
- name: prometheus-statsd-exporter
repository: https://prometheus-community.github.io/helm-charts
version: 0.3.1
digest: sha256:24ac0f0b88831b4b14f0b00ba876b988b7711aef1dac8136004df608f590b915
generated: "2022-10-10T12:18:28.089356+02:00"
digest: sha256:2cfffe0d2d6df0b3c43983b18ecd517ba71ff31bab91901037b51d64dee74eb0
generated: "2022-11-15T10:43:43.316599+01:00"
8 changes: 4 additions & 4 deletions charts/posthog/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ 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: 29.0.2
version: 30.0.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
appVersion: 1.41.2
appVersion: 1.42.0

dependencies:
- name: cert-manager
Expand Down Expand Up @@ -60,12 +60,12 @@ dependencies:
condition: grafana.enabled

- name: loki
version: 3.0.6
version: 3.3.4
repository: https://grafana.github.io/helm-charts
condition: loki.enabled

- name: promtail
version: 6.5.0
version: 6.6.2
repository: https://grafana.github.io/helm-charts
condition: promtail.enabled

Expand Down
Binary file removed charts/posthog/charts/loki-3.0.6.tgz
Binary file not shown.
Binary file added charts/posthog/charts/loki-3.3.4.tgz
Binary file not shown.
Binary file removed charts/posthog/charts/promtail-6.5.0.tgz
Binary file not shown.
Binary file added charts/posthog/charts/promtail-6.6.2.tgz
Binary file not shown.
Loading

0 comments on commit d4f1d70

Please sign in to comment.