update examples/node-selection to v1
This commit is contained in:
parent
5c37d4a0e9
commit
bcda0978ad
|
@ -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:
|
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>
|
<pre>
|
||||||
apiVersion: v1beta3
|
apiVersion: v1
|
||||||
kind: Pod
|
kind: Pod
|
||||||
metadata:
|
metadata:
|
||||||
|
name: nginx
|
||||||
labels:
|
labels:
|
||||||
env: test
|
env: test
|
||||||
name: nginx
|
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- image: nginx
|
- name: nginx
|
||||||
name: nginx
|
image: nginx
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
Then add a nodeSelector like so:
|
Then add a nodeSelector like so:
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
apiVersion: v1beta3
|
apiVersion: v1
|
||||||
kind: Pod
|
kind: Pod
|
||||||
metadata:
|
metadata:
|
||||||
|
name: nginx
|
||||||
labels:
|
labels:
|
||||||
env: test
|
env: test
|
||||||
name: nginx
|
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- image: nginx
|
- name: nginx
|
||||||
|
image: nginx
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
name: nginx
|
|
||||||
<b>nodeSelector:
|
<b>nodeSelector:
|
||||||
disktype: ssd</b>
|
disktype: ssd</b>
|
||||||
</pre>
|
</pre>
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
apiVersion: v1beta3
|
apiVersion: v1
|
||||||
kind: Pod
|
kind: Pod
|
||||||
metadata:
|
metadata:
|
||||||
|
name: nginx
|
||||||
labels:
|
labels:
|
||||||
env: test
|
env: test
|
||||||
name: nginx
|
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- image: nginx
|
- name: nginx
|
||||||
|
image: nginx
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
name: nginx
|
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
disktype: ssd
|
disktype: ssd
|
||||||
|
|
Loading…
Reference in New Issue