proxysql

by KlickTipp

Helm chartv1.3.0App 3.0.8Verified publisher

ProxySQL Helm chart for Kubernetes

About this chart

proxysql

ProxySQL Helm chart for Kubernetes

Homepage: https://www.proxysql.com/

Maintainers

NameEmailUrl
Dysnix[email protected]

Source Code

Values

KeyTypeDefaultDescription
imageobject{"pullPolicy":"IfNotPresent","registry":"docker.io","repository":"proxysql/proxysql","tag":null}Container image configuration.
image.registrystring"docker.io"Set image.registry.
image.repositorystring"proxysql/proxysql"Container image repository.
image.tagstringnilContainer image tag.
image.pullPolicystring"IfNotPresent"Image pull policy.
imagePullSecretslist[]Image pull secrets.
nameOverridestring""Partially override generated resource names.
fullnameOverridestring""Fully override generated resource names.
serviceAccountobject{"create":true,"name":null}ServiceAccount configuration.
serviceAccount.createbooltrueSet serviceAccount.create.
serviceAccount.namestringnilSet serviceAccount.name.
priorityClassNamestring""Set priorityClassName.
podSecurityContextobject{"fsGroup":999,"runAsGroup":999,"runAsNonRoot":true,"runAsUser":999}Pod security context.
podSecurityContext.runAsNonRootbooltrueSet podSecurityContext.runAsNonRoot.
podSecurityContext.fsGroupint999Set podSecurityContext.fsGroup.
podSecurityContext.runAsUserint999Set podSecurityContext.runAsUser.
podSecurityContext.runAsGroupint999Set podSecurityContext.runAsGroup.
securityContextobject{}Container security context.
serviceobject{"adminPort":6032,"annotations":{},"proxyPort":6033,"type":"ClusterIP","webPort":6080}Service configuration.
service.typestring"ClusterIP"Type configuration value.
service.proxyPortint6033Set service.proxyPort.
service.adminPortint6032Set service.adminPort.
service.webPortint6080Set service.webPort.
service.annotationsobject{}Annotations map.
resourcesobject{}Container resource requests and limits.
nodeSelectorobject{}Node selector for pod scheduling.
tolerationslist[]Tolerations for pod scheduling.
affinityobject{}Affinity rules for pod scheduling.
podAntiAffinityobject{"enabled":false}Set podAntiAffinity.
podAntiAffinity.enabledboolfalseEnable this feature.
commonAnnotationsobject{}Configure commonAnnotations.
commonLabelsobject{}Configure commonLabels.
podAnnotationsobject{}Pod annotations.
podLabelsobject{}Pod labels.
podDisruptionBudgetobject{}Set podDisruptionBudget.
startupProbeobject{"enabled":false,"failureThreshold":10,"initialDelaySeconds":5,"periodSeconds":3,"successThreshold":1,"timeoutSeconds":1}Startup probe configuration.
startupProbe.enabledboolfalseEnable this feature.
startupProbe.initialDelaySecondsint5Configure startupProbe.initialDelaySeconds.
startupProbe.periodSecondsint3Configure startupProbe.periodSeconds.
startupProbe.timeoutSecondsint1Configure startupProbe.timeoutSeconds.
startupProbe.failureThresholdint10Set startupProbe.failureThreshold.
startupProbe.successThresholdint1Set startupProbe.successThreshold.
readinessProbeobject{"enabled":false,"failureThreshold":60,"initialDelaySeconds":0,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":5}Readiness probe configuration.
readinessProbe.enabledboolfalseEnable this feature.
readinessProbe.initialDelaySecondsint0Configure readinessProbe.initialDelaySeconds.
readinessProbe.periodSecondsint10Configure readinessProbe.periodSeconds.
readinessProbe.timeoutSecondsint5Configure readinessProbe.timeoutSeconds.
readinessProbe.failureThresholdint60Set readinessProbe.failureThreshold.
readinessProbe.successThresholdint1Set readinessProbe.successThreshold.
livenessProbeobject{"enabled":false,"failureThreshold":3,"initialDelaySeconds":5,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":5}Liveness probe configuration.
livenessProbe.enabledboolfalseEnable this feature.
livenessProbe.initialDelaySecondsint5Configure livenessProbe.initialDelaySeconds.
livenessProbe.periodSecondsint10Configure livenessProbe.periodSeconds.
livenessProbe.timeoutSecondsint5Configure livenessProbe.timeoutSeconds.
livenessProbe.failureThresholdint3Set livenessProbe.failureThreshold.
livenessProbe.successThresholdint1Set livenessProbe.successThreshold.
sslobject{"auto":true,"ca":"","ca_file":"ca.pem","cert":"","cert_file":"cert.pem","fromSecret":"","key":"","key_file":"key.pem","sslDir":"/etc/proxysql"}Set ssl.
ssl.autobooltrueSet ssl.auto.
ssl.castring""Set ssl.ca.
ssl.certstring""Set ssl.cert.
ssl.keystring""Set ssl.key.
ssl.sslDirstring"/etc/proxysql"Set ssl.sslDir.
ssl.ca_filestring"ca.pem"Set ssl.ca_file.
ssl.cert_filestring"cert.pem"Set ssl.cert_file.
ssl.key_filestring"key.pem"Set ssl.key_file.
ssl.fromSecretstring""Set ssl.fromSecret.
secretobject{"admin_password":"proxysql","admin_user":"proxysql-admin"}Component secret configuration map.
secret.admin_userstring"proxysql-admin"Set secret.admin_user.
secret.admin_passwordstring"proxysql"Set secret.admin_password.
admin_variablesobject{"debug":false}Configure admin_variables.
admin_variables.debugboolfalseSet admin_variables.debug.
mysql_variablesobject{"default_query_delay":0,"default_query_timeout":3600000,"max_connections":2048,"monitor_enabled":false,"threads":4}Configure mysql_variables.
mysql_variables.threadsint4Configure mysql_variables.threads.
mysql_variables.max_connectionsint2048Configure mysql_variables.max_connections.
mysql_variables.default_query_delayint0Set mysql_variables.default_query_delay.
mysql_variables.default_query_timeoutint3600000Set mysql_variables.default_query_timeout.
mysql_variables.monitor_enabledboolfalseSet mysql_variables.monitor_enabled.
mysql_usersstringnilConfigure mysql_users.
mysql_serversstringnilConfigure mysql_servers.
mysql_query_rulesstringnilConfigure mysql_query_rules.
use_default_proxysql_serversbooltrueConfigure use_default_proxysql_servers.
additional_proxysql_serversstringnilConfigure additional_proxysql_servers.
proxysql_clusterobject{"core":{"enabled":true,"exit_on_error":false,"podDisruptionBudget":{},"priorityClassName":"","replicas":3,"service":{"name":""},"statefullset":{"affinity":{},"minReadySeconds":0,"nodeSelector":{},"podAnnotations":{},"resources":{},"tolerations":[],"updateStrategy":{"type":"RollingUpdate"}}},"enabled":false,"healthcheck":{"diff_check_limit":10,"kill_if_healthcheck_failed":true,"livenessCommand":["/bin/sh","-c","/usr/local/bin/proxysql_cluster_healthcheck.sh liveness"],"psql_host":"127.0.0.1","psql_host_port":null,"psql_pass":null,"psql_user":null,"readinessCommand":["/bin/sh","-c","/usr/local/bin/proxysql_cluster_healthcheck.sh readiness"],"startupCommand":["/bin/sh","-c","/usr/local/bin/proxysql_cluster_healthcheck.sh started"],"verbose":false},"job":{"affinity":{},"backoffLimit":3,"enabled":true,"mysqlClientFlags":"--ssl=0","nodeSelector":{},"podAnnotations":{},"resources":{},"tolerations":[],"ttlSecondsAfterFinished":86400},"satellite":{"daemonset":{"affinity":{},"minReadySeconds":0,"nodeSelector":{},"podAnnotations":{},"resources":{},"tolerations":[],"updateStrategy":{"rollingUpdate":{"maxUnavailable":1},"type":"RollingUpdate"}},"deployment":{"minReadySeconds":0,"strategy":{"rollingUpdate":{"maxSurge":1,"maxUnavailable":0},"type":"RollingUpdate"}},"enabled":true,"exit_on_error":false,"kind":"DaemonSet","podDisruptionBudget":{},"priorityClassName":"","replicas":3,"service":{"name":""}},"secret":{"cluster_password":"proxysql","cluster_username":"proxysql-cluster"}}Set proxysql_cluster.
proxysql_cluster.enabledboolfalseEnable this feature.
proxysql_cluster.secretobject{"cluster_password":"proxysql","cluster_username":"proxysql-cluster"}Component secret configuration map.
proxysql_cluster.secret.cluster_usernamestring"proxysql-cluster"Set proxysql_cluster.secret.cluster_username.
proxysql_cluster.secret.cluster_passwordstring"proxysql"Set proxysql_cluster.secret.cluster_password.
proxysql_cluster.coreobject{"enabled":true,"exit_on_error":false,"podDisruptionBudget":{},"priorityClassName":"","replicas":3,"service":{"name":""},"statefullset":{"affinity":{},"minReadySeconds":0,"nodeSelector":{},"podAnnotations":{},"resources":{},"tolerations":[],"updateStrategy":{"type":"RollingUpdate"}}}Set proxysql_cluster.core.
proxysql_cluster.core.enabledbooltrueEnable this feature.
proxysql_cluster.core.replicasint3Configure proxysql_cluster.core.replicas.
proxysql_cluster.core.exit_on_errorboolfalseSet proxysql_cluster.core.exit_on_error.
proxysql_cluster.core.podDisruptionBudgetobject{}Set proxysql_cluster.core.podDisruptionBudget.
proxysql_cluster.core.priorityClassNamestring""Set proxysql_cluster.core.priorityClassName.
proxysql_cluster.core.statefullsetobject{"affinity":{},"minReadySeconds":0,"nodeSelector":{},"podAnnotations":{},"resources":{},"tolerations":[],"updateStrategy":{"type":"RollingUpdate"}}Set proxysql_cluster.core.statefullset.
proxysql_cluster.core.statefullset.minReadySecondsint0Set proxysql_cluster.core.statefullset.minReadySeconds.
proxysql_cluster.core.statefullset.nodeSelectorobject{}Node selector for pod scheduling.
proxysql_cluster.core.statefullset.tolerationslist[]Tolerations for pod scheduling.
proxysql_cluster.core.statefullset.affinityobject{}Affinity rules for pod scheduling.
proxysql_cluster.core.statefullset.podAnnotationsobject{}Pod annotations.
proxysql_cluster.core.statefullset.resourcesobject{}Container resource requests and limits.
proxysql_cluster.core.statefullset.updateStrategyobject{"type":"RollingUpdate"}StatefulSet update strategy.
proxysql_cluster.core.statefullset.updateStrategy.typestring"RollingUpdate"Set proxysql_cluster.core.statefullset.updateStrategy.type.
proxysql_cluster.core.serviceobject{"name":""}Service configuration.
proxysql_cluster.core.service.namestring""Set proxysql_cluster.core.service.name.
proxysql_cluster.satelliteobject{"daemonset":{"affinity":{},"minReadySeconds":0,"nodeSelector":{},"podAnnotations":{},"resources":{},"tolerations":[],"updateStrategy":{"rollingUpdate":{"maxUnavailable":1},"type":"RollingUpdate"}},"deployment":{"minReadySeconds":0,"strategy":{"rollingUpdate":{"maxSurge":1,"maxUnavailable":0},"type":"RollingUpdate"}},"enabled":true,"exit_on_error":false,"kind":"DaemonSet","podDisruptionBudget":{},"priorityClassName":"","replicas":3,"service":{"name":""}}Set proxysql_cluster.satellite.
proxysql_cluster.satellite.kindstring"DaemonSet"Set proxysql_cluster.satellite.kind.
proxysql_cluster.satellite.enabledbooltrueEnable this feature.
proxysql_cluster.satellite.replicasint3Configure proxysql_cluster.satellite.replicas.
proxysql_cluster.satellite.exit_on_errorboolfalseSet proxysql_cluster.satellite.exit_on_error.
proxysql_cluster.satellite.podDisruptionBudgetobject{}Set proxysql_cluster.satellite.podDisruptionBudget.
proxysql_cluster.satellite.priorityClassNamestring""Set proxysql_cluster.satellite.priorityClassName.
proxysql_cluster.satellite.daemonsetobject{"affinity":{},"minReadySeconds":0,"nodeSelector":{},"podAnnotations":{},"resources":{},"tolerations":[],"updateStrategy":{"rollingUpdate":{"maxUnavailable":1},"type":"RollingUpdate"}}Set proxysql_cluster.satellite.daemonset.
proxysql_cluster.satellite.daemonset.minReadySecondsint0Set proxysql_cluster.satellite.daemonset.minReadySeconds.
proxysql_cluster.satellite.daemonset.updateStrategyobject{"rollingUpdate":{"maxUnavailable":1},"type":"RollingUpdate"}DaemonSet update strategy.
proxysql_cluster.satellite.daemonset.updateStrategy.typestring"RollingUpdate"Set proxysql_cluster.satellite.daemonset.updateStrategy.type.
proxysql_cluster.satellite.daemonset.updateStrategy.rollingUpdate.maxUnavailableint1Update one pod at a time during upgrades.
proxysql_cluster.satellite.daemonset.nodeSelectorobject{}Node selector for pod scheduling.
proxysql_cluster.satellite.daemonset.tolerationslist[]Tolerations for pod scheduling.
proxysql_cluster.satellite.daemonset.affinityobject{}Affinity rules for pod scheduling.
proxysql_cluster.satellite.daemonset.podAnnotationsobject{}Pod annotations.
proxysql_cluster.satellite.daemonset.

Deploy proxysql with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has proxysql on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartproxysql is pinned at v1.3.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply