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
3042f1d1
Commit
3042f1d1
authored
Feb 22, 2016
by
Brian Grant
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #21300 from soltysh/ds_docs
Updated label selector for daemon set
parents
11cdc919
eccced23
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
daemons.md
docs/admin/daemons.md
+10
-4
No files found.
docs/admin/daemons.md
View file @
3042f1d1
...
@@ -99,11 +99,17 @@ A pod template in a DaemonSet must have a [`RestartPolicy`](../user-guide/pod-st
...
@@ -99,11 +99,17 @@ A pod template in a DaemonSet must have a [`RestartPolicy`](../user-guide/pod-st
### Pod Selector
### Pod Selector
The
`.spec.selector`
field is a pod selector. It works the same as the
`.spec.selector`
of
The
`.spec.selector`
field is a pod selector. It works the same as the
`.spec.selector`
of
a
[
ReplicationController
](
../user-guide/replication-controller.md
)
or
a
[
Job
](
../user-guide/jobs.md
)
or other new resources.
[
Job
](
../user-guide/jobs.md
)
.
If the
`.spec.selector`
is specified, it must equal the
`.spec.template.metadata.labels`
. If not
The
`spec.selector`
is an object consisting of two fields:
specified, the are default to be equal. Config with these unequal will be rejected by the API.
*
`matchLabels`
- works the same as the
`.spec.selector`
of a
[
ReplicationController
](
../user-guide/replication-controller.md
)
*
`matchExpressions`
- allows to build more sophisticated selectors by specifying key,
list of values and an operator that relates the key and values.
When the two are specified the result is ANDed.
If the
`.spec.selector`
is specified, it must match the
`.spec.template.metadata.labels`
. If not
specified, they are defaulted to be equal. Config with these not matching will be rejected by the API.
Also you should not normally create any pods whose labels match this selector, either directly, via
Also you should not normally create any pods whose labels match this selector, either directly, via
another DaemonSet, or via other controller such as ReplicationController. Otherwise, the DaemonSet
another DaemonSet, or via other controller such as ReplicationController. Otherwise, the DaemonSet
...
...
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