From 795be41ce6240f25f8cb6bf185913ab6dc61ac4a Mon Sep 17 00:00:00 2001 From: ycz008 Date: Mon, 6 Nov 2023 11:40:03 +0800 Subject: [PATCH] update mysql --- tcs-upgrade/mysql/mysql.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tcs-upgrade/mysql/mysql.yaml b/tcs-upgrade/mysql/mysql.yaml index 9a287ec..46f8eda 100644 --- a/tcs-upgrade/mysql/mysql.yaml +++ b/tcs-upgrade/mysql/mysql.yaml @@ -48,6 +48,15 @@ spec: - name: tcs-mysql hostPath: path: /data/tcs/mysql + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: "kubernetes.io/hostname" + operator: In + values: + - bfs-k8snode-10-2-1-7.hetzner.base.beaconfireinc.com --- apiVersion: v1 kind: Service