Apply concept template to extend-kubernetes and configuration dirs (#8995)

This commit is contained in:
Misty Stanley-Jones
2018-06-11 12:38:26 -07:00
committed by k8s-ci-robot
parent b11a514313
commit 89a06bdb29
9 changed files with 112 additions and 15 deletions
@@ -4,9 +4,14 @@ reviewers:
- kevin-wangzefeng
- bsalamat
title: Assigning Pods to Nodes
content_template: templates/concept
weight: 30
---
{{< toc >}}
{{% capture overview %}}
You can constrain a [pod](/docs/concepts/workloads/pods/pod/) to only be able to run on particular [nodes](/docs/concepts/architecture/nodes/) or to prefer to
run on particular nodes. There are several ways to do this, and they all use
[label selectors](/docs/concepts/overview/working-with-objects/labels/) to make the selection.
@@ -19,7 +24,9 @@ services that communicate a lot into the same availability zone.
You can find all the files for these examples [in our docs
repo here](https://github.com/kubernetes/website/tree/{{< param "docsbranch" >}}/docs/concepts/configuration/).
{{< toc >}}
{{% /capture %}}
{{% capture body %}}
## nodeSelector
@@ -332,3 +339,9 @@ For more information on inter-pod affinity/anti-affinity, see the
You may want to check [Taints](/docs/concepts/configuration/taint-and-toleration/)
as well, which allow a *node* to *repel* a set of pods.
{{% /capture %}}
{{% capture whatsnext %}}
{{% /capture %}}