Commit a5c9967f by wangtingwei

调整worker cpu limit

1 parent 12a16359
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: kpl--manager
namespace: kpl
spec:
replicas: 1
template:
metadata:
labels:
app: kpl--manager
spec:
imagePullSecrets:
- name: "harbor-secret"
serviceAccountName: kpl-serviceaccount
nodeSelector:
kpl: "true"
internal_service_node: "true"
containers:
- name: kpl--manager
image: DOCKER_REGISTRY/kpl-manager-v1:latest
imagePullPolicy: Always
volumeMounts:
- name: config
mountPath: /adl/bin/conf/app.yaml
subPath: app.yaml
command: ["kpl--manager"]
ports:
- containerPort: 8080
name: port-8080
resources:
requests:
cpu: "300m"
memory: "512Mi"
limits:
cpu: "1000m"
memory: "1024Mi"
volumes:
- name: config
configMap:
name: cfg-kpl-backend
apiVersion: v1
kind: Service
metadata:
labels:
app: kpl--manager
name: kpl--manager
namespace: kpl
spec:
type: NodePort
selector:
app: kpl--manager
ports:
- port: 8080
name: port-8080
targetPort: 8080
nodePort: 30305
...@@ -48,8 +48,8 @@ spec: ...@@ -48,8 +48,8 @@ spec:
cpu: "200m" cpu: "200m"
memory: "2048Mi" memory: "2048Mi"
limits: limits:
cpu: "1000m" cpu: "4000m"
memory: "3000Mi" memory: "4000Mi"
volumes: volumes:
- name: kpl-volume - name: kpl-volume
persistentVolumeClaim: persistentVolumeClaim:
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!