set mysql replicas to 1 explicitly [ci skip]
This commit is contained in:
parent
1366472eec
commit
d38ae7ec81
2 changed files with 2 additions and 1 deletions
|
|
@ -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.
Loading…
Add table
Add a link
Reference in a new issue