PJong
PJong

Reputation: 98

Specify container deployment target with Kubernetes, e.g. Test/Production

Based on the following setup of Kubernetes on Microsoft Azure.

I was able to deploy my Docker containers, using the same configuration settings.

We have 2 categories of containers, front-end and back-end, where the back-end consist of high intensive processing. The latter we want to run on Large instances, whereas the front-end will be run on Small instances.

What is the best option to separate these, my gues would be with labeling the hosts. But was not able to find this in the docs, or in examples.

Upvotes: 1

Views: 252

Answers (1)

Robert Bailey
Robert Bailey

Reputation: 18200

Currently, adding labels to the hosts and restricting your pods to nodes with the appropriate label (e.g. 'Large' / 'Small') is the best way to do this. For an example, see examples/node-selection

Kubernetes has a resource model which, once implemented, will allow you to tell the scheduler what resources each pod needs and the system will ensure that the pod is placed on a node with available resources. Unfortunately, as you can tell from the design document on Github, this isn't fully implemented yet.

Upvotes: 1

Related Questions