diff --git a/examples/node-selection/README.md b/examples/node-selection/README.md index 2c560851c67..b9b97400220 100644 --- a/examples/node-selection/README.md +++ b/examples/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/examples/node-selection/pod.yaml b/examples/node-selection/pod.yaml
index 42a6b39e8a2..134ddae2aa1 100644
--- a/examples/node-selection/pod.yaml
+++ b/examples/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