Differences between revisions 8 and 11 (spanning 3 versions)
Revision 8 as of 2019-09-05 03:12:29
Size: 617
Editor: PieterSmit
Comment:
Revision 11 as of 2019-10-10 09:56:23
Size: 980
Editor: PieterSmit
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
## page was renamed from Kubernetes
Line 2: Line 3:
 * K8s networking https://sookocheff.com/post/kubernetes/understanding-kubernetes-networking-model/
Line 14: Line 16:
== 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-05-09 21:29:26 by PieterSmit)