Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
29157f26
Commit
29157f26
authored
May 06, 2015
by
Chao Xu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update nodeSelector example to use v1beta3 API
parent
9939f927
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
19 deletions
+29
-19
README.md
examples/node-selection/README.md
+16
-19
pod.yaml
examples/node-selection/pod.yaml
+13
-0
No files found.
examples/node-selection/README.md
View file @
29157f26
...
@@ -23,36 +23,33 @@ You can verify that it worked by re-running `kubectl get nodes` and checking tha
...
@@ -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:
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: v1beta1
apiVersion: v1beta3
desiredState:
kind: Pod
manifest:
metadata:
labels:
env: test
name: nginx
spec:
containers:
containers:
-
image: nginx
-
image: nginx
name: nginx
name: nginx
id: nginx
version: v1beta1
id: nginx
kind: Pod
labels:
env: test
</pre>
</pre>
Then add a nodeSelector like so:
Then add a nodeSelector like so:
<pre>
<pre>
apiVersion: v1beta1
apiVersion: v1beta3
desiredState:
kind: Pod
manifest:
metadata:
labels:
env: test
name: nginx
spec:
containers:
containers:
-
image: nginx
-
image: nginx
imagePullPolicy: IfNotPresent
name: nginx
name: nginx
id: nginx
<b>
nodeSelector:
version: v1beta1
id: nginx
kind: Pod
labels:
env: test
<b>
nodeSelector:
disktype: ssd
</b>
disktype: ssd
</b>
</pre>
</pre>
...
...
examples/node-selection/pod.yaml
0 → 100644
View file @
29157f26
apiVersion
:
v1beta3
kind
:
Pod
metadata
:
labels
:
env
:
test
name
:
nginx
spec
:
containers
:
-
image
:
nginx
imagePullPolicy
:
IfNotPresent
name
:
nginx
nodeSelector
:
disktype
:
ssd
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment