Commit 8b44fb02 authored by liaozan's avatar liaozan 🏀

Update k8s-deploy-template.yaml

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