Kubernetes cluster size
Several kubernetes of beginner questions.
If I understood correctly, when the Kubernetes cluster their setup, the size of ita is determined by the number of minions that want to be in the cluster, say I create a cluster with two minions. If I decide to deploy 4 containers with php and nginx support.
Is this how I can choose the amount of resources I want to have for each module?
In older deployments we deploy directly to servers / vm, we know the resource count of each server / vm. Let's assume I have no functional requirement for 2gb ram 4 cps 160gb hdd.
How can I do this using kubernetes.
Now, suppose I have these 4 modules deployed that I want to grow and the new modules need to fulfill the same functional requirements.
Do I need to resize my cluster or is there a way for me to do kubernetes?
Thank.
source to share
See the Compute Resources section of the kubernetes user manual. It describes how to assign CPU and memory limits in your containers and how the scheduler places them in your cluster.
When you increase the number of running modules, the scheduler will try to place them in the available space. If there is no way for containers to be scheduled, then the containers will remain in a pending state until the scheduler can find a place to start them. You can remove some of the constraints you put on your pods (host ports, shortcut selector, etc.), or you may need to increase the processing capacity of your cluster by adding additional nodes.
Currently, the cluster will not automatically add new nodes if it is down. The work of adding this functionality, at least for GCE, is now in progress (see # 11748 ), but does not exist in version 1.0 of Kubernete.Until this feature is implemented, you will have to manually scale your cluster. If you are running GCE / GKE, this can be accomplished by resizing the managed instance group containing the nodes in your cluster. In other cloud providers, you need to clone the node configuration to the new node in order to have the appropriate credentials to join the cluster.
source to share