Commit 29157f26 authored by Chao Xu's avatar Chao Xu

update nodeSelector example to use v1beta3 API

parent 9939f927
......@@ -23,36 +23,33 @@ 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:
<pre>
apiVersion: v1beta1
desiredState:
manifest:
apiVersion: v1beta3
kind: Pod
metadata:
labels:
env: test
name: nginx
spec:
containers:
- image: nginx
name: nginx
id: nginx
version: v1beta1
id: nginx
kind: Pod
labels:
env: test
</pre>
Then add a nodeSelector like so:
<pre>
apiVersion: v1beta1
desiredState:
manifest:
apiVersion: v1beta3
kind: Pod
metadata:
labels:
env: test
name: nginx
spec:
containers:
- image: nginx
imagePullPolicy: IfNotPresent
name: nginx
id: nginx
version: v1beta1
id: nginx
kind: Pod
labels:
env: test
<b>nodeSelector:
<b>nodeSelector:
disktype: ssd</b>
</pre>
......
apiVersion: v1beta3
kind: Pod
metadata:
labels:
env: test
name: nginx
spec:
containers:
- image: nginx
imagePullPolicy: IfNotPresent
name: nginx
nodeSelector:
disktype: ssd
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment