I have a cluster running Kubernetes v1.6.7.
The VMs are :
Distributor ID: Debian
Description: Debian GNU/Linux 8.7 (jessie)
Release: 8.7
Codename: jessie
Kernel :
3.16.0-4-amd64
We have set cpu limits in deployments, however pods comsume cpu over this limit if they need to. Is there something am I missing ? Like a parameter in kubelet to enable this limit ? I haven't found anything about this problem.
For example, if I create the following deployment :
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: stress
namespace: default
labels:
k8s-app: stress
spec:
replicas: 1
selector:
matchLabels:
k8s-app: stress
template:
metadata:
labels:
k8s-app: stress
spec:
containers:
- name: stress
image: progrium/stress
imagePullPolicy: Always
args: ["--cpu", "1"]
resources:
limits:
cpu: "500m"
memory: "1Gi"
requests:
cpu: "100m"
memory: "512Mi"
On the node, this makes a CPU 100% used whereas it should be 50%.
Thanks for your help.