From 7188328616f940edb4bc588c367b87939f62ab0e Mon Sep 17 00:00:00 2001 From: ycz008 Date: Fri, 18 Aug 2023 15:31:20 +0800 Subject: [PATCH] update: mysql --- prod-upgrade/mysql/mysql.yaml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/prod-upgrade/mysql/mysql.yaml b/prod-upgrade/mysql/mysql.yaml index 9d57e03..ef11e0c 100644 --- a/prod-upgrade/mysql/mysql.yaml +++ b/prod-upgrade/mysql/mysql.yaml @@ -34,13 +34,15 @@ spec: - name: mysql-data-prod hostPath: path: /data/prod/mysql + affinity: nodeAffinity: - required: - nodeSelectorTerms: - - key: kubernetes.io/hostname - operator: In - values: - - bfs-k8snode-10-2-2-6.hetzner.base.beaconfireinc.com + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: "kubernetes.io/hostname" + operator: In + values: + - bfs-k8snode-10-2-2-6.hetzner.base.beaconfireinc.com --- apiVersion: v1 kind: Service