Differences between revisions 9 and 10
Revision 9 as of 2019-09-17 02:05:27
Size: 654
Editor: PieterSmit
Comment: shorter
Revision 10 as of 2019-10-07 22:08:11
Size: 879
Editor: PieterSmit
Comment:
Deletions are marked like this. Additions are marked like this.
Line 15: Line 15:
== Patch a deployment to add cpu reservation ==
 * {{{
kubectl patch deployment metrics-server -p '{"spec":{"template":{"spec":{"containers":[{ "name": "metrics-server","resources":{"requests":{"cpu":"20m"}} }]}} }}'
}}}

Kubernetes / k8s

Child Pages

Security

---

Patch a deployment to add cpu reservation

  • kubectl patch deployment metrics-server -p '{"spec":{"template":{"spec":{"containers":[{ "name": "metrics-server","resources":{"requests":{"cpu":"20m"}} }]}} }}'

Edit a deployment, e.g. remove a startup container failing

  • Edit deployment

    # kubectl --namespace nsp-tst edit deployments myservice 


CategoryK8sKubernetes

k8s (last edited 2024-03-17 08:01:06 by PieterSmit)