update: mysql

main
ycz008 2023-08-18 15:31:20 +08:00
parent b03b2f48bd
commit 7188328616
1 changed files with 8 additions and 6 deletions

View File

@ -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