Commit 8b44fb02 authored by liaozan's avatar liaozan 🏀

Update k8s-deploy-template.yaml

parent e6d9511c
......@@ -6,6 +6,15 @@ metadata:
labels:
app: ${APP_NAME}
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: alibabacloud.com/nodepool-id
operator: In
values:
- ${NODE_ID}
replicas: ${REPLICAS}
selector:
matchLabels:
......@@ -22,7 +31,7 @@ spec:
imagePullPolicy: Always
resources:
limits:
memory: ${memoryLimit}
memory: ${MEMORY_LIMIT}
ports:
- containerPort: ${PORT}
protocol: TCP
......
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