Skip to content

Commit

Permalink
proxy: Create regional redis config args (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
khanova authored Apr 16, 2024
1 parent 4b2f371 commit 0775f48
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/neon-proxy/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: neon-proxy
description: Neon Proxy
type: application
version: 1.7.20
version: 1.7.21
appVersion: "0.1.0"
kubeVersion: "^1.18.x-x"
home: https://neon.tech
Expand Down
8 changes: 7 additions & 1 deletion charts/neon-proxy/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# neon-proxy

![Version: 1.7.20](https://img.shields.io/badge/Version-1.7.20-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) [![Lint and Test Charts](https://github.com/neondatabase/helm-charts/actions/workflows/lint-test.yaml/badge.svg)](https://github.com/neondatabase/helm-charts/actions/workflows/lint-test.yaml)
![Version: 1.7.21](https://img.shields.io/badge/Version-1.7.21-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) [![Lint and Test Charts](https://github.com/neondatabase/helm-charts/actions/workflows/lint-test.yaml/badge.svg)](https://github.com/neondatabase/helm-charts/actions/workflows/lint-test.yaml)

Neon Proxy

Expand Down Expand Up @@ -66,10 +66,12 @@ Kubernetes: `^1.18.x-x`
| settings.authBackend | string | `"link"` | auth method used (console|link|postgres) |
| settings.authEndpoint | string | `""` | auth endpoint, e.g. "http://console.neon/authenticate_proxy_request/" |
| settings.awsAccessKeyId | string | `""` | (string) AWS Access Key ID |
| settings.awsRegion | string | `""` | (string) Aws region to retrieve credentials |
| settings.awsSecretAccessKey | string | `""` | (string) AWS Secret Access Key |
| settings.controlplane_token | string | `""` | (string) JWT token to pass to control plane management API |
| settings.disableDynamicRateLimiter | bool | `true` | (bool) Disable dynamic rate limiter |
| settings.domain | string | `""` | domain used in TLS cert for client postgres connections |
| settings.endpointCacheConfig | string | `""` | (string) Config for cache for all valid endpoints |
| settings.endpointRpsLimits[0] | string | `"300@1s"` | |
| settings.endpointRpsLimits[1] | string | `"250@10m"` | |
| settings.extraDomains | list | `[]` | domains used in extra TLS certs for client postgres connections |
Expand All @@ -87,7 +89,11 @@ Kubernetes: `^1.18.x-x`
| settings.parquetUploadRemoteStorage | string | `""` | (string) Storage location to upload the parquet files to. |
| settings.parquetUploadRowGroupSize | string | `"8192"` | (string) How many rows to include in a row group |
| settings.parquetUploadSize | string | `"100000000"` | (string) How large the total parquet file should be in bytes |
| settings.redisClusterName | string | `"regional-control-plane-redis"` | (string) Redis cluster name, used in aws elasticache |
| settings.redisHost | string | `""` | (string) Redis host for streaming connections (might be different from the notifications host) |
| settings.redisNotifications | string | `""` | (url) Configures redis client |
| settings.redisPort | string | `""` | (string) Redis port for streaming connections |
| settings.redisUserId | string | `"neon"` | (string) Redis user_id, used in aws elasticache |
| settings.region | string | `""` | (string) Region this proxy service is deployed into |
| settings.rustLog | string | `"INFO"` | Proxy log level |
| settings.sentryEnvironment | string | `"development"` | "development" or "production". It will be visible in sentry in order to filter issues |
Expand Down
19 changes: 19 additions & 0 deletions charts/neon-proxy/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,25 @@ spec:
{{- with .Values.settings.metricBackupCollectionChunkSize }}
- --metric-backup-collection-chunk-size={{ . }}
{{ end }}
{{- with .Values.settings.endpointCacheConfig }}
- --endpoint-cache-config={{ . }}
{{ end }}
{{- with .Values.settings.redisHost }}
- --redis-host={{ . }}
{{ end }}
{{- with .Values.settings.redisPort }}
- --redis-port={{ . }}
{{ end }}
{{- with .Values.settings.redisClusterName }}
- --redis-cluster-name={{ . }}
{{ end }}
{{- with .Values.settings.redisUserId }}
- --redis-user-id={{ . }}
{{ end }}
{{- with .Values.settings.awsRegion }}
- --aws-region={{ . }}
{{ end }}


{{- if .Values.settings }}
env:
Expand Down
12 changes: 12 additions & 0 deletions charts/neon-proxy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,18 @@ settings:
metricBackupCollectionInterval: "10m"
# settings.metricBackupCollectionChunkSize -- (string) How large each chunk of the metric backup files should be in bytes
metricBackupCollectionChunkSize: "4194304"
# settings.endpointCacheConfig -- (string) Config for cache for all valid endpoints
endpointCacheConfig: ""
# settings.redisHost -- (string) Redis host for streaming connections (might be different from the notifications host)
redisHost: ""
# settings.redisPort -- (string) Redis port for streaming connections
redisPort: ""
# settings.redisClusterName -- (string) Redis cluster name, used in aws elasticache
redisClusterName: "regional-control-plane-redis"
# settings.redisUserId -- (string) Redis user_id, used in aws elasticache
redisUserId: "neon"
# settings.awsRegion -- (string) Aws region to retrieve credentials
awsRegion: ""

serviceAccount:
# serviceAccount.create - Specifies whether a service account should be created
Expand Down

0 comments on commit 0775f48

Please sign in to comment.