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 - name: mysql-data-prod
hostPath: hostPath:
path: /data/prod/mysql path: /data/prod/mysql
affinity:
nodeAffinity: nodeAffinity:
required: requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms: nodeSelectorTerms:
- key: kubernetes.io/hostname - matchExpressions:
operator: In - key: "kubernetes.io/hostname"
values: operator: In
- bfs-k8snode-10-2-2-6.hetzner.base.beaconfireinc.com values:
- bfs-k8snode-10-2-2-6.hetzner.base.beaconfireinc.com
--- ---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service