set mysql replicas to 1 explicitly [ci skip]

This commit is contained in:
Viktor Barzin 2025-10-07 11:34:41 +00:00
parent 1366472eec
commit d38ae7ec81
No known key found for this signature in database
GPG key ID: 4056458DBDBF8863
2 changed files with 2 additions and 1 deletions

View file

@ -101,6 +101,7 @@ resource "kubernetes_deployment" "mysql" {
}
}
spec {
replicas = 1
selector {
match_labels = {
app = "mysql"
@ -201,7 +202,7 @@ resource "kubernetes_cron_job_v1" "mysql-backup" {
# run kubectl port-forward to pod e.g.:
# > kb port-forward mysql-647cfd4969-46rmw --address 0.0.0.0 3307:3306
# run mysql import (and specify non-localhost address to avoid using unix socket):
# > mysql -u root -p --host 10.0.10.104 --port 3307 < /mnt/nfs/2024_01_06_13_54.sql
# > mysql -u root -p --host 10.0.10.10 --port 3307 < /mnt/nfs/2024_01_06_13_54.sql
volume_mount {
name = "mysql-backup"
mount_path = "/backup"

Binary file not shown.