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
b532affe
Commit
b532affe
authored
Jun 10, 2015
by
Chao Xu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update examples/node-selection to v1
parent
bdeb4f31
Show 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 @
b532affe
...
@@ -23,32 +23,32 @@ You can verify that it worked by re-running `kubectl get nodes` and checking tha
...
@@ -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: v1
beta3
apiVersion: v1
kind: Pod
kind: Pod
metadata:
metadata:
name: nginx
labels:
labels:
env: test
env: test
name: nginx
spec:
spec:
containers:
containers:
-
imag
e: nginx
-
nam
e: nginx
nam
e: nginx
imag
e: nginx
</pre>
</pre>
Then add a nodeSelector like so:
Then add a nodeSelector like so:
<pre>
<pre>
apiVersion: v1
beta3
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>
...
...
examples/node-selection/pod.yaml
View file @
b532affe
apiVersion
:
v1
beta3
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
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