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
ae4b62e0
Commit
ae4b62e0
authored
Jun 11, 2015
by
Abhi Shah
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9638 from caesarxuchao/node-selection-examples
update examples/node-selection to v1
parents
b56034a9
b532affe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
README.md
examples/node-selection/README.md
+8
-8
pod.yaml
examples/node-selection/pod.yaml
+4
-4
No files found.
examples/node-selection/README.md
View file @
ae4b62e0
...
...
@@ -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:
<pre>
apiVersion: v1
beta3
apiVersion: v1
kind: Pod
metadata:
name: nginx
labels:
env: test
name: nginx
spec:
containers:
-
imag
e: nginx
nam
e: nginx
-
nam
e: nginx
imag
e: nginx
</pre>
Then add a nodeSelector like so:
<pre>
apiVersion: v1
beta3
apiVersion: v1
kind: Pod
metadata:
name: nginx
labels:
env: test
name: nginx
spec:
containers:
-
image: nginx
-
name: nginx
image: nginx
imagePullPolicy: IfNotPresent
name: nginx
<b>
nodeSelector:
disktype: ssd
</b>
</pre>
...
...
examples/node-selection/pod.yaml
View file @
ae4b62e0
apiVersion
:
v1
beta3
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
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