add amd64机器亲和性

This commit is contained in:
zhanghao 2023-06-16 15:36:48 +08:00
parent 25c0f1e30a
commit 28252facf6
4 changed files with 36 additions and 0 deletions

View File

@ -62,6 +62,15 @@ spec:
labels:
k8s-app: kibana-logging
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: beta.kubernetes.io/arch
operator: In
values:
- "amd64"
containers:
- env:
- name: ELASTICSEARCH_HOSTS

View File

@ -14,6 +14,15 @@ spec:
labels:
app: minio
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: beta.kubernetes.io/arch
operator: In
values:
- "amd64"
terminationGracePeriodSeconds: 20
containers:
- name: minio

View File

@ -14,6 +14,15 @@ spec:
labels:
app: minio-mc
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: beta.kubernetes.io/arch
operator: In
values:
- "amd64"
containers:
- command:
- /bin/bash

View File

@ -14,6 +14,15 @@ spec:
labels:
app: minio
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: beta.kubernetes.io/arch
operator: In
values:
- "amd64"
terminationGracePeriodSeconds: 20
containers:
- name: minio