Kubernetes 101 : Random useful Docker and Kubernetes commands
To limit the use of CPU -150m- and memory -1024- resources of an "nginx" container, we could use the below command for example:
"8080" : port on the host.
"80" : port on the container.
Remark:
"--cpu-shares" is a soft limit, the container uses more CPU is available.
To delete a docker image, we could use the below command:
The above command exposes the pod on port 80.
"--name" is the name of the new service through which client applications will access the pod.
"--name" is the name of the new service through which client applications will access the pod.
Comments