Skip to content

Commit

Permalink
Add cpu resource requests so hpas work.
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellw committed Dec 1, 2023
1 parent 44ca7bb commit db59899
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions apps/base/posthog/posthog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -216,13 +216,19 @@ spec:
_pgbouncer:
hpa:
enabled: true
resources:
requests:
cpu: 100m
exporter:
enabled: true

events:
hpa:
# -- Whether to create a HorizontalPodAutoscaler for the events stack.
enabled: true
resources:
requests:
cpu: 1000m

decide:
# -- Whether to install the PostHog decide stack or not.
Expand All @@ -233,6 +239,9 @@ spec:
hpa:
# -- Whether to create a HorizontalPodAutoscaler for the worker stack.
enabled: true
resources:
requests:
cpu: 100m

plugins:
# -- Whether to install the PostHog plugin-server stack or not.
Expand All @@ -243,6 +252,9 @@ spec:
hpa:
# -- Whether to create a HorizontalPodAutoscaler for the plugin stack.
enabled: true
resources:
requests:
cpu: 1000m

web:
hpa:
Expand All @@ -257,6 +269,9 @@ spec:
# -- Set google oauth 2 whitelisted domains users can log in from.
- name: SOCIAL_AUTH_GOOGLE_OAUTH2_WHITELISTED_DOMAINS
value: "compose.ai"
resources:
requests:
cpu: 1000m

# TODO May need to use this instead of web oauth settings because says it requires a posthog ee license
saml:
Expand Down

0 comments on commit db59899

Please sign in to comment.