-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/improvements and bugfixes (#14)
* Added Pod Disruption Budgets Configuration * fixed PodDisruptionBudget api version * fixed podDisruptionBudget README * set default value * add refactor Descriptions * added readinessProbe * update appVersion * added gatewaydConfig file * set example of gatewayd_plugins * added gatewaydConfig to ReadMe * set default gatewaydConfig to false * Move the content configuration from values into files * update deployment * add install plugin options * fix volumeMounts when both of gatewaydConfig and gatewaydPluginsConfig enabled
- Loading branch information
1 parent
772d5fa
commit 6984db1
Showing
9 changed files
with
187 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
# GatewayD Global Configuration | ||
loggers: | ||
default: | ||
output: ["console"] # "stdout", "stderr", "syslog", "rsyslog" and "file" | ||
level: "debug" # panic, fatal, error, warn, info (default), debug, trace | ||
noColor: False | ||
timeFormat: "unix" # unixms, unixmicro and unixnano | ||
consoleTimeFormat: "RFC3339" # Go time format string | ||
# If the output contains "file", the following fields are used: | ||
fileName: "gatewayd.log" | ||
maxSize: 500 # MB | ||
# If maxBackups and maxAge are both 0, no old log files will be deleted. | ||
maxBackups: 5 | ||
maxAge: 30 # days | ||
compress: True | ||
localTime: False | ||
# Rsyslog config | ||
rsyslogNetwork: "tcp" | ||
rsyslogAddress: "localhost:514" | ||
syslogPriority: "info" # emerg, alert, crit, err, warning, notice, debug | ||
|
||
metrics: | ||
default: | ||
enabled: True | ||
address: 0.0.0.0:9090 | ||
path: /metrics | ||
readHeaderTimeout: 10s # duration, prevents Slowloris attacks | ||
timeout: 10s # duration | ||
certFile: "" # Certificate file in PEM format | ||
keyFile: "" # Private key file in PEM format | ||
|
||
clients: | ||
default: | ||
network: tcp | ||
address: psql-postgresql.default.svc.cluster.local:5432 | ||
tcpKeepAlive: False | ||
tcpKeepAlivePeriod: 30s # duration | ||
receiveChunkSize: 8192 | ||
receiveDeadline: 0s # duration, 0ms/0s means no deadline | ||
receiveTimeout: 0s # duration, 0ms/0s means no timeout | ||
sendDeadline: 0s # duration, 0ms/0s means no deadline | ||
dialTimeout: 60s # duration | ||
# Retry configuration | ||
retries: 3 # 0 means no retry and fail immediately on the first attempt | ||
backoff: 1s # duration | ||
backoffMultiplier: 2.0 # 0 means no backoff | ||
disableBackoffCaps: false | ||
|
||
pools: | ||
default: | ||
size: 10 | ||
|
||
proxies: | ||
default: | ||
healthCheckPeriod: 60s # duration | ||
|
||
servers: | ||
default: | ||
network: tcp | ||
address: 0.0.0.0:15432 | ||
enableTicker: False | ||
tickInterval: 5s # duration | ||
enableTLS: False | ||
certFile: "" | ||
keyFile: "" | ||
handshakeTimeout: 5s # duration | ||
|
||
api: | ||
enabled: True | ||
httpAddress: 0.0.0.0:18080 | ||
grpcNetwork: tcp | ||
grpcAddress: 0.0.0.0:19090 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
compatibilityPolicy: "strict" | ||
enableMetricsMerger: True | ||
metricsMergerPeriod: 5s | ||
healthCheckPeriod: 5s | ||
reloadOnCrash: True | ||
timeout: 30s | ||
|
||
plugins: | ||
- name: gatewayd-plugin-cache | ||
enabled: True | ||
url: github.com/gatewayd-io/gatewayd-plugin-cache@latest | ||
localPath: /usr/bin/gatewayd-plugin-cache | ||
args: ["--log-level", "info"] | ||
env: | ||
- MAGIC_COOKIE_KEY=GATEWAYD_PLUGIN | ||
- MAGIC_COOKIE_VALUE=5712b87aa5d7e9f9e9ab643e6603181c5b796015cb1c09d6f5ada882bf2a1872 | ||
- REDIS_URL=redis://redis-master.default.svc.cluster.local:6379/0 | ||
- EXPIRY=1h | ||
- DEFAULT_DB_NAME=postgres | ||
- METRICS_ENABLED=True | ||
- METRICS_UNIX_DOMAIN_SOCKET=/tmp/gatewayd-plugin-cache.sock | ||
- METRICS_PATH=/metrics | ||
- PERIODIC_INVALIDATOR_ENABLED=True | ||
- PERIODIC_INVALIDATOR_INTERVAL=1m | ||
- PERIODIC_INVALIDATOR_START_DELAY=1m | ||
- API_ADDRESS=localhost:18080 | ||
- EXIT_ON_STARTUP_ERROR=False | ||
- SENTRY_DSN=https://70eb1abcd32e41acbdfc17bc3407a543@o4504550475038720.ingest.sentry.io/4505342961123328 | ||
- CACHE_CHANNEL_BUFFER_SIZE=100 | ||
checksum: b153242dfb81dcd63b4444118252be5917b8a1b0f0f775c474946224d2a297eb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{{- if .Values.gatewaydConfig.enabled }} | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ .Release.Name }}-config | ||
data: | ||
gatewayd.yaml: |- | ||
{{ .Files.Get "files/gatewayd.yaml" | indent 4 }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{{- if .Values.podDisruptionBudget }} | ||
--- | ||
apiVersion: policy/v1 | ||
kind: PodDisruptionBudget | ||
metadata: | ||
name: {{ include "gatewayd.fullname" . }} | ||
labels: | ||
{{- include "gatewayd.labels" . | nindent 4 }} | ||
spec: | ||
{{- if .Values.podDisruptionBudget.minAvailable }} | ||
minAvailable: {{ .Values.podDisruptionBudget.minAvailable }} | ||
{{- end }} | ||
{{- if .Values.podDisruptionBudget.maxUnavailable }} | ||
maxUnavailable: {{ .Values.podDisruptionBudget.maxUnavailable }} | ||
{{- end }} | ||
selector: | ||
matchLabels: | ||
{{- include "gatewayd.selectorLabels" . | nindent 6 }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters