From bcda0978adfebe4776bbde30af48c24fb7126a28 Mon Sep 17 00:00:00 2001 From: Chao Xu Date: Wed, 10 Jun 2015 16:18:38 -0700 Subject: [PATCH] update examples/node-selection to v1 --- node-selection/README.md | 16 ++++++++-------- node-selection/pod.yaml | 8 ++++---- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/node-selection/README.md b/node-selection/README.md index 2c560851..b9b97400 100644 --- a/node-selection/README.md +++ b/node-selection/README.md @@ -23,32 +23,32 @@ You can verify that it worked by re-running `kubectl get nodes` and checking tha Take whatever pod config file you want to run, and add a nodeSelector section to it, like this. For example, if this is my pod config:
-apiVersion: v1beta3
+apiVersion: v1
 kind: Pod
 metadata:
+  name: nginx
   labels:
     env: test
-  name: nginx
 spec:
   containers:
-  - image: nginx
-    name: nginx
+  - name: nginx
+    image: nginx
 
Then add a nodeSelector like so:
-apiVersion: v1beta3
+apiVersion: v1
 kind: Pod
 metadata:
+  name: nginx
   labels:
     env: test
-  name: nginx
 spec:
   containers:
-  - image: nginx
+  - name: nginx
+    image: nginx
     imagePullPolicy: IfNotPresent
-    name: nginx
   nodeSelector:
     disktype: ssd
 
diff --git a/node-selection/pod.yaml b/node-selection/pod.yaml index 42a6b39e..134ddae2 100644 --- a/node-selection/pod.yaml +++ b/node-selection/pod.yaml @@ -1,13 +1,13 @@ -apiVersion: v1beta3 +apiVersion: v1 kind: Pod metadata: + name: nginx labels: env: test - name: nginx spec: containers: - - image: nginx + - name: nginx + image: nginx imagePullPolicy: IfNotPresent - name: nginx nodeSelector: disktype: ssd