Add docs to illustrate how to schedule pod to specific node (#12871)

This commit is contained in:
WanLinghao
2019-02-28 13:22:19 +08:00
committed by Kubernetes Prow Robot
parent c34527a3ed
commit 268c9473a5
3 changed files with 18 additions and 0 deletions
+1
View File
@@ -446,6 +446,7 @@ func TestExampleObjectSchemas(t *testing.T) {
"commands": {&api.Pod{}},
"init-containers": {&api.Pod{}},
"lifecycle-events": {&api.Pod{}},
"pod-nginx-specific-node": {&api.Pod{}},
"pod-nginx": {&api.Pod{}},
"pod-with-node-affinity": {&api.Pod{}},
"pod-with-pod-affinity": {&api.Pod{}},
@@ -0,0 +1,10 @@
apiVersion: v1
kind: Pod
metadata:
name: nginx
spec:
nodeName: foo-node # schedule pod to specific node
containers:
- name: nginx
image: nginx
imagePullPolicy: IfNotPresent