cpu assignments for pods
We have limits set to >1 cpu but I believe our containers are currently limited to a single cpu without adding the following pod option:
apiVersion: v1 kind: Pod metadata: name: cpu-demo namespace: cpu-example spec: containers: - name: cpu-demo-ctr image: vish/stress resources: limits: cpu: "1" requests: cpu: "0.5" args: - -cpus - "2"
Also referenced in https://chrisdodds.net/adventures-in-tuning-unicorn-for-kubernetes/
The args section of the configuration file provides arguments for the container when it starts. The -cpus "2" argument tells the Container to attempt to use 2 CPUs.