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