Skip to content

Commit

Permalink
[ProxySQL] update commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Rainer 'rei' Schuth committed Feb 23, 2024
1 parent 9c276d7 commit 00ddfd2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 17 deletions.
6 changes: 3 additions & 3 deletions dysnix/proxysql/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ spec:
lifecycle:
preStop:
exec:
command: ["/bin/sh", "-c", "/usr/local/bin/wait_queries_to_finish.sh > /proc/1/fd/1"]
command: ["/bin/sh", "-c", "/usr/local/bin/wait_queries_to_finish.sh"]
ports:
- name: proxy
containerPort: {{ .Values.service.proxyPort }}
Expand All @@ -93,7 +93,7 @@ spec:
{{- if .Values.readinessProbe.enabled }}
readinessProbe:
exec:
command: {{ .Values.proxysql_cluster.healthcheck.command }}
command: {{ .Values.proxysql_cluster.healthcheck.command | toYaml | nindent 16 }}
initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
Expand All @@ -103,7 +103,7 @@ spec:
{{- if .Values.livenessProbe.enabled }}
livenessProbe:
exec:
command: {{ .Values.proxysql_cluster.healthcheck.command }}
command: {{ .Values.proxysql_cluster.healthcheck.command | toYaml | nindent 16 }}
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.livenessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}
Expand Down
6 changes: 3 additions & 3 deletions dysnix/proxysql/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ spec:
lifecycle:
preStop:
exec:
command: ["/bin/sh", "-c", "/usr/local/bin/wait_queries_to_finish.sh > /proc/1/fd/1"]
command: ["/bin/sh", "-c", "/usr/local/bin/wait_queries_to_finish.sh"]
ports:
- name: proxy
containerPort: {{ .Values.service.proxyPort }}
Expand All @@ -94,7 +94,7 @@ spec:
{{- if .Values.readinessProbe.enabled }}
readinessProbe:
exec:
command: {{ .Values.proxysql_cluster.healthcheck.command }}
command: {{ .Values.proxysql_cluster.healthcheck.command | toYaml | nindent 16 }}
initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
Expand All @@ -104,7 +104,7 @@ spec:
{{- if .Values.livenessProbe.enabled }}
livenessProbe:
exec:
command: {{ .Values.proxysql_cluster.healthcheck.command }}
command: {{ .Values.proxysql_cluster.healthcheck.command | toYaml | nindent 16 }}
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.livenessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}
Expand Down
6 changes: 3 additions & 3 deletions dysnix/proxysql/templates/statefullset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ spec:
lifecycle:
preStop:
exec:
command: ["/bin/sh", "-c", "/usr/local/bin/wait_queries_to_finish.sh > /proc/1/fd/1"]
command: ["/bin/sh", "-c", "/usr/local/bin/wait_queries_to_finish.sh"]
ports:
- name: proxy
containerPort: {{ .Values.service.proxyPort }}
Expand All @@ -98,7 +98,7 @@ spec:
{{- if .Values.readinessProbe.enabled }}
readinessProbe:
exec:
command: {{ .Values.proxysql_cluster.healthcheck.command }}
command: {{ .Values.proxysql_cluster.healthcheck.command | toYaml | nindent 16 }}
initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
Expand All @@ -108,7 +108,7 @@ spec:
{{- if .Values.livenessProbe.enabled }}
livenessProbe:
exec:
command: {{ .Values.proxysql_cluster.healthcheck.command }}
command: {{ .Values.proxysql_cluster.healthcheck.command | toYaml | nindent 16 }}
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.livenessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}
Expand Down
9 changes: 1 addition & 8 deletions dysnix/proxysql/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -345,12 +345,6 @@ proxysql_cluster:
# until the version/checksum is not 0.
job:

image:
registry: docker.io
repository: mysql
tag: "8"
pullPolicy: IfNotPresent

enabled: true

# Retry 3 times until failed
Expand Down Expand Up @@ -383,8 +377,7 @@ proxysql_cluster:
kill_if_healthcheck_failed: true # Kill proxysql daemon if the healthcheck fails the test
verbose: false

command:
- /usr/local/bin/proxysql_cluster_healthcheck.sh
command: ["/bin/sh", "-c", "/usr/local/bin/proxysql_cluster_healthcheck.sh"]

# Enable debugging container along the proxysql instance
# It may be usefull to access the proxysql admin interface locally to debug issues
Expand Down

0 comments on commit 00ddfd2

Please sign in to comment.