Commit ca70e677 authored by liaozan's avatar liaozan 🏀

Update k8s-deploy-template.yaml

parent d7da391d
......@@ -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}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment