Running an application with three services on my local minikube while was installed on a server with 16 cpus and 64 GB of memory , one replicas of which is 2, I only set resources.limits for each service, as shown below
resources:
limits:
cpu: "2"
memory: "209715200"
All service resource restrictions are the same.
However, some service pending appears.
The pending Pod describe partial output is as follows
Limits:
cpu: 2
memory: 209715200
Requests:
cpu: 2
memory: 209715200
...
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning FailedScheduling <unknown> default-scheduler 0/1 nodes are available: 1 Insufficient cpu.
Warning FailedScheduling <unknown> default-scheduler 0/1 nodes are available: 1 Insufficient cpu.
The result of
kubectl get podis as follows
kubectl get pod
NAME READY STATUS RESTARTS AGE
test1-777f54bcdb-pvfn5 1/1 Running 0 4m49s
test2-75ccb875b-lj9xl 1/1 Running 0 4m48s
test2-75ccb875b-s7xht 1/1 Running 0 4m48s
test3-797f6b795f-z9qv5 0/1 Pending 0 4m48s
The result of
kubectl top nodeis as follows
kubectl top node
NAME CPU(cores) CPU% MEMORY(bytes) MEMORY%
test 1057m 13% 31675Mi 50%
minikube version
# minikube version
minikube version: v1.9.2
commit: 93af9c1e43cab9618e301bc9fa720c63d5efa393
kubectl version
Client Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.0", GitCommit:"2bd9643cee5b3b3a5ecbd3af49d09018f0773c77", GitTreeState:"clean", BuildDate:"2019-09-18T14:36:53Z", GoVersion:"go1.12.9", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.0", GitCommit:"2bd9643cee5b3b3a5ecbd3af49d09018f0773c77", GitTreeState:"clean", BuildDate:"2019-09-18T14:27:17Z", GoVersion:"go1.12.9", Compiler:"gc", Platform:"linux/amd64"}
I'm confused that my server configuration should be able to run this application, but it pend due to insufficient CPU
Any comments would be greatly appreciated, thank you in advance!