From ca70e67747d9bae3710d75d050b18ddb7201e7cc Mon Sep 17 00:00:00 2001 From: liaozan Date: Wed, 18 May 2022 13:05:03 +0800 Subject: [PATCH] Update k8s-deploy-template.yaml --- k8s-deploy-template.yaml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/k8s-deploy-template.yaml b/k8s-deploy-template.yaml index 0f04897..f32391f 100644 --- a/k8s-deploy-template.yaml +++ b/k8s-deploy-template.yaml @@ -6,15 +6,6 @@ metadata: labels: app: ${APP_NAME} spec: - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: alibabacloud.com/nodepool-id - operator: In - values: - - ${NODE_POOL_ID} replicas: ${REPLICAS} selector: matchLabels: @@ -24,6 +15,15 @@ spec: labels: app: ${APP_NAME} spec: + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: alibabacloud.com/nodepool-id + operator: In + values: + - ${NODE_POOL_ID} terminationGracePeriodSeconds: 30 containers: - name: ${APP_NAME} -- GitLab