Commit Graph

67 Commits

Author SHA1 Message Date
Kensei Nakada 108e2a9f0f
graduate MatchLabelKeysInPodAffinity to beta (#45181)
* graduate MatchLabelKeysInPodAffinity to beta

* update feature-state

* Correct the grammar

Co-authored-by: Tim Bannister <tim@scalefactory.com>

* add comments

* Update version appropriately

---------

Co-authored-by: Tim Bannister <tim@scalefactory.com>
2024-07-25 13:03:11 -07:00
Tasos Tsournos b33fe00fce
Update assign-pod-node.md
Typos
2024-07-09 10:18:51 +03:00
Gary Miguel 3cd095d948
fix Gt, Lt behavior documentation
Tested empirically. Also matches the operator names.
2024-06-14 13:24:37 -07:00
Kubernetes Prow Robot 51d44fee8f
Merge pull request #45887 from naqeebghazi/patch-1
Update assign-pod-node.md - Gt and Lt definition amendment for nodeAffinity
2024-05-15 18:06:11 -07:00
Naqeeb 724a0067ae
Update content/en/docs/concepts/scheduling-eviction/assign-pod-node.md
Co-authored-by: Tim Bannister <tim@scalefactory.com>
2024-04-19 15:30:57 +01:00
Naqeeb 82c6a0c563
Update assign-pod-node.md
Definitions of Gt and Lt mixed up but now amended
2024-04-15 16:31:50 +01:00
7sunarni 3054b8562d example(affinity): rename pod-with-affinity-anti-affinity.yaml => pod-with-affinity-preferred-weight.yaml
Signed-off-by: 7sunarni <710720732@qq.com>
2024-04-10 16:19:42 +08:00
Aldo Culquicondor 0b15eccf6d Upgrade note about nodeName to warning 2024-03-26 15:44:41 +00:00
Alexis Boissiere 2f298d2077
Fix trailing whitespace in scheduler section 2024-02-19 13:55:48 +01:00
Alexis Boissiere e839bf7aee
Fix spelling mistake in scheduling section 2024-02-19 13:55:40 +01:00
Kubernetes Prow Robot a3604dd589
Merge pull request #45032 from dipesh-rawat/improve-feature-state-shortcode
Enhance 'feature-state' shortcode to utilize feature gate description files
2024-02-13 22:08:00 -08:00
Lawrence Chou 3ca2b443ac
Fix `matchLabelKeys` example yaml syntax
It should be `spec.template.spec.affinity` instead of `spec.template.affinity`.

```
$ explain deploy.spec.template.spec.affinity
GROUP:      apps
KIND:       Deployment
VERSION:    v1

FIELD: affinity <Affinity>

...
```
```
$ k explain deploy.spec.template.affinity
GROUP:      apps
KIND:       Deployment
VERSION:    v1

error: field "affinity" does not exist
```
2024-02-13 10:37:33 +08:00
Dipesh Rawat a3f297bc80
Use new feature_gate_name option 2024-02-12 19:16:20 +00:00
Qiming Teng 8b46ec4047 Fix several link errors 2024-01-01 21:15:50 +08:00
Kensei Nakada 2ec25fbe7b
add: the doc for matchLabelKeys/mismatchLabelKeys in pod (anti)affinity (#43812)
* add: the doc for matchLabelKeys/mismatchLabelKeys in pod (anti)affinity

* fix based on reviews

* add the explanation for labelSelector

* address the review
2023-11-20 15:04:59 +01:00
oculushut e124688855
Clearer information about the emptyDir and correction for how topologyKey works (#42780)
* removes "tmpfs is cleared on node reboot"

I believe the statement is confusing since we are in the emptyDir section of the documentation.  

If a Node is restarted then all pods that resided on that node will be rescheduled onto another Node.  Rescheduled pods will have an empty volume  whether you choose emptyDir.medium "Memory" or not.

* removes bad comma

* improves memory limit description

Co-authored-by: Tim Bannister <tim@scalefactory.com>

* removes incorrect explanation for topologyKey in an affinity or anti-affinity rule (#1)

The existing text does not make sense to me.  

There is no zone "V" or "R" in the example.  

I have changed the text to be consistent with top answer here which seems to make more sense: https://stackoverflow.com/questions/72240224/what-is-topologykey-in-pod-affinity

* gives more context to node label configuration

* manually wraps text and replaces absolute links with relative ones

* Update assign-pod-node.md

---------

Co-authored-by: Tim Bannister <tim@scalefactory.com>
Co-authored-by: Qiming Teng <tengqm@outlook.com>
2023-10-17 03:40:52 +02:00
Daniel Shebib b4652d7304 add pod affinity note 2023-09-06 17:13:26 +01:00
Mengjiao Liu e8b136c3b3 Use code_sample shortcode instead of code shortcode 2023-09-05 17:10:14 +08:00
Kubernetes Prow Robot cc4e3ec66d
Merge pull request #42236 from sftim/20230726_link_to_node_labels
Link to specific node labels rather than entire list
2023-08-02 10:10:42 -07:00
Kubernetes Prow Robot 8766ddab71
Merge pull request #42344 from radimih/patch-1
Fix description of Gt and Lt operators in selectors
2023-08-02 01:44:09 -07:00
Radimir Mikhailov d267b7b3a9
Fixed description of Gt and Lt operators 2023-08-01 17:09:12 +07:00
Mengjiao Liu 68ba9633a2 Switch English to use code not codenew shortcode 2023-08-01 16:57:17 +08:00
Tim Bannister 29c6a60501 Link to specific node labels rather than entire list
Less visual space compared to the original approach, but still shows
which labels you can expect to find set on a node.

Co-authored-by: Ritikaa96 <ritika@india.nec.com>
2023-07-27 11:26:33 +01:00
Andrey Goran eb522c126f
Replace {{< codenew ... >}} with {{% codenew ... %}} in all English docs (#42180)
* Replaced {{< codenew ... >}} with {{% codenew ... %}} in all files

* Reverted changes in non-english localizations
2023-07-25 05:54:06 -07:00
Sreeram Venkitesh 81fd15afe4
Added section on operators for `nodeAffinity` and `podAffinity` (#39742)
* Added section in the docs about the behaviour of operator in the node and pod affinity docs

* Fixes from review

* Fixed podAffinity and added note about non-integer values

* Fixes from review

* Fixed review comments

* Fixes from review
2023-05-24 01:18:50 -07:00
Dhairya-Arora01 64af02f281 fixed the outdated link 2023-03-12 14:17:00 +00:00
zhuzhenghao 07526a10ce Clean up page assign-pod-node 2023-02-19 14:58:34 +08:00
Todd Neal f9a19295ee
Update content/en/docs/concepts/scheduling-eviction/assign-pod-node.md
Co-authored-by: Aldo Culquicondor <1299064+alculquicondor@users.noreply.github.com>
2023-02-14 09:51:42 -06:00
Todd Neal 47e6adfcc9 add a node indicating when nodeName should be used 2023-02-14 09:27:50 -06:00
Aldo Culquicondor 58d150dc8a
Clarify node affinity API (#38032)
* Clarify node affinity API

* Refer to the items by their names

* Clarify cardinality
2022-11-29 07:43:23 -08:00
Kubernetes Prow Robot 723ae44d5a
Merge pull request #35104 from balaramvedulla/patch-1
Updates to Node affinity weight section
2022-07-25 00:16:58 -07:00
Balaram Vedulla e8cb7ec9ba
Update assign-pod-node.md 2022-07-17 19:02:52 +02:00
Tim Bannister 311cdc386a Reword topic Assigning Pods to Nodes
- Rewording
- Tidying

Co-authored-by: Abdullah Gharaibeh <40361897+ahg-g@users.noreply.github.com>
2022-07-14 23:59:07 +01:00
Tim Bannister 3225a082df Mention topology spread constraints appropriately
The concept Assigning Pods to Nodes should mention Pod topology spread
constraints. This commit ensures that it does.
2022-07-14 23:59:07 +01:00
Remo Andreoli 3132fbe4f0
Fix wrong label key in scheduling example (#32646)
* Fixed deprecated comment in scheduling-eviction/assign-pod-node.md regarding example pods/pod-with-affinity-anti-affinity.yaml

* Changed the example to a more appropriate one
2022-06-23 18:11:19 -07:00
Sean Wei 34155fed0b Fix links for k/design-proposals-archive
The contributors/design-proposals in k/community was removed. It's only
available in k/design-proposals-archive repo now.

This commit also changes https://github.com/kubernetes/repo/blob/master/file.md
to https://git.k8s.io/repo/file.md for better consistency.
2022-06-10 22:49:04 +08:00
Nitish Kumar 8063487091
Apply suggestions from code review
Co-authored-by: Qiming Teng <tengqm@outlook.com>
2022-05-29 11:27:21 +05:30
Nitish Kumar ce9c2c8b4b Broken Link Updated 2022-05-29 08:03:36 +05:30
Nate W 0135d3642b Merge remote-tracking branch 'upstream/main' into dev-1.24 2022-04-19 15:45:28 -07:00
Sean Wei 01c3c53b7d [en] Fix Markdown format 2022-04-14 01:33:53 +08:00
Nate W d1bce4cb0d Merge remote-tracking branch 'upstream/main' into dev-1.24 2022-04-07 10:41:49 -07:00
tidusete 64da6792e9
Missunderstood pods/pod-with-node-affinity.yaml
Either we correct the code from pods/pod-with-node-affinity.yaml to match the description about the rules that apply or we correct the description in order to match the pods/pod-with-node-affinity.yaml
2022-03-30 18:01:59 +02:00
Nate W 7c67921f3f Merge remote-tracking branch 'upstream/main' into dev-1.24 2022-03-28 08:48:23 -07:00
Mitesh Jain bf59d01af7
Fix broken link for attach labels in assign-pod-node.md 2022-03-27 12:26:44 +05:30
Kubernetes Prow Robot b2097006f0
Merge pull request #29385 from shannonxtreme/assign-pods-nodes
Refactor Assigning Pods to Nodes
2022-03-23 01:01:59 -07:00
Abdullah Gharaibeh ec2133bd1d Graduate PodAffinityNamespaceSelector to GA 2022-03-18 11:01:02 -04:00
Qiming Teng b76366329d Update scheduler configuration sample version
This PR updates the scheduler configuration YAML snippets to use the 'v1beta3' version API. 'v1beta1' is gone and not recommended. We don't have config API reference for 'v1beta1' now.
2022-03-03 20:08:38 +08:00
Shannon Kularathna 4650e1df61 Refactor Assign Pods to Nodes 2022-01-21 15:27:20 +00:00
Abdullah Gharaibeh a30d7351e8 Pod affinity namespaceSelector to beta 2021-06-15 09:03:28 -04:00
Jihoon Seo 3100379bcd Fix errors #27565, #27569 2021-04-19 11:36:43 +09:00