content
stringlengths
3
20.5k
original_id
null
file_path
stringlengths
27
155
url
stringlengths
54
193
embeddings
listlengths
384
384
score
float64
-0.21
0.65
You can constrain a {{< glossary\_tooltip text="Pod" term\_id="pod" >}} so that it is \_restricted\_ to run on particular {{< glossary\_tooltip text="node(s)" term\_id="node" >}}, or to \_prefer\_ to run on particular nodes. There are several ways to do this and the recommended approaches all use [label selectors](/docs/concepts/overview/working-with-objects/labels/) to facilitate the selection. Often, you do not need to set any such constraints; the {{< glossary\_tooltip text="scheduler" term\_id="kube-scheduler" >}} will automatically do a reasonable placement (for example, spreading your Pods across nodes so as not place Pods on a node with insufficient free resources). However, there are some circumstances where you may want to control which node the Pod deploys to, for example, to ensure that a Pod ends up on a node with an SSD attached to it, or to co-locate Pods from two different services that communicate a lot into the same availability zone. You can use any of the following methods to choose where Kubernetes schedules specific Pods: - [nodeSelector](#nodeselector) field matching against [node labels](#built-in-node-labels) - [Affinity and anti-affinity](#affinity-and-anti-affinity) - [nodeName](#nodename) field - [Pod topology spread constraints](#pod-topology-spread-constraints) ## Node labels {#built-in-node-labels} Like many other Kubernetes objects, nodes have [labels](/docs/concepts/overview/working-with-objects/labels/). You can [attach labels manually](/docs/tasks/configure-pod-container/assign-pods-nodes/#add-a-label-to-a-node). Kubernetes also populates a [standard set of labels](/docs/reference/node/node-labels/) on all nodes in a cluster. {{}} The value of these labels is cloud provider specific and is not guaranteed to be reliable. For example, the value of `kubernetes.io/hostname` may be the same as the node name in some environments and a different value in other environments. {{}} ### Node isolation/restriction Adding labels to nodes allows you to target Pods for scheduling on specific nodes or groups of nodes. You can use this functionality to ensure that specific Pods only run on nodes with certain isolation, security, or regulatory properties. If you use labels for node isolation, choose label keys that the {{}} cannot modify. This prevents a compromised node from setting those labels on itself so that the scheduler schedules workloads onto the compromised node. The [`NodeRestriction` admission plugin](/docs/reference/access-authn-authz/admission-controllers/#noderestriction) prevents the kubelet from setting or modifying labels with a `node-restriction.kubernetes.io/` prefix. To make use of that label prefix for node isolation: 1. Ensure you are using the [Node authorizer](/docs/reference/access-authn-authz/node/) and have \_enabled\_ the `NodeRestriction` admission plugin. 2. Add labels with the `node-restriction.kubernetes.io/` prefix to your nodes, and use those labels in your [node selectors](#nodeselector). For example, `example.com.node-restriction.kubernetes.io/fips=true` or `example.com.node-restriction.kubernetes.io/pci-dss=true`. ## nodeSelector `nodeSelector` is the simplest recommended form of node selection constraint. You can add the `nodeSelector` field to your Pod specification and specify the [node labels](#built-in-node-labels) you want the target node to have. Kubernetes only schedules the Pod onto nodes that have each of the labels you specify. See [Assign Pods to Nodes](/docs/tasks/configure-pod-container/assign-pods-nodes) for more information. ## Affinity and anti-affinity `nodeSelector` is the simplest way to constrain Pods to nodes with specific labels. Affinity and anti-affinity expand the types of constraints you can define. Some of the benefits of affinity and anti-affinity include: - The affinity/anti-affinity language is more expressive. `nodeSelector` only selects nodes with all the specified labels. Affinity/anti-affinity gives you more control over the selection logic. - You can indicate that a rule is \*soft\* or \*preferred\*, so that the scheduler still schedules the Pod even if it can't find a matching node. - You can constrain a Pod using labels on other Pods running on the node (or other topological domain), instead of just node labels, which allows you to define rules for which Pods can be co-located on a node. The affinity feature consists of two types of affinity: - \*Node affinity\* functions like the `nodeSelector` field but is more expressive and allows
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/assign-pod-node.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/assign-pod-node.md
[ -0.06742334365844727, 0.019462471827864647, 0.07137899100780487, 0.019859185442328453, -0.002722226083278656, -0.004839158151298761, 0.06525682657957077, -0.0636930987238884, 0.050477586686611176, 0.015529636293649673, -0.03021557256579399, -0.05336400866508484, 0.010973582975566387, -0.03353864327073097, 0.017756516113877296, -0.017301201820373535, 0.07230740040540695, -0.03646992892026901, -0.023227183148264885, -0.030304312705993652, 0.08548245579004288, 0.0530584454536438, 0.04548770934343338, 0.0454748310148716, -0.041535280644893646, -0.008505440317094326, -0.02562914788722992, 0.02186679095029831, 0.0599176399409771, 0.03855843469500542, -0.013067618012428284, 0.026212846860289574, -0.08547089993953705, 0.084322988986969, 0.06266926229000092, 0.052114423364400864, -0.06700403243303299, 0.02272758074104786, -0.018901046365499496, 0.052006736397743225, 0.042419686913490295, 0.01093739178031683, -0.07377231866121292, -0.0055563864298164845, -0.05728340148925781, 0.014352107420563698, -0.018979521468281746, -0.03052828460931778, -0.037407226860523224, 0.011319739744067192, 0.018886161968111992, -0.10263730585575104, -0.0015695831971243024, 0.023278284817934036, 0.03208396956324577, 0.03694929555058479, -0.003927979152649641, -0.05439179390668869, 0.09201334416866302, 0.02390924096107483, 0.012321422807872295, -0.03019559010863304, 0.02393961139023304, -0.01631522923707962, 0.05091652274131775, 0.0019248167518526316, 0.017810823395848274, 0.011088171042501926, -0.05146133899688721, 0.01877170242369175, 0.06717599183320999, -0.0073502762243151665, 0.03427666798233986, 0.02478465810418129, 0.01070984173566103, 0.044498272240161896, -0.022929178550839424, 0.04007464647293091, -0.012169202789664268, -0.12333329766988754, 0.023341666907072067, 0.08609449863433838, 0.09874657541513443, 0.08653095364570618, -0.03585172817111015, -0.0874326154589653, 0.017025502398610115, -0.02602394111454487, 0.06914039701223373, 0.020309066399931908, 0.028062600642442703, -0.05289493501186371, 0.05183245986700058, -0.08954014629125595, 0.06768582761287689, -0.003777487901970744, 0.037605736404657364, -0.07679206877946854, 0.01218251883983612, -0.029709970578551292, 0.042639248073101044, -0.0629371702671051, 0.008373066782951355, 0.01979532465338707, -0.02593388967216015, -0.007189038209617138, -0.14224429428577423, -0.05360562354326248, -0.037693530321121216, -0.013455132953822613, 0.014203877188265324, 0.12474335730075836, -0.021262258291244507, 0.022816574200987816, -0.09801124781370163, -0.06607601046562195, 0.01293354481458664, -0.04873688519001007, 0.040922701358795166, 0.06490297615528107, -0.048030026257038116, -0.06511212140321732, 0.005352932494133711, -0.035980816930532455, -0.018089158460497856, 0.0727422684431076, -0.024075863882899284, -6.289857212898974e-34, 0.03335997462272644, -0.11053910106420517, -0.07672097533941269, -0.06340442597866058, -0.026140768080949783, -0.018695957958698273, -0.0890035629272461, 0.015545161440968513, -0.06184826418757439, 0.0020221807062625885, -0.003898944705724716, 0.058401919901371, -0.0015909018693491817, -0.035060007125139236, 0.08459685742855072, -0.004862915258854628, 0.053895674645900726, 0.11098543554544449, 0.016868580132722855, -0.04206326603889465, -0.03497021272778511, -0.09840579330921173, -0.04712612181901932, -0.05803997814655304, 0.04754238948225975, -0.010178363882005215, -0.041987814009189606, -0.11446430534124374, 0.02491743303835392, 0.005175310652703047, -0.022715013474225998, -0.005175408441573381, 0.07895005494356155, 0.03375006467103958, -0.08253329247236252, -0.01022046897560358, -0.08437149226665497, -0.018534112721681595, 0.011312872171401978, -0.060255229473114014, 0.04539686068892479, 0.01911482773721218, 0.052462805062532425, -0.014334644190967083, 0.07161923497915268, 0.09568985551595688, 0.03950615972280502, -0.11239591985940933, 0.003928289283066988, -0.011380567215383053, 0.040742069482803345, -0.023068424314260483, 0.006421882659196854, -0.007328941952437162, 0.04775766283273697, 0.037857744842767715, -0.002231031423434615, -0.09103070944547653, 0.02281131036579609, 0.015444780699908733, -0.0824480801820755, 0.02531128190457821, -0.018743110820651054, -0.02443857491016388, 0.08439226448535919, 0.011447714641690254, -0.014532956294715405, 0.04347909986972809, 0.0370478555560112, 0.009182950481772423, -0.045166920870542526, -0.011385051533579826, 0.026731178164482117, 0.04540090635418892, 0.052581239491701126, 0.0032829151023179293, 0.016075918450951576, -0.011287566274404526, -0.10923679918050766, -0.03181818500161171, -0.0300661101937294, -0.04276970028877258, 0.004359911661595106, 0.04256947338581085, 0.040931183844804764, -0.07336436212062836, -0.0016521681100130081, -0.04111577942967415, -0.06952620297670364, 0.05691268667578697, -0.025481799617409706, -0.026822125539183617, -0.14552536606788635, 0.040088996291160583, -0.09136921912431717, -2.0389575833096374e-33, 0.10826272517442703, -0.043658796697854996, 0.08576852828264236, 0.05202136188745499, 0.04088293015956879, -0.0361526794731617, 0.0024428500328212976, -0.01914255879819393, 0.008174742572009563, -0.019416948780417442, -0.023619038984179497, 0.029547959566116333, 0.03209991380572319, 0.08435625582933426, -0.022691860795021057, 0.036500900983810425, -0.11300496757030487, 0.03366268053650856, -0.02488534525036812, 0.04086220636963844, 0.012698112055659294, -0.028950495645403862, 0.024411102756857872, 0.03287195786833763, 0.035770483314991, -0.020708773285150528, 0.026173053309321404, 0.01822628825902939, -0.010151190683245659, -0.04638463631272316, -0.05811997875571251, -0.005684979725629091, -0.03611486777663231, -0.1078769788146019, 0.034650769084692, -0.04130423814058304, -0.030873209238052368, -0.011337494477629662, -0.012767230160534382, 0.10212483257055283, 0.09861570596694946, -0.00022555400209967047, -0.09032536298036575, -0.08907414227724075, -0.006849511060863733, 0.0002608854556456208, -0.013266872614622116, -0.012560907751321793, -0.03591757267713547, -0.047443654388189316, -0.0016482146456837654, -0.023004483431577682, -0.005221053957939148, 0.03744892030954361, -0.014958205632865429, -0.008517217822372913, 0.0026949814055114985, -0.0873299315571785, -0.05524596571922302, -0.017593780532479286, 0.06547453254461288, -0.024070166051387787, 0.039817944169044495, 0.0031576112378388643, -0.008144148625433445, -0.0619172602891922, 0.02199251390993595, -0.015436756424605846, 0.009619680233299732, -0.040821563452482224, -0.007920338772237301, -0.027522869408130646, 0.06460857391357422, -0.03390515223145485, -0.026652906090021133, 0.022218946367502213, 0.09101730585098267, -0.09606807678937912, 0.06425009667873383, -0.06467646360397339, -0.024979982525110245, 0.11192034184932709, 0.01209338940680027, 0.017026357352733612, -0.06226548179984093, 0.060257986187934875, 0.02481422759592533, 0.11647920310497284, 0.021263500675559044, 0.046829599887132645, 0.009555434808135033, -0.06756206601858139, 0.04103998839855194, 0.11694369465112686, -0.0314292274415493, -5.089267673952236e-8, -0.02993384748697281, 0.17489244043827057, 0.004915268160402775, 0.03349555283784866, 0.010718146339058876, -0.026636265218257904, 0.04326301068067551, -0.008906475268304348, 0.023653753101825714, 0.04619823023676872, 0.02643938548862934, 0.07004237920045853, -0.02262231707572937, 0.04961661249399185, -0.01868799701333046, 0.03645597770810127, -0.05037444457411766, -0.05506521463394165, -0.0006680472870357335, -0.03626740723848343, 0.005335398018360138, -0.012144365347921848, 0.014179104939103127, 0.07719364017248154, -0.036741361021995544, -0.036716993898153305, 0.028902282938361168, -0.0008172027301043272, 0.03580046072602272, 0.05027815327048302, -0.050785377621650696, -0.0049794865772128105, -0.0901826024055481, 0.11777881532907486, 0.0014659955631941557, -0.042234309017658234, -0.1688249111175537, -0.008348164148628712, 0.09139277040958405, 0.08699927479028702, 0.021352963522076607, -0.05173159018158913, -0.07556096464395523, -0.00823843665421009, 0.025101104751229286, 0.07388167083263397, -0.0025290916673839092, 0.025690969079732895, -0.03503941372036934, 0.0239527877420187, -0.09541434794664383, -0.03492360934615135, -0.006087095942348242, 0.05485735461115837, 0.029659217223525047, -0.022510891780257225, 0.016460629180073738, -0.013928116299211979, -0.02282722480595112, -0.00676886597648263, -0.04215763881802559, -0.017025770619511604, -0.018330376595258713, 0.025535110384225845 ]
0.008784
on the node (or other topological domain), instead of just node labels, which allows you to define rules for which Pods can be co-located on a node. The affinity feature consists of two types of affinity: - \*Node affinity\* functions like the `nodeSelector` field but is more expressive and allows you to specify soft rules. - \*Inter-pod affinity/anti-affinity\* allows you to constrain Pods against labels on other Pods. ### Node affinity Node affinity is conceptually similar to `nodeSelector`, allowing you to constrain which nodes your Pod can be scheduled on based on node labels. There are two types of node affinity: - `requiredDuringSchedulingIgnoredDuringExecution`: The scheduler can't schedule the Pod unless the rule is met. This functions like `nodeSelector`, but with a more expressive syntax. - `preferredDuringSchedulingIgnoredDuringExecution`: The scheduler tries to find a node that meets the rule. If a matching node is not available, the scheduler still schedules the Pod. {{}} In the preceding types, `IgnoredDuringExecution` means that if the node labels change after Kubernetes schedules the Pod, the Pod continues to run. {{}} You can specify node affinities using the `.spec.affinity.nodeAffinity` field in your Pod spec. For example, consider the following Pod spec: {{% code\_sample file="pods/pod-with-node-affinity.yaml" %}} In this example, the following rules apply: - The node \*must\* have a label with the key `topology.kubernetes.io/zone` and the value of that label \*must\* be either `antarctica-east1` or `antarctica-west1`. - The node \*preferably\* has a label with the key `another-node-label-key` and the value `another-node-label-value`. You can use the `operator` field to specify a logical operator for Kubernetes to use when interpreting the rules. You can use `In`, `NotIn`, `Exists`, `DoesNotExist`, `Gt` and `Lt`. Read [Operators](#operators) to learn more about how these work. `NotIn` and `DoesNotExist` allow you to define node anti-affinity behavior. Alternatively, you can use [node taints](/docs/concepts/scheduling-eviction/taint-and-toleration/) to repel Pods from specific nodes. {{}} If you specify both `nodeSelector` and `nodeAffinity`, \*both\* must be satisfied for the Pod to be scheduled onto a node. If you specify multiple terms in `nodeSelectorTerms` associated with `nodeAffinity` types, then the Pod can be scheduled onto a node if one of the specified terms can be satisfied (terms are ORed). If you specify multiple expressions in a single `matchExpressions` field associated with a term in `nodeSelectorTerms`, then the Pod can be scheduled onto a node only if all the expressions are satisfied (expressions are ANDed). {{}} See [Assign Pods to Nodes using Node Affinity](/docs/tasks/configure-pod-container/assign-pods-nodes-using-node-affinity/) for more information. #### Node affinity weight You can specify a `weight` between 1 and 100 for each instance of the `preferredDuringSchedulingIgnoredDuringExecution` affinity type. When the scheduler finds nodes that meet all the other scheduling requirements of the Pod, the scheduler iterates through every preferred rule that the node satisfies and adds the value of the `weight` for that expression to a sum. The final sum is added to the score of other priority functions for the node. Nodes with the highest total score are prioritized when the scheduler makes a scheduling decision for the Pod. For example, consider the following Pod spec: {{% code\_sample file="pods/pod-with-affinity-preferred-weight.yaml" %}} If there are two possible nodes that match the `preferredDuringSchedulingIgnoredDuringExecution` rule, one with the `label-1:key-1` label and another with the `label-2:key-2` label, the scheduler considers the `weight` of each node and adds the weight to the other scores for that node, and schedules the Pod onto the node with the highest final score. {{}} If you want Kubernetes to successfully schedule the Pods in this example, you must have existing nodes with the `kubernetes.io/os=linux` label. {{}} #### Node affinity per scheduling profile {{< feature-state for\_k8s\_version="v1.20" state="beta" >}} When configuring multiple [scheduling profiles](/docs/reference/scheduling/config/#multiple-profiles), you
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/assign-pod-node.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/assign-pod-node.md
[ 0.006492099724709988, 0.01290526520460844, 0.007422295864671469, 0.04296022281050682, 0.028146328404545784, -0.003821983467787504, 0.03556670621037483, -0.024277159944176674, 0.010388855822384357, -0.029475750401616096, -0.0020697228610515594, -0.054249148815870285, 0.010618261061608791, -0.006250614766031504, 0.05562734976410866, -0.0003523258783388883, 0.08104845136404037, 0.0006008486961945891, 0.026527082547545433, -0.030908141285181046, 0.013413597829639912, 0.021627189591526985, -0.010800357908010483, 0.05367594584822655, -0.09355346113443375, 0.04320930317044258, -0.08169302344322205, -0.045468248426914215, 0.07728379219770432, 0.015046577900648117, 0.008564520627260208, 0.013730617240071297, 0.04657848924398422, 0.06439068913459778, 0.03640327230095863, 0.0949416384100914, -0.03761979565024376, -0.07789835333824158, -0.06062906235456467, 0.006204348988831043, 0.051272157579660416, -0.01277976855635643, -0.06259477883577347, -0.01302439533174038, -0.013787531293928623, 0.0021328567527234554, -0.06469013541936874, -0.009308320470154285, -0.10297631472349167, -0.0010420898906886578, 0.00379999284632504, -0.14888769388198853, 0.031340908259153366, 0.030683578923344612, 0.03117973916232586, 0.16568753123283386, 0.042828142642974854, 0.04858553782105446, 0.07838892191648483, 0.005506441462785006, 0.03356017544865608, -0.10400218516588211, 0.007784280460327864, -0.028282267972826958, 0.037240177392959595, -0.02575705386698246, -0.03602708876132965, 0.016243087127804756, 0.09433218836784363, 0.0158805213868618, 0.07832930982112885, 0.004990002606064081, 0.04101347550749779, 0.026651531457901, -0.023480325937271118, 0.06405793130397797, 0.02460593171417713, 0.035207349807024, 0.006676352117210627, -0.046227794140577316, -0.0742572769522667, 0.029797222465276718, 0.06595424562692642, -0.0012650465359911323, -0.004475033842027187, 0.022525599226355553, -0.01998855173587799, -0.021486224606633186, 0.03499622270464897, 0.04504911229014397, 0.034162409603595734, 0.028834259137511253, -0.014942816458642483, -0.10997027903795242, 0.015190604142844677, -0.0108834533020854, -0.015001735650002956, 0.02002941071987152, 0.019204262644052505, 0.028238754719495773, 0.024281518533825874, -0.008597848005592823, -0.09385009855031967, -0.00012504649930633605, 0.040234509855508804, -0.05600404366850853, -0.10021980851888657, -0.06799934059381485, 0.005852655041962862, 0.03257015347480774, -0.0029277626890689135, 0.041773680597543716, 0.03358278423547745, -0.006557770539075136, -0.060514383018016815, 0.06838149577379227, 0.07431884855031967, -0.02313149720430374, 0.09813320636749268, 0.03603602945804596, -0.0022693383507430553, -0.06210106611251831, 0.023853087797760963, -0.04311132803559303, -0.0003281943209003657, 0.009563473984599113, -0.01474285963922739, 7.005168300577383e-33, 0.017627526074647903, -0.098450668156147, -0.04775550588965416, -0.14134055376052856, 0.0185137540102005, -0.07301191985607147, -0.04998185858130455, -0.0026596311945468187, -0.04135419428348541, -0.03774639964103699, -0.01763390563428402, 0.058374155312776566, 0.01863614283502102, -0.01003181841224432, 0.03748033195734024, -0.10642345249652863, 0.01803812012076378, 0.026859229430556297, 0.08395668864250183, -0.033852506428956985, -0.0014860344817861915, -0.07331901788711548, -0.07271196693181992, 0.035048168152570724, 0.003794947871938348, -0.01765034720301628, -0.022549349814653397, -0.09318245947360992, 0.054959263652563095, 0.03733997419476509, -0.023793421685695648, 0.011023562401533127, 0.06421596556901932, 0.06933161616325378, -0.05566120892763138, 0.003871913766488433, 0.0019677523523569107, 0.004255381412804127, -0.08442682772874832, -0.0932350903749466, 0.027176955714821815, 0.031205328181385994, 0.031095564365386963, -0.035820309072732925, 0.06020115315914154, -0.03931693360209465, 0.0292595773935318, -0.0406402163207531, 0.0022725246381014585, 0.004057052079588175, 0.06550388038158417, -0.05624869465827942, 0.0632304921746254, -0.11330556124448776, -0.008191542699933052, 0.000205932607059367, -0.00010144167754333466, 0.03264296427369118, -0.0006734803318977356, 0.09417036175727844, -0.0018415296217426658, -0.03223535791039467, 0.0008046043803915381, -0.013283351436257362, 0.04765477031469345, 0.10139889270067215, -0.04506551846861839, -0.05036235228180885, 0.021918872371315956, 0.051390696316957474, -0.054918449372053146, 0.10496119409799576, -0.06497733294963837, 0.06316729635000229, -0.044175148010253906, -0.036780983209609985, -0.004199268762022257, 0.025342023000121117, -0.1570233851671219, 0.03845593333244324, -0.03453521057963371, 0.07607907801866531, -0.007335807662457228, 0.11955533921718597, 0.007879532873630524, -0.10636717081069946, 0.0293711069971323, 0.038090210407972336, -0.061684031039476395, 0.024931438267230988, 0.05170852690935135, -0.012524829246103764, -0.05541743338108063, 0.046960361301898956, -0.04137264937162399, -5.504354051455104e-33, 0.02076048217713833, -0.04838258773088455, -0.01305113360285759, 0.04514331743121147, 0.007671147119253874, -0.03327299281954765, -0.05509200319647789, -0.057467587292194366, 0.03633159399032593, -0.011649620719254017, -0.05254030227661133, -0.04205814749002457, 0.008312050253152847, 0.046524304896593094, -0.10919809341430664, -0.0018984032794833183, -0.11127620190382004, -0.02865854650735855, -0.02600684203207493, 0.08140156418085098, 0.0025699774269014597, 0.012255984358489513, -0.011206643655896187, -0.007971150800585747, 0.08460798859596252, 0.014412001706659794, 0.016471197828650475, 0.015281269326806068, -0.00661709439009428, -0.010417073965072632, -0.06736775487661362, -0.11814258992671967, -0.02021649293601513, -0.05173509567975998, 0.03955845907330513, -0.029210038483142853, -0.10847477614879608, 0.07412900030612946, 0.01058806013315916, -0.009738205000758171, 0.048019926995038986, 0.04209969565272331, -0.10519859939813614, -0.020261237397789955, -0.027743563055992126, 0.04628218337893486, 0.0201058741658926, 0.05992406979203224, -0.09984565526247025, -0.03029339388012886, -0.05483807250857353, -0.05350303277373314, -0.021064139902591705, 0.07610829919576645, -0.032679129391908646, -0.015192519873380661, 0.0221793744713068, 0.012933563441038132, -0.02111412212252617, -0.010278777219355106, 0.05715104192495346, -0.09506980329751968, 0.02760649099946022, 0.04690456762909889, 0.06312011927366257, -0.060441769659519196, 0.030252641066908836, -0.007323738653212786, -0.027996724471449852, 0.01297849416732788, 0.07221320271492004, 0.043790630996227264, 0.014473154209554195, 0.05727752670645714, -0.031351398676633835, -0.04107534885406494, 0.019171517342329025, -0.019323041662573814, 0.006689829286187887, 0.029264729470014572, -0.08994001150131226, 0.11899161338806152, 0.028323359787464142, 0.059996847063302994, 0.03294065594673157, 0.12266132980585098, 0.021215010434389114, 0.09251540154218674, 0.030861644074320793, 0.07079324126243591, 0.04232101887464523, -0.009394108317792416, -0.009527613408863544, 0.10871554166078568, -0.05389859154820442, -5.237307831862381e-8, 0.001666045282036066, -0.02216213196516037, -0.04018828645348549, 0.009977432899177074, 0.054728951305150986, -0.019493455067276955, 0.06756289303302765, -0.047366295009851456, -0.05030811205506325, 0.05609754100441933, -0.0019686580635607243, -0.00633242167532444, -0.04861218109726906, -0.033364858478307724, 0.031479790806770325, -0.03566160425543785, 0.07744304835796356, 0.05218769982457161, -0.029478516429662704, -0.0011432261671870947, -0.08676861971616745, -0.05207984894514084, 0.015173147432506084, 0.010002877563238144, 0.017140328884124756, -0.013444875366985798, 0.0510963499546051, 0.017882412299513817, 0.10248276591300964, 0.0494106225669384, -0.06355667859315872, -0.008406015112996101, -0.009236282669007778, 0.004369409754872322, -0.06997810304164886, 0.025430908426642418, -0.14649313688278198, 0.007739180698990822, 0.005386375356465578, 0.09430599212646484, -0.006103315856307745, -0.045706670731306076, -0.023064544424414635, -0.02101041004061699, 0.04180120676755905, 0.052146416157484055, 0.05207933485507965, 0.0014277773443609476, 0.009433027356863022, 0.0334734171628952, -0.04454109072685242, -0.07912850379943848, 0.03570513799786568, 0.02605002000927925, -0.0009125752258114517, -0.0001697769039310515, 0.027528133243322372, -0.104240283370018, -0.010178201831877232, -0.02604854293167591, -0.03387442231178284, 0.015178507193922997, 0.05186184495687485, -0.034033048897981644 ]
0.211937
the Pod onto the node with the highest final score. {{}} If you want Kubernetes to successfully schedule the Pods in this example, you must have existing nodes with the `kubernetes.io/os=linux` label. {{}} #### Node affinity per scheduling profile {{< feature-state for\_k8s\_version="v1.20" state="beta" >}} When configuring multiple [scheduling profiles](/docs/reference/scheduling/config/#multiple-profiles), you can associate a profile with a node affinity, which is useful if a profile only applies to a specific set of nodes. To do so, add an `addedAffinity` to the `args` field of the [`NodeAffinity` plugin](/docs/reference/scheduling/config/#scheduling-plugins) in the [scheduler configuration](/docs/reference/scheduling/config/). For example: ```yaml apiVersion: kubescheduler.config.k8s.io/v1 kind: KubeSchedulerConfiguration profiles: - schedulerName: default-scheduler - schedulerName: foo-scheduler pluginConfig: - name: NodeAffinity args: addedAffinity: requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: scheduler-profile operator: In values: - foo ``` The `addedAffinity` is applied to all Pods that set `.spec.schedulerName` to `foo-scheduler`, in addition to the NodeAffinity specified in the PodSpec. That is, in order to match the Pod, nodes need to satisfy `addedAffinity` and the Pod's `.spec.NodeAffinity`. Since the `addedAffinity` is not visible to end users, its behavior might be unexpected to them. Use node labels that have a clear correlation to the scheduler profile name. {{< note >}} The DaemonSet controller, which [creates Pods for DaemonSets](/docs/concepts/workloads/controllers/daemonset/#how-daemon-pods-are-scheduled), does not support scheduling profiles. When the DaemonSet controller creates Pods, the default Kubernetes scheduler places those Pods and honors any `nodeAffinity` rules in the DaemonSet controller. {{< /note >}} ### Inter-pod affinity and anti-affinity Inter-pod affinity and anti-affinity allow you to constrain which nodes your Pods can be scheduled on based on the labels of Pods already running on that node, instead of the node labels. #### Types of Inter-pod Affinity and Anti-affinity Inter-pod affinity and anti-affinity take the form "this Pod should (or, in the case of anti-affinity, should not) run in an X if that X is already running one or more Pods that meet rule Y", where X is a topology domain like node, rack, cloud provider zone or region, or similar and Y is the rule Kubernetes tries to satisfy. You express these rules (Y) as [label selectors](/docs/concepts/overview/working-with-objects/labels/#label-selectors) with an optional associated list of namespaces. Pods are namespaced objects in Kubernetes, so Pod labels also implicitly have namespaces. Any label selectors for Pod labels should specify the namespaces in which Kubernetes should look for those labels. You express the topology domain (X) using a `topologyKey`, which is the key for the node label that the system uses to denote the domain. For examples, see [Well-Known Labels, Annotations and Taints](/docs/reference/labels-annotations-taints/). {{< note >}} Inter-pod affinity and anti-affinity require substantial amounts of processing which can slow down scheduling in large clusters significantly. We do not recommend using them in clusters larger than several hundred nodes. {{}} {{< note >}} Pod anti-affinity requires nodes to be consistently labeled, in other words, every node in the cluster must have an appropriate label matching `topologyKey`. If some or all nodes are missing the specified `topologyKey` label, it can lead to unintended behavior. {{}} Similar to [node affinity](#node-affinity) are two types of Pod affinity and anti-affinity as follows: - `requiredDuringSchedulingIgnoredDuringExecution` - `preferredDuringSchedulingIgnoredDuringExecution` For example, you could use `requiredDuringSchedulingIgnoredDuringExecution` affinity to tell the scheduler to co-locate Pods of two services in the same cloud provider zone because they communicate with each other a lot. Similarly, you could use `preferredDuringSchedulingIgnoredDuringExecution` anti-affinity to spread Pods from a service across multiple cloud provider zones. To use inter-pod affinity, use the `affinity.podAffinity` field in the Pod spec. For inter-pod anti-affinity, use the `affinity.podAntiAffinity` field in the Pod spec. #### Scheduling Behavior When scheduling a new Pod, the Kubernetes scheduler evaluates the Pod's affinity/anti-affinity rules in
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/assign-pod-node.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/assign-pod-node.md
[ 0.04919671267271042, -0.017284680157899857, 0.02844262309372425, 0.054063830524683, -0.011948619037866592, 0.03309381380677223, -0.03786424547433853, -0.024233326315879822, -0.009532934986054897, 0.017163053154945374, -0.09202531725168228, -0.04510034993290901, 0.011250784620642662, 0.025067118927836418, 0.00905214436352253, -0.005820751190185547, 0.01816178485751152, 0.016510728746652603, 0.01325293444097042, -0.07960985600948334, 0.056827884167432785, -0.02699880860745907, 0.0542336069047451, -0.003492503659799695, -0.03330297768115997, -0.05324561893939972, -0.07570385187864304, -0.014653238467872143, 0.00992211326956749, 0.009564808569848537, -0.026490453630685806, -0.00003508259396767244, 0.058384962379932404, 0.04653491824865341, 0.024934394285082817, 0.056857090443372726, -0.0528402142226696, -0.12347841262817383, -0.051269929856061935, 0.04115955904126167, 0.048560358583927155, -0.011180699802935123, -0.07694647461175919, -0.04301942139863968, -0.010850924998521805, -0.012781354598701, -0.059222206473350525, 0.00728042284026742, -0.00261385808698833, 0.0024773329496383667, 0.032341647893190384, -0.1150740385055542, 0.06464073061943054, 0.01903335191309452, 0.07761190086603165, 0.10490758717060089, 0.00443434389308095, 0.016713613644242287, 0.09486941248178482, -0.016295576468110085, 0.015812667086720467, -0.05123395845293999, 0.02891317568719387, -0.021870024502277374, 0.04845258221030235, -0.000758712412789464, -0.018902406096458435, 0.020572034642100334, -0.007515693549066782, 0.03999499976634979, 0.1042369157075882, -0.038697391748428345, 0.018775751814246178, -0.013646465726196766, 0.02603805996477604, 0.05407111719250679, 0.003925479482859373, 0.07439107447862625, -0.031203750520944595, -0.02691098302602768, -0.04741103947162628, -0.004685381893068552, 0.050895266234874725, -0.03799723461270332, -0.05888812616467476, -0.021828651428222656, -0.012806693091988564, -0.050889164209365845, 0.051160480827093124, 0.06728287786245346, 0.019412733614444733, 0.01568565145134926, 0.00669836113229394, -0.09269107133150101, 0.05947764217853546, 0.03586319461464882, -0.02535047009587288, -0.012018960900604725, 0.03603721410036087, 0.0001677034597378224, -0.027193190529942513, -0.03372788056731224, -0.02230323664844036, 0.0779508724808693, 0.08627234399318695, -0.034352678805589676, -0.07492729276418686, -0.04211443290114403, -0.06473327428102493, -0.010736582800745964, 0.06307538598775864, 0.08508268743753433, 0.0650394931435585, 0.025660665705800056, 0.00369679881259799, 0.0844331830739975, 0.05052969232201576, -0.008066016249358654, 0.04416923224925995, 0.10146510601043701, -0.02685156650841236, -0.08813615888357162, 0.023679858073592186, -0.006065927445888519, -0.04864984378218651, 0.06250480562448502, -0.029631126672029495, 4.2301512359423615e-33, 0.04437995329499245, -0.06037326902151108, 0.00037200420047156513, -0.11883656680583954, 0.010036211460828781, -0.08675327152013779, -0.04087875410914421, -0.014407147653400898, -0.05087536200881004, -0.08306344598531723, -0.05814545974135399, 0.05720825493335724, 0.024987710639834404, 0.0024422318674623966, -0.004457895644009113, -0.07740390300750732, 0.005846906453371048, 0.05401413142681122, 0.07379761338233948, -0.015200464054942131, 0.037098076194524765, -0.1055113822221756, -0.1079876720905304, -0.023992745205760002, 0.029114294797182083, -0.006327037699520588, 0.06509473919868469, -0.10387138277292252, -0.01806735061109066, 0.022100040689110756, -0.008153237402439117, -0.00542196212336421, 0.021056339144706726, 0.07071646302938461, -0.1303369253873825, -0.025185508653521538, -0.03341308981180191, 0.06963285803794861, -0.0735829696059227, -0.0015744430711492896, 0.026735782623291016, 0.023793218657374382, 0.002542566740885377, -0.07572007179260254, 0.031915970146656036, -0.013744831085205078, 0.03728344663977623, -0.04203120619058609, 0.025583432987332344, 0.05548578128218651, 0.04059363901615143, -0.05984659865498543, 0.043728798627853394, -0.058590035885572433, 0.018266525119543076, -0.011943968944251537, 0.07136330008506775, -0.042031366378068924, -0.0005961165297776461, 0.01714450679719448, -0.024961451068520546, -0.06570670008659363, -0.017065709456801414, -0.032225508242845535, 0.03471432998776436, 0.06069815158843994, -0.047731682658195496, 0.03258174657821655, 0.034563396126031876, 0.04821275919675827, -0.05472438037395477, 0.06066535413265228, -0.022450421005487442, -0.00013965328980702907, -0.007413853425532579, -0.052379265427589417, 0.048172228038311005, 0.007538399193435907, -0.15183258056640625, 0.06153858080506325, -0.004581208806484938, 0.07421654462814331, -0.018206695094704628, 0.010280554182827473, 0.033846382051706314, -0.02308553270995617, -0.00001800059362722095, 0.03837231919169426, -0.047383639961481094, 0.005924510769546032, 0.05688582360744476, -0.03834111988544464, -0.008485541678965092, 0.03655252978205681, -0.0954541340470314, -2.5782890851462882e-33, 0.07215695828199387, -0.011267619207501411, 0.03805723413825035, -0.002598450519144535, 0.06579870730638504, -0.028828496113419533, -0.014835240319371223, -0.0300204586237669, -0.0006958797457627952, -0.0051894658245146275, -0.03507566079497337, -0.09056733548641205, 0.06507569551467896, -0.006053955759853125, -0.10045100003480911, -0.006888378877192736, -0.09079129248857498, -0.011599280871450901, 0.03190956264734268, 0.005074209999293089, 0.018727749586105347, -0.04893312230706215, 0.034480608999729156, 0.0021964595653116703, 0.07066013664007187, -0.0018964692717418075, 0.02063276618719101, 0.03883180022239685, -0.06370911747217178, -0.00380445783957839, 0.012706296518445015, -0.12101387232542038, -0.04507992044091225, 0.008286888711154461, 0.07398425042629242, -0.0316961407661438, -0.08621524274349213, 0.05891125649213791, 0.02310848981142044, 0.08985923230648041, 0.08054360002279282, 0.010525453835725784, -0.08307110518217087, -0.026631468906998634, -0.021959731355309486, 0.05669244006276131, 0.019015518948435783, -0.016184769570827484, -0.04696264863014221, -0.09986994415521622, -0.056357868015766144, -0.014729502610862255, -0.047039423137903214, 0.11659431457519531, -0.028200840577483177, -0.01959117315709591, 0.015421648509800434, 0.08265814185142517, 0.03231385350227356, 0.015166315250098705, 0.07787177711725235, -0.07582074403762817, 0.0806647315621376, 0.06199664622545242, 0.043519582599401474, -0.06890855729579926, 0.026933813467621803, 0.00570656405761838, -0.08893173187971115, 0.06043324992060661, -0.019229544326663017, 0.02257862314581871, 0.06822582334280014, 0.07720540463924408, -0.047820478677749634, -0.04282177984714508, 0.005443792324513197, 0.028063058853149414, 0.012080548331141472, 0.03386949002742767, -0.12192772328853607, 0.09837321192026138, -0.049909695982933044, 0.01799611933529377, -0.006078322883695364, 0.10251668095588684, 0.07798240333795547, 0.10706059634685516, 0.07263509184122086, 0.06415820121765137, 0.030000165104866028, -0.008818802423775196, -0.020943427458405495, 0.08479121327400208, -0.022371213883161545, -4.9915136912659364e-8, 0.06169012561440468, 0.007867378182709217, -0.08684584498405457, 0.05729936435818672, 0.03851662203669548, -0.04363372549414635, 0.03373001888394356, -0.0009005854954011738, -0.03264794498682022, 0.01484802458435297, 0.059087496250867844, 0.04633978009223938, -0.013859300874173641, 0.014779951423406601, 0.07058732956647873, -0.05197693035006523, 0.028641486540436745, 0.04509224370121956, 0.01729230023920536, -0.05227365717291832, -0.010606814175844193, -0.018407801166176796, 0.036750342696905136, 0.0005708216340281069, -0.002757811453193426, 0.044462934136390686, 0.07171633839607239, 0.015721283853054047, 0.042818114161491394, 0.01671120896935463, -0.10205890238285065, -0.006827786099165678, -0.07027123123407364, -0.021541669964790344, -0.040162935853004456, 0.032073765993118286, -0.18604601919651031, 0.054356254637241364, -0.01522346492856741, 0.13633297383785248, 0.03948969393968582, -0.04987843334674835, -0.07857415080070496, -0.007319702301174402, 0.01986515522003174, 0.04670826718211174, -0.0031941549386829138, 0.06817228347063065, 0.03591717407107353, -0.00343644549138844, -0.033145271241664886, -0.06711987406015396, 0.023953765630722046, 0.016647322103381157, -0.022200969979166985, -0.025121046230196953, -0.007688663899898529, -0.05933736637234688, 0.008089306764304638, -0.042913228273391724, -0.010922994464635849, -0.03467046841979027, -0.001260783290490508, -0.02175845578312874 ]
0.103076
spread Pods from a service across multiple cloud provider zones. To use inter-pod affinity, use the `affinity.podAffinity` field in the Pod spec. For inter-pod anti-affinity, use the `affinity.podAntiAffinity` field in the Pod spec. #### Scheduling Behavior When scheduling a new Pod, the Kubernetes scheduler evaluates the Pod's affinity/anti-affinity rules in the context of the current cluster state: 1. Hard Constraints (Node Filtering): - `podAffinity.requiredDuringSchedulingIgnoredDuringExecution` and `podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution`: - The scheduler ensures the new Pod is assigned to nodes that satisfy these required affinity and anti-affinity rules based on existing Pods. 2. Soft Constraints (Scoring): - `podAffinity.preferredDuringSchedulingIgnoredDuringExecution` and `podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution`: - The scheduler scores nodes based on how well they meet these preferred affinity and anti-affinity rules to optimize Pod placement. 3. Ignored Fields: - Existing Pods' `podAffinity.preferredDuringSchedulingIgnoredDuringExecution`: - These preferred affinity rules are not considered during the scheduling decision for new Pods. - Existing Pods' `podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution`: - Similarly, preferred anti-affinity rules of existing Pods are ignored during scheduling. #### Scheduling a Group of Pods with Inter-pod Affinity to Themselves If the current Pod being scheduled is the first in a series that have affinity to themselves, it is allowed to be scheduled if it passes all other affinity checks. This is determined by verifying that no other Pod in the cluster matches the namespace and selector of this Pod, that the Pod matches its own terms, and the chosen node matches all requested topologies. This ensures that there will not be a deadlock even if all the Pods have inter-pod affinity specified. #### Pod Affinity Example {#an-example-of-a-pod-that-uses-pod-affinity} Consider the following Pod spec: {{% code\_sample file="pods/pod-with-pod-affinity.yaml" %}} This example defines one Pod affinity rule and one Pod anti-affinity rule. The Pod affinity rule uses the "hard" `requiredDuringSchedulingIgnoredDuringExecution`, while the anti-affinity rule uses the "soft" `preferredDuringSchedulingIgnoredDuringExecution`. The affinity rule specifies that the scheduler is allowed to place the example Pod on a node only if that node belongs to a specific [zone](/docs/concepts/scheduling-eviction/topology-spread-constraints/) where other Pods have been labeled with `security=S1`. For instance, if we have a cluster with a designated zone, let's call it "Zone V," consisting of nodes labeled with `topology.kubernetes.io/zone=V`, the scheduler can assign the Pod to any node within Zone V, as long as there is at least one Pod within Zone V already labeled with `security=S1`. Conversely, if there are no Pods with `security=S1` labels in Zone V, the scheduler will not assign the example Pod to any node in that zone. The anti-affinity rule specifies that the scheduler should try to avoid scheduling the Pod on a node if that node belongs to a specific [zone](/docs/concepts/scheduling-eviction/topology-spread-constraints/) where other Pods have been labeled with `security=S2`. For instance, if we have a cluster with a designated zone, let's call it "Zone R," consisting of nodes labeled with `topology.kubernetes.io/zone=R`, the scheduler should avoid assigning the Pod to any node within Zone R, as long as there is at least one Pod within Zone R already labeled with `security=S2`. Conversely, the anti-affinity rule does not impact scheduling into Zone R if there are no Pods with `security=S2` labels. To get yourself more familiar with the examples of Pod affinity and anti-affinity, refer to the [design proposal](https://git.k8s.io/design-proposals-archive/scheduling/podaffinity.md). You can use the `In`, `NotIn`, `Exists` and `DoesNotExist` values in the `operator` field for Pod affinity and anti-affinity. Read [Operators](#operators) to learn more about how these work. In principle, the `topologyKey` can be any allowed label key with the following exceptions for performance and security reasons: - For Pod affinity and anti-affinity, an empty `topologyKey` field is not allowed in both `requiredDuringSchedulingIgnoredDuringExecution` and `preferredDuringSchedulingIgnoredDuringExecution`. - For `requiredDuringSchedulingIgnoredDuringExecution` Pod anti-affinity rules, the admission controller `LimitPodHardAntiAffinityTopology` limits `topologyKey`
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/assign-pod-node.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/assign-pod-node.md
[ 0.017026768997311592, -0.03573786839842796, 0.06880486756563187, 0.04086752608418465, 0.056465715169906616, -0.03772537410259247, 0.013142273761332035, -0.029059357941150665, -0.005199123173952103, 0.002851063385605812, -0.02215772680938244, -0.047578807920217514, 0.005664026364684105, 0.012140856124460697, -0.03444722667336464, -0.020856333896517754, 0.08502236753702164, -0.019831115379929543, -0.04425385594367981, 0.018490755930542946, 0.04831064119935036, -0.016096988692879677, 0.008813448250293732, 0.010285516269505024, -0.041639544069767, 0.005489214323461056, -0.06037789583206177, -0.04046478495001793, 0.07891114801168442, 0.009437618777155876, -0.04500309377908707, 0.020244324579834938, 0.09579319506883621, 0.037301018834114075, 0.04824712499976158, 0.07164643704891205, -0.006518871523439884, -0.0765928328037262, -0.06933296471834183, 0.05234597995877266, 0.012070133350789547, -0.05889308080077171, -0.08091568946838379, -0.011041338555514812, 0.03102938085794449, 0.0164367463439703, -0.06131773814558983, 0.01584642007946968, -0.07388029247522354, 0.018854649737477303, 0.03457821160554886, -0.07031694054603577, 0.02579156868159771, 0.0638364627957344, 0.02899366244673729, 0.0953875407576561, -0.0016965860268101096, 0.07171180099248886, 0.07539072632789612, 0.013030142523348331, -0.0048217857256531715, -0.07721856981515884, 0.008097304031252861, -0.01647455058991909, 0.07839687168598175, -0.029175102710723877, 0.004605965223163366, -0.013460654765367508, 0.07992327958345413, 0.03707792982459068, 0.03209979087114334, 0.010329672135412693, 0.00245360704138875, 0.0016715220408514142, -0.005975604988634586, 0.05344846844673157, 0.011702203191816807, 0.012082505039870739, 0.012019126676023006, -0.030078407377004623, -0.022665636613965034, 0.03557819128036499, 0.09697435796260834, -0.029021326452493668, 0.001322272582910955, -0.03803325444459915, -0.017983512952923775, -0.015273110009729862, 0.06316806375980377, 0.03445685654878616, 0.04853992909193039, 0.00986879225820303, -0.013840548694133759, -0.04813578724861145, 0.06418611854314804, 0.004402934107929468, -0.03855311498045921, -0.012360166758298874, 0.01906616985797882, 0.008133791387081146, -0.005710679106414318, -0.03806692734360695, -0.06906455010175705, -0.001992715522646904, 0.0728970468044281, -0.06738532334566116, -0.07381204515695572, -0.0346183106303215, -0.012568172998726368, 0.04068632423877716, 0.06040825694799423, 0.06676928699016571, 0.06035240739583969, 0.004114220850169659, -0.0471322126686573, 0.09859640151262283, 0.0527188666164875, -0.008327554911375046, 0.09496963024139404, 0.041405145078897476, -0.014681213535368443, -0.0927564948797226, 0.05544532462954521, -0.020936142653226852, -0.021697871387004852, 0.02539977803826332, -0.07597366720438004, 7.027165473301114e-33, 0.0035111086908727884, -0.08196096867322922, -0.027017004787921906, -0.1290014684200287, -0.04659995064139366, -0.05846855044364929, -0.051346879452466965, 0.0017412247834727168, -0.03939655050635338, -0.06798050552606583, -0.06184985861182213, 0.07314173132181168, 0.01762581430375576, -0.024189798161387444, 0.025054018944501877, -0.0788647010922432, -0.023960204795002937, 0.0659598633646965, 0.06934547424316406, -0.007943900302052498, 0.033619605004787445, -0.09284402430057526, -0.05765233188867569, 0.029168443754315376, 0.023145023733377457, 0.005761920474469662, 0.012526044622063637, -0.10777904838323593, 0.03539727255702019, 0.03200804069638252, -0.02710665762424469, -0.0026487084105610847, 0.022427918389439583, 0.027113383635878563, -0.0727897584438324, 0.019722646102309227, -0.004342467524111271, -0.0090218186378479, -0.031367331743240356, -0.061834629625082016, 0.031610291451215744, 0.013902674429118633, 0.04625990614295006, -0.06761486828327179, 0.0876523107290268, -0.054134175181388855, 0.04247276484966278, -0.03545141592621803, -0.040030281990766525, 0.037245847284793854, 0.01604228839278221, -0.052086979150772095, 0.09444725513458252, -0.09934548288583755, -0.03930483013391495, 0.015911780297756195, 0.053447555750608444, -0.019714951515197754, -0.012082010507583618, 0.10261411964893341, -0.03560231253504753, -0.09733422100543976, 0.0004669214249588549, -0.03956921771168709, 0.044539932161569595, 0.05244649574160576, -0.06582868844270706, 0.028024792671203613, -0.001817993470467627, 0.05137846991419792, -0.06382691115140915, 0.0436275340616703, -0.023778796195983887, 0.059156253933906555, -0.024327978491783142, -0.058797962963581085, 0.04035469889640808, 0.079444020986557, -0.1503477841615677, 0.007246924098581076, -0.051773473620414734, 0.1253422051668167, -0.022037358954548836, 0.06821878999471664, -0.0665975958108902, -0.07783763855695724, 0.011144815944135189, 0.0556659959256649, -0.09062083065509796, 0.002177736721932888, 0.05046899989247322, -0.038353774696588516, -0.05734759196639061, 0.052147842943668365, -0.05641287565231323, -5.643008752922378e-33, 0.053860459476709366, -0.038460005074739456, -0.05500217154622078, 0.06662597507238388, 0.04553304240107536, -0.026181235909461975, -0.01538680400699377, -0.025013642385601997, 0.05534069240093231, -0.027355780825018883, -0.016409752890467644, -0.042887333780527115, 0.0078526446595788, 0.03943807631731033, -0.13957646489143372, 0.025347866117954254, -0.11866000294685364, 0.00940355658531189, -0.02332439087331295, 0.03130441531538963, 0.007927967235445976, -0.016061991453170776, 0.06002243608236313, 0.015537400729954243, 0.060966406017541885, 0.013738005422055721, 0.006246679462492466, 0.0004148418374825269, -0.036292169243097305, -0.025860177353024483, -0.040793921798467636, -0.10919344425201416, -0.05545920506119728, -0.013891941867768764, 0.02194572053849697, -0.02543875202536583, -0.119432732462883, 0.055256783962249756, 0.01610419899225235, 0.022595912218093872, 0.05576859787106514, 0.048329636454582214, -0.08859070390462875, -0.014911330305039883, -0.02916567772626877, 0.05527877062559128, 0.05990784987807274, -0.04439472034573555, -0.053973712027072906, -0.07802608609199524, -0.027609851211309433, -0.03611891344189644, 0.015335422940552235, 0.12894108891487122, -0.041316237300634384, -0.020091548562049866, -0.008550026454031467, 0.01917877420783043, -0.05014602467417717, 0.015871183946728706, 0.08102341741323471, -0.07161655277013779, 0.034893929958343506, 0.036553725600242615, 0.06130212917923927, -0.06427699327468872, 0.06442594528198242, -0.005450076889246702, -0.022042052820324898, 0.029119228944182396, 0.014046018943190575, 0.017597584053874016, 0.06571001559495926, 0.08817709237337112, -0.021784072741866112, -0.035338710993528366, 0.05281906947493553, -0.05168093740940094, 0.02958863228559494, -0.014163410291075706, -0.1105090081691742, 0.05688482150435448, -0.019166801124811172, 0.04774824529886246, 0.011255476623773575, 0.11363421380519867, 0.08308257162570953, 0.07878442853689194, 0.040496788918972015, 0.06484507769346237, -0.02828177437186241, -0.029049133881926537, -0.002919157035648823, 0.07042155414819717, -0.04768944904208183, -4.9196646756399787e-8, 0.06651907414197922, -0.014660578221082687, -0.06460598856210709, 0.011199265718460083, 0.05946562439203262, -0.026213761419057846, -0.0016769923968240619, 0.001368610537610948, -0.06938529014587402, -0.000648380140773952, 0.04520249739289284, -0.014092658646404743, -0.04125293716788292, -0.01570756360888481, 0.10213328152894974, -0.020479392260313034, 0.05827074870467186, 0.07115226984024048, -0.05175280198454857, -0.03267602249979973, -0.08796630799770355, -0.03702744469046593, -0.02304404228925705, 0.0016765376785770059, 0.03845088183879852, 0.027194257825613022, 0.08873333781957626, 0.009075253270566463, 0.08787790685892105, 0.00450130645185709, -0.07896271347999573, -0.008192905224859715, -0.019922487437725067, -0.014999320730566978, -0.08493883162736893, 0.09700977057218552, -0.17113731801509857, 0.021840384230017662, -0.02347997948527336, 0.1153368130326271, 0.005311957094818354, 0.004447544924914837, -0.036721210926771164, -0.039608944207429886, 0.05691469833254814, 0.04483189061284065, 0.013032178394496441, 0.047286469489336014, -0.0028378323186188936, 0.01926344819366932, 0.004510259721428156, -0.048406265676021576, 0.002698647091165185, 0.037614524364471436, -0.017691152170300484, -0.0016972930170595646, -0.011582162231206894, -0.06704987585544586, 0.05816897377371788, -0.019804852083325386, -0.017323818057775497, 0.027157742530107498, -0.007685305550694466, -0.02718573808670044 ]
0.161423
work. In principle, the `topologyKey` can be any allowed label key with the following exceptions for performance and security reasons: - For Pod affinity and anti-affinity, an empty `topologyKey` field is not allowed in both `requiredDuringSchedulingIgnoredDuringExecution` and `preferredDuringSchedulingIgnoredDuringExecution`. - For `requiredDuringSchedulingIgnoredDuringExecution` Pod anti-affinity rules, the admission controller `LimitPodHardAntiAffinityTopology` limits `topologyKey` to `kubernetes.io/hostname`. You can modify or disable the admission controller if you want to allow custom topologies. In addition to `labelSelector` and `topologyKey`, you can optionally specify a list of namespaces which the `labelSelector` should match against using the `namespaces` field at the same level as `labelSelector` and `topologyKey`. If omitted or empty, `namespaces` defaults to the namespace of the Pod where the affinity/anti-affinity definition appears. #### Namespace Selector {{< feature-state for\_k8s\_version="v1.24" state="stable" >}} You can also select matching namespaces using `namespaceSelector`, which is a label query over the set of namespaces. The affinity term is applied to namespaces selected by both `namespaceSelector` and the `namespaces` field. Note that an empty `namespaceSelector` ({}) matches all namespaces, while a null or empty `namespaces` list and null `namespaceSelector` matches the namespace of the Pod where the rule is defined. #### matchLabelKeys {{< feature-state feature\_gate\_name="MatchLabelKeysInPodAffinity" >}} {{< note >}} The `matchLabelKeys` field is a beta-level field and is enabled by default in Kubernetes {{< skew currentVersion >}}. When you want to disable it, you have to disable it explicitly via the `MatchLabelKeysInPodAffinity` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/). {{< /note >}} Kubernetes includes an optional `matchLabelKeys` field for Pod affinity or anti-affinity. The field specifies keys for the labels that should match with the incoming Pod's labels, when satisfying the Pod (anti)affinity. The keys are used to look up values from the Pod labels; those key-value labels are combined (using `AND`) with the match restrictions defined using the `labelSelector` field. The combined filtering selects the set of existing Pods that will be taken into Pod (anti)affinity calculation. {{< caution >}} It's not recommended to use `matchLabelKeys` with labels that might be updated directly on pods. Even if you edit the pod's label that is specified at `matchLabelKeys` \*\*directly\*\*, (that is, not via a deployment), kube-apiserver doesn't reflect the label update onto the merged `labelSelector`. {{< /caution >}} A common use case is to use `matchLabelKeys` with `pod-template-hash` (set on Pods managed as part of a Deployment, where the value is unique for each revision). Using `pod-template-hash` in `matchLabelKeys` allows you to target the Pods that belong to the same revision as the incoming Pod, so that a rolling upgrade won't break affinity. ```yaml apiVersion: apps/v1 kind: Deployment metadata: name: application-server ... spec: template: spec: affinity: podAffinity: requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: app operator: In values: - database topologyKey: topology.kubernetes.io/zone # Only Pods from a given rollout are taken into consideration when calculating pod affinity. # If you update the Deployment, the replacement Pods follow their own affinity rules # (if there are any defined in the new Pod template) matchLabelKeys: - pod-template-hash ``` #### mismatchLabelKeys {{< feature-state feature\_gate\_name="MatchLabelKeysInPodAffinity" >}} {{< note >}} The `mismatchLabelKeys` field is a beta-level field and is enabled by default in Kubernetes {{< skew currentVersion >}}. When you want to disable it, you have to disable it explicitly via the `MatchLabelKeysInPodAffinity` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/). {{< /note >}} Kubernetes includes an optional `mismatchLabelKeys` field for Pod affinity or anti-affinity. The field specifies keys for the labels that should not match with the incoming Pod's labels, when satisfying the Pod (anti)affinity. {{< caution >}} It's not recommended to use `mismatchLabelKeys` with labels that might be updated directly on pods. Even if you edit the pod's label that is specified at `mismatchLabelKeys` \*\*directly\*\*, (that is, not
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/assign-pod-node.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/assign-pod-node.md
[ 0.05765264108777046, -0.023074544966220856, -0.03641238436102867, -0.04984624311327934, -0.025713926181197166, 0.04455976188182831, 0.050297822803258896, 0.004716531839221716, 0.014333370141685009, 0.010496909730136395, 0.004744932986795902, -0.03694489970803261, 0.044035863131284714, -0.013046574778854847, 0.028232645243406296, -0.005719903856515884, 0.048426032066345215, -0.01673811301589012, 0.06023217365145683, -0.03182532638311386, -0.008699427358806133, 0.026976503431797028, 0.018463971093297005, 0.011375163681805134, -0.10697458684444427, 0.02502453699707985, -0.057021718472242355, 0.06663922965526581, 0.04158468171954155, -0.013941935263574123, -0.023026641458272934, 0.03324953094124794, 0.0099622942507267, 0.030741862952709198, 0.09731414169073105, 0.0075926887802779675, -0.049036119133234024, 0.012596853077411652, -0.06891007721424103, -0.022226573899388313, 0.06677141040563583, -0.03363020718097687, -0.02408839948475361, 0.02498577907681465, -0.009733946993947029, 0.037847116589546204, -0.06490038335323334, -0.10795459151268005, -0.049207329750061035, 0.040423888713121414, -0.001795124146156013, -0.05759364739060402, 0.005320878699421883, -0.0300802830606699, 0.029543988406658173, 0.08859949558973312, -0.005556225776672363, 0.010920943692326546, 0.0665944367647171, 0.030378276482224464, 0.054970066994428635, -0.05041913688182831, 0.022214647382497787, -0.03891680762171745, 0.011542236432433128, 0.02021714299917221, -0.0171104297041893, 0.03200221434235573, 0.08174112439155579, 0.04363185539841652, 0.1096794456243515, 0.0076783522963523865, 0.0007479769410565495, -0.06439901888370514, -0.022680189460515976, 0.02018595114350319, -0.10147720575332642, 0.05371477082371712, 0.055836524814367294, -0.0549270324409008, -0.010128341615200043, 0.03499886021018028, 0.049187712371349335, -0.018037790432572365, -0.029633495956659317, 0.024117933586239815, -0.05452689900994301, -0.09874177724123001, -0.036764275282621384, -0.006059071980416775, 0.01915114000439644, -0.10481709241867065, 0.03734690323472023, -0.11121448874473572, 0.024133864790201187, -0.01654002070426941, -0.06989648938179016, -0.03797454386949539, 0.018559157848358154, 0.012216423638164997, -0.03996777907013893, -0.06599931418895721, -0.07044366747140884, -0.025868551805615425, 0.05949284881353378, -0.02792988531291485, 0.030058886855840683, -0.009744991548359394, 0.010618245229125023, 0.01906658709049225, -0.011685996316373348, 0.04221739619970322, 0.04799167439341545, 0.02507205121219158, -0.00691520469263196, 0.09575635939836502, 0.07787465304136276, -0.052527282387018204, 0.10291586816310883, 0.06316588819026947, -0.07145876437425613, -0.09690593183040619, 0.006834935396909714, -0.03430921211838722, -0.11644724011421204, 0.06851445138454437, -0.04882362112402916, 4.27551723636044e-33, 0.03298654034733772, 0.0074745723977684975, -0.006738818250596523, -0.09929700940847397, -0.000052442599553614855, -0.07364257425069809, -0.06272232532501221, -0.05300504341721535, -0.004100687801837921, -0.0006403327570296824, -0.005737860221415758, 0.0554502047598362, -0.021777017042040825, -0.02900857850909233, 0.05186114087700844, -0.014214770868420601, -0.04202347621321678, 0.10216949135065079, 0.05219794064760208, -0.047376636415719986, 0.01581253670156002, -0.05160147696733475, -0.04875821992754936, 0.014471083879470825, 0.036066532135009766, -0.04056011140346527, -0.05442792922258377, -0.06249205023050308, 0.029830142855644226, 0.02957567572593689, -0.03987594693899155, -0.0012352876365184784, 0.003934252541512251, 0.029075048863887787, -0.040311049669981, -0.034941595047712326, 0.011264178901910782, 0.029721492901444435, -0.09326588362455368, -0.04605171084403992, 0.012487855739891529, 0.023377947509288788, 0.007870487868785858, -0.037221428006887436, 0.039655182510614395, 0.04561839625239372, 0.04811464995145798, -0.029658298939466476, 0.040020667016506195, -0.02299249731004238, 0.0011428107973188162, -0.07397246360778809, 0.007885982282459736, -0.03972218558192253, -0.03292897343635559, -0.05036776512861252, 0.05857851728796959, 0.017128417268395424, 0.007541092112660408, 0.09777068346738815, -0.09630230814218521, -0.08303207904100418, 0.004274819046258926, 0.012348898686468601, 0.05829472467303276, 0.019016865640878677, 0.026030005887150764, 0.00041157432133331895, 0.02359936200082302, -0.04409591853618622, -0.07507902383804321, 0.028705844655632973, -0.11339086294174194, 0.01732456684112549, 0.009072498418390751, -0.09934615343809128, -0.013870998285710812, 0.05086695775389671, -0.10173441469669342, 0.025982968509197235, 0.055184829980134964, 0.07615823298692703, -0.004053052514791489, 0.09715820848941803, 0.02831967920064926, -0.04121867194771767, 0.027872834354639053, -0.00976464431732893, -0.013646697625517845, 0.049693018198013306, 0.021077416837215424, 0.025542564690113068, -0.003377029672265053, 0.07266733050346375, -0.10636258870363235, -3.791821882148208e-33, 0.028148753568530083, -0.040393900126218796, 0.03542937710881233, -0.002428023610264063, 0.02308010496199131, 0.0439063161611557, 0.05060562118887901, 0.06811021268367767, 0.021943479776382446, -0.08543302118778229, 0.05678379163146019, -0.046231575310230255, 0.10245614498853683, -0.0035811292473226786, -0.09120608121156693, -0.05328318849205971, -0.11971110105514526, 0.007762960623949766, 0.0053170002065598965, 0.03444760665297508, -0.005085128825157881, -0.057831455022096634, -0.03466038405895233, 0.003374464111402631, 0.022410135716199875, 0.08369389176368713, -0.048568323254585266, 0.04615011066198349, -0.008651895448565483, 0.019443340599536896, -0.03825661540031433, -0.044173818081617355, -0.0467156283557415, 0.01590176858007908, -0.025864824652671814, -0.06466265022754669, -0.030348381027579308, 0.08853097259998322, -0.0778517872095108, 0.047349631786346436, 0.016484154388308525, 0.04512922093272209, -0.05175778269767761, 0.03190320357680321, -0.038519974797964096, -0.020572097972035408, 0.027671687304973602, -0.03930016607046127, -0.08387710154056549, -0.07022026926279068, -0.03623040392994881, -0.049048423767089844, -0.03260466083884239, 0.013222405686974525, -0.06060649827122688, 0.0635959655046463, 0.023741068318486214, 0.046751972287893295, -0.05482106655836105, 0.04061738774180412, 0.08072994649410248, -0.09554832428693771, 0.07382958382368088, 0.09709260612726212, 0.08133434504270554, -0.08307695388793945, 0.023482946678996086, 0.03570958599448204, -0.10154933482408524, 0.014063592068850994, 0.005007477942854166, -0.037945836782455444, 0.028612086549401283, 0.0875212550163269, 0.023412734270095825, -0.07355077564716339, 0.06935788691043854, 0.013972844928503036, 0.07868045568466187, -0.0010668463073670864, -0.0669851079583168, 0.07344002276659012, -0.02486339397728443, 0.016533417627215385, 0.09647592157125473, 0.06458709388971329, 0.05908121541142464, 0.09240171313285828, 0.023758215829730034, 0.06275181472301483, 0.0027165107894688845, -0.033100664615631104, -0.01480377372354269, 0.06380374729633331, -0.05008820444345474, -5.1705619341646525e-8, 0.030884960666298866, 0.004610210191458464, -0.021497854962944984, 0.04925068840384483, -0.016798533499240875, -0.004665260203182697, 0.022097943350672722, 0.00965573824942112, -0.036162763833999634, 0.02358192205429077, -0.035363566130399704, 0.09999874979257584, -0.10180733352899551, 0.013944505713880062, -0.0630551353096962, 0.00495091313496232, 0.009171157144010067, 0.06394630670547485, -0.004417330492287874, -0.015767520293593407, -0.10915747284889221, 0.0052407546900212765, 0.009485903196036816, -0.018353352323174477, -0.006677951663732529, 0.04341152682900429, 0.0731595829129219, 0.03161420300602913, 0.1512206494808197, 0.03878292813897133, -0.043046820908784866, -0.01864156499505043, -0.02335548587143421, 0.047180917114019394, -0.09552176296710968, 0.06693879514932632, -0.1046285331249237, 0.032801978290081024, -0.013113407418131828, 0.068060964345932, -0.034159719944000244, -0.03670959174633026, -0.06125083565711975, -0.04771004989743233, 0.010344482026994228, 0.10081632435321808, 0.0664157122373581, 0.10627184063196182, 0.023011812940239906, 0.059068288654088974, -0.08536428958177567, -0.0534968338906765, 0.01588292233645916, 0.030033323913812637, -0.012764754705131054, 0.0372651144862175, -0.016505958512425423, -0.04351621866226196, 0.014319834299385548, -0.029917260631918907, 0.015847083181142807, -0.07826592773199081, 0.004553671460598707, 0.015494159422814846 ]
0.117271
the labels that should not match with the incoming Pod's labels, when satisfying the Pod (anti)affinity. {{< caution >}} It's not recommended to use `mismatchLabelKeys` with labels that might be updated directly on pods. Even if you edit the pod's label that is specified at `mismatchLabelKeys` \*\*directly\*\*, (that is, not via a deployment), kube-apiserver doesn't reflect the label update onto the merged `labelSelector`. {{< /caution >}} One example use case is to ensure Pods go to the topology domain (node, zone, etc) where only Pods from the same tenant or team are scheduled in. In other words, you want to avoid running Pods from two different tenants on the same topology domain at the same time. ```yaml apiVersion: v1 kind: Pod metadata: labels: # Assume that all relevant Pods have a "tenant" label set tenant: tenant-a ... spec: affinity: podAffinity: requiredDuringSchedulingIgnoredDuringExecution: # ensure that Pods associated with this tenant land on the correct node pool - matchLabelKeys: - tenant labelSelector: {} topologyKey: node-pool podAntiAffinity: requiredDuringSchedulingIgnoredDuringExecution: # ensure that Pods associated with this tenant can't schedule to nodes used for another tenant - mismatchLabelKeys: - tenant # whatever the value of the "tenant" label for this Pod, prevent # scheduling to nodes in any pool where any Pod from a different # tenant is running. labelSelector: # We have to have the labelSelector which selects only Pods with the tenant label, # otherwise this Pod would have anti-affinity against Pods from daemonsets as well, for example, # which aren't supposed to have the tenant label. matchExpressions: - key: tenant operator: Exists topologyKey: node-pool ``` #### More practical use-cases Inter-pod affinity and anti-affinity can be even more useful when they are used with higher level collections such as ReplicaSets, StatefulSets, Deployments, etc. These rules allow you to configure that a set of workloads should be co-located in the same defined topology; for example, preferring to place two related Pods onto the same node. For example: imagine a three-node cluster. You use the cluster to run a web application and also an in-memory cache (such as Redis). For this example, also assume that latency between the web application and the memory cache should be as low as is practical. You could use inter-pod affinity and anti-affinity to co-locate the web servers with the cache as much as possible. In the following example Deployment for the Redis cache, the replicas get the label `app=store`. The `podAntiAffinity` rule tells the scheduler to avoid placing multiple replicas with the `app=store` label on a single node. This creates each cache in a separate node. ```yaml apiVersion: apps/v1 kind: Deployment metadata: name: redis-cache spec: selector: matchLabels: app: store replicas: 3 template: metadata: labels: app: store spec: affinity: podAntiAffinity: requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: app operator: In values: - store topologyKey: "kubernetes.io/hostname" containers: - name: redis-server image: redis:3.2-alpine ``` The following example Deployment for the web servers creates replicas with the label `app=web-store`. The Pod affinity rule tells the scheduler to place each replica on a node that has a Pod with the label `app=store`. The Pod anti-affinity rule tells the scheduler never to place multiple `app=web-store` servers on a single node. ```yaml apiVersion: apps/v1 kind: Deployment metadata: name: web-server spec: selector: matchLabels: app: web-store replicas: 3 template: metadata: labels: app: web-store spec: affinity: podAntiAffinity: requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: app operator: In values: - web-store topologyKey: "kubernetes.io/hostname" podAffinity: requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: app operator: In values: - store topologyKey: "kubernetes.io/hostname" containers: - name: web-app image: nginx:1.16-alpine ``` Creating the two preceding Deployments results in the following cluster layout, where each web server is co-located
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/assign-pod-node.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/assign-pod-node.md
[ 0.07196028530597687, -0.0066046505235135555, 0.010396372526884079, -0.02715744823217392, -0.019177835434675217, 0.0026219720020890236, 0.03609396144747734, -0.04858282208442688, 0.07047096639871597, -0.020440170541405678, 0.06992429494857788, -0.07967018336057663, 0.011261144652962685, -0.04629630222916603, 0.09689141064882278, 0.03425617888569832, 0.058373354375362396, 0.04736117273569107, 0.031968776136636734, -0.0215646643191576, -0.018697146326303482, 0.021350465714931488, 0.026945557445287704, 0.05895658954977989, -0.03241048380732536, 0.042218271642923355, -0.062277697026729584, 0.02779345028102398, 0.031759168952703476, -0.019392849877476692, 0.010281583294272423, 0.054626427590847015, -0.01155802235007286, 0.07294148951768875, 0.08166401088237762, 0.06335900723934174, -0.02869904600083828, -0.004849100019782782, 0.025608455762267113, 0.017291512340307236, 0.08349759131669998, -0.015341420657932758, -0.050404101610183716, -0.003969850018620491, -0.10513242334127426, 0.042932868003845215, -0.03417140617966652, -0.04305151104927063, -0.07284720242023468, 0.031819917261600494, 0.024061236530542374, -0.14522556960582733, 0.019336534664034843, -0.013524896465241909, 0.03350290656089783, 0.10052474588155746, -0.013979236595332623, 0.06570044159889221, 0.0846630185842514, 0.050931770354509354, 0.05424980819225311, -0.041440751403570175, 0.019947661086916924, -0.024033520370721817, 0.021194636821746826, -0.018135352060198784, 0.0004464352678041905, 0.01054428331553936, -0.013979228213429451, 0.02108120732009411, 0.10311511158943176, -0.0033993255347013474, 0.027459053322672844, -0.024233372882008553, -0.0429980531334877, 0.0964302122592926, -0.011960526928305626, 0.06256086379289627, 0.06105508655309677, -0.06792151182889938, -0.011254977434873581, 0.042499374598264694, 0.040573056787252426, -0.002057449659332633, 0.009190232492983341, -0.005883955396711826, -0.02577923983335495, -0.06477826833724976, -0.02595324069261551, 0.0025108028203248978, 0.023466944694519043, -0.06022951006889343, 0.09379936754703522, -0.0790313258767128, 0.0689539909362793, 0.03282114490866661, -0.05847553908824921, 0.011272616684436798, 0.03448128327727318, 0.029421264305710793, -0.002655486110597849, 0.007113226223737001, -0.05019034072756767, 0.011071441695094109, 0.05320209637284279, -0.042829252779483795, -0.07002682983875275, -0.02938496693968773, 0.015415691770613194, 0.0063566179014742374, 0.005906678270548582, -0.0017610834911465645, -0.008283581584692001, 0.0517403744161129, -0.06390762329101562, 0.0473986379802227, 0.05602250620722771, 0.0012272640597075224, 0.04724424332380295, -0.0184541754424572, -0.05958191305398941, -0.08536785840988159, -0.0025048023089766502, -0.008354914374649525, -0.08300082385540009, 0.026951530948281288, -0.024507397785782814, 3.0086164448182113e-33, 0.043389204889535904, -0.05887679010629654, -0.04452728107571602, -0.07678185403347015, 0.019532253965735435, -0.08649498969316483, -0.07227906584739685, -0.00823198165744543, -0.026513099670410156, -0.007155710365623236, 0.01678295060992241, 0.08133649826049805, -0.02227884717285633, -0.05312693491578102, -0.013778147287666798, -0.038954928517341614, -0.032545674592256546, 0.07954635471105576, 0.04092874750494957, -0.01608872041106224, -0.008705602958798409, -0.01283528283238411, -0.03806178644299507, -0.003252714406698942, -0.016890721395611763, -0.048772212117910385, -0.04368259757757187, -0.12808527052402496, 0.05315917357802391, 0.02273505926132202, -0.05894481763243675, 0.002691679634153843, 0.10057801008224487, 0.08056088536977768, -0.09655182808637619, -0.037325985729694366, -0.008542968891561031, 0.021561022847890854, -0.1568102389574051, -0.034079331904649734, 0.022585788741707802, 0.060662057250738144, 0.0319790318608284, -0.07953255623579025, 0.10079998522996902, 0.00039283354999497533, 0.00902506709098816, -0.055646542459726334, 0.08154820650815964, -0.005364593118429184, 0.016805175691843033, -0.08299221843481064, -0.005809153895825148, -0.02310340479016304, -0.005382297094911337, -0.014697562903165817, 0.0424228236079216, 0.02292201854288578, -0.02902310900390148, 0.022634081542491913, -0.0710124596953392, -0.02224215678870678, 0.01857456937432289, 0.014460450038313866, 0.05397707223892212, 0.09448185563087463, 0.028257666155695915, 0.011980532668530941, 0.026760634034872055, 0.022409308701753616, -0.04319277033209801, 0.08215347677469254, -0.1091817244887352, 0.011714429594576359, -0.040635958313941956, -0.13363587856292725, -0.05547381192445755, 0.04380618408322334, -0.09509773552417755, 0.07234062999486923, 0.03128528594970703, 0.0027476532850414515, -0.05876675620675087, 0.12165094166994095, -0.033530645072460175, -0.024666285142302513, 0.01907014660537243, -0.025238627567887306, -0.06795205920934677, 0.08460146933794022, 0.034959495067596436, 0.002306794747710228, -0.06848318874835968, 0.023088816553354263, -0.03272287920117378, -3.226420854346196e-33, 0.032153598964214325, -0.059897102415561676, 0.032599035650491714, 0.01873188093304634, -0.03910388424992561, 0.017942724749445915, 0.0716598629951477, 0.05501982569694519, -0.0064456467516720295, -0.05233479291200638, -0.04808088764548302, -0.041566140949726105, 0.014624373987317085, 0.022119222208857536, -0.11651153862476349, -0.007635342888534069, -0.059090059250593185, -0.01740354113280773, 0.008587525226175785, 0.05151040107011795, 0.016214925795793533, 0.014148377813398838, 0.02483629621565342, 0.07673180103302002, 0.08160299062728882, 0.02132459171116352, 0.005229396279901266, 0.03240976482629776, -0.004596146754920483, -0.07076847553253174, -0.010874049738049507, -0.0843522697687149, -0.00805977825075388, -0.06979088485240936, 0.01465161144733429, -0.00964495912194252, -0.05283650755882263, 0.05623241513967514, -0.03785035386681557, -0.024410240352153778, -0.024315372109413147, 0.005457607097923756, -0.14900976419448853, -0.013985072262585163, -0.02000676840543747, -0.014689736068248749, 0.01300608366727829, -0.0072777061723172665, -0.06995444744825363, -0.07802363485097885, 0.01447358075529337, -0.011546795256435871, -0.11257696151733398, 0.05915016308426857, -0.05310267582535744, -0.03001416102051735, 0.027931956574320793, 0.049419380724430084, -0.10088519006967545, 0.026889877393841743, 0.05310218408703804, -0.029472699388861656, 0.048670846968889236, 0.029672380536794662, 0.011275852099061012, -0.06096305698156357, -0.007357414346188307, 0.016081610694527626, -0.015042527578771114, 0.02366526424884796, 0.05771475285291672, -0.0016233784845098853, -0.033001579344272614, 0.02616841532289982, -0.008266197517514229, -0.06985130161046982, 0.040954504162073135, -0.03172212466597557, 0.05901389941573143, 0.017910834401845932, -0.07906603068113327, 0.10271032154560089, -0.011975185014307499, 0.11199131608009338, 0.03128444403409958, 0.06403198838233948, 0.0870899111032486, 0.11341050267219543, 0.006943677552044392, 0.08739547431468964, 0.03056526929140091, -0.00815422274172306, -0.01383480429649353, 0.09264975041151047, -0.06520764529705048, -4.508531858959941e-8, 0.02253878489136696, 0.0625053271651268, -0.057862959802150726, 0.04146138206124306, -0.011428594589233398, -0.020875252783298492, 0.011491093784570694, 0.011610433459281921, -0.05384618416428566, 0.03275151923298836, -0.03468885272741318, 0.04067372903227806, -0.10105055570602417, 0.05153631418943405, -0.030511273071169853, -0.05490730330348015, 0.023722562938928604, 0.04917418584227562, -0.00443867826834321, -0.037456195801496506, -0.13711851835250854, 0.005198192782700062, 0.03396894782781601, -0.05956650897860527, -0.012418567202985287, 0.02524285577237606, 0.039394889026880264, -0.022009633481502533, 0.13864804804325104, 0.013791630044579506, -0.03889346495270729, -0.02720550261437893, -0.06363783031702042, 0.023655246943235397, -0.06882437318563461, 0.021133648231625557, -0.07944077253341675, 0.015110939741134644, 0.038155052810907364, 0.09427890926599503, -0.046622384339571, -0.05527983605861664, -0.0890670195221901, -0.018997304141521454, 0.027721740305423737, 0.05420568585395813, 0.055964887142181396, 0.03576987609267235, 0.03171848505735397, 0.04367697611451149, -0.035577211529016495, -0.03941528871655464, -0.015905562788248062, 0.04811132326722145, 0.0002632536634337157, -0.0644015222787857, -0.023091724142432213, -0.035311952233314514, 0.03619558364152908, -0.014036173932254314, 0.017818786203861237, -0.05017178878188133, 0.03068072535097599, -0.01567225717008114 ]
0.095209
matchExpressions: - key: app operator: In values: - web-store topologyKey: "kubernetes.io/hostname" podAffinity: requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: app operator: In values: - store topologyKey: "kubernetes.io/hostname" containers: - name: web-app image: nginx:1.16-alpine ``` Creating the two preceding Deployments results in the following cluster layout, where each web server is co-located with a cache, on three separate nodes. | node-1 | node-2 | node-3 | | :-----------: | :-----------: | :-----------: | | \*webserver-1\* | \*webserver-2\* | \*webserver-3\* | | \*cache-1\* | \*cache-2\* | \*cache-3\* | The overall effect is that each cache instance is likely to be accessed by a single client that is running on the same node. This approach aims to minimize both skew (imbalanced load) and latency. You might have other reasons to use Pod anti-affinity. See the [ZooKeeper tutorial](/docs/tutorials/stateful-application/zookeeper/#tolerating-node-failure) for an example of a StatefulSet configured with anti-affinity for high availability, using the same technique as this example. ## nodeName `nodeName` is a more direct form of node selection than affinity or `nodeSelector`. `nodeName` is a field in the Pod spec. If the `nodeName` field is not empty, the scheduler ignores the Pod and the kubelet on the named node tries to place the Pod on that node. Using `nodeName` overrules using `nodeSelector` or affinity and anti-affinity rules. Some of the limitations of using `nodeName` to select nodes are: - If the named node does not exist, the Pod will not run, and in some cases may be automatically deleted. - If the named node does not have the resources to accommodate the Pod, the Pod will fail and its reason will indicate why, for example OutOfmemory or OutOfcpu. - Node names in cloud environments are not always predictable or stable. {{< warning >}} `nodeName` is intended for use by custom schedulers or advanced use cases where you need to bypass any configured schedulers. Bypassing the schedulers might lead to failed Pods if the assigned Nodes get oversubscribed. You can use [node affinity](#node-affinity) or the [`nodeSelector` field](#nodeselector) to assign a Pod to a specific Node without bypassing the schedulers. {{}} Here is an example of a Pod spec using the `nodeName` field: ```yaml apiVersion: v1 kind: Pod metadata: name: nginx spec: containers: - name: nginx image: nginx nodeName: kube-01 ``` The above Pod will only run on the node `kube-01`. ## nominatedNodeName {{< feature-state feature\_gate\_name="NominatedNodeNameForExpectation" >}} `nominatedNodeName` can be used for external components to nominate node for a pending pod. This nomination is best effort: it might be ignored if the scheduler determines the pod cannot go to a nominated node. Also, this field can be (over)written by the scheduler: - If the scheduler finds a node to nominate via the preemption. - If the scheduler decides where the pod is going, and move it to the binding cycle. - Note that, in this case, `nominatedNodeName` is put only when the pod has to go through `WaitOnPermit` or `PreBind` extension points. Here is an example of a Pod status using the `nominatedNodeName` field: ```yaml apiVersion: v1 kind: Pod metadata: name: nginx ... status: nominatedNodeName: kube-01 ``` ## Pod topology spread constraints You can use \_topology spread constraints\_ to control how {{< glossary\_tooltip text="Pods" term\_id="Pod" >}} are spread across your cluster among failure-domains such as regions, zones, nodes, or among any other topology domains that you define. You might do this to improve performance, expected availability, or overall utilization. Read [Pod topology spread constraints](/docs/concepts/scheduling-eviction/topology-spread-constraints/) to learn more about how these work. ## Pod topology labels {{< feature-state feature\_gate\_name="PodTopologyLabelsAdmission" >}} Pods inherit the topology labels (`topology.kubernetes.io/zone` and `topology.kubernetes.io/region`) from their assigned Node if those labels are present. These
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/assign-pod-node.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/assign-pod-node.md
[ -0.026817843317985535, 0.07147066295146942, 0.04486642777919769, 0.0004741358570754528, 0.01052411925047636, -0.06300128251314163, 0.013897489756345749, -0.07696965336799622, 0.04564707353711128, 0.02405889518558979, -0.005510029848664999, -0.06285180151462555, 0.023589996621012688, -0.07463265210390091, 0.07101596146821976, -0.0037390717770904303, 0.01296109426766634, 0.005591253284364939, -0.02192920818924904, -0.07503984123468399, -0.03335902467370033, 0.013634569011628628, 0.002510965336114168, -0.006533128209412098, -0.007972147315740585, 0.06989850103855133, -0.13191813230514526, 0.022182993590831757, 0.11614566296339035, -0.025411177426576614, -0.0048296027816832066, 0.03667551651597023, -0.04714501276612282, 0.020864125341176987, 0.0491546131670475, 0.13791266083717346, -0.048443280160427094, -0.05318465828895569, -0.07784131169319153, 0.04437453672289848, 0.1287684440612793, 0.046143241226673126, -0.02468916028738022, -0.06227882578969002, -0.022428633645176888, -0.040995169430971146, -0.0545867495238781, -0.025648485869169235, -0.07180124521255493, -0.03753575310111046, -0.025759996846318245, -0.11132844537496567, -0.0549040250480175, 0.03948009014129639, -0.03208593651652336, 0.06638044118881226, -0.0398901030421257, 0.03397918865084648, 0.06416299939155579, 0.022207144647836685, 0.100947804749012, -0.08265244960784912, 0.03883577138185501, -0.007305741775780916, 0.03290227800607681, 0.013400180265307426, -0.0058787851594388485, -0.11410725861787796, 0.012257467024028301, -0.011577192693948746, 0.06246750429272652, 0.013778460212051868, -0.04251303896307945, -0.09650012850761414, -0.023648018017411232, 0.053136568516492844, -0.06450758129358292, 0.0432862713932991, 0.019185883924365044, -0.06224177032709122, 0.02611062303185463, -0.01661181077361107, -0.007771246135234833, 0.009738125838339329, -0.07996314018964767, -0.0471661351621151, 0.006958847865462303, -0.11816456913948059, 0.00153909414075315, -0.0370369590818882, 0.0013810665113851428, -0.06968610733747482, 0.017069434747099876, -0.04625903442502022, -0.00504397414624691, 0.013896794058382511, -0.0085163414478302, 0.09059665352106094, 0.06792668998241425, 0.023820191621780396, 0.01652887463569641, -0.03020107001066208, 0.004977417644113302, -0.007202804088592529, 0.02247799001634121, -0.024717871099710464, -0.0329328216612339, 0.04240410029888153, -0.03320468217134476, 0.04131272807717323, -0.00688524916768074, 0.07644481211900711, 0.052857425063848495, 0.023599442094564438, -0.05913557857275009, 0.03387359529733658, 0.06430232524871826, -0.05046343058347702, 0.07221595197916031, 0.12329286336898804, 0.03001742996275425, -0.10406172275543213, 0.019335154443979263, -0.010779771022498608, 0.012857465073466301, 0.0064670853316783905, -0.03981393575668335, 3.0687424298497944e-33, 0.03190724551677704, -0.08532866090536118, -0.052758511155843735, -0.014157801866531372, 0.09168388694524765, -0.05472161993384361, -0.04805183410644531, -0.07802224904298782, -0.04727015644311905, 0.003554666880518198, -0.05030917748808861, 0.046887509524822235, -0.021154465153813362, -0.01530184131115675, -0.002426996361464262, -0.016117507591843605, 0.010719617828726768, 0.04221494495868683, 0.03736376762390137, -0.019658220931887627, 0.049691732972860336, -0.007058682385832071, -0.07339957356452942, 0.0484183132648468, -0.011218984611332417, -0.005037354771047831, 0.013210155069828033, -0.024492012336850166, -0.08199391514062881, -0.012956565245985985, 0.056343093514442444, 0.006229743827134371, 0.014243359677493572, 0.02302204817533493, -0.036919523030519485, 0.05518952012062073, 0.039946120232343674, 0.003068709746003151, -0.11926453560590744, -0.015153895132243633, -0.03736065700650215, 0.037930697202682495, -0.02874787338078022, -0.08640063554048538, 0.02074047178030014, -0.05840575322508812, -0.017238056287169456, -0.054073456674814224, 0.10979148000478745, -0.045952025800943375, -0.03592861443758011, 0.025242161005735397, 0.03729216381907463, 0.03324476629495621, 0.005722930654883385, 0.008305649273097515, 0.09280896186828613, -0.008252213709056377, -0.0016985246911644936, 0.10118228942155838, -0.08049800992012024, -0.038176003843545914, -0.03600442036986351, 0.010313309729099274, 0.039366137236356735, 0.06119978427886963, 0.07800956070423126, 0.05651552230119705, -0.022060001268982887, 0.044375479221343994, -0.0034690198954194784, 0.027495793998241425, 0.02308041602373123, 0.053871504962444305, -0.025743963196873665, -0.09616050869226456, -0.04461811110377312, 0.016118504106998444, -0.06604090332984924, 0.02754189632833004, 0.0034288314636796713, 0.0025340248830616474, -0.06745664030313492, 0.11439216881990433, -0.07595070451498032, -0.07893800735473633, 0.01835448667407036, -0.027385607361793518, -0.022193845361471176, 0.02466537058353424, -0.007212486583739519, 0.06996472924947739, 0.004451665561646223, -0.021993188187479973, -0.061658479273319244, -4.279939666513424e-33, 0.04087095707654953, 0.011309756897389889, 0.005952698178589344, -0.013603786937892437, -0.017118804156780243, 0.01694575510919094, 0.058036234229803085, 0.043459564447402954, -0.007605414837598801, 0.005454935599118471, 0.027858605608344078, -0.005592037923634052, 0.014185694046318531, 0.014461865648627281, -0.11806274950504303, 0.03593681752681732, 0.015522157773375511, -0.12766633927822113, 0.04543529078364372, 0.04409931227564812, 0.02575295977294445, 0.010377365164458752, -0.04739775508642197, 0.07817280292510986, 0.01688399165868759, 0.03148879483342171, 0.027117615565657616, -0.006134942639619112, -0.06394920498132706, -0.04222181811928749, -0.029851794242858887, -0.06713824719190598, -0.022463569417595863, -0.01366827916353941, -0.01570720598101616, -0.0209671501070261, -0.08316384255886078, 0.11323272436857224, -0.018103091046214104, -0.05994725227355957, 0.019112836569547653, -0.0056387498043477535, -0.03601778298616409, 0.04431832954287529, -0.01840607263147831, -0.037585340440273285, 0.009815461002290249, -0.03323661908507347, -0.07122895866632462, -0.034397877752780914, 0.010865012183785439, 0.013408239930868149, -0.0670318752527237, 0.0619991160929203, 0.0026140292175114155, 0.05192508175969124, -0.06114712730050087, 0.07028158009052277, -0.05250087007880211, 0.05136265233159065, 0.14614666998386383, -0.09749818593263626, 0.010820619761943817, 0.02480524405837059, 0.009891186840832233, -0.008560361340641975, -0.09043809026479721, -0.04920995235443115, -0.0356815941631794, 0.08830835670232773, 0.01350315473973751, -0.006446652114391327, -0.012746520340442657, 0.02881760336458683, -0.04344683513045311, -0.026292873546481133, 0.08885249495506287, -0.0003010700747836381, 0.0592879094183445, 0.015775218605995178, -0.12003538012504578, 0.06412793695926666, -0.07323956489562988, -0.015597708523273468, 0.023363271728157997, 0.018556268885731697, -0.032992176711559296, 0.09600527584552765, 0.043392159044742584, 0.06804691255092621, -0.018300822004675865, -0.020949553698301315, -0.08021943271160126, -0.03563378006219864, -0.06999081373214722, -5.3645770492494194e-8, -0.006022247951477766, 0.022697623819112778, -0.0920351892709732, 0.07153453677892685, -0.018001949414610863, -0.04083612188696861, 0.09372134506702423, 0.019133375957608223, -0.02580052800476551, -0.015682324767112732, 0.0070069520734250546, 0.07998614758253098, -0.0869155302643776, 0.006713094189763069, 0.02434300258755684, 0.009484697133302689, -0.015053732320666313, 0.04618740826845169, 0.007754231803119183, -0.053726810961961746, -0.10641466826200485, 0.002832448109984398, 0.029430251568555832, 0.018157387152314186, 0.035132844001054764, 0.040454186499118805, 0.07914653420448303, 0.06575162708759308, 0.07217823714017868, 0.030397193506360054, -0.03382106125354767, -0.022540010511875153, -0.0002984126622322947, -0.017690511420369148, -0.013724731281399727, 0.011865455657243729, -0.1145724281668663, 0.07198365777730942, 0.02555091306567192, 0.039901889860630035, -0.05527550354599953, -0.004442883189767599, 0.00036693279980681837, 0.00554945133626461, 0.018334446474909782, 0.06865032017230988, 0.003884752979502082, 0.08332192152738571, 0.038712918758392334, 0.014717859216034412, 0.020256124436855316, -0.11934264004230499, -0.028600217774510384, 0.04015924409031868, 0.019524365663528442, -0.034006066620349884, 0.06323634833097458, -0.04286126792430878, 0.08907803893089294, 0.002730368170887232, 0.018819371238350868, -0.08856213092803955, -0.006157412193715572, -0.04719584807753563 ]
0.119635
You might do this to improve performance, expected availability, or overall utilization. Read [Pod topology spread constraints](/docs/concepts/scheduling-eviction/topology-spread-constraints/) to learn more about how these work. ## Pod topology labels {{< feature-state feature\_gate\_name="PodTopologyLabelsAdmission" >}} Pods inherit the topology labels (`topology.kubernetes.io/zone` and `topology.kubernetes.io/region`) from their assigned Node if those labels are present. These labels can then be utilized via the Downward API to provide the workload with node topology awareness. Here is an example of a Pod using downward API for it's zone and region: ```yaml apiVersion: v1 kind: Pod metadata: name: pod-with-topology-labels spec: containers: - name: app image: alpine command: ["sh", "-c", "env"] env: - name: MY\_ZONE valueFrom: fieldRef: fieldPath: metadata.labels['topology.kubernetes.io/zone'] - name: MY\_REGION valueFrom: fieldRef: fieldPath: metadata.labels['topology.kubernetes.io/region'] ``` ## Operators The following are all the logical operators that you can use in the `operator` field for `nodeAffinity` and `podAffinity` mentioned above. | Operator | Behavior | | :------------: | :-------------: | | `In` | The label value is present in the supplied set of strings | | `NotIn` | The label value is not contained in the supplied set of strings | | `Exists` | A label with this key exists on the object | | `DoesNotExist` | No label with this key exists on the object | The following operators can only be used with `nodeAffinity`. | Operator | Behavior | | :------------: | :-------------: | | `Gt` | The field value will be parsed as an integer, and that integer is greater than the integer that results from parsing the value of a label named by this selector | | `Lt` | The field value will be parsed as an integer, and that integer is less than the integer that results from parsing the value of a label named by this selector | {{}} `Gt` and `Lt` operators will not work with non-integer values. If the given value doesn't parse as an integer, the Pod will fail to get scheduled. Also, `Gt` and `Lt` are not available for `podAffinity`. {{}} ## {{% heading "whatsnext" %}} - Read more about [taints and tolerations](/docs/concepts/scheduling-eviction/taint-and-toleration/). - Read the design docs for [node affinity](https://git.k8s.io/design-proposals-archive/scheduling/nodeaffinity.md) and for [inter-pod affinity/anti-affinity](https://git.k8s.io/design-proposals-archive/scheduling/podaffinity.md). - Learn about how the [topology manager](/docs/tasks/administer-cluster/topology-manager/) takes part in node-level resource allocation decisions. - Learn how to use [nodeSelector](/docs/tasks/configure-pod-container/assign-pods-nodes/). - Learn how to use [affinity and anti-affinity](/docs/tasks/configure-pod-container/assign-pods-nodes-using-node-affinity/).
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/assign-pod-node.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/assign-pod-node.md
[ 0.07486111670732498, -0.006402109749615192, -0.00873115099966526, 0.03686456382274628, -0.007271393667906523, -0.01114730816334486, -0.02669636905193329, -0.026203202083706856, 0.029956979677081108, -0.010638737119734287, -0.09155423194169998, -0.020538898184895515, -0.00960335973650217, -0.040333092212677, 0.0918014645576477, -0.031127305701375008, 0.06462984532117844, 0.001844906946644187, 0.0574122853577137, -0.09417295455932617, 0.010914220474660397, 0.03328999504446983, 0.0508093386888504, -0.006207665894180536, -0.045989904552698135, 0.03330748900771141, -0.06259474903345108, 0.015718478709459305, 0.07564843446016312, 0.001785626052878797, -0.0394887812435627, 0.04255204275250435, 0.005280559882521629, 0.01766730099916458, 0.08323102444410324, 0.08072695136070251, -0.05193491280078888, -0.026860153302550316, -0.055739935487508774, 0.0012946170754730701, 0.09045830368995667, -0.005969909485429525, -0.033549338579177856, -0.00026543825515545905, -0.03690367937088013, 0.047839559614658356, -0.060697030276060104, 0.0035161059349775314, -0.025792667642235756, -0.008397105149924755, 0.0618555061519146, -0.1647852659225464, 0.04283200204372406, 0.003117241431027651, 0.049590498208999634, 0.11897817254066467, 0.03916652500629425, -0.01790986955165863, 0.04491278901696205, 0.06600166112184525, 0.0708182230591774, -0.03495144844055176, -0.0010253533255308867, -0.04892819747328758, 0.06538169085979462, 0.018305841833353043, 0.02252787910401821, 0.06399575620889664, 0.00989667046815157, 0.026558978483080864, 0.11600084602832794, 0.0213985163718462, -0.00913026463240385, -0.06258933246135712, -0.034848302602767944, 0.0074351755902171135, -0.020879745483398438, 0.04730666056275368, -0.016866812482476234, -0.028409643098711967, 0.012067480012774467, 0.09788263589143753, 0.03286872059106827, -0.01078429352492094, -0.05730108916759491, -0.040449902415275574, 0.0114577766507864, -0.05436788871884346, -0.042053546756505966, 0.010412388481199741, 0.01850934326648712, -0.07316047698259354, 0.001416985527612269, -0.1209838017821312, 0.03754306212067604, 0.022254254668951035, -0.024939261376857758, -0.021727027371525764, 0.0073027354665100574, 0.016782691702246666, 0.018427111208438873, -0.05189916491508484, -0.024927422404289246, -0.05903957411646843, 0.06647992879152298, -0.027727514505386353, -0.029888033866882324, 0.012179509736597538, 0.0011960575357079506, 0.08934398740530014, 0.03943590447306633, 0.029965445399284363, -0.021950406953692436, 0.05557079240679741, -0.03577357530593872, 0.05589421093463898, 0.053469978272914886, -0.03445722535252571, 0.07080937922000885, 0.06856007874011993, -0.02995939925312996, -0.08455797284841537, 0.022352339699864388, -0.020140625536441803, -0.03850306570529938, 0.03565496206283569, -0.03587140142917633, 4.482620239192126e-33, 0.05143330246210098, -0.09535768628120422, -0.019856546074151993, -0.04071542248129845, 0.014656050130724907, -0.04534297063946724, -0.036054447293281555, -0.04604184255003929, 0.004491931293159723, -0.024073397740721703, -0.06616102904081345, 0.11255399137735367, -0.034530285745859146, -0.044078048318624496, 0.0018124900525435805, -0.053376857191324234, -0.028299381956458092, 0.05717133358120918, 0.018857864663004875, -0.005595496855676174, 0.002919426653534174, -0.09869794547557831, -0.06350956857204437, 0.03242115676403046, 0.01763460785150528, -0.06814788281917572, -0.043872736394405365, -0.1330089569091797, -0.03377986699342728, 0.03576938062906265, -0.05644712224602699, 0.011633276008069515, 0.052025943994522095, 0.051863014698028564, -0.0649709403514862, -0.02397315576672554, -0.026382559910416603, 0.039499036967754364, -0.09716255962848663, -0.037347737699747086, 0.024811161682009697, 0.024076662957668304, -0.00014450165326707065, -0.07675164192914963, 0.04275013506412506, 0.03324368596076965, 0.0440998449921608, -0.07701322436332703, 0.007845529355108738, -0.0020650248043239117, 0.04309731349349022, -0.01539978850632906, 0.015156223438680172, -0.06613865494728088, 0.04045306146144867, -0.05653353035449982, 0.08060552924871445, 0.008546816185116768, -0.007892025634646416, 0.0982719287276268, -0.023673949763178825, -0.0667225793004036, 0.030690127983689308, 0.02641318179666996, 0.07472734898328781, 0.06968323886394501, -0.00002818736174958758, 0.07191301137208939, 0.014495831914246082, 0.03831425681710243, -0.054934412240982056, 0.037687335163354874, -0.07360278815031052, 0.037987761199474335, -0.007172186393290758, -0.06729025393724442, 0.0037516134325414896, 0.023638449609279633, -0.10921892523765564, 0.047667767852544785, 0.012009170837700367, 0.0099081601947546, -0.04917113855481148, 0.07327108830213547, 0.04298977926373482, 0.00031900047906674445, 0.04316484555602074, 0.006032087374478579, -0.09927964210510254, 0.047989726066589355, 0.002562985522672534, 0.02027076669037342, -0.019970238208770752, 0.012072157114744186, -0.08275654911994934, -4.129982954204979e-33, 0.05302423611283302, -0.006093489937484264, 0.049394745379686356, -0.010936564765870571, -0.023459019139409065, -0.012681007385253906, 0.039797306060791016, 0.06401601433753967, -0.019062533974647522, -0.0005653301486745477, -0.08082737773656845, -0.034899625927209854, 0.04907485097646713, 0.020283497869968414, -0.10682879388332367, -0.01695282943546772, -0.09051632881164551, -0.06827197223901749, 0.056076452136039734, 0.06783578544855118, -0.01885152980685234, -0.027599137276411057, 0.0002443608536850661, -0.002155447844415903, 0.021323231980204582, 0.021898480132222176, -0.005952354520559311, 0.015064642764627934, -0.0298466756939888, -0.010786515660583973, -0.04638829827308655, -0.11704429239034653, -0.007421215530484915, 0.012943800538778305, -0.01958472654223442, -0.024177441373467445, -0.03907385468482971, 0.0955798327922821, -0.01782725565135479, -0.02179097756743431, 0.014344444498419762, 0.0175553597509861, -0.11934555321931839, -0.03329277038574219, -0.05483981966972351, -0.007161829154938459, -0.04292598366737366, 0.04001856595277786, -0.12712302803993225, -0.06259869784116745, -0.004551310557872057, -0.002787727629765868, -0.07159348577260971, 0.09133192151784897, -0.05331181734800339, 0.022267984226346016, -0.026650499552488327, 0.07698893547058105, -0.05707141011953354, 0.05956901237368584, 0.035402171313762665, -0.08877305686473846, 0.04236626997590065, 0.016461802646517754, 0.05110447108745575, -0.08064652979373932, 0.03241697698831558, -0.019586125388741493, -0.06885019689798355, 0.04734576493501663, 0.04268801584839821, 0.025690359994769096, -0.021406272426247597, 0.06769102811813354, -0.031288910657167435, 0.009971503168344498, 0.06889436393976212, -0.031110811978578568, 0.06982940435409546, -0.004801755305379629, -0.1282438486814499, 0.11300811916589737, -0.07766829431056976, 0.023748263716697693, 0.05808825045824051, 0.08772334456443787, 0.09307833015918732, 0.0858578011393547, 0.06245319917798042, 0.10460300743579865, 0.03935776278376579, -0.0039020823314785957, -0.06545761227607727, 0.056950412690639496, -0.06434252113103867, -5.1142521328984e-8, 0.012987427413463593, -0.0006136739393696189, -0.023968594148755074, 0.014671901240944862, -0.011200347915291786, -0.0007228970644064248, 0.08682961016893387, 0.034550562500953674, -0.03660240024328232, 0.03514218330383301, 0.009013421833515167, 0.015225841663777828, -0.07172037661075592, 0.03182949498295784, 0.006024775095283985, 0.025896044448018074, 0.06117476150393486, 0.08144170790910721, -0.02615642547607422, -0.04232443869113922, -0.0602286271750927, -0.02705172449350357, 0.012718032114207745, -0.0008676574798300862, -0.004698043689131737, 0.013335857540369034, 0.05631555616855621, 0.043884824961423874, 0.11010748893022537, -0.06082982197403908, -0.04148474708199501, -0.03626030310988426, -0.038649581372737885, 0.05486980825662613, -0.043956607580184937, 0.037220750004053116, -0.1522030085325241, 0.02690166048705578, -0.011536222882568836, 0.07746681571006775, 0.005836750380694866, -0.0531189851462841, -0.04018624126911163, -0.020402075722813606, -0.008045000024139881, 0.05956343933939934, 0.025088177993893623, 0.1224484071135521, 0.03805292397737503, 0.05453801527619362, -0.04064274951815605, -0.08186798542737961, 0.0018768634181469679, 0.06050688400864601, 0.011120261624455452, -0.010198674164712429, 0.005390766076743603, -0.06552982330322266, 0.025116397067904472, 0.01194061990827322, -0.023990053683519363, -0.032325245440006256, -0.01948448084294796, -0.015575993806123734 ]
0.155918
{{< feature-state for\_k8s\_version="v1.19" state="stable" >}} The \_scheduling framework\_ is a pluggable architecture for the Kubernetes scheduler. It consists of a set of "plugin" APIs that are compiled directly into the scheduler. These APIs allow most scheduling features to be implemented as plugins, while keeping the scheduling "core" lightweight and maintainable. Refer to the [design proposal of the scheduling framework][kep] for more technical information on the design of the framework. [kep]: https://github.com/kubernetes/enhancements/blob/master/keps/sig-scheduling/624-scheduling-framework/README.md ## Framework workflow The Scheduling Framework defines a few extension points. Scheduler plugins register to be invoked at one or more extension points. Some of these plugins can change the scheduling decisions and some are informational only. Each attempt to schedule one Pod is split into two phases, the \*\*scheduling cycle\*\* and the \*\*binding cycle\*\*. ### Scheduling cycle & binding cycle The scheduling cycle selects a node for the Pod, and the binding cycle applies that decision to the cluster. Together, a scheduling cycle and binding cycle are referred to as a "scheduling context". Scheduling cycles are run serially, while binding cycles may run concurrently. A scheduling or binding cycle can be aborted if the Pod is determined to be unschedulable or if there is an internal error. The Pod will be returned to the queue and retried. ## Interfaces The following picture shows the scheduling context of a Pod and the interfaces that the scheduling framework exposes. One plugin may implement multiple interfaces to perform more complex or stateful tasks. Some interfaces match the scheduler extension points which can be configured through [Scheduler Configuration](/docs/reference/scheduling/config/#extension-points). {{< figure src="/images/docs/scheduling-framework-extensions.png" title="Scheduling framework extension points" class="diagram-large">}} ### PreEnqueue {#pre-enqueue} These plugins are called prior to adding Pods to the internal active queue, where Pods are marked as ready for scheduling. Only when all PreEnqueue plugins return `Success`, the Pod is allowed to enter the active queue. Otherwise, it's placed in the internal unschedulable Pods list, and doesn't get an `Unschedulable` condition. For more details about how internal scheduler queues work, read [Scheduling queue in kube-scheduler](https://github.com/kubernetes/community/blob/f03b6d5692bd979f07dd472e7b6836b2dad0fd9b/contributors/devel/sig-scheduling/scheduler\_queues.md). ### EnqueueExtension EnqueueExtension is the interface where the plugin can control whether to retry scheduling of Pods rejected by this plugin, based on changes in the cluster. Plugins that implement PreEnqueue, PreFilter, Filter, Reserve or Permit should implement this interface. ### QueueingHint {{< feature-state feature\_gate\_name="SchedulerQueueingHints" >}} QueueingHint is a callback function for deciding whether a Pod can be requeued to the active queue or backoff queue. It's executed every time a certain kind of event or change happens in the cluster. When the QueueingHint finds that the event might make the Pod schedulable, the Pod is put into the active queue or the backoff queue so that the scheduler will retry the scheduling of the Pod. ### QueueSort {#queue-sort} These plugins are used to sort Pods in the scheduling queue. A queue sort plugin essentially provides a `Less(Pod1, Pod2)` function. Only one queue sort plugin may be enabled at a time. ### PreFilter {#pre-filter} These plugins are used to pre-process info about the Pod, or to check certain conditions that the cluster or the Pod must meet. If a PreFilter plugin returns an error, the scheduling cycle is aborted. ### Filter These plugins are used to filter out nodes that cannot run the Pod. For each node, the scheduler will call filter plugins in their configured order. If any filter plugin marks the node as infeasible, the remaining plugins will not be called for that node. Nodes may be evaluated concurrently. ### PostFilter {#post-filter} These plugins are called after the Filter phase, but only when no feasible nodes were found for the pod. Plugins are called in
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/scheduling-framework.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/scheduling-framework.md
[ -0.07219470292329788, 0.02978178858757019, 0.056441035121679306, 0.042752791196107864, -0.03399110212922096, 0.009589468128979206, -0.02024700492620468, -0.046825092285871506, 0.066500224173069, 0.003861569333821535, -0.0662480965256691, -0.011303763836622238, -0.05743493139743805, 0.008570397272706032, 0.006635669153183699, -0.009264003485441208, 0.04403689503669739, -0.051308032125234604, -0.06515154987573624, -0.07627781480550766, 0.06604626774787903, -0.00551042752340436, -0.015007062815129757, 0.03960138186812401, -0.08445356041193008, -0.01298599224537611, -0.020375221967697144, 0.007958994247019291, 0.0018738412763923407, -0.0007103368989191949, -0.0517958328127861, -0.04321293905377388, 0.02764774113893509, -0.008319603279232979, 0.055200885981321335, 0.10065489262342453, 0.005005321931093931, -0.05441029742360115, -0.1012919470667839, -0.0017248111544176936, 0.0212603397667408, -0.10011708736419678, -0.08024714142084122, -0.02368895709514618, -0.02736375667154789, 0.013097739778459072, -0.05425465852022171, -0.04092755168676376, -0.08092140406370163, -0.0366702526807785, 0.04232774302363396, -0.1174447312951088, 0.07003505527973175, 0.04130176454782486, 0.07242836058139801, 0.08412638306617737, 0.014159830287098885, 0.025075146928429604, 0.08263961970806122, -0.0024659449700266123, 0.01631757989525795, -0.05085418000817299, -0.014389478601515293, 0.01915469765663147, -0.012837412767112255, -0.016164613887667656, 0.04433625563979149, -0.001027644844725728, 0.03957589343190193, -0.04976893588900566, 0.0007236024830490351, -0.029633786529302597, -0.054144978523254395, 0.03440104424953461, -0.002998889656737447, -0.00698050856590271, -0.004486314952373505, 0.032640837132930756, 0.0209699384868145, -0.09875887632369995, -0.01848541758954525, 0.01769377663731575, 0.0234127938747406, -0.024067332968115807, -0.01667243242263794, -0.04021286219358444, -0.009753628633916378, -0.01042412593960762, 0.065485879778862, -0.022211642935872078, 0.013656822964549065, 0.003294304246082902, 0.03626910597085953, -0.11959784477949142, 0.046865224838256836, 0.02743108943104744, -0.03652263432741165, 0.01268496923148632, 0.035233959555625916, -0.009934303350746632, 0.013211160898208618, -0.003423453774303198, 0.0034912151750177145, 0.02874826453626156, 0.07414764910936356, -0.07624026387929916, -0.07437639683485031, -0.02789303846657276, -0.06114694103598595, 0.006126814056187868, 0.027883002534508705, 0.054459620267152786, 0.0768817588686943, -0.04021013155579567, 0.056771423667669296, 0.05975709855556488, 0.00928723905235529, 0.019071651622653008, 0.07640935480594635, 0.12975838780403137, -0.014532460831105709, -0.07663914561271667, -0.0012576329754665494, -0.014580277726054192, -0.024203458800911903, 0.03959108889102936, -0.021571192890405655, 4.806191589645269e-33, 0.003860802622511983, -0.07111166417598724, 0.01764385588467121, -0.09287236630916595, 0.055050138384103775, -0.15492895245552063, -0.03187749907374382, -0.015400604344904423, -0.036712054163217545, -0.06871063262224197, -0.04107925668358803, 0.034334152936935425, 0.01963965967297554, 0.03465253487229347, 0.040183670818805695, -0.07133712619543076, 0.00612651789560914, 0.06271455436944962, 0.1120164543390274, -0.0031437117140740156, 0.02392513118684292, -0.08390157669782639, -0.06322018057107925, -0.01686989702284336, 0.057192735373973846, -0.013497475534677505, 0.031747691333293915, -0.08904457837343216, -0.010566184297204018, 0.005090319085866213, -0.04639563336968422, 0.0060110236518085, -0.02248723804950714, 0.06806181371212006, -0.12102838605642319, -0.018618633970618248, -0.04267409071326256, 0.01841796562075615, -0.04098105803132057, -0.008712543174624443, 0.03506198152899742, -0.023704608902335167, -0.0414963997900486, -0.04756242036819458, 0.044402606785297394, -0.010597399435937405, 0.010668889619410038, -0.036916956305503845, 0.06266096234321594, 0.029133664444088936, 0.08679582178592682, -0.035958077758550644, 0.07898928225040436, -0.03455720469355583, 0.05243996903300285, 0.011639888398349285, 0.13113537430763245, -0.07819651812314987, -0.011078077368438244, 0.03787849470973015, -0.011192877776920795, 0.005892271175980568, -0.038997817784547806, 0.009980612434446812, 0.036110155284404755, 0.010928969830274582, -0.044862739741802216, 0.04808458685874939, 0.016319047659635544, -0.007566336076706648, -0.07495782524347305, 0.06707824766635895, 0.02391081489622593, 0.005596233066171408, -0.0162967536598444, -0.052756167948246, 0.05238888040184975, 0.002192131243646145, -0.12389371544122696, 0.06891851872205734, 0.040469489991664886, 0.004217749461531639, -0.02818109095096588, -0.0067033045925199986, -0.023497803136706352, -0.05735823139548302, -0.022076262161135674, 0.0492003858089447, -0.01918805204331875, -0.027702640742063522, 0.013898598961532116, -0.046125926077365875, -0.04141926392912865, 0.09046559780836105, -0.06327661871910095, -5.7340911980118737e-33, 0.11631140112876892, -0.008392930030822754, -0.005107447970658541, 0.06127193570137024, 0.08277873694896698, 0.020112689584493637, -0.021404162049293518, -0.039687369018793106, 0.019617632031440735, -0.043747588992118835, -0.054422661662101746, -0.05677143856883049, 0.07799364626407623, 0.004533994477242231, -0.02190626971423626, -0.04077354446053505, -0.10117093473672867, -0.047991253435611725, -0.01679224520921707, 0.03272945061326027, 0.01660064049065113, 0.0013833296252414584, -0.04422279819846153, -0.018858429044485092, 0.027633585035800934, -0.019991179928183556, -0.029841216281056404, 0.0649203360080719, -0.01789666712284088, 0.0243244506418705, 0.0025056926533579826, -0.141595721244812, -0.02887197956442833, 0.0071174222975969315, 0.05887770280241966, -0.007138333283364773, -0.034875355660915375, 0.09730898588895798, 0.010290917009115219, -0.018752191215753555, 0.07350755482912064, 0.012267200276255608, -0.008427425287663937, 0.02727103792130947, -0.04050080478191376, 0.06639710068702698, 0.008945220150053501, -0.04025498777627945, -0.052638281136751175, -0.10457039624452591, -0.05009835585951805, -0.026863131672143936, -0.06971475481987, 0.1042369157075882, -0.025988996028900146, 0.004771222360432148, 0.008437871932983398, 0.04779982939362526, -0.014961768873035908, 0.07860982418060303, -0.000357889715814963, -0.10309138894081116, 0.10387013107538223, 0.04976905509829521, 0.022525599226355553, -0.05019047483801842, 0.016092101112008095, -0.058674879372119904, -0.018231641501188278, 0.007476122118532658, 0.01978292316198349, 0.002124989638105035, 0.061354734003543854, 0.06092105060815811, -0.013084330596029758, -0.032709211111068726, 0.04049019515514374, 0.01642942614853382, 0.011224478483200073, 0.025198647752404213, -0.06998614221811295, 0.016169244423508644, -0.020577453076839447, 0.042720917612314224, -0.04349352791905403, 0.06281458586454391, 0.057741571217775345, 0.06401699036359787, 0.07588071376085281, 0.0001150657917605713, 0.050645533949136734, 0.0030242495704442263, -0.04920121282339096, 0.1559203714132309, -0.024942049756646156, -5.6800526948563856e-8, 0.09574372321367264, -0.021330829709768295, -0.03408069908618927, -0.039021313190460205, 0.06362663209438324, -0.11357077956199646, 0.09196814149618149, -0.05164492130279541, 0.00549278175458312, 0.007377990055829287, 0.07491718232631683, 0.04105713963508606, 0.010463837534189224, -0.006459956523030996, 0.03463812917470932, 0.000024842160200932994, 0.018304474651813507, 0.05217214673757553, 0.020917009562253952, -0.08120453357696533, 0.028305940330028534, -0.06147857755422592, 0.03126184642314911, -0.03256171569228172, -0.004764043726027012, 0.04393310099840164, 0.027878155931830406, 0.08472815155982971, 0.06635233759880066, 0.039997778832912445, -0.051035650074481964, 0.03931758925318718, -0.07763312011957169, 0.0837942436337471, -0.008371024392545223, 0.032065499573946, -0.15504971146583557, 0.01213898230344057, 0.008397454395890236, 0.08246862143278122, 0.05923331528902054, -0.07911831140518188, -0.11704709380865097, -0.0011812399607151747, 0.055704809725284576, 0.08344024419784546, -0.06709059327840805, -0.006958699785172939, -0.049792345613241196, 0.04004111886024475, -0.051937613636255264, -0.015890279784798622, 0.031652096658945084, 0.06476124376058578, -0.02913849614560604, 0.002962112659588456, 0.03529516980051994, -0.10033207386732101, 0.040101923048496246, -0.018768584355711937, -0.010849598795175552, 0.017933771014213562, 0.01249014213681221, 0.0009668715647421777 ]
0.251967
If any filter plugin marks the node as infeasible, the remaining plugins will not be called for that node. Nodes may be evaluated concurrently. ### PostFilter {#post-filter} These plugins are called after the Filter phase, but only when no feasible nodes were found for the pod. Plugins are called in their configured order. If any postFilter plugin marks the node as `Schedulable`, the remaining plugins will not be called. A typical PostFilter implementation is preemption, which tries to make the pod schedulable by preempting other Pods. ### PreScore {#pre-score} These plugins are used to perform "pre-scoring" work, which generates a sharable state for Score plugins to use. If a PreScore plugin returns an error, the scheduling cycle is aborted. ### Score {#scoring} These plugins are used to rank nodes that have passed the filtering phase. The scheduler will call each scoring plugin for each node. There will be a well defined range of integers representing the minimum and maximum scores. After the [NormalizeScore](#normalize-scoring) phase, the scheduler will combine node scores from all plugins according to the configured plugin weights. #### Capacity scoring {#scoring-capacity} {{< feature-state feature\_gate\_name="StorageCapacityScoring" >}} The feature gate `VolumeCapacityPriority` was used in v1.32 to support storage that are statically provisioned. Starting from v1.33, the new feature gate `StorageCapacityScoring` replaces the old `VolumeCapacityPriority` gate with added support to dynamically provisioned storage. When `StorageCapacityScoring` is enabled, the VolumeBinding plugin in the kube-scheduler is extended to score Nodes based on the storage capacity on each of them. This feature is applicable to CSI volumes that supported [Storage Capacity](/docs/concepts/storage/storage-capacity/), including local storage backed by a CSI driver. ### NormalizeScore {#normalize-scoring} These plugins are used to modify scores before the scheduler computes a final ranking of Nodes. A plugin that registers for this extension point will be called with the [Score](#scoring) results from the same plugin. This is called once per plugin per scheduling cycle. For example, suppose a plugin `BlinkingLightScorer` ranks Nodes based on how many blinking lights they have. ```go func ScoreNode(\_ \*v1.pod, n \*v1.Node) (int, error) { return getBlinkingLightCount(n) } ``` However, the maximum count of blinking lights may be small compared to `NodeScoreMax`. To fix this, `BlinkingLightScorer` should also register for this extension point. ```go func NormalizeScores(scores map[string]int) { highest := 0 for \_, score := range scores { highest = max(highest, score) } for node, score := range scores { scores[node] = score\*NodeScoreMax/highest } } ``` If any NormalizeScore plugin returns an error, the scheduling cycle is aborted. {{< note >}} Plugins wishing to perform "pre-reserve" work should use the NormalizeScore extension point. {{< /note >}} ### Reserve {#reserve} A plugin that implements the Reserve interface has two methods, namely `Reserve` and `Unreserve`, that back two informational scheduling phases called Reserve and Unreserve, respectively. Plugins which maintain runtime state (aka "stateful plugins") should use these phases to be notified by the scheduler when resources on a node are being reserved and unreserved for a given Pod. The Reserve phase happens before the scheduler actually binds a Pod to its designated node. It exists to prevent race conditions while the scheduler waits for the bind to succeed. The `Reserve` method of each Reserve plugin may succeed or fail; if one `Reserve` method call fails, subsequent plugins are not executed and the Reserve phase is considered to have failed. If the `Reserve` method of all plugins succeed, the Reserve phase is considered to be successful and the rest of the scheduling cycle and the binding cycle are executed. The Unreserve phase is triggered if the Reserve phase or a later phase fails. When this happens, the `Unreserve` method of \*\*all\*\*
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/scheduling-framework.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/scheduling-framework.md
[ -0.02391519956290722, -0.002829618053510785, 0.035575371235609055, 0.0725897029042244, 0.04400527849793434, 0.04006243124604225, -0.056052066385746, -0.056414179503917694, -0.00026187789626419544, 0.01770944520831108, -0.04518386721611023, 0.020914895460009575, -0.044269587844610214, -0.012605994939804077, -0.048103880137205124, -0.011244257912039757, 0.007072559557855129, -0.06591232120990753, -0.03634288161993027, -0.0912599116563797, 0.07693780958652496, 0.01695110835134983, -0.07239454239606857, 0.05193311348557472, -0.002279937267303467, -0.006500836927443743, -0.10132304579019547, 0.0017006183043122292, 0.025082513689994812, 0.02632509544491768, -0.03484936058521271, -0.04575913026928902, 0.07763612270355225, 0.04370810091495514, -0.04842333123087883, 0.06050483137369156, -0.013782499358057976, -0.07937449216842651, -0.049696292728185654, -0.050211161375045776, 0.055355094373226166, -0.03399933874607086, -0.09062700718641281, 0.01144708413630724, -0.041458532214164734, -0.016803553327918053, -0.08383189886808395, -0.09597188979387283, -0.07823328673839569, -0.06050015985965729, -0.053151704370975494, -0.04828094318509102, 0.058390408754348755, 0.05525224655866623, 0.06604305654764175, 0.07318047434091568, -0.036586493253707886, -0.05040494352579117, 0.09188547730445862, -0.07236342132091522, -0.06157686933875084, -0.14136545360088348, -0.03323950991034508, -0.00704156281426549, 0.05312930792570114, -0.0353316105902195, -0.002160437637940049, -0.026992687955498695, 0.07088366150856018, -0.012187290005385876, 0.048641137778759, 0.01554376445710659, 0.041984234005212784, 0.010081733576953411, 0.01294864621013403, 0.09596619755029678, -0.0037261235993355513, 0.03385397046804428, -0.02991667203605175, -0.015061494894325733, 0.008931457065045834, -0.022365638986229897, 0.040365152060985565, -0.0013050093548372388, -0.008365378715097904, 0.030632827430963516, -0.007214698940515518, -0.10527510941028595, 0.05546502023935318, 0.0402025431394577, 0.016377069056034088, 0.03929505869746208, -0.026954714208841324, -0.04647400602698326, -0.030565107241272926, -0.022721054032444954, -0.02670827880501747, 0.00434511061757803, 0.07229967415332794, 0.05109188333153725, 0.03678678721189499, 0.01767512783408165, -0.024078113958239555, -0.019319923594594002, 0.1166909858584404, -0.06670163571834564, -0.03800823166966438, -0.037811849266290665, -0.010655445046722889, 0.03586435317993164, 0.01163136214017868, 0.014969716779887676, 0.11022063344717026, -0.010358826257288456, -0.021790217608213425, 0.1396341621875763, 0.04023917764425278, -0.003885028650984168, 0.09307616949081421, 0.003356482135131955, 0.010907018557190895, 0.013359889388084412, 0.07417698949575424, -0.04355906322598457, -0.007308648433536291, 0.07791753113269806, 0.0020878007635474205, 7.820260491541373e-33, 0.0617782324552536, -0.13902822136878967, 0.007762311492115259, -0.049149222671985626, -0.029494645074009895, -0.0851687416434288, -0.02137768268585205, 0.07496970146894455, -0.010158253833651543, -0.042504169046878815, -0.07962437719106674, 0.02987767569720745, -0.027690516784787178, 0.03883098065853119, 0.04882768914103508, -0.10239853709936142, 0.016570845618844032, -0.002663844497874379, 0.02660292200744152, -0.021415311843156815, 0.033079858869314194, -0.11960266530513763, -0.06654124706983566, -0.024224281311035156, 0.014546947553753853, 0.006978805176913738, 0.03353460505604744, -0.08338415622711182, -0.006095456890761852, 0.03551487624645233, -0.021657869219779968, 0.034155767410993576, 0.006951275281608105, 0.105985626578331, -0.08608672022819519, 0.05180473253130913, -0.0170504841953516, 0.03937651216983795, -0.03622286766767502, -0.043544650077819824, 0.010934820398688316, 0.04084562510251999, -0.028320418670773506, -0.031027834862470627, 0.008144824765622616, -0.0776209682226181, -0.005872664041817188, -0.024164274334907532, 0.05351341515779495, 0.06334444880485535, 0.05285998061299324, -0.017153820022940636, 0.038331419229507446, -0.009248190559446812, -0.0103088254109025, 0.03943614661693573, 0.12265510112047195, -0.014022202230989933, 0.01959574967622757, 0.03708065673708916, -0.017878416925668716, -0.04935431480407715, -0.056366801261901855, 0.000271083990810439, 0.07710344344377518, 0.11468985676765442, 0.006348455790430307, -0.0013438683236017823, 0.05850501358509064, 0.0018725540721789002, -0.05581915006041527, 0.03773832693696022, -0.03179014101624489, -0.0008750930428504944, 0.003581554163247347, -0.017417090013623238, 0.011299584060907364, -0.0005297294119372964, -0.08997977524995804, -0.003998002968728542, -0.012085291557013988, 0.004419190343469381, -0.08242665976285934, 0.008355396799743176, 0.004159669857472181, -0.04432882368564606, 0.011509831063449383, 0.030458670109510422, -0.057168371975421906, -0.035044923424720764, 0.06334643065929413, 0.03721104934811592, -0.04266025871038437, 0.028038134798407555, -0.03609439358115196, -6.593485934348432e-33, -0.01628834381699562, -0.019411755725741386, -0.04898543283343315, 0.05959545075893402, 0.058449000120162964, -0.0257106963545084, -0.07856541872024536, -0.02116834931075573, 0.07465574145317078, -0.01640545204281807, -0.06220453977584839, -0.07448860257863998, 0.09470561146736145, 0.000011742145943571813, -0.028636539354920387, -0.010126050561666489, -0.10342079401016235, -0.0893423780798912, -0.06345035135746002, 0.02681208774447441, -0.0009740780224092305, 0.06781970709562302, 0.04507720470428467, -0.008075649850070477, -0.0015625805826857686, 0.007541856728494167, 0.03054271824657917, 0.012038118205964565, 0.03442471846938133, 0.015036100521683693, 0.04022974520921707, -0.08283113688230515, -0.05020037293434143, 0.1049879863858223, 0.042797498404979706, -0.028878724202513695, -0.12434647977352142, 0.0665978193283081, 0.02903612330555916, 0.008879429660737514, 0.07693984359502792, 0.02484293468296528, -0.0742536187171936, 0.03055507317185402, -0.010526870377361774, 0.021861732006072998, -0.014911530539393425, -0.0027756602503359318, -0.03894323110580444, -0.02991628088057041, -0.10308869928121567, 0.027067871764302254, -0.019192826002836227, 0.11892152577638626, -0.0361921600997448, -0.028827212750911713, 0.03234196454286575, -0.0005506618181243539, -0.005386826582252979, 0.03629814460873604, 0.077912338078022, -0.04218004271388054, 0.027136627584695816, 0.01379992812871933, 0.011865895241498947, -0.008834456093609333, 0.021035507321357727, -0.03581589460372925, 0.050937995314598083, 0.019857142120599747, 0.0072811441496014595, 0.005213626194745302, 0.02747010812163353, -0.023907002061605453, -0.04805579036474228, -0.019721990451216698, -0.05305537208914757, 0.07979672402143478, -0.012713472358882427, 0.05456419661641121, -0.11375744640827179, 0.12576887011528015, -0.018570924177765846, 0.07024411857128143, 0.037431079894304276, 0.016785191372036934, 0.08872245997190475, 0.023800700902938843, 0.04987930506467819, 0.05415377765893936, 0.054963916540145874, 0.04938066750764847, -0.06950145214796066, 0.11836603283882141, -0.066312275826931, -5.2150724627608724e-8, 0.02982577681541443, -0.032028887420892715, -0.05069483444094658, 0.10572146624326706, 0.057460539042949677, -0.040476568043231964, 0.06632974743843079, 0.015542488545179367, -0.08292394131422043, 0.03045603632926941, 0.061515603214502335, 0.03007212094962597, -0.025378385558724403, -0.057699549943208694, 0.03163226693868637, -0.03320325165987015, 0.00913176964968443, 0.09968064725399017, -0.04176892712712288, -0.031684763729572296, -0.06594999879598618, -0.04907674342393875, -0.022667570039629936, 0.017361273989081383, -0.04683440923690796, 0.04516169801354408, 0.06926276534795761, 0.06089053303003311, 0.040819164365530014, 0.01976735144853592, -0.012018048204481602, 0.046328283846378326, 0.0035087037831544876, 0.03704395517706871, -0.08601240068674088, 0.07485800236463547, -0.09221397340297699, -0.0016789946239441633, -0.02161162719130516, 0.0965011939406395, 0.022124087437987328, -0.05451056361198425, -0.07780420035123825, -0.026514137163758278, -0.031878046691417694, 0.03853365778923035, -0.03959745541214943, 0.025211436673998833, 0.05755970627069473, 0.07326053082942963, -0.03852630406618118, -0.02275644801557064, 0.00005946860619587824, 0.02739781327545643, 0.021270301192998886, -0.006928349379450083, 0.031185535714030266, -0.08880496770143509, -0.02939942106604576, -0.006995340343564749, 0.014971007592976093, -0.038555264472961426, 0.0495682917535305, 0.01383892074227333 ]
0.177835
the `Reserve` method of all plugins succeed, the Reserve phase is considered to be successful and the rest of the scheduling cycle and the binding cycle are executed. The Unreserve phase is triggered if the Reserve phase or a later phase fails. When this happens, the `Unreserve` method of \*\*all\*\* Reserve plugins will be executed in the reverse order of `Reserve` method calls. This phase exists to clean up the state associated with the reserved Pod. {{< caution >}} The implementation of the `Unreserve` method in Reserve plugins must be idempotent and may not fail. {{< /caution >}} ### Permit \_Permit\_ plugins are invoked at the end of the scheduling cycle for each Pod, to prevent or delay the binding to the candidate node. A permit plugin can do one of the three things: 1. \*\*approve\*\* \ Once all Permit plugins approve a Pod, it is sent for binding. 1. \*\*deny\*\* \ If any Permit plugin denies a Pod, it is returned to the scheduling queue. This will trigger the Unreserve phase in [Reserve plugins](#reserve). 1. \*\*wait\*\* (with a timeout) \ If a Permit plugin returns "wait", then the Pod is kept in an internal "waiting" Pods list, and the binding cycle of this Pod starts but directly blocks until it gets approved. If a timeout occurs, \*\*wait\*\* becomes \*\*deny\*\* and the Pod is returned to the scheduling queue, triggering the Unreserve phase in [Reserve plugins](#reserve). {{< note >}} While any plugin can access the list of "waiting" Pods and approve them (see [`FrameworkHandle`](https://git.k8s.io/enhancements/keps/sig-scheduling/624-scheduling-framework#frameworkhandle)), we expect only the permit plugins to approve binding of reserved Pods that are in "waiting" state. Once a Pod is approved, it is sent to the [PreBind](#pre-bind) phase. {{< /note >}} ### PreBind {#pre-bind} These plugins are used to perform any work required before a Pod is bound. For example, a pre-bind plugin may provision a network volume and mount it on the target node before allowing the Pod to run there. If any PreBind plugin returns an error, the Pod is [rejected](#reserve) and returned to the scheduling queue. ### Bind These plugins are used to bind a Pod to a Node. Bind plugins will not be called until all PreBind plugins have completed. Each bind plugin is called in the configured order. A bind plugin may choose whether or not to handle the given Pod. If a bind plugin chooses to handle a Pod, \*\*the remaining bind plugins are skipped\*\*. ### PostBind {#post-bind} This is an informational interface. Post-bind plugins are called after a Pod is successfully bound. This is the end of a binding cycle, and can be used to clean up associated resources. ## Plugin API There are two steps to the plugin API. First, plugins must register and get configured, then they use the extension point interfaces. Extension point interfaces have the following form. ```go type Plugin interface { Name() string } type QueueSortPlugin interface { Plugin Less(\*v1.pod, \*v1.pod) bool } type PreFilterPlugin interface { Plugin PreFilter(context.Context, \*framework.CycleState, \*v1.pod) error } // ... ``` ## Plugin configuration You can enable or disable plugins in the scheduler configuration. If you are using Kubernetes v1.18 or later, most scheduling [plugins](/docs/reference/scheduling/config/#scheduling-plugins) are in use and enabled by default. In addition to default plugins, you can also implement your own scheduling plugins and get them configured along with default plugins. You can visit [scheduler-plugins](https://github.com/kubernetes-sigs/scheduler-plugins) for more details. If you are using Kubernetes v1.18 or later, you can configure a set of plugins as a scheduler profile and then define multiple profiles to fit various kinds of workload. Learn more at [multiple profiles](/docs/reference/scheduling/config/#multiple-profiles).
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/scheduling-framework.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/scheduling-framework.md
[ -0.1019086241722107, 0.0037945150397717953, 0.022955145686864853, 0.09234242141246796, 0.06517645716667175, 0.025135179981589317, -0.01786898449063301, -0.07692088931798935, -0.01120894867926836, 0.017123615369200706, 0.0373903252184391, 0.021108057349920273, 0.03867896646261215, -0.049135539680719376, -0.013798129744827747, -0.002532952232286334, -0.054114118218421936, -0.04672195389866829, -0.06554627418518066, -0.04232693091034889, 0.07649581879377365, 0.005266289226710796, -0.06250139325857162, -0.011099600233137608, -0.07928275316953659, -0.003673471976071596, -0.04957623779773712, -0.013252860866487026, 0.0941280797123909, -0.04816504940390587, -0.03588246926665306, -0.014719557017087936, -0.04457733780145645, -0.0592142753303051, 0.07342252880334854, 0.14688043296337128, -0.020115116611123085, -0.03441813588142395, -0.08682646602392197, -0.010872891172766685, 0.051911383867263794, -0.04448634013533592, -0.10806732624769211, 0.008518165908753872, -0.016794532537460327, -0.011457433924078941, -0.06766107678413391, -0.041526321321725845, -0.06633038073778152, -0.08854538947343826, 0.10104810446500778, -0.005713734310120344, 0.04611906036734581, 0.05856723710894585, 0.06454449892044067, -0.004094200674444437, 0.036146555095911026, -0.04283963143825531, -0.0018474103417247534, 0.005521267186850309, 0.021982796490192413, -0.039537213742733, -0.08405877649784088, -0.008622108027338982, 0.0027251222636550665, -0.013657406903803349, -0.0074727158062160015, 0.02048804797232151, 0.026433901861310005, 0.0436524897813797, -0.021876778453588486, -0.02182518132030964, -0.04109114035964012, 0.012972789816558361, 0.05277248099446297, 0.04429661110043526, -0.029518434777855873, -0.014032903127372265, 0.0026265124324709177, -0.09248492121696472, 0.022832563146948814, -0.008291101083159447, 0.02667277865111828, -0.01417005155235529, -0.007769817486405373, 0.025869445875287056, -0.043837085366249084, -0.03561686724424362, 0.10164302587509155, 0.04053584858775139, -0.00962421577423811, 0.007067238446325064, 0.040590252727270126, 0.03394618257880211, 0.015385898761451244, -0.026776352897286415, 0.03513498604297638, 0.052483074367046356, -0.016257110983133316, 0.053096186369657516, 0.04481617361307144, 0.035842835903167725, -0.030028829351067543, -0.02318272739648819, 0.016349738463759422, -0.0768207237124443, -0.06084073334932327, -0.06171727925539017, 0.0031721186824142933, 0.06816989183425903, 0.021830499172210693, 0.017760144546628, 0.08695299178361893, 0.0504339262843132, -0.037535443902015686, 0.10370142012834549, -0.06429774314165115, -0.006096103694289923, 0.03301898017525673, 0.06519574671983719, -0.015790075063705444, -0.022029617801308632, 0.10709711909294128, -0.03918347507715225, -0.026919789612293243, 0.019382977858185768, -0.001238241558894515, 3.405433215613076e-33, -0.00034427206264808774, -0.14983205497264862, -0.07037053257226944, -0.0239274762570858, 0.02933340147137642, -0.058376334607601166, -0.0071878135204315186, 0.05505053326487541, -0.08118004351854324, 0.01352566760033369, 0.0419992096722126, 0.015287226065993309, -0.07648274302482605, 0.03425370529294014, -0.02114730142056942, -0.10905825346708298, 0.10418084263801575, 0.10786226391792297, 0.07201162725687027, -0.006396547891199589, 0.06787995249032974, -0.028729144483804703, -0.03603922948241234, -0.03944231942296028, 0.021583834663033485, -0.005026114173233509, 0.023344559594988823, -0.04209025949239731, 0.04767622798681259, 0.05616901069879532, -0.007845894433557987, 0.04424113407731056, 0.020515941083431244, 0.05883904919028282, -0.07132498919963837, 0.060697197914123535, -0.01625078357756138, -0.00511032622307539, -0.08157267421483994, -0.06794513016939163, 0.00493287667632103, -0.01951959729194641, -0.04634992033243179, -0.027727462351322174, 0.0415470190346241, -0.16465140879154205, 0.030479852110147476, -0.032215286046266556, 0.03639478608965874, 0.029570506885647774, 0.02923130802810192, 0.04657602682709694, -0.04380889981985092, -0.052887212485075, -0.009688119404017925, -0.024756425991654396, -0.01775919646024704, 0.01702314056456089, -0.03332581743597984, -0.03435591608285904, -0.01910039223730564, 0.02205083705484867, -0.06614551693201065, 0.02328977733850479, 0.046825457364320755, 0.11088092625141144, -0.036090776324272156, -0.07065088301897049, -0.013937586918473244, 0.025593938305974007, -0.04911523312330246, -0.0007405998767353594, -0.017029933631420135, -0.0005544872838072479, -0.047630637884140015, -0.027818888425827026, 0.04714282602071762, 0.019979046657681465, -0.047055792063474655, -0.03068779967725277, 0.019866203889250755, 0.003394117346033454, -0.08346906304359436, 0.047323402017354965, -0.0075472150929272175, -0.09132500737905502, 0.023138858377933502, 0.026608366519212723, -0.042745426297187805, -0.031166797503829002, 0.06864728778600693, 0.027225632220506668, -0.014228221960365772, -0.029496097937226295, -0.01860966347157955, -4.3136267632140985e-33, 0.08743567019701004, -0.007778306026011705, -0.027115164324641228, 0.017992841079831123, 0.05053393915295601, -0.017737500369548798, -0.07619929313659668, 0.0019396761199459434, 0.005519739352166653, -0.07749898731708527, -0.07489427924156189, -0.008606591261923313, 0.08486633747816086, 0.0392213836312294, -0.05219827592372894, -0.01374348159879446, -0.1026776060461998, -0.050262127071619034, -0.023585598915815353, 0.08496353775262833, 0.04678916558623314, 0.0022359469439834356, 0.0729159340262413, 0.008297240361571312, -0.05352277681231499, -0.002253125421702862, -0.09344931691884995, 0.07637559622526169, -0.04370032623410225, 0.004357025492936373, 0.06771460175514221, -0.08897711336612701, -0.14564833045005798, 0.012685779482126236, -0.014389406889677048, -0.03800782188773155, -0.09212017059326172, 0.1359277218580246, -0.01348940096795559, 0.042441751807928085, 0.09994743764400482, 0.01585536077618599, -0.04909598082304001, 0.0342111736536026, 0.03206809610128403, 0.01771620474755764, 0.025942277163267136, -0.04690951853990555, 0.02372600883245468, -0.026705151423811913, -0.031095582991838455, -0.039804548025131226, 0.007451207377016544, 0.07191773504018784, 0.009928742423653603, 0.0562257282435894, 0.07697059214115143, 0.018703218549489975, -0.037156492471694946, 0.052642956376075745, 0.09365469962358475, -0.062476493418216705, -0.01653723418712616, 0.04530409350991249, 0.015101585537195206, -0.043648943305015564, 0.058716338127851486, 0.00453169597312808, 0.052318718284368515, 0.013937635347247124, 0.09232623130083084, 0.08587639033794403, -0.028943637385964394, -0.031193286180496216, 0.07256662845611572, 0.007663403637707233, -0.027867581695318222, -0.05863728001713753, -0.015112129971385002, -0.03958022966980934, -0.0976899117231369, 0.05419133976101875, -0.0449545681476593, -0.002024981891736388, 0.024198215454816818, -0.017170874401926994, 0.05438625067472458, -0.0032947820145636797, 0.04106675460934639, 0.07615998387336731, 0.013202577829360962, 0.07541722804307938, -0.0465557686984539, 0.08376239240169525, -0.06559281796216965, -5.204379149859051e-8, 0.013983369804918766, -0.006466830614954233, -0.02266232669353485, 0.010333850048482418, 0.10573206096887589, -0.16681981086730957, 0.04825296998023987, -0.06860893964767456, -0.018200088292360306, -0.006468885112553835, 0.07586225867271423, -0.02213813178241253, 0.004112606402486563, -0.01407973188906908, 0.030101824551820755, -0.0029532595071941614, 0.0834132507443428, 0.0694463774561882, -0.061956483870744705, -0.05265147611498833, -0.025076083838939667, -0.05087719112634659, 0.03190210834145546, 0.020210573449730873, -0.02593202516436577, -0.016421109437942505, 0.09406926482915878, 0.07365389913320541, 0.021069765090942383, 0.08267198503017426, -0.02144322171807289, 0.014247306622564793, 0.0003407550975680351, 0.042332723736763, -0.05183571204543114, 0.09143710881471634, -0.05470738932490349, -0.032110534608364105, -0.0162944458425045, 0.04188309982419014, 0.04089187830686569, 0.009125913493335247, -0.03165372833609581, -0.002870740368962288, 0.0013092488516122103, 0.018355298787355423, -0.05849236622452736, 0.01690100133419037, 0.010339349508285522, 0.048600830137729645, -0.08900435268878937, -0.018030252307653427, 0.024434350430965424, 0.05189099907875061, 0.05248882994055748, 0.01755938120186329, 0.011482710018754005, -0.008065750822424889, 0.033280812203884125, 0.04200278967618942, -0.04030044749379158, -0.0038866247050464153, 0.025395467877388, -0.03959641978144646 ]
0.163442
configured along with default plugins. You can visit [scheduler-plugins](https://github.com/kubernetes-sigs/scheduler-plugins) for more details. If you are using Kubernetes v1.18 or later, you can configure a set of plugins as a scheduler profile and then define multiple profiles to fit various kinds of workload. Learn more at [multiple profiles](/docs/reference/scheduling/config/#multiple-profiles).
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/scheduling-framework.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/scheduling-framework.md
[ 0.010869369842112064, -0.054705191403627396, -0.0015053533716127276, 0.03676678240299225, -0.06847328692674637, 0.016990819945931435, -0.045165278017520905, -0.031040307134389877, 0.06187157332897186, 0.0019096217583864927, -0.11019743978977203, -0.03893882408738136, -0.015287834219634533, 0.04417838156223297, 0.025879018008708954, -0.02474295161664486, -0.048123907297849655, 0.000018522989194025286, -0.033514924347400665, -0.09429646283388138, 0.04868966341018677, -0.04307783767580986, 0.040534425526857376, 0.001954859122633934, -0.05164497345685959, -0.06087387725710869, -0.004870734177529812, -0.011016028001904488, -0.027210842818021774, -0.015726417303085327, -0.015774156898260117, -0.05442582815885544, 0.004262539092451334, 0.028013819828629494, -0.010663331486284733, 0.039000336080789566, -0.05347205325961113, -0.004728502128273249, -0.07016109675168991, 0.06902632862329483, 0.043555665761232376, -0.04049286991357803, -0.08522450178861618, -0.049751684069633484, -0.04846128448843956, 0.0010953850578516722, -0.08053183555603027, -0.024122973904013634, 0.018941687420010567, -0.0013625957071781158, 0.11135301738977432, -0.11882738023996353, 0.03745969384908676, 0.06257995963096619, 0.06016860157251358, 0.04346152022480965, 0.03670673444867134, -0.010081225074827671, 0.08685789257287979, -0.0010163894621655345, -0.03507266938686371, -0.01983913965523243, 0.0009122036281041801, 0.0006028245552442968, 0.03398331627249718, 0.05511372163891792, 0.02711576595902443, 0.03285197541117668, -0.04279022663831711, -0.030250903218984604, 0.023126907646656036, -0.02424660138785839, -0.03778462111949921, -0.027036046609282494, -0.009409327991306782, -0.021093670278787613, -0.03243085369467735, 0.06852799654006958, -0.023081975057721138, -0.08228730410337448, -0.018712712451815605, 0.028613317757844925, 0.03553561493754387, -0.04469319060444832, -0.04287281632423401, -0.05547989904880524, 0.0005704559152945876, -0.03502063825726509, 0.06163283810019493, 0.02968909777700901, 0.06095988303422928, 0.037565745413303375, -0.015805518254637718, -0.11485330760478973, -0.03174644708633423, -0.014958119951188564, -0.019074290990829468, 0.05419641360640526, 0.07601522654294968, -0.05646269768476486, 0.007477856706827879, -0.05162767693400383, 0.08211115002632141, 0.10380247980356216, 0.08431747555732727, -0.05662025511264801, -0.03352075070142746, -0.011093419045209885, -0.03881851211190224, 0.0031421566382050514, 0.039948176592588425, 0.10528379678726196, 0.054997943341732025, -0.01847773790359497, 0.018155395984649658, 0.090784952044487, -0.005580566357821226, 0.02431660145521164, 0.04578743875026703, 0.11294736713171005, 0.0081293610855937, -0.09784123301506042, 0.011649525724351406, -0.07821588218212128, 0.01665187068283558, 0.014507543295621872, -0.014922529458999634, 2.912049951240145e-33, 0.02960318699479103, -0.04304281622171402, 0.030273908749222755, -0.04603581875562668, 0.035288359969854355, -0.10072443634271622, -0.05422596633434296, -0.0024622485507279634, -0.020233498886227608, -0.12207116931676865, -0.026324564591050148, 0.05196278542280197, 0.013308876194059849, 0.04835940897464752, -0.041645508259534836, -0.013718654401600361, 0.02616390585899353, 0.05462956055998802, 0.13633987307548523, -0.020008718594908714, 0.006365000270307064, -0.0762411579489708, -0.09726370871067047, -0.006785156670957804, 0.05847742035984993, -0.0006327748415060341, 0.09154625236988068, -0.06784895807504654, -0.024499479681253433, 0.010589356534183025, 0.05205123499035835, -0.01114631537348032, -0.015399849973618984, 0.10390608757734299, -0.06893115490674973, 0.008831729181110859, -0.06938217580318451, 0.11056876927614212, 0.0076967878267169, 0.03752544894814491, 0.034374672919511795, -0.041440390050411224, 0.007898028008639812, -0.08558676391839981, 0.001005562487989664, 0.022634156048297882, 0.03965447098016739, -0.05483563616871834, 0.05243374779820442, 0.04270306974649429, 0.06073508784174919, -0.048671215772628784, 0.07476739585399628, -0.012087572365999222, 0.07331400364637375, 0.018863346427679062, 0.07332149147987366, -0.11013408750295639, -0.009338426403701305, 0.016566749662160873, -0.05041204020380974, -0.04195242002606392, -0.07492557913064957, 0.016264580190181732, 0.03140254318714142, -0.020915638655424118, -0.010062125511467457, 0.04889557510614395, 0.04765394702553749, 0.033375997096300125, -0.05865021422505379, 0.012354264035820961, 0.011388387531042099, -0.008484132587909698, -0.02794775553047657, -0.03264392539858818, 0.022810330614447594, 0.0174546055495739, -0.17341068387031555, 0.10168224573135376, -0.016501987352967262, 0.048816923052072525, -0.000059887122915824875, 0.012405226938426495, 0.014130192808806896, -0.02418399602174759, -0.022671479731798172, 0.03557240590453148, -0.021082749590277672, 0.010591228492558002, 0.04573943093419075, -0.035986579954624176, -0.027885470539331436, 0.08954333513975143, -0.04526012763381004, -2.7005041307753276e-33, 0.04790616035461426, -0.011943922378122807, 0.020322464406490326, 0.04117869585752487, 0.09224965423345566, 0.059121470898389816, 0.028839653357863426, 0.014249433763325214, 0.0040814876556396484, 0.01410945225507021, -0.04474575072526932, -0.09129418432712555, 0.03020290844142437, -0.03940502181649208, -0.03849955275654793, -0.014720924198627472, -0.023704975843429565, 0.023747874423861504, -0.02205999568104744, 0.016449373215436935, -0.023831017315387726, -0.06859444081783295, 0.023344742134213448, -0.05734314024448395, 0.06079183891415596, 0.023267671465873718, -0.026984751224517822, 0.05869593471288681, -0.055013395845890045, 0.0361114963889122, -0.053978145122528076, -0.1337408572435379, 0.005516257602721453, -0.01046671811491251, 0.034613236784935, -0.01330060139298439, -0.04343811795115471, 0.1298624575138092, 0.014408637769520283, 0.071879081428051, 0.047133542597293854, -0.007440245244652033, -0.014589069411158562, 0.018231121823191643, -0.02494364231824875, 0.0683949664235115, -0.012298239395022392, -0.05902982875704765, -0.08157506585121155, -0.07204459607601166, -0.0699559822678566, -0.013462641276419163, -0.03149297833442688, 0.08349483460187912, 0.02219761535525322, -0.010463890619575977, 0.03192064166069031, 0.021934418007731438, 0.011992634274065495, 0.06379818171262741, 0.030886517837643623, -0.09723803400993347, 0.12309376895427704, 0.05588287115097046, -0.01017794106155634, -0.075454480946064, 0.04221276193857193, -0.029778163880109787, -0.0705314427614212, 0.036815378814935684, -0.04995736479759216, -0.012329298071563244, 0.052744362503290176, 0.061701640486717224, -0.06847263127565384, -0.0855574905872345, 0.029055556282401085, -0.01708216220140457, -0.018371904268860817, 0.08837750554084778, 0.016998715698719025, 0.0028962597716599703, -0.046279776841402054, -0.026461787521839142, -0.07353482395410538, 0.04963795095682144, 0.059266939759254456, 0.0979432463645935, 0.06534387171268463, 0.025828078389167786, 0.01933046616613865, 0.010450166650116444, -0.05851416662335396, 0.11191752552986145, -0.026490097865462303, -4.3806089422560035e-8, 0.07577835023403168, -0.01164228655397892, 0.027852918952703476, -0.01592809148132801, 0.012578937225043774, -0.10801621526479721, 0.04693900793790817, -0.0070129334926605225, 0.001445152098312974, 0.048689138144254684, 0.056169625371694565, 0.04929003864526749, 0.05356787517666817, -0.005581717472523451, 0.07978352159261703, -0.026845967397093773, 0.0478181354701519, 0.013869044370949268, 0.0034676578361541033, -0.07796791940927505, 0.020993627607822418, -0.038901668041944504, 0.04243215546011925, -0.024832097813487053, 0.047925498336553574, 0.04893109202384949, 0.022914113476872444, 0.012977609410881996, 0.020813461393117905, 0.0139621552079916, -0.03187655285000801, 0.028924129903316498, -0.08571508526802063, -0.02397395484149456, -0.00975797139108181, -0.008731246925890446, -0.15862707793712616, 0.002784502226859331, 0.015034828335046768, 0.09209951013326645, 0.07803672552108765, -0.061795879155397415, -0.03909946605563164, 0.006336539518088102, 0.06659313291311264, 0.059928759932518005, -0.06249907985329628, 0.018245352432131767, 0.024830665439367294, -0.03323499113321304, -0.0365082211792469, -0.007891281507909298, 0.057650402188301086, 0.04695502296090126, -0.01764298975467682, -0.005635527893900871, 0.029605044052004814, -0.06465820968151093, 0.062374792993068695, -0.04920610785484314, -0.03243768587708473, -0.006828275043517351, -0.016623584553599358, -0.02100173756480217 ]
0.138498
{{< feature-state for\_k8s\_version="v1.30" state="stable" >}} Pods were considered ready for scheduling once created. Kubernetes scheduler does its due diligence to find nodes to place all pending Pods. However, in a real-world case, some Pods may stay in a "miss-essential-resources" state for a long period. These Pods actually churn the scheduler (and downstream integrators like Cluster AutoScaler) in an unnecessary manner. By specifying/removing a Pod's `.spec.schedulingGates`, you can control when a Pod is ready to be considered for scheduling. ## Configuring Pod schedulingGates The `schedulingGates` field contains a list of strings, and each string literal is perceived as a criteria that Pod should be satisfied before considered schedulable. This field can be initialized only when a Pod is created (either by the client, or mutated during admission). After creation, each schedulingGate can be removed in arbitrary order, but addition of a new scheduling gate is disallowed. {{< figure src="/docs/images/podSchedulingGates.svg" alt="pod-scheduling-gates-diagram" caption="Figure. Pod SchedulingGates" class="diagram-large" link="https://mermaid.live/edit#pako:eNplkktTwyAUhf8KgzuHWpukaYszutGlK3caFxQuCVMCGSDVTKf\_XfKyPlhxz4HDB9wT5lYAptgHFuBRsdKxenFMClMYFIdfUdRYgbiD6ItJTEbR8wpEq5UpUfnDTf-5cbPoJjcbXdcaE61RVJIiqJvQ\_Y30D-OCt-t3tFjcR5wZayiVnIGmkv4NiEfX9jijKTmmRH5jf0sRugOP0HyHUc1m6KGMFP27cM28fwSJDluPpNKaXqVJzmFNfHD2APRKSjnNFx9KhIpmzSfhVls3eHdTRrwG8QnxKfEZUUNeYTDBNbiaKRF\_5dSfX-BQQQ0FpnEqQLJWhwIX5hyXsjbYl85wTINrgeC2EZd\_xFQy7b\_VJ6GCdd-itkxALE84dE3fAqXyIUZya6Qqe711OspVCI2ny2Vv35QqVO3-htt66ZWomAvVcZcv8yTfsiSFfJOydZoKvl\_ttjLJVlJsblcJw-czwQ0zr9ZeqGDgeR77b2jD8xdtjtDn" >}} ## Usage example To mark a Pod not-ready for scheduling, you can create it with one or more scheduling gates like this: {{% code\_sample file="pods/pod-with-scheduling-gates.yaml" %}} After the Pod's creation, you can check its state using: ```bash kubectl get pod test-pod ``` The output reveals it's in `SchedulingGated` state: ```none NAME READY STATUS RESTARTS AGE test-pod 0/1 SchedulingGated 0 7s ``` You can also check its `schedulingGates` field by running: ```bash kubectl get pod test-pod -o jsonpath='{.spec.schedulingGates}' ``` The output is: ```none [{"name":"example.com/foo"},{"name":"example.com/bar"}] ``` To inform scheduler this Pod is ready for scheduling, you can remove its `schedulingGates` entirely by reapplying a modified manifest: {{% code\_sample file="pods/pod-without-scheduling-gates.yaml" %}} You can check if the `schedulingGates` is cleared by running: ```bash kubectl get pod test-pod -o jsonpath='{.spec.schedulingGates}' ``` The output is expected to be empty. And you can check its latest status by running: ```bash kubectl get pod test-pod -o wide ``` Given the test-pod doesn't request any CPU/memory resources, it's expected that this Pod's state get transited from previous `SchedulingGated` to `Running`: ```none NAME READY STATUS RESTARTS AGE IP NODE test-pod 1/1 Running 0 15s 10.0.0.4 node-2 ``` ## Observability The metric `scheduler\_pending\_pods` comes with a new label `"gated"` to distinguish whether a Pod has been tried scheduling but claimed as unschedulable, or explicitly marked as not ready for scheduling. You can use `scheduler\_pending\_pods{queue="gated"}` to check the metric result. ## Mutable Pod scheduling directives You can mutate scheduling directives of Pods while they have scheduling gates, with certain constraints. At a high level, you can only tighten the scheduling directives of a Pod. In other words, the updated directives would cause the Pods to only be able to be scheduled on a subset of the nodes that it would previously match. More concretely, the rules for updating a Pod's scheduling directives are as follows: 1. For `.spec.nodeSelector`, only additions are allowed. If absent, it will be allowed to be set. 2. For `spec.affinity.nodeAffinity`, if nil, then setting anything is allowed. 3. If `NodeSelectorTerms` was empty, it will be allowed to be set. If not empty, then only additions of `NodeSelectorRequirements` to `matchExpressions` or `fieldExpressions` are allowed, and no changes to existing `matchExpressions` and `fieldExpressions` will be allowed. This is because the terms in `.requiredDuringSchedulingIgnoredDuringExecution.NodeSelectorTerms`, are ORed while the expressions in `nodeSelectorTerms[].matchExpressions` and `nodeSelectorTerms[].fieldExpressions` are ANDed. 4. For `.preferredDuringSchedulingIgnoredDuringExecution`, all updates are allowed. This is because preferred terms are not authoritative, and so policy controllers don't validate those terms. ## {{% heading "whatsnext" %}} \* Read the [PodSchedulingReadiness KEP](https://github.com/kubernetes/enhancements/blob/master/keps/sig-scheduling/3521-pod-scheduling-readiness) for more details
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/pod-scheduling-readiness.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/pod-scheduling-readiness.md
[ -0.013661235570907593, 0.03595655411481857, 0.0542651005089283, 0.1051369309425354, 0.01843573898077011, 0.00361839821562171, -0.03886140510439873, -0.050168391317129135, 0.004797426052391529, 0.03915838897228241, -0.04722768813371658, 0.026198919862508774, -0.046268463134765625, 0.01399659737944603, -0.014650004915893078, -0.0021068528294563293, 0.053202223032712936, -0.08791258186101913, -0.027535956352949142, -0.040044866502285004, 0.045597705990076065, -0.028464818373322487, 0.002531872596591711, 0.04223830625414848, -0.03553600236773491, -0.008278630673885345, -0.05643501132726669, -0.03116386942565441, 0.03396296873688698, 0.03302576765418053, -0.0832706019282341, -0.023229990154504776, 0.09063291549682617, 0.04332878068089485, 0.06473085284233093, 0.06172976270318031, -0.010367612354457378, -0.03345000743865967, -0.016433395445346832, 0.012382058426737785, 0.0366857647895813, -0.09661365300416946, -0.1164526492357254, -0.04003238305449486, -0.03694789856672287, -0.01539758313447237, -0.05287997052073479, -0.02459077164530754, -0.051657214760780334, -0.018948933109641075, 0.005031384062021971, -0.10424574464559555, 0.07650741934776306, 0.048818059265613556, 0.10220818966627121, 0.10204572230577469, 0.0030630321707576513, 0.01066200528293848, 0.08746025711297989, 0.004027014132589102, 0.04585118219256401, -0.08858378231525421, 0.010049317963421345, -0.01846185512840748, 0.03809834271669388, -0.0034495897125452757, 0.05476393550634384, 0.02883961796760559, 0.06213045120239258, 0.016434403136372566, 0.09445642679929733, -0.00028082114295102656, -0.03321520611643791, 0.03366195783019066, 0.002336838748306036, 0.031208006665110588, 0.03739339858293533, 0.04158462584018707, 0.03851673752069473, -0.029782971367239952, -0.05210210755467415, -0.010826230980455875, 0.02211921662092209, -0.06760899722576141, -0.06377001106739044, 0.002120512304827571, -0.011190707795321941, -0.024887006729841232, 0.08787968009710312, 0.003460104577243328, 0.003519648453220725, -0.012117879465222359, 0.01617463305592537, -0.11763151735067368, 0.032645776867866516, 0.01431844662874937, -0.006888689938932657, -0.028061311691999435, 0.026378603652119637, -0.009173651225864887, 0.03752774000167847, -0.01631387695670128, 0.038771212100982666, 0.015429752878844738, 0.057852763682603836, -0.0627310574054718, -0.04588286206126213, -0.0002145479229511693, -0.021972116082906723, 0.05406786873936653, 0.05530960112810135, 0.06989233940839767, 0.0493948757648468, 0.01602579466998577, -0.03074016608297825, 0.09432167559862137, -0.004852209705859423, 0.0016547268023714423, 0.07151658833026886, 0.08971507102251053, 0.03907785937190056, -0.0768207535147667, 0.03422375023365021, -0.006908198352903128, -0.022727811709046364, 0.01431637816131115, -0.04010652378201485, 6.031973588795734e-33, -0.01723414473235607, -0.1017390787601471, -0.04584628716111183, -0.09193173050880432, 0.03015347756445408, -0.10901647061109543, -0.028481822460889816, -0.004549727309495211, -0.033265888690948486, -0.08479095250368118, -0.058420777320861816, 0.044926967471838, 0.011930062435567379, 0.007947808131575584, 0.00668809050694108, -0.10163141041994095, -0.005192135460674763, 0.03530897945165634, 0.10991579294204712, -0.028490284457802773, 0.03917640075087547, -0.12027653306722641, -0.08870679885149002, -0.018445566296577454, -0.0029597608372569084, -0.059970200061798096, 0.04367503523826599, -0.10936656594276428, -0.020451785996556282, 0.0368829183280468, -0.04515698552131653, 0.0027535653207451105, 0.002836778527125716, 0.04678347334265709, -0.11942881345748901, -0.028261585161089897, -0.04476984217762947, 0.012906888499855995, -0.02894490770995617, -0.02905554696917534, 0.03303791210055351, 0.004349045921117067, -0.01182281132787466, -0.04846664145588875, 0.06258774548768997, -0.029252199456095695, 0.054095372557640076, -0.05514676123857498, -0.020406775176525116, 0.05040143057703972, 0.016873817890882492, -0.03310555964708328, 0.04976772516965866, -0.08424298465251923, 0.02742738462984562, 0.016753677278757095, 0.10964784771203995, -0.055614106357097626, -0.015654616057872772, 0.01567690819501877, -0.010106471367180347, -0.011352110654115677, -0.010320957750082016, -0.032697346061468124, 0.00827857106924057, 0.025490213185548782, -0.005787987262010574, 0.06148981675505638, -0.015190424397587776, 0.03819208964705467, -0.07566441595554352, 0.036301374435424805, -0.04853295907378197, 0.016344211995601654, -0.017419595271348953, -0.05962160602211952, 0.05512320622801781, 0.03653460741043091, -0.15055522322654724, 0.050027064979076385, 0.04626908153295517, 0.04152359813451767, -0.02714778110384941, 0.10092855244874954, -0.013812567107379436, -0.062303196638822556, 0.013742120005190372, 0.03256557881832123, -0.028265006840229034, -0.01037650741636753, 0.03886302188038826, -0.05004303157329559, -0.040487710386514664, 0.04764363542199135, -0.06073007360100746, -5.7590193924309834e-33, 0.11506985872983932, -0.0104059474542737, 0.000015154878383327741, 0.048602573573589325, 0.030482565984129906, 0.014678108505904675, -0.029373157769441605, -0.005126465577632189, -0.0031646445859223604, -0.10736604034900665, -0.059592872858047485, -0.02611101232469082, 0.025047410279512405, -0.0014335154555737972, -0.09072661399841309, -0.004747257102280855, -0.09192504733800888, -0.05809994414448738, -0.009563379921019077, 0.041846852749586105, 0.021508704870939255, -0.03155884891748428, -0.0010157710639759898, 0.030504029244184494, 0.0031999556813389063, -0.00308630452491343, 0.019847728312015533, 0.024121636524796486, -0.0484297014772892, 0.026100510731339455, 0.008496640250086784, -0.13906845450401306, -0.002222862094640732, 0.027146348729729652, 0.056037213653326035, -0.03146238625049591, -0.06333908438682556, 0.059757035225629807, 0.013456204906105995, 0.010601958259940147, 0.13200129568576813, -0.002890076255425811, -0.0723278746008873, -0.014808534644544125, -0.08168169111013412, 0.04171865060925484, 0.048761624842882156, -0.00276203453540802, -0.05849339812994003, -0.10346344858407974, -0.052243415266275406, -0.007328798994421959, -0.05784505233168602, 0.07816126942634583, -0.019838696345686913, -0.006618610583245754, 0.035402338951826096, 0.048535097390413284, 0.01153753511607647, 0.044723767787218094, 0.01130426861345768, -0.0784636065363884, 0.10361669957637787, -0.01153724454343319, 0.008322106674313545, -0.09668830037117004, 0.010273042134940624, 0.012437477707862854, -0.04012874513864517, 0.009480764158070087, 0.026850059628486633, -0.008823241107165813, 0.0102969566360116, 0.07444458454847336, -0.04917833209037781, -0.03698739409446716, 0.012982678599655628, -0.004904603585600853, 0.047163136303424835, -0.004163127858191729, -0.0897865742444992, 0.07440643757581711, -0.036925338208675385, 0.040691036731004715, 0.007787024602293968, 0.0832560807466507, 0.047959208488464355, 0.06442469358444214, 0.0572599396109581, 0.06312771141529083, 0.03712114319205284, -0.005398173816502094, -0.023829706013202667, 0.15731185674667358, -0.014407479204237461, -5.608384512356679e-8, 0.09698881208896637, -0.01023608073592186, -0.006456758361309767, 0.01987498812377453, 0.08858442306518555, -0.07401175051927567, 0.06490381807088852, -0.005153789650648832, -0.024049226194620132, 0.043803878128528595, 0.051689062267541885, 0.018891505897045135, -0.03355971351265907, -0.004439264535903931, 0.04127904027700424, 0.0009919337462633848, 0.01973053440451622, 0.07717601954936981, -0.018866710364818573, -0.07095101475715637, -0.029375461861491203, -0.07274801284074783, 0.015540492720901966, -0.01694308966398239, 0.004933399148285389, 0.039219774305820465, 0.035209789872169495, 0.04771903529763222, 0.0600627139210701, 0.019647354260087013, -0.07971265912055969, 0.0529332272708416, -0.049334291368722916, 0.056567780673503876, -0.018225988373160362, 0.04934818670153618, -0.1884220540523529, 0.01995452679693699, -0.0007481324137188494, 0.05790773406624794, 0.03747762739658356, -0.03931618481874466, -0.09279382973909378, -0.02300780452787876, 0.01992163620889187, 0.06387200951576233, -0.05031127110123634, 0.06320212036371231, -0.010266845114529133, 0.033348336815834045, -0.006706879008561373, -0.04895839840173721, 0.01468043215572834, 0.08759073913097382, -0.024827832356095314, -0.004468218889087439, 0.014680072665214539, -0.08854538947343826, 0.03458959981799126, -0.018456682562828064, 0.015327351167798042, 0.03324746713042259, -0.017883749678730965, -0.04287991672754288 ]
0.183612
terms are not authoritative, and so policy controllers don't validate those terms. ## {{% heading "whatsnext" %}} \* Read the [PodSchedulingReadiness KEP](https://github.com/kubernetes/enhancements/blob/master/keps/sig-scheduling/3521-pod-scheduling-readiness) for more details
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/pod-scheduling-readiness.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/pod-scheduling-readiness.md
[ 0.018797453492879868, 0.04762421175837517, 0.06872954964637756, 0.03659148886799812, 0.000008204550795198884, 0.014353638514876366, 0.02380211092531681, -0.03233550861477852, 0.03013015352189541, 0.055425047874450684, 0.0034905089996755123, -0.047357380390167236, -0.02261143922805786, -0.009945210069417953, 0.0005681503680534661, 0.022075841203331947, 0.04210742935538292, -0.06666279584169388, -0.01679529994726181, -0.07834402471780777, 0.07606465369462967, 0.057833317667245865, 0.013434352353215218, 0.02518603578209877, -0.05426974594593048, 0.01772003434598446, -0.0773136243224144, 0.011705211363732815, 0.029958657920360565, 0.01770183816552162, -0.060651522129774094, 0.020994650200009346, 0.0241153035312891, 0.009525018744170666, 0.14341501891613007, 0.08074755221605301, -0.022145617753267288, -0.10119028389453888, -0.042069099843502045, -0.0006552528357133269, 0.05359359458088875, -0.08758906275033951, -0.09292233735322952, 0.04724620655179024, 0.027796046808362007, 0.03175346553325653, -0.055574506521224976, -0.06482180207967758, -0.06927447021007538, 0.019964883103966713, 0.024165527895092964, -0.11646458506584167, 0.10383331775665283, -0.0198440570384264, 0.08382385969161987, 0.04301973804831505, -0.02784896455705166, 0.03347165510058403, 0.11436520516872406, -0.01633284240961075, -0.009995006956160069, -0.05763966962695122, -0.056853096932172775, -0.034507207572460175, 0.012123165652155876, -0.035119347274303436, -0.020083798095583916, 0.027256179600954056, -0.04182973504066467, 0.013784968294203281, 0.019148439168930054, -0.017831843346357346, -0.0032781921327114105, 0.05712622031569481, 0.02503500133752823, -0.006637378595769405, -0.009051322005689144, 0.042144790291786194, 0.09850194305181503, -0.10187219083309174, -0.03610168397426605, -0.01247929036617279, 0.030760889872908592, -0.04985363036394119, -0.03227493539452553, -0.04233039915561676, -0.03857841715216637, -0.030807532370090485, 0.06108501926064491, -0.020877402275800705, 0.03315066918730736, -0.09011471271514893, 0.06866424530744553, -0.08128691464662552, -0.016172543168067932, 0.006855148356407881, -0.08353578299283981, 0.010358132421970367, 0.006866247393190861, -0.00720415823161602, 0.005649353843182325, -0.01436690054833889, -0.056937962770462036, 0.05038338154554367, 0.03309701383113861, -0.05699897184967995, -0.03454377129673958, 0.0011513304198160768, 0.006362571381032467, 0.06754928082227707, 0.008287581615149975, 0.06108279526233673, 0.04991621896624565, 0.002736880676820874, 0.009730120189487934, 0.02845642901957035, 0.0032047689892351627, -0.011666492559015751, 0.0892050564289093, 0.053153146058321, 0.00635311845690012, -0.0869123712182045, 0.007978316396474838, 0.009164394810795784, -0.06716451048851013, -0.004515557084232569, 0.022133752703666687, -1.1139706295391798e-33, 0.02202199399471283, -0.01161225512623787, -0.011179523542523384, -0.091649129986763, 0.003830050118267536, -0.09596943110227585, -0.030971752479672432, -0.05076734721660614, -0.003675961634144187, -0.0277252197265625, -0.07714181393384933, 0.05331374332308769, -0.01416845340281725, -0.02211105264723301, 0.013435757718980312, -0.043414290994405746, -0.051315583288669586, 0.09796137362718582, 0.0700361430644989, -0.011045156046748161, 0.03151237219572067, -0.026346245780587196, -0.035620417445898056, -0.033389538526535034, 0.03918305039405823, 0.013641691766679287, 0.02362171933054924, -0.07196745276451111, 0.028189614415168762, 0.044139981269836426, -0.015836643055081367, -0.026469923555850983, 0.03523721173405647, 0.004269235767424107, -0.07244803011417389, 0.01463378593325615, 0.03001851961016655, 0.03842300921678543, -0.0710376426577568, -0.023593267425894737, 0.01027365867048502, -0.04015003517270088, 0.008988593704998493, -0.06765180081129074, -0.009041071869432926, 0.017875416204333305, 0.056472405791282654, -0.05420871078968048, 0.03442802280187607, 0.027146779000759125, -0.02102493867278099, -0.026053516194224358, 0.031076300889253616, -0.07033507525920868, 0.06006496027112007, 0.008167487569153309, 0.07698395103216171, 0.030350614339113235, -0.04172903671860695, -0.007273034192621708, -0.01389767974615097, 0.023327594622969627, 0.034865278750658035, -0.03151218220591545, 0.007361477706581354, 0.027690919116139412, -0.008406883105635643, 0.06408445537090302, 0.008110390976071358, 0.017029844224452972, -0.04776618257164955, 0.04900596663355827, -0.0014597943518310785, 0.045904140919446945, 0.005370025523006916, -0.111460380256176, 0.059587784111499786, 0.06966082751750946, -0.13789492845535278, 0.04107410088181496, 0.029790807515382767, 0.0058418987318873405, -0.033685099333524704, 0.07470689713954926, -0.004673548508435488, -0.10211071372032166, 0.0016218217788264155, 0.053904175758361816, -0.018514495342969894, 0.027559498324990273, -0.011574102565646172, -0.06933678686618805, -0.078262560069561, 0.10767297446727753, -0.07250718772411346, -6.5028696462374345e-34, 0.13167361915111542, 0.0014778990298509598, 0.01324413064867258, 0.0051914420910179615, -0.021593725308775902, -0.031218087300658226, 0.03612827509641647, 0.000793837069068104, 0.03936149552464485, -0.05108471214771271, -0.011063594371080399, -0.030040593817830086, -0.01735951378941536, 0.021385878324508667, -0.020269792526960373, -0.03142640367150307, -0.0874287560582161, -0.050815828144550323, -0.0485343374311924, 0.042725153267383575, -0.03668249770998955, -0.03213958814740181, -0.06941831856966019, 0.09229794144630432, 0.02031804248690605, 0.02659064531326294, 0.060176171362400055, 0.039967525750398636, -0.05525403842329979, 0.028415542095899582, -0.01066579669713974, -0.14387810230255127, -0.01979268528521061, 0.07052960246801376, -0.005918778479099274, -0.05672943964600563, -0.03276089206337929, 0.05509509891271591, -0.0164786446839571, 0.02057834342122078, 0.08834981918334961, 0.0285691786557436, -0.04017312824726105, 0.00542862992733717, -0.05547579750418663, 0.005709759425371885, 0.08200442045927048, -0.055323634296655655, 0.013554851524531841, -0.0910317599773407, 0.01181496400386095, -0.06608203053474426, -0.06826836615800858, 0.05983815714716911, -0.04930926114320755, 0.012697018682956696, 0.028966840356588364, 0.05101463571190834, -0.10725288093090057, 0.0037542511709034443, 0.031861454248428345, -0.029018016532063484, 0.10354536771774292, -0.0067176674492657185, 0.0636560395359993, -0.05814603716135025, 0.0012230802094563842, -0.04208213463425636, 0.10370588302612305, -0.08658347278833389, 0.037972185760736465, -0.0396944023668766, -0.0065894220024347305, 0.06340736150741577, -0.0171172134578228, -0.01618019863963127, 0.017869748175144196, 0.016525719314813614, 0.027382543310523033, 0.010967730544507504, -0.06282182037830353, 0.07821495085954666, -0.03135612607002258, 0.056710101664066315, 0.027846211567521095, 0.07454972714185715, 0.06367762386798859, 0.09584377706050873, -0.00478092348203063, 0.03113018162548542, 0.049510639160871506, -0.007276770658791065, 0.006869892589747906, 0.16777871549129486, -0.08916402608156204, -4.154641075615473e-8, 0.032241690903902054, 0.011118385009467602, 0.006752124987542629, 0.020302407443523407, 0.025584852322936058, -0.045361436903476715, 0.010696609504520893, -0.1226562038064003, -0.010835746303200722, 0.028631720691919327, 0.028910506516695023, 0.0670677050948143, -0.11038828641176224, -0.04755273088812828, 0.03543984517455101, -0.0915142372250557, -0.04203709959983826, 0.09783139079809189, -0.010856539942324162, -0.024965422227978706, -0.05301142483949661, -0.000026380452254670672, -0.036539845168590546, -0.05268344655632973, 0.02864619717001915, 0.06247754022479057, -0.0344054214656353, 0.0913117453455925, 0.1044740229845047, 0.04042874649167061, 0.024387652054429054, 0.03724613040685654, -0.10353603959083557, 0.008714928291738033, -0.02040296234190464, 0.022370176389813423, -0.05537179857492447, 0.011976883746683598, 0.09151875227689743, 0.07464251667261124, -0.025577712804079056, -0.0006511402898468077, -0.10718156397342682, -0.004019038751721382, -0.049287375062704086, 0.0945320650935173, -0.05028069391846657, 0.02162608690559864, -0.0037524353247135878, -0.02989204227924347, -0.02821187674999237, -0.07399848103523254, -0.015608140267431736, 0.08124436438083649, -0.014275263994932175, -0.025734443217515945, 0.04712081328034401, -0.06648710370063782, 0.003662219038233161, -0.04537055641412735, 0.03066939301788807, -0.03907571732997894, 0.0401926226913929, 0.03823290392756462 ]
0.148923
{{}} The {{}} monitors resources like memory, disk space, and filesystem inodes on your cluster's nodes. When one or more of these resources reach specific consumption levels, the kubelet can proactively fail one or more pods on the node to reclaim resources and prevent starvation. During a node-pressure eviction, the kubelet sets the [phase](/docs/concepts/workloads/pods/pod-lifecycle/#pod-phase) for the selected pods to `Failed`, and terminates the Pod. Node-pressure eviction is not the same as [API-initiated eviction](/docs/concepts/scheduling-eviction/api-eviction/). The kubelet does not respect your configured {{}} or the pod's `terminationGracePeriodSeconds`. If you use [soft eviction thresholds](#soft-eviction-thresholds), the kubelet respects your configured `eviction-max-pod-grace-period`. If you use [hard eviction thresholds](#hard-eviction-thresholds), the kubelet uses a `0s` grace period (immediate shutdown) for termination. ## Self healing behavior The kubelet attempts to [reclaim node-level resources](#reclaim-node-resources) before it terminates end-user pods. For example, it removes unused container images when disk resources are starved. If the pods are managed by a {{< glossary\_tooltip text="workload" term\_id="workload" >}} management object (such as {{< glossary\_tooltip text="StatefulSet" term\_id="statefulset" >}} or {{< glossary\_tooltip text="Deployment" term\_id="deployment" >}}) that replaces failed pods, the control plane (`kube-controller-manager`) creates new pods in place of the evicted pods. ### Self healing for static pods If you are running a [static pod](/docs/concepts/workloads/pods/#static-pods) on a node that is under resource pressure, the kubelet may evict that static Pod. The kubelet then tries to create a replacement, because static Pods always represent an intent to run a Pod on that node. The kubelet takes the \_priority\_ of the static pod into account when creating a replacement. If the static pod manifest specifies a low priority, and there are higher-priority Pods defined within the cluster's control plane, and the node is under resource pressure, the kubelet may not be able to make room for that static pod. The kubelet continues to attempt to run all static pods even when there is resource pressure on a node. ## Eviction signals and thresholds The kubelet uses various parameters to make eviction decisions, like the following: - Eviction signals - Eviction thresholds - Monitoring intervals ### Eviction signals {#eviction-signals} Eviction signals are the current state of a particular resource at a specific point in time. The kubelet uses eviction signals to make eviction decisions by comparing the signals to eviction thresholds, which are the minimum amount of the resource that should be available on the node. The kubelet uses the following eviction signals: | Eviction Signal | Description | Linux Only | |--------------------------|---------------------------------------------------------------------------------------|------------| | `memory.available` | `memory.available` := `node.status.capacity[memory]` - `node.stats.memory.workingSet` | | | `nodefs.available` | `nodefs.available` := `node.stats.fs.available` | | | `nodefs.inodesFree` | `nodefs.inodesFree` := `node.stats.fs.inodesFree` | • | | `imagefs.available` | `imagefs.available` := `node.stats.runtime.imagefs.available` | | | `imagefs.inodesFree` | `imagefs.inodesFree` := `node.stats.runtime.imagefs.inodesFree` | • | | `containerfs.available` | `containerfs.available` := `node.stats.runtime.containerfs.available` | | | `containerfs.inodesFree` | `containerfs.inodesFree` := `node.stats.runtime.containerfs.inodesFree` | • | | `pid.available` | `pid.available` := `node.stats.rlimit.maxpid` - `node.stats.rlimit.curproc` | • | In this table, the \*\*Description\*\* column shows how kubelet gets the value of the signal. Each signal supports either a percentage or a literal value. The kubelet calculates the percentage value relative to the total capacity associated with the signal. #### Memory signals On Linux nodes, the value for `memory.available` is derived from the cgroupfs instead of tools like `free -m`. This is important because `free -m` does not work in a container, and if users use the [node allocatable](/docs/tasks/administer-cluster/reserve-compute-resources/#node-allocatable) feature, out of resource decisions are made local to the end user Pod part of the cgroup hierarchy as well as the root node. This [script](/examples/admin/resource/memory-available.sh) or [cgroupv2 script](/examples/admin/resource/memory-available-cgroupv2.sh) reproduces the same set of steps that the kubelet performs to calculate `memory.available`. The kubelet
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/node-pressure-eviction.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/node-pressure-eviction.md
[ -0.001048995298333466, 0.07232581079006195, 0.06197831779718399, 0.04897323623299599, -0.016491740942001343, -0.040438853204250336, -0.028142353519797325, -0.02610802836716175, 0.10113619267940521, -0.00039672947605140507, -0.010561134666204453, -0.034489426761865616, -0.012257024645805359, -0.03921816125512123, 0.015197140164673328, -0.013185552321374416, 0.006246723234653473, 0.009566757827997208, -0.00735460314899683, 0.0004381829348858446, 0.05054958537220955, -0.0050802226178348064, 0.011657542549073696, 0.030276751145720482, -0.02533404715359211, -0.001340723130851984, -0.03917234018445015, -0.022047508507966995, 0.0894213542342186, -0.054631493985652924, -0.05222218111157417, -0.014932672493159771, 0.014890236780047417, 0.04474234580993652, 0.11212548613548279, 0.12590689957141876, 0.020481795072555542, -0.09107525646686554, -0.082188680768013, -0.0150067750364542, 0.026973232626914978, -0.02163466066122055, -0.11647301912307739, -0.00015161152987275273, -0.06415796279907227, 0.024489959701895714, -0.057457614690065384, -0.03918673098087311, -0.06555597484111786, -0.03490694984793663, 0.02754482440650463, -0.07512307912111282, 0.09820060431957245, 0.06947638094425201, 0.06737851351499557, 0.037858352065086365, 0.01618390716612339, 0.01415181066840887, 0.08768028020858765, -0.004730256274342537, 0.06523042172193527, -0.003653246443718672, -0.013076686300337315, 0.003922539763152599, 0.040242064744234085, -0.016115354374051094, 0.018287265673279762, 0.03853590786457062, -0.006689425092190504, 0.022389288991689682, 0.07279078662395477, -0.05729382857680321, -0.017665086314082146, 0.016601858660578728, 0.02909393422305584, 0.021186523139476776, -0.029664328321814537, -0.0043916297145187855, -0.001271716901101172, -0.04555137827992439, -0.017681559547781944, -0.024082522839307785, 0.06590764224529266, -0.04746302589774132, -0.08969875425100327, -0.035382743924856186, -0.03633318096399307, -0.03903436288237572, 0.06398671865463257, 0.007953626103699207, 0.03930099681019783, 0.019353510811924934, 0.018680421635508537, -0.06750816851854324, 0.09179982542991638, -0.015624847263097763, 0.011123980395495892, -0.02465437725186348, 0.0027676282916218042, 0.006061537656933069, 0.013471633195877075, 0.06319419294595718, -0.048107124865055084, 0.01364733837544918, 0.10002495348453522, -0.08969376236200333, -0.04452762380242348, -0.03549704700708389, 0.022350553423166275, 0.04771752655506134, 0.02151106297969818, 0.01107142586261034, 0.016447901725769043, 0.05396460369229317, -0.013834865763783455, 0.039070576429367065, -0.02972452901303768, 0.053016047924757004, 0.046871963888406754, 0.054316457360982895, 0.05452767014503479, -0.06590225547552109, -0.08272746950387955, 0.012538337148725986, -0.029660318046808243, 0.0011626069899648428, -0.020938795059919357, 2.9043570294802344e-34, 0.053513698279857635, -0.1554776281118393, 0.003386099124327302, -0.05699066445231438, -0.009197868406772614, -0.08384009450674057, -0.07331472635269165, 0.003488448914140463, -0.04064013808965683, -0.06638504564762115, -0.06840724498033524, -0.01262350007891655, -0.014944544993340969, -0.026534922420978546, 0.04215816408395767, -0.041930507868528366, -0.06294631212949753, 0.06896988302469254, 0.07287771999835968, -0.023481374606490135, 0.06630414724349976, -0.026851821690797806, -0.021831000223755836, -0.0057409415021538734, -0.010110580362379551, -0.003379798261448741, 0.062216028571128845, -0.10020365566015244, -0.05233888700604439, 0.031819406896829605, -0.0363791324198246, 0.0555429644882679, 0.0026457468047738075, 0.033551350235939026, -0.17439013719558716, 0.04025314748287201, -0.027786463499069214, -0.0007974617765285075, -0.1049032062292099, -0.06410649418830872, -0.008981112390756607, 0.03169884905219078, 0.002162378281354904, -0.0843619853258133, 0.03925955668091774, -0.05633889138698578, 0.10302811861038208, -0.04892821982502937, 0.009495566599071026, 0.06583493202924728, 0.0016234021168202162, -0.01909615285694599, 0.0076982202008366585, 0.011923886835575104, 0.038645628839731216, 0.038403093814849854, 0.1164509654045105, -0.08428794145584106, -0.052859462797641754, 0.024992790073156357, -0.025600139051675797, -0.022854071110486984, 0.07402054965496063, -0.007592502050101757, 0.03368616849184036, 0.09144724905490875, -0.0582454651594162, 0.04884478449821472, -0.018352631479501724, 0.057773757725954056, -0.0569242462515831, 0.026152266189455986, 0.016920732334256172, 0.008114646188914776, -0.06515298783779144, -0.07483239471912384, 0.005024746060371399, -0.017806338146328926, -0.1867395043373108, -0.002956776414066553, 0.05497942492365837, -0.07521265745162964, 0.005867181345820427, 0.052396222949028015, -0.0026836725883185863, -0.01885475590825081, 0.03971986100077629, 0.022649267688393593, -0.05885770916938782, 0.03693578392267227, 0.05547783151268959, -0.010074210353195667, -0.04550151899456978, 0.005746644455939531, -0.12269344925880432, -1.7160669175540174e-33, 0.07067150622606277, -0.018312392756342888, -0.02709036134183407, 0.0006179684423841536, 0.0019315724493935704, 0.0062216948717832565, -0.07633040845394135, 0.06507948786020279, -0.021180901676416397, -0.006926733534783125, -0.07138565927743912, -0.024981776252388954, -0.00856245681643486, 0.0526806078851223, -0.08648018538951874, 0.014622931368649006, -0.027986617758870125, -0.07641676813364029, -0.007676095701754093, 0.004687468055635691, -0.0408068411052227, 0.012197183445096016, -0.010536478832364082, 0.039621636271476746, 0.02312404103577137, 0.010353938676416874, 0.013032758608460426, 0.05024192854762077, -0.059273190796375275, -0.05445128306746483, 0.025574300438165665, -0.10468810796737671, -0.021661458536982536, 0.06509548425674438, 0.06313341856002808, -0.020499855279922485, -0.07495513558387756, 0.07222422957420349, -0.017280390486121178, -0.035416461527347565, 0.058816105127334595, 0.05441905930638313, -0.06564201414585114, -0.03017878159880638, 0.010307847522199154, 0.019509010016918182, 0.047308895736932755, -0.025222625583410263, 0.025874443352222443, -0.09260845929384232, 0.04098008945584297, -0.01179863978177309, 0.012329884804785252, 0.12289142608642578, -0.026265598833560944, -0.004306137561798096, 0.02502657286822796, 0.0650257021188736, -0.03684645891189575, -0.014058561064302921, 0.028866564854979515, -0.06510455161333084, 0.05885675922036171, -0.0018460736609995365, -0.01973152346909046, -0.08415910601615906, 0.02784181945025921, 0.012221974320709705, 0.01465410552918911, 0.02168622799217701, 0.024330178275704384, 0.07131272554397583, 0.033497754484415054, 0.03325219824910164, -0.015049593523144722, 0.025850636884570122, 0.015068016946315765, -0.069418765604496, 0.02668967843055725, -0.023180127143859863, -0.10095137357711792, 0.062489237636327744, -0.04209190979599953, 0.06633634120225906, 0.025653060525655746, 0.039468348026275635, 0.02432894892990589, 0.0426894873380661, 0.08097406476736069, 0.10125453025102615, -0.0032122598495334387, 0.01562957838177681, -0.042010348290205, 0.07135632634162903, 0.010007981210947037, -4.178130552645598e-8, 0.09022445231676102, 0.012878372333943844, -0.024687619879841805, 0.0575992614030838, 0.04571548104286194, -0.08083893358707428, 0.07657261192798615, 0.06052123010158539, -0.07924696803092957, 0.02057380974292755, 0.03334825858473778, 0.03365073353052139, 0.010497460141777992, -0.018112361431121826, 0.041822437196969986, -0.032280080020427704, 0.03857133537530899, 0.03804507106542587, -0.019765326753258705, -0.04797220230102539, -0.10195523500442505, -0.09733471274375916, -0.005511465482413769, -0.014796696603298187, 0.02245478704571724, 0.044989049434661865, 0.07751534879207611, 0.04338331148028374, 0.0253260787576437, -0.03941870853304863, -0.06783920526504517, 0.022349845618009567, -0.041380517184734344, 0.03958597034215927, -0.059491511434316635, 0.08108058571815491, -0.1431220918893814, 0.032625384628772736, 0.024397416040301323, 0.10145341604948044, -0.026950456202030182, -0.06802283227443695, -0.0479900948703289, 0.005351364612579346, -0.04079809784889221, 0.08116448670625687, -0.05908559262752533, 0.10088399052619934, 0.011897806078195572, 0.0317252092063427, -0.0257000420242548, -0.054988376796245575, -0.04358106106519699, 0.059285469353199005, -0.009982098825275898, -0.02110626921057701, -0.02515069767832756, -0.028505217283964157, 0.008310960605740547, 0.011428921483457088, 0.06828594952821732, 0.005343959201127291, 0.011655217967927456, -0.022235477343201637 ]
0.192978
if users use the [node allocatable](/docs/tasks/administer-cluster/reserve-compute-resources/#node-allocatable) feature, out of resource decisions are made local to the end user Pod part of the cgroup hierarchy as well as the root node. This [script](/examples/admin/resource/memory-available.sh) or [cgroupv2 script](/examples/admin/resource/memory-available-cgroupv2.sh) reproduces the same set of steps that the kubelet performs to calculate `memory.available`. The kubelet excludes inactive\_file (the number of bytes of file-backed memory on the inactive LRU list) from its calculation, as it assumes that memory is reclaimable under pressure. On Windows nodes, the value for `memory.available` is derived from the node's global memory commit levels (queried through the [`GetPerformanceInfo()`](https://learn.microsoft.com/windows/win32/api/psapi/nf-psapi-getperformanceinfo) system call) by subtracting the node's global [`CommitTotal`](https://learn.microsoft.com/windows/win32/api/psapi/ns-psapi-performance\_information) from the node's [`CommitLimit`](https://learn.microsoft.com/windows/win32/api/psapi/ns-psapi-performance\_information). Please note that `CommitLimit` can change if the node's page-file size changes! #### Filesystem signals The kubelet recognizes three specific filesystem identifiers that can be used with eviction signals (`.inodesFree` or `.available`): 1. `nodefs`: The node's main filesystem, used for local disk volumes, emptyDir volumes not backed by memory, log storage, ephemeral storage, and more. For example, `nodefs` contains `/var/lib/kubelet`. 1. `imagefs`: An optional filesystem that container runtimes can use to store container images (which are the read-only layers) and container writable layers. 1. `containerfs`: An optional filesystem that container runtime can use to store the writeable layers. Similar to the main filesystem (see `nodefs`), it's used to store local disk volumes, emptyDir volumes not backed by memory, log storage, and ephemeral storage, except for the container images. When `containerfs` is used, the `imagefs` filesystem can be split to only store images (read-only layers) and nothing else. {{}} {{< feature-state feature\_gate\_name="KubeletSeparateDiskGC" >}} The \_split image filesystem\_ feature, which enables support for the `containerfs` filesystem, adds several new eviction signals, thresholds and metrics. To use `containerfs`, the Kubernetes release v{{< skew currentVersion >}} requires the `KubeletSeparateDiskGC` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/) to be enabled. Currently, only CRI-O (v1.29 or higher) offers the `containerfs` filesystem support. {{}} As such, kubelet generally allows three options for container filesystems: - Everything is on the single `nodefs`, also referred to as "rootfs" or simply "root", and there is no dedicated image filesystem. - Container storage (see `nodefs`) is on a dedicated disk, and `imagefs` (writable and read-only layers) is separate from the root filesystem. This is often referred to as "split disk" (or "separate disk") filesystem. - Container filesystem `containerfs` (same as `nodefs` plus writable layers) is on root and the container images (read-only layers) are stored on separate `imagefs`. This is often referred to as "split image" filesystem. The kubelet will attempt to auto-discover these filesystems with their current configuration directly from the underlying container runtime and will ignore other local node filesystems. The kubelet does not support other container filesystems or storage configurations, and it does not currently support multiple filesystems for images and containers. ### Deprecated kubelet garbage collection features Some kubelet garbage collection features are deprecated in favor of eviction: | Existing Flag | Rationale | | ------------- | --------- | | `--maximum-dead-containers` | deprecated once old logs are stored outside of container's context | | `--maximum-dead-containers-per-container` | deprecated once old logs are stored outside of container's context | | `--minimum-container-ttl-duration` | deprecated once old logs are stored outside of container's context | ### Eviction thresholds You can specify custom eviction thresholds for the kubelet to use when it makes eviction decisions. You can configure [soft](#soft-eviction-thresholds) and [hard](#hard-eviction-thresholds) eviction thresholds. Eviction thresholds have the form `[eviction-signal][operator][quantity]`, where: - `eviction-signal` is the [eviction signal](#eviction-signals) to use. - `operator` is the [relational operator](https://en.wikipedia.org/wiki/Relational\_operator#Standard\_relational\_operators) you want, such as `<` (less than). - `quantity` is the eviction threshold amount, such as `1Gi`. The value of `quantity` must match the quantity
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/node-pressure-eviction.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/node-pressure-eviction.md
[ 0.02779776230454445, 0.04785370081663132, -0.05577034875750542, 0.07735363394021988, -0.026905763894319534, 0.03445855528116226, -0.003416015300899744, 0.044969022274017334, 0.10418809205293655, 0.014896131120622158, -0.007180199958384037, -0.02949613519012928, -0.02276998944580555, -0.06023405119776726, -0.005088418256491423, -0.03289492428302765, -0.0050047324039042, -0.02458125911653042, -0.041716765612363815, -0.07880714535713196, 0.03708569332957268, -0.009522974491119385, 0.0262211374938488, 0.011099946685135365, 0.033000677824020386, -0.04690844938158989, -0.07370076328516006, -0.03503384441137314, 0.11301235109567642, -0.041132912039756775, -0.048666950315237045, 0.04573624208569527, 0.04768107086420059, 0.04908980801701546, 0.10838951915502548, 0.11361541599035263, -0.041440509259700775, -0.056188300251960754, -0.1034281849861145, 0.01939544640481472, 0.029946986585855484, 0.057778481394052505, -0.13417355716228485, 0.05150122568011284, 0.0022831172682344913, 0.07796058803796768, -0.05473914369940758, -0.022279012948274612, -0.08784089982509613, -0.03062203899025917, 0.07539502531290054, -0.015404686331748962, 0.08255340903997421, 0.057989511638879776, 0.01997954212129116, 0.040891699492931366, -0.02153099700808525, -0.009441900998353958, 0.04708355665206909, 0.05145055428147316, -0.05084400996565819, -0.08393707126379013, -0.0021547144278883934, -0.03261518105864525, -0.021961065009236336, 0.021426064893603325, 0.040110114961862564, -0.005640292074531317, -0.0215372983366251, -0.041391581296920776, 0.04886026680469513, -0.0008066822774708271, -0.02359745465219021, 0.03774168714880943, 0.013980500400066376, 0.017785679548978806, 0.0011773161822929978, 0.04413282871246338, 0.010453426279127598, -0.125189870595932, 0.03378968685865402, 0.017809029668569565, 0.027673568576574326, -0.06559770554304123, -0.04560290649533272, 0.009641790762543678, -0.04057283326983452, 0.013592555187642574, 0.03885645046830177, -0.010955885984003544, 0.010854328982532024, 0.026259150356054306, -0.049536172300577164, -0.05839189141988754, 0.010600809007883072, -0.01392971258610487, 0.004619790706783533, 0.010465145111083984, -0.002534999279305339, -0.04039832204580307, 0.07463402301073074, 0.08599311113357544, 0.007820818573236465, -0.009683233685791492, 0.020037498325109482, -0.0640292540192604, 0.036994095891714096, 0.044146861881017685, 0.012502476572990417, 0.0036388670559972525, 0.029452087357640266, 0.04782377555966377, -0.014900997281074524, 0.021759802475571632, 0.02700352855026722, -0.02123619057238102, 0.047521818429231644, -0.017143769189715385, 0.03393424302339554, 0.03231331706047058, 0.007682826370000839, -0.041430260986089706, -0.024013357236981392, -0.003315599402412772, -0.11223509162664413, -0.030375339090824127, -0.1031653881072998, 5.137979622651786e-35, -0.010887023992836475, -0.11082509160041809, 0.046591632068157196, -0.048143286257982254, -0.048343170434236526, -0.1562366634607315, -0.08135025203227997, -0.05638693645596504, -0.08676033467054367, -0.08823040872812271, -0.05552638694643974, 0.03570861741900444, -0.008944184519350529, -0.0055602057836949825, 0.08231424540281296, 0.0075748818926513195, -0.03285925090312958, 0.08463645726442337, 0.07498078048229218, -0.0035051291342824697, 0.062496885657310486, 0.033975258469581604, -0.02405104972422123, 0.036516353487968445, 0.0303553007543087, -0.01896079257130623, 0.030597275123000145, -0.032756831496953964, 0.0279120784252882, 0.012113361619412899, -0.03286820277571678, 0.06317556649446487, 0.0018006890313699841, -0.012921661138534546, -0.07001727819442749, 0.04503164812922478, -0.0275761466473341, -0.013803400099277496, 0.0044020251370966434, -0.05050213634967804, 0.035741422325372696, 0.0529353991150856, 0.06989762932062149, -0.11792682856321335, -0.04471198096871376, -0.11455422639846802, 0.05033513158559799, -0.03387852758169174, 0.002507040509954095, 0.09161078929901123, -0.0106122437864542, 0.01387877855449915, -0.02056722156703472, 0.05062592774629593, 0.034207288175821304, 0.04612789675593376, 0.09926416724920273, -0.025442099198698997, 0.03064706176519394, 0.10698487609624863, 0.025200780481100082, 0.0007328938809223473, 0.026297613978385925, 0.02029593288898468, -0.003711283439770341, 0.04146028310060501, -0.027466919273138046, 0.0691494420170784, -0.07994423061609268, 0.02175382897257805, -0.038322947919368744, 0.0055418796837329865, 0.013482394628226757, 0.027369040995836258, -0.04701348394155502, -0.056139133870601654, 0.007930570282042027, -0.053921930491924286, -0.19027188420295715, 0.05419819429516792, 0.0214390866458416, -0.09294196218252182, -0.00927415955811739, 0.018525799736380577, -0.03378674387931824, -0.07217511534690857, 0.05264538899064064, 0.003811958245933056, -0.06809807568788528, -0.005456861108541489, 0.040763579308986664, -0.04408544674515724, -0.021759284660220146, 0.012263843789696693, -0.15244312584400177, -2.1585347461470346e-33, 0.07797320187091827, 0.043419983237981796, 0.009987578727304935, -0.01670072227716446, 0.00605699373409152, 0.03925791010260582, -0.05231747776269913, -0.008948852308094501, -0.04196096211671829, -0.028899552300572395, -0.07867911458015442, 0.03493335098028183, 0.007321918848901987, 0.04424062371253967, -0.03693119063973427, 0.012935148552060127, -0.01943943463265896, 0.009461482055485249, -0.014108730480074883, 0.03262229636311531, -0.0337715670466423, 0.022452395409345627, 0.09685933589935303, 0.027354447171092033, -0.018944179639220238, 0.023280158638954163, -0.03392085060477257, 0.01715467870235443, -0.04069496691226959, -0.04160236939787865, 0.012135380879044533, -0.1301574558019638, -0.08253953605890274, 0.01888454332947731, 0.027655182406306267, -0.08878375589847565, -0.005997019819915295, 0.03695444390177727, 0.02018134854733944, 0.06032959744334221, 0.02415568381547928, 0.08398732542991638, -0.03245747461915016, -0.021404409781098366, 0.024793975055217743, 0.08005068451166153, 0.044071897864341736, -0.05231713131070137, 0.004004956688731909, -0.0644310712814331, 0.05422503873705864, -0.0005472914781421423, 0.040578484535217285, 0.11080558598041534, -0.03762199357151985, 0.011889984831213951, 0.033762797713279724, 0.04461890459060669, -0.006788425147533417, -0.0971100702881813, 0.03399723768234253, -0.10690807551145554, -0.039529021829366684, -0.04144923761487007, -0.049513787031173706, -0.020835310220718384, 0.03925355523824692, 0.0066121662966907024, -0.015958065167069435, 0.008528370410203934, -0.015126409009099007, 0.03583388030529022, -0.0271166879683733, 0.0025196701753884554, -0.08790279179811478, 0.12189487367868423, -0.010200433433055878, -0.06089765951037407, 0.029639651998877525, -0.008805477060377598, -0.1135844737291336, 0.03365333750844002, -0.016995886340737343, -0.0024913104716688395, 0.05171985551714897, -0.034278374165296555, 0.010131669230759144, -0.008673473261296749, 0.014665038324892521, 0.0449892096221447, -0.05468175187706947, -0.0032410351559519768, -0.02787494659423828, 0.07649659365415573, -0.05481322109699249, -4.577255552362658e-8, 0.03891140967607498, -0.03607064113020897, -0.035183075815439224, 0.007951299659907818, 0.09023534506559372, -0.10593650490045547, 0.016865380108356476, 0.04581958055496216, -0.007665516342967749, 0.056356221437454224, 0.03677912428975105, -0.015271165408194065, -0.04116497188806534, -0.0605432465672493, 0.04072145000100136, 0.045557599514722824, 0.010252942331135273, 0.025387994945049286, 0.03199806436896324, -0.011205052956938744, -0.01357956137508154, -0.046192511916160583, 0.014168358407914639, 0.027216371148824692, 0.02124778740108013, 0.03771993890404701, 0.05180622637271881, 0.06292280554771423, -0.03922700509428978, -0.010393599048256874, 0.04728652536869049, 0.012939397245645523, -0.06376195698976517, 0.05776052176952362, 0.055402278900146484, 0.02948691137135029, -0.1054360494017601, 0.06562704592943192, 0.03861595690250397, 0.0988617017865181, -0.005216606892645359, -0.052506349980831146, -0.017299003899097443, 0.09298722445964813, 0.031127208843827248, 0.10734841972589493, -0.08950349688529968, 0.06865968555212021, -0.010306943207979202, -0.05669514089822769, 0.013237976469099522, -0.021481100469827652, -0.06674535572528839, 0.09389978647232056, -0.011913847178220749, -0.020482193678617477, -0.0150670250877738, -0.050655677914619446, 0.05843287333846092, 0.002518023829907179, -0.0019516414031386375, 0.03476962819695473, -0.02144680730998516, -0.0035056150518357754 ]
0.179435
and [hard](#hard-eviction-thresholds) eviction thresholds. Eviction thresholds have the form `[eviction-signal][operator][quantity]`, where: - `eviction-signal` is the [eviction signal](#eviction-signals) to use. - `operator` is the [relational operator](https://en.wikipedia.org/wiki/Relational\_operator#Standard\_relational\_operators) you want, such as `<` (less than). - `quantity` is the eviction threshold amount, such as `1Gi`. The value of `quantity` must match the quantity representation used by Kubernetes. You can use either literal values or percentages (`%`). For example, if a node has 10GiB of total memory and you want trigger eviction if the available memory falls below 1GiB, you can define the eviction threshold as either `memory.available<10%` or `memory.available<1Gi` (you cannot use both). #### Soft eviction thresholds {#soft-eviction-thresholds} A soft eviction threshold pairs an eviction threshold with a required administrator-specified grace period. The kubelet does not evict pods until the grace period is exceeded. The kubelet returns an error on startup if you do not specify a grace period. You can specify both a soft eviction threshold grace period and a maximum allowed pod termination grace period for kubelet to use during evictions. If you specify a maximum allowed grace period and the soft eviction threshold is met, the kubelet uses the lesser of the two grace periods. If you do not specify a maximum allowed grace period, the kubelet kills evicted pods immediately without graceful termination. You can use the following flags to configure soft eviction thresholds: - `eviction-soft`: A set of eviction thresholds like `memory.available<1.5Gi` that can trigger pod eviction if held over the specified grace period. - `eviction-soft-grace-period`: A set of eviction grace periods like `memory.available=1m30s` that define how long a soft eviction threshold must hold before triggering a Pod eviction. - `eviction-max-pod-grace-period`: The maximum allowed grace period (in seconds) to use when terminating pods in response to a soft eviction threshold being met. #### Hard eviction thresholds {#hard-eviction-thresholds} A hard eviction threshold has no grace period. When a hard eviction threshold is met, the kubelet kills pods immediately without graceful termination to reclaim the starved resource. You can use the `eviction-hard` flag to configure a set of hard eviction thresholds like `memory.available<1Gi`. The kubelet has the following default hard eviction thresholds: - `memory.available<100Mi` (Linux nodes) - `memory.available<500Mi` (Windows nodes) - `nodefs.available<10%` - `imagefs.available<15%` - `nodefs.inodesFree<5%` (Linux nodes) - `imagefs.inodesFree<5%` (Linux nodes) These default values of hard eviction thresholds will only be set if none of the parameters is changed. If you change the value of any parameter, then the values of other parameters will not be inherited as the default values and will be set to zero. In order to provide custom values, you should provide all the thresholds respectively. You can also set the kubelet config MergeDefaultEvictionSettings to true in the kubelet configuration file. If set to true and any parameter is changed, then the other parameters will inherit their default values instead of 0. The `containerfs.available` and `containerfs.inodesFree` (Linux nodes) default eviction thresholds will be set as follows: - If a single filesystem is used for everything, then `containerfs` thresholds are set the same as `nodefs`. - If separate filesystems are configured for both images and containers, then `containerfs` thresholds are set the same as `imagefs`. Setting custom overrides for thresholds related to `containersfs` is currently not supported, and a warning will be issued if an attempt to do so is made; any provided custom values will, as such, be ignored. ## Eviction monitoring interval The kubelet evaluates eviction thresholds based on its configured `housekeeping-interval`, which defaults to `10s`. ## Node conditions {#node-conditions} The kubelet reports [node conditions](/docs/concepts/architecture/nodes/#condition) to reflect that the node is under pressure because hard or soft eviction threshold is met, independent of configured
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/node-pressure-eviction.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/node-pressure-eviction.md
[ 0.04040715470910072, -0.0018985564820468426, 0.0004438383039087057, 0.02206660620868206, -0.06464195996522903, 0.012416357174515724, 0.010400720871984959, 0.0067069996148347855, 0.09273193776607513, -0.00912378914654255, 0.01057762186974287, -0.06711237132549286, 0.029809199273586273, 0.006407813634723425, 0.055844809859991074, 0.0429537259042263, 0.05244112014770508, 0.03510114550590515, -0.07685872167348862, -0.07244449853897095, 0.09026294201612473, -0.011947928927838802, -0.042905863374471664, -0.0049637844786047935, -0.026146717369556427, -0.04311779513955116, -0.03824521601200104, 0.02369101159274578, 0.13978791236877441, -0.03241685777902603, -0.0426972433924675, -0.00637727789580822, 0.05767456442117691, 0.019656168296933174, 0.09208551049232483, 0.09267875552177429, -0.06577938795089722, -0.06547847390174866, -0.06101435795426369, 0.001908938167616725, 0.017137613147497177, -0.014271457679569721, -0.10740967094898224, -0.01885441690683365, -0.005769327282905579, 0.03597480431199074, -0.07837754487991333, 0.003015681868419051, -0.07513796538114548, -0.02711832895874977, 0.049130283296108246, 0.0029602551367133856, 0.002885232213884592, 0.10552448034286499, 0.05395268276333809, -0.029877249151468277, -0.02226243168115616, 0.007775119971483946, 0.002740418305620551, -0.043481871485710144, 0.014715206809341908, -0.04704735428094864, 0.049093008041381836, -0.06296401470899582, -0.01695537194609642, 0.01811453141272068, 0.03218763694167137, 0.021633807569742203, -0.0028993363957852125, 0.11616881191730499, 0.05481245741248131, -0.05913611128926277, -0.08074753731489182, 0.010045112110674381, -0.022026512771844864, 0.03261760249733925, 0.008145187981426716, 0.04093068838119507, -0.01295528281480074, -0.03135249391198158, -0.02378019317984581, -0.01578286476433277, -0.0020964741706848145, -0.10782919824123383, -0.06032055616378784, -0.022911394014954567, 0.009120112285017967, -0.02335721254348755, 0.10374770313501358, 0.005121984984725714, 0.0386313796043396, 0.01682347245514393, 0.05434814840555191, -0.07192257791757584, 0.10821837186813354, -0.017851365730166435, -0.009350539185106754, -0.04393458366394043, -0.0034219087101519108, -0.00873695220798254, -0.0007514042081311345, 0.05980260670185089, -0.01565292850136757, -0.0034876111894845963, 0.06302693486213684, -0.04451455920934677, -0.00280299736186862, -0.00948561541736126, -0.013882412575185299, 0.034520070999860764, -0.0009958758018910885, 0.07493530213832855, 0.04656270518898964, 0.011754489503800869, 0.009997234679758549, -0.024212170392274857, 0.058221857994794846, -0.005013610702008009, 0.10201151669025421, 0.03857139125466347, 0.03245694190263748, -0.08393531292676926, -0.0892932265996933, 0.024617556482553482, -0.023847565054893494, 0.029279818758368492, -0.020325344055891037, 3.167530791421907e-33, 0.03762843832373619, -0.07484902441501617, -0.0334077849984169, -0.072645403444767, -0.01071661151945591, -0.045477066189050674, -0.026115817949175835, -0.026517359539866447, -0.07419436424970627, 0.030046965926885605, -0.07760584354400635, 0.028580088168382645, -0.02766670659184456, -0.04283233731985092, 0.06857205927371979, -0.018626749515533447, -0.0021491984371095896, -0.035195596516132355, 0.10536438971757889, -0.04526577889919281, 0.00214769272133708, -0.06049717217683792, -0.0614447221159935, 0.05608827620744705, 0.019003883004188538, -0.0728907659649849, 0.018370145931839943, -0.07432445138692856, -0.04463983699679375, -0.0008905749418772757, -0.026501638814806938, 0.00969894789159298, -0.003797543700784445, -0.04774095118045807, -0.05710670351982117, 0.004809067118912935, -0.05565866455435753, 0.013219327665865421, -0.04427685961127281, -0.10053505003452301, 0.0015070283552631736, -0.007554929703474045, 0.004591657780110836, -0.08036908507347107, -0.03128036856651306, -0.06382255256175995, 0.09267424792051315, -0.011586039327085018, -0.00848221592605114, 0.017549755051732063, 0.04566476121544838, -0.013420390896499157, -0.015769828110933304, -0.03308950737118721, 0.03621048852801323, -0.012699966318905354, 0.13317371904850006, 0.009233771823346615, -0.031190766021609306, 0.10910500586032867, -0.10539563745260239, -0.04729563742876053, 0.1229480654001236, -0.00011710289982147515, 0.10515347868204117, 0.0019367929780855775, -0.061712462455034256, 0.04120582714676857, -0.06140189245343208, -0.0033432338386774063, -0.031148400157690048, 0.025964802131056786, -0.009386233054101467, -0.036384209990501404, -0.048148758709430695, -0.07445763796567917, 0.05936520919203758, -0.05797487124800682, -0.11522504687309265, -0.004008520394563675, -0.014766124077141285, -0.07208219915628433, 0.025040768086910248, 0.07747918367385864, -0.031395379453897476, -0.018055273219943047, 0.030175313353538513, 0.010097451508045197, -0.0776248499751091, -0.010834665969014168, 0.015739882364869118, -0.041999515146017075, 0.012339015491306782, -0.008903841488063335, -0.10255733877420425, -4.0665110347063755e-33, 0.00486283004283905, 0.04775133356451988, -0.013541537337005138, 0.03884879872202873, 0.00018524557526689023, -0.0028067694511264563, 0.027135858312249184, 0.01880580745637417, -0.06517884135246277, -0.028167184442281723, -0.08211138844490051, 0.00914754532277584, 0.03961094096302986, 0.0399114154279232, -0.09870653599500656, 0.03656647354364395, -0.06443549692630768, -0.042243678122758865, -0.005026730243116617, 0.08617963641881943, -0.027719778940081596, 0.02128617838025093, 0.03205268457531929, 0.08889982849359512, 0.03237087279558182, 0.0487392358481884, 0.06157442182302475, 0.09244959056377411, -0.08784603327512741, -0.06888400763273239, -0.048384200781583786, -0.12297355383634567, 0.006267989054322243, 0.03497986122965813, 0.03353779390454292, -0.13135163486003876, 0.06850636005401611, 0.02800159715116024, -0.019921287894248962, 0.016905365511775017, 0.04127340391278267, 0.10838153958320618, -0.04229431226849556, -0.015101625584065914, -0.060750897973775864, 0.06158898025751114, 0.06575779616832733, -0.034949418157339096, 0.03632558137178421, -0.07757625728845596, 0.054942842572927475, 0.05988559499382973, -0.03195855766534805, 0.17658621072769165, -0.04513266682624817, 0.04413580894470215, -0.005968641489744186, 0.05866606533527374, 0.038987576961517334, 0.004416448529809713, -0.021496498957276344, -0.09822484850883484, 0.05738075450062752, 0.005638646427541971, 0.05373707786202431, -0.037330858409404755, -0.026686200872063637, -0.010676871053874493, -0.06575476378202438, 0.030528657138347626, 0.07781738042831421, 0.05968565121293068, 0.08791375160217285, 0.02118884213268757, -0.013726380653679371, -0.016716577112674713, 0.020532509312033653, -0.032950375229120255, 0.03382071852684021, -0.011139542795717716, -0.05133269727230072, 0.0365297868847847, 0.0009430106147192419, 0.02176370471715927, -0.03773859515786171, 0.03512589633464813, 0.029008161276578903, 0.019532207399606705, 0.036308061331510544, 0.052642181515693665, -0.0453803651034832, 0.04694073274731636, -0.04755442962050438, 0.0019573448225855827, -0.0404934324324131, -5.857293672306696e-8, 0.02006932906806469, -0.08194682747125626, 0.015016571618616581, 0.010580232366919518, 0.0599430687725544, -0.0481903962790966, 0.045996394008398056, -0.00770297646522522, -0.06942659616470337, -0.009663027711212635, 0.04400286078453064, 0.03764758259057999, -0.08081299066543579, -0.034830834716558456, 0.03753587603569031, -0.0173915084451437, 0.022781064733862877, 0.027403265237808228, 0.004374509211629629, -0.03962763771414757, -0.0352918766438961, -0.042478956282138824, 0.013661750592291355, 0.014806617051362991, 0.05774746835231781, -0.019140105694532394, 0.06390674412250519, 0.0711856260895729, 0.12464363127946854, -0.010782337747514248, 0.020721420645713806, -0.010255689732730389, 0.05589256063103676, 0.03625235706567764, 0.007841522805392742, 0.05788291618227959, -0.13004904985427856, 0.040549419820308685, -0.006841183640062809, 0.07800710201263428, -0.032839350402355194, -0.050775784999132156, -0.08362167328596115, 0.014736423268914223, -0.014111057855188847, 0.07203154265880585, -0.04958275705575943, 0.020812688395380974, 0.04097127541899681, -0.002072640461847186, 0.035183876752853394, -0.06831911951303482, -0.006436668336391449, 0.07206636667251587, -0.07725197821855545, -0.01966472528874874, 0.0051045226864516735, -0.04847745969891548, 0.01343094278126955, 0.00901054684072733, 0.05685380846261978, 0.04112283140420914, 0.005039968993514776, -0.06930611282587051 ]
0.147714
as such, be ignored. ## Eviction monitoring interval The kubelet evaluates eviction thresholds based on its configured `housekeeping-interval`, which defaults to `10s`. ## Node conditions {#node-conditions} The kubelet reports [node conditions](/docs/concepts/architecture/nodes/#condition) to reflect that the node is under pressure because hard or soft eviction threshold is met, independent of configured grace periods. The kubelet maps eviction signals to node conditions as follows: | Node Condition | Eviction Signal | Description | |-------------------|---------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------| | `MemoryPressure` | `memory.available` | Available memory on the node has satisfied an eviction threshold | | `DiskPressure` | `nodefs.available`, `nodefs.inodesFree`, `imagefs.available`, `imagefs.inodesFree`, `containerfs.available`, or `containerfs.inodesFree` | Available disk space and inodes on either the node's root filesystem, image filesystem, or container filesystem has satisfied an eviction threshold | | `PIDPressure` | `pid.available` | Available processes identifiers on the (Linux) node has fallen below an eviction threshold | The control plane also [maps](/docs/concepts/scheduling-eviction/taint-and-toleration/#taint-nodes-by-condition) these node conditions to taints. The kubelet updates the node conditions based on the configured `--node-status-update-frequency`, which defaults to `10s`. ### Node condition oscillation In some cases, nodes oscillate above and below soft eviction thresholds without holding for the defined grace periods. This causes the reported node condition to constantly switch between `true` and `false`, leading to bad eviction decisions. To protect against oscillation, you can use the `eviction-pressure-transition-period` flag, which controls how long the kubelet must wait before transitioning a node condition to a different state. The transition period has a default value of `5m`. ### Reclaiming node level resources {#reclaim-node-resources} The kubelet tries to reclaim node-level resources before it evicts end-user pods. When a `DiskPressure` node condition is reported, the kubelet reclaims node-level resources based on the filesystems on the node. #### Without `imagefs` or `containerfs` If the node only has a `nodefs` filesystem that meets eviction thresholds, the kubelet frees up disk space in the following order: 1. Garbage collect dead pods and containers. 1. Delete unused images. #### With `imagefs` If the node has a dedicated `imagefs` filesystem for container runtimes to use, the kubelet does the following: - If the `nodefs` filesystem meets the eviction thresholds, the kubelet garbage collects dead pods and containers. - If the `imagefs` filesystem meets the eviction thresholds, the kubelet deletes all unused images. #### With `imagefs` and `containerfs` If the node has a dedicated `containerfs` alongside the `imagefs` filesystem configured for the container runtimes to use, then kubelet will attempt to reclaim resources as follows: - If the `containerfs` filesystem meets the eviction thresholds, the kubelet garbage collects dead pods and containers. - If the `imagefs` filesystem meets the eviction thresholds, the kubelet deletes all unused images. ### Pod selection for kubelet eviction If the kubelet's attempts to reclaim node-level resources don't bring the eviction signal below the threshold, the kubelet begins to evict end-user pods. The kubelet uses the following parameters to determine the pod eviction order: 1. Whether the pod's resource usage exceeds requests 1. [Pod Priority](/docs/concepts/scheduling-eviction/pod-priority-preemption/) 1. The pod's resource usage relative to requests As a result, kubelet ranks and evicts pods in the following order: 1. `BestEffort` or `Burstable` pods where the usage exceeds requests. These pods are evicted based on their Priority and then by how much their usage level exceeds the request. 1. `Guaranteed` pods and `Burstable` pods where the usage is less than requests are evicted last, based on their Priority. {{}} The kubelet does not use the pod's [QoS class](/docs/concepts/workloads/pods/pod-qos/) to determine the eviction order. You can use the QoS class to estimate the most likely pod eviction order when reclaiming resources like memory. QoS classification does not apply to EphemeralStorage requests, so the above scenario
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/node-pressure-eviction.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/node-pressure-eviction.md
[ -0.03816215321421623, 0.07598517835140228, 0.09290777146816254, 0.00808830838650465, -0.030706631019711494, -0.044703081250190735, -0.0164219718426466, -0.04913010820746422, 0.08698362112045288, -0.06524457782506943, 0.014997482299804688, -0.08188429474830627, 0.015503867529332638, -0.10022173076868057, -0.02261323109269142, -0.015047729946672916, 0.00909380242228508, 0.004340438637882471, -0.03117193840444088, -0.013014709576964378, 0.015918873250484467, 0.011634512804448605, -0.002504868432879448, -0.013243711553514004, 0.0036176235880702734, -0.062257856130599976, 0.004008069168776274, 0.03543272614479065, 0.13639065623283386, -0.0710129514336586, -0.04953780397772789, 0.005050226580351591, -0.011895503848791122, 0.04591474309563637, 0.08839582651853561, 0.06987668573856354, 0.015323229134082794, -0.06709132343530655, -0.0989634245634079, -0.01266228873282671, 0.039566829800605774, 0.032003890722990036, -0.02346179448068142, -0.026386387646198273, -0.017859280109405518, 0.015894753858447075, -0.041655175387859344, -0.03941956162452698, -0.0990186408162117, -0.08357984572649002, 0.02984195575118065, -0.05752365291118622, 0.05102303624153137, 0.027170320972800255, 0.020943261682987213, 0.016899680718779564, -0.013946833088994026, -0.03131234645843506, 0.10385337471961975, -0.017952049151062965, 0.03460775688290596, 0.0354921855032444, -0.030182531103491783, 0.033540330827236176, -0.010398716665804386, 0.03968663141131401, -0.02835717238485813, 0.01008505467325449, 0.006481192074716091, 0.11987150460481644, 0.06258230656385422, -0.07739285379648209, -0.06655466556549072, 0.004418243654072285, 0.05485760048031807, 0.031211629509925842, -0.07880766689777374, 0.004774137400090694, -0.013440880924463272, -0.09253136068582535, -0.029006386175751686, -0.07067681849002838, 0.011694831773638725, -0.06810037791728973, -0.11599711328744888, -0.08831655979156494, -0.05132139101624489, -0.0246120672672987, 0.025143571197986603, 0.05056801438331604, 0.0628623366355896, -0.0249651987105608, -0.06575947999954224, -0.02421293966472149, 0.046362221240997314, -0.015896350145339966, 0.037912096828222275, 0.0017552594654262066, -0.03425539284944534, 0.01885407604277134, -0.03318753466010094, 0.03689873591065407, -0.10365191102027893, 0.058122456073760986, 0.0752718448638916, -0.057009633630514145, 0.03445727005600929, -0.047314487397670746, -0.03624323010444641, 0.028998281806707382, -0.00812737550586462, 0.03171391412615776, 0.025592127814888954, -0.02716948464512825, -0.02196548879146576, -0.04220176860690117, 0.025912929326295853, 0.04177529364824295, 0.02672838419675827, 0.024245206266641617, 0.054169006645679474, -0.05434759706258774, -0.0679728090763092, 0.01810302957892418, -0.020326219499111176, -0.01282514538615942, 0.01800643652677536, -7.219674162754365e-34, 0.07692844420671463, -0.12262570112943649, 0.010400194674730301, -0.10413424670696259, -0.024575358256697655, -0.03719927370548248, -0.07351187616586685, -0.026714634150266647, -0.01943417824804783, -0.0017579573905095458, -0.0731372982263565, -0.06146729737520218, -0.0527813658118248, -0.08050727099180222, 0.004520667716860771, 0.02955625019967556, -0.008496020920574665, 0.05189359560608864, 0.014329941011965275, 0.004737198818475008, 0.06932676583528519, -0.07703295350074768, -0.05067615211009979, -0.0007897865725681186, -0.016317740082740784, -0.05176929011940956, 0.014999771490693092, -0.03612595424056053, -0.06802258640527725, 0.01446409523487091, -0.01497539784759283, 0.09181517362594604, 0.06373349577188492, 0.05948912352323532, -0.13237428665161133, 0.09140472859144211, 0.01828654669225216, 0.009091885760426521, -0.02789747156202793, -0.06056677922606468, -0.030244488269090652, -0.026521367952227592, -0.009394420310854912, -0.07118533551692963, 0.08572608232498169, -0.11168260127305984, 0.04802173376083374, -0.028323516249656677, -0.007392921019345522, 0.07041393220424652, 0.0011676878202706575, 0.06496481597423553, 0.0032417781185358763, 0.00865212269127369, 0.011011350899934769, 0.010443187318742275, 0.1438293755054474, -0.052031271159648895, -0.1060681939125061, 0.08562108129262924, -0.022689245641231537, -0.02081354521214962, 0.028821447864174843, -0.04031568393111229, 0.05144970864057541, 0.11812332272529602, -0.07854176312685013, -0.0033041839487850666, -0.030257856473326683, -0.02406211942434311, -0.053478457033634186, 0.009505372494459152, -0.011049025692045689, -0.0032999638933688402, -0.06230941787362099, -0.056966736912727356, -0.005129988770931959, -0.041755929589271545, -0.06924750655889511, -0.013851214200258255, 0.03875512257218361, -0.09533116221427917, 0.039260830730199814, 0.05201604217290878, 0.03211100399494171, -0.057856835424900055, 0.048518579453229904, 0.011625625193119049, -0.09972289204597473, 0.01120692864060402, 0.04483085498213768, -0.03379972279071808, 0.006076098885387182, 0.00040838491986505687, -0.06027740612626076, -4.592003294614002e-33, 0.004331648349761963, 0.04090684652328491, -0.024330658838152885, 0.031416717916727066, -0.02577345445752144, 0.03893392160534859, -0.06461279839277267, 0.02036563865840435, 0.03008357807993889, 0.023256542161107063, 0.0008724063518457115, -0.019580787047743797, -0.036367833614349365, 0.01317615993320942, -0.050166334956884384, 0.030833665281534195, -0.036978580057621, -0.06105004996061325, -0.005559932440519333, 0.044202059507369995, 0.001473715528845787, 0.0428733229637146, -0.06737226247787476, 0.07098900526762009, 0.03300420194864273, -0.02149372547864914, -0.005999176762998104, 0.07969485968351364, -0.09119733422994614, -0.07482858002185822, -0.046643391251564026, -0.09708569943904877, -0.050232309848070145, 0.03701842203736305, 0.042885832488536835, -0.1148100420832634, 0.007493310142308474, 0.0730159655213356, -0.032528024166822433, 0.011509635485708714, 0.033489592373371124, 0.08303439617156982, -0.09936264157295227, 0.003194224089384079, -0.006640053819864988, 0.07917778939008713, 0.06122967600822449, -0.03524842858314514, 0.021487707272171974, -0.07585494220256805, 0.005054856650531292, 0.03397712856531143, 0.089045450091362, 0.18179038166999817, -0.044808290898799896, 0.04472162947058678, -0.0027170339599251747, 0.07698366791009903, -0.015141414478421211, -0.022115372121334076, -0.009110032580792904, -0.050600696355104446, 0.052949078381061554, -0.04006233066320419, 0.028105489909648895, -0.045208968222141266, 0.02348398044705391, 0.011524215340614319, 0.04193759337067604, -0.04510883241891861, 0.011888058856129646, 0.022415876388549805, 0.0025942602660506964, -0.027104893699288368, 0.023613078519701958, 0.024301955476403236, 0.0397164411842823, -0.07877067476511002, -0.012325524352490902, -0.06246079131960869, -0.06269720196723938, 0.03328784927725792, -0.029265280812978745, 0.024197598919272423, -0.004675284959375858, -0.021103357896208763, -0.026889804750680923, -0.02970140241086483, 0.07395316660404205, 0.1269693821668625, -0.017014460638165474, 0.03614000231027603, -0.058179352432489395, -0.043374400585889816, -0.003329232567921281, -4.739288783639495e-8, 0.018679888918995857, -0.018614409491419792, -0.06301818788051605, -0.0065698279067873955, 0.06927745789289474, -0.06466846168041229, 0.06390754133462906, -0.015741385519504547, -0.08667497336864471, -0.06535424292087555, 0.07296180725097656, 0.022765062749385834, 0.01675896719098091, -0.07563137263059616, 0.011242787353694439, -0.0873907208442688, 0.0101889967918396, -0.012690023519098759, -0.037244945764541626, -0.004834983963519335, -0.08843027800321579, -0.028030017390847206, -0.007428266573697329, 0.007036824245005846, 0.00876957643777132, 0.009190973825752735, 0.013448511250317097, 0.013282244093716145, 0.07611139863729477, 0.032709166407585144, 0.00009626123937778175, 0.023407625034451485, 0.01809532940387726, 0.058023687452077866, -0.07392619550228119, 0.11667606234550476, -0.06067313998937607, 0.04934138432145119, 0.0036587254144251347, 0.08270428329706192, 0.0010391350369900465, -0.06401464343070984, -0.07168899476528168, 0.03637830168008804, -0.07429131865501404, 0.059798840433359146, -0.03867871314287186, 0.040993593633174896, 0.043863192200660706, -0.027568701654672623, -0.02106945402920246, -0.010324540548026562, -0.046186164021492004, 0.013423648662865162, 0.008431261405348778, 0.0009838344994932413, 0.001966716954484582, -0.032763831317424774, 0.0040246895514428616, 0.037414103746414185, 0.03981245309114456, -0.010111996904015541, -0.010156199336051941, -0.020846258848905563 ]
0.064535
based on their Priority. {{}} The kubelet does not use the pod's [QoS class](/docs/concepts/workloads/pods/pod-qos/) to determine the eviction order. You can use the QoS class to estimate the most likely pod eviction order when reclaiming resources like memory. QoS classification does not apply to EphemeralStorage requests, so the above scenario will not apply if the node is, for example, under `DiskPressure`. {{}} `Guaranteed` pods are guaranteed only when requests and limits are specified for all the containers and they are equal. These pods will never be evicted because of another pod's resource consumption. If a system daemon (such as `kubelet` and `journald`) is consuming more resources than were reserved via `system-reserved` or `kube-reserved` allocations, and the node only has `Guaranteed` or `Burstable` pods using less resources than requests left on it, then the kubelet must choose to evict one of these pods to preserve node stability and to limit the impact of resource starvation on other pods. In this case, it will choose to evict pods of lowest Priority first. If you are running a [static pod](/docs/concepts/workloads/pods/#static-pods) and want to avoid having it evicted under resource pressure, set the `priority` field for that Pod directly. Static pods do not support the `priorityClassName` field. When the kubelet evicts pods in response to inode or process ID starvation, it uses the Pods' relative priority to determine the eviction order, because inodes and PIDs have no requests. The kubelet sorts pods differently based on whether the node has a dedicated `imagefs` or `containerfs` filesystem: #### Without `imagefs` or `containerfs` (`nodefs` and `imagefs` use the same filesystem) {#without-imagefs} - If `nodefs` triggers evictions, the kubelet sorts pods based on their total disk usage (`local volumes + logs and a writable layer of all containers`). #### With `imagefs` (`nodefs` and `imagefs` filesystems are separate) {#with-imagefs} - If `nodefs` triggers evictions, the kubelet sorts pods based on `nodefs` usage (`local volumes + logs of all containers`). - If `imagefs` triggers evictions, the kubelet sorts pods based on the writable layer usage of all containers. #### With `imagesfs` and `containerfs` (`imagefs` and `containerfs` have been split) {#with-containersfs} - If `containerfs` triggers evictions, the kubelet sorts pods based on `containerfs` usage (`local volumes + logs and a writable layer of all containers`). - If `imagefs` triggers evictions, the kubelet sorts pods based on the `storage of images` rank, which represents the disk usage of a given image. ### Minimum eviction reclaim {{}} As of Kubernetes v{{< skew currentVersion >}}, you cannot set a custom value for the `containerfs.available` metric. The configuration for this specific metric will be set automatically to reflect values set for either the `nodefs` or `imagefs`, depending on the configuration. {{}} In some cases, pod eviction only reclaims a small amount of the starved resource. This can lead to the kubelet repeatedly hitting the configured eviction thresholds and triggering multiple evictions. You can use the `--eviction-minimum-reclaim` flag or a [kubelet config file](/docs/tasks/administer-cluster/kubelet-config-file/) to configure a minimum reclaim amount for each resource. When the kubelet notices that a resource is starved, it continues to reclaim that resource until it reclaims the quantity you specify. For example, the following configuration sets minimum reclaim amounts: ```yaml apiVersion: kubelet.config.k8s.io/v1beta1 kind: KubeletConfiguration evictionHard: memory.available: "500Mi" nodefs.available: "1Gi" imagefs.available: "100Gi" evictionMinimumReclaim: memory.available: "0Mi" nodefs.available: "500Mi" imagefs.available: "2Gi" ``` In this example, if the `nodefs.available` signal meets the eviction threshold, the kubelet reclaims the resource until the signal reaches the threshold of 1GiB, and then continues to reclaim the minimum amount of 500MiB, until the available nodefs storage value reaches 1.5GiB. Similarly, the kubelet tries to reclaim the `imagefs` resource until the
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/node-pressure-eviction.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/node-pressure-eviction.md
[ 0.012350812554359436, 0.06417059898376465, 0.05063316971063614, 0.03798314183950424, -0.0009546688525006175, -0.025049252435564995, 0.009399058297276497, -0.028707366436719894, 0.11313634365797043, 0.03671236336231232, 0.0003176578611601144, 0.03352592885494232, 0.015281254425644875, -0.03648751974105835, -0.0024346215650439262, -0.03165023401379585, 0.034827131778001785, 0.027035057544708252, -0.0431961864233017, 0.015201035887002945, 0.07143203169107437, -0.031154287979006767, -0.01879727840423584, 0.024202395230531693, -0.001384293776936829, -0.031271304935216904, -0.043712127953767776, 0.018061615526676178, 0.07380391657352448, -0.07226645946502686, -0.04666393622756004, 0.01564815826714039, 0.020690161734819412, 0.013988004997372627, 0.07248841971158981, 0.08091814070940018, -0.03734040632843971, -0.1226927787065506, -0.07201048731803894, -0.008852510713040829, -0.01424556877464056, -0.018826603889465332, -0.10644818842411041, 0.015445957891643047, -0.021281881257891655, 0.05760321766138077, -0.050377257168293, 0.006347185932099819, -0.07085099816322327, -0.10653902590274811, 0.05708477646112442, -0.06922800838947296, 0.07070820033550262, 0.12523165345191956, 0.0257094893604517, 0.05915362760424614, 0.015642771497368813, -0.01888454146683216, 0.03899059817194939, 0.03160199150443077, 0.0402141809463501, -0.008680054917931557, 0.014218637719750404, 0.0310631413012743, 0.07055406272411346, -0.02335759438574314, 0.05318976193666458, 0.06429661065340042, -0.006618250627070665, 0.04335165396332741, 0.09123322367668152, -0.04798158258199692, -0.011135589331388474, -0.018633125349879265, 0.021107541397213936, 0.02568630687892437, -0.032122522592544556, 0.03783351182937622, -0.05594886466860771, -0.05300004407763481, 0.011257552541792393, -0.013871559873223305, 0.03621276468038559, -0.0943007692694664, -0.059984058141708374, -0.012711050920188427, -0.0481879860162735, -0.01602247543632984, 0.03130096569657326, 0.02366010658442974, 0.057614028453826904, 0.027190109714865685, 0.06548513472080231, -0.08818746358156204, 0.07709682732820511, -0.0363088957965374, 0.04143966734409332, -0.03903014957904816, 0.02729293704032898, -0.013070936314761639, 0.016755485907197, 0.08603610843420029, -0.0405978262424469, -0.0021571116521954536, 0.11407912522554398, -0.06898560374975204, -0.04727746173739433, -0.039611123502254486, 0.03479824215173721, 0.019405238330364227, -0.007322970777750015, 0.013330775313079357, 0.01358355674892664, 0.08813119679689407, -0.026467449963092804, 0.04005008563399315, -0.0035933381877839565, 0.013438038527965546, 0.003728831186890602, 0.015604090876877308, 0.006115712225437164, -0.039975881576538086, 0.006096362601965666, -0.02746950089931488, -0.0767049491405487, 0.031765416264534, -0.032345160841941833, 2.3919497206539392e-33, 0.02240297757089138, -0.12141379714012146, -0.002801883965730667, -0.10105207562446594, 0.002854925347492099, -0.08421987295150757, -0.032255638390779495, -0.020739510655403137, -0.02727842703461647, -0.06505125015974045, -0.06350693106651306, 0.008004897274076939, -0.002221538685262203, 0.006142160389572382, 0.05029308795928955, -0.013231854885816574, -0.07093136757612228, 0.07195240259170532, 0.0465572364628315, -0.03325894847512245, 0.04288167133927345, -0.019041098654270172, -0.04886353760957718, 0.007913094013929367, 0.01707267016172409, -0.031802672892808914, 0.03025183454155922, -0.08801902085542679, -0.07105593383312225, 0.02303427644073963, -0.06467538326978683, 0.048453401774168015, -0.03759581223130226, 0.0054496582597494125, -0.11754835397005081, 0.060771819204092026, -0.05744851008057594, 0.019008977338671684, -0.07960179448127747, -0.07932312041521072, 0.01045497041195631, 0.017158636823296547, 0.007747626397758722, -0.0601920410990715, 0.04977230355143547, -0.09742031246423721, 0.07347266376018524, -0.058643244206905365, -0.016298864036798477, 0.05207957699894905, 0.0060779438354074955, -0.027085307985544205, -0.006850558798760176, 0.013961529359221458, 0.03966546058654785, 0.0278401430696249, 0.10557782649993896, -0.05736822634935379, -0.0375153124332428, 0.03551493212580681, 0.0017916365759447217, -0.0033677895553410053, 0.038237567991018295, 0.005927821155637503, 0.035041581839323044, 0.09241229295730591, -0.012445368804037571, 0.013749844394624233, -0.05063951760530472, 0.06555990129709244, 0.009403152391314507, -0.010239720344543457, 0.008281422778964043, 0.00845862366259098, -0.04200148209929466, -0.036036983132362366, 0.0009776502847671509, -0.04981378838419914, -0.1672813445329666, 0.007171072065830231, 0.03554965928196907, -0.07673599570989609, 0.006194511894136667, 0.047590382397174835, -0.03551473096013069, -0.04106026515364647, 0.07012530416250229, -0.010525762103497982, -0.03944189473986626, 0.04806528612971306, 0.052443236112594604, -0.008564906194806099, -0.011906429193913937, 0.0242739487439394, -0.0815473347902298, -3.716211881451411e-33, 0.07375910133123398, 0.04085817560553551, 0.01753915846347809, 0.01810469664633274, -0.030910933390259743, 0.00788018200546503, -0.12384162843227386, 0.023584451526403427, -0.037610918283462524, -0.059408873319625854, -0.12021978199481964, 0.00643932493403554, 0.027174469083547592, 0.041291769593954086, -0.06977446377277374, 0.03828611969947815, -0.04968671500682831, -0.09707754850387573, -0.04808885604143143, 0.053301725536584854, -0.0107374032959342, -0.001712512457743287, 0.031818490475416183, 0.03476458042860031, 0.020253019407391548, -0.008068948984146118, 0.01885499246418476, 0.031827863305807114, -0.06870579719543457, -0.09157077968120575, 0.0034876533318310976, -0.1791120022535324, -0.045782264322042465, 0.03318117558956146, 0.054422758519649506, -0.046503227204084396, -0.04874860867857933, 0.07706817239522934, -0.013981569558382034, 0.03482547029852867, 0.03233101963996887, 0.05841480940580368, -0.09002658724784851, -0.03449586033821106, -0.003304815385490656, 0.0059646666049957275, -0.025857307016849518, 0.0021650714334100485, 0.08724550157785416, -0.07619079947471619, 0.06013422831892967, 0.04781496152281761, 0.00013375960406847298, 0.13438987731933594, 0.010913870297372341, -0.012148995883762836, 0.008459056727588177, 0.11076300591230392, -0.04996739700436592, 0.007484870031476021, 0.04587027430534363, -0.045479949563741684, 0.01656971126794815, -0.013662858866155148, -0.011522338725626469, -0.07948806136846542, 0.0004630294570233673, -0.010033226571977139, -0.000698307529091835, -0.0005180994630791247, 0.0754726231098175, 0.0600418858230114, 0.02911582961678505, 0.02917943149805069, -0.019189391285181046, 0.016188982874155045, -0.008205224759876728, -0.05252174660563469, 0.031754590570926666, -0.04371373727917671, -0.09932129085063934, 0.0961630791425705, -0.0480533167719841, 0.046072278171777725, -0.03913796320557594, 0.011386018246412277, 0.053418587893247604, -0.05423402041196823, 0.06770940124988556, 0.03667379170656204, 0.03971020132303238, 0.0335458368062973, -0.05683133006095886, 0.02886207029223442, -0.04335668683052063, -4.672546083384077e-8, 0.09300907701253891, -0.06319484859704971, 0.013051018118858337, 0.07176858931779861, 0.06816989183425903, -0.1026926189661026, 0.0701422318816185, 0.06621769070625305, -0.03640679270029068, 0.03217143192887306, 0.056071508675813675, 0.0555243119597435, 0.0005498447571881115, -0.0336589440703392, 0.052058205008506775, -0.008634645491838455, 0.035848792642354965, -0.002944398205727339, -0.03423483669757843, -0.02168380096554756, -0.056690312922000885, -0.062136001884937286, 0.03943880274891853, 0.017338795587420464, 0.023173753172159195, 0.030701445415616035, 0.12687671184539795, 0.016254037618637085, 0.0311198178678751, 0.039192743599414825, -0.0366346575319767, 0.018035992980003357, -0.05820784345269203, 0.0260983407497406, 0.0018006550380960107, 0.07547549158334732, -0.15837699174880981, 0.011698435992002487, -0.008973936550319195, 0.1014191061258316, -0.05053377524018288, -0.06992032378911972, -0.003600646974518895, 0.024427052587270737, -0.0052143181674182415, 0.022291330620646477, -0.06821957975625992, 0.0325169637799263, 0.010071229189634323, -0.013258207589387894, -0.03968694433569908, -0.07624746114015579, -0.013880726881325245, 0.07440163195133209, -0.026600129902362823, 0.005791680887341499, 0.013578091748058796, -0.019310474395751953, 0.0058502256870269775, 0.013394241221249104, 0.07134362310171127, 0.00874914601445198, 0.03757551312446594, -0.018400518223643303 ]
0.180543
if the `nodefs.available` signal meets the eviction threshold, the kubelet reclaims the resource until the signal reaches the threshold of 1GiB, and then continues to reclaim the minimum amount of 500MiB, until the available nodefs storage value reaches 1.5GiB. Similarly, the kubelet tries to reclaim the `imagefs` resource until the `imagefs.available` value reaches `102Gi`, representing 102 GiB of available container image storage. If the amount of storage that the kubelet could reclaim is less than 2GiB, the kubelet doesn't reclaim anything. The default `eviction-minimum-reclaim` is `0` for all resources. ## Node out of memory behavior If the node experiences an \_out of memory\_ (OOM) event prior to the kubelet being able to reclaim memory, the node depends on the [oom\_killer](https://lwn.net/Articles/391222/) to respond. The kubelet sets an `oom\_score\_adj` value for each container based on the QoS for the pod. | Quality of Service | `oom\_score\_adj` | |--------------------|-----------------------------------------------------------------------------------| | `Guaranteed` | -997 | | `BestEffort` | 1000 | | `Burstable` | \_min(max(2, 1000 - (1000 × memoryRequestBytes) / machineMemoryCapacityBytes), 999)\_ | {{}} The kubelet also sets an `oom\_score\_adj` value of `-997` for any containers in Pods that have `system-node-critical` {{}}. {{}} If the kubelet can't reclaim memory before a node experiences OOM, the `oom\_killer` calculates an `oom\_score` based on the percentage of memory it's using on the node, and then adds the `oom\_score\_adj` to get an effective `oom\_score` for each container. It then kills the container with the highest score. This means that containers in low QoS pods that consume a large amount of memory relative to their scheduling requests are killed first. Unlike pod eviction, if a container is OOM killed, the kubelet can restart it based on its `restartPolicy`. ## Good practices {#node-pressure-eviction-good-practices} The following sections describe good practice for eviction configuration. ### Schedulable resources and eviction policies When you configure the kubelet with an eviction policy, you should make sure that the scheduler will not schedule pods if they will trigger eviction because they immediately induce memory pressure. Consider the following scenario: - Node memory capacity: 10GiB - Operator wants to reserve 10% of memory capacity for system daemons (kernel, `kubelet`, etc.) - Operator wants to evict Pods at 95% memory utilization to reduce incidence of system OOM. For this to work, the kubelet is launched as follows: ```none --eviction-hard=memory.available<500Mi --system-reserved=memory=1.5Gi ``` In this configuration, the `--system-reserved` flag reserves 1.5GiB of memory for the system, which is `10% of the total memory + the eviction threshold amount`. The node can reach the eviction threshold if a pod is using more than its request, or if the system is using more than 1GiB of memory, which makes the `memory.available` signal fall below 500MiB and triggers the threshold. ### DaemonSets and node-pressure eviction {#daemonset} Pod priority is a major factor in making eviction decisions. If you do not want the kubelet to evict pods that belong to a DaemonSet, give those pods a high enough priority by specifying a suitable `priorityClassName` in the pod spec. You can also use a lower priority, or the default, to only allow pods from that DaemonSet to run when there are enough resources. ## Known issues The following sections describe known issues related to out of resource handling. ### kubelet may not observe memory pressure right away By default, the kubelet polls cAdvisor to collect memory usage stats at a regular interval. If memory usage increases within that window rapidly, the kubelet may not observe `MemoryPressure` fast enough, and the OOM killer will still be invoked. You can use the `--kernel-memcg-notification` flag to enable the `memcg` notification API on the kubelet to get notified immediately
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/node-pressure-eviction.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/node-pressure-eviction.md
[ 0.017283208668231964, 0.05312316492199898, 0.04921073094010353, 0.07136397063732147, 0.004636506084352732, -0.025428323075175285, 0.026842329651117325, -0.01696794480085373, 0.11524044722318649, 0.0006975132855586708, 0.020893491804599762, 0.012661105021834373, 0.01758362166583538, -0.04384884238243103, -0.022066639736294746, 0.01651577837765217, 0.059453390538692474, 0.047486186027526855, -0.08439992368221283, 0.014645485207438469, 0.031431738287210464, -0.06278283894062042, 0.009544074535369873, -0.03414500877261162, -0.0023016787599772215, -0.05395282432436943, -0.03346908092498779, 0.005436697509139776, 0.11122620850801468, -0.11325202882289886, -0.0205624271184206, 0.023622378706932068, 0.04001256823539734, 0.008088921196758747, 0.11160074174404144, 0.131069153547287, -0.030512792989611626, -0.10982570052146912, -0.11293359845876694, 0.001963952323421836, 0.029856443405151367, 0.020047888159751892, -0.1231476292014122, 0.02067936770617962, -0.011933911591768265, 0.07244613766670227, -0.056952767074108124, -0.03561898320913315, -0.05307343974709511, -0.10946865379810333, 0.05892421305179596, -0.023842021822929382, 0.010263781994581223, 0.10503072291612625, 0.03824344277381897, 0.017971018329262733, -0.026693353429436684, -0.015364586375653744, 0.008209663443267345, 0.0665951818227768, 0.01878007873892784, -0.02770080417394638, 0.011507723480463028, 0.004944585729390383, 0.04946951940655708, 0.018367495387792587, 0.018807336688041687, -0.018370600417256355, -0.05820836126804352, 0.021822499111294746, 0.0647117868065834, -0.029295342043042183, -0.016920357942581177, 0.03522259369492531, 0.042620398104190826, 0.01786249503493309, -0.03586488962173462, 0.03188454732298851, -0.030372964218258858, -0.04364550858736038, -0.00800363440066576, -0.017711492255330086, 0.03185385838150978, -0.09259387850761414, -0.09314871579408646, -0.05318063125014305, -0.06062202900648117, 0.0012724688276648521, 0.05580482259392738, 0.030048681423068047, -0.0008721116464585066, 0.03403381258249283, 0.004385714419186115, -0.02506645955145359, 0.05660204589366913, -0.059972308576107025, 0.022605136036872864, -0.0248050969094038, 0.013002611696720123, -0.00910866353660822, 0.031209591776132584, 0.0967969000339508, -0.0366387665271759, -0.0022274083457887173, 0.05115539953112602, -0.07927744090557098, 0.015230363234877586, 0.03516075760126114, 0.02288152277469635, 0.03802762180566788, 0.005732832942157984, 0.026790404692292213, 0.020574262365698814, 0.07856085151433945, 0.010414320044219494, 0.03981267288327217, -0.004670833237469196, 0.02587156742811203, 0.012624251656234264, 0.026153188198804855, 0.02925099804997444, -0.04762965440750122, -0.014251568354666233, -0.02038583531975746, -0.10802002996206284, 0.01228365208953619, -0.0295261163264513, 2.511537169066906e-33, 0.011717385612428188, -0.08787661045789719, 0.0453028567135334, -0.09909544140100479, -0.010362021625041962, -0.10344656556844711, -0.03792164847254753, -0.04760027304291725, -0.09542863816022873, -0.04495164379477501, -0.07647234201431274, 0.0036313950549811125, -0.03741080313920975, 0.030479133129119873, 0.07230236381292343, -0.076819509267807, -0.050999999046325684, 0.07681714743375778, 0.06568971276283264, -0.008560079149901867, 0.06349457055330276, 0.011792132630944252, -0.03773278370499611, 0.03119480609893799, 0.035151995718479156, -0.04782285913825035, 0.05881916731595993, -0.06592223793268204, -0.054500333964824677, 0.019077612087130547, -0.05657487362623215, 0.06972400844097137, -0.028180204331874847, 0.00026019231881946325, -0.08869214355945587, 0.05345438793301582, -0.030796095728874207, 0.007194333244115114, -0.07804140448570251, -0.068008653819561, -0.0017850111471489072, 0.03966964781284332, 0.020275739952921867, -0.07578864693641663, -0.03620779514312744, -0.14009550213813782, 0.0944557934999466, -0.042915236204862595, -0.038791146129369736, 0.08084408193826675, 0.02968878485262394, -0.01876005157828331, -0.02302936650812626, 0.05467287823557854, 0.02523765340447426, 0.03847767412662506, 0.08877161145210266, -0.045439865440130234, -0.019885139539837837, 0.092767633497715, 0.033527225255966187, -0.010851820930838585, 0.06600083410739899, 0.02746887318789959, 0.04457295313477516, 0.07909311354160309, -0.030167866498231888, 0.002958547091111541, -0.08117678016424179, 0.02697174623608589, -0.029499445110559464, 0.0424826517701149, 0.018222125247120857, -0.05030486360192299, -0.05771977826952934, -0.027595413848757744, 0.02826451137661934, -0.0637916699051857, -0.16603471338748932, 0.008541390299797058, 0.019870566204190254, -0.09069645404815674, 0.05072424188256264, 0.008359579369425774, -0.039604172110557556, -0.04229999706149101, 0.08283723145723343, -0.0043068695813417435, -0.08818277716636658, 0.04839891567826271, 0.05374983325600624, -0.015683673322200775, -0.014281588606536388, -0.02081015333533287, -0.08835595101118088, -1.5683711951609818e-33, 0.08525585383176804, 0.05148477852344513, 0.005707061383873224, 0.01977904699742794, -0.011743399314582348, -0.008463595062494278, -0.06896919757127762, 0.07903261482715607, -0.03459978848695755, -0.04586736485362053, -0.08569499105215073, -0.004706108942627907, 0.01883195899426937, 0.022132128477096558, -0.09876091778278351, -0.0026045062113553286, -0.010035144165158272, -0.04220077767968178, -0.03371637314558029, 0.06506741791963577, -0.02053036354482174, 0.0038847613614052534, 0.06353645771741867, 0.016247713938355446, -0.017747756093740463, 0.06808575242757797, 0.03641078993678093, 0.04197772219777107, -0.06829062104225159, -0.07645506411790848, 0.03063380904495716, -0.13495630025863647, -0.042608022689819336, 0.050208695232868195, 0.083725705742836, -0.05278908461332321, 0.015514795668423176, 0.04322616755962372, -0.007887447252869606, 0.02058422937989235, 0.022571025416254997, 0.08923117816448212, -0.06749629229307175, -0.011791183613240719, -0.01433799508959055, 0.024457687512040138, 0.0030538521241396666, -0.015185642056167126, 0.09207194298505783, -0.06783930957317352, 0.042791012674570084, -0.011015212163329124, 0.02429870143532753, 0.15045563876628876, -0.01627543568611145, 0.010322551243007183, 0.0416683629155159, 0.07665549963712692, -0.029087824746966362, -0.023650068789720535, 0.060636017471551895, -0.050954487174749374, -0.019076641649007797, -0.011422800831496716, 0.007968381978571415, -0.029194146394729614, 0.009506793692708015, 0.017596209421753883, -0.02500486560165882, 0.023070665076375008, 0.023031899705529213, 0.08029576390981674, 0.021518390625715256, 0.002061637118458748, -0.007956905290484428, 0.07445418834686279, -0.009502733126282692, -0.023272588849067688, 0.038330260664224625, -0.014563238248229027, -0.10761485248804092, 0.039476074278354645, -0.045027825981378555, 0.013202350586652756, 0.03284880518913269, 0.016520678997039795, 0.01121366024017334, -0.02491651475429535, 0.06119339168071747, 0.061674848198890686, -0.02035883255302906, 0.014647996984422207, -0.035223156213760376, 0.05338040739297867, -0.029273588210344315, -4.1604266698413994e-8, 0.019586559385061264, -0.05153493955731392, -0.0346149317920208, 0.05183246731758118, 0.06678914278745651, -0.09159933030605316, 0.059417761862277985, 0.04799344390630722, -0.041942331939935684, -0.018661485984921455, 0.04215867444872856, 0.03946233540773392, -0.03515662997961044, -0.04988645762205124, 0.044102780520915985, -0.026539845392107964, 0.02935224026441574, -0.015577597543597221, 0.03016245737671852, -0.003197348676621914, -0.07269805669784546, -0.07134046405553818, 0.014659067615866661, 0.04292473942041397, -0.0030413263011723757, 0.029247742146253586, 0.0996774286031723, 0.07693778723478317, 0.02394700050354004, 0.0031140565406531096, 0.03263607621192932, 0.0007790097151882946, -0.024313433095812798, 0.04087623953819275, 0.005081706214696169, 0.06612469255924225, -0.1562650352716446, 0.008926447480916977, 0.026865636929869652, 0.12244445085525513, -0.027925502508878708, -0.030582455918192863, -0.007681078743189573, 0.02605322375893593, -0.014007661491632462, 0.05070139095187187, -0.04875200614333153, 0.0676569789648056, 0.00174170290119946, -0.018514618277549744, 0.002400602912530303, -0.04366285353899002, -0.07568895816802979, 0.07123309373855591, 0.006640313193202019, -0.012497763149440289, 0.03505455702543259, -0.03912787511944771, 0.0037073444109410048, 0.04102756828069687, 0.04235190525650978, -0.004941192455589771, 0.012692260555922985, -0.026994189247488976 ]
0.156521
memory usage stats at a regular interval. If memory usage increases within that window rapidly, the kubelet may not observe `MemoryPressure` fast enough, and the OOM killer will still be invoked. You can use the `--kernel-memcg-notification` flag to enable the `memcg` notification API on the kubelet to get notified immediately when a threshold is crossed. If you are not trying to achieve extreme utilization, but a sensible measure of overcommit, a viable workaround for this issue is to use the `--kube-reserved` and `--system-reserved` flags to allocate memory for the system. ### active\_file memory is not considered as available memory On Linux, the kernel tracks the number of bytes of file-backed memory on active least recently used (LRU) list as the `active\_file` statistic. The kubelet treats `active\_file` memory areas as not reclaimable. For workloads that make intensive use of block-backed local storage, including ephemeral local storage, kernel-level caches of file and block data means that many recently accessed cache pages are likely to be counted as `active\_file`. If enough of these kernel block buffers are on the active LRU list, the kubelet is liable to observe this as high resource use and taint the node as experiencing memory pressure - triggering pod eviction. For more details, see [https://github.com/kubernetes/kubernetes/issues/43916](https://github.com/kubernetes/kubernetes/issues/43916) You can work around that behavior by setting the memory limit and memory request the same for containers likely to perform intensive I/O activity. You will need to estimate or measure an optimal memory limit value for that container. ## {{% heading "whatsnext" %}} - Learn about [API-initiated Eviction](/docs/concepts/scheduling-eviction/api-eviction/) - Learn about [Pod Priority and Preemption](/docs/concepts/scheduling-eviction/pod-priority-preemption/) - Learn about [PodDisruptionBudgets](/docs/tasks/run-application/configure-pdb/) - Learn about [Quality of Service](/docs/tasks/configure-pod-container/quality-service-pod/) (QoS) - Check out the [Eviction API](/docs/reference/generated/kubernetes-api/{{}}/#create-eviction-pod-v1-core)
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/node-pressure-eviction.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/node-pressure-eviction.md
[ 0.03639361262321472, 0.03120788186788559, -0.003008012194186449, 0.054605431854724884, 0.014900648966431618, -0.08095770329236984, 0.059838611632585526, 0.130522683262825, 0.1114833876490593, 0.06499352306127548, -0.02157129906117916, 0.00281856139190495, -0.03622688725590706, -0.05239043012261391, -0.010027719661593437, 0.036856066435575485, 0.03009728714823723, 0.019836297258734703, -0.055364254862070084, -0.006605624221265316, 0.019349422305822372, 0.0038567190058529377, 0.0630449503660202, 0.030120713636279106, -0.03840558975934982, -0.020888732746243477, -0.017261406406760216, -0.008954525925219059, 0.05340404808521271, -0.07003923505544662, 0.017061997205018997, 0.06022457778453827, -0.019877366721630096, 0.00828184187412262, 0.07192464917898178, 0.07431771606206894, -0.089005246758461, -0.12234802544116974, -0.09669211506843567, 0.010136662051081657, -0.0007348124054260552, 0.056690115481615067, -0.09682483226060867, 0.07017414271831512, -0.012386476621031761, 0.06059657409787178, -0.04813741520047188, -0.010906588286161423, -0.05316704884171486, -0.05697493255138397, 0.0006295572384260595, 0.01339668594300747, 0.04436580464243889, 0.027474481612443924, 0.026442138478159904, -0.03386741504073143, -0.055816229432821274, -0.03601701930165291, 0.03195909783244133, 0.07371965795755386, -0.06963107734918594, 0.014783781953155994, 0.022662300616502762, -0.030942248180508614, -0.07452177256345749, 0.05310584604740143, 0.06114969775080681, 0.032224565744400024, -0.013051128946244717, 0.05489153414964676, 0.0475383885204792, 0.021179836243391037, -0.00823571253567934, 0.025800907984375954, 0.03917734697461128, -0.026868341490626335, -0.08643575757741928, -0.0204881951212883, 0.03431358560919762, -0.11425184458494186, 0.05312085524201393, -0.051541298627853394, 0.08908668160438538, -0.12240032106637955, -0.005135761573910713, 0.006161990109831095, 0.002711624838411808, 0.029126949608325958, 0.040064144879579544, -0.037545833736658096, 0.023665085434913635, 0.01762443222105503, -0.03430672734975815, -0.027814313769340515, 0.030418341979384422, -0.04120558500289917, 0.04038534685969353, 0.0505937896668911, -0.023828888311982155, -0.03424428775906563, 0.0446385033428669, 0.13480277359485626, -0.04059981554746628, 0.0768706426024437, 0.06565489619970322, -0.031348228454589844, 0.041926827281713486, 0.057842742651700974, -0.0016233015339821577, -0.02442997135221958, 0.007804500870406628, -0.012340342625975609, -0.0032760922331362963, 0.012308387085795403, 0.07465855777263641, 0.012394075281918049, -0.00469344574958086, 0.013040362857282162, -0.007292153779417276, 0.11709145456552505, 0.058491166681051254, -0.052885256707668304, -0.10543851554393768, -0.030942711979150772, -0.06798220425844193, 0.04614977911114693, -0.02067125402390957, 5.076330109697816e-33, 0.023808609694242477, -0.040785010904073715, 0.030223296955227852, -0.04629312828183174, -0.06989768892526627, -0.13165616989135742, -0.0820770412683487, -0.01512554194778204, -0.05597889423370361, -0.03886956721544266, -0.03598828241229057, -0.04802997037768364, -0.06296969950199127, 0.03383603319525719, 0.07745423913002014, -0.007320219185203314, -0.04827350005507469, -0.010050537064671516, 0.05611972510814667, 0.010343885980546474, 0.01193113625049591, -0.009153160266578197, -0.02701481245458126, -0.013048042543232441, 0.03666876256465912, 0.03874881938099861, 0.04842889681458473, -0.04257885739207268, -0.03534089773893356, 0.005026611033827066, -0.0007692709914408624, 0.022726895287632942, -0.012097316794097424, 0.03166557475924492, -0.14764493703842163, 0.002433001296594739, -0.11321035027503967, -0.00636101420968771, -0.0026279231533408165, -0.0564076192677021, 0.017888808622956276, 0.06029518321156502, -0.0027693428564816713, -0.08998353779315948, -0.030331706628203392, -0.06342756003141403, 0.04018288105726242, -0.023041851818561554, -0.048836272209882736, 0.046500492841005325, 0.03605712950229645, 0.027430662885308266, -0.005140717141330242, 0.03838910907506943, -0.003978054970502853, 0.038971979171037674, 0.07359078526496887, -0.05712391808629036, 0.025866879150271416, 0.10821894556283951, 0.0214117132127285, -0.03970799967646599, 0.042397186160087585, 0.013178180903196335, -0.01860875077545643, 0.007985583506524563, -0.0003881859593093395, 0.10363433510065079, -0.05386766418814659, 0.028633475303649902, -0.0020084271673113108, -0.040438681840896606, 0.008820180781185627, -0.038498036563396454, -0.04007286578416824, -0.00477313157171011, 0.058448426425457, -0.022116631269454956, -0.19848909974098206, -0.0015927632339298725, 0.11913827061653137, -0.0950547307729721, 0.07136973738670349, -0.04123702272772789, 0.007235207594931126, -0.004794612061232328, 0.060059525072574615, -0.008139001205563545, -0.11567098647356033, 0.10348308086395264, 0.02713954634964466, -0.0556119941174984, 0.0019087474793195724, 0.02486518770456314, -0.15657572448253632, -4.80044195290181e-33, 0.07452717423439026, 0.048749811947345734, 0.009021745063364506, 0.024538958445191383, 0.005989525467157364, 0.061998527497053146, -0.03358813375234604, 0.045313019305467606, -0.06671380996704102, -0.095999576151371, -0.06482259929180145, 0.04288404434919357, 0.030999066308140755, 0.03094593994319439, -0.048583704978227615, -0.026915648952126503, -0.004623372107744217, -0.0037737861275672913, -0.055088259279727936, 0.03209976479411125, -0.079015351831913, -0.02314409241080284, 0.08003466576337814, -0.01734856888651848, -0.02754056826233864, 0.06223507970571518, -0.026583699509501457, 0.00514025567099452, -0.0384938046336174, -0.048567697405815125, 0.03317715972661972, -0.03649525344371796, -0.021978458389639854, 0.014272131025791168, 0.06309033185243607, -0.08253183215856552, 0.039377473294734955, 0.03901442885398865, -0.016396697610616684, 0.031725287437438965, 0.031765472143888474, 0.12252373993396759, -0.0033992864191532135, -0.027555517852306366, -0.022479455918073654, 0.038705118000507355, -0.016553837805986404, -0.0032635454554110765, 0.03304651379585266, -0.09237709641456604, -0.016523893922567368, -0.006862291134893894, 0.02097010612487793, 0.0681176409125328, 0.01876567117869854, 0.0214386023581028, 0.013571677729487419, -0.04539647325873375, -0.031346313655376434, -0.03748534992337227, 0.032613109797239304, -0.0730314552783966, -0.05214913934469223, -0.0871783196926117, 0.03238547593355179, 0.003299723146483302, 0.07241789996623993, -0.02071683295071125, 0.04363125562667847, 0.06776369363069534, 0.0241005327552557, 0.09572896361351013, -0.05945295840501785, -0.003152852412313223, -0.025333188474178314, 0.10485345870256424, 0.006819090805947781, -0.02456021122634411, 0.018581382930278778, -0.011665082536637783, -0.060288526117801666, -0.028996113687753677, -0.046968527138233185, 0.015855541452765465, -0.019152715802192688, -0.021077638491988182, -0.05259302631020546, -0.006751790642738342, 0.056385088711977005, 0.003119886852800846, -0.03659173846244812, 0.01579022780060768, -0.07536164671182632, 0.015290371142327785, -0.02565431222319603, -5.1433126202482526e-8, 0.058595847338438034, -0.10861650854349136, 0.011352893896400928, 0.04241585731506348, 0.10214703530073166, -0.103305883705616, 0.01794927753508091, 0.07126729935407639, -0.03732437267899513, 0.02789877913892269, 0.07298453152179718, -0.0010042022913694382, -0.016121184453368187, -0.06819020211696625, 0.010523568838834763, -0.03641446307301521, 0.025416860356926918, 0.03861159831285477, 0.011120759882032871, -0.03398633748292923, -0.055542875081300735, -0.03295746073126793, 0.042726971209049225, 0.03453707695007324, 0.05291985347867012, 0.009814094752073288, 0.12028403580188751, 0.044572193175554276, 0.015752172097563744, -0.02776869386434555, -0.019160132855176926, -0.0427204854786396, -0.061370525509119034, 0.007713000290095806, 0.03273480013012886, 0.024235079064965248, -0.062008000910282135, 0.012976630590856075, 0.018017422407865524, 0.03847004100680351, 0.021095911040902138, -0.004055061377584934, 0.024979062378406525, 0.06893312186002731, 0.012942438945174217, 0.04870050027966499, -0.045955732464790344, 0.043687596917152405, -0.009372785687446594, -0.05522819235920906, 0.009886479936540127, -0.04979110136628151, -0.0034525084774941206, 0.09291166812181473, -0.020483026280999184, -0.041968755424022675, 0.026380611583590508, -0.0014656266430392861, 0.020835550501942635, -0.013653073459863663, 0.04692050814628601, -0.04626009985804558, -0.026291046291589737, 0.03278510645031929 ]
0.160825
{{< feature-state for\_k8s\_version="v1.14" state="stable" >}} [Pods](/docs/concepts/workloads/pods/) can have \_priority\_. Priority indicates the importance of a Pod relative to other Pods. If a Pod cannot be scheduled, the scheduler tries to preempt (evict) lower priority Pods to make scheduling of the pending Pod possible. {{< warning >}} In a cluster where not all users are trusted, a malicious user could create Pods at the highest possible priorities, causing other Pods to be evicted/not get scheduled. An administrator can use ResourceQuota to prevent users from creating pods at high priorities. See [limit Priority Class consumption by default](/docs/concepts/policy/resource-quotas/#limit-priority-class-consumption-by-default) for details. {{< /warning >}} ## How to use priority and preemption To use priority and preemption: 1. Add one or more [PriorityClasses](#priorityclass). 1. Create Pods with[`priorityClassName`](#pod-priority) set to one of the added PriorityClasses. Of course you do not need to create the Pods directly; normally you would add `priorityClassName` to the Pod template of a collection object like a Deployment. Keep reading for more information about these steps. {{< note >}} Kubernetes already ships with two PriorityClasses: `system-cluster-critical` and `system-node-critical`. These are common classes and are used to [ensure that critical components are always scheduled first](/docs/tasks/administer-cluster/guaranteed-scheduling-critical-addon-pods/). {{< /note >}} ## PriorityClass A PriorityClass is a non-namespaced object that defines a mapping from a priority class name to the integer value of the priority. The name is specified in the `name` field of the PriorityClass object's metadata. The value is specified in the required `value` field. The higher the value, the higher the priority. The name of a PriorityClass object must be a valid [DNS subdomain name](/docs/concepts/overview/working-with-objects/names#dns-subdomain-names), and it cannot be prefixed with `system-`. A PriorityClass object can have any 32-bit integer value smaller than or equal to 1 billion. This means that the range of values for a PriorityClass object is from -2147483648 to 1000000000 inclusive. Larger numbers are reserved for built-in PriorityClasses that represent critical system Pods. A cluster admin should create one PriorityClass object for each such mapping that they want. PriorityClass also has two optional fields: `globalDefault` and `description`. The `globalDefault` field indicates that the value of this PriorityClass should be used for Pods without a `priorityClassName`. Only one PriorityClass with `globalDefault` set to true can exist in the system. If there is no PriorityClass with `globalDefault` set, the priority of Pods with no `priorityClassName` is zero. The `description` field is an arbitrary string. It is meant to tell users of the cluster when they should use this PriorityClass. ### Notes about PodPriority and existing clusters - If you upgrade an existing cluster without this feature, the priority of your existing Pods is effectively zero. - Addition of a PriorityClass with `globalDefault` set to `true` does not change the priorities of existing Pods. The value of such a PriorityClass is used only for Pods created after the PriorityClass is added. - If you delete a PriorityClass, existing Pods that use the name of the deleted PriorityClass remain unchanged, but you cannot create more Pods that use the name of the deleted PriorityClass. ### Example PriorityClass ```yaml apiVersion: scheduling.k8s.io/v1 kind: PriorityClass metadata: name: high-priority value: 1000000 globalDefault: false description: "This priority class should be used for XYZ service pods only." ``` ## Non-preempting PriorityClass {#non-preempting-priority-class} {{< feature-state for\_k8s\_version="v1.24" state="stable" >}} Pods with `preemptionPolicy: Never` will be placed in the scheduling queue ahead of lower-priority pods, but they cannot preempt other pods. A non-preempting pod waiting to be scheduled will stay in the scheduling queue, until sufficient resources are free, and it can be scheduled. Non-preempting pods, like other pods, are subject to scheduler back-off. This means that if the scheduler tries these
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/pod-priority-preemption.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/pod-priority-preemption.md
[ -0.014115174300968647, 0.059038978070020676, 0.0386488251388073, 0.06571336835622787, 0.018825948238372803, -0.014583761803805828, 0.024451563134789467, 0.011893718503415585, -0.008081633597612381, 0.048888228833675385, -0.006755503825843334, -0.010502743534743786, 0.004103056620806456, 0.03753335401415825, 0.0054646506905555725, -0.009827766567468643, 0.06684897094964981, -0.05859999731183052, -0.08300763368606567, -0.01026692520827055, 0.07712925225496292, -0.027850991114974022, -0.006944870110601187, 0.07833414524793625, -0.04171522706747055, -0.04173366352915764, -0.046276241540908813, 0.0003632171719800681, 0.04328417778015137, 0.0365055613219738, -0.05573899298906326, -0.04948341101408005, 0.09924372285604477, -0.011842886917293072, 0.03991425409913063, 0.06951319426298141, 0.01383309718221426, -0.10007977485656738, -0.030971381813287735, -0.043635956943035126, 0.0037078363820910454, -0.04428514838218689, -0.1338261514902115, 0.0043029882945120335, -0.10360343009233475, 0.0009039135766215622, -0.01402937900274992, -0.037984248250722885, -0.04529185965657234, -0.042216140776872635, 0.007933591492474079, -0.08001501113176346, 0.08440352976322174, 0.003487895242869854, 0.0627530887722969, 0.06961651146411896, 0.0700717642903328, 0.029345596209168434, 0.0932273119688034, -0.024837501347064972, -0.031839869916439056, -0.09526969492435455, 0.0014265686040744185, -0.011222373694181442, 0.05390774831175804, -0.008205695077776909, -0.040748510509729385, 0.07171828299760818, 0.01742922142148018, 0.04868782311677933, 0.07469779998064041, 0.024206606671214104, 0.011319573037326336, -0.01612127013504505, 0.02951553463935852, 0.033106740564107895, -0.013244745321571827, 0.02618199586868286, 0.007960760965943336, -0.06154831126332283, -0.05134053900837898, -0.026440970599651337, 0.011598069220781326, -0.03840569406747818, -0.03586777299642563, 0.018488740548491478, 0.01655876450240612, -0.041181787848472595, 0.0870780274271965, 0.03551708906888962, 0.040384624153375626, 0.016548579558730125, 0.09242291748523712, -0.06144704669713974, 0.03353438898921013, 0.0343828909099102, -0.002920496044680476, -0.030099889263510704, -0.04932902008295059, 0.054110750555992126, -0.001228170352987945, -0.03617067635059357, -0.0019044912187382579, 0.010397927835583687, 0.12484059482812881, -0.05855810269713402, -0.06485742330551147, -0.05541205778717995, -0.021827824413776398, 0.050552722066640854, 0.04301237314939499, 0.0360594242811203, 0.0051461486145854, 0.00510466517880559, -0.046515196561813354, 0.08154340088367462, 0.029413223266601562, -0.009375710040330887, 0.009624282829463482, 0.03102779947221279, 0.061403993517160416, -0.09133686870336533, 0.04791871830821037, -0.05672620236873627, 0.008965739980340004, 0.010850243270397186, -0.012925799004733562, 4.552491256063018e-33, 0.049683161079883575, -0.10486407577991486, -0.0496990866959095, -0.09555515646934509, 0.022378094494342804, -0.09702622890472412, -0.018052345141768456, 0.014427225105464458, -0.012193558737635612, -0.0798470675945282, -0.026095567271113396, 0.04887283220887184, 0.03840772062540054, -0.01338689960539341, 0.02395492233335972, -0.08002844452857971, -0.004255023784935474, 0.10493674129247665, 0.138940691947937, -0.01258295401930809, 0.05899737775325775, -0.07821953296661377, -0.08578938990831375, -0.04761415347456932, -0.004722055979073048, 0.00293240905739367, 0.013856147415935993, -0.14163704216480255, 0.03905859217047691, 0.04503114894032478, -0.03747548535466194, 0.00659178476780653, 0.012645771726965904, 0.06564208120107651, -0.11903565376996994, 0.014790231361985207, -0.05966457352042198, 0.019327107816934586, -0.04512039199471474, -0.07509153336286545, 0.06062917783856392, -0.010160786099731922, -0.019346769899129868, -0.015775341540575027, 0.0689307376742363, -0.035672057420015335, 0.05341707542538643, -0.06477874517440796, 0.00008541972056264058, 0.04442555829882622, -0.018038256093859673, -0.025090886279940605, 0.04586261138319969, -0.04893602058291435, -0.025309359654784203, -0.09254220128059387, 0.05925954878330231, -0.034445784986019135, 0.02172623760998249, -0.030101347714662552, -0.02581063285470009, 0.01259362418204546, 0.004944907501339912, -0.009121338836848736, -0.005126298870891333, -0.009763048961758614, -0.01722862757742405, -0.004708464723080397, 0.032675065100193024, 0.04888148978352547, -0.05402757599949837, 0.036751341074705124, -0.01935613341629505, -0.013288401998579502, -0.05164380744099617, -0.020597536116838455, 0.05850817263126373, 0.04284048452973366, -0.1296209841966629, -0.012724476866424084, -0.016557930037379265, -0.03200303390622139, -0.014988318085670471, 0.03290894255042076, -0.050908371806144714, -0.045929018408060074, -0.005575614515691996, 0.0640929564833641, -0.08014112710952759, 0.017522184178233147, 0.030910901725292206, -0.004577329382300377, -0.024195151403546333, 0.061983540654182434, -0.07898173481225967, -4.398131582726774e-33, 0.07220152020454407, -0.015140236355364323, 0.0775471106171608, 0.045819178223609924, 0.012649234384298325, 0.009450518526136875, -0.054380323737859726, -0.02413116581737995, -0.02212858386337757, -0.021682009100914, -0.09079880267381668, -0.03458546847105026, 0.091301329433918, 0.011205880902707577, -0.03596978634595871, 0.03016311675310135, -0.051422394812107086, -0.022584717720746994, -0.009496858343482018, 0.006756313145160675, -0.01649155654013157, 0.04513593018054962, -0.028439030051231384, 0.09344244003295898, 0.009167680516839027, -0.015071285888552666, -0.024654800072312355, -0.0032487488351762295, 0.0027711279690265656, -0.022051779553294182, -0.02257625386118889, -0.10673225671052933, -0.031000876799225807, 0.007163046393543482, 0.005814965348690748, -0.058780986815690994, -0.08195971697568893, 0.07273007929325104, -0.013866228982806206, 0.06471198797225952, 0.14161810278892517, -0.006729591637849808, -0.09485591948032379, -0.018331563100218773, -0.05532953515648842, 0.035825446248054504, 0.03473781794309616, -0.033886250108480453, -0.051914285868406296, -0.06989789009094238, 0.021812956780195236, -0.032504744827747345, -0.004234396852552891, 0.10304168611764908, 0.008538099937140942, -0.023429937660694122, 0.07491561770439148, -0.012299319729208946, 0.010420924983918667, 0.0783274844288826, 0.08616410195827484, -0.05634147301316261, 0.023953566327691078, -0.006137909833341837, -0.031428854912519455, -0.06756488978862762, -0.009519063867628574, 0.0179307721555233, -0.0090915746986866, 0.018536703661084175, 0.05480318143963814, 0.0208986047655344, 0.012630567885935307, 0.04811210185289383, -0.05336010083556175, -0.03261011466383934, 0.05291951447725296, -0.02335658110678196, 0.030848059803247452, 0.006327219773083925, -0.059895019978284836, 0.11341199278831482, 0.0024074178654700518, 0.04647615924477577, -0.023607376962900162, 0.05957210063934326, 0.07488429546356201, 0.03744366765022278, 0.04252263903617859, 0.08990363031625748, -0.040127791464328766, 0.01307656615972519, -0.07321256399154663, 0.1262311190366745, -0.023662954568862915, -5.326139174144373e-8, 0.07408096641302109, -0.04043669253587723, 0.04029778391122818, 0.07691681385040283, 0.10532131791114807, -0.08212029933929443, 0.023047173395752907, 0.02206297032535076, -0.011853641830384731, 0.08661703765392303, 0.06068459898233414, 0.026436053216457367, -0.035850267857313156, -0.03987117484211922, 0.054764602333307266, 0.001077339518815279, 0.012795696966350079, 0.05168933421373367, -0.07419012486934662, -0.06298833340406418, -0.03838111087679863, -0.059182632714509964, 0.0040262844413518906, -0.03244338929653168, 0.026578357443213463, 0.03061714954674244, 0.06452331691980362, 0.059149958193302155, 0.06512150913476944, 0.01971338875591755, -0.09974533319473267, 0.012117890641093254, -0.05683033913373947, -0.01103696133941412, -0.06662670522928238, 0.07718786597251892, -0.14233532547950745, 0.010839897207915783, 0.001625729608349502, 0.04268366098403931, 0.017945237457752228, -0.05840430408716202, -0.03810039162635803, 0.010956335812807083, 0.00230893911793828, 0.040922753512859344, -0.08544137328863144, 0.02384108118712902, 0.02240796387195587, 0.018720317631959915, -0.02986501343548298, -0.045544106513261795, 0.04500473290681839, 0.1077352911233902, -0.05882374569773674, 0.003120857523754239, -0.0004203478165436536, -0.055365800857543945, 0.005940383765846491, -0.04146457090973854, 0.11853308230638504, 0.02798151969909668, 0.015838708728551865, -0.004706206731498241 ]
0.173812
of lower-priority pods, but they cannot preempt other pods. A non-preempting pod waiting to be scheduled will stay in the scheduling queue, until sufficient resources are free, and it can be scheduled. Non-preempting pods, like other pods, are subject to scheduler back-off. This means that if the scheduler tries these pods and they cannot be scheduled, they will be retried with lower frequency, allowing other pods with lower priority to be scheduled before them. Non-preempting pods may still be preempted by other, high-priority pods. `preemptionPolicy` defaults to `PreemptLowerPriority`, which will allow pods of that PriorityClass to preempt lower-priority pods (as is existing default behavior). If `preemptionPolicy` is set to `Never`, pods in that PriorityClass will be non-preempting. An example use case is for data science workloads. A user may submit a job that they want to be prioritized above other workloads, but do not wish to discard existing work by preempting running pods. The high priority job with `preemptionPolicy: Never` will be scheduled ahead of other queued pods, as soon as sufficient cluster resources "naturally" become free. ### Example Non-preempting PriorityClass ```yaml apiVersion: scheduling.k8s.io/v1 kind: PriorityClass metadata: name: high-priority-nonpreempting value: 1000000 preemptionPolicy: Never globalDefault: false description: "This priority class will not cause other pods to be preempted." ``` ## Pod priority After you have one or more PriorityClasses, you can create Pods that specify one of those PriorityClass names in their specifications. The priority admission controller uses the `priorityClassName` field and populates the integer value of the priority. If the priority class is not found, the Pod is rejected. The following YAML is an example of a Pod configuration that uses the PriorityClass created in the preceding example. The priority admission controller checks the specification and resolves the priority of the Pod to 1000000. ```yaml apiVersion: v1 kind: Pod metadata: name: nginx labels: env: test spec: containers: - name: nginx image: nginx imagePullPolicy: IfNotPresent priorityClassName: high-priority ``` ### Effect of Pod priority on scheduling order When Pod priority is enabled, the scheduler orders pending Pods by their priority and a pending Pod is placed ahead of other pending Pods with lower priority in the scheduling queue. As a result, the higher priority Pod may be scheduled sooner than Pods with lower priority if its scheduling requirements are met. If such Pod cannot be scheduled, the scheduler will continue and try to schedule other lower priority Pods. ## Preemption When Pods are created, they go to a queue and wait to be scheduled. The scheduler picks a Pod from the queue and tries to schedule it on a Node. If no Node is found that satisfies all the specified requirements of the Pod, preemption logic is triggered for the pending Pod. Let's call the pending Pod P. Preemption logic tries to find a Node where removal of one or more Pods with lower priority than P would enable P to be scheduled on that Node. If such a Node is found, one or more lower priority Pods get evicted from the Node. After the Pods are gone, P can be scheduled on the Node. ### User exposed information When Pod P preempts one or more Pods on Node N, `nominatedNodeName` field of Pod P's status is set to the name of Node N. This field helps the scheduler track resources reserved for Pod P and also gives users information about preemptions in their clusters. Please note that Pod P is not necessarily scheduled to the "nominated Node". The scheduler always tries the "nominated Node" before iterating over any other nodes. After victim Pods are preempted, they get their graceful termination period.
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/pod-priority-preemption.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/pod-priority-preemption.md
[ -0.017460854724049568, -0.029861118644475937, 0.053943853825330734, 0.042131926864385605, -0.010786715894937515, -0.011634650640189648, -0.05412844195961952, -0.02523116208612919, 0.04394618049263954, 0.05963916704058647, 0.02583177387714386, 0.0162755586206913, -0.02000593952834606, -0.0251825712621212, 0.038827694952487946, -0.039289794862270355, 0.13368083536624908, -0.059081412851810455, -0.09612107276916504, 0.013990486972033978, 0.04615063592791557, -0.05974000692367554, -0.019871026277542114, 0.0366356298327446, -0.03787429258227348, -0.0571201853454113, -0.06481080502271652, 0.00936349667608738, 0.06429325044155121, 0.04246902838349342, -0.10171719640493393, -0.005237013567239046, 0.09901086241006851, 0.028363700956106186, -0.012662358582019806, 0.05986090376973152, -0.0017732311971485615, -0.06688470393419266, -0.0005319514311850071, 0.021002288907766342, -0.053711168467998505, -0.05317137390375137, -0.14685125648975372, 0.029250601306557655, -0.050618816167116165, -0.0012115590507164598, -0.009117797017097473, -0.06027967110276222, -0.09012570232152939, -0.05187398940324783, -0.023183228448033333, -0.06639400869607925, 0.042864587157964706, 0.05800507217645645, 0.06650284677743912, 0.11100242286920547, 0.0377480648458004, 0.013952023349702358, 0.08088427037000656, -0.04671814665198326, -0.059596847742795944, -0.1004716232419014, -0.04345269873738289, -0.0212034210562706, 0.07660193741321564, 0.0005890317261219025, -0.016177432611584663, 0.03362416848540306, 0.07281822711229324, 0.033370908349752426, 0.0794081762433052, 0.012796787545084953, 0.055155348032712936, 0.02097957208752632, 0.0314580500125885, 0.009046409279108047, 0.007195221725851297, 0.07513856142759323, -0.03836348280310631, -0.07013875246047974, 0.008011276833713055, -0.004349768627434969, -0.010429552756249905, -0.02812821790575981, -0.018557365983724594, -0.014709969982504845, -0.027322011068463326, -0.02388087473809719, 0.05916459485888481, 0.02800465188920498, 0.024411411955952644, 0.024515751749277115, 0.033897917717695236, -0.06114429607987404, -0.013539415784180164, -0.02203630842268467, 0.056144099682569504, -0.0005869193118996918, -0.024513985961675644, 0.0005781236104667187, 0.04654743894934654, -0.05638720467686653, -0.03326691314578056, 0.046396780759096146, 0.08059446513652802, -0.09264390170574188, -0.07280959188938141, -0.049891117960214615, 0.019762499257922173, 0.08827490359544754, 0.03994563966989517, -0.01251944713294506, 0.025606200098991394, 0.00463126040995121, -0.0857749655842781, 0.06767968833446503, 0.005189694929867983, -0.029546132311224937, 0.03897882625460625, -0.03977150842547417, -0.003696470521390438, -0.05714518576860428, 0.10281509160995483, -0.07689458876848221, -0.007133981212973595, 0.001161242020316422, -0.024047555401921272, 5.925270293151749e-33, 0.04862460494041443, -0.1425752192735672, -0.025426222011446953, -0.16588689386844635, -0.004998348653316498, -0.0706850066781044, -0.02970193140208721, 0.003259093966335058, 0.04103817790746689, -0.020304357632994652, -0.03482552617788315, 0.056250255554914474, -0.008833447471261024, 0.03948841989040375, 0.02036219649016857, -0.05505555868148804, -0.03888392448425293, 0.022756479680538177, 0.0868108943104744, -0.011502629145979881, 0.025708485394716263, -0.023926489055156708, -0.08076882362365723, -0.019238395616412163, 0.010711920447647572, -0.005128092598170042, -0.00024291752197314054, -0.18281690776348114, -0.01062272023409605, 0.06912778317928314, -0.06997451931238174, 0.0016275461530312896, 0.0279436893761158, 0.030338160693645477, -0.10372599214315414, 0.0466524139046669, -0.0760950967669487, 0.008392325602471828, -0.008654134348034859, -0.05035845562815666, 0.020608656108379364, 0.015234449878334999, 0.016066400334239006, -0.022389337420463562, 0.07348451763391495, -0.1212131530046463, 0.06497781723737717, -0.05578221380710602, -0.02751793898642063, 0.02982824668288231, 0.03976251557469368, -0.013123929500579834, 0.046913422644138336, -0.05120095983147621, -0.04349404200911522, -0.017313437536358833, 0.09567909687757492, -0.013823254965245724, -0.011161478236317635, 0.04338989406824112, -0.05087911710143089, -0.0007433738792315125, -0.027037108317017555, 0.018280096352100372, 0.01720510981976986, 0.025897830724716187, -0.027677880600094795, -0.031414393335580826, 0.04218042641878128, 0.021118097007274628, -0.02046433463692665, 0.021581897512078285, -0.04491019994020462, -0.01188763976097107, 0.015297827310860157, 0.0489053875207901, 0.05924173444509506, 0.032376136630773544, -0.08303063362836838, -0.028877001255750656, 0.004026876762509346, 0.03721699118614197, -0.04436049982905388, 0.009698519483208656, -0.04814448952674866, 0.0054036458022892475, 0.049127038568258286, 0.04615858569741249, -0.037669651210308075, -0.008390235714614391, 0.06513537466526031, 0.0024325447157025337, -0.07939599454402924, 0.08020928502082825, -0.025210410356521606, -5.798424534464439e-33, 0.0708186998963356, -0.033901240676641464, 0.007057091221213341, 0.07151633501052856, -0.006216203328222036, 0.06560280174016953, -0.03417731821537018, -0.1140429824590683, 0.01039068028330803, -0.05784061551094055, -0.05963141843676567, -0.05694255605340004, 0.06020445004105568, 0.038484059274196625, -0.011688691563904285, -0.008932231925427914, -0.07108120620250702, -0.03268783539533615, -0.013311969116330147, 0.012312645092606544, 0.02777816914021969, 0.014320834539830685, -0.03843340650200844, 0.08445393294095993, -0.0155381103977561, -0.03842003270983696, -0.05936046317219734, 0.027513353154063225, 0.021911660209298134, -0.024901749566197395, -0.009130032733082771, -0.08345720171928406, 0.01306849904358387, -0.04239216819405556, 0.025277527049183846, -0.033691179007291794, -0.09291581809520721, 0.09364601969718933, -0.03070225939154625, 0.055732086300849915, 0.08821811527013779, -0.004366385750472546, -0.04588824138045311, 0.005296176299452782, -0.047209903597831726, 0.03251828998327255, -0.030063463374972343, -0.03220734745264053, 0.0014786339597776532, -0.041441190987825394, -0.0073558310978114605, -0.010405643843114376, -0.002265740418806672, 0.10334726423025131, 0.006526719778776169, -0.023263441398739815, 0.00746619887650013, -0.01396710891276598, -0.0034483897034078836, 0.05482092127203941, 0.10822358727455139, -0.04592109099030495, 0.06645414978265762, -0.058885809034109116, 0.0125160813331604, -0.010722154751420021, 0.021333560347557068, 0.029842277988791466, 0.028659896925091743, -0.023027239367365837, 0.06362193822860718, -0.021738557144999504, 0.022684819996356964, 0.004181521944701672, -0.025712456554174423, -0.008491935208439827, 0.023978756740689278, 0.00552993081510067, 0.04180670902132988, 0.004950061906129122, -0.06619420647621155, 0.13794471323490143, -0.017757436260581017, 0.08586644381284714, -0.0690850093960762, 0.07012788206338882, 0.08822313696146011, -0.0052392431534826756, 0.05519981309771538, 0.02445978857576847, 0.03442701697349548, 0.035867974162101746, 0.008990085683763027, 0.0879988893866539, -0.017318524420261383, -4.808174836057333e-8, 0.08433209359645844, -0.04623771831393242, 0.0626436099410057, 0.09158660471439362, 0.09320387244224548, -0.0952339619398117, 0.03209960460662842, -0.000534099293872714, -0.0299603883177042, 0.06826603412628174, 0.03227169066667557, 0.004941175691783428, -0.022572005167603493, -0.09336086362600327, 0.05606231093406677, 0.034213826060295105, 0.07265763729810715, 0.0005771398427896202, -0.04197756573557854, -0.09698934108018875, -0.0615990124642849, -0.023420587182044983, -0.0014983246801421046, -0.05808502808213234, -0.0007170781027525663, 0.03400074318051338, 0.12913978099822998, 0.009484556503593922, 0.04571917653083801, 0.037922199815511703, -0.08431380987167358, 0.01854811981320381, -0.05642616003751755, -0.02206803672015667, -0.055625274777412415, 0.01954624429345131, -0.09396512061357498, -0.007677457761019468, -0.05144679546356201, -0.014122601598501205, 0.011671061627566814, -0.06551309674978256, -0.06462917476892471, 0.006378318648785353, -0.014539767056703568, 0.028932729735970497, -0.059188004583120346, -0.00973646529018879, 0.004914671648293734, 0.013871307484805584, -0.02407410554587841, -0.0195429977029562, 0.05742306262254715, 0.06788313388824463, -0.05024842917919159, 0.05643845349550247, 0.026156103238463402, -0.054199133068323135, -0.015453997999429703, -0.012332483194768429, 0.09786360710859299, 0.040907882153987885, 0.04418569430708885, 0.024904895573854446 ]
0.127842
for Pod P and also gives users information about preemptions in their clusters. Please note that Pod P is not necessarily scheduled to the "nominated Node". The scheduler always tries the "nominated Node" before iterating over any other nodes. After victim Pods are preempted, they get their graceful termination period. If another node becomes available while scheduler is waiting for the victim Pods to terminate, scheduler may use the other node to schedule Pod P. As a result `nominatedNodeName` and `nodeName` of Pod spec are not always the same. Also, if the scheduler preempts Pods on Node N, but then a higher priority Pod than Pod P arrives, the scheduler may give Node N to the new higher priority Pod. In such a case, scheduler clears `nominatedNodeName` of Pod P. By doing this, scheduler makes Pod P eligible to preempt Pods on another Node. ### Limitations of preemption #### Graceful termination of preemption victims When Pods are preempted, the victims get their [graceful termination period](/docs/concepts/workloads/pods/pod-lifecycle/#pod-termination). They have that much time to finish their work and exit. If they don't, they are killed. This graceful termination period creates a time gap between the point that the scheduler preempts Pods and the time when the pending Pod (P) can be scheduled on the Node (N). In the meantime, the scheduler keeps scheduling other pending Pods. As victims exit or get terminated, the scheduler tries to schedule Pods in the pending queue. Therefore, there is usually a time gap between the point that scheduler preempts victims and the time that Pod P is scheduled. In order to minimize this gap, one can set graceful termination period of lower priority Pods to zero or a small number. #### PodDisruptionBudget is supported, but not guaranteed A [PodDisruptionBudget](/docs/concepts/workloads/pods/disruptions/) (PDB) allows application owners to limit the number of Pods of a replicated application that are down simultaneously from voluntary disruptions. Kubernetes supports PDB when preempting Pods, but respecting PDB is best effort. The scheduler tries to find victims whose PDB are not violated by preemption, but if no such victims are found, preemption will still happen, and lower priority Pods will be removed despite their PDBs being violated. #### Inter-Pod affinity on lower-priority Pods A Node is considered for preemption only when the answer to this question is yes: "If all the Pods with lower priority than the pending Pod are removed from the Node, can the pending Pod be scheduled on the Node?" {{< note >}} Preemption does not necessarily remove all lower-priority Pods. If the pending Pod can be scheduled by removing fewer than all lower-priority Pods, then only a portion of the lower-priority Pods are removed. Even so, the answer to the preceding question must be yes. If the answer is no, the Node is not considered for preemption. {{< /note >}} If a pending Pod has inter-pod {{< glossary\_tooltip text="affinity" term\_id="affinity" >}} to one or more of the lower-priority Pods on the Node, the inter-Pod affinity rule cannot be satisfied in the absence of those lower-priority Pods. In this case, the scheduler does not preempt any Pods on the Node. Instead, it looks for another Node. The scheduler might find a suitable Node or it might not. There is no guarantee that the pending Pod can be scheduled. Our recommended solution for this problem is to create inter-Pod affinity only towards equal or higher priority Pods. #### Cross node preemption Suppose a Node N is being considered for preemption so that a pending Pod P can be scheduled on N. P might become feasible on N only if a Pod on another Node
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/pod-priority-preemption.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/pod-priority-preemption.md
[ 0.007990926504135132, 0.015216536819934845, 0.06327518820762634, 0.029346339404582977, 0.07993307709693909, 0.014730358496308327, -0.021316897124052048, -0.032227784395217896, 0.05524783208966255, 0.044203486293554306, -0.011459064669907093, 0.05979900062084198, -0.03180411458015442, -0.018307717517018318, 0.0041864481754601, -0.016222018748521805, 0.04799812659621239, -0.009380622766911983, -0.007986070588231087, -0.03303854912519455, 0.0439460463821888, -0.020011570304632187, 0.0027312012389302254, 0.0247883852571249, -0.08336291462182999, -0.0036368032451719046, -0.05954963341355324, 0.004223390948027372, 0.0629127100110054, 0.0024393207859247923, -0.041846755892038345, -0.020918112248182297, 0.10313960909843445, 0.027490850538015366, -0.02774721570312977, 0.10437076538801193, -0.03682148829102516, -0.07665710896253586, -0.02632715180516243, 0.005092049948871136, 0.09317509084939957, -0.06691396981477737, -0.11649146676063538, -0.012281632050871849, -0.03114776499569416, 0.016574600711464882, -0.09891502559185028, 0.01426638476550579, -0.10261736065149307, -0.021878622472286224, -0.009041287936270237, -0.08140438795089722, 0.05662878230214119, 0.07980107516050339, 0.046398475766181946, 0.12887215614318848, 0.03961000591516495, -0.02228091098368168, 0.08236973732709885, -0.0007564221741631627, -0.0093793710693717, -0.04183284565806389, -0.054841846227645874, -0.033657241612672806, 0.13331347703933716, -0.0003353590436745435, 0.03580138459801674, -0.0021365254651755095, 0.07288428395986557, -0.0009944610064849257, 0.1000894159078598, 0.012276260182261467, 0.022125568240880966, 0.008205758407711983, -0.03373624011874199, 0.058418869972229004, -0.01629493199288845, 0.08419530093669891, -0.064248226583004, -0.03565093129873276, -0.048250194638967514, 0.03272337093949318, 0.01378718577325344, -0.05104175955057144, -0.03209645673632622, 0.0178104005753994, -0.033997975289821625, -0.03999584540724754, 0.04600396007299423, 0.048990026116371155, -0.03082200512290001, 0.0026360652409493923, 0.045471545308828354, -0.029096683487296104, 0.003248839871957898, 0.01420330349355936, -0.015349388122558594, 0.004845013376325369, 0.05557340011000633, 0.017712930217385292, 0.01858094520866871, -0.019837945699691772, -0.09716568142175674, -0.04777836427092552, 0.02787250652909279, -0.04230344295501709, -0.12016568332910538, -0.06971818208694458, 0.0020865651313215494, 0.06440115720033646, 0.017351476475596428, 0.013356005772948265, 0.033329568803310394, 0.034598458558321, -0.04066267982125282, 0.06315664947032928, -0.02123751863837242, 0.04630699008703232, 0.08727723360061646, 0.0005183747853152454, 0.0508580319583416, -0.07915127277374268, 0.06328762322664261, -0.021432463079690933, -0.03963391110301018, -0.04435822740197182, -0.006319575943052769, 6.360569810256658e-33, 0.001496155746281147, -0.15230733156204224, -0.0029904956463724375, -0.07800450176000595, 0.039820704609155655, -0.03868609666824341, -0.04537070170044899, -0.006171593442559242, -0.0005994272069074214, -0.08758676052093506, -0.06760767102241516, -0.01192149706184864, 0.03090798668563366, -0.04247477278113365, -0.024991808459162712, -0.085394948720932, 0.029405860230326653, 0.05821359157562256, 0.035681966692209244, -0.0026901743840426207, 0.0654221698641777, -0.017686855047941208, -0.08619195222854614, 0.018346071243286133, 0.0037910903338342905, -0.0029171034693717957, -0.031081048771739006, -0.11303530633449554, 0.015912728384137154, 0.0321013443171978, -0.02345898374915123, -0.004503462929278612, 0.07663202285766602, 0.07918376475572586, -0.12249798327684402, 0.021594705060124397, -0.024462344124913216, -0.009747286327183247, -0.06358928978443146, -0.09579867869615555, -0.004366197623312473, 0.017618853598833084, 0.003081120550632477, 0.0015478217974305153, 0.033826809376478195, -0.1232077032327652, 0.0005681198090314865, -0.036369044333696365, 0.02229149267077446, 0.039108652621507645, 0.0697140023112297, -0.06415899097919464, 0.05617910251021385, -0.07709664106369019, -0.037153106182813644, 0.04919591173529625, 0.04866015911102295, -0.01445237547159195, -0.0191954318434, 0.04915296658873558, 0.03273063153028488, -0.0038990576285868883, -0.008407151326537132, -0.026268325746059418, -0.0005970931961201131, 0.03973885253071785, -0.03701591491699219, -0.057784274220466614, 0.07961679995059967, 0.039016243070364, -0.06908512115478516, 0.07162712514400482, -0.0026776157319545746, 0.035239141434431076, -0.043322280049324036, 0.005385150667279959, 0.022415414452552795, 0.0063530816696584225, -0.09502498060464859, 0.02749091386795044, -0.020361904054880142, 0.03540594130754471, -0.04291032627224922, 0.03889539837837219, -0.022789444774389267, -0.018853865563869476, 0.011177027598023415, -0.02521931193768978, -0.061582546681165695, 0.028993157669901848, 0.09420601278543472, -0.030280880630016327, -0.042867641896009445, 0.07890725135803223, -0.014958275482058525, -6.819540110167282e-33, 0.0497421994805336, -0.010787197388708591, 0.02052978426218033, 0.06905903667211533, 0.012298130430281162, -0.04246535524725914, -0.06853348016738892, -0.07158639281988144, -0.016221262514591217, 0.0015971974935382605, -0.08632514625787735, -0.03961171954870224, 0.061089616268873215, 0.052828993648290634, -0.006671908777207136, -0.0005591594381257892, -0.00474507687613368, -0.06380825489759445, -0.008009899407625198, 0.02243560366332531, 0.029533246532082558, 0.012375984340906143, -0.010739818215370178, -0.020289171487092972, 0.03154302388429642, -0.034472085535526276, 0.06259044259786606, 0.026809487491846085, -0.023626038804650307, -0.009047836996614933, -0.002633563010022044, -0.1567210853099823, -0.0639960765838623, 0.04523931071162224, 0.07453916221857071, -0.045145511627197266, -0.11443955451250076, 0.06175925210118294, 0.017779966816306114, 0.022896910086274147, 0.11346183717250824, -0.023890186101198196, -0.07154855877161026, -0.035165879875421524, -0.06467006355524063, 0.0004921014187857509, 0.023905888199806213, 0.047753993421792984, 0.015289313159883022, -0.07630232721567154, -0.03483525291085243, 0.002377760363742709, -0.005311191082000732, 0.10972804576158524, 0.009763479232788086, -0.0359405055642128, 0.02852850966155529, 0.027325954288244247, 0.03273633122444153, 0.010579562745988369, 0.0513373501598835, -0.046348705887794495, 0.05638556927442551, 0.062372978776693344, -0.002748677507042885, -0.10386386513710022, 0.002771086758002639, -0.026485154405236244, 0.004206656478345394, 0.015133886598050594, 0.021080108359456062, 0.05795864015817642, -0.014442726969718933, 0.038978781551122665, -0.03211753070354462, -0.006894886493682861, -0.037685658782720566, -0.03253358229994774, -0.007071155589073896, 0.014508692547678947, -0.15660786628723145, 0.08824586868286133, -0.05869942530989647, 0.040188200771808624, -0.03860803321003914, 0.0577666312456131, 0.14028792083263397, 0.08105980604887009, 0.07739121466875076, 0.07109155505895615, 0.07175484299659729, 0.015174058265984058, 0.01869772933423519, 0.026434797793626785, -0.09407133609056473, -4.8560952592424655e-8, 0.020710917189717293, -0.015774689614772797, -0.004107472021132708, 0.05839597433805466, 0.09970638900995255, -0.08958306163549423, 0.06577874720096588, 0.017454445362091064, -0.036803022027015686, 0.062275759875774384, 0.053932469338178635, 0.003562722122296691, -0.007200481370091438, -0.06251944601535797, 0.06745932996273041, -0.0016379582230001688, 0.06651125848293304, 0.0065280115231871605, -0.05111107975244522, -0.048179991543293, -0.10023210942745209, -0.053006019443273544, -0.013767869211733341, -0.02553209476172924, -0.014413333497941494, 0.024658530950546265, 0.05953461676836014, 0.06335841119289398, 0.012927253730595112, 0.007083767093718052, -0.08031114935874939, 0.018303371965885162, -0.026844142004847527, 0.0222823116928339, -0.03770655393600464, 0.03947717696428299, -0.12383920699357986, -0.005860080011188984, -0.0008004492265172303, 0.04987078905105591, 0.03889555111527443, -0.06636201590299606, -0.046300604939460754, 0.014081887900829315, 0.019319888204336166, 0.048882488161325455, -0.023447763174772263, 0.017354747280478477, -0.0514453761279583, 0.022761067375540733, -0.04081469029188156, -0.09801619499921799, 0.0021845733281224966, 0.0019620403181761503, 0.02903590351343155, -0.004754993133246899, 0.034821394830942154, -0.06282120198011398, 0.054388877004384995, 0.004928152542561293, -0.0006458434509113431, 0.04070933535695076, 0.029871035367250443, -0.02648206427693367 ]
0.162495
problem is to create inter-Pod affinity only towards equal or higher priority Pods. #### Cross node preemption Suppose a Node N is being considered for preemption so that a pending Pod P can be scheduled on N. P might become feasible on N only if a Pod on another Node is preempted. Here's an example: \* Pod P is being considered for Node N. \* Pod Q is running on another Node in the same Zone as Node N. \* Pod P has Zone-wide anti-affinity with Pod Q (`topologyKey: topology.kubernetes.io/zone`). \* There are no other cases of anti-affinity between Pod P and other Pods in the Zone. \* In order to schedule Pod P on Node N, Pod Q can be preempted, but scheduler does not perform cross-node preemption. So, Pod P will be deemed unschedulable on Node N. If Pod Q were removed from its Node, the Pod anti-affinity violation would be gone, and Pod P could possibly be scheduled on Node N. We may consider adding cross Node preemption in future versions if there is enough demand and if we find an algorithm with reasonable performance. ## Troubleshooting Pod priority and preemption can have unwanted side effects. Here are some examples of potential problems and ways to deal with them. ### Pods are preempted unnecessarily Preemption removes existing Pods from a cluster under resource pressure to make room for higher priority pending Pods. If you give high priorities to certain Pods by mistake, these unintentionally high priority Pods may cause preemption in your cluster. Pod priority is specified by setting the `priorityClassName` field in the Pod's specification. The integer value for priority is then resolved and populated to the `priority` field of `podSpec`. To address the problem, you can change the `priorityClassName` for those Pods to use lower priority classes, or leave that field empty. An empty `priorityClassName` is resolved to zero by default. When a Pod is preempted, there will be events recorded for the preempted Pod. Preemption should happen only when a cluster does not have enough resources for a Pod. In such cases, preemption happens only when the priority of the pending Pod (preemptor) is higher than the victim Pods. Preemption must not happen when there is no pending Pod, or when the pending Pods have equal or lower priority than the victims. If preemption happens in such scenarios, please file an issue. ### Pods are preempted, but the preemptor is not scheduled When pods are preempted, they receive their requested graceful termination period, which is by default 30 seconds. If the victim Pods do not terminate within this period, they are forcibly terminated. Once all the victims go away, the preemptor Pod can be scheduled. While the preemptor Pod is waiting for the victims to go away, a higher priority Pod may be created that fits on the same Node. In this case, the scheduler will schedule the higher priority Pod instead of the preemptor. This is expected behavior: the Pod with the higher priority should take the place of a Pod with a lower priority. ### Higher priority Pods are preempted before lower priority pods The scheduler tries to find nodes that can run a pending Pod. If no node is found, the scheduler tries to remove Pods with lower priority from an arbitrary node in order to make room for the pending pod. If a node with low priority Pods is not feasible to run the pending Pod, the scheduler may choose another node with higher priority Pods (compared to the Pods on the other node) for preemption. The victims must still
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/pod-priority-preemption.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/pod-priority-preemption.md
[ -0.014793242327868938, 0.00708434171974659, 0.04396221041679382, 0.017635319381952286, 0.022368306294083595, 0.0017386105610057712, 0.010597252286970615, -0.023498358204960823, -0.0012024809839203954, 0.0503927581012249, -0.017210621386766434, -0.012489096261560917, -0.03236638009548187, -0.019839128479361534, 0.04136162996292114, 0.029354840517044067, 0.10213872790336609, -0.025232834741473198, -0.02791760489344597, -0.001761418068781495, 0.02453511580824852, -0.03780580312013626, 0.0033508576452732086, 0.003525285981595516, -0.08484455943107605, -0.041899897158145905, -0.06292892247438431, 0.004341014660894871, 0.0763944461941719, -0.015731215476989746, -0.02044680155813694, 0.03824380785226822, 0.07176242023706436, 0.024062346667051315, 0.006230833008885384, 0.07698246836662292, -0.06123531982302666, -0.09048864245414734, -0.056498169898986816, 0.0354316383600235, 0.057705894112586975, -0.039165716618299484, -0.09460337460041046, -0.039911478757858276, -0.0009387630852870643, 0.020465433597564697, -0.07779257744550705, 0.033253490924835205, -0.07435954362154007, -0.0758778303861618, -0.0020032457541674376, -0.08985362201929092, 0.031557757407426834, 0.05411394685506821, 0.05406930670142174, 0.11874926090240479, 0.014584975317120552, 0.01490029226988554, 0.04015890136361122, -0.005160151980817318, 0.03439140319824219, -0.0366884246468544, 0.0170720424503088, -0.033499348908662796, 0.11388656497001648, 0.0028004401829093695, 0.027024397626519203, 0.0660967230796814, 0.08932726830244064, 0.03835420683026314, 0.08170098811388016, -0.010034688748419285, -0.03376457467675209, -0.027056777849793434, 0.005395582877099514, 0.07551652193069458, 0.0008361396612599492, 0.04767623543739319, -0.04376908391714096, -0.0428127720952034, -0.025632962584495544, 0.05347689613699913, 0.020080287009477615, -0.05748249590396881, -0.022099820896983147, -0.02400423400104046, -0.054596662521362305, -0.02608334831893444, 0.04926188290119171, 0.004991632420569658, 0.023258190602064133, 0.02722630277276039, 0.029033131897449493, -0.05826209485530853, 0.10985932499170303, 0.010912870988249779, -0.019367804750800133, -0.04656742140650749, 0.00773512851446867, -0.007332019042223692, 0.036076899617910385, -0.010133186355233192, -0.09695059061050415, 0.0187132079154253, 0.04023950919508934, -0.028411151841282845, -0.06298463046550751, -0.02832164615392685, -0.02494114264845848, 0.03592999279499054, 0.024807510897517204, 0.025394460186362267, 0.037924911826848984, -0.00014274613931775093, -0.07169762998819351, 0.06824878603219986, 0.08579396456480026, -0.010714465752243996, 0.04974764958024025, 0.02932097762823105, -0.019775211811065674, -0.07574134320020676, 0.005973809864372015, 0.02417268604040146, -0.028997018933296204, 0.029500536620616913, -0.02568233199417591, 8.908572834466987e-33, -0.005186337511986494, -0.13545089960098267, 0.027678949758410454, -0.1503905951976776, 0.01659919135272503, -0.0671437531709671, -0.026648107916116714, -0.05508234351873398, -0.05143902450799942, -0.09377143532037735, -0.0570223294198513, 0.006059734150767326, 0.05768733471632004, -0.010269408114254475, 0.04337961599230766, -0.10711999237537384, 0.0003496856370475143, 0.01074332557618618, 0.11208079010248184, -0.0035832864232361317, 0.04733264818787575, -0.09767257422208786, -0.12739527225494385, -0.006909406278282404, 0.013961556367576122, 0.009067816659808159, 0.012849731370806694, -0.1422703117132187, 0.02297843061387539, 0.041979990899562836, -0.01946808211505413, -0.010476945899426937, 0.030831074342131615, 0.07435453683137894, -0.11037713289260864, 0.01901920698583126, -0.02433888055384159, 0.03282250463962555, -0.08243963867425919, -0.07645110040903091, 0.004975467454642057, 0.012933033518493176, 0.059060368686914444, -0.06375861912965775, 0.08150243014097214, -0.1049039363861084, 0.03484594076871872, -0.009344520047307014, -0.028071917593479156, 0.01543977577239275, 0.07773100584745407, -0.05248761177062988, 0.03830897808074951, -0.07956237345933914, 0.0009273492032662034, 0.02001839503645897, 0.07756421715021133, 0.00030085438629612327, -0.013995055109262466, 0.12395423650741577, -0.023014992475509644, -0.033547528088092804, -0.038185350596904755, -0.007326485589146614, 0.03281761333346367, 0.04447812959551811, -0.034865569323301315, -0.02191694639623165, 0.014948496595025063, 0.06822744756937027, -0.06873428076505661, 0.028119221329689026, -0.021608926355838776, 0.032053716480731964, -0.0338362455368042, -0.001908443053252995, -0.0005186318885535002, 0.08688241243362427, -0.08457911759614944, 0.03436940535902977, -0.026925334706902504, 0.06286156922578812, -0.0008419846999458969, 0.04425746947526932, -0.05198907479643822, -0.10662558674812317, 0.018832696601748466, -0.004370279610157013, -0.051532596349716187, 0.05721941962838173, 0.10687874257564545, -0.009960607625544071, -0.029256269335746765, 0.06869998574256897, -0.046064142137765884, -7.54763837233073e-33, 0.03138342499732971, -0.009389311075210571, -0.006198697257786989, 0.07399503141641617, 0.004289682488888502, 0.02615324594080448, -0.016952132806181908, -0.08634909242391586, 0.002962428377941251, -0.01179854292422533, -0.047416601330041885, -0.037505894899368286, 0.04085724800825119, 0.026803523302078247, -0.055074095726013184, -0.023877786472439766, -0.055466178804636, 0.008560668677091599, 0.007831632159650326, 0.06460753828287125, 0.02565690502524376, -0.025722581893205643, 0.03487248718738556, -0.007301596459001303, 0.0603540800511837, 0.019700370728969574, -0.005110152997076511, 0.02582724206149578, -0.04687992483377457, 0.0037691774778068066, -0.028269583359360695, -0.13943715393543243, -0.03395428881049156, -0.009784725494682789, 0.03530186042189598, -0.023431992158293724, -0.07843627780675888, 0.06603699922561646, 0.0019412521505728364, -0.02796013653278351, 0.06551684439182281, 0.014733648858964443, -0.1060604453086853, -0.023298798128962517, -0.06524796783924103, 0.007513871416449547, -0.012184124439954758, 0.01592550054192543, -0.04003451392054558, -0.05469461902976036, -0.06620503962039948, 0.0255817212164402, 0.021315166726708412, 0.0925489217042923, -0.041551850736141205, 0.014143172651529312, 0.026010314002633095, 0.06013241410255432, 0.00547728780657053, 0.023535924032330513, 0.11763180792331696, -0.09895151853561401, 0.03604387864470482, 0.0021353166084736586, 0.08888092637062073, -0.0747515857219696, 0.04273786395788193, 0.01629951037466526, 0.004080193117260933, -0.03895460441708565, 0.05551816523075104, 0.06979187577962875, 0.01723531074821949, 0.04570320248603821, -0.011779765598475933, -0.02213536947965622, 0.01944425143301487, 0.004789059981703758, 0.030452264472842216, 0.03528840094804764, -0.14772747457027435, 0.06451036036014557, -0.03106711246073246, 0.040569987148046494, -0.011715959757566452, 0.0665232241153717, 0.06452291458845139, 0.09030742943286896, 0.05788636580109596, 0.024974921718239784, -0.024340543895959854, 0.003240995341911912, -0.007390480022877455, 0.07050613313913345, -0.02616395801305771, -4.6128910469178663e-8, 0.08041750639677048, -0.03470464050769806, -0.03634408861398697, 0.06495005637407303, 0.056167613714933395, -0.05614320561289787, 0.022811848670244217, -0.045540522783994675, -0.05061279609799385, 0.07606914639472961, -0.014793070033192635, 0.010649211704730988, -0.04320221394300461, -0.019174665212631226, 0.05318951606750488, -0.041290175169706345, 0.05015112832188606, -0.012340831570327282, -0.04908847063779831, -0.0756840854883194, -0.06074567884206772, 0.0013683491852134466, -0.02861020341515541, -0.0012522324686869979, 0.006730962544679642, 0.02506408654153347, 0.1159396544098854, -0.009364008903503418, 0.10214152187108994, 0.033063288778066635, -0.09547733515501022, -0.030946260318160057, -0.03507783263921738, 0.049872949719429016, -0.06387446820735931, 0.048495594412088394, -0.1422625333070755, 0.05366996303200722, -0.024184757843613625, 0.06656359136104584, -0.00475893821567297, -0.038057439029216766, -0.0470513179898262, -0.016697410494089127, 0.06385497748851776, 0.06533364951610565, -0.00909807812422514, 0.029844000935554504, -0.02092690020799637, 0.025010645389556885, -0.0026532933115959167, -0.03910565748810768, 0.005380082409828901, 0.03385978937149048, -0.003008238971233368, 0.030082616955041885, 0.009601300582289696, -0.09375172853469849, 0.045413706451654434, -0.007700639311224222, 0.01834920234978199, -0.044532958418130875, -0.02477297931909561, 0.0009380773990415037 ]
0.163947
arbitrary node in order to make room for the pending pod. If a node with low priority Pods is not feasible to run the pending Pod, the scheduler may choose another node with higher priority Pods (compared to the Pods on the other node) for preemption. The victims must still have lower priority than the preemptor Pod. When there are multiple nodes available for preemption, the scheduler tries to choose the node with a set of Pods with lowest priority. However, if such Pods have PodDisruptionBudget that would be violated if they are preempted then the scheduler may choose another node with higher priority Pods. When multiple nodes exist for preemption and none of the above scenarios apply, the scheduler chooses a node with the lowest priority. ## Interactions between Pod priority and quality of service {#interactions-of-pod-priority-and-qos} Pod priority and {{< glossary\_tooltip text="QoS class" term\_id="qos-class" >}} are two orthogonal features with few interactions and no default restrictions on setting the priority of a Pod based on its QoS classes. The scheduler's preemption logic does not consider QoS when choosing preemption targets. Preemption considers Pod priority and attempts to choose a set of targets with the lowest priority. Higher-priority Pods are considered for preemption only if the removal of the lowest priority Pods is not sufficient to allow the scheduler to schedule the preemptor Pod, or if the lowest priority Pods are protected by `PodDisruptionBudget`. The kubelet uses Priority to determine pod order for [node-pressure eviction](/docs/concepts/scheduling-eviction/node-pressure-eviction/). You can use the QoS class to estimate the order in which pods are most likely to get evicted. The kubelet ranks pods for eviction based on the following factors: 1. Whether the starved resource usage exceeds requests 1. Pod Priority 1. Amount of resource usage relative to requests See [Pod selection for kubelet eviction](/docs/concepts/scheduling-eviction/node-pressure-eviction/#pod-selection-for-kubelet-eviction) for more details. kubelet node-pressure eviction does not evict Pods when their usage does not exceed their requests. If a Pod with lower priority is not exceeding its requests, it won't be evicted. Another Pod with higher priority that exceeds its requests may be evicted. ## {{% heading "whatsnext" %}} \* Read about using ResourceQuotas in connection with PriorityClasses: [limit Priority Class consumption by default](/docs/concepts/policy/resource-quotas/#limit-priority-class-consumption-by-default) \* Learn about [Pod Disruption](/docs/concepts/workloads/pods/disruptions/) \* Learn about [API-initiated Eviction](/docs/concepts/scheduling-eviction/api-eviction/) \* Learn about [Node-pressure Eviction](/docs/concepts/scheduling-eviction/node-pressure-eviction/)
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/pod-priority-preemption.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/pod-priority-preemption.md
[ -0.014696987345814705, 0.005923601798713207, 0.04829251766204834, 0.011281725950539112, 0.014339612796902657, -0.022388998419046402, -0.0014554329682141542, -0.029088394716382027, 0.04904422163963318, 0.08169089257717133, -0.0015907404012978077, 0.03313950449228287, -0.008791284635663033, 0.013596620410680771, 0.04158511385321617, 0.004771128762513399, 0.06530583649873734, -0.05881911516189575, -0.0671292170882225, -0.00023243756731972098, 0.055120281875133514, -0.021112458780407906, 0.0022245936561375856, 0.008387001231312752, -0.037698306143283844, -0.07775324583053589, -0.05572297424077988, 0.013982044532895088, 0.045496657490730286, 0.021127797663211823, -0.029373932629823685, -0.0007880186894908547, 0.11672817915678024, 0.0066147237084805965, -0.01915258914232254, 0.1000777930021286, -0.028049767017364502, -0.10481446981430054, -0.03066546842455864, 0.051777660846710205, 0.018825002014636993, -0.04614195227622986, -0.11732406169176102, -0.021568823605775833, -0.04694231599569321, 0.008803010918200016, -0.09296095371246338, 0.025660306215286255, -0.04101458936929703, -0.09062160551548004, -0.00800310168415308, -0.09364128857851028, 0.05654848366975784, 0.03803562745451927, 0.05886511877179146, 0.11684795469045639, 0.010015280917286873, 0.013254138641059399, 0.06589718163013458, -0.028753845021128654, -0.04853863641619682, -0.059864938259124756, 0.00016526227409485728, 0.006862617563456297, 0.11301849782466888, 0.03366300091147423, -0.0061012557707726955, 0.012496059760451317, 0.004232429433614016, 0.032655492424964905, 0.10111832618713379, -0.003448687493801117, 0.048477690666913986, 0.017800284549593925, 0.011101177893579006, 0.03660258278250694, -0.006929675117135048, 0.08255327492952347, -0.060442905873060226, -0.04609732702374458, -0.016713829711079597, -0.017613373696804047, -0.01574954390525818, -0.022993501275777817, -0.04003016650676727, 0.01078937016427517, -0.043932657688856125, -0.057973627001047134, 0.020009413361549377, 0.04534780606627464, 0.00031618800130672753, 0.02046806737780571, 0.031049897894263268, -0.058889683336019516, 0.0345715694129467, 0.0291671734303236, 0.034495387226343155, -0.049959249794483185, -0.01464141346514225, 0.0017000139923766255, 0.04135742783546448, -0.04701494425535202, -0.049182094633579254, 0.011006887070834637, 0.07501418888568878, -0.08058062940835953, -0.08144077658653259, -0.07236640155315399, -0.030691055580973625, 0.04307667165994644, 0.024620043113827705, 0.00824145320802927, 0.044989485293626785, 0.03434688225388527, -0.08370999991893768, 0.09027852863073349, 0.05650762841105461, -0.004584010690450668, 0.04606238380074501, -0.027121717110276222, -0.009091498330235481, -0.05334958806633949, 0.04334503412246704, -0.055939894169569016, 0.007284368388354778, 0.005558364558964968, -0.012876065447926521, 6.178729650392081e-33, 0.012694205157458782, -0.1224181205034256, -0.007715702056884766, -0.12896506488323212, 0.03769887238740921, -0.07650300115346909, -0.03972141444683075, -0.01819142885506153, -0.0012068110518157482, -0.04916512593626976, -0.04192084074020386, 0.019207391887903214, 0.031200092285871506, -0.009357118979096413, -0.01635681837797165, -0.08592105656862259, -0.029388202354311943, 0.06988421082496643, 0.06399784237146378, -0.024544477462768555, 0.014974814839661121, -0.0741749256849289, -0.12301459163427353, -0.0070779281668365, -0.024987509474158287, 0.03946970775723457, 0.0065901633352041245, -0.11786811053752899, 0.03035893104970455, 0.03233915939927101, -0.05084006115794182, 0.010653950273990631, 0.037110455334186554, 0.041679758578538895, -0.13601002097129822, 0.04559389129281044, -0.06542817503213882, 0.017702849581837654, -0.07096308469772339, -0.06102895364165306, 0.002497725887224078, -0.011211094446480274, 0.019354136660695076, -0.008981741964817047, 0.06537207961082458, -0.08934980630874634, 0.026806330308318138, -0.06080534681677818, -0.013914527371525764, 0.04498786851763725, 0.021709082648158073, -0.03822972625494003, 0.05096769332885742, -0.056782569736242294, -0.03414604812860489, -0.010425097309052944, 0.08507470041513443, -0.00847937073558569, -0.010013780556619167, 0.06223209947347641, -0.022181861102581024, 0.019307635724544525, -0.02274252474308014, -0.010431770235300064, 0.028420157730579376, 0.032187771052122116, -0.04760909825563431, -0.061857812106609344, 0.05248751491308212, 0.07343895733356476, -0.03786521032452583, 0.045073140412569046, 0.01588498428463936, -0.004961992613971233, -0.002870037453249097, 0.05145702883601189, 0.035697102546691895, -0.007433790247887373, -0.08738479763269424, -0.038931358605623245, -0.02087443321943283, 0.016236307099461555, 0.003428968833759427, 0.03769023343920708, -0.0034626817796379328, -0.027416028082370758, 0.051994308829307556, 0.004885184578597546, -0.0631890520453453, 0.05758611857891083, 0.05375119671225548, 0.009070778265595436, -0.05098622292280197, 0.06877660751342773, 0.0070003182627260685, -5.58745672661244e-33, 0.07075425237417221, 0.014484117738902569, 0.05594488978385925, 0.07130593806505203, 0.032506778836250305, -0.0027612061239778996, -0.05684364587068558, -0.10677988827228546, 0.022167298942804337, -0.03351892530918121, -0.049012478440999985, -0.01075495220720768, 0.07690723240375519, 0.04054655879735947, -0.02782301791012287, 0.027213778346776962, -0.050359442830085754, -0.0694153755903244, -0.02299271896481514, 0.05468403920531273, 0.023786189034581184, -0.0032685576006770134, -0.005706401076167822, 0.037153925746679306, 0.0004501846560742706, -0.009333434514701366, 0.024651357904076576, 0.040757931768894196, 0.004095456562936306, -0.03683674708008766, -0.013428143225610256, -0.16006463766098022, 0.0069024888798594475, 0.022525081411004066, 0.07344449311494827, -0.04409236088395119, -0.10005813091993332, 0.05414741113781929, -0.021433701738715172, 0.028597988188266754, 0.08022313565015793, -0.03760118782520294, -0.10114548355340958, -0.009281773120164871, -0.05146118998527527, 0.026337288320064545, 0.02343686670064926, 0.015240955166518688, -0.03575179725885391, -0.08463535457849503, -0.0411466620862484, 0.00809037871658802, 0.02282601408660412, 0.1743159294128418, 0.005071164574474096, -0.009518013335764408, 0.03351682797074318, 0.02892625704407692, 0.0001872011343948543, 0.043341927230358124, 0.10189022868871689, -0.04441498965024948, 0.03182266280055046, 0.009465880692005157, 0.044029153883457184, -0.07718658447265625, 0.02276678755879402, 0.0171644426882267, -0.01686832122504711, 0.0013660651165992022, 0.05767809972167015, 0.028688961640000343, 0.049681343138217926, 0.010869710706174374, -0.007954726926982403, 0.0014003675896674395, -0.01636512763798237, -0.015919415280222893, 0.01575392112135887, 0.036608438938856125, -0.11786574870347977, 0.1291828602552414, -0.03716232255101204, 0.05439947918057442, -0.08182475715875626, 0.0928783118724823, 0.09810653328895569, 0.07308266311883926, 0.07624281197786331, 0.03387877717614174, 0.022815585136413574, 0.06874195486307144, 0.006927976850420237, 0.06772847473621368, -0.04683033004403114, -4.8693856058434903e-8, 0.03887529298663139, -0.034168314188718796, -0.020788883790373802, 0.04705950990319252, 0.0980728417634964, -0.1273806393146515, 0.04619177058339119, -0.001949263270944357, -0.06356896460056305, 0.076468825340271, -0.010427763685584068, 0.04025466740131378, -0.014453530311584473, -0.05914662778377533, 0.09023366123437881, -0.013136260211467743, -0.0005587298655882478, -0.009183203801512718, -0.031770650297403336, -0.04672451317310333, -0.0267807487398386, -0.04431165009737015, 0.02375398762524128, -0.03709800913929939, 0.017844684422016144, 0.049527525901794434, 0.10632553696632385, 0.0175771564245224, 0.021311329677700996, 0.08630206435918808, -0.09077907353639603, -0.003744738642126322, -0.06127369776368141, 0.004164146725088358, -0.061203766614198685, 0.038356710225343704, -0.1297418177127838, -0.00744870537891984, 0.0016292593209072948, 0.008642035536468029, 0.008183387108147144, -0.11988518387079239, -0.07916221767663956, 0.009726016782224178, -0.002548808231949806, 0.03588703274726868, -0.05048332363367081, 0.003122217720374465, 0.013750107027590275, 0.013507431373000145, -0.052400264889001846, -0.06493343412876129, 0.06557543575763702, 0.022223154082894325, -0.011933553963899612, -0.004798991605639458, 0.027105119079351425, -0.06169513612985611, 0.007973509840667248, -0.0036445946898311377, 0.08386991173028946, 0.03670457378029823, 0.03407232463359833, 0.018285075202584267 ]
0.128358
{{< feature-state feature\_gate\_name="GangScheduling" >}} Gang scheduling ensures that a group of Pods are scheduled on an "all-or-nothing" basis. If the cluster cannot accommodate the entire group (or a defined minimum number of Pods), none of the Pods are bound to a node. This feature depends on the [Workload API](/docs/concepts/workloads/workload-api/). Ensure the [`GenericWorkload`](/docs/reference/command-line-tools-reference/feature-gates/#GenericWorkload) feature gate and the `scheduling.k8s.io/v1alpha1` {{< glossary\_tooltip text="API group" term\_id="api-group" >}} are enabled in the cluster. ## How it works When the `GangScheduling` plugin is enabled, the scheduler alters the lifecycle for Pods belonging to a `gang` [pod group policy](/docs/concepts/workloads/workload-api/policies/) within a [Workload](/docs/concepts/workloads/workload-api/). The process follows these steps independently for each pod group and its replica key: 1. The scheduler holds Pods in the `PreEnqueue` phase until: \* The referenced Workload object is created. \* The referenced pod group exists in a Workload. \* The number of Pods that have been created for the specific group is at least equal to the `minCount`. Pods do not enter the active scheduling queue until all of these conditions are met. 2. Once the quorum is met, the scheduler attempts to find placements for all Pods in the group. All assigned Pods wait at the `WaitOnPermit` gate during this process. Note that in the Alpha phase of this feature, finding a placement is based on pod-by-pod scheduling, rather than a single-cycle approach. 3. If the scheduler finds valid placements for at least `minCount` Pods, it allows all of them to be bound to their assigned nodes. If it cannot find placements for the entire group within a fixed timeout of 5 minutes, none of the Pods are scheduled. Instead, they are moved to the unschedulable queue to wait for cluster resources to free up, allowing other workloads to be scheduled in the meantime. ## {{% heading "whatsnext" %}} \* Learn about the [Workload API](/docs/concepts/workloads/workload-api/). \* See how to [reference a Workload](/docs/concepts/workloads/pods/workload-reference/) in a Pod.
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/gang-scheduling.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/gang-scheduling.md
[ -0.05461808294057846, -0.0011875225463882089, 0.05009806156158447, 0.08691150695085526, 0.005282063037157059, -0.020071230828762054, -0.05144699662923813, -0.06459343433380127, 0.0069045331329107285, 0.03448419272899628, -0.023444123566150665, -0.020112749189138412, -0.02501625567674637, -0.017463114112615585, 0.06224830821156502, -0.026503436267375946, 0.01995621994137764, -0.08880551159381866, -0.030185922980308533, -0.1254623532295227, 0.049415912479162216, -0.041784778237342834, 0.006320199929177761, 0.050115641206502914, -0.057630643248558044, 0.009882858023047447, -0.08506770431995392, -0.004885980859398842, 0.04419594258069992, 0.02325817011296749, -0.09853367507457733, 0.021001426503062248, -0.014959168620407581, 0.016723213717341423, 0.07588878273963928, 0.11749723553657532, 0.0052155982702970505, -0.036072082817554474, -0.04984748736023903, -0.021843701601028442, 0.08872710913419724, -0.024743996560573578, -0.07689031213521957, -0.01643255725502968, -0.020538805052638054, 0.015305140987038612, -0.06011337786912918, -0.014299954287707806, -0.06889713555574417, -0.019589027389883995, 0.06278269737958908, -0.11619049310684204, 0.08780104666948318, 0.0832643210887909, 0.04542529582977295, 0.07012471556663513, 0.012671280652284622, 0.03536584973335266, 0.1273738592863083, -0.0007031560526229441, -0.002718557370826602, -0.05805034935474396, -0.006078730337321758, 0.014148079790174961, 0.0186163242906332, -0.0033441914711147547, 0.003017533803358674, -0.0007228908943943679, 0.0016470362897962332, -0.022562509402632713, 0.03843105584383011, -0.010744690895080566, -0.030194347724318504, 0.050041090697050095, 0.029488258063793182, 0.00938645750284195, 0.0332130528986454, 0.04179208725690842, 0.05823440104722977, -0.11880645155906677, -0.020223626866936684, -0.019008221104741096, 0.023250745609402657, 0.025027872994542122, -0.04187346622347832, 0.00008382973464904353, -0.04362111911177635, -0.057138875126838684, 0.05992712453007698, 0.019574835896492004, -0.000958333897870034, -0.0072775110602378845, 0.046659063547849655, -0.11766792088747025, 0.016879111528396606, -0.005060612689703703, 0.01553589478135109, 0.06528228521347046, -0.010650759562849998, 0.046995680779218674, 0.006298436783254147, -0.03310418128967285, -0.007763308472931385, 0.04571807384490967, 0.03365233540534973, -0.017780251801013947, -0.08319392055273056, -0.0144037501886487, -0.014912611804902554, 0.05683331936597824, 0.027663251385092735, 0.07492567598819733, 0.07463422417640686, 0.007352691143751144, -0.03633636608719826, 0.010053636506199837, -0.012796849012374878, 0.026718564331531525, 0.006988672073930502, 0.07505707442760468, 0.04550506919622421, -0.08512989431619644, 0.01012806873768568, -0.060249023139476776, -0.03855853155255318, 0.03725012391805649, 0.011379089206457138, 5.131215134799159e-34, 0.040684185922145844, -0.13606256246566772, -0.03994157910346985, -0.060733117163181305, 0.08003629744052887, -0.11364970356225967, -0.05473025143146515, -0.003304107813164592, -0.022485459223389626, -0.0023995419032871723, -0.056421298533678055, 0.03333885967731476, -0.021543750539422035, -0.034680865705013275, 0.029220100492239, -0.02951003797352314, 0.002871933626011014, 0.05557212978601456, 0.08563232421875, 0.006443080957978964, 0.040844596922397614, -0.06825043261051178, -0.07130075246095657, -0.044087670743465424, -0.0030924156308174133, 0.024299688637256622, -0.00645012641325593, -0.11226342618465424, 0.030325425788760185, 0.05213737487792969, -0.06014595180749893, 0.06826096773147583, -0.016170646995306015, 0.06509558111429214, -0.1619262993335724, -0.011128353886306286, -0.06421642005443573, -0.053835492581129074, -0.03752319514751434, -0.04487132653594017, 0.06538599729537964, 0.007866119034588337, -0.024334346875548363, -0.08766011893749237, 0.010500742122530937, -0.013085955753922462, 0.02979431301355362, -0.08209948986768723, 0.0717531368136406, 0.06397129595279694, 0.00878042634576559, -0.031121615320444107, 0.019332919269800186, -0.0536213181912899, 0.013337546028196812, 0.0035982865374535322, 0.05191188305616379, -0.04988032951951027, 0.011850551702082157, 0.02372021973133087, 0.04288806766271591, 0.009235461242496967, -0.010462341830134392, 0.04170756787061691, 0.026478758081793785, 0.039613910019397736, 0.01274958997964859, 0.05114668607711792, 0.008360462263226509, -0.011414754204452038, -0.04605043679475784, 0.05260973423719406, 0.008264100179076195, 0.04365872964262962, -0.03417866677045822, -0.058048319071531296, 0.05611080303788185, 0.003936690744012594, -0.17734573781490326, 0.05468456447124481, 0.04294547811150551, -0.06595191359519958, -0.05638199672102928, 0.019796889275312424, 0.05758729577064514, -0.02777743525803089, 0.038327235728502274, 0.004736830946058035, -0.04580226168036461, -0.006957781966775656, -0.008525603450834751, -0.05892791226506233, -0.031671132892370224, 0.0810466781258583, -0.07287417352199554, -2.3601841898748747e-33, 0.07915391027927399, -0.007657595910131931, 0.05766364187002182, -0.023144477978348732, 0.022080527618527412, 0.02046281285583973, -0.016444694250822067, -0.012340436689555645, 0.007997080683708191, 0.06330191344022751, -0.06072276085615158, 0.006666424684226513, 0.026787616312503815, -0.002069192472845316, -0.03837180882692337, 0.010283221490681171, -0.06323422491550446, -0.05460792034864426, -0.008631023578345776, 0.04473097249865532, 0.006044785492122173, 0.0015010496135801077, -0.017978396266698837, 0.0799558162689209, 0.045618537813425064, -0.029493136331439018, -0.0027520416770130396, 0.0773453488945961, -0.019552107900381088, -0.019985664635896683, -0.005794997792690992, -0.11733369529247284, -0.07327345013618469, -0.036996837705373764, 0.05464540421962738, -0.03871678560972214, -0.05189492553472519, 0.06389766186475754, -0.004541087429970503, 0.0027309958823025227, 0.1378568708896637, -0.012789394706487656, -0.07551496475934982, 0.009676406159996986, -0.026433831080794334, 0.08268006891012192, 0.0506722666323185, 0.018689237534999847, -0.08975239843130112, -0.08522406965494156, 0.010137053206562996, -0.004118398763239384, -0.01977173425257206, 0.10979064553976059, -0.018776610493659973, 0.041722822934389114, 0.07535427063703537, -0.005260305944830179, -0.01449739933013916, -0.0013805096969008446, 0.04372246935963631, -0.11028753221035004, 0.02971716597676277, 0.03312854841351509, -0.016465848311781883, -0.08492784947156906, 0.02623368613421917, 0.027494730427861214, 0.017494676634669304, 0.009689575992524624, -0.005743447225540876, 0.017783449962735176, 0.04954097792506218, 0.01778010092675686, -0.03167618438601494, -0.004464930854737759, 0.005660809576511383, -0.10193001478910446, 0.013325291685760021, -0.01491265557706356, -0.0667969360947609, 0.07901027798652649, -0.007105672731995583, 0.03597391024231911, 0.020908592268824577, 0.0526004284620285, 0.08426804840564728, 0.16507166624069214, 0.07936781644821167, 0.0619937926530838, -0.0015691983280703425, -0.05328402295708656, -0.06042226031422615, 0.13233189284801483, -0.04908957704901695, -5.3157684476445866e-8, 0.07206732779741287, 0.04025491699576378, -0.00868155900388956, 0.0052873119711875916, 0.06212358549237251, -0.09468371421098709, 0.06257639825344086, 0.01972965896129608, -0.014510093256831169, 0.031568918377161026, 0.06334628909826279, 0.06159396842122078, -0.013670039363205433, 0.004499536938965321, 0.03836645558476448, 0.00855331588536501, -0.03523042052984238, 0.044267673045396805, -0.028434570878744125, -0.05836156755685806, -0.02080208621919155, -0.09969276934862137, 0.04443991929292679, -0.016186298802495003, -0.01614934764802456, 0.006130656227469444, 0.002674491610378027, 0.03524986281991005, 0.021021684631705284, -0.012650706805288792, -0.1002299040555954, 0.03503607586026192, -0.0686444416642189, 0.017336798831820488, -0.049188535660505295, -0.005364186130464077, -0.11185459047555923, 0.000009490796401223633, 0.05230795219540596, 0.028960976749658585, 0.05390917882323265, -0.047914404422044754, -0.01462848111987114, 0.016121570020914078, -0.015201026573777199, 0.07926523685455322, -0.052059173583984375, 0.05221151188015938, 0.026992352679371834, 0.0015027594054117799, -0.04003188759088516, -0.059063512831926346, 0.00010605761781334877, 0.07019895315170288, -0.019581764936447144, -0.059376467019319534, -0.018392419442534447, -0.05123944208025932, 0.05690440535545349, -0.029873285442590714, 0.03050793893635273, 0.042283110320568085, 0.0201239176094532, -0.0634024366736412 ]
0.157336
{{< feature-state feature\_gate\_name="DynamicResourceAllocation" >}} This page describes \_dynamic resource allocation (DRA)\_ in Kubernetes. ## About DRA {#about-dra} {{< glossary\_definition prepend="DRA is" term\_id="dra" length="all" >}} Allocating resources with DRA is a similar experience to [dynamic volume provisioning](/docs/concepts/storage/dynamic-provisioning/), in which you use PersistentVolumeClaims to claim storage capacity from storage classes and request the claimed capacity in your Pods. ### Benefits of DRA {#dra-benefits} DRA provides a flexible way to categorize, request, and use devices in your cluster. Using DRA provides benefits like the following: \* \*\*Flexible device filtering\*\*: use common expression language (CEL) to perform fine-grained filtering for specific device attributes. \* \*\*Device sharing\*\*: share the same resource with multiple containers or Pods by referencing the corresponding resource claim. \* \*\*Centralized device categorization\*\*: device drivers and cluster admins can use device classes to provide app operators with hardware categories that are optimized for various use cases. For example, you can create a cost-optimized device class for general-purpose workloads, and a high-performance device class for critical jobs. \* \*\*Simplified Pod requests\*\*: with DRA, app operators don't need to specify device quantities in Pod resource requests. Instead, the Pod references a resource claim, and the device configuration in that claim applies to the Pod. These benefits provide significant improvements in the device allocation workflow when compared to [device plugins](/docs/concepts/extend-kubernetes/compute-storage-net/device-plugins/), which require per-container device requests, don't support device sharing, and don't support expression-based device filtering. ### Types of DRA users {#dra-user-types} The workflow of using DRA to allocate devices involves the following types of users: \* \*\*Device owner\*\*: responsible for devices. Device owners might be commercial vendors, the cluster operator, or another entity. To use DRA, devices must have DRA-compatible drivers that do the following: \* Create ResourceSlices that provide Kubernetes with information about nodes and resources. \* Update ResourceSlices when resource capacity in the cluster changes. \* Optionally, create DeviceClasses that workload operators can use to claim devices. \* \*\*Cluster admin\*\*: responsible for configuring clusters and nodes, attaching devices, installing drivers, and similar tasks. To use DRA, cluster admins do the following: \* Attach devices to nodes. \* Install device drivers that support DRA. \* Optionally, create DeviceClasses that workload operators can use to claim devices. \* \*\*Workload operator\*\*: responsible for deploying and managing workloads in the cluster. To use DRA to allocate devices to Pods, workload operators do the following: \* Create ResourceClaims or ResourceClaimTemplates to request specific configurations within DeviceClasses. \* Deploy workloads that use specific ResourceClaims or ResourceClaimTemplates. ## DRA terminology {#terminology} DRA uses the following Kubernetes API kinds to provide the core allocation functionality. All of these API kinds are included in the `resource.k8s.io/v1` {{< glossary\_tooltip text="API group" term\_id="api-group" >}}. DeviceClass : Defines a category of devices that can be claimed and how to select specific device attributes in claims. The DeviceClass parameters can match zero or more devices in ResourceSlices. To claim devices from a DeviceClass, ResourceClaims select specific device attributes. ResourceClaim : Describes a request for access to attached resources, such as devices, in the cluster. ResourceClaims provide Pods with access to a specific resource. ResourceClaims can be created by workload operators or generated by Kubernetes based on a ResourceClaimTemplate. ResourceClaimTemplate : Defines a template that Kubernetes uses to create per-Pod ResourceClaims for a workload. ResourceClaimTemplates provide Pods with access to separate, similar resources. Each ResourceClaim that Kubernetes generates from the template is bound to a specific Pod. When the Pod terminates, Kubernetes deletes the corresponding ResourceClaim. ResourceSlice : Represents one or more resources that are attached to nodes, such as devices. Drivers create and manage ResourceSlices in the cluster. When a ResourceClaim is created and used in
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/dynamic-resource-allocation.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/dynamic-resource-allocation.md
[ 0.018289444968104362, 0.019568752497434616, 0.053808845579624176, 0.03345223143696785, -0.04561411589384079, -0.010875196196138859, 0.039464909583330154, 0.003678657580167055, 0.04026683419942856, 0.03544413670897484, -0.06089385598897934, -0.06876066327095032, 0.03210148587822914, 0.006415817886590958, 0.005934565328061581, 0.012273135595023632, 0.042874377220869064, 0.02674742415547371, -0.07672589272260666, -0.006234527099877596, 0.08489591628313065, 0.014438366517424583, 0.014539753086864948, 0.016700521111488342, -0.012169199995696545, 0.01881495863199234, -0.0032483264803886414, -0.029599690809845924, 0.08654727786779404, -0.017067112028598785, -0.025413578376173973, 0.010432585142552853, -0.008440539240837097, 0.018919507041573524, 0.1047910526394844, 0.01928597502410412, -0.04388377442955971, -0.06581778079271317, -0.09040375798940659, -0.017941314727067947, 0.03673139214515686, -0.04556524008512497, -0.11471260339021683, 0.01777699775993824, -0.018501313403248787, 0.03944719210267067, -0.046926349401474, 0.02553698793053627, -0.01110380981117487, -0.017472486943006516, 0.04555514082312584, -0.06925302743911743, 0.026196831837296486, 0.09466596692800522, 0.0012404773151502013, 0.026148216798901558, -0.0039550261572003365, 0.06394744664430618, 0.10989759117364883, 0.013993910513818264, 0.05902668461203575, -0.04149653762578964, 0.08244847506284714, -0.022220730781555176, 0.001510075875557959, 0.0208200141787529, 0.027174105867743492, 0.0683392807841301, -0.021350523456931114, 0.013087237253785133, 0.07206088304519653, 0.06336013972759247, -0.005432461388409138, -0.02371927537024021, 0.04553354158997536, 0.02615535818040371, -0.02540310099720955, 0.09652072191238403, 0.04167412966489792, -0.043647702783346176, 0.025839772075414658, 0.07058551162481308, 0.030189791694283485, -0.03202259913086891, -0.06859895586967468, -0.04348072409629822, -0.0485147126019001, -0.08467944711446762, 0.028200756758451462, -0.04831376671791077, 0.036972083151340485, -0.013695445843040943, 0.009799067862331867, -0.11380455642938614, 0.026874952018260956, -0.03640451282262802, -0.05080560967326164, -0.07736028730869293, 0.07398480176925659, -0.033239152282476425, -0.0016552528832107782, 0.02317655459046364, -0.006553979124873877, -0.010688045993447304, 0.014672987163066864, -0.09983685612678528, -0.05294235050678253, -0.012765136547386646, -0.00019926228560507298, 0.06797629594802856, 0.028886588290333748, 0.0813814029097557, -0.04050823301076889, 0.04311061277985573, 0.03473516181111336, 0.02944689802825451, -0.026118308305740356, -0.009067337028682232, 0.08221916109323502, -0.001296004862524569, 0.00912604108452797, -0.13934147357940674, -0.015073706395924091, -0.03579601272940636, 0.018084507435560226, 0.01778602786362171, -0.07900097966194153, 5.8451588837752714e-33, 0.02192036621272564, -0.07776748389005661, -0.012550230138003826, -0.020090918987989426, -0.035629261285066605, -0.11256895959377289, 0.004139024764299393, 0.030212493613362312, -0.06340052932500839, -0.08544258773326874, -0.05441969260573387, 0.15271341800689697, -0.04098496586084366, -0.009111262857913971, 0.025387916713953018, -0.04411226138472557, -0.0395650789141655, 0.10079067945480347, 0.14841657876968384, -0.030414415523409843, 0.03803674504160881, -0.010422533378005028, 0.030069096013903618, -0.011269159615039825, 0.03722353279590607, -0.057282786816358566, 0.029257912188768387, -0.0752149224281311, -0.017314638942480087, 0.030577292665839195, -0.06447348743677139, -0.032149333506822586, 0.047068748623132706, -0.003373539773747325, -0.11185090988874435, 0.010799795389175415, -0.09516291320323944, 0.012894093059003353, -0.06083822622895241, -0.026166081428527832, 0.023890314623713493, -0.05973288044333458, 0.022495565935969353, -0.11025460809469223, -0.033372681587934494, -0.0055060014128685, 0.027605336159467697, -0.11844310164451599, -0.0014093865174800158, 0.07090000808238983, -0.004105275496840477, -0.05712549388408661, -0.012665411457419395, -0.0340898260474205, 0.04494870454072952, -0.04094633460044861, 0.004820181522518396, -0.07069125026464462, 0.015987737104296684, 0.0112586235627532, -0.0963764637708664, -0.018958237022161484, 0.00214022328145802, 0.021592458710074425, -0.014761697500944138, 0.0002875983773265034, 0.04332722723484039, 0.03803669288754463, -0.005536374635994434, -0.031003309413790703, -0.01604677177965641, -0.024038823321461678, -0.026590289548039436, -0.003821226768195629, -0.02802080102264881, -0.10264065861701965, 0.004663674160838127, 0.06784280389547348, -0.15829841792583466, 0.03028237074613571, -0.010812769643962383, -0.030254358425736427, -0.03939769044518471, 0.0919802114367485, -0.010794587433338165, -0.012532871216535568, 0.03099852427840233, -0.051825568079948425, -0.08853413164615631, 0.012347987852990627, 0.007802129257470369, -0.019691048189997673, -0.03032228723168373, 0.00298838852904737, -0.04630853235721588, -6.405586101105367e-33, 0.10357814282178879, 0.01019308902323246, 0.03553561121225357, 0.019464662298560143, 0.0024589565582573414, 0.02312253974378109, -0.049502965062856674, 0.06973809748888016, -0.01156302448362112, -0.07104554027318954, -0.09304030984640121, -0.03849624842405319, -0.01983550563454628, 0.023092471063137054, -0.11305965483188629, 0.022238714620471, -0.06338457018136978, -0.06502241641283035, 0.0222071073949337, 0.07765869796276093, -0.021001668646931648, 0.012633378617465496, 0.05171211436390877, 0.014174452982842922, 0.001548829604871571, -0.0074056764133274555, 0.012962911278009415, 0.034518420696258545, -0.002127403859049082, -0.05722920969128609, -0.039480846375226974, -0.12075615674257278, -0.0709741860628128, -0.03284946456551552, 0.012937789782881737, -0.10309378057718277, 0.0029826911631971598, 0.03638405725359917, 0.025066550821065903, 0.03437352553009987, 0.0475488118827343, -0.03094363771378994, -0.026126379147171974, -0.0306091271340847, -0.023131264373660088, -0.002242383547127247, 0.046259231865406036, -0.044167496263980865, 0.021396087482571602, -0.0785636156797409, 0.059402354061603546, 0.012905428186058998, -0.0964399054646492, 0.09785261750221252, -0.06576645374298096, 0.06170680373907089, 0.09027989953756332, 0.06888878345489502, -0.0521058551967144, 0.014306838624179363, 0.0467744879424572, -0.10453550517559052, 0.04236936569213867, 0.006848360877484083, -0.05115095153450966, -0.060682233422994614, 0.0605631060898304, -0.03210188448429108, -0.04949290677905083, 0.0452411025762558, -0.001826946740038693, -0.03620465472340584, 0.005477135069668293, 0.05340352654457092, -0.041824400424957275, -0.01311112567782402, 0.007872030138969421, -0.07708874344825745, 0.07752535492181778, 0.04958200082182884, -0.07842683792114258, 0.07132831960916519, -0.04213980585336685, 0.01108783483505249, 0.051776494830846786, 0.02492675930261612, 0.05315711349248886, 0.060750335454940796, 0.04097400978207588, 0.12536287307739258, -0.02853929065167904, 0.01176895759999752, -0.04715023934841156, 0.11704158037900925, -0.05561014264822006, -5.155574456239265e-8, 0.055475689470767975, 0.024765118956565857, 0.021664194762706757, 0.07637093961238861, -0.029782835394144058, -0.11417802423238754, 0.06512527167797089, 0.06437092274427414, -0.03931957110762596, 0.01323739718645811, 0.029675373807549477, 0.0325973778963089, -0.05854753404855728, 0.008411296643316746, -0.024163374677300453, 0.06125149875879288, -0.01837168261408806, 0.0427866205573082, -0.012538042850792408, -0.04892997816205025, -0.002347382251173258, -0.03658474609255791, 0.039135247468948364, 0.010409165173768997, 0.05986328050494194, 0.05820966884493828, 0.07312678545713425, 0.0008353432058356702, 0.024555638432502747, -0.019876182079315186, -0.002327021211385727, 0.016787370666861534, -0.038457103073596954, 0.062019847333431244, -0.01820959895849228, -0.00975728314369917, -0.08340238034725189, 0.04460695758461952, 0.01207350566983223, 0.071529321372509, -0.0195811465382576, -0.01432656217366457, -0.02037685364484787, 0.02944604679942131, 0.051441390067338943, 0.07727287709712982, -0.03900234028697014, 0.06152074784040451, -0.024834254756569862, 0.04743686318397522, -0.013802722096443176, -0.06989352405071259, -0.01151107344776392, 0.12216639518737793, -0.01873445138335228, -0.013953135348856449, -0.021415771916508675, 0.0018510937225073576, 0.0572708323597908, 0.05128270015120506, 0.029988523572683334, 0.040577732026576996, -0.002513255923986435, -0.010948652401566505 ]
0.140991
generates from the template is bound to a specific Pod. When the Pod terminates, Kubernetes deletes the corresponding ResourceClaim. ResourceSlice : Represents one or more resources that are attached to nodes, such as devices. Drivers create and manage ResourceSlices in the cluster. When a ResourceClaim is created and used in a Pod, Kubernetes uses ResourceSlices to find nodes that have access to the claimed resources. Kubernetes allocates resources to the ResourceClaim and schedules the Pod onto a node that can access the resources. ### DeviceClass {#deviceclass} A DeviceClass lets cluster admins or device drivers define categories of devices in the cluster. DeviceClasses tell operators what devices they can request and how they can request those devices. You can use [common expression language (CEL)](https://cel.dev) to select devices based on specific attributes. A ResourceClaim that references the DeviceClass can then request specific configurations within the DeviceClass. To create a DeviceClass, see [Set Up DRA in a Cluster](/docs/tasks/configure-pod-container/assign-resources/set-up-dra-cluster). ### ResourceClaims and ResourceClaimTemplates {#resourceclaims-templates} A ResourceClaim defines the resources that a workload needs. Every ResourceClaim has \_requests\_ that reference a DeviceClass and select devices from that DeviceClass. ResourceClaims can also use \_selectors\_ to filter for devices that meet specific requirements, and can use \_constraints\_ to limit the devices that can satisfy a request. ResourceClaims can be created by workload operators or can be generated by Kubernetes based on a ResourceClaimTemplate. A ResourceClaimTemplate defines a template that Kubernetes can use to auto-generate ResourceClaims for Pods. #### Use cases for ResourceClaims and ResourceClaimTemplates {#when-to-use-rc-rct} The method that you use depends on your requirements, as follows: \* \*\*ResourceClaim\*\*: you want multiple Pods to share access to specific devices. You manually manage the lifecycle of ResourceClaims that you create. \* \*\*ResourceClaimTemplate\*\*: you want Pods to have independent access to separate, similarly-configured devices. Kubernetes generates ResourceClaims from the specification in the ResourceClaimTemplate. The lifetime of each generated ResourceClaim is bound to the lifetime of the corresponding Pod. When you define a workload, you can use {{< glossary\_tooltip term\_id="cel" text="Common Expression Language (CEL)" >}} to filter for specific device attributes or capacity. The available parameters for filtering depend on the device and the drivers. If you directly reference a specific ResourceClaim in a Pod, that ResourceClaim must already exist in the same namespace as the Pod. If the ResourceClaim doesn't exist in the namespace, the Pod won't schedule. This behavior is similar to how a PersistentVolumeClaim must exist in the same namespace as a Pod that references it. You can reference an auto-generated ResourceClaim in a Pod, but this isn't recommended because auto-generated ResourceClaims are bound to the lifetime of the Pod that triggered the generation. To learn how to claim resources using one of these methods, see [Allocate Devices to Workloads with DRA](/docs/tasks/configure-pod-container/assign-resources/allocate-devices-dra/). #### Prioritized list {#prioritized-list} {{< feature-state feature\_gate\_name="DRAPrioritizedList" >}} You can provide a prioritized list of subrequests for requests in a ResourceClaim or ResourceClaimTemplate. The scheduler will then select the first subrequest that can be allocated. This allows users to specify alternative devices that can be used by the workload if the primary choice is not available. In the example below, the ResourceClaimTemplate requested a device with the color black and the size large. If a device with those attributes is not available, the pod cannot be scheduled. With the prioritized list feature, a second alternative can be specified, which requests two devices with the color white and size small. The large black device will be allocated if it is available. If it is not, but two small white devices are available, the pod will still be able to run. ```yaml apiVersion: resource.k8s.io/v1 kind: ResourceClaimTemplate metadata: name:
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/dynamic-resource-allocation.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/dynamic-resource-allocation.md
[ -0.010498086921870708, 0.056219346821308136, 0.05206599086523056, 0.024021267890930176, 0.05047095939517021, 0.003128736512735486, 0.031984202563762665, -0.046157196164131165, 0.07653303444385529, 0.012016303837299347, -0.022811638191342354, -0.06599606573581696, -0.00026680223527364433, -0.022152332589030266, 0.0024869851768016815, -0.00518720643594861, 0.039916954934597015, 0.01347396057099104, -0.029829511418938637, 0.02527749352157116, 0.15131673216819763, 0.036772165447473526, 0.039311978965997696, 0.008068578317761421, -0.07086539268493652, -0.004363669082522392, 0.029978487640619278, -0.026181306689977646, 0.07314064353704453, -0.04071341082453728, -0.01032743975520134, 0.03129126504063606, 0.03763851895928383, 0.037971217185258865, 0.08222177624702454, 0.06964870542287827, 0.002849066164344549, -0.06826969236135483, -0.09674746543169022, 0.012845137156546116, 0.03392107039690018, -0.053433630615472794, -0.10429038107395172, 0.015085522085428238, -0.02684086747467518, 0.024636846035718918, -0.04805519059300423, -0.009779377840459347, -0.03568434342741966, -0.051745712757110596, 0.052441734820604324, -0.05168008804321289, 0.05471997335553169, 0.01703789085149765, 0.04781930893659592, 0.025173360481858253, 0.02274164743721485, 0.058344196528196335, 0.10404041409492493, -0.027044788002967834, 0.051740072667598724, -0.0683625116944313, 0.03040412627160549, -0.04511751979589462, 0.05904792249202728, -0.04106289893388748, 0.03926803916692734, 0.024391965940594673, 0.03163439407944679, -0.04689144715666771, 0.08359776437282562, -0.006306787952780724, 0.015133801847696304, 0.012086762115359306, 0.026411807164549828, 0.06514491885900497, -0.006661091465502977, 0.0703701376914978, -0.018715718761086464, -0.08887344598770142, -0.013960517011582851, 0.10119427740573883, 0.06806313246488571, -0.05156846344470978, -0.03530929610133171, 0.004284808412194252, -0.0325029157102108, -0.021964967250823975, 0.05227052792906761, 0.04157479479908943, -0.004019676707684994, -0.02845616452395916, -0.01880551315844059, -0.12912507355213165, 0.03317611292004585, 0.031673453748226166, -0.022662367671728134, -0.07604383677244186, 0.04997522383928299, -0.010736963711678982, 0.005748725961893797, 0.034314993768930435, -0.044410835951566696, -0.013643200509250164, 0.03852975741028786, -0.0490521602332592, -0.09948863089084625, -0.017769157886505127, -0.0013668837491422892, 0.06619501858949661, 0.04492701217532158, 0.044688157737255096, -0.04692931845784187, 0.04522879421710968, 0.012277109548449516, 0.0027069486677646637, -0.022965706884860992, 0.025901956483721733, 0.06408266723155975, 0.05450714752078056, -0.03885452076792717, -0.10053311288356781, 0.010894302278757095, 0.029391339048743248, -0.046478547155857086, -0.015122272074222565, -0.12152095884084702, 2.9717894925038953e-33, 0.06785853207111359, -0.0951438620686531, -0.03308543190360069, 0.01105568464845419, 0.03205491602420807, -0.08365647494792938, 0.0020754593424499035, 0.028777437284588814, -0.03875693306326866, -0.031270429491996765, -0.08316695690155029, 0.10412918031215668, -0.00010794191621243954, -0.0108206607401371, 0.023845722898840904, -0.011668006889522076, -0.06119072064757347, 0.05760600045323372, 0.09328630566596985, 0.009177451021969318, 0.030439160764217377, -0.029140334576368332, 0.01525015290826559, -0.010309025645256042, 0.05010414496064186, 0.006630052346736193, -0.0027824612334370613, -0.0708431527018547, 0.016411522403359413, 0.01771983504295349, -0.06317605078220367, -0.031737070530653, 0.06468856334686279, 0.003809651592746377, -0.09829793870449066, 0.017008965834975243, -0.02329234965145588, 0.005845002364367247, -0.09792086482048035, -0.0038907204288989305, 0.009458540938794613, -0.05037645250558853, -0.0053160241805016994, -0.07069961726665497, -0.0005931209889240563, -0.06780710071325302, 0.05040713772177696, -0.09432418644428253, 0.01630774326622486, 0.040533456951379776, -0.008199385367333889, -0.09338133037090302, 0.08326051384210587, -0.12515847384929657, 0.06225254014134407, -0.04505130648612976, 0.029619840905070305, -0.043921902775764465, 0.013202880509197712, 0.017618969082832336, -0.051917579025030136, 0.010678563266992569, -0.027991607785224915, 0.028733300045132637, 0.0012110542738810182, 0.017405930906534195, 0.0075303115881979465, 0.018560538068413734, 0.019452018663287163, 0.03849010914564133, -0.009708266705274582, 0.01138810534030199, -0.03562238812446594, 0.03310306370258331, -0.04305108264088631, -0.03422246873378754, -0.010564208962023258, 0.0377938449382782, -0.1644643098115921, 0.06782279908657074, -0.025102626532316208, 0.04340602457523346, -0.049964047968387604, 0.057382550090551376, -0.05808156356215477, -0.059565868228673935, 0.004017220344394445, -0.057100024074316025, -0.037546366453170776, 0.016455799341201782, 0.02983156591653824, -0.02797534503042698, -0.0756153091788292, 0.029904797673225403, -0.07698814570903778, -4.317299448376449e-33, 0.07092718780040741, 0.018157899379730225, 0.0337715670466423, -0.046989377588033676, 0.0013393803965300322, -0.02903478592634201, -0.03761257603764534, 0.02851230278611183, -0.02621137909591198, -0.05411062389612198, -0.03150356933474541, -0.07933709770441055, 0.031779661774635315, 0.019473198801279068, -0.07474058866500854, 0.006562332157045603, -0.07004927098751068, -0.0701538622379303, -0.01537682767957449, 0.04106936976313591, -0.04453218728303909, 0.038934774696826935, 0.08786670118570328, 0.015030267648398876, -0.011918873526155949, 0.00855971872806549, 0.009661437012255192, 0.02644173800945282, -0.03832964226603508, -0.05311505123972893, 0.030802035704255104, -0.14299561083316803, -0.027642659842967987, 0.01736036315560341, 0.01762758195400238, -0.02325863018631935, -0.06749784201383591, 0.05943393334746361, 0.027172356843948364, 0.003061613067984581, 0.06770655512809753, -0.014767933636903763, -0.04145323857665062, 0.03712497651576996, -0.052221622318029404, -0.03999495878815651, 0.057171404361724854, -0.03305645287036896, 0.04056885093450546, -0.13642631471157074, 0.06125953793525696, 0.00367780402302742, -0.07577409595251083, 0.08459553122520447, -0.08021467924118042, 0.02778262458741665, 0.05900255963206291, 0.07246800512075424, 0.005368108861148357, 0.06170496344566345, 0.0939560979604721, -0.09114373475313187, 0.017965100705623627, 0.06296325474977493, -0.049519333988428116, -0.09478559345006943, 0.04120326414704323, -0.014569331891834736, -0.04531896859407425, 0.06811099499464035, -0.012671386823058128, -0.001614816254004836, 0.023274967446923256, 0.0603710375726223, -0.0426395982503891, -0.03746175020933151, -0.023277321830391884, -0.03694906085729599, 0.04182720556855202, -0.012808759696781635, -0.05772258713841438, 0.04113996773958206, -0.0669921264052391, 0.013222750276327133, 0.06907739490270615, 0.04732052609324455, 0.08635299652814865, 0.059958599507808685, 0.042411115020513535, 0.08478529006242752, -0.0028728076722472906, 0.018643278628587723, -0.04185817018151283, 0.1684386134147644, -0.08339263498783112, -5.1263299383208505e-8, 0.06422974914312363, 0.04801872372627258, -0.0211640652269125, 0.02146237902343273, 0.0011346298269927502, -0.053856223821640015, 0.060447923839092255, 0.03069419041275978, -0.03263464197516441, 0.012113828212022781, -0.02630450204014778, 0.001209127134643495, -0.05461660772562027, 0.016446271911263466, 0.10508259385824203, 0.020031940191984177, 0.004432355985045433, 0.037870120257139206, 0.01032054703682661, -0.10729125142097473, -0.022611714899539948, -0.07849632203578949, -0.03368319571018219, 0.01723787933588028, 0.025597987696528435, 0.05672895163297653, 0.048656169325113297, -0.013192211277782917, 0.02410278096795082, 0.015047150664031506, -0.019399045035243034, 0.009149349294602871, -0.05875394493341446, 0.09911812096834183, 0.003939089830964804, 0.042389512062072754, -0.134209543466568, 0.01896563731133938, 0.010492577217519283, 0.06948443502187729, -0.024626562371850014, -0.014527932740747929, -0.07598373293876648, -0.00022481949417851865, -0.0147972721606493, 0.049408208578825, -0.006999780889600515, 0.04637569934129715, -0.04666535183787346, 0.05437900125980377, -0.0022459039464592934, -0.0930575504899025, -0.028369314968585968, 0.05850549042224884, -0.06536982208490372, -0.011816746555268764, 0.0027943160384893417, -0.05462029203772545, 0.04734940081834793, -0.0060173687525093555, 0.02578154020011425, 0.04988899454474449, 0.0734652504324913, -0.04045254737138748 ]
0.201168
be specified, which requests two devices with the color white and size small. The large black device will be allocated if it is available. If it is not, but two small white devices are available, the pod will still be able to run. ```yaml apiVersion: resource.k8s.io/v1 kind: ResourceClaimTemplate metadata: name: prioritized-list-claim-template spec: spec: devices: requests: - name: req-0 firstAvailable: - name: large-black deviceClassName: resource.example.com selectors: - cel: expression: |- device.attributes["resource-driver.example.com"].color == "black" && device.attributes["resource-driver.example.com"].size == "large" - name: small-white deviceClassName: resource.example.com selectors: - cel: expression: |- device.attributes["resource-driver.example.com"].color == "white" && device.attributes["resource-driver.example.com"].size == "small" count: 2 ``` If the pod is eligible for multiple nodes in the cluster, the scheduler will use the index of chosen subrequests from any prioritized lists as one of the inputs when it scores each node. So nodes that can allocate devices requested in a higher ranked subrequest are more likely to be chosen than nodes that can only allocate devices for lower ranked subrequests. The decision is made on a per-Pod basis, so if the Pod is a member of a ReplicaSet or similar grouping, you cannot rely on all the members of the group having the same subrequest chosen. Your workload must be able to accommodate this. Prioritized lists is a \*beta feature\* and is enabled by default with the `DRAPrioritizedList` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/) in the kube-apiserver and kube-scheduler. ### ResourceSlice {#resourceslice} Each ResourceSlice represents one or more {{< glossary\_tooltip term\_id="device" text="devices" >}} in a pool. The pool is managed by a device driver, which creates and manages ResourceSlices. The resources in a pool might be represented by a single ResourceSlice or span multiple ResourceSlices. ResourceSlices provide useful information to device users and to the scheduler, and are crucial for dynamic resource allocation. Every ResourceSlice must include the following information: \* \*\*Resource pool\*\*: a group of one or more resources that the driver manages. The pool can span more than one ResourceSlice. Changes to the resources in a pool must be propagated across all of the ResourceSlices in that pool. The device driver that manages the pool is responsible for ensuring that this propagation happens. \* \*\*Devices\*\*: devices in the managed pool. A ResourceSlice can list every device in a pool or a subset of the devices in a pool. The ResourceSlice defines device information like attributes, versions, and capacity. Device users can select devices for allocation by filtering for device information in ResourceClaims or in DeviceClasses. \* \*\*Nodes\*\*: the nodes that can access the resources. Drivers can choose which nodes can access the resources, whether that's all of the nodes in the cluster, a single named node, or nodes that have specific node labels. Drivers use a {{< glossary\_tooltip text="controller" term\_id="controller" >}} to reconcile ResourceSlices in the cluster with the information that the driver has to publish. This controller overwrites any manual changes, such as cluster users creating or modifying ResourceSlices. Consider the following example ResourceSlice: ```yaml apiVersion: resource.k8s.io/v1 kind: ResourceSlice metadata: name: cat-slice spec: driver: "resource-driver.example.com" pool: generation: 1 name: "black-cat-pool" resourceSliceCount: 1 # The allNodes field defines whether any node in the cluster can access the device. allNodes: true devices: - name: "large-black-cat" attributes: color: string: "black" size: string: "large" cat: bool: true ``` This ResourceSlice is managed by the `resource-driver.example.com` driver in the `black-cat-pool` pool. The `allNodes: true` field indicates that any node in the cluster can access the devices. There's one device in the ResourceSlice, named `large-black-cat`, with the following attributes: \* `color`: `black` \* `size`: `large` \* `cat`: `true` A DeviceClass could select this ResourceSlice by using these attributes, and a ResourceClaim could filter for specific devices in that
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/dynamic-resource-allocation.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/dynamic-resource-allocation.md
[ 0.029467737302184105, 0.05556509643793106, 0.06461090594530106, 0.00827733613550663, 0.07979800552129745, -0.022397153079509735, 0.016431163996458054, -0.02530864253640175, 0.0635671317577362, 0.02870306931436062, -0.011107594706118107, -0.08186406642198563, 0.013242488726973534, 0.03404977172613144, 0.07139027863740921, 0.007110326085239649, 0.010602883994579315, -0.011397210881114006, -0.012296301312744617, 0.0007941092480905354, 0.12966704368591309, 0.05909538269042969, 0.05158974602818489, -0.01144933421164751, -0.10770106315612793, -0.042925022542476654, -0.0005254669231362641, 0.010982203297317028, 0.046489786356687546, -0.058254361152648926, 0.023297348991036415, 0.00675347400829196, 0.014251288957893848, 0.05553442984819412, 0.12771101295948029, 0.014972169883549213, -0.0193774551153183, -0.10966430604457855, -0.10296422988176346, -0.012519171461462975, 0.043075453490018845, -0.043817341327667236, -0.11270513385534286, -0.035087015479803085, -0.06097457930445671, 0.019772844389081, -0.02104257233440876, 0.02382710576057434, -0.023947913199663162, -0.050041314214468, 0.05581960827112198, -0.12393096089363098, 0.04493226110935211, 0.0001863807119661942, 0.0641719400882721, 0.0055579859763383865, -0.028700685128569603, 0.04970814660191536, 0.07386202365159988, 0.01344650611281395, 0.029307786375284195, -0.08905432373285294, 0.044575486332178116, -0.02290409244596958, 0.043982282280921936, 0.012584477663040161, -0.016341308131814003, 0.02723763696849346, -0.02108411304652691, 0.031676895916461945, 0.0924253910779953, -0.00008703709318069741, 0.02610684372484684, 0.009405005723237991, -0.012695549987256527, 0.06915659457445145, -0.002643831539899111, 0.042258743196725845, -0.014109134674072266, -0.13458281755447388, -0.053197458386421204, 0.02658492513000965, -0.03076980635523796, -0.00011847759742522612, 0.03171756863594055, 0.022825097665190697, -0.05611666664481163, -0.0164597500115633, -0.014784133061766624, 0.018729912117123604, 0.0372106097638607, -0.010188732296228409, 0.022474104538559914, -0.047592271119356155, 0.07699254900217056, 0.023596854880452156, -0.02246089279651642, -0.059843771159648895, -0.04696211963891983, 0.005377774126827717, 0.013384032994508743, 0.04437178745865822, 0.007303329650312662, 0.013599952682852745, 0.07958240061998367, -0.06873105466365814, -0.08177928626537323, -0.0017271600663661957, -0.0276670940220356, 0.028819043189287186, 0.0814412385225296, 0.010272420011460781, -0.026346400380134583, 0.05804882571101189, -0.011433939449489117, 0.04294142127037048, 0.019262000918388367, 0.08352696150541306, 0.01661987602710724, -0.015233499929308891, 0.033993493765592575, -0.047783125191926956, -0.022237088531255722, -0.025658437982201576, -0.038081638514995575, -0.0029045925475656986, -0.015623434446752071, 3.744287829336832e-33, 0.10168156027793884, -0.061314135789871216, -0.09184576570987701, -0.018726585432887077, 0.020234782248735428, -0.0937434658408165, 0.035708148032426834, 0.07065655291080475, -0.07154311239719391, -0.002511459868401289, 0.0036523398011922836, 0.08476147800683975, -0.053608547896146774, -0.060580529272556305, 0.012821569107472897, -0.022144539281725883, -0.025089683011174202, 0.07890650629997253, 0.061948809772729874, 0.028699157759547234, 0.023741312325000763, -0.06804932653903961, -0.02677510492503643, 0.0036289850249886513, -0.0027252119034528732, -0.014617576263844967, -0.025885874405503273, -0.08710408955812454, 0.0054913973435759544, 0.012854833155870438, -0.005415532272309065, -0.04301748424768448, 0.02829647995531559, 0.035593435168266296, -0.05723161995410919, -0.039428990334272385, -0.017328599467873573, 0.009799924679100513, -0.10344824194908142, -0.014619680121541023, -0.019556965678930283, 0.00509486673399806, -0.007858197204768658, -0.05856978893280029, -0.01861717738211155, -0.1208258867263794, 0.018606169149279594, -0.09507923573255539, 0.03580407798290253, 0.06939378380775452, 0.018274197354912758, -0.051531724631786346, 0.023809416219592094, -0.09399924427270889, 0.05632485821843147, -0.076920285820961, 0.006932009477168322, 0.01492284331470728, 0.035095296800136566, -0.028734220191836357, -0.05673101916909218, -0.03011825494468212, -0.04208872467279434, 0.015471762977540493, 0.015094824135303497, 0.07428062707185745, 0.02613675966858864, -0.008834577165544033, -0.06199430674314499, 0.034782782196998596, -0.003977270796895027, 0.04761228710412979, 0.020796502009034157, -0.0008900192915461957, -0.041722990572452545, -0.08559853583574295, 0.02146855928003788, 0.02517692930996418, -0.11854885518550873, 0.026455601677298546, -0.026299795135855675, 0.015184244140982628, -0.07192494720220566, 0.08174419403076172, -0.03928912431001663, -0.013916714116930962, 0.022282613441348076, 0.004553366918116808, -0.07515346258878708, 0.020720483735203743, -0.03008612059056759, -0.004924403969198465, -0.07191216945648193, -0.04265522584319115, -0.0921545922756195, -4.3022101416737216e-33, 0.05358367785811424, -0.007149684242904186, 0.06987429410219193, 0.01523833628743887, 0.004211368504911661, -0.050557348877191544, 0.050377584993839264, 0.04464421793818474, 0.015207345597445965, -0.01926988735795021, -0.007410869933664799, -0.021256202831864357, 0.05496037378907204, -0.020315444096922874, -0.035993270576000214, 0.06982272863388062, -0.10148397088050842, -0.008888592943549156, 0.0361173190176487, 0.04731936380267143, -0.06351706385612488, 0.08966600149869919, 0.09383196383714676, 0.011777589097619057, -0.0005862284451723099, 0.0020217588171362877, 0.017211930826306343, 0.02052227035164833, -0.04710019379854202, -0.05967763438820839, 0.050810929387807846, -0.1027250662446022, -0.09226551651954651, -0.006641169544309378, -0.006592773832380772, -0.05258900672197342, -0.033087439835071564, 0.1127593070268631, -0.0511808805167675, 0.06470600515604019, 0.05794517323374748, -0.025642411783337593, -0.06197018548846245, 0.008623563684523106, -0.05202414095401764, -0.06388545781373978, 0.08755793422460556, 0.00753813749179244, -0.0024039410054683685, -0.09542137384414673, 0.06424156576395035, 0.028172200545668602, -0.09105269610881805, 0.10701321065425873, -0.04021602123975754, 0.01979256607592106, 0.05818090960383415, 0.06315366923809052, -0.043867405503988266, 0.03144761174917221, 0.07371888309717178, -0.08689834177494049, -0.00932264793664217, 0.032127417623996735, -0.0023297774605453014, -0.07786691933870316, -0.013315809890627861, 0.018959514796733856, 0.0067892600782215595, 0.021007593721151352, 0.004006291273981333, -0.03327007219195366, 0.04388824477791786, 0.01516286376863718, -0.02411135844886303, -0.026947418227791786, -0.013277427293360233, -0.011564903892576694, 0.07877881824970245, 0.06741392612457275, -0.10710735619068146, 0.1143679991364479, -0.00041711851372383535, -0.00026248444919474423, 0.0914321169257164, 0.05800202861428261, 0.03539643809199333, 0.10672537237405777, 0.035787373781204224, 0.0750453844666481, -0.03713637590408325, 0.017232745885849, 0.02356044389307499, 0.10776986181735992, -0.06477763503789902, -4.7666389946243726e-8, 0.03352769464254379, 0.04057672619819641, 0.0470263846218586, 0.05089526250958443, 0.04743326082825661, -0.02112068422138691, 0.05791215971112251, 0.00135893770493567, -0.027687372639775276, 0.021958760917186737, -0.01627105101943016, 0.03459963947534561, -0.044126059859991074, 0.030353961512446404, -0.000619955884758383, -0.03287419304251671, -0.030750110745429993, 0.02890121378004551, -0.02694636769592762, -0.07288803905248642, -0.07319143414497375, -0.06991942226886749, 0.006769002415239811, -0.0018968957010656595, 0.027728497982025146, 0.07477258145809174, 0.03870369493961334, -0.03366699814796448, 0.023258289322257042, -0.021542934700846672, -0.04041703790426254, 0.0033628703095018864, -0.008078524842858315, 0.03175942227244377, 0.046374522149562836, 0.011998162604868412, -0.14244608581066132, 0.10414960980415344, -0.004263854119926691, 0.06578309834003448, -0.0967463031411171, -0.03675669804215431, -0.052029889076948166, 0.025731101632118225, 0.02693304792046547, -0.012944725342094898, -0.04045140743255615, 0.037498652935028076, -0.015431809239089489, 0.06479213386774063, 0.03349011763930321, -0.13370990753173828, -0.012769363820552826, 0.07786396890878677, -0.0369076244533062, -0.05091175436973572, 0.023337513208389282, -0.03605598583817482, 0.0002503555442672223, -0.003673192113637924, 0.10851364582777023, -0.04386378452181816, 0.038051456212997437, 0.004594616591930389 ]
0.105392
any node in the cluster can access the devices. There's one device in the ResourceSlice, named `large-black-cat`, with the following attributes: \* `color`: `black` \* `size`: `large` \* `cat`: `true` A DeviceClass could select this ResourceSlice by using these attributes, and a ResourceClaim could filter for specific devices in that DeviceClass. ## How resource allocation with DRA works {#how-it-works} The following sections describe the workflow for the various [types of DRA users](#dra-user-types) and for the Kubernetes system during dynamic resource allocation. ### Workflow for users {#user-workflow} 1. \*\*Driver creation\*\*: device owners or third-party entities create drivers that can create and manage ResourceSlices in the cluster. These drivers optionally also create DeviceClasses that define a category of devices and how to request them. 1. \*\*Cluster configuration\*\*: cluster admins create clusters, attach devices to nodes, and install the DRA device drivers. Cluster admins optionally create DeviceClasses that define categories of devices and how to request them. 1. \*\*Resource claims\*\*: workload operators create ResourceClaimTemplates or ResourceClaims that request specific device configurations within a DeviceClass. In the same step, workload operators modify their Kubernetes manifests to request those ResourceClaimTemplates or ResourceClaims. ### Workflow for Kubernetes {#kubernetes-workflow} 1. \*\*ResourceSlice creation\*\*: drivers in the cluster create ResourceSlices that represent one or more devices in a managed pool of similar devices. 1. \*\*Workload creation\*\*: the cluster control plane checks new workloads for references to ResourceClaimTemplates or to specific ResourceClaims. \* If the workload uses a ResourceClaimTemplate, a controller named the `resourceclaim-controller` generates ResourceClaims for every Pod in the workload. \* If the workload uses a specific ResourceClaim, Kubernetes checks whether that ResourceClaim exists in the cluster. If the ResourceClaim doesn't exist, the Pods won't deploy. 1. \*\*ResourceSlice filtering\*\*: for every Pod, Kubernetes checks the ResourceSlices in the cluster to find a device that satisfies all of the following criteria: \* The nodes that can access the resources are eligible to run the Pod. \* The ResourceSlice has unallocated resources that match the requirements of the Pod's ResourceClaim. 1. \*\*Resource allocation\*\*: after finding an eligible ResourceSlice for a Pod's ResourceClaim, the Kubernetes scheduler updates the ResourceClaim with the allocation details. 1. \*\*Pod scheduling\*\*: when resource allocation is complete, the scheduler places the Pod on a node that can access the allocated resource. The device driver and the kubelet on that node configure the device and the Pod's access to the device. ## Observability of dynamic resources {#observability-dynamic-resources} You can check the status of dynamically allocated resources by using any of the following methods: \* [kubelet device metrics](#monitoring-resources) \* [ResourceClaim status](#resourceclaim-device-status) \* [Device health monitoring](#device-health-monitoring) ### kubelet device metrics {#monitoring-resources} The `PodResourcesLister` kubelet gRPC service lets you monitor in-use devices. The `DynamicResource` message provides information that's specific to dynamic resource allocation, such as the device name and the claim name. For details, see [Monitoring device plugin resources](/docs/concepts/extend-kubernetes/compute-storage-net/device-plugins/#monitoring-device-plugin-resources). ### ResourceClaim device status {#resourceclaim-device-status} {{< feature-state feature\_gate\_name="DRAResourceClaimDeviceStatus" >}} DRA drivers can report driver-specific [device status](/docs/concepts/overview/working-with-objects/#object-spec-and-status) data for each allocated device in the `status.devices` field of a ResourceClaim. For example, the driver might list the IP addresses that are assigned to a network interface device. The accuracy of the information that a driver adds to a ResourceClaim `status.devices` field depends on the driver. Evaluate drivers to decide whether you can rely on this field as the only source of device information. If you disable the `DRAResourceClaimDeviceStatus` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/), the `status.devices` field automatically gets cleared when storing the ResourceClaim. A ResourceClaim device status is supported when it is possible, from a DRA driver, to update an existing ResourceClaim where the `status.devices` field is set. For details about the `status.devices` field, see the {{<
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/dynamic-resource-allocation.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/dynamic-resource-allocation.md
[ 0.02317138947546482, 0.0243113674223423, 0.035039644688367844, -0.0022587997373193502, -0.0008174664108082652, -0.013529974035918713, 0.04834869131445885, -0.019208291545510292, 0.05910062417387962, 0.009355495683848858, -0.05552796274423599, -0.06744088232517242, 0.016288021579384804, -0.021324319764971733, -0.002269099000841379, 0.01088381465524435, 0.05938619375228882, 0.010871700942516327, -0.038886163383722305, -0.01664069853723049, 0.09169413149356842, -0.01257752813398838, -0.009439847432076931, -0.02700747922062874, -0.10553611069917679, 0.001452261465601623, 0.03631671518087387, -0.01931280456483364, 0.06967650353908539, -0.05091851204633713, -0.047045495361089706, -0.008741453289985657, 0.01869349367916584, 0.0723297968506813, 0.055303554981946945, 0.00826250296086073, -0.0008961885469034314, -0.056235115975141525, -0.1378934532403946, 0.027157265692949295, 0.05405501648783684, -0.01730981282889843, -0.07503056526184082, 0.004130342975258827, -0.02177163027226925, -0.011680899187922478, -0.07038392871618271, 0.0022511363495141268, -0.039096567779779434, -0.09309416264295578, 0.054888173937797546, -0.03470112010836601, 0.028598610311746597, 0.10750830918550491, 0.013090121559798717, 0.017654240131378174, 0.022198937833309174, 0.01616334356367588, 0.11163143813610077, -0.005246893968433142, 0.03651559352874756, -0.06387823075056076, 0.053382907062768936, -0.040850747376680374, 0.015554499812424183, 0.0016365385381504893, 0.00135712674818933, 0.0012641893699765205, 0.013029168359935284, -0.045308325439691544, 0.07577258348464966, -0.01350595522671938, -0.02227666601538658, 0.008458421565592289, 0.03903428465127945, 0.060485754162073135, -0.015340297482907772, 0.08937212079763412, 0.00012505070480983704, -0.1119316816329956, 0.010657673701643944, 0.06953762471675873, 0.036409225314855576, -0.008732222951948643, -0.03163064271211624, 0.06537604331970215, -0.10504021495580673, -0.02297801710665226, 0.022150380536913872, 0.010961595922708511, -0.030843017622828484, 0.0065015885047614574, -0.04436299949884415, -0.1149972453713417, 0.02990349754691124, -0.02598702907562256, -0.01862346939742565, -0.11335841566324234, 0.05453900247812271, -0.0015305799897760153, 0.010408224537968636, 0.021693333983421326, -0.023171307519078255, 0.0017271137330681086, -0.06068304553627968, -0.049269769340753555, -0.06837689876556396, 0.00651272339746356, 0.009068215265870094, 0.04163869470357895, 0.024826204404234886, 0.08431848883628845, -0.04715019837021828, 0.03623020648956299, -0.0007136960630305111, -0.02420380339026451, 0.0371791273355484, 0.010486014187335968, 0.04601089283823967, 0.05474361404776573, -0.0333150215446949, -0.09249340742826462, -0.0172543004155159, -0.03545672819018364, 0.019436286762356758, 0.0156947560608387, -0.13061273097991943, 3.196401667362072e-33, 0.0687885656952858, -0.06850312650203705, 0.0067774103954434395, -0.03601859137415886, -0.00007473720324924216, -0.06793101131916046, -0.023737763985991478, -0.03342917189002037, -0.030786065384745598, -0.06922599673271179, -0.0743509829044342, 0.1508447229862213, -0.0111450320109725, -0.027859345078468323, 0.05924512445926666, -0.040689464658498764, -0.010054712183773518, 0.03997068852186203, 0.11366277188062668, 0.018309231847524643, 0.007739479653537273, -0.05252675712108612, 0.020834291353821754, 0.016192158684134483, 0.027847640216350555, -0.020454583689570427, 0.008504333905875683, -0.03080451488494873, 0.0834682360291481, 0.013702594675123692, -0.08462072163820267, -0.0542864166200161, 0.051293112337589264, 0.017972376197576523, -0.11296910047531128, 0.04137067124247551, -0.0998065322637558, 0.009302053600549698, -0.04264947772026062, -0.03313785046339035, -0.016235167160630226, -0.05118086189031601, 0.028251411393284798, -0.10701978206634521, -0.017928460612893105, -0.06379570066928864, 0.03147067874670029, -0.08554699271917343, -0.0006003478192724288, 0.04874657094478607, -0.0018882808508351445, -0.09347682446241379, 0.0708431527018547, -0.08492676913738251, 0.07259902358055115, -0.010603622533380985, 0.07596300542354584, -0.026578271761536598, 0.030506713315844536, 0.04824114218354225, -0.04798724129796028, 0.00202343612909317, 0.005161701235920191, 0.06682784855365753, 0.007749180309474468, 0.004931468516588211, 0.02488359808921814, 0.044037725776433945, -0.026577332988381386, -0.007832610048353672, -0.026513705030083656, 0.053076863288879395, 0.016792643815279007, 0.012286561541259289, -0.052138544619083405, -0.036360956728458405, -0.04031823202967644, 0.04940801113843918, -0.16372129321098328, 0.05793258547782898, -0.04339062049984932, -0.022530846297740936, -0.017443828284740448, 0.08166885375976562, -0.08339236676692963, -0.06976012885570526, -0.014162473380565643, -0.03280496224761009, -0.059844356030225754, 0.015843693166971207, 0.01400000136345625, -0.02930903248488903, -0.023799149319529533, 0.012814515270292759, -0.040623944252729416, -5.8395194496272015e-33, 0.02243635058403015, 0.027353547513484955, 0.04302659630775452, -0.03209288790822029, 0.04109329730272293, -0.028397640213370323, -0.03471120819449425, 0.027592534199357033, -0.020309682935476303, -0.04560256376862526, -0.03678537905216217, -0.027561018243432045, 0.02730085700750351, -0.03265570476651192, -0.06343444436788559, 0.02659180387854576, -0.019911115989089012, 0.0031727717723697424, -0.000341684150043875, 0.04265008866786957, -0.06810630112886429, 0.05245938524603844, 0.08547607809305191, 0.01105306576937437, -0.008687122724950314, 0.008601625449955463, 0.0065882205963134766, 0.026661956682801247, -0.06319382786750793, -0.07031085342168808, 0.001581454765982926, -0.15019641816616058, -0.04753449186682701, -0.004753043409436941, 0.06517280638217926, -0.07165876775979996, -0.044836558401584625, 0.06293565034866333, 0.03442535921931267, -0.014447445049881935, 0.0766967162489891, 0.012988313101232052, -0.004353262018412352, 0.026621762663125992, -0.023970041424036026, 0.004276497755199671, -0.001270983018912375, -0.05193058401346207, -0.03846891596913338, -0.09953305125236511, 0.03589019179344177, -0.0024733056779950857, -0.02932182513177395, 0.0816037505865097, -0.03782042860984802, 0.07958004623651505, 0.12882572412490845, 0.08695709705352783, 0.017701556906104088, 0.04732642322778702, 0.06975927948951721, -0.14651554822921753, -0.03556109592318535, 0.11095552146434784, -0.08771374076604843, -0.08513941615819931, 0.06014205515384674, -0.030965061858296394, -0.05624435842037201, 0.054749228060245514, 0.0005109523772262037, 0.007307855878025293, 0.021741408854722977, 0.08529405295848846, -0.050040047615766525, -0.012534527108073235, -0.013075877912342548, -0.03833963721990585, 0.03847108408808708, 0.021028853952884674, -0.06688917428255081, 0.036309026181697845, -0.03790787607431412, -0.0027556095737963915, 0.07189009338617325, 0.03613528981804848, 0.05434035509824753, 0.02123402990400791, 0.043710995465517044, 0.06114652380347252, -0.0656740814447403, -0.005566709209233522, -0.03753778338432312, 0.1066989004611969, -0.09130214899778366, -5.3139796563073105e-8, 0.059794943779706955, 0.00974273681640625, 0.010814779438078403, 0.018589146435260773, -0.025517497211694717, -0.07873768359422684, 0.04384304955601692, 0.048835545778274536, 0.007254411466419697, 0.07384705543518066, 0.028901858255267143, -0.02787310816347599, -0.0062043494544923306, -0.0282728374004364, 0.08940532058477402, 0.07569947093725204, 0.044684626162052155, -0.0010172986658290029, 0.0019936179742217064, -0.04846786707639694, -0.018336329609155655, -0.06923314183950424, 0.0034597839694470167, 0.04911259934306145, 0.06843167543411255, 0.046567365527153015, -0.012447022832930088, -0.027645541355013847, -0.00746124004945159, 0.04544990137219429, -0.008009959012269974, 0.018763616681098938, -0.03471338003873825, 0.07769916951656342, -0.005817731376737356, 0.010049726814031601, -0.11455126851797104, 0.04792919382452965, 0.02651291899383068, 0.09298860281705856, -0.026871513575315475, -0.01197244506329298, -0.0565754733979702, 0.007271667942404747, 0.017197739332914352, 0.03961393982172012, -0.0625438466668129, 0.029252436012029648, -0.03633417189121246, 0.08112997561693192, 0.0011435868218541145, -0.08559924364089966, -0.01563679240643978, 0.06320855766534805, -0.07988893985748291, -0.010436776094138622, 0.019149931147694588, -0.04714072123169899, 0.042268067598342896, 0.005598634015768766, 0.005623802542686462, 0.08210344612598419, 0.029697926715016365, 0.013566173613071442 ]
0.197489
you disable the `DRAResourceClaimDeviceStatus` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/), the `status.devices` field automatically gets cleared when storing the ResourceClaim. A ResourceClaim device status is supported when it is possible, from a DRA driver, to update an existing ResourceClaim where the `status.devices` field is set. For details about the `status.devices` field, see the {{< api-reference page="workload-resources/resource-claim-v1beta1" anchor="ResourceClaimStatus" text="ResourceClaim" >}} API reference. ### Device Health Monitoring {#device-health-monitoring} {{< feature-state feature\_gate\_name="ResourceHealthStatus" >}} As an alpha feature, Kubernetes provides a mechanism for monitoring and reporting the health of dynamically allocated infrastructure resources. For stateful applications running on specialized hardware, it is critical to know when a device has failed or become unhealthy. It is also helpful to find out if the device recovers. To enable this functionality, the `ResourceHealthStatus` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/resource-health-status/) must be enabled, and the DRA driver must implement the `DRAResourceHealth` gRPC service. When a DRA driver detects that an allocated device has become unhealthy, it reports this status back to the kubelet. This health information is then exposed directly in the Pod's status. The kubelet populates the `allocatedResourcesStatus` field in the status of each container, detailing the health of each device assigned to that container. This provides crucial visibility for users and controllers to react to hardware failures. For a Pod that is failing, you can inspect this status to determine if the failure was related to an unhealthy device. ## Pre-scheduled Pods When you - or another API client - create a Pod with `spec.nodeName` already set, the scheduler gets bypassed. If some ResourceClaim needed by that Pod does not exist yet, is not allocated or not reserved for the Pod, then the kubelet will fail to run the Pod and re-check periodically because those requirements might still get fulfilled later. Such a situation can also arise when support for dynamic resource allocation was not enabled in the scheduler at the time when the Pod got scheduled (version skew, configuration, feature gate, etc.). kube-controller-manager detects this and tries to make the Pod runnable by reserving the required ResourceClaims. However, this only works if those were allocated by the scheduler for some other pod. It is better to avoid bypassing the scheduler because a Pod that is assigned to a node blocks normal resources (RAM, CPU) that then cannot be used for other Pods while the Pod is stuck. To make a Pod run on a specific node while still going through the normal scheduling flow, create the Pod with a node selector that exactly matches the desired node: ```yaml apiVersion: v1 kind: Pod metadata: name: pod-with-cats spec: nodeSelector: kubernetes.io/hostname: name-of-the-intended-node ... ``` You may also be able to mutate the incoming Pod, at admission time, to unset the `.spec.nodeName` field and to use a node selector instead. ## DRA beta features {#beta-features} The following sections describe DRA features that are available in the Beta [feature stage](/docs/reference/command-line-tools-reference/feature-gates/#feature-stages). For more information, see [Set up DRA in the cluster](/docs/tasks/configure-pod-container/assign-resources/set-up-dra-cluster/). ### Admin access {#admin-access} {{< feature-state feature\_gate\_name="DRAAdminAccess" >}} You can mark a request in a ResourceClaim or ResourceClaimTemplate as having privileged features for maintenance and troubleshooting tasks. A request with admin access grants access to in-use devices and may enable additional permissions when making the device available in a container: ```yaml apiVersion: resource.k8s.io/v1 kind: ResourceClaimTemplate metadata: name: large-black-cat-claim-template spec: spec: devices: requests: - name: req-0 exactly: deviceClassName: resource.example.com allocationMode: All adminAccess: true ``` If this feature is disabled, the `adminAccess` field will be removed automatically when creating such a ResourceClaim. Admin access is a privileged mode and should not be granted to regular users in multi-tenant clusters. Starting with Kubernetes v1.33, only users authorized to create ResourceClaim or
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/dynamic-resource-allocation.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/dynamic-resource-allocation.md
[ -0.025198204442858696, 0.048529352992773056, 0.05143298581242561, 0.006118862424045801, 0.02647481858730316, -0.05999834090471268, 0.030942073091864586, -0.0242629311978817, 0.09380371868610382, 0.0610075443983078, -0.06686928123235703, -0.021551033481955528, -0.021335314959287643, 0.05009479448199272, -0.0366026796400547, -0.023265961557626724, 0.03997141495347023, -0.016756296157836914, -0.04688482731580734, 0.017364246770739555, 0.06967012584209442, 0.014970020391047001, 0.005811546463519335, 0.06126261502504349, -0.028429070487618446, 0.010572939179837704, 0.013906285166740417, -0.03607621043920517, 0.040079910308122635, -0.05436345189809799, -0.03226654976606369, -0.041204746812582016, -0.024650027975440025, 0.0024948609061539173, 0.06426098942756653, 0.07622681558132172, -0.03901904448866844, -0.09734956920146942, -0.1553690880537033, 0.026603681966662407, 0.04781913757324219, -0.07150592654943466, -0.1169261708855629, -0.0004822833579964936, 0.008514413610100746, 0.001827279687859118, -0.027474794536828995, -0.035669565200805664, 0.033109601587057114, -0.023230688646435738, 0.07485539466142654, -0.03085712343454361, 0.09412484616041183, 0.03140342980623245, 0.07370319962501526, 0.009713301435112953, 0.05529601871967316, 0.036791447550058365, 0.01808507926762104, 0.01712079718708992, 0.09960123896598816, -0.03364203870296478, 0.04863632097840309, -0.04951454699039459, 0.0045066759921610355, 0.06515485793352127, 0.06154352426528931, 0.0029185363091528416, -0.0039969501085579395, -0.016671516001224518, 0.0661693885922432, -0.000025882351110340096, -0.026619361713528633, -0.014168662019073963, 0.03886411711573601, 0.05960235744714737, -0.05862400680780411, -0.016740748658776283, 0.06908276677131653, -0.1163802444934845, -0.002040034392848611, 0.020576903596520424, 0.03636304661631584, 0.004642328713089228, -0.016733180731534958, 0.04710760340094566, -0.04352773353457451, -0.024155979976058006, 0.05758244916796684, -0.021930938586592674, 0.014140892773866653, -0.013657910749316216, -0.015338610857725143, -0.058631617575883865, 0.030269527807831764, -0.024014240130782127, -0.023054057732224464, -0.03207199648022652, -0.037442877888679504, 0.0032405443489551544, 0.03027411550283432, 0.02895933948457241, 0.004941347520798445, 0.04616791382431984, 0.05662519857287407, -0.057513318955898285, -0.03226420283317566, -0.00136418582405895, -0.02620816044509411, 0.033224623650312424, 0.06130661815404892, 0.05815259367227554, 0.0017898125806823373, 0.10269532352685928, 0.021728383377194405, 0.01390135195106268, -0.011855276301503181, 0.02263103984296322, 0.014262042939662933, 0.017159607261419296, 0.027133768424391747, -0.08933389186859131, -0.02212156355381012, -0.018764978274703026, 0.023032614961266518, 0.041882436722517014, -0.04978892579674721, 1.6322637212319887e-33, 0.0541125051677227, -0.054763805121183395, 0.04379294067621231, -0.03803454712033272, -0.037419311702251434, -0.12296884506940842, -0.012423328123986721, -0.02896016463637352, 0.002777728019282222, -0.02814767323434353, -0.0571836419403553, 0.13524118065834045, -0.017743686214089394, -0.06468932330608368, -0.015711748972535133, -0.026698529720306396, 0.005595515016466379, 0.03846963867545128, 0.13591742515563965, 0.009124836884438992, 0.08209343254566193, -0.1144079938530922, 0.029404981061816216, -0.007870378904044628, 0.06767155975103378, -0.019494280219078064, 0.014454328455030918, 0.00008461889228783548, 0.004515116568654776, 0.015819808468222618, -0.04326074942946434, -0.015059015713632107, 0.03427606448531151, -0.00715640839189291, -0.1295912265777588, -0.02777104452252388, -0.08203781396150589, 0.026227880269289017, -0.05697890371084213, 0.012556513771414757, -0.006337876431643963, -0.044744640588760376, -0.04698575660586357, -0.07262738794088364, 0.013298522680997849, -0.07912467420101166, -0.00003850469511235133, -0.1185961365699768, -0.0187331922352314, 0.02942640893161297, -0.04509662091732025, -0.03427986800670624, 0.06504349410533905, -0.10603473335504532, 0.013922403566539288, -0.023486141115427017, 0.05720467492938042, -0.10827861726284027, -0.03653765097260475, -0.009576564654707909, 0.006634439341723919, -0.007826844230294228, -0.04017259180545807, -0.01149966474622488, -0.015979545190930367, 0.027683820575475693, 0.030567612498998642, 0.07732822000980377, -0.09996270388364792, -0.03388327732682228, -0.006030035205185413, -0.02670363150537014, 0.01909148134291172, -0.03221295773983002, -0.03641654923558235, -0.09409669041633606, -0.011081951670348644, 0.03165523335337639, -0.21312831342220306, 0.02902526780962944, 0.036577142775058746, -0.023872045800089836, -0.016018077731132507, 0.1001199260354042, 0.00421439902856946, -0.047827914357185364, -0.014708517119288445, -0.05213427543640137, -0.07178368419408798, 0.0500190407037735, -0.004216577857732773, 0.006305483635514975, -0.00428027892485261, 0.04173605144023895, -0.09181398153305054, -2.5527152871891878e-33, 0.03511209413409233, -0.02916613593697548, 0.05523773282766342, 0.0032775697764009237, 0.01643170788884163, -0.028554873540997505, -0.0307073462754488, 0.08016283810138702, -0.018190933391451836, -0.05897260084748268, 0.015441113151609898, -0.04078604653477669, -0.05970340222120285, -0.022987397387623787, -0.032836802303791046, 0.06931949406862259, -0.06154299154877663, -0.027309607714414597, -0.03492296487092972, 0.0655648335814476, 0.0069015054032206535, 0.08902878314256668, 0.024603920057415962, 0.011873975396156311, -0.04064737260341644, 0.010319150984287262, -0.013189089484512806, 0.014644327573478222, -0.004014261998236179, -0.11072011291980743, 0.06078609079122543, -0.06912753731012344, -0.05229257419705391, -0.01383375283330679, 0.05765781179070473, -0.058774661272764206, 0.01315708365291357, 0.040717173367738724, -0.01663299649953842, 0.036006804555654526, 0.1307564675807953, 0.036225248128175735, 0.01728924550116062, 0.05950157344341278, 0.004915855824947357, -0.0127148712053895, 0.02227449044585228, -0.07726982980966568, -0.008300351910293102, -0.0787428617477417, 0.06199723109602928, 0.0011111825006082654, -0.007213060278445482, 0.1203961968421936, -0.051019590348005295, 0.0762542337179184, 0.07409590482711792, 0.05501275137066841, -0.03684711456298828, 0.02721506357192993, 0.06339345872402191, -0.13318735361099243, -0.03501148149371147, 0.08677094429731369, -0.032102279365062714, -0.05753472074866295, 0.07190374284982681, 0.04707656800746918, 0.05927840992808342, 0.06343372166156769, -0.007167424075305462, 0.017163032665848732, -0.01316547766327858, 0.020337147638201714, -0.02569136954843998, 0.01519165188074112, -0.06021919101476669, -0.08438623696565628, -0.013697704300284386, -0.0001720808504614979, -0.0036458810791373253, -0.02643546648323536, -0.031322840601205826, -0.03145051747560501, 0.06341299414634705, 0.03263930603861809, -0.004541791044175625, 0.05232899263501167, 0.05377057567238808, 0.12896062433719635, -0.08396033197641373, -0.004582516849040985, -0.13276702165603638, 0.10530542582273483, -0.09556828439235687, -5.40902043155711e-8, 0.08117079734802246, 0.03199063986539841, 0.00688712066039443, 0.00448684673756361, -0.007383421529084444, -0.12694232165813446, 0.05039522051811218, 0.028555667027831078, -0.026059512048959732, -0.008058562874794006, -0.02274981513619423, 0.014717914164066315, -0.03934052586555481, -0.01831587217748165, 0.06621744483709335, 0.01175681035965681, -0.00633805338293314, 0.08359397202730179, 0.02506714127957821, -0.03453593701124191, -0.027304956689476967, -0.0491829551756382, -0.004429356660693884, 0.01662709191441536, 0.04557429254055023, 0.013903968967497349, 0.08046257495880127, -0.028394943103194237, 0.0481078065931797, 0.024652956053614616, -0.025829732418060303, 0.00838606059551239, 0.03408155217766762, 0.05708730220794678, 0.03308892622590065, 0.03372132033109665, -0.027119971811771393, 0.03650164604187012, 0.017449336126446724, 0.04212541505694389, -0.028657181188464165, 0.02816944196820259, -0.046104930341243744, 0.03702118247747421, 0.0346188098192215, 0.021482761949300766, -0.03904910013079643, 0.07186436653137207, 0.03147571533918381, -0.024645613506436348, 0.001467714668251574, -0.06329943239688873, 0.01021043211221695, 0.08080475777387619, -0.051187340170145035, 0.025517642498016357, 0.013155991211533546, -0.047358300536870956, 0.02511860430240631, 0.013804121874272823, 0.08397544920444489, -0.021600626409053802, 0.008338132873177528, -0.03515119478106499 ]
0.180396
allocationMode: All adminAccess: true ``` If this feature is disabled, the `adminAccess` field will be removed automatically when creating such a ResourceClaim. Admin access is a privileged mode and should not be granted to regular users in multi-tenant clusters. Starting with Kubernetes v1.33, only users authorized to create ResourceClaim or ResourceClaimTemplate objects in namespaces labeled with `resource.k8s.io/admin-access: "true"` (case-sensitive) can use the `adminAccess` field. This ensures that non-admin users cannot misuse the feature. Starting with Kubernetes v1.34, this label has been updated to `resource.kubernetes.io/admin-access: "true"`. ## DRA alpha features {#alpha-features} The following sections describe DRA features that are available in the Alpha [feature stage](/docs/reference/command-line-tools-reference/feature-gates/#feature-stages). They depend on enabling feature gates and may depend on additional {{< glossary\_tooltip text="API groups" term\_id="api-group" >}}. For more information, see [Set up DRA in the cluster](/docs/tasks/configure-pod-container/assign-resources/set-up-dra-cluster/). ### Extended resource allocation by DRA {#extended-resource} {{< feature-state feature\_gate\_name="DRAExtendedResource" >}} You can provide an extended resource name for a DeviceClass. The scheduler will then select the devices matching the class for the extended resource requests. This allows users to continue using extended resource requests in a pod to request either extended resources provided by device plugin, or DRA devices. The same extended resource can be provided either by device plugin, or DRA on one single cluster node. The same extended resource can be provided by device plugin on some nodes, and DRA on other nodes in the same cluster. In the example below, the DeviceClass is given an extendedResourceName `example.com/gpu`. If a pod requested for the extended resource `example.com/gpu: 2`, it can be scheduled to a node with two or more devices matching the DeviceClass. ```yaml apiVersion: resource.k8s.io/v1 kind: DeviceClass metadata: name: gpu.example.com spec: selectors: - cel: expression: device.driver == 'gpu.example.com' && device.attributes['gpu.example.com'].type == 'gpu' extendedResourceName: example.com/gpu ``` In addition, users can use a special extended resource to allocate devices without having to explicitly create a ResourceClaim. Using the extended resource name prefix `deviceclass.resource.kubernetes.io/` and the DeviceClass name. This works for any DeviceClass, even if it does not specify an extended resource name. The resulting ResourceClaim will contain a request for an `ExactCount` of the specified number of devices of that DeviceClass. Extended resource allocation by DRA is an \*alpha feature\* and only enabled when the `DRAExtendedResource` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/) is enabled in the kube-apiserver, kube-scheduler, and kubelet. ### Partitionable devices {#partitionable-devices} {{< feature-state feature\_gate\_name="DRAPartitionableDevices" >}} Devices represented in DRA don't necessarily have to be a single unit connected to a single machine, but can also be a logical device comprised of multiple devices connected to multiple machines. These devices might consume overlapping resources of the underlying phyical devices, meaning that when one logical device is allocated other devices will no longer be available. In the ResourceSlice API, this is represented as a list of named CounterSets, each of which contains a set of named counters. The counters represent the resources available on the physical device that are used by the logical devices advertised through DRA. Logical devices can specify the ConsumesCounters list. Each entry contains a reference to a CounterSet and a set of named counters with the amounts they will consume. So for a device to be allocatable, the referenced counter sets must have sufficient quantity for the counters referenced by the device. CounterSets must be specified in separate ResourceSlices from devices. Devices can consume counters from any CounterSet defined in the same resource pool as the device. Here is an example of two devices, each consuming 6Gi of memory from the a shared counter with 8Gi of memory. Thus, only one of the devices can be allocated at any point in time. The scheduler handles this
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/dynamic-resource-allocation.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/dynamic-resource-allocation.md
[ -0.005489286035299301, 0.0022240544203668833, 0.0045583234168589115, 0.046785201877355576, -0.016582932323217392, 0.014179691672325134, 0.03661954030394554, -0.09125711023807526, 0.04816794767975807, 0.05680673569440842, 0.0023446448612958193, -0.047742120921611786, -0.04584198445081711, 0.06550604850053787, 0.03711521625518799, 0.025428788736462593, 0.047600869089365005, -0.0169613566249609, -0.03701803460717201, -0.006107039283961058, 0.050216350704431534, -0.030661219730973244, -0.012994213029742241, 0.007808321621268988, 0.0005915711517445743, -0.02450321614742279, -0.09004789590835571, -0.012768224813044071, 0.08512944728136063, -0.0400821678340435, -0.06742095202207565, -0.01938120275735855, 0.0527678057551384, -0.02274799346923828, 0.07885969430208206, 0.08656058460474014, -0.03820434585213661, -0.04651714488863945, -0.08947665989398956, 0.038946401327848434, 0.0429694727063179, 0.02629108540713787, -0.12007728219032288, -0.03681541979312897, -0.022425755858421326, 0.014899153262376785, -0.013645541854202747, -0.0049773817881941795, -0.031960632652044296, -0.019225621595978737, 0.12556138634681702, -0.030748635530471802, 0.06505292654037476, 0.052343521267175674, 0.013769881799817085, 0.035039808601140976, 0.010099844075739384, 0.05502001941204071, 0.040084484964609146, -0.00045452130143530667, -0.005477119702845812, -0.023216132074594498, 0.024993333965539932, -0.02698902226984501, -0.01227766927331686, 0.022047488018870354, 0.03656138852238655, -0.04128497838973999, -0.0243485439568758, -0.03945782035589218, 0.09293925017118454, -0.003475583391264081, -0.06170543655753136, 0.01847171224653721, 0.05120106041431427, 0.05246153846383095, -0.07250098884105682, 0.06605970114469528, 0.10010769963264465, -0.10799423605203629, 0.020544882863759995, 0.05014645308256149, 0.019162921234965324, -0.03186523914337158, -0.07327452301979065, 0.027529355138540268, -0.08777695149183273, -0.10235027223825455, 0.0691322460770607, 0.03535135090351105, 0.0672903060913086, -0.056433625519275665, 0.04468820244073868, -0.08150675892829895, 0.04448679834604263, -0.07140391319990158, -0.011558737605810165, 0.026424065232276917, -0.03681176155805588, -0.03587646037340164, -0.04736107215285301, 0.03975331038236618, -0.026043890044093132, 0.00992022454738617, 0.04321833699941635, -0.02645712159574032, 0.012689860537648201, -0.033021531999111176, -0.023981578648090363, 0.06363876909017563, 0.011462412774562836, 0.052276019006967545, 0.016641438007354736, -0.010455792769789696, 0.01564050279557705, -0.0020631183870136738, -0.027201902121305466, -0.06359551101922989, 0.04791717976331711, 0.013390874490141869, 0.03669844567775726, -0.09242366254329681, 0.006155461072921753, 0.04115010052919388, 0.03857250511646271, 0.05604194849729538, -0.12953294813632965, 3.0223390556671153e-33, 0.06975793838500977, -0.040162891149520874, -0.013768897391855717, 0.008525592274963856, 0.008228029124438763, -0.0712830200791359, -0.044935472309589386, -0.03462645038962364, -0.058804839849472046, -0.03464781120419502, -0.025037746876478195, 0.1286785900592804, -0.0010888840770348907, -0.0993538349866867, 0.037824954837560654, 0.00216978183016181, 0.052073366940021515, 0.03307902440428734, 0.10005803406238556, 0.021395888179540634, 0.07919897139072418, -0.00739678181707859, 0.008636539801955223, 0.012835617177188396, 0.025960050523281097, -0.05088867247104645, -0.013464994728565216, -0.0497727207839489, 0.01959744282066822, 0.027633454650640488, -0.09430201351642609, -0.03166285529732704, 0.02417903020977974, 0.06393887847661972, -0.12378767877817154, -0.009744674898684025, -0.0874415710568428, -0.008243641816079617, -0.05147511512041092, 0.0013547291746363044, -0.00878141075372696, -0.04885189235210419, 0.021089693531394005, -0.0894273966550827, 0.04643407091498375, -0.057873573154211044, 0.08809113502502441, -0.04819406569004059, 0.047140106558799744, 0.08335409313440323, -0.03982196003198624, -0.009570837020874023, 0.045976780354976654, -0.02209826000034809, 0.05669090524315834, -0.017330268397927284, 0.06810431182384491, -0.06970008462667465, -0.02854665368795395, -0.007883219048380852, -0.01665167696774006, 0.04058809205889702, -0.01568923331797123, 0.01582261547446251, -0.08499699831008911, -0.04857207462191582, -0.01405472680926323, 0.041871797293424606, -0.05299670621752739, -0.0275993961840868, -0.03991121053695679, -0.0033381045795977116, -0.051381103694438934, 0.05755744129419327, -0.06613846123218536, -0.1159764900803566, 0.042309172451496124, 0.06141325831413269, -0.0984574630856514, 0.026988953351974487, 0.013438250869512558, -0.050288859754800797, 0.0113841462880373, 0.14824792742729187, -0.021290920674800873, -0.05607589706778526, 0.031954165548086166, -0.013789980672299862, -0.027265116572380066, -0.05335808917880058, 0.020490514114499092, -0.024961896240711212, -0.003203813685104251, 0.0690162256360054, -0.08535139262676239, -5.091873818435533e-33, 0.05387711152434349, -0.033589109778404236, 0.022637631744146347, -0.05929882824420929, -0.021882189437747, 0.05837041884660721, -0.034396253526210785, 0.08395351469516754, -0.010609949938952923, -0.10755956918001175, -0.021097425371408463, -0.0136830760166049, 0.011726340278983116, 0.02068568952381611, -0.020213821902871132, 0.033531222492456436, -0.08744358271360397, 0.004917085636407137, -0.02423173002898693, 0.03402651101350784, 0.011064893566071987, 0.041915081441402435, 0.06736374646425247, 0.0667903944849968, -0.011495516635477543, -0.04896939545869827, -0.016072720289230347, 0.02619202621281147, 0.01236125361174345, -0.033455993980169296, -0.014719215221703053, -0.07991401106119156, -0.10207284986972809, -0.023549910634756088, -0.007475133053958416, -0.09936897456645966, 0.002605750225484371, 0.05475323647260666, -0.06101738661527634, 0.08474236726760864, 0.05843866989016533, -0.006072380114346743, 0.022788794711232185, 0.03199686482548714, 0.02252761647105217, 0.06551064550876617, 0.073311448097229, -0.08066626638174057, 0.012690909206867218, -0.08667556196451187, 0.020587407052516937, -0.025388985872268677, 0.026463903486728668, 0.10906359553337097, -0.0880713164806366, 0.06349700689315796, 0.09542650729417801, 0.059505075216293335, 0.06688161939382553, 0.0336378812789917, 0.07718340307474136, -0.03297734260559082, 0.004072797019034624, 0.0663624182343483, -0.046172987669706345, -0.08277944475412369, 0.030001964420080185, 0.056619495153427124, -0.03880941867828369, 0.054928235709667206, -0.024344157427549362, -0.08134633302688599, -0.030964920297265053, 0.011561809107661247, -0.025340205058455467, 0.02865065261721611, -0.0023620370775461197, -0.05675456300377846, 0.03180563449859619, -0.01538042537868023, -0.057087771594524384, 0.01775345951318741, -0.0008320386405102909, 0.0165263582020998, 0.07107749581336975, 0.02717834897339344, 0.043147314339876175, 0.018202392384409904, -0.016874264925718307, 0.10788559913635254, -0.05646449699997902, -0.03072039596736431, -0.06910740584135056, 0.14899416267871857, -0.03033984638750553, -5.328245933355902e-8, 0.040455225855112076, 0.060872893780469894, -0.04656665772199631, -0.036978140473365784, 0.057507675141096115, -0.13769018650054932, 0.014692350290715694, 0.04013707861304283, -0.05216088145971298, -0.00013191370817366987, -0.0016252845525741577, 0.08465423434972763, -0.06458838284015656, -0.00989486277103424, 0.059796325862407684, 0.017072802409529686, -0.06772860139608383, 0.015494266524910927, 0.007641038857400417, -0.07924400269985199, 0.004123770631849766, -0.08243239670991898, -0.013332693837583065, -0.03985153138637543, -0.0002650592941790819, 0.012169986963272095, 0.035634465515613556, 0.008329460397362709, 0.02459571324288845, 0.04661143198609352, -0.03669153153896332, 0.02961045689880848, -0.0033301478251814842, 0.026871131733059883, 0.03664442524313927, 0.039832212030887604, -0.06558085232973099, -0.01888158917427063, -0.036142200231552124, -0.0035494044423103333, -0.046737175434827805, 0.006076359655708075, 0.011940755881369114, 0.034843284636735916, 0.018193313851952553, 0.0879879966378212, 0.03521668538451195, 0.05886899679899216, 0.06210197135806084, -0.050074249505996704, -0.010602330788969994, 0.002620088402181864, -0.049727898091077805, 0.0940127819776535, -0.01651836186647415, -0.02611500397324562, -0.022758163511753082, -0.015659485012292862, 0.07109704613685608, -0.020228127017617226, 0.07111051678657532, 0.004498784430325031, 0.013476756401360035, -0.05084476247429848 ]
0.089307
any CounterSet defined in the same resource pool as the device. Here is an example of two devices, each consuming 6Gi of memory from the a shared counter with 8Gi of memory. Thus, only one of the devices can be allocated at any point in time. The scheduler handles this and it is transparent to the consumer as the ResourceClaim API is not affected. ```yaml kind: ResourceSlice apiVersion: resource.k8s.io/v1 metadata: name: resourceslice-with-countersets spec: nodeName: worker-1 pool: name: pool generation: 1 resourceSliceCount: 2 driver: dra.example.com sharedCounters: - name: gpu-1-counters counters: memory: value: 8Gi --- kind: ResourceSlice apiVersion: resource.k8s.io/v1 metadata: name: resourceslice-with-devices spec: nodeName: worker-1 pool: name: pool generation: 1 resourceSliceCount: 2 driver: dra.example.com devices: - name: device-1 consumesCounters: - counterSet: gpu-1-counters counters: memory: value: 6Gi - name: device-2 consumesCounters: - counterSet: gpu-1-counters counters: memory: value: 6Gi ``` Partitionable devices is an \*alpha feature\* and only enabled when the `DRAPartitionableDevices` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/) is enabled in the kube-apiserver and kube-scheduler. ## Consumable capacity {{< feature-state feature\_gate\_name="DRAConsumableCapacity" >}} The consumable capacity feature allows the same devices to be consumed by multiple independent ResourceClaims, with the Kubernetes scheduler managing how much of the device's capacity is used up by each claim. This is analogous to how Pods can share the resources on a Node; ResourceClaims can share the resources on a Device. The device driver can set `allowMultipleAllocations` field added in `.spec.devices` of `ResourceSlice` to allow allocating that device to multiple independent ResourceClaims or to multiple requests within a ResourceClaim. Users can set `capacity` field added in `spec.devices.requests` of `ResourceClaim` to specify the device resource requirements for each allocation. For the device that allows multiple allocations, the requested capacity is drawn from — or consumed from — its total capacity, a concept known as \*\*consumable capacity\*\*. Then, the scheduler ensures that the aggregate consumed capacity across all claims does not exceed the device’s overall capacity. Furthermore, driver authors can use the `requestPolicy` constraints on individual device capacities to control how those capacities are consumed. For example, the driver author can specify that a given capacity is only consumed in increments of 1Gi. Here is an example of a network device which allows multiple allocations and contains a consumable bandwidth capacity. ```yaml kind: ResourceSlice apiVersion: resource.k8s.io/v1 metadata: name: resourceslice spec: nodeName: worker-1 pool: name: pool generation: 1 resourceSliceCount: 1 driver: dra.example.com devices: - name: eth1 allowMultipleAllocations: true attributes: name: string: "eth1" capacity: bandwidth: requestPolicy: default: "1M" validRange: min: "1M" step: "8" value: "10G" ``` The consumable capacity can be requested as shown in the below example. ```yaml apiVersion: resource.k8s.io/v1 kind: ResourceClaimTemplate metadata: name: bandwidth-claim-template spec: spec: devices: requests: - name: req-0 exactly: deviceClassName: resource.example.com capacity: requests: bandwidth: 1G ``` The allocation result will include the consumed capacity and the identifier of the share. ```yaml apiVersion: resource.k8s.io/v1 kind: ResourceClaim ... status: allocation: devices: results: - consumedCapacity: bandwidth: 1G device: eth1 shareID: "a671734a-e8e5-11e4-8fde-42010af09327" ``` In this example, a multiply-allocatable device was chosen. However, any `resource.example.com` device with at least the requested 1G bandwidth could have met the requirement. If a non-multiply-allocatable device were chosen, the allocation would have resulted in the entire device. To force the use of a only multiply-allocatable devices, you can use the CEL criteria `device.allowMultipleAllocations == true`. ### Device taints and tolerations {#device-taints-and-tolerations} {{< feature-state feature\_gate\_name="DRADeviceTaints" >}} Device taints are similar to node taints: a taint has a string key, a string value, and an effect. The effect is applied to the ResourceClaim which is using a tainted device and to all Pods referencing that ResourceClaim. The "NoSchedule" effect prevents scheduling those Pods. Tainted devices are ignored when trying to allocate a ResourceClaim because
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/dynamic-resource-allocation.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/dynamic-resource-allocation.md
[ -0.06448674201965332, -0.009220417588949203, -0.07544595748186111, 0.054945167154073715, -0.012589793652296066, -0.0444541834294796, 0.03783242404460907, -0.0423547625541687, 0.09128794074058533, 0.010528584942221642, -0.04646265134215355, -0.0315944142639637, 0.050004348158836365, 0.0628226026892662, 0.015791699290275574, -0.00810171477496624, 0.041460998356342316, -0.0556148998439312, -0.05745730549097061, 0.00033368420554324985, 0.14219217002391815, 0.0574052520096302, -0.023705260828137398, 0.05116076022386551, -0.002129602013155818, -0.02617083489894867, 0.005772416014224291, -0.031018437817692757, 0.09299170225858688, -0.037102729082107544, -0.0058963121846318245, -0.014331575483083725, -0.03616433963179588, 0.00878656841814518, 0.08907786756753922, 0.01959320157766342, -0.031007686629891396, -0.09151631593704224, -0.03695062920451164, 0.06107533723115921, 0.05751621350646019, 0.01360301487147808, -0.07048927992582321, 0.006771295331418514, -0.027773985639214516, 0.03183252364397049, -0.04859035834670067, 0.06414024531841278, -0.07341518998146057, -0.021001122891902924, 0.10393699258565903, -0.02334306202828884, 0.016049878671765327, 0.03882279992103577, 0.026372835040092468, 0.03595737740397453, 0.03762359917163849, -0.05133926868438721, 0.034021321684122086, 0.06744643300771713, -0.033210594207048416, -0.08977260440587997, 0.039453741163015366, -0.013591471128165722, 0.04070410132408142, -0.0022130676079541445, 0.020310431718826294, 0.028945883736014366, -0.01779627986252308, -0.028012799099087715, 0.015596899203956127, -0.009827597998082638, 0.04307131469249725, -0.0046843173913657665, 0.012099388986825943, 0.03828073665499687, -0.022783774882555008, 0.01466857548803091, 0.04034627601504326, -0.15363582968711853, -0.048048101365566254, 0.0082955127581954, 0.03365747258067131, -0.052261222153902054, 0.012374662794172764, -0.022643093019723892, 0.0052129835821688175, 0.024707190692424774, 0.044254716485738754, 0.005640738643705845, 0.04777750372886658, 0.07934390008449554, 0.013862433843314648, -0.03251585364341736, 0.07555564492940903, 0.03627055883407593, -0.09937605261802673, -0.01922512985765934, -0.013838794082403183, -0.017964761704206467, 0.02909991703927517, 0.048696890473365784, -0.002680597361177206, 0.08055776357650757, -0.006928383372724056, -0.02613854594528675, -0.08217617869377136, 0.06102258712053299, -0.11084035038948059, 0.025430524721741676, 0.09436744451522827, 0.0531720370054245, 0.04455679655075073, 0.055103104561567307, 0.03708834573626518, 0.03126528859138489, 0.026412004604935646, -0.026557350531220436, 0.07702778279781342, -0.025862907990813255, -0.015204519033432007, -0.05438661202788353, -0.00892573595046997, -0.049065545201301575, 0.00896567665040493, 0.03315601497888565, -0.05208728089928627, 3.9828477956804916e-33, 0.010042103938758373, -0.0735970139503479, -0.008111119270324707, -0.12516799569129944, -0.011682669632136822, -0.09594845026731491, -0.0174972303211689, 0.049548596143722534, 0.03146613389253616, -0.07696367800235748, 0.00497813243418932, 0.0675966814160347, -0.01698450557887554, -0.016285596415400505, 0.0032273102551698685, -0.008333388715982437, 0.08218932151794434, 0.08037008345127106, 0.07590120285749435, 0.019336577504873276, 0.030855361372232437, -0.02021219953894615, -0.019629400223493576, -0.02903294935822487, -0.005653844214975834, 0.028813475742936134, 0.0007808221271261573, -0.02263757400214672, 0.031000424176454544, -0.003290706779807806, 0.03437734767794609, -0.034091077744960785, -0.003841293742880225, 0.048461850732564926, -0.011601542122662067, 0.025378279387950897, -0.03224126622080803, 0.043694667518138885, -0.04303354769945145, 0.021077146753668785, -0.01488047931343317, 0.030006876215338707, 0.01578415557742119, -0.05698823928833008, -0.07658786326646805, -0.12092901766300201, 0.005751986522227526, -0.06224457547068596, -0.05936725065112114, 0.0567665658891201, 0.003953782841563225, -0.038188472390174866, -0.02230137586593628, -0.025379065424203873, 0.028816604986786842, -0.05206115171313286, 0.003998348489403725, -0.04049209505319595, 0.0784662514925003, 0.07406545430421829, -0.024623068049550056, -0.022804653272032738, -0.0717526450753212, 0.02619275636970997, 0.004658435937017202, 0.024214396253228188, 0.02204219624400139, 0.031341034919023514, -0.05629583075642586, 0.08494361490011215, 0.010320382192730904, 0.01431018952280283, 0.009639345109462738, 0.04559196159243584, -0.036283936351537704, -0.056837696582078934, 0.018532272428274155, -0.0016218771925196052, -0.20591884851455688, 0.035105980932712555, 0.006224595941603184, 0.06079501286149025, 0.016185911372303963, -0.0270533487200737, -0.15913672745227814, -0.03664788231253624, -0.0036455639638006687, 0.010072569362819195, -0.022443560883402824, -0.01184539683163166, 0.03733108565211296, -0.0335346981883049, 0.002444789046421647, -0.0025142997037619352, -0.07686235010623932, -5.24802685534075e-33, -0.04794645681977272, -0.0031031344551593065, 0.07359947264194489, 0.051784221082925797, 0.03195200860500336, -0.048134107142686844, -0.013194253668189049, 0.026756873354315758, -0.012482871301472187, -0.055834587663412094, -0.05553232878446579, 0.055461399257183075, 0.00003478061989881098, -0.00968592893332243, 0.025868400931358337, -0.030116042122244835, 0.0184702780097723, 0.013194302096962929, -0.034297723323106766, 0.028140706941485405, -0.001863157725892961, 0.0801267921924591, 0.09200295060873032, -0.058506693691015244, 0.009835738688707352, 0.002752328524366021, -0.06828217208385468, 0.0034997668117284775, 0.0739559754729271, -0.04034998640418053, 0.05962095782160759, -0.12601134181022644, -0.04513448476791382, -0.042676400393247604, 0.018137693405151367, -0.0857745110988617, -0.03291765972971916, 0.06673157960176468, -0.020611776039004326, 0.04302804917097092, 0.1380983591079712, -0.04185710474848747, -0.0012965193018317223, 0.045993778854608536, 0.014199746772646904, 0.0029808739200234413, -0.019760096445679665, -0.05005071684718132, -0.03087843768298626, -0.07424026727676392, 0.033649787306785583, 0.023409318178892136, -0.030502041801810265, 0.11214534193277359, 0.0071056620217859745, -0.017322717234492302, 0.10288029909133911, 0.01235238928347826, 0.019562628120183945, -0.027272328734397888, 0.09525910764932632, -0.07521041482686996, -0.08992987126111984, 0.03529277816414833, -0.012779118493199348, -0.04739687591791153, 0.009579593315720558, -0.05188755691051483, -0.008390506729483604, 0.058142829686403275, 0.05029144138097763, 0.00303322053514421, -0.09152544289827347, -0.05883225426077843, -0.0797964483499527, 0.03935326263308525, -0.0798494890332222, -0.04521258920431137, -0.06437580287456512, 0.051713213324546814, -0.12783680856227875, 0.00931841041892767, 0.024991199374198914, -0.005871588829904795, 0.00592742208391428, -0.02155389077961445, 0.046367429196834564, 0.01672864519059658, -0.02765163592994213, 0.07712508738040924, -0.07861822098493576, -0.0783495157957077, -0.08996227383613586, 0.09737668186426163, -0.05881751328706741, -5.359042276609216e-8, 0.04919099062681198, -0.026044530794024467, 0.04877503961324692, 0.009001093916594982, 0.006447087973356247, -0.14919036626815796, 0.05585885047912598, 0.015335713513195515, 0.03678927198052406, 0.11254572123289108, 0.06995988637208939, -0.044148534536361694, 0.020710362121462822, -0.052664417773485184, 0.044445451349020004, 0.04816626384854317, 0.057342417538166046, 0.04219875857234001, 0.028416234999895096, -0.08185793459415436, -0.0004836723965127021, -0.04064895957708359, 0.01059738639742136, -0.06503971666097641, 0.0046575055457651615, 0.050246160477399826, 0.04849483072757721, 0.03637556731700897, 0.00007289424684131518, -0.027627207338809967, 0.00481769721955061, -0.004488168749958277, 0.016618892550468445, -0.03243514150381088, 0.06933335959911346, -0.025996258482336998, -0.05267742648720741, 0.02775176241993904, 0.02947218343615532, 0.05805119872093201, -0.053873516619205475, -0.037311967462301254, 0.010687927715480328, 0.07410838454961777, 0.09407580643892288, 0.04570116102695465, -0.12542511522769928, -0.001840893179178238, -0.051652710884809494, 0.005778962280601263, -0.04622713103890419, -0.0343690887093544, 0.002233979059383273, 0.038869064301252365, 0.005644361488521099, -0.02294502779841423, 0.015008452348411083, -0.0833238810300827, -0.027309691533446312, 0.014340592548251152, 0.06865926086902618, 0.022580530494451523, -0.01639372669160366, -0.01834648847579956 ]
0.120609
a taint has a string key, a string value, and an effect. The effect is applied to the ResourceClaim which is using a tainted device and to all Pods referencing that ResourceClaim. The "NoSchedule" effect prevents scheduling those Pods. Tainted devices are ignored when trying to allocate a ResourceClaim because using them would prevent scheduling of Pods. The "NoExecute" effect implies "NoSchedule" and in addition causes eviction of all Pods which have been scheduled already. This eviction is implemented in the device taint eviction controller in kube-controller-manager by deleting affected Pods. The "None" effect is ignored by the scheduler and eviction controller. DRA drivers can use it to communicate exceptions to admins or other controllers, like for example degraded health of a device. Admins can also use it to do dry-runs of pod eviction in DeviceTaintRules (more on that below). ResourceClaims can tolerate taints. If a taint is tolerated, its effect does not apply. An empty toleration matches all taints. A toleration can be limited to certain effects and/or match certain key/value pairs. A toleration can check that a certain key exists, regardless which value it has, or it can check for specific values of a key. For more information on this matching see the [node taint concepts](/docs/concepts/scheduling-eviction/taint-and-toleration#concepts). Eviction can be delayed by tolerating a taint for a certain duration. That delay starts at the time when a taint gets added to a device, which is recorded in a field of the taint. Taints apply as described above also to ResourceClaims allocating "all" devices on a node. All devices must be untainted or all of their taints must be tolerated. Allocating a device with admin access (described [above](#admin-access)) is not exempt either. An admin using that mode must explicitly tolerate all taints to access tainted devices. Device taints and tolerations is an \*alpha feature\* and only enabled when the `DRADeviceTaints` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/) is enabled in the kube-apiserver, kube-controller-manager and kube-scheduler. To use DeviceTaintRules, the `resource.k8s.io/v1alpha3` API version must be enabled. You can add taints to devices in the following ways, by using the DeviceTaintRule API kind. #### Taints set by the driver A DRA driver can add taints to the device information that it publishes in ResourceSlices. Consult the documentation of a DRA driver to learn whether the driver uses taints and what their keys and values are. #### Taints set by an admin {{< feature-state feature\_gate\_name="DRADeviceTaintRules" >}} An admin or a control plane component can taint devices without having to tell the DRA driver to include taints in its device information in ResourceSlices. They do that by creating DeviceTaintRules. Each DeviceTaintRule adds one taint to devices which match the device selector. Without such a selector, no devices are tainted. This makes it harder to accidentally evict all pods using ResourceClaims when leaving out the selector by mistake. Devices can be selected by giving the name of a DeviceClass, driver, pool, and/or device. The DeviceClass selects all devices that are selected by the selectors in that DeviceClass. With just the driver name, an admin can taint all devices managed by that driver, for example while doing some kind of maintenance of that driver across the entire cluster. Adding a pool name can limit the taint to a single node, if the driver manages node-local devices. Finally, adding the device name can select one specific device. The device name and pool name can also be used alone, if desired. For example, drivers for node-local devices are encouraged to use the node name as their pool name. Then tainting with that pool name automatically taints all devices on a node. Drivers might
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/dynamic-resource-allocation.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/dynamic-resource-allocation.md
[ 0.001167205860838294, 0.042339619249105453, 0.04602312669157982, 0.007852633483707905, 0.06660213321447372, 0.013229693286120892, 0.01841091178357601, -0.0021529421210289, 0.09829279780387878, 0.006684295367449522, 0.04380002245306969, -0.03734013810753822, 0.020034348592162132, -0.03291226923465729, -0.06071872636675835, -0.0024785299319773912, 0.06932860612869263, -0.019982686266303062, -0.08380983769893646, 0.011096280999481678, 0.07907811552286148, 0.018560493364930153, -0.052885644137859344, 0.012783762998878956, -0.08851498365402222, 0.011678492650389671, -0.014461547136306763, -0.03216042369604111, 0.11167659610509872, -0.09327927976846695, -0.07134359329938889, 0.02580537088215351, -0.015484733507037163, -0.015617708675563335, 0.06768343597650528, 0.02395726926624775, 0.012940793298184872, -0.0642208606004715, -0.09538035094738007, 0.0045821997337043285, 0.0402049757540226, -0.012393692508339882, -0.104425810277462, 0.007744754198938608, -0.03085343725979328, -0.023030083626508713, -0.006906142458319664, -0.06643344461917877, -0.05552823841571808, -0.1079346314072609, 0.056245941668748856, -0.03805657476186752, 0.07970073074102402, 0.0576590932905674, 0.034585241228342056, -0.04521792009472847, 0.035321980714797974, -0.02829771488904953, 0.029387272894382477, 0.018720023334026337, 0.04837446287274361, -0.02138458378612995, 0.02135581523180008, -0.007861821912229061, 0.09661723673343658, -0.042898911982774734, 0.046696342527866364, -0.003632328473031521, 0.049682725220918655, 0.009365527890622616, 0.007541964761912823, -0.07649502158164978, 0.002510393038392067, 0.05373524874448776, 0.021964414045214653, 0.05585692822933197, -0.07654877007007599, 0.09594496339559555, 0.047562919557094574, -0.0979284942150116, -0.056314341723918915, -0.027253402397036552, 0.06129125505685806, -0.03209559991955757, -0.02570207044482231, -0.022193951532244682, -0.04731814190745354, -0.028259044513106346, 0.12442230433225632, 0.10470737516880035, 0.059946365654468536, 0.05625466629862785, 0.05494958534836769, -0.07176155596971512, 0.05296853929758072, -0.03619254007935524, 0.014220287092030048, 0.031339049339294434, -0.010231518186628819, 0.02926994487643242, -0.013572366908192635, 0.014976979233324528, -0.1376010775566101, 0.06271414458751678, 0.06536845117807388, -0.04971480742096901, -0.06741522252559662, -0.11050191521644592, -0.008069085888564587, 0.016269799321889877, -0.004897511098533869, 0.030082684010267258, 0.05602347478270531, 0.047650959342718124, -0.0622815378010273, 0.009992744773626328, 0.0056877764873206615, 0.01771095208823681, 0.04171467572450638, 0.028462445363402367, 0.029772711917757988, -0.09662780910730362, 0.007528805173933506, 0.026422346010804176, -0.007231306750327349, 0.004750645719468594, -0.02789154462516308, 2.958593282718969e-33, 0.06647544354200363, -0.0661681517958641, -0.0282012727111578, -0.09521549195051193, -0.014164530672132969, -0.09331144392490387, -0.033378977328538895, -0.02391171082854271, 0.06671623140573502, 0.002258874475955963, -0.04342474415898323, 0.07784843444824219, -0.018049361184239388, -0.05004134401679039, 0.05381283536553383, -0.016592808067798615, -0.019876573234796524, -0.016959600150585175, 0.05630258470773697, -0.017454000189900398, 0.06325888633728027, -0.023629650473594666, -0.037733666598796844, -0.013884207233786583, 0.006744814105331898, 0.0013418246526271105, 0.0013606365537270904, -0.07790973782539368, 0.009121619164943695, 0.042649414390325546, -0.07950729876756668, -0.04166534170508385, 0.04909911006689072, 0.0626043975353241, -0.07636742293834686, 0.011158321052789688, -0.0732702910900116, 0.005544082727283239, -0.04515064135193825, -0.036826685070991516, -0.03204791247844696, -0.05143994092941284, -0.01948319934308529, -0.08177156746387482, 0.06660069525241852, -0.07160836458206177, 0.042548228055238724, -0.05792882293462753, -0.018266644328832626, 0.04510237276554108, 0.022494912147521973, -0.01824319176375866, 0.0699048638343811, -0.06941191107034683, -0.03761740028858185, -0.019473522901535034, 0.06770556420087814, -0.06751106679439545, -0.09422137588262558, 0.04485036060214043, -0.060516782104969025, 0.008581587113440037, -0.015955964103341103, 0.010159087367355824, 0.006410996895283461, 0.0404588058590889, 0.0008627435890957713, -0.047403521835803986, -0.014489647001028061, -0.0470358207821846, -0.060792453587055206, 0.03902512416243553, -0.006055431440472603, 0.04811989888548851, -0.07215507328510284, -0.09023627638816833, -0.020258566364645958, 0.043896716088056564, -0.12350297719240189, -0.018368735909461975, 0.051359329372644424, 0.004720175638794899, -0.025168225169181824, 0.07822120934724808, -0.05538134276866913, -0.04239843040704727, -0.00623320322483778, 0.009616075083613396, -0.02676451951265335, -0.007680367678403854, 0.07384209334850311, -0.013474218547344208, -0.011417926289141178, 0.05862525478005409, -0.022039467468857765, -3.6077247731300525e-33, 0.020038416609168053, -0.04203576222062111, -0.010687715373933315, 0.06702947616577148, 0.004998117685317993, 0.011855199933052063, -0.05760419741272926, 0.09825868159532547, 0.02812434919178486, -0.0849418193101883, -0.02061293087899685, -0.0184765812009573, -0.0003713082114700228, 0.050788722932338715, -0.06526870280504227, 0.02669503353536129, -0.012726926244795322, -0.0036558997817337513, -0.09471256285905838, 0.010086036287248135, 0.012950767762959003, 0.048937611281871796, -0.008853322826325893, -0.011115560308098793, -0.018471479415893555, 0.0290018692612648, -0.010314126498997211, 0.03642946109175682, -0.013988924212753773, 0.010174873284995556, 0.07503814995288849, -0.05428919196128845, -0.003054083790630102, -0.03701987862586975, 0.025166410952806473, -0.07803014665842056, 0.0114584406837821, 0.08315746486186981, -0.03222116827964783, -0.023167593404650688, 0.10599493235349655, 0.06059296429157257, 0.011360212229192257, 0.030412327498197556, 0.011361266486346722, 0.06467638164758682, -0.07726156711578369, -0.06398480385541916, 0.05796361342072487, -0.06585773825645447, 0.10968869179487228, 0.012029461562633514, 0.02482437901198864, 0.10664203763008118, -0.02201436273753643, 0.014619696885347366, 0.12755338847637177, -0.015221471898257732, -0.03914390876889229, 0.0721348226070404, 0.039350856095552444, -0.0707930475473404, 0.022534627467393875, 0.010668293572962284, -0.02509305253624916, -0.017235055565834045, 0.014563817530870438, 0.026599623262882233, 0.05855993926525116, -0.03166080266237259, 0.09190075844526291, -0.018579913303256035, -0.02040756121277809, -0.017378607764840126, 0.006256421562284231, 0.036206189543008804, -0.0031942424830049276, -0.0725955069065094, -0.031412143260240555, -0.015640592202544212, -0.1318618655204773, 0.034478262066841125, 0.022137973457574844, 0.02076699770987034, 0.04574386030435562, 0.015538797713816166, 0.023687923327088356, -0.0028920492623001337, 0.0613330714404583, 0.0858011320233345, -0.017380520701408386, -0.022615009918808937, -0.041876744478940964, 0.10936591029167175, -0.044325344264507294, -4.922183904909616e-8, 0.07750502228736877, -0.06543376296758652, 0.021623242646455765, 0.02621820941567421, 0.03627493977546692, -0.06590454280376434, 0.06156216189265251, -0.04792552441358566, -0.03583311289548874, 0.0015789610333740711, 0.09119883179664612, 0.017255105078220367, -0.056122634559869766, -0.057433899492025375, 0.11527038365602493, 0.07091286033391953, 0.0359945110976696, 0.03413739427924156, -0.0604960098862648, -0.0637817531824112, -0.08930878341197968, -0.04138288274407387, -0.032909855246543884, -0.011352438479661942, 0.04950592666864395, 0.03110797517001629, 0.0823734775185585, 0.05030764639377594, 0.11387898772954941, 0.007813878357410431, -0.012659219093620777, 0.02973901852965355, 0.016889367252588272, 0.035225968807935715, -0.10941417515277863, 0.07025673240423203, -0.05958499759435654, -0.0486297607421875, 0.01760977879166603, 0.08756718784570694, -0.05205635353922844, 0.010149647481739521, -0.05694285035133362, 0.014227046631276608, 0.036648545414209366, 0.015120766125619411, -0.0626320168375969, -0.018858537077903748, -0.06499610096216202, 0.007359066046774387, -0.014507626183331013, -0.04921369254589081, -0.025435255840420723, 0.08688543736934662, -0.024099161848425865, -0.007627028971910477, 0.06781493872404099, -0.014269017614424229, 0.010635112412273884, -0.025103269144892693, 0.05482324957847595, -0.023960556834936142, 0.04799574986100197, -0.002160064410418272 ]
0.204937
can select one specific device. The device name and pool name can also be used alone, if desired. For example, drivers for node-local devices are encouraged to use the node name as their pool name. Then tainting with that pool name automatically taints all devices on a node. Drivers might use stable names like "gpu-0" that hide which specific device is currently assigned to that name. To support tainting a specific hardware instance, CEL selectors can be used in a DeviceTaintRule to match a vendor-specific unique ID attribute, if the driver supports one for its hardware. The taint applies as long as the DeviceTaintRule exists. It can be modified and and removed at any time. Here is one example of a DeviceTaintRule for a fictional DRA driver: ```yaml apiVersion: resource.k8s.io/v1alpha3 kind: DeviceTaintRule metadata: name: example spec: # The entire hardware installation for this # particular driver is broken. # Evict all pods and don't schedule new ones. deviceSelector: driver: dra.example.com taint: key: dra.example.com/unhealthy value: Broken effect: NoExecute ``` The apiserver automatically tracks when this taint was created and the eviction controller adds a condition with some information: ``` kubectl describe devicetaintrules ``` ``` Name: example ... Spec: Device Selector: Driver: dra.example.com Taint: Effect: NoExecute Key: dra.example.com/unhealthy Time Added: 2025-11-05T18:15:37Z Value: Broken Status: Conditions: Last Transition Time: 2025-11-05T18:15:37Z Message: 1 pod evicted since starting the controller. Observed Generation: 1 Reason: Completed Status: False Type: EvictionInProgress Events: ``` Pods get evicted by deleting them. Usually this happens very quickly, except when a toleration for the taint delays it for a certain period or when there are very many pods which need to be evicted. When it takes longer, the message provides information about the current status: 2 pods need to be evicted in 2 different namespaces. 1 pod evicted since starting the controller. The condition can be used to check whether an eviction is currently active: kubectl wait --for=condition=EvictionInProgress=false DeviceTaintRule/example Beware of the potential race between scheduler and controller observing the new taint at different times, which can lead to pods still being scheduled at a time when the controller thinks that there are none which need to be evicted and thus sets this condition to `False`. In practice, this race is made very unlikely by updating the status only after an intentional delay of a few seconds. For `effect: None`, the message provides information about the number of affected devices, how many of those are allocated, and how many pods would be evicted if the effect was `NoExecute`. This can be used to do a dry-run before actually triggering eviction: - Create a DeviceTaintRule with the desired selectors and `effect: None`. - Review the message: 3 published devices selected. 1 allocated device selected. 1 pod would be evicted in 1 namespace if the effect was NoExecute. This information will not be updated again. Recreate the DeviceTaintRule to trigger an update. Published devices are those listed in ResourceSlices. Tainting them prevents allocation for new pods. Only allocated devices cause eviction of the pods using them. - Edit the DeviceTaintRule and change the effect into `NoExecute`. ### Device Binding Conditions {#device-binding-conditions} {{< feature-state feature\_gate\_name="DRADeviceBindingConditions" >}} Device Binding Conditions allow the Kubernetes scheduler to delay Pod binding until external resources, such as fabric-attached GPUs or reprogrammable FPGAs, are confirmed to be ready. This waiting behavior is implemented in the [PreBind phase](/docs/concepts/scheduling-eviction/scheduling-framework/#pre-bind) of the scheduling framework. During this phase, the scheduler checks whether all required device conditions are satisfied before proceeding with binding. This improves scheduling reliability by avoiding premature binding and enables coordination with external device controllers. To use this feature, device drivers (typically
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/dynamic-resource-allocation.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/dynamic-resource-allocation.md
[ -0.04332840442657471, 0.04977879673242569, 0.03726436570286751, -0.029404817149043083, 0.05502106994390488, -0.07045666128396988, 0.07637207210063934, -0.02879878133535385, 0.03523753955960274, -0.08629313111305237, 0.012300342321395874, -0.08671659231185913, 0.012472972273826599, 0.0169406458735466, -0.003750784555450082, 0.00288506131619215, 0.028797389939427376, 0.07065143436193466, 0.005943468771874905, 0.055372826755046844, 0.10010728985071182, 0.035720743238925934, -0.04645897075533867, 0.019071953371167183, -0.1194920614361763, -0.025497108697891235, 0.10777761042118073, 0.018514161929488182, 0.03609510138630867, -0.11254328489303589, 0.020276296883821487, 0.08834470808506012, -0.03032209724187851, 0.0400301069021225, 0.051078274846076965, -0.05919012054800987, -0.08394188433885574, -0.07030719518661499, -0.0882202684879303, -0.0703183189034462, 0.07745789736509323, -0.028760714456439018, -0.06596462428569794, 0.035136062651872635, -0.02741163782775402, -0.018766066059470177, -0.036964546889066696, 0.014208106324076653, 0.009514744393527508, -0.05071735382080078, 0.05373982712626457, -0.02490895614027977, 0.04561856389045715, 0.024413306266069412, 0.02714460901916027, -0.05244392156600952, 0.017762616276741028, -0.011405807919800282, 0.0490640327334404, 0.0860038474202156, 0.03286157548427582, -0.03820914030075073, 0.05762753263115883, -0.00794562790542841, 0.05639791116118431, 0.036186300218105316, -0.012018351815640926, -0.0822039321064949, 0.03498348221182823, -0.002154767047613859, 0.037169620394706726, -0.02614452876150608, 0.06304263323545456, 0.033128686249256134, 0.06285035610198975, 0.05681310221552849, -0.03711944445967674, 0.04851045459508896, -0.024319343268871307, -0.11604119092226028, -0.03786919638514519, 0.05476566031575203, 0.026049839332699776, -0.02452661097049713, 0.025462424382567406, 0.07551803439855576, -0.07161043584346771, -0.028078150004148483, 0.05786675587296486, 0.03544411435723305, -0.04974834993481636, -0.018244676291942596, 0.03191416710615158, -0.0701213926076889, 0.07377536594867706, 0.023145513609051704, 0.021003058180212975, -0.06034235283732414, -0.023454507812857628, 0.031650327146053314, -0.029902266338467598, 0.01926300674676895, -0.08487283438444138, 0.07969004660844803, -0.058797162026166916, -0.03545716777443886, -0.10527347028255463, -0.06417790800333023, -0.05047241598367691, -0.03961385041475296, 0.01750926673412323, 0.08672285825014114, -0.03972749412059784, 0.009571104310452938, -0.05281875282526016, 0.001697895466350019, 0.03483517840504646, 0.04964442551136017, 0.06023017317056656, -0.02345832996070385, -0.1009189784526825, -0.03886288404464722, 0.012403863482177258, -0.04768433794379234, 0.04021937772631645, 0.034259434789419174, -0.06882720440626144, 6.45908211432732e-33, 0.05395280942320824, -0.03983324021100998, -0.07217197865247726, -0.023565426468849182, -0.007886890321969986, -0.04642011225223541, 0.037837911397218704, 0.005166761577129364, 0.05829819664359093, -0.03180336207151413, -0.028774341568350792, 0.05867135524749756, -0.019096311181783676, -0.058201469480991364, 0.0275045745074749, -0.002725307596847415, -0.05438924953341484, 0.004824207630008459, 0.04991093650460243, 0.008285941556096077, 0.011717094108462334, 0.008548513986170292, -0.012357035651803017, -0.03648502007126808, 0.003235535928979516, 0.041989777237176895, -0.07192718982696533, -0.017641181126236916, 0.09385055303573608, 0.06590104103088379, -0.08755195885896683, -0.07384821027517319, 0.0329967625439167, 0.04582155495882034, -0.030251100659370422, 0.07364033162593842, -0.10678799450397491, -0.011041789315640926, -0.021561546251177788, 0.027080949395895004, 0.04996957629919052, -0.0198866855353117, -0.01132260262966156, -0.009996365755796432, -0.0625954270362854, -0.08184973150491714, -0.0625818595290184, -0.1010732352733612, -0.003738132305443287, -0.025174543261528015, -0.01811067759990692, -0.03392452374100685, 0.07077480107545853, -0.15896248817443848, 0.003233948489651084, -0.06496202200651169, -0.01961740106344223, -0.0005153717938810587, 0.02189808525145054, 0.024578968062996864, -0.045397497713565826, 0.039962973445653915, -0.07292468845844269, 0.07264446467161179, -0.0038087826687842607, 0.051041726022958755, 0.06927942484617233, -0.05404117703437805, -0.0716279074549675, -0.01934068277478218, -0.04718078672885895, 0.057957522571086884, -0.03914063423871994, -0.027272257953882217, -0.04518623650074005, -0.04084205999970436, -0.04513808712363243, 0.03513600677251816, -0.09459862112998962, 0.03559558093547821, -0.03416629880666733, 0.05220545083284378, -0.023252904415130615, 0.06807728856801987, -0.062171999365091324, -0.06824251264333725, -0.027278974652290344, -0.06188010796904564, -0.04680890962481499, -0.025695689022541046, 0.007841811515390873, 0.007915833964943886, 0.03579985722899437, 0.008340940810739994, -0.024578958749771118, -7.685642143801235e-33, -0.0635903850197792, -0.07088817656040192, 0.11890846490859985, 0.051472216844558716, 0.014369216747581959, -0.08684239536523819, 0.0036396151408553123, 0.018317611888051033, -0.004412184469401836, -0.037559133023023605, -0.00025644840206950903, 0.04286034405231476, 0.01968235708773136, -0.10466606914997101, -0.006542842835187912, 0.10810914635658264, -0.1153789535164833, -0.028579451143741608, -0.019563687965273857, 0.06845614314079285, -0.021855968981981277, 0.05810198187828064, 0.053796619176864624, -0.004705000203102827, -0.00823892280459404, -0.02215815894305706, 0.027904491871595383, 0.034716732800006866, 0.031183430925011635, -0.08531563729047775, 0.014373171143233776, 0.025072360411286354, 0.0055619473569095135, -0.014383417554199696, 0.009736339561641216, -0.059309087693691254, -0.0076629389077425, 0.020816219970583916, -0.0014852361055091023, -0.0044790515676140785, 0.07628883421421051, 0.029767438769340515, -0.039461683481931686, 0.06816233694553375, 0.0067621394991874695, 0.016550958156585693, -0.023930836468935013, -0.00996122881770134, 0.029607482254505157, -0.01466077845543623, -0.0002155087422579527, 0.0159886684268713, -0.0615069717168808, 0.039712999016046524, -0.019331570714712143, 0.02363584004342556, 0.09745540469884872, 0.07043405622243881, 0.014959990046918392, 0.07440883666276932, 0.13165485858917236, -0.07109658420085907, -0.04088158160448074, 0.06456802040338516, -0.053347308188676834, -0.034261032938957214, -0.00488220015540719, 0.017087610438466072, -0.028675835579633713, 0.015670297667384148, 0.056588269770145416, -0.0324428491294384, -0.03946270793676376, -0.022787103429436684, -0.04891776293516159, -0.02442021295428276, -0.02681913785636425, -0.05281803011894226, -0.013981306925415993, 0.024895502254366875, -0.04916553944349289, 0.07490060478448868, -0.02766953967511654, 0.0597313828766346, 0.09739155322313309, 0.0036970465444028378, 0.016956577077507973, 0.06476877629756927, 0.034314438700675964, 0.011582866311073303, -0.024533450603485107, -0.05682797357439995, -0.06573821604251862, 0.1035941019654274, -0.07315776497125626, -5.354819165859226e-8, 0.05458959564566612, -0.02056274749338627, -0.0011774589074775577, 0.01230284571647644, -0.016154512763023376, -0.056574732065200806, -0.005906837992370129, 0.0005912775523029268, 0.015684504061937332, 0.039775822311639786, 0.05391078442335129, -0.03167998790740967, -0.004928602837026119, -0.02799566462635994, 0.10887043923139572, 0.09370362013578415, 0.010721721686422825, 0.11407839506864548, -0.020105117931962013, -0.015137004666030407, 0.023037901148200035, -0.026547249406576157, 0.00386153650470078, 0.04335453361272812, 0.0394584946334362, -0.005550748202949762, 0.0002248831297038123, -0.06216922774910927, 0.01802326925098896, 0.002062566112726927, -0.05732712522149086, 0.007180985063314438, 0.039343010634183884, 0.13522587716579437, 0.017954936251044273, 0.014890630729496479, -0.07876136898994446, 0.003075022017583251, 0.04719199240207672, 0.1282862275838852, -0.03520241007208824, -0.02845848724246025, -0.04674084112048149, 0.014277882874011993, -0.015452051535248756, 0.0159844309091568, 0.001582700526341796, -0.04908077046275139, -0.02230869047343731, 0.11994349956512451, 0.001904849661514163, -0.06596636027097702, 0.0016633353661745787, 0.05307421088218689, -0.03668114170432091, 0.02394062466919422, 0.00032171994098462164, -0.054791245609521866, -0.026747142896056175, -0.05466482788324356, 0.030631402507424355, 0.04320293664932251, 0.12968696653842926, 0.010787542909383774 ]
0.129279
behavior is implemented in the [PreBind phase](/docs/concepts/scheduling-eviction/scheduling-framework/#pre-bind) of the scheduling framework. During this phase, the scheduler checks whether all required device conditions are satisfied before proceeding with binding. This improves scheduling reliability by avoiding premature binding and enables coordination with external device controllers. To use this feature, device drivers (typically managed by driver owners) must publish the following fields in the `Device` section of a `ResourceSlice`. Cluster administrators must enable the `DRADeviceBindingConditions` and `DRAResourceClaimDeviceStatus` feature gates for the scheduler to honor these fields. - `bindingConditions`: A list of condition types that must be set to True in the status.conditions field of the associated ResourceClaim before the Pod can be bound. These typically represent readiness signals such as "DeviceAttached" or "DeviceInitialized". - `bindingFailureConditions`: A list of condition types that, if set to True in status.conditions field of the associated ResourceClaim, indicate a failure state. If any of these conditions are True, the scheduler will abort binding and reschedule the Pod. - `bindsToNode`: if set to `true`, the scheduler records the selected node name in the `status.allocation.nodeSelector` field of the ResourceClaim. This does not affect the Pod's `spec.nodeSelector`. Instead, it sets a node selector inside the ResourceClaim, which external controllers can use to perform node-specific operations such as device attachment or preparation. All condition types listed in bindingConditions and bindingFailureConditions are evaluated from the `status.conditions` field of the ResourceClaim. External controllers are responsible for updating these conditions using standard Kubernetes condition semantics (`type`, `status`, `reason`, `message`, `lastTransitionTime`). The scheduler waits up to \*\*600 seconds\*\* (default) for all `bindingConditions` to become `True`. If the timeout is reached or any `bindingFailureConditions` are `True`, the scheduler clears the allocation and reschedules the Pod. This timeout duration is configurable by the user through `KubeSchedulerConfiguration`. ```yaml apiVersion: resource.k8s.io/v1 kind: ResourceSlice metadata: name: gpu-slice spec: driver: dra.example.com nodeSelector: nodeSelectorTerms: - matchExpressions: - key: accelerator-type operator: In values: - "high-performance" pool: name: gpu-pool generation: 1 resourceSliceCount: 1 devices: - name: gpu-1 attributes: vendor: string: "example" model: string: "example-gpu" bindsToNode: true bindingConditions: - dra.example.com/is-prepared bindingFailureConditions: - dra.example.com/preparing-failed ``` This example ResourceSlice has the following properties: - The ResourceSlice targets nodes labeled with `accelerator-type=high-performance`, so that the scheduler uses only a specific set of eligible nodes. - The scheduler selects one node from the selected group (for example, `node-3`) and sets the `status.allocation.nodeSelector` field in the ResourceClaim to that node name. - The `dra.example.com/is-prepared` binding condition indicates that the device `gpu-1` must be prepared (the `is-prepared` condition has a status of `True`) before binding. - If the `gpu-1` device preparation fails (the `preparing-failed` condition has a status of `True`), the scheduler aborts binding. - The scheduler waits up to 600 seconds (default) for the device to become ready. - External controllers can use the node selector in the ResourceClaim to perform node-specific setup on the selected node. An example of configuring this timeout in `KubeSchedulerConfiguration` is given below: ```yaml apiVersion: kubescheduler.config.k8s.io/v1 kind: KubeSchedulerConfiguration profiles: - schedulerName: default-scheduler pluginConfig: - name: DynamicResources args: apiVersion: kubescheduler.config.k8s.io/v1 kind: DynamicResourcesArgs bindingTimeout: 60s ``` ## {{% heading "whatsnext" %}} - [Set Up DRA in a Cluster](/docs/tasks/configure-pod-container/assign-resources/set-up-dra-cluster/) - [Allocate devices to workloads using DRA](/docs/tasks/configure-pod-container/assign-resources/allocate-devices-dra/) - For more information on the design, see the [Dynamic Resource Allocation with Structured Parameters](https://github.com/kubernetes/enhancements/tree/master/keps/sig-node/4381-dra-structured-parameters) KEP.
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/dynamic-resource-allocation.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/dynamic-resource-allocation.md
[ -0.06870686262845993, -0.00692730164155364, 0.01877523772418499, 0.043110985308885574, 0.022681038826704025, -0.023464465513825417, -0.017307084053754807, -0.03232952207326889, 0.010825170204043388, 0.019763683900237083, -0.01887495256960392, 0.007888710126280785, 0.019535282626748085, 0.034126538783311844, -0.0045593418180942535, -0.0016647307202219963, 0.044803470373153687, -0.07113245129585266, -0.045101284980773926, 0.03594620153307915, 0.08050867915153503, 0.025671429932117462, -0.04867081344127655, 0.05053117126226425, -0.07484836131334305, -0.05395498499274254, 0.03571591526269913, -0.055684857070446014, 0.07404907047748566, 0.014189597219228745, -0.07942739129066467, 0.012110122479498386, 0.07312111556529999, 0.003738701343536377, 0.026017453521490097, 0.04572560265660286, -0.013093776069581509, -0.0859612375497818, -0.11910750716924667, -0.05450250580906868, 0.03228301182389259, -0.06784405559301376, -0.056744035333395004, 0.006975224707275629, -0.06464096903800964, -0.012263912707567215, 0.012674900703132153, 0.027296246960759163, -0.09549298882484436, -0.042709920555353165, 0.028509311378002167, 0.0034767359029501677, 0.019215548411011696, 0.025813741609454155, 0.034680671989917755, 0.10389792919158936, 0.06834837049245834, 0.01667054183781147, 0.058571282774209976, -0.010203871876001358, 0.05126328021287918, -0.05494438111782074, -0.05438845232129097, 0.01898610033094883, 0.04228048399090767, 0.034432440996170044, 0.07081610709428787, -0.04211094230413437, 0.043482013046741486, -0.00464595016092062, -0.031851381063461304, -0.027997342869639397, 0.01105435285717249, 0.04358706995844841, 0.00952205341309309, 0.07538235187530518, 0.021317459642887115, 0.008074958808720112, 0.04321347177028656, -0.15301118791103363, -0.1082044318318367, 0.01169536728411913, 0.05227123945951462, -0.007444141432642937, 0.05483363941311836, 0.006578647065907717, -0.04643411189317703, 0.017185863107442856, 0.07774145901203156, 0.021788500249385834, 0.01679328642785549, 0.026792827993631363, -0.04706167057156563, -0.012266354635357857, -0.0158995334059, 0.03245782107114792, 0.017511475831270218, -0.02351231314241886, 0.0065931836143136024, 0.0026922859251499176, 0.02442154847085476, 0.002503103343769908, -0.041694819927215576, 0.02740001119673252, -0.0007701837457716465, -0.09667307138442993, -0.04518502205610275, -0.08528255671262741, -0.06379423290491104, 0.013026639819145203, 0.10639294981956482, 0.026645110920071602, 0.07042672485113144, -0.01550078671425581, -0.05087652429938316, 0.09634502232074738, -0.011053917929530144, 0.05689404532313347, 0.038706086575984955, -0.04206575080752373, -0.0627630278468132, -0.0600467287003994, 0.07100994884967804, -0.09577403217554092, 0.019462410360574722, -0.02264895662665367, -0.055526167154312134, 4.253748917693134e-33, -0.0021666160319000483, -0.0919601321220398, -0.059589557349681854, -0.01922418922185898, -0.012604212388396263, -0.04560091719031334, -0.002309271600097418, 0.03967693820595741, 0.0392921008169651, -0.04429730027914047, 0.032864827662706375, 0.035335980355739594, 0.007378432899713516, -0.036404479295015335, -0.006725354585796595, -0.060428209602832794, 0.05763617157936096, 0.05041038990020752, 0.05373717099428177, 0.03574903681874275, 0.03470142185688019, -0.10109808295965195, -0.051789987832307816, -0.047255124896764755, 0.058143746107816696, 0.0489174984395504, 0.009629380889236927, -0.04283932223916054, 0.08758610486984253, 0.04914558306336403, 0.020144185051321983, -0.019786939024925232, -0.03923808038234711, 0.02175094746053219, -0.035340435802936554, 0.04382937401533127, -0.07958943396806717, -0.0197612214833498, -0.030576568096876144, -0.01656622439622879, -0.043642278760671616, -0.08745420724153519, -0.06342372298240662, -0.08044204115867615, 0.03778819367289543, -0.181843101978302, 0.04400317370891571, -0.01983904093503952, 0.0027748842258006334, 0.03991811349987984, 0.03212161362171173, -0.040136925876140594, 0.09533894062042236, -0.08791743963956833, 0.0009767120936885476, -0.011146863922476768, 0.00023957401572261006, -0.05734962597489357, 0.03945941478013992, 0.07369174808263779, -0.029512422159314156, -0.021605243906378746, -0.057311076670885086, 0.02258918806910515, -0.010610845871269703, 0.0692923441529274, 0.04072968661785126, -0.07171306759119034, -0.01944916695356369, 0.011090829968452454, 0.030477287247776985, -0.04670821130275726, 0.010876564309000969, 0.011753363534808159, -0.03236841410398483, 0.03677324578166008, 0.008637134917080402, -0.004248564597219229, -0.1659727245569229, 0.0051550609059631824, -0.007671892177313566, 0.06831085681915283, -0.03545408695936203, 0.06844546645879745, -0.026374876499176025, -0.07070795446634293, -0.029301447793841362, 0.012940281070768833, -0.053178321570158005, -0.015364809893071651, 0.05264081433415413, -0.020764043554663658, 0.027482055127620697, 0.12704065442085266, 0.0028015212155878544, -4.1567537360190025e-33, 0.050458524376153946, -0.06899643689393997, 0.031308386474847794, 0.009686505421996117, 0.007411945145577192, -0.04589173570275307, -0.06000649183988571, -0.02187385968863964, 0.03481341153383255, -0.08726535737514496, -0.004004862625151873, -0.048542749136686325, 0.003352377563714981, -0.022535614669322968, -0.0843501165509224, 0.031374506652355194, -0.039236873388290405, -0.07515444606542587, 0.0011448664590716362, 0.07061481475830078, 0.027267687022686005, 0.036359094083309174, -0.012221109122037888, 0.0231876652687788, -0.03473949059844017, 0.010721900500357151, 0.008485645055770874, 0.031163064762949944, -0.05748935788869858, -0.01143644005060196, 0.03788669407367706, -0.10913866758346558, -0.036210499703884125, -0.01928509958088398, 0.05354997143149376, -0.002202728297561407, -0.022947203367948532, 0.04611630737781525, -0.024875735864043236, 0.022366106510162354, 0.16033746302127838, -0.002018417464569211, -0.020952558144927025, 0.01172504760324955, 0.02512243203818798, -0.007974491454660892, 0.04238488897681236, -0.03783812373876572, -0.0249288622289896, -0.010704930871725082, 0.024087807163596153, -0.020811457186937332, 0.03871656209230423, 0.09898117184638977, -0.013464576564729214, 0.04844656214118004, 0.06673548370599747, 0.014000154100358486, -0.002064517932012677, 0.08741819858551025, 0.06032326817512512, -0.07541991025209427, 0.056625619530677795, 0.09386024624109268, -0.056242916733026505, -0.055364977568387985, 0.08676619827747345, 0.03686699643731117, 0.05516472086310387, 0.020206380635499954, 0.03938985615968704, -0.005589830223470926, 0.008019275963306427, 0.042549896985292435, -0.03352373093366623, -0.0050670430064201355, 0.020922061055898666, -0.07969966530799866, -0.021370399743318558, 0.013540180400013924, -0.06039207801222801, -0.006351707503199577, -0.009589704684913158, 0.05540703237056732, -0.04858473688364029, 0.056038565933704376, 0.04802495986223221, 0.04160512238740921, 0.07476064562797546, 0.036747053265571594, -0.06395681947469711, -0.037458036094903946, -0.0625394880771637, 0.10736638307571411, -0.052013836801052094, -5.681875947516346e-8, 0.05290907993912697, 0.026348702609539032, 0.055551886558532715, -0.07792438566684723, 0.06013571098446846, -0.10596975684165955, 0.08862078189849854, -0.048053037375211716, -0.02055191807448864, 0.06969819962978363, 0.08602751046419144, -0.04060552641749382, -0.028488680720329285, -0.05224408581852913, 0.09184304624795914, 0.03340233489871025, 0.07745936512947083, 0.0341065488755703, -0.04737520590424538, -0.0969814881682396, 0.031170900911092758, -0.08536634594202042, 0.04138585925102234, -0.006697678938508034, 0.0569085069000721, -0.013504670932888985, 0.055155690759420395, 0.0280142854899168, 0.019353695213794708, 0.04193752631545067, -0.10330840945243835, 0.047492850571870804, 0.04076676443219185, 0.023574605584144592, -0.07020679116249084, 0.07067389786243439, -0.018620625138282776, -0.025699082762002945, 0.05608836188912392, 0.06836573779582977, 0.06509111821651459, 0.04028952121734619, -0.030229849740862846, -0.010283289477229118, 0.026414401829242706, 0.05138111114501953, -0.07347720116376877, 0.02598998136818409, -0.03456513583660126, 0.01789931021630764, -0.08010491728782654, -0.0026336803566664457, -0.02326592057943344, 0.07650136202573776, -0.04505656287074089, 0.019709371030330658, 0.007787141017615795, -0.044241901487112045, 0.029885124415159225, 0.004059501923620701, 0.008090442977845669, 0.07327301800251007, 0.006595989223569632, -0.08541318774223328 ]
0.189836
{{< feature-state for\_k8s\_version="v1.24" state="stable" >}} When you run a Pod on a Node, the Pod itself takes an amount of system resources. These resources are additional to the resources needed to run the container(s) inside the Pod. In Kubernetes, \_Pod Overhead\_ is a way to account for the resources consumed by the Pod infrastructure on top of the container requests & limits. In Kubernetes, the Pod's overhead is set at [admission](/docs/reference/access-authn-authz/extensible-admission-controllers/#what-are-admission-webhooks) time according to the overhead associated with the Pod's [RuntimeClass](/docs/concepts/containers/runtime-class/). A pod's overhead is considered in addition to the sum of container resource requests when scheduling a Pod. Similarly, the kubelet will include the Pod overhead when sizing the Pod cgroup, and when carrying out Pod eviction ranking. ## Configuring Pod overhead {#set-up} You need to make sure a `RuntimeClass` is utilized which defines the `overhead` field. ## Usage example To work with Pod overhead, you need a RuntimeClass that defines the `overhead` field. As an example, you could use the following RuntimeClass definition with a virtualization container runtime (in this example, Kata Containers combined with the Firecracker virtual machine monitor) that uses around 120MiB per Pod for the virtual machine and the guest OS: ```yaml # You need to change this example to match the actual runtime name, and per-Pod # resource overhead, that the container runtime is adding in your cluster. apiVersion: node.k8s.io/v1 kind: RuntimeClass metadata: name: kata-fc handler: kata-fc overhead: podFixed: memory: "120Mi" cpu: "250m" ``` Workloads which are created which specify the `kata-fc` RuntimeClass handler will take the memory and cpu overheads into account for resource quota calculations, node scheduling, as well as Pod cgroup sizing. Consider running the given example workload, test-pod: ```yaml apiVersion: v1 kind: Pod metadata: name: test-pod spec: runtimeClassName: kata-fc containers: - name: busybox-ctr image: busybox:1.28 stdin: true tty: true resources: limits: cpu: 500m memory: 100Mi - name: nginx-ctr image: nginx resources: limits: cpu: 1500m memory: 100Mi ``` {{< note >}} If only `limits` are specified in the pod definition, kubelet will deduce `requests` from those limits and set them to be the same as the defined `limits`. {{< /note >}} At admission time the RuntimeClass [admission controller](/docs/reference/access-authn-authz/admission-controllers/) updates the workload's PodSpec to include the `overhead` as described in the RuntimeClass. If the PodSpec already has this field defined, the Pod will be rejected. In the given example, since only the RuntimeClass name is specified, the admission controller mutates the Pod to include an `overhead`. After the RuntimeClass admission controller has made modifications, you can check the updated Pod overhead value: ```bash kubectl get pod test-pod -o jsonpath='{.spec.overhead}' ``` The output is: ``` map[cpu:250m memory:120Mi] ``` If a [ResourceQuota](/docs/concepts/policy/resource-quotas/) is defined, the sum of container requests as well as the `overhead` field are counted. When the kube-scheduler is deciding which node should run a new Pod, the scheduler considers that Pod's `overhead` as well as the sum of container requests for that Pod. For this example, the scheduler adds the requests and the overhead, then looks for a node that has 2.25 CPU and 320 MiB of memory available. Once a Pod is scheduled to a node, the kubelet on that node creates a new {{< glossary\_tooltip text="cgroup" term\_id="cgroup" >}} for the Pod. It is within this pod that the underlying container runtime will create containers. If the resource has a limit defined for each container (Guaranteed QoS or Burstable QoS with limits defined), the kubelet will set an upper limit for the pod cgroup associated with that resource (cpu.cfs\_quota\_us for CPU and memory.limit\_in\_bytes memory). This upper limit is based on the sum of the container limits plus the `overhead` defined
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/pod-overhead.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/pod-overhead.md
[ 0.03395042195916176, 0.07779772579669952, 0.027454059571027756, 0.039952244609594345, 0.01178151834756136, -0.04428448900580406, 0.029331907629966736, 0.02972199022769928, 0.056223344057798386, 0.016413887962698936, -0.006075650453567505, -0.020396441221237183, -0.01874832808971405, -0.07803969085216522, 0.016167666763067245, -0.006274061743170023, 0.09893178939819336, -0.03020688332617283, -0.10909423232078552, -0.031013738363981247, 0.07847769558429718, -0.0486990325152874, 0.0032734416890889406, 0.01742098107933998, -0.016572130843997, -0.005566348787397146, -0.07045606523752213, -0.045627571642398834, 0.09914540499448776, 0.011999079026281834, -0.08043290674686432, 0.0012997827725484967, 0.06494928151369095, 0.03659941628575325, 0.0014368317788466811, 0.09281707555055618, 0.0579359196126461, -0.06706375628709793, -0.09022682160139084, 0.059933967888355255, 0.011224380694329739, -0.025985384359955788, -0.0853012278676033, 0.0453735776245594, -0.03923027962446213, 0.023313455283641815, -0.04926084727048874, -0.06485184282064438, -0.04694803059101105, -0.01708744280040264, 0.06842930614948273, -0.01672671176493168, 0.057942502200603485, 0.037446048110723495, 0.038008179515600204, 0.04716458171606064, -0.015519694425165653, 0.012035714462399483, 0.0456017442047596, 0.02238546870648861, -0.0016844174824655056, -0.04206732288002968, 0.011082296259701252, -0.0067906747572124004, 0.06719236075878143, -0.11186797171831131, 0.02043946459889412, 0.018237793818116188, 0.02156776189804077, -0.027111664414405823, 0.0524052157998085, -0.001241056015715003, -0.0461910180747509, -0.025452101603150368, -0.007412910461425781, -0.016639983281493187, -0.009240703657269478, 0.06579737365245819, 0.014455297030508518, -0.056054677814245224, 0.06022677198052406, 0.04297742247581482, 0.026795202866196632, -0.07780066877603531, -0.036844562739133835, 0.001873407862149179, -0.009771682322025299, -0.03790731728076935, -0.013359819538891315, 0.04044342786073685, 0.07279197871685028, -0.04450806975364685, -0.014102000743150711, -0.10769504308700562, 0.0627371221780777, 0.0008383636013604701, -0.03095291554927826, -0.016138501465320587, -0.03199954703450203, 0.02777263894677162, 0.023269299417734146, 0.04319566488265991, 0.008100258186459541, 0.021472884342074394, 0.07165776938199997, -0.0538426972925663, -0.012163730338215828, 0.01493317075073719, 0.04168693348765373, 0.03784013167023659, 0.016591964289546013, -0.021183371543884277, -0.02431296557188034, 0.04497922211885452, -0.01599084585905075, 0.06235595420002937, -0.011501687578856945, -0.022918999195098877, 0.1292300820350647, 0.10769107192754745, 0.032921623438596725, -0.08209572732448578, 0.001547120395116508, 0.003576423041522503, -0.05606122687458992, 0.009436693973839283, -0.07693971693515778, 1.3081062766423653e-33, -0.012510957196354866, -0.050914645195007324, -0.03702995926141739, -0.07577062398195267, -0.006011185236275196, -0.09609953314065933, -0.027931908145546913, -0.024904077872633934, -0.033785562962293625, -0.028940869495272636, -0.10762301087379456, 0.1015721932053566, 0.028501369059085846, 0.0044622402638196945, 0.04979585483670235, -0.03346606716513634, -0.07225751131772995, 0.07524673640727997, 0.1059575155377388, 0.010760707780718803, 0.08831668645143509, -0.059483688324689865, -0.05623212456703186, 0.04048693925142288, 0.06763782352209091, -0.05887850001454353, -0.015611119568347931, -0.09424920380115509, -0.06705984473228455, 0.048658885061740875, -0.004417555872350931, 0.006069872993975878, -0.00031908618984743953, 0.022531243041157722, -0.09386856108903885, -0.03274022787809372, 0.014207896776497364, -0.026560023427009583, -0.018906468525528908, -0.10443451255559921, -0.01674872636795044, -0.029898736625909805, 0.0053711142390966415, -0.06821509450674057, -0.01612618751823902, -0.060116805136203766, 0.03572915494441986, -0.07884794473648071, -0.004981544334441423, 0.07210487872362137, -0.032851241528987885, -0.04075365141034126, 0.010227590799331665, -0.023693803697824478, 0.023405030369758606, -0.0404948890209198, 0.11784644424915314, -0.017721787095069885, -0.04794500023126602, 0.05119051784276962, -0.06210412085056305, 0.0010423430940136313, 0.016361432150006294, 0.0017007116694003344, 0.05404170602560043, 0.03542540594935417, -0.0667300596833229, 0.05699716508388519, 0.02560913935303688, 0.0195755735039711, -0.04866186901926994, 0.04423502832651138, -0.004534019622951746, 0.04134534299373627, -0.048923518508672714, -0.03787161409854889, 0.031930603086948395, -0.004687538370490074, -0.14556334912776947, 0.048057105392217636, -0.04424991086125374, 0.03292503207921982, -0.03850406035780907, 0.04809975624084473, -0.062060240656137466, -0.03182147070765495, 0.017144743353128433, -0.0005991103244014084, -0.045090582221746445, 0.02930445969104767, 0.0371602363884449, -0.006429099943488836, -0.07759267091751099, -0.00043017975986003876, -0.144627183675766, -2.9585165082441808e-33, 0.10255264490842819, 0.03857365623116493, -0.029053695499897003, 0.0030503578018397093, 0.04200189560651779, 0.02966988831758499, -0.00942086149007082, 0.03940404951572418, -0.02916034683585167, -0.07208789139986038, -0.06606729328632355, -0.00007736116094747558, 0.029516618698835373, 0.040514763444662094, -0.0003540823236107826, -0.00747196888551116, -0.07414014637470245, -0.03675695136189461, 0.024161197245121002, 0.013043632730841637, -0.009167240932583809, -0.013738070614635944, 0.06674361228942871, 0.01615588739514351, -0.003872910514473915, -0.045578040182590485, -0.015544756315648556, -0.00264033954590559, -0.039589639753103256, -0.03722109645605087, 0.01629987731575966, -0.13261820375919342, -0.036078933626413345, 0.05931626632809639, -0.010816347785294056, -0.05797480419278145, -0.022602377459406853, 0.06357692927122116, 0.024450913071632385, -0.026375802233815193, 0.09722083806991577, -0.002211429877206683, -0.020963314920663834, -0.02298388071358204, -0.03912050649523735, 0.05568169429898262, -0.048290472477674484, -0.05354316905140877, 0.015028908848762512, -0.11512908339500427, 0.04239701107144356, 0.002877302933484316, -0.014544648118317127, 0.14793942868709564, -0.06426914036273956, 0.030602777376770973, 0.03697924315929413, 0.07753876596689224, 0.004877587780356407, 0.025592312216758728, 0.07056491076946259, -0.04828669875860214, 0.0019905201625078917, 0.037539780139923096, -0.023868437856435776, -0.06995471566915512, -0.02462354302406311, 0.011113306507468224, -0.007958793081343174, 0.012624157592654228, -0.03082386404275894, -0.005093744490295649, 0.01656779833137989, 0.06987535953521729, -0.08217435330152512, -0.012953797355294228, 0.07851848006248474, -0.05301007255911827, 0.04061952978372574, -0.0027770346496254206, -0.1512986123561859, 0.1040724664926529, -0.04111241549253464, 0.02193407714366913, 0.003591475309804082, 0.04808413237333298, 0.08204864710569382, 0.04385179653763771, 0.028813358396291733, 0.0595252625644207, 0.043860312551259995, 0.04240358620882034, -0.07778630405664444, 0.08533946424722672, -0.02728322707116604, -4.7384428825125724e-8, 0.07375090569257736, -0.010213092900812626, 0.024459153413772583, 0.037656787782907486, 0.07710885256528854, -0.0006497917929664254, 0.020919207483530045, 0.0427124947309494, -0.06069009378552437, 0.03640041500329971, 0.02609117142856121, 0.03260359913110733, -0.04803042858839035, -0.055941980332136154, 0.05432187765836716, 0.02513919770717621, -0.058228835463523865, -0.004338579718023539, -0.0088101327419281, -0.0822971984744072, -0.043694909662008286, -0.05055590346455574, -0.008980314247310162, -0.010035338811576366, -0.0335829071700573, 0.11129657179117203, 0.06879814714193344, 0.053569093346595764, 0.03457845374941826, -0.017607692629098892, -0.016748473048210144, 0.05583657696843147, -0.08454588055610657, 0.02902492694556713, 0.022620873525738716, 0.04109179228544235, -0.17021940648555756, -0.006956900004297495, -0.010834798216819763, 0.10208127647638321, -0.019064808264374733, -0.03000837005674839, -0.00916626863181591, 0.0048506795428693295, 0.06675607711076736, 0.059203099459409714, -0.06324701756238937, 0.0535484254360199, 0.014621383510529995, 0.018607202917337418, 0.037015650421381, -0.03439592197537422, -0.06737842410802841, 0.10737065225839615, 0.0038762670010328293, -0.006487688049674034, -0.0028112067375332117, -0.09616635739803314, 0.029829340055584908, 0.013248555362224579, 0.01968921348452568, 0.0009673349559307098, -0.006173606030642986, 0.007161757443100214 ]
0.219836
limit defined for each container (Guaranteed QoS or Burstable QoS with limits defined), the kubelet will set an upper limit for the pod cgroup associated with that resource (cpu.cfs\_quota\_us for CPU and memory.limit\_in\_bytes memory). This upper limit is based on the sum of the container limits plus the `overhead` defined in the PodSpec. For CPU, if the Pod is Guaranteed or Burstable QoS, the kubelet will set `cpu.shares` based on the sum of container requests plus the `overhead` defined in the PodSpec. Looking at our example, verify the container requests for the workload: ```bash kubectl get pod test-pod -o jsonpath='{.spec.containers[\*].resources.limits}' ``` The total container requests are 2000m CPU and 200MiB of memory: ``` map[cpu: 500m memory:100Mi] map[cpu:1500m memory:100Mi] ``` Check this against what is observed by the node: ```bash kubectl describe node | grep test-pod -B2 ``` The output shows requests for 2250m CPU, and for 320MiB of memory. The requests include Pod overhead: ``` Namespace Name CPU Requests CPU Limits Memory Requests Memory Limits AGE --------- ---- ------------ ---------- --------------- ------------- --- default test-pod 2250m (56%) 2250m (56%) 320Mi (1%) 320Mi (1%) 36m ``` ## Verify Pod cgroup limits Check the Pod's memory cgroups on the node where the workload is running. In the following example, [`crictl`](https://github.com/kubernetes-sigs/cri-tools/blob/master/docs/crictl.md) is used on the node, which provides a CLI for CRI-compatible container runtimes. This is an advanced example to show Pod overhead behavior, and it is not expected that users should need to check cgroups directly on the node. First, on the particular node, determine the Pod identifier: ```bash # Run this on the node where the Pod is scheduled POD\_ID="$(sudo crictl pods --name test-pod -q)" ``` From this, you can determine the cgroup path for the Pod: ```bash # Run this on the node where the Pod is scheduled sudo crictl inspectp -o=json $POD\_ID | grep cgroupsPath ``` The resulting cgroup path includes the Pod's `pause` container. The Pod level cgroup is one directory above. ``` "cgroupsPath": "/kubepods/podd7f4b509-cf94-4951-9417-d1087c92a5b2/7ccf55aee35dd16aca4189c952d83487297f3cd760f1bbf09620e206e7d0c27a" ``` In this specific case, the pod cgroup path is `kubepods/podd7f4b509-cf94-4951-9417-d1087c92a5b2`. Verify the Pod level cgroup setting for memory: ```bash # Run this on the node where the Pod is scheduled. # Also, change the name of the cgroup to match the cgroup allocated for your pod. cat /sys/fs/cgroup/memory/kubepods/podd7f4b509-cf94-4951-9417-d1087c92a5b2/memory.limit\_in\_bytes ``` This is 320 MiB, as expected: ``` 335544320 ``` ### Observability Some `kube\_pod\_overhead\_\*` metrics are available in [kube-state-metrics](https://github.com/kubernetes/kube-state-metrics) to help identify when Pod overhead is being utilized and to help observe stability of workloads running with a defined overhead. ## {{% heading "whatsnext" %}} \* Learn more about [RuntimeClass](/docs/concepts/containers/runtime-class/) \* Read the [PodOverhead Design](https://github.com/kubernetes/enhancements/tree/master/keps/sig-node/688-pod-overhead) enhancement proposal for extra context
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/pod-overhead.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/pod-overhead.md
[ 0.04820113629102707, 0.04558476433157921, 0.006878674495965242, 0.04761123284697533, -0.042335063219070435, -0.049941111356019974, 0.007900918833911419, -0.01432611234486103, 0.05517030134797096, 0.02766050212085247, -0.04914626106619835, -0.030376998707652092, -0.03464026749134064, -0.034769874066114426, 0.004503443371504545, -0.05283267796039581, 0.0913974866271019, -0.007240538019686937, -0.07279782742261887, -0.043610528111457825, 0.01760261505842209, -0.013515710830688477, 0.02012435719370842, 0.02754545398056507, -0.006797696929425001, -0.05141570419073105, -0.08431828022003174, -0.040107496082782745, 0.06569565832614899, -0.04377957805991173, -0.012907395139336586, -0.0010922421934083104, 0.018785826861858368, 0.048897139728069305, 0.1260853260755539, 0.1005183607339859, -0.01600331813097, -0.12107669562101364, -0.04069628566503525, -0.015435039065778255, 0.01424076221883297, 0.010059956461191177, -0.12694936990737915, 0.06728027015924454, -0.01193950604647398, 0.05536441132426262, -0.004639279562979937, -0.01570640504360199, -0.008042141795158386, -0.02706940844655037, -0.006194392219185829, -0.040523625910282135, 0.08692458271980286, 0.027054360136389732, 0.030207857489585876, 0.018340177834033966, -0.012988821603357792, 0.009238630533218384, 0.08850287646055222, 0.06647519022226334, -0.05900444835424423, -0.05350067839026451, 0.041370656341314316, -0.019321076571941376, 0.07173669338226318, -0.0314946249127388, 0.014205717481672764, 0.04660721868276596, -0.02341352589428425, 0.041853323578834534, 0.12148438394069672, -0.015594570897519588, -0.012107931077480316, -0.024876246228814125, -0.01191314309835434, 0.023388417437672615, -0.06368915736675262, -0.007071634754538536, -0.046533264219760895, -0.055449437350034714, -0.0138991205021739, -0.020423196256160736, 0.033771220594644547, -0.12478575110435486, -0.08634716272354126, 0.012022754177451134, 0.016583288088440895, -0.02741100825369358, -0.006297897547483444, -0.010133465752005577, 0.06440768390893936, -0.0027561241295188665, 0.028564577922225, -0.06438963860273361, 0.08793499320745468, -0.0027462742291390896, -0.04125499352812767, -0.02646723948419094, 0.0029522706754505634, -0.015311155468225479, 0.050293780863285065, 0.054113276302814484, 0.05683087930083275, 0.01592421345412731, 0.07108819484710693, -0.04366830363869667, 0.02213967777788639, 0.018816202878952026, 0.011922799982130527, 0.04143853113055229, 0.025609919801354408, 0.02624836564064026, -0.014688318595290184, 0.04602586477994919, -0.03050929680466652, 0.015508861280977726, 0.019875189289450645, 0.004754014778882265, -0.00039944230229593813, 0.04872656613588333, 0.0710301399230957, -0.06533385068178177, 0.0042946734465658665, -0.022957270964980125, -0.08851482719182968, -0.014261051081120968, -0.06905077397823334, 4.6663801282683895e-33, 0.019055917859077454, -0.09096299856901169, 0.044225309044122696, -0.029816526919603348, 0.015117567963898182, -0.08746295422315598, -0.040643587708473206, -0.003899046452715993, -0.1041308268904686, -0.02378438226878643, -0.08016356080770493, 0.03107518143951893, -0.020726239308714867, 0.0440552681684494, 0.0234473068267107, -0.015924563631415367, -0.06006157398223877, 0.03944616764783859, 0.06647833436727524, 0.008079910650849342, 0.054001010954380035, -0.08585390448570251, -0.08933282643556595, 0.021310901269316673, 0.000441874930402264, -0.022393381223082542, 0.016079341992735863, -0.08290787041187286, -0.004941132385283709, 0.037795860320329666, -0.03779487684369087, 0.06399685889482498, -0.013110356405377388, 0.033622171729803085, -0.09007059037685394, 0.021674197167158127, -0.013081273064017296, 0.021320078521966934, -0.04724905639886856, -0.012735561467707157, 0.01367886457592249, -0.016474714502692223, 0.00165291759185493, -0.07487946003675461, -0.007428654935210943, -0.07490062713623047, -0.012783089652657509, -0.0614313930273056, -0.07110732793807983, 0.10491038113832474, 0.010305778123438358, -0.02224353887140751, -0.013117565773427486, 0.021628161892294884, 0.07780659198760986, -0.011706337332725525, 0.08665864169597626, -0.004685801453888416, 0.03360460698604584, 0.0920192152261734, -0.030290717259049416, -0.024391381070017815, -0.008847218006849289, 0.0414239875972271, 0.018245955929160118, 0.1012018546462059, -0.06183964014053345, 0.09700654447078705, -0.025431202724575996, 0.11744417250156403, -0.05044327303767204, 0.036957304924726486, 0.03199072182178497, 0.03651696443557739, -0.028551271185278893, -0.07106699794530869, -0.007446961477398872, -0.020737208425998688, -0.17748405039310455, 0.0033999676816165447, 0.015487493947148323, -0.035485126078128815, 0.02064528502523899, 0.010335060767829418, -0.0737450048327446, -0.04375358298420906, 0.009809978306293488, 0.05862441658973694, -0.08565562218427658, 0.05947989225387573, 0.025871146470308304, 0.01238870620727539, -0.039775051176548004, 0.019117305055260658, -0.15003225207328796, -4.938033934007543e-33, 0.05345698446035385, 0.010205799713730812, 0.011739736422896385, 0.046133700758218765, 0.03716844320297241, -0.039054181426763535, 0.00903409719467163, 0.0008171438821591437, -0.02712634764611721, -0.02999255247414112, -0.09256255626678467, -0.06458686292171478, 0.020441683009266853, 0.04512261226773262, -0.09685666859149933, -0.021127015352249146, -0.02636253461241722, -0.05934605374932289, 0.02190217934548855, 0.03494695574045181, -0.0826563611626625, -0.001999580767005682, 0.10616572946310043, 0.04759802669286728, 0.009448489174246788, 0.018395498394966125, -0.045573197305202484, -0.010992184281349182, -0.011792591772973537, -0.051471300423145294, 0.002720863791182637, -0.11573781818151474, -0.05665355548262596, 0.04748832806944847, 0.040830716490745544, -0.048461925238370895, -0.03603237867355347, 0.12681236863136292, 0.04153775796294212, -0.005428262986242771, 0.042764805257320404, 0.004146200604736805, -0.049595076590776443, -0.021483931690454483, -0.015553210861980915, 0.014788544736802578, 0.004723025020211935, -0.05480654165148735, 0.015329282730817795, -0.07798327505588531, 0.07255134731531143, -0.003125658957287669, 0.010246966034173965, 0.15162886679172516, 0.012089881114661694, -0.029312657192349434, 0.01067529059946537, 0.022816132754087448, -0.020790945738554, -0.02226668782532215, 0.07896895706653595, -0.07334072142839432, 0.0013962237862870097, 0.0369080975651741, 0.009588106535375118, -0.09309366345405579, -0.02283993735909462, 0.048686496913433075, 0.03546039015054703, 0.04808446019887924, 0.05033624544739723, 0.01703823171555996, 0.03995607793331146, 0.08175178617238998, -0.07479994744062424, -0.002798122353851795, -0.014579452574253082, -0.046309832483530045, 0.0816490426659584, 0.029868243262171745, -0.08865192532539368, 0.11067987978458405, -0.02520550601184368, 0.01586930640041828, 0.019915500655770302, 0.07106044143438339, 0.033242758363485336, 0.040309321135282516, 0.02271815575659275, 0.05539288371801376, 0.0028165585827082396, -0.007630084175616503, -0.05094446986913681, 0.060589749366045, -0.03889624774456024, -4.340204640129741e-8, 0.12148783355951309, -0.03957350552082062, -0.031721364706754684, 0.05120326951146126, 0.060735318809747696, -0.06602844595909119, 0.044468868523836136, 0.028475632891058922, -0.030213646590709686, 0.05272286385297775, 0.018794914707541466, 0.027250347658991814, -0.05186186358332634, 0.0013905124505981803, 0.04584996774792671, -0.004121309146285057, -0.019493887200951576, 0.022288767620921135, 0.012419212609529495, -0.0766976997256279, -0.07894459366798401, -0.018194273114204407, -0.00872000865638256, 0.00010358331928728148, -0.03080884926021099, 0.056033987551927567, 0.09345708787441254, 0.030764011666178703, -0.002400752156972885, -0.02687770500779152, -0.033631887286901474, -0.033759526908397675, -0.11596713960170746, 0.006467041093856096, 0.012896181084215641, 0.006623156368732452, -0.15935149788856506, 0.04710952565073967, 0.025700731202960014, 0.11511416733264923, -0.03584543988108635, -0.06229786574840546, 0.03501405566930771, 0.015928717330098152, 0.0006327743176370859, 0.03263229504227638, -0.09050322324037552, 0.09722243994474411, -0.002653139876201749, -0.009950440376996994, 0.03904147818684578, -0.016897138208150864, -0.03302039951086044, 0.07652059942483902, -0.02552318014204502, 0.009045854210853577, -0.012072563171386719, -0.02284357324242592, -0.036419909447431564, -0.01968885026872158, 0.059916481375694275, -0.0007004174985922873, -0.017042087391018867, 0.025043388828635216 ]
0.16094
{{< feature-state for\_k8s\_version="v1.14" state="beta" >}} [kube-scheduler](/docs/concepts/scheduling-eviction/kube-scheduler/#kube-scheduler) is the Kubernetes default scheduler. It is responsible for placement of Pods on Nodes in a cluster. Nodes in a cluster that meet the scheduling requirements of a Pod are called \_feasible\_ Nodes for the Pod. The scheduler finds feasible Nodes for a Pod and then runs a set of functions to score the feasible Nodes, picking a Node with the highest score among the feasible ones to run the Pod. The scheduler then notifies the API server about this decision in a process called \_Binding\_. This page explains performance tuning optimizations that are relevant for large Kubernetes clusters. In large clusters, you can tune the scheduler's behaviour balancing scheduling outcomes between latency (new Pods are placed quickly) and accuracy (the scheduler rarely makes poor placement decisions). You configure this tuning setting via kube-scheduler setting `percentageOfNodesToScore`. This KubeSchedulerConfiguration setting determines a threshold for scheduling nodes in your cluster. ### Setting the threshold The `percentageOfNodesToScore` option accepts whole numeric values between 0 and 100. The value 0 is a special number which indicates that the kube-scheduler should use its compiled-in default. If you set `percentageOfNodesToScore` above 100, kube-scheduler acts as if you had set a value of 100. To change the value, edit the [kube-scheduler configuration file](/docs/reference/config-api/kube-scheduler-config.v1/) and then restart the scheduler. In many cases, the configuration file can be found at `/etc/kubernetes/config/kube-scheduler.yaml`. After you have made this change, you can run ```bash kubectl get pods -n kube-system | grep kube-scheduler ``` to verify that the kube-scheduler component is healthy. ## Node scoring threshold {#percentage-of-nodes-to-score} To improve scheduling performance, the kube-scheduler can stop looking for feasible nodes once it has found enough of them. In large clusters, this saves time compared to a naive approach that would consider every node. You specify a threshold for how many nodes are enough, as a whole number percentage of all the nodes in your cluster. The kube-scheduler converts this into an integer number of nodes. During scheduling, if the kube-scheduler has identified enough feasible nodes to exceed the configured percentage, the kube-scheduler stops searching for more feasible nodes and moves on to the [scoring phase](/docs/concepts/scheduling-eviction/kube-scheduler/#kube-scheduler-implementation). [How the scheduler iterates over Nodes](#how-the-scheduler-iterates-over-nodes) describes the process in detail. ### Default threshold If you don't specify a threshold, Kubernetes calculates a figure using a linear formula that yields 50% for a 100-node cluster and yields 10% for a 5000-node cluster. The lower bound for the automatic value is 5%. This means that the kube-scheduler always scores at least 5% of your cluster no matter how large the cluster is, unless you have explicitly set `percentageOfNodesToScore` to be smaller than 5. If you want the scheduler to score all nodes in your cluster, set `percentageOfNodesToScore` to 100. ## Example Below is an example configuration that sets `percentageOfNodesToScore` to 50%. ```yaml apiVersion: kubescheduler.config.k8s.io/v1alpha1 kind: KubeSchedulerConfiguration algorithmSource: provider: DefaultProvider ... percentageOfNodesToScore: 50 ``` ## Tuning percentageOfNodesToScore `percentageOfNodesToScore` must be a value between 1 and 100 with the default value being calculated based on the cluster size. There is also a hardcoded minimum value of 100 nodes. {{< note >}}In clusters with less than 100 feasible nodes, the scheduler still checks all the nodes because there are not enough feasible nodes to stop the scheduler's search early. In a small cluster, if you set a low value for `percentageOfNodesToScore`, your change will have no or little effect, for a similar reason. If your cluster has several hundred Nodes or fewer, leave this configuration option at its default value. Making changes is unlikely to improve the scheduler's performance significantly. {{< /note >}} An important detail to
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/scheduler-perf-tuning.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/scheduler-perf-tuning.md
[ -0.019829727709293365, 0.03294900804758072, 0.024593360722064972, 0.0690159946680069, -0.013463064096868038, -0.025337472558021545, -0.05833755061030388, -0.03254111483693123, 0.035688478499650955, 0.008181833662092686, -0.07931648194789886, -0.013059450313448906, 0.008356666192412376, -0.04262002557516098, 0.015591076575219631, 0.0006997692980803549, 0.09330548346042633, -0.04509507119655609, -0.046402644366025925, -0.0605471134185791, 0.021241851150989532, -0.011898625642061234, 0.0005292932619340718, 0.0003851272922474891, -0.015311413444578648, -0.034567829221487045, -0.06208684667944908, -0.019195556640625, 0.037790171802043915, 0.012743010185658932, -0.08466265350580215, -0.023115282878279686, 0.07652875036001205, 0.05197526514530182, -0.01286911591887474, 0.11063113063573837, -0.028126908466219902, -0.12025339156389236, -0.047895096242427826, 0.05472156032919884, 0.06294897198677063, -0.051182907074689865, -0.11240937560796738, -0.053817860782146454, -0.02943708561360836, 0.009567524306476116, -0.06093006208539009, -0.028942327946424484, -0.0661771297454834, -0.03713373467326164, -0.0068016210570931435, -0.10683008283376694, 0.020599469542503357, 0.04278479516506195, 0.039523303508758545, 0.09443283826112747, 0.01440719235688448, 0.011980666778981686, 0.10293034464120865, 0.007571885362267494, 0.09061475843191147, -0.06209546700119972, 0.011502530425786972, 0.044444046914577484, 0.04514070600271225, -0.05614117160439491, 0.03612445667386055, -0.020481957122683525, 0.03216884285211563, -0.055107999593019485, 0.038729049265384674, -0.0011766243260353804, -0.02173296920955181, 0.004705862142145634, 0.01979263499379158, 0.021094221621751785, 0.009137604385614395, 0.08735031634569168, 0.020531050860881805, -0.049035921692848206, -0.04695061594247818, 0.0038442446384578943, 0.015155810862779617, -0.014980511739850044, -0.03660816699266434, -0.01095863338559866, -0.001743833883665502, -0.04156899079680443, 0.08364498615264893, 0.06381239742040634, 0.026946252211928368, -0.017291933298110962, -0.0039366926066577435, -0.08412566781044006, 0.025188282132148743, 0.04622993245720863, -0.015841249376535416, -0.019520362839102745, 0.06161939352750778, 0.013716639019548893, 0.016288772225379944, 0.02045201137661934, 0.014796560630202293, 0.014376867562532425, 0.0547608882188797, -0.07005267590284348, -0.04749979078769684, -0.031581927090883255, -0.021188829094171524, 0.03428206220269203, 0.04536239430308342, 0.08775801956653595, 0.05080406740307808, -0.003555668517947197, -0.014901341870427132, 0.0781315490603447, 0.015433814376592636, -0.0010538826463744044, 0.07771151512861252, 0.11775681376457214, 0.002802490722388029, -0.12881150841712952, 0.005476792808622122, -0.028400300070643425, -0.038869719952344894, 0.043266113847494125, -0.07051211595535278, 3.852595307427705e-33, 0.016401655972003937, -0.0876750573515892, 0.0318937823176384, -0.12098174542188644, 0.02882484160363674, -0.1005091667175293, -0.028641726821660995, -0.007382418494671583, -0.05036677420139313, -0.08275149762630463, -0.07051257789134979, 0.030552959069609642, 0.06994083523750305, 0.021428164094686508, 0.06519947201013565, -0.07726980000734329, -0.01998750865459442, 0.07081450521945953, 0.06220124289393425, -0.018580108880996704, 0.05012007802724838, -0.08709660172462463, -0.07993465662002563, -0.03669493645429611, 0.02258923649787903, 0.016746707260608673, 0.03164152428507805, -0.11968368291854858, -0.05516737699508667, 0.025423234328627586, -0.021215295419096947, -0.01068943366408348, -0.0163944810628891, 0.06960491091012955, -0.1028800681233406, 0.006214750465005636, -0.04010259360074997, 0.012747297063469887, -0.06252677738666534, -0.030300891026854515, 0.020108941942453384, -0.0022528020199388266, -0.030535830184817314, -0.03116431273519993, 0.06468295305967331, -0.01795540563762188, 0.007592572830617428, -0.05204436555504799, 0.015317630022764206, 0.045561354607343674, 0.01931864023208618, -0.0160045325756073, 0.07940247654914856, -0.0397183783352375, 0.05262134596705437, 0.023619141429662704, 0.14111453294754028, -0.07552564144134521, -0.03765658289194107, 0.05455370992422104, -0.03149439021945, -0.022282365709543228, -0.0022506744135171175, -0.0033388687297701836, 0.027786333113908768, 0.024227263405919075, -0.011203949339687824, -0.002402339596301317, 0.013709877617657185, 0.01966201514005661, -0.022213833406567574, 0.06582046300172806, 0.005739336367696524, -0.0048208399675786495, -0.028795404359698296, -0.04372027888894081, 0.029857296496629715, -0.038019824773073196, -0.13179458677768707, 0.005787113681435585, 0.004768257960677147, 0.04255537688732147, -0.03938720375299454, 0.01775047555565834, -0.03554195165634155, -0.053513433784246445, -0.008878189139068127, 0.02622814290225506, -0.010629070922732353, -0.0013447206001728773, 0.023026050999760628, -0.04709593579173088, -0.06804037094116211, 0.038121357560157776, -0.08996743708848953, -4.2125515141166595e-33, 0.1052991971373558, -0.04742509126663208, 0.016360126435756683, 0.06918276846408844, 0.03797466680407524, -0.045122623443603516, -0.037584975361824036, -0.016186848282814026, -0.0009214718011207879, -0.03342331573367119, -0.07587052881717682, -0.018773352727293968, 0.05841023474931717, 0.0347316600382328, -0.03986317664384842, 0.014595996588468552, -0.06407034397125244, -0.02442600578069687, -0.012635299935936928, 0.009604059159755707, 0.010927329771220684, -0.010329158045351505, -0.005045880563557148, 0.04953528568148613, 0.01055878959596157, -0.03922364115715027, 0.0059359073638916016, 0.054222770035266876, -0.05996575951576233, -0.045963652431964874, 0.0053837960585951805, -0.12643475830554962, -0.04227340593934059, 0.04819541797041893, 0.0590285025537014, -0.033395446836948395, -0.059008870273828506, 0.027233367785811424, 0.036690499633550644, 0.024482596665620804, 0.12106414139270782, 0.006832129321992397, -0.08213218301534653, -0.022578181698918343, -0.03777037560939789, 0.0887131616473198, 0.03434465080499649, -0.010912783443927765, -0.01504729874432087, -0.08456077426671982, -0.0021975103300064802, -0.009024405851960182, -0.040270768105983734, 0.14300522208213806, -0.04923871532082558, 0.03211871162056923, -0.028095921501517296, 0.05464499816298485, 0.023366045206785202, 0.04831937327980995, 0.06956862658262253, -0.05163867026567459, 0.07676990330219269, 0.07112647593021393, -0.029072698205709457, -0.06040159612894058, 0.01058943197131157, -0.005456091836094856, -0.029250940307974815, 0.04263404384255409, -0.015029667876660824, -0.01549240481108427, 0.04023788124322891, 0.07995931804180145, -0.05243878811597824, -0.017240220680832863, 0.04090403765439987, -0.01829175464808941, -0.016109779477119446, 0.029493557289242744, -0.10985390096902847, 0.07755420356988907, -0.04895691201090813, 0.03671323508024216, -0.01962750218808651, 0.08755020052194595, 0.09611693769693375, 0.055283281952142715, 0.0502501055598259, 0.030052026733756065, 0.05272015929222107, 0.0045507801696658134, -0.05982222408056259, 0.10550224781036377, -0.01510718185454607, -5.0841293841585866e-8, 0.05131823942065239, -0.021782953292131424, -0.03428102284669876, 0.028903445228934288, 0.06390613317489624, -0.05423974618315697, 0.07130993157625198, 0.004212303087115288, -0.04617694020271301, 0.025129783898591995, 0.05766696110367775, 0.008756278082728386, -0.04148225486278534, -0.00674655893817544, 0.11321738362312317, 0.015092267654836178, 0.02360374480485916, 0.0646347850561142, -0.009374799206852913, -0.07506420463323593, -0.0074395970441401005, -0.02913805842399597, 0.059828758239746094, -0.05073029547929764, 0.0031879411544650793, 0.017002180218696594, 0.05294126644730568, 0.09254737943410873, 0.0356624498963356, -0.010145090520381927, -0.08889474719762802, 0.05641653761267662, -0.049246884882450104, -0.0011579376878216863, -0.013394385576248169, 0.0681879073381424, -0.1604611873626709, 0.018706709146499634, 0.04079414904117584, 0.11296635121107101, 0.05215204134583473, -0.04795650765299797, -0.08872868865728378, 0.008162656798958778, 0.024391980841755867, 0.07965537905693054, -0.047039344906806946, 0.08080276101827621, 0.005649853963404894, -0.02937615104019642, -0.03659612685441971, -0.040217768400907516, -0.02632862702012062, 0.031031180173158646, -0.017508074641227722, 0.0023235564585775137, -0.018822304904460907, -0.10274522006511688, 0.01667323336005211, -0.005697158165276051, -0.008503197692334652, 0.031890805810689926, -0.019384171813726425, -0.051733653992414474 ]
0.216641
low value for `percentageOfNodesToScore`, your change will have no or little effect, for a similar reason. If your cluster has several hundred Nodes or fewer, leave this configuration option at its default value. Making changes is unlikely to improve the scheduler's performance significantly. {{< /note >}} An important detail to consider when setting this value is that when a smaller number of nodes in a cluster are checked for feasibility, some nodes are not sent to be scored for a given Pod. As a result, a Node which could possibly score a higher value for running the given Pod might not even be passed to the scoring phase. This would result in a less than ideal placement of the Pod. You should avoid setting `percentageOfNodesToScore` very low so that kube-scheduler does not make frequent, poor Pod placement decisions. Avoid setting the percentage to anything below 10%, unless the scheduler's throughput is critical for your application and the score of nodes is not important. In other words, you prefer to run the Pod on any Node as long as it is feasible. ## How the scheduler iterates over Nodes This section is intended for those who want to understand the internal details of this feature. In order to give all the Nodes in a cluster a fair chance of being considered for running Pods, the scheduler iterates over the nodes in a round robin fashion. You can imagine that Nodes are in an array. The scheduler starts from the start of the array and checks feasibility of the nodes until it finds enough Nodes as specified by `percentageOfNodesToScore`. For the next Pod, the scheduler continues from the point in the Node array that it stopped at when checking feasibility of Nodes for the previous Pod. If Nodes are in multiple zones, the scheduler iterates over Nodes in various zones to ensure that Nodes from different zones are considered in the feasibility checks. As an example, consider six nodes in two zones: ``` Zone 1: Node 1, Node 2, Node 3, Node 4 Zone 2: Node 5, Node 6 ``` The Scheduler evaluates feasibility of the nodes in this order: ``` Node 1, Node 5, Node 2, Node 6, Node 3, Node 4 ``` After going over all the Nodes, it goes back to Node 1. ## Enabling Opportunistic Batching {{< feature-state feature\_gate\_name="OpportunisticBatching" >}} When scheduling large workloads, pod definitions are typically identical and require the scheduler to perform the same operations over and over again. The [Opportunistic Batching](/docs/reference/command-line-tools-reference/feature-gates/#OpportunisticBatching) feature allows the scheduler to reuse the filtering and scoring results between scheduling cycles which greatly speeds up the scheduling process. Basically, this feature works like: 1. The scheduler schedules pod-1 and caches the scheduling result. 1. The scheduler schedules pod-2, 3, ... with the cached results. 1. The cache expires after 0.5 second. The scheduler schedules the next pod which builds a new cache. Pods with equivalent scheduling constraints have to come to the scheduling cycle back to back. When the scheduler schedules a pod with different constraints, the cache is not used, but replaced with a new one. We apply this batching scheduling to specific pods that: 1. Don't have inter pod affinity/anti-affinity 1. Don't have tpology spread constraints 1. Don't have DRA (i.e., don't have any Resource Claims) 1. Scheduled exclusively on nodes (i.e., placing more than one pods on one node invalidates the cache) Also, to enable this feature, the scheduler configuration needs to: 1. Disable [default topology spread](/docs/concepts/scheduling-eviction/topology-spread-constraints/#internal-default-constraints) (set empty) 1. Disable [DRAExtendedResource](/docs/reference/command-line-tools-reference/feature-gates/#DRAExtendedResource) feature. 1. Set `IgnorePreferredTermsOfExistingPods` of [InterPodAffinityArgs](/docs/reference/config-api/kube-scheduler-config.v1/#kubescheduler-config-k8s-io-v1-InterPodAffinityArgs) to `true` to make the batching more efficient Note
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/scheduler-perf-tuning.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/scheduler-perf-tuning.md
[ 0.0555114708840847, 0.029865281656384468, 0.00401398167014122, 0.061866406351327896, 0.008816546760499477, -0.030049853026866913, -0.07591316103935242, 0.00827920250594616, 0.021922029554843903, 0.025823179632425308, -0.08362077176570892, -0.041227541863918304, -0.020348627120256424, -0.038633041083812714, 0.003708301344886422, -0.016659140586853027, 0.08793549239635468, -0.01669551245868206, -0.010699431411921978, -0.04042506963014603, -0.03634259104728699, -0.03116711974143982, 0.08160559833049774, 0.017017895355820656, -0.00537435058504343, 0.003794970689341426, -0.040837209671735764, -0.022161278873682022, 0.01449272409081459, -0.015028201974928379, -0.05112811550498009, -0.008036541752517223, 0.10356763005256653, 0.024905668571591377, 0.012334824539721012, 0.10337921977043152, -0.003934619948267937, -0.08865903317928314, -0.07184673100709915, 0.07042010873556137, 0.06148654595017433, -0.004060050006955862, -0.08694861084222794, -0.011446451768279076, -0.05985505133867264, 0.01477490272372961, -0.09913375228643417, 0.018429014831781387, -0.0009701333474367857, -0.008812002837657928, -0.02014761231839657, -0.08749261498451233, 0.05577033758163452, -0.0022891629487276077, 0.021470895037055016, 0.1156516820192337, 0.018655724823474884, -0.017979994416236877, 0.11093293130397797, -0.055380091071128845, 0.06742474436759949, -0.03654700890183449, 0.04780500754714012, -0.033154748380184174, 0.07329223304986954, -0.04356195405125618, 0.03820868209004402, 0.010260025039315224, -0.007646783255040646, 0.028541505336761475, 0.11502288281917572, 0.03986151143908501, 0.04491917043924332, -0.028652047738432884, -0.009572464972734451, 0.04942433908581734, -0.013372031040489674, 0.019878115504980087, 0.0017230515368282795, 0.032085224986076355, -0.026811568066477776, 0.013522612862288952, 0.025270679965615273, -0.06859634071588516, -0.056692082434892654, 0.011947684921324253, 0.04515467956662178, -0.07153134793043137, 0.05373788997530937, 0.007732616737484932, 0.04330296441912651, 0.037119410932064056, -0.006673773750662804, -0.07856155186891556, 0.0884307250380516, 0.05217808485031128, -0.032780908048152924, -0.012693580240011215, 0.05058956891298294, -0.013638094998896122, 0.05934398993849754, 0.00872330367565155, -0.004587041679769754, -0.01870547980070114, 0.04918448254466057, -0.051362089812755585, -0.03282624110579491, 0.005843494553118944, -0.02691851183772087, 0.03606200963258743, 0.09089046716690063, 0.09152590483427048, 0.012754210270941257, 0.044656477868556976, -0.02178138494491577, 0.017475305125117302, 0.0610901340842247, -0.016765594482421875, 0.011716807261109352, 0.1020616963505745, 0.02565290778875351, -0.06955280900001526, -0.019035307690501213, 0.009939873591065407, -0.007960090413689613, 0.009928673505783081, -0.0411687046289444, 4.5957384279137395e-33, 0.014387818984687328, -0.07680083811283112, 0.037632834166288376, -0.14593252539634705, 0.0339449904859066, -0.044218871742486954, -0.06507032364606857, 0.020768793299794197, -0.035779763013124466, -0.12385760992765427, -0.09245195984840393, 0.008401020430028439, 0.02085145190358162, -0.02805551141500473, 0.04397372901439667, -0.0981946587562561, 0.01512642577290535, 0.05820777639746666, 0.058171771466732025, -0.052095528692007065, 0.0189223475754261, -0.08709848672151566, -0.1159248873591423, -0.010970976203680038, -0.025753917172551155, 0.03996182233095169, 0.03858909010887146, -0.13321378827095032, -0.07259733974933624, 0.019818484783172607, -0.011531291529536247, -0.024660682305693626, 0.009148641489446163, 0.04891624301671982, -0.11129914969205856, 0.0004692593065556139, -0.010158459655940533, 0.06371281296014786, -0.08271671831607819, -0.032665740698575974, -0.062006875872612, 0.016715623438358307, 0.02723374031484127, -0.053943462669849396, 0.03345642238855362, 0.002273373305797577, 0.06378071010112762, -0.03195890039205551, -0.023228494450449944, 0.046621598303318024, 0.0014022082323208451, -0.024830810725688934, 0.06484732776880264, -0.03767506778240204, 0.020675519481301308, -0.0038457848131656647, 0.1300397664308548, -0.04757806658744812, -0.006838059518486261, 0.01636485941708088, -0.03225944563746452, -0.025855518877506256, 0.004630864132195711, -0.05937149375677109, 0.018080132082104683, 0.0451912023127079, 0.000277428567642346, 0.014174631796777248, -0.010956645011901855, 0.04840363189578056, -0.029209600761532784, 0.040809959173202515, 0.0052124978974461555, 0.04012051597237587, -0.02015659399330616, 0.0175633504986763, 0.06602493673563004, 0.010826929472386837, -0.18356294929981232, -0.05586698278784752, 0.017016150057315826, 0.03185538575053215, -0.011294114403426647, -0.03744311258196831, 0.056207552552223206, -0.020542176440358162, 0.000052499352023005486, 0.06912262737751007, -0.06658361107110977, 0.06344278156757355, 0.07302472740411758, -0.04835135489702225, -0.045606084167957306, 0.032897092401981354, -0.1089470237493515, -3.3115207678739754e-33, 0.039691731333732605, -0.01147890742868185, 0.02348156087100506, 0.04938475415110588, 0.02913018874824047, 0.001540370169095695, -0.023548128083348274, -0.023331979289650917, 0.000250916724326089, -0.04305419698357582, -0.07265827804803848, -0.060684703290462494, -0.01312760729342699, 0.0006094422424212098, -0.10347887128591537, 0.01723061315715313, -0.03887540102005005, 0.02312363311648369, -0.00515867630019784, 0.005872954148799181, -0.015187564305961132, 0.020019881427288055, 0.019210929051041603, 0.04124601185321808, 0.027759382501244545, 0.013639947399497032, 0.0006817903486080468, 0.031001007184386253, -0.03940828517079353, -0.04464208707213402, -0.016309477388858795, -0.1262262463569641, -0.030985495075583458, 0.003222170053049922, 0.0759868398308754, -0.041191838681697845, -0.07200843095779419, 0.03361084684729576, 0.03827670216560364, 0.06161247938871384, 0.07499528676271439, 0.04564904049038887, -0.09675637632608414, -0.016612203791737556, -0.012891435995697975, 0.02170128934085369, -0.0013806226197630167, -0.04521646350622177, -0.025815138593316078, -0.05573828145861626, -0.037122294306755066, -0.033926770091056824, 0.008285141550004482, 0.14900988340377808, -0.004161973018199205, 0.02455637790262699, -0.035834118723869324, 0.05308780074119568, -0.022338878363370895, 0.005857686046510935, 0.012771520763635635, -0.029812883585691452, 0.0397593230009079, 0.021061671897768974, 0.029131270945072174, -0.04614154249429703, -0.001647088211029768, 0.0290294848382473, -0.012936249375343323, 0.061872247606515884, -0.024676499888300896, 0.04312383010983467, 0.062476471066474915, 0.07407538592815399, -0.05762737989425659, -0.026022346690297127, 0.009893844835460186, -0.0070748901925981045, 0.0046097650192677975, 0.08178266137838364, -0.09939415752887726, 0.08066082745790482, -0.0650981143116951, -0.03410036489367485, -0.007177951280027628, 0.0887945219874382, 0.11021959781646729, 0.07247141003608704, 0.057150550186634064, 0.0682116374373436, 0.03234823793172836, 0.030930189415812492, -0.013351885601878166, 0.06526575982570648, -0.01714569516479969, -5.178987549925296e-8, 0.03584746643900871, -0.013805127702653408, -0.03455094248056412, 0.10397803038358688, 0.043952472507953644, -0.07385043799877167, 0.006387332919985056, -0.02054055966436863, -0.05573570728302002, 0.04300491511821747, 0.09085376560688019, -0.017140623182058334, -0.045658569782972336, -0.013121185824275017, 0.07722936570644379, -0.037205178290605545, 0.042333461344242096, 0.053869277238845825, -0.0029919093940407038, -0.043653491884469986, -0.025594433769583702, -0.0069791413843631744, 0.020657073706388474, 0.015323339961469173, 0.031294021755456924, 0.04373136907815933, 0.08631207793951035, 0.021937748417258263, 0.010661667212843895, -0.0409252904355526, -0.11581332236528397, -0.012975167483091354, -0.0319041982293129, 0.06317386031150818, -0.058732010424137115, 0.03540341183543205, -0.16913792490959167, 0.053363800048828125, 0.0014896625652909279, 0.13311128318309784, 0.03633604198694229, -0.04874452203512192, -0.08486956357955933, 0.005817146506160498, -0.04146963357925415, 0.008412104099988937, -0.026788951829075813, 0.08414017409086227, 0.03080102801322937, -0.019100522622466087, -0.020488515496253967, -0.043654248118400574, -0.042726218700408936, 0.030565623193979263, 0.03269544988870621, -0.011743535287678242, -0.006109609268605709, -0.06667335331439972, -0.038177188485860825, 0.0067546009086072445, -0.00545929092913866, -0.02721296064555645, -0.06686851382255554, -0.008067866787314415 ]
0.136588
exclusively on nodes (i.e., placing more than one pods on one node invalidates the cache) Also, to enable this feature, the scheduler configuration needs to: 1. Disable [default topology spread](/docs/concepts/scheduling-eviction/topology-spread-constraints/#internal-default-constraints) (set empty) 1. Disable [DRAExtendedResource](/docs/reference/command-line-tools-reference/feature-gates/#DRAExtendedResource) feature. 1. Set `IgnorePreferredTermsOfExistingPods` of [InterPodAffinityArgs](/docs/reference/config-api/kube-scheduler-config.v1/#kubescheduler-config-k8s-io-v1-InterPodAffinityArgs) to `true` to make the batching more efficient Note that whenever: 1. Exisiting pods use pod affinity constraints that match any of the scheduled pods' labels, the feature may bring no benefit 1. Custom plugins are used, they need to implement the Signature extension point The restrictions and conditions are expected to evolve in furutre releases. ## {{% heading "whatsnext" %}} \* Check the [kube-scheduler configuration reference (v1)](/docs/reference/config-api/kube-scheduler-config.v1/)
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/scheduler-perf-tuning.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/scheduler-perf-tuning.md
[ -0.005766266956925392, -0.013910328969359398, 0.03887518122792244, 0.040566232055425644, -0.0283800158649683, -0.04511492699384689, -0.023543184623122215, -0.02913409098982811, 0.011071134358644485, -0.005430432036519051, -0.0746585875749588, -0.0388873890042305, -0.025447405874729156, -0.038771990686655045, 0.07116765528917313, 0.00409980583935976, 0.05736749619245529, 0.005495455116033554, -0.02622276172041893, -0.04269050061702728, 0.034122683107852936, 0.010174449533224106, 0.03777727112174034, 0.05780487880110741, -0.04527769610285759, -0.007950441911816597, -0.04989326372742653, -0.06061965599656105, 0.023760482668876648, -0.04118435084819794, -0.026017457246780396, 0.004537142813205719, -0.012372690252959728, 0.028023814782500267, 0.12389048933982849, 0.0716167688369751, -0.07989763468503952, -0.05928930640220642, -0.019282730296254158, 0.010519377887248993, 0.08786798268556595, 0.021018538624048233, -0.06610952317714691, 0.0001486727560404688, -0.06151367351412773, 0.012953897938132286, -0.03971628099679947, 0.01598532311618328, -0.046122677624225616, -0.036918722093105316, 0.04403216764330864, -0.08712401986122131, 0.035828616470098495, 0.0341985784471035, 0.05024483799934387, 0.11705715954303741, 0.012009501457214355, 0.06464722752571106, 0.0983193889260292, 0.005289149004966021, 0.05456223338842392, -0.08255022019147873, 0.006916055455803871, -0.05181907117366791, -0.03171001374721527, -0.014263071119785309, 0.05076632648706436, 0.013886766508221626, 0.07209470868110657, 0.05309987813234329, 0.05148512125015259, 0.020172370597720146, -0.022702986374497414, 0.009950855746865273, 0.009353837929666042, 0.07447876036167145, 0.005918722599744797, 0.045004166662693024, 0.0018967855721712112, -0.08851303160190582, -0.059628862887620926, -0.0012197878677397966, 0.08088330924510956, -0.06699175387620926, -0.027588235214352608, 0.0015767347067594528, 0.015865683555603027, -0.051634568721055984, 0.08178703486919403, -0.0010885432129725814, 0.06424984335899353, -0.009606705978512764, -0.004735203925520182, -0.09297841787338257, 0.030827460810542107, 0.0019095679745078087, 0.025856709107756615, 0.05649184808135033, 0.056550655514001846, 0.022372808307409286, 0.02782353200018406, -0.01294863410294056, -0.03746603801846504, 0.06065027788281441, 0.07270753383636475, -0.04963456839323044, -0.048366039991378784, -0.07717172801494598, -0.05122321471571922, -0.0004290805954951793, 0.04373263195157051, 0.057395268231630325, 0.07427014410495758, 0.020957769826054573, -0.02953711524605751, 0.05635278299450874, 0.0508100651204586, -0.03813185170292854, 0.049519628286361694, 0.033580124378204346, -0.037995606660842896, -0.09782664477825165, 0.032719649374485016, -0.010009430348873138, -0.04799533635377884, -0.009831237606704235, -0.015583225525915623, 5.234815768205446e-33, 0.0034713472705334425, -0.10016749799251556, -0.008550986647605896, -0.12152612209320068, 0.050795409828424454, -0.0769219845533371, -0.05026790127158165, 0.01697295904159546, -0.03357182815670967, -0.07983673363924026, -0.024591557681560516, 0.030603138729929924, -0.011440001428127289, -0.023821549490094185, -0.003740904852747917, -0.0570724755525589, 0.002086206804960966, 0.0655122771859169, 0.07534279674291611, -0.03260201960802078, 0.04340175539255142, -0.059121016412973404, -0.08184465020895004, -0.01056146901100874, -0.05602879449725151, 0.0010555065236985683, 0.057134658098220825, -0.09178520739078522, -0.00265962490811944, 0.03058355674147606, -0.028787581250071526, 0.009831779636442661, 0.03707585483789444, 0.09742109477519989, -0.11547517031431198, 0.0030859215185046196, -0.050209153443574905, 0.02597426436841488, -0.08544151484966278, -0.035715557634830475, 0.012902665883302689, 0.05708746239542961, 0.01651666685938835, -0.11023814231157303, 0.044822294265031815, -0.021300528198480606, 0.05084256827831268, -0.013634310103952885, 0.05444980412721634, 0.01850329339504242, 0.04196062684059143, -0.026376917958259583, 0.044748734682798386, -0.07163659483194351, 0.005632695276290178, -0.03618515282869339, 0.10074902325868607, -0.08041248470544815, 0.016995443031191826, 0.057700056582689285, -0.019218171015381813, -0.012520472519099712, -0.005924846976995468, -0.005082601681351662, 0.062225017696619034, 0.09414245933294296, -0.008128872141242027, 0.0472300685942173, 0.030555611476302147, 0.053141865879297256, -0.03901589661836624, 0.030226007103919983, -0.038459546864032745, -0.03977888077497482, -0.035755325108766556, -0.07129199057817459, 0.033335477113723755, 0.049159158021211624, -0.12654589116573334, 0.07769971340894699, 0.04050629585981369, 0.045946378260850906, -0.04330937936902046, 0.06466764956712723, -0.025490783154964447, -0.07671085000038147, 0.007022716570645571, 0.00978255644440651, 0.00021234941959846765, 0.0773283913731575, 0.0621265284717083, -0.03272983059287071, -0.005038530565798283, 0.048207417130470276, -0.07835536450147629, -3.895487994263256e-33, 0.07756004482507706, -0.019499190151691437, 0.053318798542022705, 0.10265646874904633, 0.0141166215762496, 0.03247535973787308, -0.04336272180080414, 0.006478719413280487, 0.009777373634278774, -0.06454665213823318, -0.07370253652334213, -0.026520127430558205, 0.02162919193506241, 0.00702951243147254, -0.06885194778442383, 0.01697264052927494, -0.045386895537376404, -0.04332391545176506, -0.02165587618947029, 0.04284762963652611, 0.04032272845506668, -0.0073416465893387794, -0.011976605281233788, 0.030836621299386024, 0.07776563614606857, 0.0017301839543506503, -0.01766296848654747, 0.0604722686111927, -0.01647944003343582, -0.04475078359246254, -0.008287547156214714, -0.050589535385370255, -0.04856564477086067, -0.06376069039106369, 0.050605304539203644, -0.029582243412733078, -0.07691272348165512, 0.14639681577682495, 0.01829393394291401, 0.06263899058103561, 0.06791508197784424, 0.018965817987918854, -0.09761049598455429, 0.004114327020943165, -0.018885396420955658, 0.0016131876036524773, -0.0431722067296505, -0.020522411912679672, -0.08208347111940384, -0.022717420011758804, -0.03318693861365318, -0.015370664186775684, -0.07195109128952026, 0.0770198404788971, 0.011280403472483158, 0.009113734588027, -0.0021887312177568674, 0.03322870284318924, -0.013403767719864845, 0.06131928786635399, 0.06556571274995804, -0.1178242489695549, 0.02016076259315014, 0.003000179072842002, 0.026539385318756104, -0.06437533348798752, 0.004734679125249386, -0.01482991874217987, -0.03916752338409424, 0.038270775228738785, 0.052290961146354675, -0.025228507816791534, 0.0042617106810212135, 0.016643695533275604, -0.06723849475383759, -0.010469566099345684, 0.028122389689087868, -0.060182467103004456, 0.0016498788027092814, 0.06395896524190903, -0.1420672982931137, 0.05671316012740135, -0.0028105112724006176, 0.040195852518081665, -0.023643359541893005, 0.09545957297086716, 0.04519170522689819, 0.10080651938915253, 0.043456073850393295, 0.0893189087510109, 0.04227672517299652, -0.0544981025159359, -0.003524858271703124, 0.13199147582054138, -0.03220212459564209, -5.1188628447107476e-8, 0.01679953932762146, -0.013476396910846233, -0.031230080872774124, 0.09620943665504456, 0.057540394365787506, -0.11511833220720291, 0.08862628042697906, 0.05701073259115219, -0.04181122034788132, 0.041641395539045334, 0.07063867151737213, 0.014971538446843624, -0.029790226370096207, 0.02398238331079483, 0.08063048869371414, -0.011379770003259182, 0.04552389681339264, 0.007172191981226206, -0.026610787957906723, -0.06039292737841606, -0.08731286972761154, -0.04835124313831329, 0.04075847193598747, -0.06019554287195206, -0.005554952193051577, 0.04150520637631416, 0.09384706616401672, 0.050943177193403244, 0.08298847824335098, 0.037638772279024124, -0.07785838842391968, -0.027505746111273766, -0.03236246109008789, -0.0097885737195611, -0.0713893473148346, 0.010427815839648247, -0.13253210484981537, 0.012839113362133503, -0.025599131360650063, 0.05937419831752777, 0.004280886147171259, -0.04385820031166077, -0.016784057021141052, 0.013052229769527912, 0.003192316507920623, 0.0612252801656723, -0.013050645589828491, 0.07041244953870773, -0.003475134028121829, 0.020368868485093117, -0.04683225229382515, -0.052282240241765976, 0.011825577355921268, 0.038123250007629395, -0.00876430980861187, -0.020024659112095833, 0.020594287663698196, -0.07600655406713486, 0.02977876365184784, 0.00849594920873642, -0.00821251142770052, -0.03899526223540306, -0.026226136833429337, -0.04123208299279213 ]
0.124101
In the [scheduling-plugin](/docs/reference/scheduling/config/#scheduling-plugins) `NodeResourcesFit` of kube-scheduler, there are two scoring strategies that support the bin packing of resources: `MostAllocated` and `RequestedToCapacityRatio`. ## Enabling bin packing using MostAllocated strategy The `MostAllocated` strategy scores the nodes based on the utilization of resources, favoring the ones with higher allocation. For each resource type, you can set a weight to modify its influence in the node score. To set the `MostAllocated` strategy for the `NodeResourcesFit` plugin, use a [scheduler configuration](/docs/reference/scheduling/config) similar to the following: ```yaml apiVersion: kubescheduler.config.k8s.io/v1 kind: KubeSchedulerConfiguration profiles: - pluginConfig: - args: scoringStrategy: resources: - name: cpu weight: 1 - name: memory weight: 1 - name: intel.com/foo weight: 3 - name: intel.com/bar weight: 3 type: MostAllocated name: NodeResourcesFit ``` To learn more about other parameters and their default configuration, see the API documentation for [`NodeResourcesFitArgs`](/docs/reference/config-api/kube-scheduler-config.v1/#kubescheduler-config-k8s-io-v1-NodeResourcesFitArgs). ## Enabling bin packing using RequestedToCapacityRatio The `RequestedToCapacityRatio` strategy allows the users to specify the resources along with weights for each resource to score nodes based on the request to capacity ratio. This allows users to bin pack extended resources by using appropriate parameters to improve the utilization of scarce resources in large clusters. It favors nodes according to a configured function of the allocated resources. The behavior of the `RequestedToCapacityRatio` in the `NodeResourcesFit` score function can be controlled by the [scoringStrategy](/docs/reference/config-api/kube-scheduler-config.v1/#kubescheduler-config-k8s-io-v1-ScoringStrategy) field. Within the `scoringStrategy` field, you can configure two parameters: `requestedToCapacityRatio` and `resources`. The `shape` in the `requestedToCapacityRatio` parameter allows the user to tune the function as least requested or most requested based on `utilization` and `score` values. The `resources` parameter comprises both the `name` of the resource to be considered during scoring and its corresponding `weight`, which specifies the weight of each resource. Below is an example configuration that sets the bin packing behavior for extended resources `intel.com/foo` and `intel.com/bar` using the `requestedToCapacityRatio` field. ```yaml apiVersion: kubescheduler.config.k8s.io/v1 kind: KubeSchedulerConfiguration profiles: - pluginConfig: - args: scoringStrategy: resources: - name: intel.com/foo weight: 3 - name: intel.com/bar weight: 3 requestedToCapacityRatio: shape: - utilization: 0 score: 0 - utilization: 100 score: 10 type: RequestedToCapacityRatio name: NodeResourcesFit ``` Referencing the `KubeSchedulerConfiguration` file with the kube-scheduler flag `--config=/path/to/config/file` will pass the configuration to the scheduler. To learn more about other parameters and their default configuration, see the API documentation for [`NodeResourcesFitArgs`](/docs/reference/config-api/kube-scheduler-config.v1/#kubescheduler-config-k8s-io-v1-NodeResourcesFitArgs). ### Tuning the score function `shape` is used to specify the behavior of the `RequestedToCapacityRatio` function. ```yaml shape: - utilization: 0 score: 0 - utilization: 100 score: 10 ``` The above arguments give the node a `score` of 0 if `utilization` is 0% and 10 for `utilization` 100%, thus enabling bin packing behavior. To enable least requested the score value must be reversed as follows. ```yaml shape: - utilization: 0 score: 10 - utilization: 100 score: 0 ``` `resources` is an optional parameter which defaults to: ```yaml resources: - name: cpu weight: 1 - name: memory weight: 1 ``` It can be used to add extended resources as follows: ```yaml resources: - name: intel.com/foo weight: 5 - name: cpu weight: 3 - name: memory weight: 1 ``` The `weight` parameter is optional and is set to 1 if not specified. Also, the `weight` cannot be set to a negative value. ### Node scoring for capacity allocation This section is intended for those who want to understand the internal details of this feature. Below is an example of how the node score is calculated for a given set of values. Requested resources: ``` intel.com/foo : 2 memory: 256MB cpu: 2 ``` Resource weights: ``` intel.com/foo : 5 memory: 1 cpu: 3 ``` FunctionShapePoint {{0, 0}, {100, 10}} Node 1 spec: ``` Available: intel.com/foo: 4 memory: 1 GB cpu: 8 Used:
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/resource-bin-packing.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/resource-bin-packing.md
[ -0.012491966597735882, 0.034387826919555664, -0.016917698085308075, 0.05067851021885872, 0.009124074131250381, -0.0018577806185930967, 0.013552241027355194, -0.0278469230979681, 0.017094280570745468, 0.06072826310992241, -0.09053391218185425, -0.046351686120033264, 0.020125096663832664, 0.02335478737950325, -0.042439188808202744, -0.05236818268895149, 0.024630015715956688, -0.017713552340865135, -0.038188375532627106, -0.11180460453033447, 0.0948915109038353, -0.044560834765434265, 0.06608480215072632, -0.07113949954509735, -0.00042851228499785066, -0.03808889910578728, -0.02538057416677475, -0.019573429599404335, 0.037686288356781006, -0.0626344382762909, -0.0157779473811388, -0.006306521128863096, 0.03048461303114891, 0.007058885879814625, 0.028440164402127266, 0.12346579879522324, -0.06839121878147125, -0.10024913400411606, -0.04442290961742401, 0.04890844598412514, 0.033985260874032974, 0.06525459885597229, -0.0437951423227787, -0.019558129832148552, -0.007040906697511673, 0.0013669762993231416, -0.05364524573087692, -0.015168237499892712, -0.05495750159025192, -0.05393378809094429, 0.07692752778530121, -0.05542599409818649, 0.04297240450978279, 0.01645294763147831, 0.032118912786245346, 0.051153384149074554, 0.05022658780217171, -0.017243651673197746, 0.10030010342597961, 0.059429775923490524, -0.0015928399516269565, -0.03423721343278885, 0.06113497540354729, -0.029943188652396202, 0.03556828200817108, 0.025378093123435974, 0.03722288832068443, 0.026988549157977104, -0.028463998809456825, 0.012698239646852016, 0.04140918701887131, 0.0010401635663583875, -0.08518123626708984, 0.023461755365133286, 0.029493562877178192, 0.057477839291095734, -0.0012985748471692204, 0.06804961711168289, -0.053596436977386475, -0.05090837925672531, -0.07636117935180664, 0.008007128722965717, 0.054194703698158264, -0.04477326571941376, -0.04027417302131653, -0.002340479288250208, -0.025167884305119514, -0.035634979605674744, 0.10629987716674805, 0.06912099570035934, 0.025932462885975838, 0.03633692115545273, -0.062353216111660004, -0.04577595740556717, 0.024851975962519646, 0.023173905909061432, -0.06647516787052155, 0.026131920516490936, 0.0030745267868041992, -0.014012014493346214, 0.020417610183358192, 0.0029135814402252436, 0.04570423811674118, 0.03451765701174736, 0.08382265269756317, -0.045411475002765656, -0.04304901137948036, 0.02596195414662361, -0.09119238704442978, 0.04045260325074196, 0.030734824016690254, 0.1116146445274353, 0.022784963250160217, -0.015260272659361362, -0.00293944263830781, 0.0774153470993042, 0.07650122791528702, -0.011759284883737564, 0.02033390663564205, 0.12161166220903397, 0.03056078776717186, -0.023407477885484695, -0.02719402313232422, -0.0605960413813591, 0.0014167210320010781, 0.002543644979596138, -0.059870436787605286, 6.669541888214573e-33, 0.01972927525639534, -0.11096614599227905, 0.06913590431213379, -0.0734448954463005, -0.0056379674933850765, -0.11066887527704239, -0.04111466929316521, 0.02684868313372135, -0.07441630214452744, -0.08230714499950409, -0.04528244957327843, 0.04986938089132309, -0.03946343809366226, -0.00983128696680069, 0.028283683583140373, -0.06562592089176178, 0.008486536331474781, 0.07350479066371918, 0.03774222359061241, -0.05879522114992142, 0.007026192266494036, -0.10884328931570053, -0.03299110755324364, -0.04087216407060623, 0.06791037321090698, -0.008731639944016933, 0.04595843330025673, -0.09217281639575958, -0.002709468360990286, -0.0032143350690603256, 0.008555905893445015, 0.0027136977296322584, -0.007037523202598095, 0.049895986914634705, -0.0816800445318222, -0.0070961336605250835, -0.08276569098234177, 0.08712410181760788, -0.05252867192029953, 0.010305161587893963, 0.027864882722496986, 0.05459177866578102, 0.003017773851752281, -0.04896056279540062, 0.0371888093650341, -0.02090432494878769, 0.05575886368751526, -0.07612206786870956, 0.010796154849231243, 0.044923800975084305, 0.04493367299437523, -0.01654254086315632, 0.09764699637889862, 0.002646304201334715, 0.019807763397693634, -0.014040153473615646, 0.11117589473724365, -0.0451965257525444, 0.011231240816414356, 0.023335356265306473, 0.03129538893699646, -0.061838481575250626, -0.02986326813697815, 0.05508505553007126, 0.05248837545514107, 0.02641380950808525, -0.029572296887636185, 0.020990949124097824, -0.02574523165822029, 0.02528940699994564, -0.03221289813518524, 0.042499642819166183, 0.03607785701751709, 0.044061265885829926, -0.03813241422176361, -0.042530398815870285, 0.027491386979818344, -0.006869240198284388, -0.14312869310379028, -0.009908818639814854, 0.01447630301117897, 0.015632223337888718, 0.04149499163031578, -0.05936441197991371, 0.002080155536532402, -0.058534834533929825, -0.010134855285286903, 0.017147541046142578, 0.005211127456277609, -0.005822044797241688, 0.043045688420534134, -0.02968577668070793, -0.08398685604333878, -0.002643616171553731, -0.08707372844219208, -5.413915924206653e-33, 0.05828772857785225, 0.037597306072711945, 0.040132906287908554, 0.03880054131150246, 0.046820018440485, -0.009779438376426697, -0.046640779823064804, -0.02383531630039215, 0.0372636653482914, 0.000579066458158195, -0.06554582715034485, -0.07632153481245041, 0.057264648377895355, -0.01862715370953083, -0.06969426572322845, -0.003784723347052932, -0.05650743097066879, -0.019901856780052185, -0.018863894045352936, 0.017112182453274727, -0.010245868936181068, 0.009843903593719006, 0.049012284725904465, -0.05279489979147911, 0.035895947366952896, -0.016178686171770096, -0.04005282372236252, 0.06266617029905319, -0.02807493321597576, 0.006453061942011118, -0.01266550738364458, -0.11638635396957397, -0.09778237342834473, -0.024063756689429283, 0.047183021903038025, -0.05526405945420265, -0.0607718788087368, 0.1324234902858734, 0.038614556193351746, 0.136317178606987, 0.04871456325054169, 0.0027474691160023212, -0.10317528992891312, -0.037088699638843536, -0.015630774199962616, 0.025469813495874405, -0.012000171467661858, -0.1335657238960266, -0.012344508431851864, -0.10572054237127304, -0.03452744334936142, 0.04059683158993721, -0.007754369638860226, 0.10846839845180511, -0.004116998054087162, 0.004991714842617512, -0.003897101152688265, 0.06578748673200607, 0.031375426799058914, -0.01608472876250744, 0.0553070493042469, -0.0581948347389698, 0.03169179707765579, -0.028567712754011154, -0.0028815758414566517, -0.03450952097773552, 0.0224598441272974, -0.038864221423864365, -0.01282988116145134, 0.04075818136334419, 0.0033203628845512867, 0.014805375598371029, 0.036521244794130325, 0.06344138085842133, -0.05180956423282623, -0.00025925866793841124, 0.056892894208431244, 0.016419745981693268, 0.01345199067145586, 0.06063135713338852, -0.09125347435474396, 0.04810069128870964, -0.03409657999873161, 0.001608144142664969, -0.021433236077427864, 0.05750001221895218, 0.04540576413273811, 0.032596081495285034, 0.010839671827852726, 0.08118293434381485, -0.038805607706308365, -0.04663056880235672, -0.030925581231713295, 0.07902131974697113, -0.057474128901958466, -5.036697459104289e-8, 0.01753995195031166, -0.03726491704583168, -0.03342699632048607, 0.08337946236133575, 0.0779101625084877, -0.07604603469371796, 0.05820262059569359, 0.08187273144721985, 0.00004244695446686819, 0.06290610134601593, 0.08703882247209549, 0.06700260937213898, 0.02664472907781601, -0.006535280961543322, 0.05521170422434807, -0.00315212388522923, 0.006278902757912874, 0.03725225478410721, -0.008525068871676922, -0.07999127358198166, 0.014523476362228394, -0.016437282785773277, 0.029743418097496033, -0.005719665437936783, 0.023831166326999664, 0.018655164167284966, 0.042785342782735825, 0.05136682093143463, 0.0033012484200298786, 0.04489263892173767, -0.05212311074137688, 0.0040802485309541225, -0.06587795168161392, -0.0032523588743060827, -0.028789298608899117, 0.039161261171102524, -0.1847895085811615, 0.03908183053135872, 0.016525134444236755, 0.12976667284965515, 0.03331439942121506, -0.01360732689499855, -0.04784666746854782, 0.023454952985048294, 0.034244053065776825, 0.09699542075395584, -0.10211113840341568, 0.1150270402431488, -0.006103194784373045, -0.06896740198135376, -0.006892030127346516, -0.03388362005352974, -0.04065137356519699, 0.03744173422455788, -0.01111220195889473, 0.02605530619621277, 0.04221652075648308, -0.0669688731431961, 0.005096275359392166, 0.0031636697240173817, -0.04210565611720085, -0.049919549375772476, -0.02008041925728321, -0.025223050266504288 ]
0.141571
node score is calculated for a given set of values. Requested resources: ``` intel.com/foo : 2 memory: 256MB cpu: 2 ``` Resource weights: ``` intel.com/foo : 5 memory: 1 cpu: 3 ``` FunctionShapePoint {{0, 0}, {100, 10}} Node 1 spec: ``` Available: intel.com/foo: 4 memory: 1 GB cpu: 8 Used: intel.com/foo: 1 memory: 256MB cpu: 1 ``` Node score: ``` intel.com/foo = resourceScoringFunction((2+1),4) = (100 - ((4-3)\*100/4)) = (100 - 25) = 75 # requested + used = 75% \* available = rawScoringFunction(75) = 7 # floor(75/10) memory = resourceScoringFunction((256+256),1024) = (100 -((1024-512)\*100/1024)) = 50 # requested + used = 50% \* available = rawScoringFunction(50) = 5 # floor(50/10) cpu = resourceScoringFunction((2+1),8) = (100 -((8-3)\*100/8)) = 37.5 # requested + used = 37.5% \* available = rawScoringFunction(37.5) = 3 # floor(37.5/10) NodeScore = ((7 \* 5) + (5 \* 1) + (3 \* 3)) / (5 + 1 + 3) = 5 ``` Node 2 spec: ``` Available: intel.com/foo: 8 memory: 1GB cpu: 8 Used: intel.com/foo: 2 memory: 512MB cpu: 6 ``` Node score: ``` intel.com/foo = resourceScoringFunction((2+2),8) = (100 - ((8-4)\*100/8) = (100 - 50) = 50 = rawScoringFunction(50) = 5 memory = resourceScoringFunction((256+512),1024) = (100 -((1024-768)\*100/1024)) = 75 = rawScoringFunction(75) = 7 cpu = resourceScoringFunction((2+6),8) = (100 -((8-8)\*100/8)) = 100 = rawScoringFunction(100) = 10 NodeScore = ((5 \* 5) + (7 \* 1) + (10 \* 3)) / (5 + 1 + 3) = 7 ``` ## {{% heading "whatsnext" %}} - Read more about the [scheduling framework](/docs/concepts/scheduling-eviction/scheduling-framework/) - Read more about [scheduler configuration](/docs/reference/scheduling/config/)
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/resource-bin-packing.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/resource-bin-packing.md
[ 0.01683538779616356, 0.03453720360994339, -0.08068004250526428, 0.1066289022564888, 0.03260190412402153, -0.05680636689066887, 0.0030059406999498606, 0.06966768950223923, -0.01649637147784233, 0.012553227134048939, -0.07356195151805878, -0.07131592184305191, 0.03999289497733116, -0.03397682309150696, 0.025779636576771736, -0.037983085960149765, 0.020684177055954933, 0.003991282545030117, -0.06084098666906357, -0.0870416909456253, 0.11240661889314651, 0.026039043441414833, 0.03195198252797127, -0.06953404098749161, 0.014983488246798515, -0.06093398481607437, -0.04989345371723175, 0.03804483637213707, 0.0938454121351242, -0.008146261796355247, 0.09057725220918655, -0.0006095145945437253, -0.01497875526547432, 0.07034189999103546, 0.005665410775691271, 0.1145792156457901, -0.07617141306400299, -0.1250675767660141, -0.015264743007719517, 0.02527257613837719, 0.027188105508685112, 0.07816927880048752, 0.009443959221243858, 0.03534989431500435, 0.05912342295050621, 0.039346758276224136, -0.04757802560925484, 0.005612469278275967, -0.017404215410351753, -0.0051712277345359325, -0.00585715938359499, 0.029772749170660973, -0.01646103709936142, -0.0654510036110878, 0.039120785892009735, 0.06643501669168472, 0.07100170850753784, -0.02557511068880558, -0.021259881556034088, 0.03633393719792366, -0.01513763889670372, -0.12210234999656677, 0.06480438262224197, -0.08335018157958984, 0.05544548109173775, 0.003998769912868738, 0.026151282712817192, -0.0035832244902849197, -0.015164367854595184, -0.015362401492893696, 0.04915279150009155, 0.002015812089666724, -0.04446873068809509, 0.023039456456899643, -0.00642536161467433, 0.08528861403465271, -0.00022892552078701556, -0.01790693588554859, -0.02983347699046135, -0.06526099890470505, -0.024780236184597015, -0.002285935916006565, -0.004960459191352129, -0.017098693177103996, 0.024004267528653145, 0.05812041833996773, 0.03185610845685005, -0.015909453853964806, 0.08734972029924393, 0.049413878470659256, 0.04267549887299538, 0.06647305190563202, -0.10484485328197479, -0.01427534595131874, 0.05353983864188194, 0.05923851206898689, -0.03714067488908768, -0.08105647563934326, -0.03635849431157112, 0.02751852385699749, 0.0038175645750015974, 0.07516688108444214, 0.09287933260202408, -0.06554865837097168, 0.0003415276005398482, -0.02048296481370926, 0.005513717886060476, 0.16784773766994476, -0.06431106477975845, -0.0007054493762552738, 0.02816411480307579, 0.06764210015535355, 0.028365276753902435, 0.013315207324922085, 0.0693216323852539, 0.006620166823267937, 0.10096361488103867, -0.08494982123374939, 0.05049896240234375, 0.11467235535383224, 0.06600317358970642, 0.030903639271855354, -0.007455605547875166, -0.002559067914262414, -0.06600349396467209, -0.07663878798484802, -0.0963379293680191, 8.94113843608858e-33, -0.05857178568840027, -0.06079855561256409, 0.012191559188067913, -0.03390897810459137, -0.06230754032731056, -0.04091060161590576, -0.013998247683048248, 0.00046677966020070016, -0.10764645040035248, 0.005316547118127346, -0.06571064889431, 0.03695293888449669, -0.018822718411684036, -0.008098583668470383, 0.034535665065050125, -0.06312640756368637, 0.08647982776165009, 0.016618164256215096, 0.057724304497241974, -0.022849833592772484, 0.05810268223285675, -0.016394540667533875, -0.0081913648173213, -0.03179814666509628, 0.04222617670893669, 0.006246357690542936, -0.0011174665996804833, 0.007235626224428415, 0.006290780380368233, -0.028171611949801445, 0.012569483369588852, -0.012162458151578903, -0.07996627688407898, -0.03233039006590843, 0.056235454976558685, -0.0377519354224205, 0.05010329931974411, 0.03867199644446373, -0.047606244683265686, -0.020564019680023193, -0.03000524453818798, 0.07608603686094284, 0.012345493771135807, -0.026172693818807602, -0.052354466170072556, -0.09748876839876175, -0.02757379785180092, -0.053181715309619904, 0.008699160069227219, 0.06991933286190033, 0.015772126615047455, 0.014348533935844898, 0.0375610813498497, -0.008401275612413883, -0.007638965733349323, -0.016112318262457848, 0.020416080951690674, 0.04798786714673042, 0.08397679775953293, 0.08976566046476364, 0.015175625681877136, -0.04779082536697388, -0.052641935646533966, 0.014615055173635483, 0.05673125758767128, 0.07335701584815979, -0.020346805453300476, 0.02277037501335144, -0.030508382245898247, 0.10756032913923264, 0.018666120246052742, -0.005275600124150515, 0.07104310393333435, -0.0036311177536845207, -0.044809963554143906, -0.0685790553689003, -0.05539284273982048, -0.1107286736369133, -0.14480054378509521, -0.05458318069577217, 0.007026065140962601, 0.05364394560456276, 0.027296537533402443, 0.0007229759939946234, 0.007929891347885132, -0.04936734214425087, -0.007403031922876835, -0.017020341008901596, -0.03224765136837959, -0.04779534041881561, -0.02030249871313572, -0.017165130004286766, -0.023401519283652306, -0.09525588154792786, -0.11340680718421936, -8.359351751720074e-33, -0.05759534612298012, 0.06477830559015274, -0.031966954469680786, 0.09151424467563629, 0.05064884573221207, -0.07863956689834595, -0.0365799255669117, -0.071691133081913, -0.04462782293558121, 0.044154539704322815, -0.052151598036289215, -0.07409432530403137, -0.01857501082122326, -0.0157838873565197, 0.0034340510610491037, 0.04339108616113663, -0.05925866961479187, -0.02606559917330742, 0.03428801894187927, 0.08092991262674332, -0.04243699461221695, 0.1062401533126831, 0.03492219001054764, -0.03767770528793335, -0.0050185853615403175, 0.019291101023554802, -0.044119104743003845, -0.04575272649526596, -0.02216651290655136, -0.05662445351481438, -0.03675328195095062, -0.07715795189142227, -0.04423867538571358, 0.037897463887929916, 0.02144979126751423, -0.08589057624340057, -0.02593066915869713, 0.05345754325389862, 0.013257189653813839, 0.05652095749974251, 0.11564356833696365, 0.018444117158651352, -0.05643778666853905, -0.040010966360569, 0.03979179263114929, 0.05611112713813782, -0.015928223729133606, -0.04567815363407135, 0.011613874696195126, -0.06053592264652252, 0.010069550015032291, -0.013227560557425022, -0.004090581089258194, 0.05734720826148987, -0.04744143411517143, -0.09254265576601028, 0.025303341448307037, 0.02557709999382496, 0.03756018355488777, -0.07862861454486847, 0.04497063159942627, -0.08250356465578079, -0.06294670701026917, -0.060968391597270966, 0.030437663197517395, 0.0005086786113679409, -0.003316556103527546, -0.0734357237815857, -0.056902918964624405, 0.03739543631672859, -0.051991503685712814, 0.06295900791883469, 0.035438306629657745, -0.01763080060482025, -0.06603319197893143, 0.039714515209198, -0.01973983459174633, -0.0013250811025500298, 0.0065642669796943665, 0.08049575239419937, -0.055815357714891434, 0.08981119096279144, -0.00956918764859438, -0.02868407405912876, -0.018376078456640244, 0.026728739961981773, -0.028689924627542496, 0.11325468868017197, -0.05426441878080368, -0.014371405355632305, -0.04233941435813904, 0.013160549104213715, -0.007497626356780529, 0.0022869249805808067, -0.07082106173038483, -5.970889560558135e-8, -0.007528653368353844, -0.031139139086008072, -0.0220800768584013, 0.06293656677007675, 0.0055304523557424545, -0.0012517068535089493, 0.009422891773283482, -0.008369042538106441, 0.02140687219798565, 0.0593552403151989, 0.06195962801575661, -0.08121456205844879, -0.039562076330184937, -0.04647308215498924, 0.02131034806370735, -0.004540723282843828, 0.0026397521141916513, 0.038084499537944794, 0.001911400118842721, -0.0408354327082634, -0.014147662557661533, 0.018045272678136826, -0.031604841351509094, 0.016587788239121437, -0.024511275812983513, -0.04100210219621658, 0.04817960783839226, 0.03499686345458031, -0.012810462154448032, -0.007808905094861984, 0.0027992771938443184, -0.009740285575389862, 0.026556311175227165, 0.013250086456537247, 0.012710800394415855, 0.025958366692066193, -0.05195889621973038, 0.08402317762374878, 0.05138497054576874, 0.11998312175273895, -0.03231409937143326, 0.013180631212890148, 0.01212869118899107, 0.02940293401479721, 0.06719239801168442, -0.023227786645293236, -0.05167526751756668, 0.02686569094657898, 0.08199655264616013, -0.04581226408481598, 0.03281276673078537, -0.02729729749262333, -0.12211951613426208, 0.0609041266143322, 0.014613230712711811, 0.03461173549294472, -0.006799868308007717, -0.06448352336883545, -0.04739372804760933, 0.07765137404203415, 0.05064781755208969, -0.007995390333235264, -0.04500565305352211, -0.03874874860048294 ]
0.138553
{{< glossary\_definition term\_id="api-eviction" length="short" >}} You can request eviction by calling the Eviction API directly, or programmatically using a client of the {{}}, like the `kubectl drain` command. This creates an `Eviction` object, which causes the API server to terminate the Pod. API-initiated evictions respect your configured [`PodDisruptionBudgets`](/docs/tasks/run-application/configure-pdb/) and [`terminationGracePeriodSeconds`](/docs/concepts/workloads/pods/pod-lifecycle#pod-termination). Using the API to create an Eviction object for a Pod is like performing a policy-controlled [`DELETE` operation](/docs/reference/kubernetes-api/workload-resources/pod-v1/#delete-delete-a-pod) on the Pod. ## Calling the Eviction API You can use a [Kubernetes language client](/docs/tasks/administer-cluster/access-cluster-api/#programmatic-access-to-the-api) to access the Kubernetes API and create an `Eviction` object. To do this, you POST the attempted operation, similar to the following example: {{< tabs name="Eviction\_example" >}} {{% tab name="policy/v1" %}} {{< note >}} `policy/v1` Eviction is available in v1.22+. Use `policy/v1beta1` with prior releases. {{< /note >}} ```json { "apiVersion": "policy/v1", "kind": "Eviction", "metadata": { "name": "quux", "namespace": "default" } } ``` {{% /tab %}} {{% tab name="policy/v1beta1" %}} {{< note >}} Deprecated in v1.22 in favor of `policy/v1` {{< /note >}} ```json { "apiVersion": "policy/v1beta1", "kind": "Eviction", "metadata": { "name": "quux", "namespace": "default" } } ``` {{% /tab %}} {{< /tabs >}} Alternatively, you can attempt an eviction operation by accessing the API using `curl` or `wget`, similar to the following example: ```bash curl -v -H 'Content-type: application/json' https://your-cluster-api-endpoint.example/api/v1/namespaces/default/pods/quux/eviction -d @eviction.json ``` ## How API-initiated eviction works When you request an eviction using the API, the API server performs admission checks and responds in one of the following ways: \* `200 OK`: the eviction is allowed, the `Eviction` subresource is created, and the Pod is deleted, similar to sending a `DELETE` request to the Pod URL. \* `429 Too Many Requests`: the eviction is not currently allowed because of the configured {{}}. You may be able to attempt the eviction again later. You might also see this response because of API rate limiting. \* `500 Internal Server Error`: the eviction is not allowed because there is a misconfiguration, like if multiple PodDisruptionBudgets reference the same Pod. If the Pod you want to evict isn't part of a workload that has a PodDisruptionBudget, the API server always returns `200 OK` and allows the eviction. If the API server allows the eviction, the Pod is deleted as follows: 1. The `Pod` resource in the API server is updated with a deletion timestamp, after which the API server considers the `Pod` resource to be terminated. The `Pod` resource is also marked with the configured grace period. 1. The {{}} on the node where the local Pod is running notices that the `Pod` resource is marked for termination and starts to gracefully shut down the local Pod. 1. While the kubelet is shutting the Pod down, the control plane removes the Pod from {{}} objects. As a result, controllers no longer consider the Pod as a valid object. 1. After the grace period for the Pod expires, the kubelet forcefully terminates the local Pod. 1. The kubelet tells the API server to remove the `Pod` resource. 1. The API server deletes the `Pod` resource. ## Troubleshooting stuck evictions In some cases, your applications may enter a broken state, where the Eviction API will only return `429` or `500` responses until you intervene. This can happen if, for example, a ReplicaSet creates pods for your application but new pods do not enter a `Ready` state. You may also notice this behavior in cases where the last evicted Pod had a long termination grace period. If you notice stuck evictions, try one of the following solutions: \* Abort or pause the automated operation causing the issue. Investigate the stuck application before
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/api-eviction.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/api-eviction.md
[ -0.015047789551317692, 0.0693490281701088, 0.06227463111281395, -0.028817925602197647, -0.052505411207675934, -0.03813181445002556, -0.0471971370279789, -0.03852026164531708, 0.07815811783075333, 0.04205051437020302, 0.0077949510887265205, -0.03703504800796509, -0.02622339315712452, -0.026614511385560036, 0.031806305050849915, 0.025648213922977448, -0.011364908888936043, 0.016239726915955544, -0.01683167554438114, -0.024941664189100266, 0.0853205993771553, 0.037909310311079025, 0.001411332399584353, 0.02901516854763031, -0.036987725645303726, -0.024265270680189133, -0.02474920079112053, -0.03616868332028389, 0.04044267535209656, 0.0457141287624836, 0.010153957642614841, -0.002816962543874979, -0.034822896122932434, 0.014377719722688198, 0.10301213711500168, 0.09777362644672394, -0.02892237715423107, -0.07168743759393692, -0.06706145405769348, -0.026299824938178062, 0.05263679847121239, -0.045421622693538666, -0.12775833904743195, 0.010691937990486622, -0.06134912744164467, 0.012283620424568653, -0.05935104191303253, -0.040405720472335815, -0.0204661525785923, 0.0007443481008522213, 0.021656548604369164, -0.06622735410928726, 0.04287685081362724, 0.09421039372682571, 0.06974079459905624, -0.022360784932971, 0.021498791873455048, 0.0797782689332962, 0.07944563031196594, 0.007345276419073343, 0.034498609602451324, 0.042684510350227356, -0.026625853031873703, -0.03030036762356758, 0.0371808297932148, -0.003193426178768277, -0.0010860583279281855, -0.007256688550114632, 0.000493811909109354, 0.017333457246422768, 0.02777394838631153, -0.07688657194375992, -0.02347554825246334, -0.008188451640307903, -0.021261418238282204, 0.044434554874897, -0.0038834474980831146, 0.05328149348497391, -0.025181416422128677, -0.07780618220567703, 0.018754594027996063, 0.02079392969608307, 0.0886724516749382, 0.022479820996522903, -0.06821224093437195, -0.006761930882930756, -0.03144700080156326, -0.06571556627750397, 0.08284702897071838, 0.038235440850257874, 0.06681184470653534, -0.06617990881204605, 0.041185781359672546, -0.10298518091440201, 0.06293946504592896, -0.04050826281309128, 0.009308702312409878, -0.03625372797250748, -0.04726479947566986, 0.01628142036497593, -0.02425455115735531, 0.019155753776431084, -0.061542946845293045, -0.004890821874141693, 0.03717728704214096, -0.05425398424267769, -0.07098986208438873, -0.051841963082551956, 0.0174250490963459, 0.09100286662578583, -0.035402972251176834, 0.03424123302102089, -0.003434081794694066, 0.042364202439785004, -0.010147816501557827, 0.04884228855371475, -0.0664595514535904, 0.05966755747795105, 0.05708283931016922, 0.023141540586948395, 0.06109877675771713, -0.07595701515674591, -0.0402260422706604, 0.03205885738134384, -0.05806293711066246, 0.014596476219594479, 0.07478272169828415, 1.2240206861696509e-33, 0.04400936886668205, -0.13973380625247955, -0.012982778251171112, 0.02968117967247963, 0.03341688960790634, -0.03525371477007866, -0.0007226720917969942, 0.06325226277112961, -0.00159206404350698, -0.014613037928938866, -0.08513492345809937, 0.052568938583135605, -0.010068253614008427, -0.03288361057639122, -0.011811361648142338, -0.03901597857475281, -0.045800261199474335, 0.06958132237195969, 0.05729726329445839, 0.02194194495677948, 0.09222406893968582, -0.032661277800798416, 0.007138480897992849, -0.023275621235370636, 0.02537480928003788, -0.014170308597385883, -0.012077543884515762, -0.10629801452159882, -0.029280729591846466, 0.04509054124355316, -0.06891363114118576, 0.021020540967583656, -0.001655125175602734, 0.015417939983308315, -0.1833225041627884, -0.08643757551908493, -0.05433063581585884, 0.004191994201391935, -0.10769662261009216, -0.08945579826831818, 0.04472986236214638, -0.026591304689645767, -0.0398951955139637, -0.038728874176740646, 0.021548202261328697, -0.05160123109817505, 0.09163210541009903, -0.09169483184814453, 0.047244660556316376, 0.012550858780741692, 0.03601209819316864, -0.04635138437151909, -0.023416196927428246, -0.054037947207689285, 0.030452558770775795, -0.02294396236538887, 0.048117972910404205, -0.057546280324459076, -0.02734331227838993, -0.03554527461528778, -0.07197577506303787, 0.05250348523259163, 0.04619144648313522, -0.013898808509111404, 0.026476169005036354, 0.04405520483851433, -0.09990260750055313, 0.04705246910452843, 0.01551411859691143, -0.029175953939557076, -0.036341678351163864, 0.044137902557849884, 0.03265264257788658, 0.01887514628469944, -0.03272191062569618, -0.09287872165441513, 0.012979348190128803, 0.0015741635579615831, -0.11469269543886185, -0.015448248945176601, 0.04356361925601959, -0.05816347524523735, -0.0017999950796365738, 0.0692286342382431, 0.05037865415215492, -0.006706282030791044, 0.02582148090004921, -0.04132664203643799, -0.0846988633275032, 0.027959927916526794, -0.034810468554496765, -0.041132114827632904, -0.09333024173974991, 0.015766369178891182, -0.07023536413908005, -3.930865231435222e-33, 0.09600712358951569, -0.07584252953529358, -0.046112824231386185, -0.01207373570650816, 0.0072082821279764175, -0.015488320961594582, 0.003004998667165637, 0.13367803394794464, -0.03860108554363251, -0.02315133437514305, -0.08544978499412537, -0.005887097213417292, 0.018177226185798645, 0.07870913296937943, -0.039880335330963135, 0.023093825206160545, -0.08342044800519943, -0.0754857063293457, -0.04760565981268883, 0.06469395756721497, -0.036698851734399796, -0.020902417600154877, 0.013311771675944328, 0.04164119064807892, -0.003903286997228861, -0.033087484538555145, 0.07323329895734787, 0.036943238228559494, -0.04495929926633835, -0.04158279299736023, 0.01910170167684555, -0.07009720802307129, -0.03615085780620575, 0.06548342853784561, 0.019044214859604836, -0.043160565197467804, -0.015123252756893635, 0.08450457453727722, -0.02671998366713524, -0.03798191621899605, 0.09872601181268692, -0.0014141388237476349, -0.0845361202955246, -0.04085644334554672, 0.026710813865065575, -0.019376559183001518, 0.009423677809536457, 0.01687444932758808, 0.022734813392162323, -0.08658911287784576, 0.04944254830479622, 0.02808624505996704, -0.03837818652391434, 0.12550202012062073, -0.0440596379339695, 0.0067594777792692184, 0.08869223296642303, -0.02559431828558445, -0.021566858515143394, -0.0017414223402738571, 0.01103608775883913, -0.01727532595396042, 0.11720982939004898, 0.034786708652973175, 0.03494918346405029, -0.08645812422037125, -0.0005438934895209968, 0.03391311690211296, 0.000156809386680834, -0.011254509910941124, 0.01858426444232464, 0.02148846536874771, 0.030989499762654305, 0.03482990711927414, 0.07070431858301163, 0.014843340963125229, 0.03833453357219696, -0.11998382210731506, 0.05297798290848732, -0.015853090211749077, -0.03845243528485298, 0.07013460248708725, 0.02038910798728466, 0.06594950705766678, -0.015735775232315063, 0.013787991367280483, 0.007623618934303522, 0.10765598714351654, 0.06483983248472214, 0.11911287158727646, 0.011769828386604786, -0.004197339992970228, 0.0090447086840868, 0.11087322980165482, 0.027158120647072792, -4.805899322946061e-8, 0.03311866894364357, 0.0762975811958313, 0.03247186169028282, 0.07439928501844406, 0.0056443046778440475, -0.028677208349108696, 0.04419492557644844, 0.08120918273925781, -0.03860434517264366, -0.04120636731386185, 0.0032843006774783134, 0.04580693691968918, -0.043514132499694824, 0.0530831553041935, -0.033270757645368576, -0.04411538317799568, 0.05195131152868271, 0.019645467400550842, -0.006346011534333229, -0.05253242328763008, -0.0907234400510788, -0.08655581623315811, 0.0058600762858986855, -0.057206008583307266, 0.0000941190155572258, 0.002280447632074356, 0.03901495411992073, 0.012593659572303295, 0.008181753568351269, -0.04879652336239815, -0.06316082924604416, 0.011984346434473991, -0.0406237468123436, 0.06606938689947128, -0.036088377237319946, 0.0617835633456707, -0.08687810599803925, -0.020813938230276108, 0.025020305067300797, 0.039933860301971436, -0.019545311108231544, 0.005173627752810717, -0.030007170513272285, -0.02930598147213459, 0.02461736649274826, 0.06300091743469238, -0.025606723502278328, 0.07110823690891266, 0.023067258298397064, 0.10265000909566879, -0.041085951030254364, -0.06177249550819397, -0.04506286606192589, 0.08025731891393661, -0.027258221060037613, -0.05863399803638458, -0.05611361190676689, -0.029571393504738808, 0.009312856011092663, 0.0062495009042322636, 0.06307635456323624, 0.017794035375118256, 0.041195280849933624, 0.0018519882578402758 ]
0.100753
not enter a `Ready` state. You may also notice this behavior in cases where the last evicted Pod had a long termination grace period. If you notice stuck evictions, try one of the following solutions: \* Abort or pause the automated operation causing the issue. Investigate the stuck application before you restart the operation. \* Wait a while, then directly delete the Pod from your cluster control plane instead of using the Eviction API. ## {{% heading "whatsnext" %}} \* Learn how to protect your applications with a [Pod Disruption Budget](/docs/tasks/run-application/configure-pdb/). \* Learn about [Node-pressure Eviction](/docs/concepts/scheduling-eviction/node-pressure-eviction/). \* Learn about [Pod Priority and Preemption](/docs/concepts/scheduling-eviction/pod-priority-preemption/).
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/api-eviction.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/api-eviction.md
[ 0.0618610642850399, 0.01000225730240345, 0.04408581182360649, 0.04505553096532822, 0.035226088017225266, -0.04113437607884407, -0.07116957753896713, -0.055646512657403946, 0.005803392268717289, 0.053871043026447296, 0.049753446131944656, 0.0008050893666222692, -0.01892726868391037, -0.020222460851073265, -0.0016889915568754077, 0.009298909455537796, -0.017419205978512764, -0.03496728837490082, 0.0417567640542984, 0.015477695502340794, -0.023115208372473717, 0.0126959765329957, -0.0372818224132061, 0.03808566555380821, -0.0208329688757658, 0.024469459429383278, -0.03225366398692131, -0.003876982955262065, 0.04551121965050697, -0.005228923633694649, -0.024975234642624855, -0.01801554672420025, 0.05868181586265564, -0.029208270832896233, 0.1133185401558876, 0.15238840878009796, -0.007713955827057362, -0.07848354429006577, -0.07420454919338226, -0.06236455217003822, 0.06619805097579956, -0.036252278834581375, -0.07534622400999069, -0.020540842786431313, -0.03592141717672348, 0.013108605518937111, -0.034190502017736435, -0.012868650257587433, 0.0026871277950704098, -0.02973083406686783, 0.011391866020858288, 0.030660733580589294, 0.033896852284669876, 0.05788362771272659, 0.05467294529080391, 0.07264424115419388, 0.1279415488243103, 0.071405328810215, 0.08075860887765884, -0.08725892752408981, 0.0453362911939621, 0.039236195385456085, -0.011710844933986664, 0.0029598602559417486, 0.03313366323709488, 0.043275386095047, 0.0010657007806003094, -0.007940045557916164, 0.03891555964946747, 0.02401992678642273, 0.04707949981093407, -0.037028875201940536, -0.023557115346193314, 0.01794022135436535, -0.014634308405220509, 0.08372186124324799, 0.004070870112627745, 0.010510965250432491, 0.015695076435804367, 0.020561490207910538, -0.04304713383316994, -0.04156581684947014, 0.0026931529864668846, -0.021983090788125992, -0.09494904428720474, 0.049231864511966705, -0.046873364597558975, -0.08536283671855927, 0.08975155651569366, -0.005535739473998547, 0.06610258668661118, -0.006289525888860226, 0.06411364674568176, -0.08131719380617142, 0.05574890598654747, -0.026712629944086075, -0.0005202271859161556, -0.06856827437877655, -0.056346993893384933, 0.012933237478137016, 0.02124517410993576, 0.04967507719993591, -0.07091034948825836, -0.011118880473077297, 0.029926784336566925, -0.04511153697967529, 0.025385191664099693, -0.06783530861139297, -0.013625235296785831, 0.0663275271654129, 0.005875656846910715, 0.01756005920469761, 0.011965297162532806, 0.06500590592622757, -0.047838449478149414, 0.05721718445420265, -0.0335770882666111, 0.027434416115283966, 0.015020160935819149, 0.027520719915628433, 0.08248120546340942, -0.06906631588935852, -0.03809604048728943, -0.03261271491646767, -0.032299190759658813, 0.009203826077282429, 0.03968186303973198, -3.633164215756274e-34, -0.020410077646374702, -0.16499938070774078, -0.033149201422929764, 0.030521554872393608, 0.04210033267736435, -0.030497783794999123, 0.0011842109961435199, 0.044115908443927765, 0.008957671001553535, -0.041181083768606186, -0.03361549600958824, -0.035931289196014404, 0.029849257320165634, -0.08771350234746933, -0.03891879320144653, -0.11921145021915436, 0.02144392766058445, 0.06810776144266129, 0.030356789007782936, 0.020875444635748863, 0.127568319439888, -0.031109577044844627, -0.050012703984975815, -0.021338265389204025, -0.008525156415998936, 0.016528017818927765, 0.03451092913746834, -0.07859747856855392, 0.027057595551013947, 0.04181847348809242, -0.04503961652517319, 0.040057290345430374, 0.005384363699704409, 0.037028614431619644, -0.16346757113933563, -0.01207489799708128, 0.014367043040692806, 0.007180024404078722, -0.09693416208028793, -0.10296803712844849, -0.004021461587399244, -0.009773057885468006, -0.020231477916240692, -0.04684164375066757, 0.06602932512760162, -0.0507279708981514, 0.07189300656318665, -0.0633469671010971, 0.0014300770126283169, 0.06070517748594284, -0.019995616748929024, -0.027728484943509102, -0.034485090523958206, -0.05986197665333748, -0.04022928327322006, -0.04341863468289375, 0.060217030346393585, -0.06871873885393143, -0.04893723875284195, -0.02338857203722, -0.026661301031708717, 0.02248731255531311, 0.0568704716861248, -0.04817496985197067, 0.04238620772957802, 0.027899887412786484, -0.06772854924201965, 0.0286889486014843, 0.028661120682954788, 0.025260070338845253, -0.05798283964395523, -0.0019378187134861946, 0.055871084332466125, 0.025324085727334023, -0.07137517631053925, -0.0732981488108635, 0.01165896188467741, -0.029574312269687653, -0.13255073130130768, -0.0005477371742017567, 0.04199615865945816, -0.07247792929410934, 0.012747658416628838, 0.03364309296011925, 0.06451445817947388, -0.03780679777264595, -0.018651172518730164, 0.049674712121486664, -0.08823207020759583, 0.03913028538227081, 0.0605374239385128, 0.018451672047376633, -0.00853914488106966, 0.02845512330532074, -0.06412271410226822, -1.6460320661579794e-33, 0.03323657065629959, -0.04348583146929741, -0.03109651617705822, -0.05136352777481079, 0.0448482483625412, -0.015148261561989784, -0.07791096717119217, 0.05751120299100876, -0.02596035972237587, -0.027420757338404655, -0.10039989650249481, -0.0298965685069561, 0.05799129232764244, 0.005951617378741503, -0.07703270763158798, 0.06453240662813187, 0.0024427524767816067, -0.047442566603422165, -0.000704744947142899, 0.11812114715576172, -0.04934423789381981, 0.001082878326997161, -0.008601438254117966, 0.062390487641096115, -0.007812903262674809, -0.0008320772321894765, 0.044613320380449295, 0.07185608893632889, -0.0298414658755064, -0.003388082841411233, -0.004995536059141159, -0.09181102365255356, -0.034753717482089996, 0.10998857021331787, 0.0578414686024189, -0.01747925579547882, -0.05144569277763367, 0.032114848494529724, -0.03643566370010376, -0.053390394896268845, 0.10558490455150604, -0.01741723343729973, -0.09789746254682541, -0.022251302376389503, 0.04264121875166893, 0.010430351831018925, 0.03126421570777893, -0.0265617948025465, -0.017843151465058327, -0.02244201861321926, -0.012786480598151684, -0.0007683545700274408, 0.05347668379545212, 0.11541067063808441, -0.009126503951847553, 0.03900396078824997, 0.06824349611997604, 0.06759493052959442, -0.01718444563448429, 0.02277844399213791, 0.02588048204779625, 0.01587236300110817, 0.07862291485071182, 0.024866335093975067, 0.036406148225069046, -0.08626750111579895, 0.019976165145635605, 0.009056015871465206, -0.01666470244526863, -0.003856675699353218, 0.011613900773227215, 0.1152738407254219, 0.0409230962395668, 0.06643713265657425, 0.02173943631350994, 0.0034166122786700726, 0.0074016940779984, -0.08565905690193176, -0.011460752226412296, -0.04759737476706505, -0.0738704577088356, 0.10018546879291534, -0.060921669006347656, 0.06396538019180298, -0.026223255321383476, 0.06441321969032288, 0.03778061643242836, 0.052327245473861694, 0.05446590110659599, 0.11973357945680618, -0.04428018629550934, 0.001535384333692491, -0.023677876219153404, 0.068343386054039, 0.00502570578828454, -4.447079149372257e-8, 0.03922707587480545, -0.006130686029791832, 0.03687693923711777, 0.05730051174759865, 0.07501338422298431, -0.03407943993806839, 0.01703447289764881, 0.06412500888109207, -0.08632945269346237, -0.023236989974975586, 0.021864844486117363, 0.04297352582216263, -0.014549839310348034, 0.013090001419186592, -0.006959020160138607, -0.0755428895354271, -0.023446878418326378, 0.0065102181397378445, -0.026501787826418877, -0.06863891333341599, -0.039052534848451614, -0.11034850031137466, -0.0009601077763363719, -0.027821578085422516, 0.015463666059076786, -0.004544381517916918, 0.05555271729826927, 0.01759566180408001, 0.027515439316630363, -0.05586330592632294, -0.09986769407987595, -0.0170673206448555, 0.006541921757161617, 0.0134604936465621, -0.09165287017822266, 0.08847369253635406, 0.022797157987952232, 0.0044614411890506744, 0.011810068041086197, 0.0271028783172369, -0.025466978549957275, 0.07442734390497208, -0.028523892164230347, -0.05061258748173714, -0.03091456927359104, 0.047621581703424454, -0.07831268757581711, 0.10342801362276077, 0.05294609069824219, 0.04822723567485809, -0.05906110629439354, -0.04722166806459427, -0.07545962184667587, 0.06595225632190704, 0.042562682181596756, -0.04846278950572014, -0.0582079254090786, -0.0610402412712574, 0.034363824874162674, 0.052451446652412415, 0.02305568754673004, -0.00048667468945495784, -0.05070515349507332, -0.04681660979986191 ]
0.108774
[\_Node affinity\_](/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity) is a property of {{< glossary\_tooltip text="Pods" term\_id="pod" >}} that \*attracts\* them to a set of {{< glossary\_tooltip text="nodes" term\_id="node" >}} (either as a preference or a hard requirement). \_Taints\_ are the opposite -- they allow a node to repel a set of pods. \_Tolerations\_ are applied to pods. Tolerations allow the scheduler to schedule pods with matching taints. Tolerations allow scheduling but don't guarantee scheduling: the scheduler also [evaluates other parameters](/docs/concepts/scheduling-eviction/pod-priority-preemption/) as part of its function. Taints and tolerations work together to ensure that pods are not scheduled onto inappropriate nodes. One or more taints are applied to a node; this marks that the node should not accept any pods that do not tolerate the taints. ## Concepts You add a taint to a node using [kubectl taint](/docs/reference/generated/kubectl/kubectl-commands#taint). For example, ```shell kubectl taint nodes node1 key1=value1:NoSchedule ``` places a taint on node `node1`. The taint has key `key1`, value `value1`, and taint effect `NoSchedule`. This means that no pod will be able to schedule onto `node1` unless it has a matching toleration. To remove the taint added by the command above, you can run: ```shell kubectl taint nodes node1 key1=value1:NoSchedule- ``` You specify a toleration for a pod in the PodSpec. Both of the following tolerations "match" the taint created by the `kubectl taint` line above, and thus a pod with either toleration would be able to schedule onto `node1`: ```yaml tolerations: - key: "key1" operator: "Equal" value: "value1" effect: "NoSchedule" ``` ```yaml tolerations: - key: "key1" operator: "Exists" effect: "NoSchedule" ``` The default Kubernetes scheduler takes taints and tolerations into account when selecting a node to run a particular Pod. However, if you manually specify the `.spec.nodeName` for a Pod, that action bypasses the scheduler; the Pod is then bound onto the node where you assigned it, even if there are `NoSchedule` taints on that node that you selected. If this happens and the node also has a `NoExecute` taint set, the kubelet will eject the Pod unless there is an appropriate tolerance set. Here's an example of a pod that has some tolerations defined: {{% code\_sample file="pods/pod-with-toleration.yaml" %}} The default value for `operator` is `Equal`. A toleration "matches" a taint if the keys are the same and the effects are the same, and: \* the `operator` is `Exists` (in which case no `value` should be specified), or \* the `operator` is `Equal` and the values should be equal. {{< note >}} There are two special cases: If the `key` is empty, then the `operator` must be `Exists`, which matches all keys and values. Note that the `effect` still needs to be matched at the same time. An empty `effect` matches all effects with key `key1`. {{< /note >}} The above example used the `effect` of `NoSchedule`. Alternatively, you can use the `effect` of `PreferNoSchedule`. The allowed values for the `effect` field are: `NoExecute` : This affects pods that are already running on the node as follows: \* Pods that do not tolerate the taint are evicted immediately \* Pods that tolerate the taint without specifying `tolerationSeconds` in their toleration specification remain bound forever \* Pods that tolerate the taint with a specified `tolerationSeconds` remain bound for the specified amount of time. After that time elapses, the node lifecycle controller evicts the Pods from the node. `NoSchedule` : No new Pods will be scheduled on the tainted node unless they have a matching toleration. Pods currently running on the node are \*\*not\*\* evicted. `PreferNoSchedule` : `PreferNoSchedule` is a "preference" or "soft" version of `NoSchedule`. The control plane will \*try\* to avoid placing a Pod that does
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/taint-and-toleration.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/taint-and-toleration.md
[ -0.059943608939647675, -0.0009764101705513895, 0.04484452307224274, 0.04989269748330116, 0.058994632214307785, -0.00524928979575634, 0.11074303835630417, -0.06220374256372452, 0.0054392265155911446, -0.011418106034398079, 0.02296084351837635, -0.054509636014699936, 0.013918253593146801, -0.01953534036874771, -0.02589099481701851, 0.05406399071216583, 0.05827353894710541, -0.030545484274625778, -0.04737956076860428, -0.01729973591864109, 0.042380381375551224, 0.025518259033560753, -0.04002971947193146, 0.048568177968263626, -0.05537069961428642, -0.007034150417894125, -0.1238078698515892, -0.019921451807022095, 0.1000404953956604, 0.02228478714823723, -0.03977123647928238, 0.0815163105726242, -0.035771749913692474, 0.057707153260707855, 0.022629400715231895, 0.10061875730752945, 0.008281324058771133, -0.0592687763273716, -0.05053131282329559, 0.022228237241506577, 0.06166669726371765, -0.0010858579771593213, -0.09221208095550537, -0.020356977358460426, -0.03769935294985771, 0.02904967963695526, -0.031522609293460846, -0.024585599079728127, -0.09767743945121765, -0.025898456573486328, -0.0010730690555647016, -0.08048668503761292, 0.007454014383256435, -0.01777750253677368, 0.023720305413007736, 0.07334481179714203, 0.004297368228435516, 0.00701184431090951, 0.04857194051146507, -0.008798697032034397, 0.034027911722660065, -0.0718904584646225, -0.01835671439766884, 0.034597691148519516, 0.057473693042993546, -0.06727998703718185, 0.008646315895020962, 0.03240001201629639, 0.05574367940425873, -0.007349151652306318, 0.028125165030360222, -0.03337560594081879, -0.007336798589676619, 0.08408290147781372, 0.03775348141789436, 0.06434603780508041, 0.006931000854820013, 0.04299772530794144, -0.01847759261727333, -0.1352851539850235, -0.05710757523775101, 0.01057810802012682, 0.11996541917324066, 0.06074393540620804, -0.003678450593724847, -0.00937542412430048, -0.03840065002441406, 0.0024504326283931732, 0.08891826122999191, 0.09581290185451508, 0.017744412645697594, -0.027120478451251984, 0.030838729813694954, -0.03595561906695366, 0.04331269860267639, 0.01499471440911293, -0.009075307287275791, -0.013328537344932556, -0.006073633208870888, 0.04850954934954643, -0.0029063690453767776, -0.06238938122987747, -0.04655105993151665, 0.018438849598169327, -0.007957982830703259, -0.0444108322262764, -0.1416843980550766, -0.098911814391613, -0.0054410663433372974, -0.001191372750326991, 0.01064174436032772, 0.06879761070013046, 0.0584171786904335, -0.020177075639367104, -0.0908505916595459, 0.0036766882985830307, 0.035028696060180664, -0.02076798677444458, 0.09351326525211334, 0.09522303193807602, 0.03573775291442871, -0.033832699060440063, 0.008020150475203991, -0.02759372815489769, -0.004243581555783749, -0.012470842339098454, -0.046082742512226105, 1.727499702141718e-33, 0.03491104021668434, -0.07407137006521225, -0.0733003094792366, -0.07302909344434738, -0.030788782984018326, -0.05359219014644623, -0.04921983554959297, -0.017250079661607742, -0.01657992973923683, -0.02251175232231617, -0.024267898872494698, 0.06516993045806885, 0.006869855802506208, 0.040930576622486115, 0.06825858354568481, -0.08475132286548615, 0.040446966886520386, 0.07976945489645004, 0.04105747118592262, -0.06583745032548904, -0.0006052674725651741, -0.024166027083992958, -0.10753309726715088, 0.009262760169804096, 0.01589127629995346, 0.0126821119338274, -0.02703224867582321, -0.11232661455869675, 0.058687083423137665, 0.0383148230612278, -0.014428507536649704, 0.0031291386112570763, 0.07953526079654694, 0.059112124145030975, -0.05716145038604736, 0.00557870976626873, -0.02011873386800289, -0.035060591995716095, -0.03780308738350868, -0.1137184202671051, 0.02102990634739399, 0.030878443270921707, -0.0009649064741097391, -0.02508809231221676, 0.07537436485290527, -0.0034701572731137276, 0.01596839167177677, -0.05858960375189781, 0.04238336533308029, -0.003320990363135934, 0.06331489980220795, -0.053553223609924316, 0.10252725332975388, -0.037024907767772675, -0.03483293205499649, 0.05207196995615959, 0.01132527831941843, -0.01842736080288887, -0.0414874404668808, 0.089478500187397, -0.05998195335268974, 0.011321181431412697, 0.0010315008694306016, -0.05668431147933006, 0.03575553372502327, 0.03412870317697525, -0.023214882239699364, -0.029112307354807854, 0.012598535045981407, 0.020286792889237404, -0.10596680641174316, 0.10526525974273682, 0.0036272688303142786, 0.08776874840259552, -0.028766760602593422, -0.04121661186218262, -0.014570276252925396, 0.02095767855644226, -0.12445684522390366, -0.03860336169600487, -0.026905635371804237, 0.012298395857214928, -0.005741146393120289, 0.06916243582963943, -0.06363571435213089, -0.08639926463365555, 0.045896127820014954, -0.003959921188652515, -0.006670898292213678, 0.030238576233386993, 0.05656064301729202, -0.014576960355043411, -0.10758353769779205, 0.0386449359357357, -0.11238828301429749, -3.349280952500249e-33, 0.008862443268299103, -0.05009889230132103, -0.05968181788921356, 0.10316035896539688, -0.010005869902670383, -0.019932232797145844, -0.014777814969420433, 0.004541706293821335, 0.06376132369041443, -0.04671290144324303, -0.006265061907470226, 0.00008261991752078757, 0.027936749160289764, 0.04364921152591705, -0.07537145912647247, -0.007083626464009285, -0.09973639994859695, 0.028814569115638733, -0.04485418647527695, 0.006301147397607565, -0.0028988905251026154, 0.006019194610416889, 0.0030249576084315777, -0.037964966148138046, 0.03697692230343819, -0.004008156713098288, 0.02485566772520542, -0.010958780534565449, 0.02501513436436653, 0.016761919483542442, -0.00015006701869424433, -0.01874275505542755, -0.03171674907207489, -0.07978329062461853, 0.08164284378290176, -0.03542407602071762, -0.023907462134957314, 0.02139817550778389, -0.0033347897697240114, -0.010892422869801521, 0.11265099793672562, 0.05029502883553505, -0.03371585160493851, -0.0530533529818058, -0.0009371700580231845, 0.057056207209825516, -0.004476305563002825, -0.02133009023964405, -0.01860046200454235, -0.09880585968494415, 0.04144035279750824, -0.07200121879577637, 0.04175125062465668, 0.09044399112462997, -0.03539257496595383, -0.012337269261479378, 0.06674836575984955, -0.08493173867464066, -0.030632516369223595, 0.014662905596196651, 0.024224895983934402, -0.0580422468483448, -0.016444256529211998, 0.0112398536875844, 0.008727580308914185, -0.04940780624747276, -0.02806345745921135, -0.04658620432019234, 0.013178004883229733, -0.056579940021038055, 0.058467015624046326, -0.010671770200133324, 0.07629996538162231, 0.004695888143032789, -0.030931545421481133, -0.012092112563550472, 0.06157854571938515, -0.090836301445961, 0.017028074711561203, -0.03274381905794144, -0.12389561533927917, 0.11890123039484024, 0.04288531094789505, 0.08289002627134323, -0.00551314651966095, 0.02870137244462967, -0.0031918080057948828, 0.13045288622379303, 0.030709074810147285, 0.015217456966638565, 0.01824149116873741, -0.04215507209300995, 0.026669545099139214, 0.10646367818117142, -0.00624372623860836, -5.018985760329997e-8, 0.015227598138153553, 0.014338141307234764, -0.05337492376565933, 0.00013303864398039877, 0.030156519263982773, 0.006771947257220745, 0.07334817945957184, -0.03423667326569557, -0.01419143658131361, 0.008242142386734486, 0.07434079051017761, 0.0354718342423439, -0.05062757059931755, -0.030836042016744614, 0.06608903408050537, 0.018309563398361206, -0.0019211339531466365, 0.007947479374706745, -0.06708254665136337, -0.05608707666397095, -0.0650702714920044, -0.024548711255192757, -0.023878132924437523, -0.010476714000105858, -0.0144376615062356, -0.012013797648251057, 0.05139552429318428, 0.07264703512191772, 0.06190645694732666, 0.031116748228669167, -0.051611289381980896, 0.012512377463281155, -0.05074530094861984, 0.025752246379852295, -0.06907548755407333, 0.05983008071780205, -0.19796982407569885, -0.012342778965830803, 0.07990987598896027, 0.12018217146396637, 0.017408015206456184, -0.055678535252809525, -0.0531555712223053, 0.009598823264241219, 0.06272552907466888, 0.005391085986047983, -0.01235621701925993, 0.016145363450050354, -0.03300166130065918, 0.007914352230727673, -0.034494612365961075, 0.0028468305245041847, 0.0011175411054864526, 0.04997372627258301, -0.04154704511165619, -0.01798398792743683, 0.04497091844677925, -0.03370530158281326, -0.0006219579372555017, -0.043264586478471756, 0.012539500370621681, 0.01339087076485157, 0.05233832076191902, -0.0031006939243525267 ]
0.194007
`NoSchedule` : No new Pods will be scheduled on the tainted node unless they have a matching toleration. Pods currently running on the node are \*\*not\*\* evicted. `PreferNoSchedule` : `PreferNoSchedule` is a "preference" or "soft" version of `NoSchedule`. The control plane will \*try\* to avoid placing a Pod that does not tolerate the taint on the node, but it is not guaranteed. You can put multiple taints on the same node and multiple tolerations on the same pod. The way Kubernetes processes multiple taints and tolerations is like a filter: start with all of a node's taints, then ignore the ones for which the pod has a matching toleration; the remaining un-ignored taints have the indicated effects on the pod. In particular, \* if there is at least one un-ignored taint with effect `NoSchedule` then Kubernetes will not schedule the pod onto that node \* if there is no un-ignored taint with effect `NoSchedule` but there is at least one un-ignored taint with effect `PreferNoSchedule` then Kubernetes will \*try\* to not schedule the pod onto the node \* if there is at least one un-ignored taint with effect `NoExecute` then the pod will be evicted from the node (if it is already running on the node), and will not be scheduled onto the node (if it is not yet running on the node). For example, imagine you taint a node like this ```shell kubectl taint nodes node1 key1=value1:NoSchedule kubectl taint nodes node1 key1=value1:NoExecute kubectl taint nodes node1 key2=value2:NoSchedule ``` And a pod has two tolerations: ```yaml tolerations: - key: "key1" operator: "Equal" value: "value1" effect: "NoSchedule" - key: "key1" operator: "Equal" value: "value1" effect: "NoExecute" ``` In this case, the pod will not be able to schedule onto the node, because there is no toleration matching the third taint. But it will be able to continue running if it is already running on the node when the taint is added, because the third taint is the only one of the three that is not tolerated by the pod. Normally, if a taint with effect `NoExecute` is added to a node, then any pods that do not tolerate the taint will be evicted immediately, and pods that do tolerate the taint will never be evicted. However, a toleration with `NoExecute` effect can specify an optional `tolerationSeconds` field that dictates how long the pod will stay bound to the node after the taint is added. For example, ```yaml tolerations: - key: "key1" operator: "Equal" value: "value1" effect: "NoExecute" tolerationSeconds: 3600 ``` means that if this pod is running and a matching taint is added to the node, then the pod will stay bound to the node for 3600 seconds, and then be evicted. If the taint is removed before that time, the pod will not be evicted. ## Numeric comparison operators {#numeric-comparison-operators} {{< feature-state feature\_gate\_name="TaintTolerationComparisonOperators" >}} In addition to `Equal` and `Exists`, you can use numeric comparison operators (`Gt` and `Lt`) to match taints with integer values. This is useful for threshold-based scheduling, such as matching nodes by reliability level or SLA tier. \* `Gt` matches when the toleration value is greater than the taint value. \* `Lt` matches when the toleration value is less than the taint value. For numeric operators, both the toleration and taint values must be valid integers. If either value cannot be parsed as an integer, the toleration does not match. {{< note >}} When you create a Pod that uses `Gt` or `Lt` tolerations operators, the API server validates that the toleration values are valid integers. Taint values on nodes are not validated at node registration
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/taint-and-toleration.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/taint-and-toleration.md
[ 0.054269254207611084, 0.012677589431405067, 0.07742288708686829, 0.02832573838531971, 0.06172981485724449, 0.001672715530730784, 0.028345301747322083, -0.09682569652795792, 0.08280865103006363, 0.03665042296051979, -0.001221519778482616, -0.029514862224459648, 0.012685246765613556, -0.052699457854032516, -0.027150798588991165, 0.03785809129476547, 0.034362997859716415, -0.008029650896787643, -0.041080623865127563, -0.0222920011729002, -0.0027152730617672205, 0.03608793020248413, -0.028489287942647934, -0.024099718779325485, -0.1100083440542221, 0.028047887608408928, -0.10320603102445602, -0.022140784189105034, 0.10844359546899796, -0.05066237598657608, -0.08438411355018616, 0.027122577652335167, -0.03822794184088707, 0.04273555800318718, 0.0701679214835167, 0.038036152720451355, -0.03666207566857338, -0.043301161378622055, -0.0818372517824173, 0.031322330236434937, 0.06975661963224411, 0.008702780120074749, -0.06602649390697479, -0.044650666415691376, -0.06076328456401825, 0.007241594139486551, -0.07085797190666199, -0.04722708463668823, -0.023926686495542526, -0.0994797870516777, -0.004186707083135843, -0.10520292073488235, 0.10173436254262924, 0.06246102601289749, 0.08941017836332321, 0.04048289731144905, -0.012502335011959076, -0.019346117973327637, 0.05912452191114426, -0.06345993280410767, 0.04273323714733124, -0.03871570900082588, -0.016406740993261337, -0.023337673395872116, 0.07040804624557495, -0.012295222841203213, -0.011532875709235668, 0.05205310136079788, 0.05994812026619911, 0.05395607650279999, 0.036540690809488297, -0.01638331077992916, -0.06049731373786926, 0.0331270657479763, 0.021596264094114304, 0.06395358592271805, -0.0590372271835804, 0.04721805080771446, -0.001393467653542757, -0.06274562329053879, -0.03754870966076851, -0.026125119999051094, 0.04204603657126427, -0.05143342539668083, -0.05397174507379532, -0.03106566332280636, -0.05448022112250328, -0.03531333804130554, 0.10936634242534637, 0.057522308081388474, 0.028848256915807724, 0.03612067922949791, 0.083004891872406, -0.09716267138719559, 0.042063359171152115, 0.00013540171494241804, -0.013379360549151897, 0.04172103479504585, 0.024950671941041946, 0.041561808437108994, 0.025787565857172012, -0.00891078170388937, -0.08637499064207077, 0.03377126529812813, 0.09861664474010468, -0.04137301445007324, -0.06829533725976944, -0.09273438155651093, -0.007981705479323864, 0.005280209239572287, -0.04015204682946205, 0.07202911376953125, 0.09054411202669144, 0.022246886044740677, -0.027351226657629013, 0.0045483289286494255, 0.06641452014446259, -0.010394400916993618, 0.04396481439471245, 0.07129145413637161, 0.038241833448410034, -0.10892211645841599, 0.043323174118995667, 0.03254866600036621, -0.006747320760041475, 0.028082266449928284, -0.013280825689435005, 6.761585299935866e-33, 0.044084854423999786, -0.10152522474527359, -0.054508231580257416, -0.10738573223352432, 0.042662400752305984, -0.06353580951690674, -0.027903670445084572, -0.01949501223862171, 0.002673791255801916, -0.014514164999127388, -0.08559058606624603, -0.0011178095592185855, -0.03964369371533394, -0.0179478507488966, 0.022824246436357498, -0.07042818516492844, 0.010541373863816261, -0.00989153329282999, 0.04829730838537216, -0.02435716614127159, 0.04229491576552391, -0.038394030183553696, -0.06596190482378006, 0.008144482970237732, -0.009531345218420029, -0.0604981929063797, 0.017948606982827187, -0.07538291066884995, -0.007902078330516815, 0.03583651781082153, -0.04065221920609474, -0.0256842989474535, 0.044436175376176834, 0.09139978885650635, -0.10623219609260559, 0.03490090370178223, -0.040708668529987335, 0.04158753529191017, -0.06342129409313202, -0.09696317464113235, -0.04884325712919235, -0.01337438728660345, -0.019289229065179825, -0.03321333974599838, 0.10226521641016006, -0.02329697087407112, 0.0034928126260638237, -0.030274050310254097, 0.01087854616343975, 0.013970686122775078, 0.060834284871816635, 0.003700530156493187, 0.04228334128856659, -0.04278358444571495, -0.02102803811430931, -0.014105618000030518, 0.092779740691185, -0.027197496965527534, -0.05552909895777702, 0.09832850843667984, -0.044317129999399185, -0.02610950544476509, 0.0011867521097883582, -0.021150197833776474, 0.09906062483787537, 0.06689763814210892, -0.016197597607970238, 0.004818213637918234, -0.011171145364642143, -0.010131411254405975, -0.08020088821649551, 0.06901589035987854, -0.00584029546007514, 0.06686392426490784, -0.07810253649950027, -0.10184915363788605, -0.016517717391252518, 0.028324343264102936, -0.07709670066833496, -0.013614377938210964, 0.025465337559580803, -0.020472748205065727, -0.05258416756987572, 0.10281902551651001, -0.053828779608011246, -0.0577976368367672, 0.024276141077280045, 0.011032291688024998, -0.0366596095263958, 0.03626098856329918, 0.09638742357492447, -0.025838255882263184, 0.019867142662405968, 0.0388190820813179, -0.06465571373701096, -6.621791103632264e-33, 0.03794689103960991, 0.014034176245331764, -0.02337932400405407, 0.03329161927103996, -0.016550550237298012, 0.01478690654039383, -0.052118297666311264, 0.02186615765094757, 0.009011703543365002, -0.07865099608898163, -0.04681583493947983, -0.023265352472662926, 0.042116858065128326, 0.020706236362457275, -0.07036424428224564, 0.009048406034708023, 0.008326363749802113, -0.03098810650408268, -0.09864749759435654, 0.037675369530916214, -0.012686854228377342, -0.005308676045387983, -0.03000706247985363, 0.024505598470568657, -0.007967835292220116, 0.023102430626749992, 0.0529322624206543, 0.047788675874471664, -0.03788695111870766, 0.0064610824920237064, 0.0009980108588933945, -0.0797186866402626, 0.015422279946506023, 0.007878129370510578, 0.073741115629673, -0.04749728739261627, -0.025635795667767525, 0.08118452876806259, -0.009494784288108349, -0.028287585824728012, 0.07753323763608932, 0.04623771831393242, -0.06996513903141022, -0.014330780133605003, -0.027959909290075302, 0.08201448619365692, -0.07634398341178894, -0.0053924196399748325, -0.02198083885014057, -0.09418964385986328, -0.003756893565878272, -0.0013436086010187864, -0.01203115563839674, 0.12349683046340942, -0.007309409789741039, 0.016112856566905975, 0.06894481182098389, 0.016606241464614868, -0.004348638467490673, 0.047278229147195816, -0.011232891120016575, -0.11473668366670609, 0.009982355870306492, -0.003534575691446662, 0.013058907352387905, -0.025157805532217026, -0.009318768046796322, 0.0423886738717556, 0.0005289669497869909, -0.004961744416505098, 0.0464077927172184, 0.017436087131500244, 0.02746429294347763, 0.02863455004990101, -0.0069295065477490425, -0.02175763249397278, 0.041970543563365936, -0.047815367579460144, 0.03394545987248421, 0.03779679164290428, -0.17816869914531708, 0.08840538561344147, -0.03669654577970505, 0.03663034737110138, 0.03443489223718643, 0.05533662810921669, 0.04710422456264496, 0.03431699424982071, 0.07595067471265793, 0.04541294649243355, 0.001972100930288434, 0.03256813809275627, -0.016170544549822807, 0.05090174078941345, -0.014384802430868149, -5.292528015843345e-8, 0.04000542685389519, -0.059456683695316315, -0.008700367994606495, 0.09551677107810974, 0.043469563126564026, -0.041720882058143616, 0.07556475698947906, -0.0333048515021801, -0.07815960794687271, -0.010408439673483372, 0.04403310641646385, 0.08439058810472488, -0.03009217604994774, -0.06277935206890106, 0.07151709496974945, -0.011159521527588367, 0.003513012547045946, 0.0028673887718468904, -0.03754287585616112, -0.07160583883523941, -0.0899711400270462, -0.04117952287197113, 0.007008747663348913, 0.031146176159381866, 0.004096091724932194, 0.051350079476833344, 0.06377203017473221, 0.02454121969640255, 0.1058744341135025, 0.05308622494339943, 0.0010974208125844598, -0.03855878487229347, -0.06400144100189209, 0.05340300500392914, -0.09233704209327698, 0.08113624900579453, -0.12524013221263885, -0.028408093377947807, 0.021434688940644264, 0.07464582473039627, -0.0429212786257267, -0.028602125123143196, -0.08545690029859543, 0.0034390585497021675, 0.021616432815790176, 0.020124968141317368, -0.01961616426706314, 0.011550004594027996, -0.0052171507850289345, -0.009140094742178917, 0.01231367141008377, -0.056894201785326004, 0.025583617389202118, 0.10658564418554306, -0.022370435297489166, -0.004021940287202597, 0.06412280350923538, -0.041585084050893784, 0.02913038805127144, 0.007666202262043953, 0.017183976247906685, 0.0034512467682361603, -0.0006764054414816201, 0.002123897196725011 ]
0.13988
If either value cannot be parsed as an integer, the toleration does not match. {{< note >}} When you create a Pod that uses `Gt` or `Lt` tolerations operators, the API server validates that the toleration values are valid integers. Taint values on nodes are not validated at node registration time. If a node has a non-numeric taint value (for example, `servicelevel.organization.example/agreed-service-level=high:NoSchedule`), pods with numeric comparison operators will not match that taint and cannot schedule on that node. {{< /note >}} For example, if nodes are tainted with a value representing a service level agreement (SLA): ```shell kubectl taint nodes node1 servicelevel.organization.example/agreed-service-level=950:NoSchedule ``` A pod can tolerate nodes with SLA greater than 900: {{% code\_sample file="pods/pod-with-numeric-toleration.yaml" %}} This toleration matches the taint on `node1` because `950 > 900` (the taint value is greater than the toleration value for the `Gt` operator). Similarly, you can use the `Lt` operator to match taints where the taint value is less than the toleration value: ```yaml tolerations: - key: "servicelevel.organization.example/agreed-service-level" operator: "Lt" value: "1000" effect: "NoSchedule" ``` {{< note >}} When using numeric comparison operators: \* Both the toleration and taint values must be valid signed 64-bit integers (zero leading numbers (e.g., "0550") are not allowed). \* If a value cannot be parsed as an integer, the toleration does not match. \* Numeric operators work with all taint effects: `NoSchedule`, `PreferNoSchedule`, and `NoExecute`. \* For `PreferNoSchedule` with numeric operators: if a pod's toleration doesn't satisfy the numeric comparison (e.g., toleration value < taint value when using `Gt`), the scheduler gives the node a lower priority but may still schedule there if no better options exist. {{< /note >}} {{< warning >}} Before disabling the `TaintTolerationComparisonOperators` feature gate: \* You should identify all workloads using the `Gt` or `Lt` operators to avoid controller hot-loops. \* Update all workload controller templates to use `Equal` or `Exists` operators instead \* Delete any pending pods that use `Gt` or `Lt` operators \* Monitor the `apiserver\_request\_total` metric for spikes in validation errors {{< /warning >}} ## Example Use Cases Taints and tolerations are a flexible way to steer pods \*away\* from nodes or evict pods that shouldn't be running. A few of the use cases are \* \*\*Dedicated Nodes\*\*: If you want to dedicate a set of nodes for exclusive use by a particular set of users, you can add a taint to those nodes (say, `kubectl taint nodes nodename dedicated=groupName:NoSchedule`) and then add a corresponding toleration to their pods (this would be done most easily by writing a custom [admission controller](/docs/reference/access-authn-authz/admission-controllers/)). The pods with the tolerations will then be allowed to use the tainted (dedicated) nodes as well as any other nodes in the cluster. If you want to dedicate the nodes to them \*and\* ensure they \*only\* use the dedicated nodes, then you should additionally add a label similar to the taint to the same set of nodes (e.g. `dedicated=groupName`), and the admission controller should additionally add a node affinity to require that the pods can only schedule onto nodes labeled with `dedicated=groupName`. \* \*\*Nodes with Special Hardware\*\*: In a cluster where a small subset of nodes have specialized hardware (for example GPUs), it is desirable to keep pods that don't need the specialized hardware off of those nodes, thus leaving room for later-arriving pods that do need the specialized hardware. This can be done by tainting the nodes that have the specialized hardware (e.g. `kubectl taint nodes nodename special=true:NoSchedule` or `kubectl taint nodes nodename special=true:PreferNoSchedule`) and adding a corresponding toleration to pods that use the special hardware. As in the dedicated nodes use case, it is
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/taint-and-toleration.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/taint-and-toleration.md
[ 0.0031036511063575745, 0.01884283311665058, 0.036908648908138275, 0.015999697148799896, 0.0233748871833086, -0.02600032463669777, -0.011975135654211044, -0.013966198079288006, 0.03989623114466667, 0.0095502445474267, -0.0438070222735405, -0.05840161815285683, 0.018476832658052444, 0.0002956858661491424, 0.05870164558291435, -0.01793593168258667, 0.030539050698280334, -0.01462905015796423, -0.03505060821771622, -0.084307000041008, 0.0187776330858469, 0.061979517340660095, -0.03483422100543976, 0.023230230435729027, -0.05104126036167145, -0.040859077125787735, -0.09590931236743927, -0.024109037593007088, 0.09840473532676697, -0.0037270328029990196, -0.05125787854194641, 0.09801540523767471, -0.016607658937573433, 0.04621186479926109, 0.04737020656466484, 0.1219305619597435, 0.03970510512590408, -0.09362546354532242, -0.02804347313940525, 0.04545203596353531, 0.06876298785209656, -0.018299385905265808, -0.0801529809832573, -0.04763861000537872, -0.002517082029953599, -0.010509461164474487, -0.07923608273267746, -0.005348521750420332, -0.058339569717645645, -0.016462834551930428, 0.018427129834890366, -0.06206035614013672, 0.06749223172664642, -0.02661449834704399, 0.012217526324093342, 0.013398571871221066, -0.040573958307504654, 0.006523542106151581, 0.02983212098479271, -0.03775081783533096, -0.004227743484079838, -0.10128461569547653, 0.019638080149888992, -0.08122454583644867, 0.04677283763885498, -0.08085576444864273, -0.012620710767805576, -0.0159135852009058, -0.013494908809661865, 0.028966663405299187, 0.08285176008939743, -0.04940050467848778, 0.004209714010357857, 0.060203857719898224, -0.021648865193128586, 0.061377644538879395, -0.0061890194192528725, 0.055058982223272324, 0.02773589827120304, -0.08076003193855286, -0.044062625616788864, -0.04047328233718872, 0.029240807518363, -0.015691129490733147, -0.040268439799547195, -0.03703809902071953, -0.02188284508883953, -0.004891500808298588, 0.06384436786174774, 0.09291444718837738, 0.05100515857338905, 0.026431219652295113, 0.05948915332555771, -0.08302704989910126, 0.07042678445577621, 0.023006364703178406, 0.0009959791786968708, 0.06427831947803497, 0.02470359578728676, 0.038960494101047516, 0.01970060169696808, -0.01070434506982565, -0.06193022429943085, 0.019177807494997978, 0.09722579270601273, -0.0477604903280735, -0.06265975534915924, -0.07475943118333817, 0.0075134290382266045, 0.06337402760982513, 0.006706847343593836, 0.03493392840027809, 0.08280420303344727, 0.045996006578207016, -0.039875421673059464, -0.021505005657672882, 0.049141742289066315, -0.00620732456445694, 0.004429362248629332, 0.04900297522544861, 0.10176271200180054, -0.05911385267972946, -0.02275683730840683, 0.07283230870962143, 0.0045948033221066, -0.003664991818368435, 0.021010037511587143, 6.180932232931934e-33, 0.03906499966979027, -0.06642527878284454, 0.021782802417874336, -0.06307675689458847, 0.004438594449311495, -0.03744534030556679, -0.056733638048172, -0.00952443853020668, -0.010157608427107334, 0.04076453298330307, -0.1059783473610878, 0.09490633755922318, -0.01139210443943739, -0.07483038306236267, 0.004923283588141203, -0.027188973501324654, -0.025842243805527687, 0.0012110876850783825, 0.007375909015536308, -0.05210915952920914, 0.033598653972148895, -0.08012295514345169, -0.1061391532421112, 0.07230928540229797, 0.02037842944264412, 0.010284542106091976, 0.0008971199276857078, -0.1395939439535141, 0.045425593852996826, 0.0061479597352445126, -0.026541870087385178, -0.08128690719604492, 0.10681740194559097, 0.07702876627445221, -0.06262189894914627, -0.015185181051492691, 0.05621492862701416, 0.023540645837783813, -0.11239219456911087, -0.08068183064460754, -0.026193933561444283, 0.029675930738449097, -0.02051752246916294, -0.012633140198886395, 0.013615777716040611, 0.014813968911767006, 0.054828763008117676, -0.022163018584251404, 0.0339762382209301, 0.006003083661198616, -0.019483644515275955, 0.00947281438857317, 0.03519860655069351, -0.05177094414830208, 0.02935674786567688, -0.014032989740371704, 0.11233517527580261, 0.0325174555182457, -0.06344087421894073, 0.014699424616992474, -0.03774125128984451, -0.0016278782859444618, 0.05572013929486275, -0.04356194660067558, 0.032691191881895065, 0.028270255774259567, -0.007197914645075798, -0.001929713413119316, 0.003933122381567955, 0.03184239938855171, -0.048223044723272324, 0.09950336068868637, -0.039686817675828934, 0.08907441794872284, -0.0569763258099556, -0.12514448165893555, 0.057215046137571335, 0.048148263245821, -0.08124254643917084, -0.06345366686582565, -0.004085312131792307, 0.03565264120697975, -0.023305140435695648, 0.1307738721370697, -0.03548109531402588, -0.021658778190612793, 0.032678499817848206, 0.03584720566868782, -0.047596950083971024, 0.014103283174335957, 0.035306666046381, 0.008457101881504059, -0.0024981964379549026, -0.004360593855381012, -0.06074521690607071, -5.204665072790824e-33, -0.01603037305176258, -0.01497502438724041, -0.03061518445611, 0.07524706423282623, -0.04467131197452545, -0.033587243407964706, 0.02673424407839775, 0.02358238771557808, 0.06817417591810226, -0.04294061288237572, 0.011057444848120213, -0.03695371747016907, -0.009159942157566547, 0.002107184613123536, -0.04256889969110489, -0.001623910153284669, -0.07956504076719284, 0.014697924256324768, -0.045711252838373184, -0.001942747738212347, -0.049713797867298126, 0.035181835293769836, 0.03915336728096008, 0.044510792940855026, -0.018630482256412506, 0.03447989374399185, 0.012242059223353863, 0.022054824978113174, 0.00430200295522809, -0.023393778130412102, 0.03211282566189766, -0.07300209254026413, -0.005297170020639896, -0.004569194745272398, 0.012826528400182724, -0.11601898074150085, -0.012289212085306644, 0.06120511144399643, -0.009019196033477783, 0.038465194404125214, 0.04033088684082031, 0.022843224927783012, -0.04227198287844658, 0.015771150588989258, -0.057231806218624115, 0.008658367209136486, 0.030668815597891808, -0.021937714889645576, 0.007083362899720669, -0.1498473584651947, 0.05711207911372185, -0.03893206641077995, -0.019017662853002548, 0.14647892117500305, -0.03778182342648506, 0.013756677508354187, 0.026754697784781456, -0.026541931554675102, -0.07941051572561264, 0.023798633366823196, 0.054574161767959595, -0.029381174594163895, 0.016796346753835678, 0.021944230422377586, -0.018944572657346725, -0.033824071288108826, -0.01877436973154545, -0.032692763954401016, 0.04028334841132164, -0.02065894566476345, 0.06570672988891602, -0.031029313802719116, 0.046777743846178055, 0.052423086017370224, -0.010665835812687874, -0.08980430662631989, -0.011875447817146778, -0.019558442756533623, 0.0655924379825592, -0.010689914226531982, -0.12887564301490784, 0.14850281178951263, -0.019721027463674545, 0.08694299310445786, 0.016573548316955566, 0.04745067283511162, 0.07577019929885864, 0.13889196515083313, 0.03954328969120979, 0.09722151607275009, 0.0033470834605395794, -0.015650281682610512, -0.06418807059526443, 0.03737306594848633, -0.042851660400629044, -5.095028754453779e-8, -0.014840648509562016, -0.07115812599658966, -0.09177599847316742, 0.05291746184229851, 0.017027372494339943, 0.008258563466370106, 0.01196558028459549, -0.06888668239116669, -0.02148236334323883, 0.034308623522520065, 0.01564852148294449, -0.0009393157670274377, -0.11572960019111633, -0.07101331651210785, 0.09473224729299545, -0.010186762548983097, 0.035627420991659164, 0.060414042323827744, -0.03764377161860466, -0.0053618657402694225, -0.06481368839740753, 0.005698536057025194, -0.01505998894572258, -0.041560787707567215, 0.04874468967318535, 0.0907360315322876, -0.015478379093110561, 0.10628234595060349, 0.08545008301734924, -0.0006933007389307022, -0.005244183354079723, -0.030938737094402313, -0.03733256831765175, 0.019755803048610687, -0.06679283082485199, 0.012451861053705215, -0.08563336730003357, 0.057345423847436905, 0.052718352526426315, 0.04925179108977318, 0.003996231593191624, -0.03727421164512634, -0.13981680572032928, 0.024709681048989296, -0.0025778927374631166, -0.001692049903795123, 0.00024870698689483106, 0.021852854639291763, 0.06008094921708107, 0.0015049215871840715, -0.012101938016712666, -0.05739281699061394, 0.02854677475988865, 0.039699241518974304, -0.038006242364645004, -0.05628994107246399, 0.022460108622908592, -0.02708589658141136, -0.002936441218480468, -0.029457464814186096, 0.07770893722772598, -0.04472571983933449, 0.01412948127835989, -0.026530837640166283 ]
0.132764
need the specialized hardware. This can be done by tainting the nodes that have the specialized hardware (e.g. `kubectl taint nodes nodename special=true:NoSchedule` or `kubectl taint nodes nodename special=true:PreferNoSchedule`) and adding a corresponding toleration to pods that use the special hardware. As in the dedicated nodes use case, it is probably easiest to apply the tolerations using a custom [admission controller](/docs/reference/access-authn-authz/admission-controllers/). For example, it is recommended to use [Extended Resources](/docs/concepts/configuration/manage-resources-containers/#extended-resources) to represent the special hardware, taint your special hardware nodes with the extended resource name and run the [ExtendedResourceToleration](/docs/reference/access-authn-authz/admission-controllers/#extendedresourcetoleration) admission controller. Now, because the nodes are tainted, no pods without the toleration will schedule on them. But when you submit a pod that requests the extended resource, the `ExtendedResourceToleration` admission controller will automatically add the correct toleration to the pod and that pod will schedule on the special hardware nodes. This will make sure that these special hardware nodes are dedicated for pods requesting such hardware and you don't have to manually add tolerations to your pods. \* \*\*Taint based Evictions\*\*: A per-pod-configurable eviction behavior when there are node problems, which is described in the next section. ## Taint based Evictions {{< feature-state for\_k8s\_version="v1.18" state="stable" >}} The node controller automatically taints a Node when certain conditions are true. The following taints are built in: \* `node.kubernetes.io/not-ready`: Node is not ready. This corresponds to the NodeCondition `Ready` being "`False`". \* `node.kubernetes.io/unreachable`: Node is unreachable from the node controller. This corresponds to the NodeCondition `Ready` being "`Unknown`". \* `node.kubernetes.io/memory-pressure`: Node has memory pressure. \* `node.kubernetes.io/disk-pressure`: Node has disk pressure. \* `node.kubernetes.io/pid-pressure`: Node has PID pressure. \* `node.kubernetes.io/network-unavailable`: Node's network is unavailable. \* `node.kubernetes.io/unschedulable`: Node is unschedulable. \* `node.cloudprovider.kubernetes.io/uninitialized`: When the kubelet is started with an "external" cloud provider, this taint is set on a node to mark it as unusable. After a controller from the cloud-controller-manager initializes this node, the kubelet removes this taint. In case a node is to be drained, the node controller or the kubelet adds relevant taints with `NoExecute` effect. This effect is added by default for the `node.kubernetes.io/not-ready` and `node.kubernetes.io/unreachable` taints. If the fault condition returns to normal, the kubelet or node controller can remove the relevant taint(s). In some cases when the node is unreachable, the API server is unable to communicate with the kubelet on the node. The decision to delete the pods cannot be communicated to the kubelet until communication with the API server is re-established. In the meantime, the pods that are scheduled for deletion may continue to run on the partitioned node. {{< note >}} The control plane limits the rate of adding new taints to nodes. This rate limiting manages the number of evictions that are triggered when many nodes become unreachable at once (for example: if there is a network disruption). {{< /note >}} You can specify `tolerationSeconds` for a Pod to define how long that Pod stays bound to a failing or unresponsive Node. For example, you might want to keep an application with a lot of local state bound to node for a long time in the event of network partition, hoping that the partition will recover and thus the pod eviction can be avoided. The toleration you set for that Pod might look like: ```yaml tolerations: - key: "node.kubernetes.io/unreachable" operator: "Exists" effect: "NoExecute" tolerationSeconds: 6000 ``` {{< note >}} Kubernetes automatically adds a toleration for `node.kubernetes.io/not-ready` and `node.kubernetes.io/unreachable` with `tolerationSeconds=300`, unless you, or a controller, set those tolerations explicitly. These automatically-added tolerations mean that Pods remain bound to Nodes for 5 minutes after one of these problems is detected. {{< /note >}} [DaemonSet](/docs/concepts/workloads/controllers/daemonset/) pods are created with
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/taint-and-toleration.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/taint-and-toleration.md
[ 0.03367520868778229, 0.043219901621341705, 0.047234807163476944, 0.0190206877887249, 0.021890146657824516, -0.04395399987697601, 0.02500537969172001, -0.021142246201634407, 0.0015523522160947323, 0.02846551686525345, -0.05711079761385918, -0.033356744796037674, 0.032643843442201614, -0.019751794636249542, 0.0033772222232073545, -0.03251736983656883, 0.09517493098974228, 0.025936909019947052, -0.012397929094731808, -0.030962852761149406, 0.03199617937207222, -0.024002229794859886, -0.0029700545128434896, 0.03076818585395813, -0.10474998503923416, -0.016453882679343224, -0.018067872151732445, -0.02980124205350876, 0.07897331565618515, -0.0184611976146698, -0.03757668286561966, 0.033369794487953186, -0.020420070737600327, 0.02165639027953148, 0.04776440188288689, 0.05510018765926361, -0.014474892057478428, -0.07225438207387924, -0.0758281871676445, -0.03076745569705963, 0.06593132019042969, -0.02066786028444767, -0.05878658965229988, 0.05330171436071396, -0.013237862847745419, -0.034176964312791824, -0.06525278091430664, -0.0823885127902031, -0.007929785177111626, -0.00833799596875906, 0.05205393582582474, -0.07273776829242706, 0.08846928924322128, -0.013880772516131401, 0.004422272089868784, 0.0667656883597374, -0.0031811369117349386, -0.0018675279570743442, 0.08470980077981949, 0.02653147093951702, 0.05367610976099968, -0.08327895402908325, 0.016834262758493423, -0.03322223573923111, -0.029301702976226807, -0.012368932366371155, 0.012595114298164845, 0.06491205841302872, 0.03504083305597305, 0.022738924250006676, 0.09641722589731216, 0.014903324656188488, -0.023458030074834824, -0.005793707445263863, 0.007402460090816021, 0.032139625400304794, -0.08993451297283173, 0.04449959471821785, 0.007074425928294659, -0.09638552367687225, -0.026065513491630554, 0.002583068097010255, 0.020765723660588264, -0.08626405894756317, -0.021029599010944366, 0.0035230382345616817, -0.033832550048828125, 0.0011495554354041815, 0.06409724056720734, 0.03244997560977936, 0.057518746703863144, 0.01306581124663353, -0.0017522245179861784, -0.13085778057575226, 0.046157240867614746, -0.01489911787211895, -0.01134005282074213, 0.009531321004033089, 0.04041588306427002, 0.020699981600046158, 0.01634244993329048, 0.011195196770131588, -0.06815534830093384, 0.0655221939086914, 0.10826075822114944, -0.052814386785030365, -0.06453996896743774, -0.03924931213259697, 0.03987400606274605, 0.059437863528728485, -0.018417542800307274, 0.044449396431446075, 0.049615517258644104, 0.05212395265698433, -0.026007317006587982, 0.05726073682308197, 0.034584227949380875, -0.0320410393178463, 0.047716714441776276, 0.05609568580985069, 0.020805422216653824, -0.07720241695642471, 0.04818221926689148, -0.017533257603645325, -0.014058833941817284, -0.03909411281347275, -0.049090638756752014, 3.164410588604443e-33, 0.010541495867073536, -0.02049422077834606, -0.018698889762163162, -0.08614932000637054, 0.007430131547152996, -0.1145792305469513, -0.013040411286056042, -0.017627254128456116, -0.007727013435214758, -0.04547073319554329, -0.08544307202100754, 0.0770852118730545, -0.00004322032691561617, -0.036610886454582214, 0.017190519720315933, -0.026815686374902725, -0.047650665044784546, 0.04130418971180916, 0.13421522080898285, 0.005797861609607935, 0.05846226215362549, -0.04745510593056679, -0.06558369845151901, 0.06956954300403595, 0.027063146233558655, -0.009683948941528797, -0.009184200316667557, -0.09221871197223663, 0.01156566385179758, 0.037342965602874756, 0.019976787269115448, -0.02581140398979187, 0.03397471085190773, 0.07344314455986023, -0.10821070522069931, -0.046363115310668945, -0.0031707570888102055, 0.040764667093753815, -0.05547886714339256, -0.07263124734163284, -0.0024677154142409563, -0.025718923658132553, -0.024437610059976578, -0.06852012127637863, 0.047605231404304504, -0.002602518768981099, 0.053345128893852234, -0.07550621032714844, 0.05003393813967705, 0.006393306888639927, -0.021214773878455162, -0.06339673697948456, 0.010512433014810085, -0.10724476724863052, -0.026340153068304062, -0.055938899517059326, 0.06504303961992264, -0.006870848126709461, -0.022218743339180946, 0.024754347279667854, -0.06701888144016266, -0.036584217101335526, -0.02817869931459427, 0.01500681508332491, 0.0007368749938905239, 0.04297572374343872, -0.007801394909620285, -0.015555392019450665, -0.004458568058907986, -0.014592877589166164, -0.06941394507884979, 0.05766565725207329, -0.033429935574531555, 0.031666409224271774, -0.06724680215120316, -0.058578137308359146, 0.019704680889844894, 0.05989263579249382, -0.14231358468532562, 0.0010171303292736411, 0.03264773264527321, 0.02089771069586277, -0.02750806137919426, 0.10784340649843216, 0.0032162698917090893, -0.027108142152428627, -0.006184685509651899, 0.023189391940832138, -0.028151141479611397, 0.01826118864119053, 0.07879167050123215, -0.004164207726716995, -0.026257527992129326, 0.02568191848695278, -0.05881311371922493, -3.010792027722194e-33, 0.0851714015007019, -0.03268242999911308, 0.04076618328690529, 0.046782154589891434, 0.06387380510568619, 0.02876308746635914, -0.04434199258685112, 0.06396961212158203, 0.03282129392027855, -0.07309195399284363, -0.012060077860951424, -0.06924885511398315, 0.07462543249130249, 0.019115589559078217, -0.1176905408501625, -0.0063825491815805435, -0.02769247069954872, 0.02354951575398445, -0.041829485446214676, 0.05305961146950722, -0.013174427673220634, 0.049378957599401474, 0.04039422795176506, -0.06506739556789398, 0.046391334384679794, 0.05964355915784836, -0.021606281399726868, 0.034861985594034195, -0.03374610096216202, -0.0077954544685781, -0.015682166442275047, -0.12050864100456238, -0.00107355578802526, -0.04069342836737633, 0.0856596976518631, -0.042239975184202194, -0.0348527766764164, 0.15096887946128845, -0.06469577550888062, 0.01850285194814205, 0.08479084819555283, 0.00305937509983778, -0.047154176980257034, -0.0016219813842326403, -0.043155115097761154, 0.0033203603234142065, -0.033795468509197235, -0.079757459461689, -0.03875686973333359, -0.09593252092599869, -0.006448260974138975, -0.04475375637412071, 0.02583867870271206, 0.11105853319168091, -0.015420503914356232, 0.021422170102596283, 0.11809105426073074, 0.029818793758749962, -0.001538112061098218, 0.025959841907024384, 0.07389020174741745, -0.1252220720052719, 0.041483618319034576, 0.025462351739406586, -0.02441422827541828, -0.07133620232343674, 0.004145849961787462, 0.04246734827756882, -0.0012572596315294504, 0.03432128205895424, 0.014724009670317173, 0.010628649033606052, 0.03720765560865402, 0.09751992672681808, 0.01629394292831421, -0.04165913537144661, 0.03497583046555519, -0.046671297401189804, 0.017520800232887268, 0.004222334362566471, -0.15249961614608765, 0.10128587484359741, -0.03328675776720047, 0.024747228249907494, 0.0726507306098938, 0.046814050525426865, 0.0505669042468071, 0.06649800390005112, 0.0754011794924736, 0.0662737637758255, -0.02849702350795269, 0.01753808744251728, -0.04642143473029137, 0.06786102801561356, -0.06759735941886902, -4.804401143587711e-8, 0.039883244782686234, -0.022780004888772964, -0.008036451414227486, 0.08717156946659088, 0.06966306269168854, -0.02916385419666767, 0.0009901614394038916, -0.023659003898501396, -0.05015094578266144, 0.012728486210107803, 0.01549428142607212, 0.042885102331638336, -0.004035950172692537, -0.042145855724811554, 0.03948040306568146, 0.021924685686826706, 0.02925472892820835, 0.028083795681595802, -0.03221802040934563, -0.078532874584198, -0.11614624410867691, -0.006213751155883074, 0.040327541530132294, -0.014764996245503426, 0.0065701003186404705, 0.12994389235973358, 0.05523926392197609, -0.02273540012538433, 0.10439798980951309, 0.046034976840019226, -0.0792122632265091, -0.05151444301009178, -0.047980643808841705, 0.013966279104351997, -0.09194470942020416, 0.028506917878985405, -0.13804975152015686, -0.020611830055713654, 0.016304800286889076, 0.06747819483280182, -0.04638559743762016, -0.032522547990083694, -0.07325930148363113, 0.027600744739174843, 0.047929275780916214, 0.04287075623869896, -0.03196762129664421, 0.04465828463435173, 0.007248560898005962, 0.03157961741089821, 0.0011146371252834797, -0.09856647253036499, -0.003872364992275834, 0.051409296691417694, -0.014482860453426838, 0.003874309128150344, 0.03883412852883339, -0.04812875762581825, 0.026544714346528053, -0.045078910887241364, 0.015282219275832176, -0.02683471329510212, 0.01327583659440279, 0.015117171220481396 ]
0.175589
note >}} Kubernetes automatically adds a toleration for `node.kubernetes.io/not-ready` and `node.kubernetes.io/unreachable` with `tolerationSeconds=300`, unless you, or a controller, set those tolerations explicitly. These automatically-added tolerations mean that Pods remain bound to Nodes for 5 minutes after one of these problems is detected. {{< /note >}} [DaemonSet](/docs/concepts/workloads/controllers/daemonset/) pods are created with `NoExecute` tolerations for the following taints with no `tolerationSeconds`: \* `node.kubernetes.io/unreachable` \* `node.kubernetes.io/not-ready` This ensures that DaemonSet pods are never evicted due to these problems. {{< note >}} The node controller was responsible for adding taints to nodes and evicting pods. But after 1.29, the taint-based eviction implementation has been moved out of node controller into a separate, and independent component called taint-eviction-controller. Users can optionally disable taint-based eviction by setting `--controllers=-taint-eviction-controller` in kube-controller-manager. {{< /note >}} ## Taint Nodes by Condition The control plane, using the node {{}}, automatically creates taints with a `NoSchedule` effect for [node conditions](/docs/concepts/scheduling-eviction/node-pressure-eviction/#node-conditions). The scheduler checks taints, not node conditions, when it makes scheduling decisions. This ensures that node conditions don't directly affect scheduling. For example, if the `DiskPressure` node condition is active, the control plane adds the `node.kubernetes.io/disk-pressure` taint and does not schedule new pods onto the affected node. If the `MemoryPressure` node condition is active, the control plane adds the `node.kubernetes.io/memory-pressure` taint. You can ignore node conditions for newly created pods by adding the corresponding Pod tolerations. The control plane also adds the `node.kubernetes.io/memory-pressure` toleration on pods that have a {{< glossary\_tooltip text="QoS class" term\_id="qos-class" >}} other than `BestEffort`. This is because Kubernetes treats pods in the `Guaranteed` or `Burstable` QoS classes (even pods with no memory request set) as if they are able to cope with memory pressure, while new `BestEffort` pods are not scheduled onto the affected node. The DaemonSet controller automatically adds the following `NoSchedule` tolerations to all daemons, to prevent DaemonSets from breaking. \* `node.kubernetes.io/memory-pressure` \* `node.kubernetes.io/disk-pressure` \* `node.kubernetes.io/pid-pressure` (1.14 or later) \* `node.kubernetes.io/unschedulable` (1.10 or later) \* `node.kubernetes.io/network-unavailable` (\*host network only\*) Adding these tolerations ensures backward compatibility. You can also add arbitrary tolerations to DaemonSets. ## Device taints and tolerations Instead of tainting entire nodes, administrators can also [taint individual devices](/docs/concepts/scheduling-eviction/dynamic-resource-allocation#device-taints-and-tolerations) when the cluster uses [dynamic resource allocation](/docs/concepts/scheduling-eviction/dynamic-resource-allocation) to manage special hardware. The advantage is that tainting can be targeted towards exactly the hardware that is faulty or needs maintenance. Tolerations are also supported and can be specified when requesting devices. Like taints they apply to all pods which share the same allocated device. ## {{% heading "whatsnext" %}} \* Read about [Node-pressure Eviction](/docs/concepts/scheduling-eviction/node-pressure-eviction/) and how you can configure it \* Read about [Pod Priority](/docs/concepts/scheduling-eviction/pod-priority-preemption/) \* Read about [device taints and tolerations](/docs/concepts/scheduling-eviction/dynamic-resource-allocation#device-taints-and-tolerations)
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/taint-and-toleration.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/taint-and-toleration.md
[ 0.015901943668723106, -0.01231620367616415, 0.06052597239613533, 0.05088447779417038, 0.10235413908958435, -0.012715906836092472, 0.008529573678970337, -0.04177907481789589, 0.07605886459350586, 0.09458545595407486, 0.05532514676451683, 0.005953193176537752, -0.002131051616743207, -0.0021410714834928513, 0.003874434158205986, 0.021338997408747673, 0.0606665201485157, -0.023899510502815247, -0.03199285641312599, 0.02375606819987297, -0.07427027076482773, 0.03358043357729912, -0.03960280865430832, 0.03126140683889389, -0.027576686814427376, -0.0088963583111763, -0.10614778846502304, -0.05296149477362633, 0.07315588742494583, -0.019134951755404472, -0.06824001669883728, 0.007215508725494146, -0.048043157905340195, 0.0058896224945783615, 0.06387828290462494, 0.09246885776519775, 0.05229143425822258, -0.07723615318536758, -0.10084626823663712, 0.012142518535256386, 0.0717725083231926, 0.009608383290469646, -0.06404626369476318, -0.040260717272758484, -0.013870831578969955, 0.011876835487782955, -0.03848423436284065, -0.09176316112279892, -0.03534389287233353, -0.07183735072612762, 0.05968308076262474, -0.036233868449926376, 0.103623166680336, -0.002715940587222576, 0.047306738793849945, -0.029190437868237495, 0.029521850869059563, 0.036267075687646866, 0.07013724744319916, 0.05444427207112312, 0.05013392120599747, -0.007137271575629711, 0.021084601059556007, -0.032691292464733124, 0.023921871557831764, -0.013688944280147552, 0.06374946981668472, -0.0026193074882030487, 0.02235935628414154, 0.03427523002028465, 0.05399005860090256, -0.03612080588936806, -0.050960175693035126, 0.03355057165026665, 0.019909489899873734, 0.062369152903556824, -0.0470917671918869, 0.04910307005047798, -0.028504181653261185, -0.09113329648971558, -0.05072912201285362, -0.027821607887744904, 0.04966593533754349, -0.055820319801568985, -0.08905978500843048, 0.01004201639443636, -0.05077565088868141, -0.011672182939946651, 0.11158937215805054, 0.0906832292675972, 0.043287020176649094, -0.00026952437474392354, 0.056880321353673935, -0.03726174309849739, 0.06946008652448654, -0.0558442547917366, 0.024320976808667183, 0.05581773445010185, -0.01981053128838539, 0.016542257741093636, -0.022002244368195534, 0.0190011914819479, -0.07676515728235245, 0.035642631351947784, 0.08437185734510422, -0.03481141850352287, -0.036297209560871124, -0.09401853382587433, 0.009474835358560085, 0.033901020884513855, -0.010686913505196571, 0.028350966051220894, 0.07086224108934402, 0.05342124029994011, -0.03860825300216675, 0.014895557425916195, 0.008626503869891167, -0.0027923290617763996, 0.06429830193519592, 0.0877382680773735, 0.10789662599563599, -0.0845736414194107, -0.004903241991996765, 0.028647230938076973, -0.006340614520013332, 0.030977940186858177, -0.02371772937476635, 3.8252793901084874e-33, 0.04132608696818352, -0.06787501275539398, -0.02871839702129364, 0.02718399651348591, 0.022084016352891922, -0.0631699338555336, -0.003841780126094818, 0.0005970849888399243, 0.0033187945373356342, -0.0027877369429916143, -0.09119240939617157, 0.02460634335875511, -0.01213450264185667, -0.08330313861370087, 0.03564427047967911, -0.09114354103803635, -0.016961483284831047, -0.024038374423980713, 0.035096894949674606, -0.03377202898263931, 0.04757160320878029, -0.024557922035455704, -0.05192745476961136, 0.026020744815468788, -0.008677056059241295, -0.019490942358970642, 0.009753952734172344, -0.10348744690418243, 0.0014337350148707628, 0.02946893870830536, -0.055572476238012314, 0.007470947690308094, 0.05942433699965477, 0.04636051505804062, -0.1287015825510025, -0.029072720557451248, 0.0029033911414444447, -0.0031003470066934824, -0.09692768007516861, -0.09303732216358185, -0.03699016198515892, 0.01250570360571146, -0.09659801423549652, -0.04752945154905319, 0.06636569648981094, -0.054916851222515106, 0.0484151728451252, -0.07818716764450073, 0.015888862311840057, 0.02301267348229885, -0.024694502353668213, 0.015981419011950493, 0.03784964233636856, -0.059730786830186844, -0.014216999523341656, -0.011152012273669243, 0.09422685205936432, -0.06770731508731842, -0.06806137412786484, 0.06465256959199905, -0.02550966665148735, 0.012511962093412876, 0.04041590541601181, -0.06309021264314651, 0.06849903613328934, 0.030889248475432396, -0.008528168313205242, 0.038619570434093475, -0.02417939528822899, -0.024736186489462852, -0.09808887541294098, 0.04159216955304146, -0.0013725969474762678, 0.031846705824136734, -0.046213988214731216, -0.09034834057092667, -0.04756435006856918, -0.04007495194673538, -0.12855389714241028, -0.04257231950759888, 0.04002252221107483, -0.0362236425280571, -0.0009326196159236133, 0.12206929177045822, -0.0023109358735382557, -0.05993856489658356, 0.019091498106718063, 0.034425362944602966, -0.018575582653284073, 0.02375936135649681, 0.10304080694913864, -0.008754845708608627, 0.014473355375230312, -0.006524232216179371, -0.075515016913414, -4.9124915437901287e-33, 0.0055929264053702354, -0.017336765304207802, -0.11198535561561584, 0.03631337359547615, -0.008783718571066856, -0.009306225925683975, -0.07791919261217117, 0.11847798526287079, 0.023694723844528198, -0.10871461778879166, -0.03245038166642189, -0.04653172940015793, 0.020302193239331245, 0.02867896668612957, -0.0952090322971344, 0.020413996651768684, -0.06686786562204361, -0.009525950998067856, -0.0386589951813221, 0.009313402697443962, -0.03340470790863037, -0.009627556428313255, 0.016293182969093323, 0.019979411736130714, -0.016741065308451653, 0.051347486674785614, -0.010699798353016376, 0.044845279306173325, -0.024321401491761208, -0.020815612748265266, -0.013177460059523582, -0.07181848585605621, 0.032874587923288345, 0.001155862002633512, 0.08031514286994934, -0.04531312733888626, -0.052444398403167725, 0.07240010797977448, -0.046494852751493454, -0.05616633594036102, 0.06579437851905823, 0.05662739276885986, -0.022683879360556602, -0.01602112129330635, -0.02066805772483349, 0.044696398079395294, -0.018037166446447372, -0.020878741517663002, 0.04490188509225845, -0.08499725908041, 0.029234319925308228, -0.012053793296217918, 0.03613319993019104, 0.11179956048727036, -0.042280904948711395, 0.011462178081274033, 0.058502648025751114, 0.06015949696302414, -0.008362812921404839, 0.042514149099588394, 0.04988725855946541, -0.05587651953101158, 0.034743718802928925, -0.001767707639373839, 0.046171389520168304, -0.02816009894013405, -0.028645431622862816, 0.05316923186182976, 0.06347876042127609, -0.027710745111107826, 0.05424385517835617, -0.007611003704369068, 0.007985185831785202, 0.028866460546851158, 0.01949053443968296, -0.030885817483067513, 0.027299677953124046, -0.1059396043419838, 0.03318402171134949, -0.06151952967047691, -0.10364603996276855, 0.10323674231767654, -0.054899316281080246, 0.03387073054909706, 0.05270594358444214, 0.03197510540485382, 0.04012223705649376, 0.04660554230213165, 0.07346336543560028, 0.0549456961452961, 0.006125406827777624, 0.0298182163387537, -0.032319966703653336, 0.10411306470632553, -0.026490936055779457, -5.1456051863851826e-8, 0.06921666860580444, -0.02080175280570984, -0.046706411987543106, 0.05569057539105415, 0.07862623035907745, -0.011219043284654617, 0.07646742463111877, 0.024966076016426086, -0.09942684322595596, 0.024145858362317085, 0.025306111201643944, 0.03983217477798462, -0.029640529304742813, -0.055114250630140305, 0.0786297544836998, -0.019444460049271584, -0.02225032076239586, 0.05446643382310867, -0.045256227254867554, -0.07435628026723862, -0.08061975240707397, -0.054928191006183624, -0.0440426729619503, -0.058373402804136276, -0.023350920528173447, 0.019289851188659668, 0.023750267922878265, 0.053482722491025925, 0.060073912143707275, 0.0003993005957454443, -0.053314611315727234, -0.03942577540874481, -0.03318801894783974, 0.03270496428012848, -0.06439149379730225, 0.12393047660589218, -0.14059139788150787, -0.014415797777473927, 0.02977033331990242, 0.03186734393239021, -0.07011374086141586, -0.024716585874557495, -0.059121694415807724, 0.020550480112433434, 0.024921085685491562, 0.026301203295588493, -0.04218050464987755, 0.07554151117801666, 0.02170754037797451, -0.009451940655708313, 0.003044937737286091, -0.029377000406384468, -0.024850765243172646, 0.06086679548025131, -0.029614662751555443, -0.008397570811212063, 0.021530181169509888, -0.03882649168372154, -0.00001191009687318001, -0.015338271856307983, 0.009136629290878773, -0.01760357990860939, 0.041234612464904785, 0.008833599276840687 ]
0.143609
You can use \_topology spread constraints\_ to control how {{< glossary\_tooltip text="Pods" term\_id="Pod" >}} are spread across your cluster among failure-domains such as regions, zones, nodes, and other user-defined topology domains. This can help to achieve high availability as well as efficient resource utilization. You can set [cluster-level constraints](#cluster-level-default-constraints) as a default, or configure topology spread constraints for individual workloads. ## Motivation Imagine that you have a cluster of up to twenty nodes, and you want to run a {{< glossary\_tooltip text="workload" term\_id="workload" >}} that automatically scales how many replicas it uses. There could be as few as two Pods or as many as fifteen. When there are only two Pods, you'd prefer not to have both of those Pods run on the same node: you would run the risk that a single node failure takes your workload offline. In addition to this basic usage, there are some advanced usage examples that enable your workloads to benefit on high availability and cluster utilization. As you scale up and run more Pods, a different concern becomes important. Imagine that you have three nodes running five Pods each. The nodes have enough capacity to run that many replicas; however, the clients that interact with this workload are split across three different datacenters (or infrastructure zones). Now you have less concern about a single node failure, but you notice that latency is higher than you'd like, and you are paying for network costs associated with sending network traffic between the different zones. You decide that under normal operation you'd prefer to have a similar number of replicas [scheduled](/docs/concepts/scheduling-eviction/) into each infrastructure zone, and you'd like the cluster to self-heal in the case that there is a problem. Pod topology spread constraints offer you a declarative way to configure that. ## `topologySpreadConstraints` field The Pod API includes a field, `spec.topologySpreadConstraints`. The usage of this field looks like the following: ```yaml --- apiVersion: v1 kind: Pod metadata: name: example-pod spec: # Configure a topology spread constraint topologySpreadConstraints: - maxSkew: minDomains: # optional topologyKey: whenUnsatisfiable: labelSelector: matchLabelKeys: # optional; beta since v1.27 nodeAffinityPolicy: [Honor|Ignore] # optional; beta since v1.26 nodeTaintsPolicy: [Honor|Ignore] # optional; beta since v1.26 ### other Pod fields go here ``` {{< note >}} There can only be one `topologySpreadConstraint` for a given `topologyKey` and `whenUnsatisfiable` value. For example, if you have defined a `topologySpreadConstraint` that uses the `topologyKey` "kubernetes.io/hostname" and `whenUnsatisfiable` value "DoNotSchedule", you can only add another `topologySpreadConstraint` for the `topologyKey` "kubernetes.io/hostname" if you use a different `whenUnsatisfiable` value. {{< /note >}} You can read more about this field by running `kubectl explain Pod.spec.topologySpreadConstraints` or refer to the [scheduling](/docs/reference/kubernetes-api/workload-resources/pod-v1/#scheduling) section of the API reference for Pod. ### Spread constraint definition You can define one or multiple `topologySpreadConstraints` entries to instruct the kube-scheduler how to place each incoming Pod in relation to the existing Pods across your cluster. Those fields are: - \*\*maxSkew\*\* describes the degree to which Pods may be unevenly distributed. You must specify this field and the number must be greater than zero. Its semantics differ according to the value of `whenUnsatisfiable`: - if you select `whenUnsatisfiable: DoNotSchedule`, then `maxSkew` defines the maximum permitted difference between the number of matching pods in the target topology and the \_global minimum\_ (the minimum number of matching pods in an eligible domain or zero if the number of eligible domains is less than MinDomains). For example, if you have 3 zones with 2, 2 and 1 matching pods respectively, `MaxSkew` is set to 1 then the global minimum is 1. - if you select `whenUnsatisfiable: ScheduleAnyway`, the scheduler gives higher precedence to topologies
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/topology-spread-constraints.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/topology-spread-constraints.md
[ -0.004798560868948698, -0.052679192274808884, 0.013608730398118496, 0.029221296310424805, -0.01795843243598938, -0.009895050898194313, 0.02154133841395378, -0.017948314547538757, 0.0026091402396559715, -0.0010240954579785466, -0.03488743305206299, -0.08348909765481949, 0.047264184802770615, -0.02142038382589817, 0.029846500605344772, 0.007357767317444086, 0.041393883526325226, -0.041123002767562866, -0.03717302531003952, -0.08319339156150818, 0.07275322079658508, 0.027967287227511406, -0.001226044842042029, 0.0440012589097023, -0.04174444451928139, 0.031200118362903595, -0.08443018794059753, -0.002273955149576068, 0.051402412354946136, 0.025970011949539185, 0.003975284285843372, 0.05298061668872833, -0.08494201302528381, 0.054632823914289474, 0.1014331728219986, 0.017808811739087105, -0.0852918028831482, 0.05646718293428421, -0.03488386422395706, 0.0005339717026799917, 0.06320633739233017, 0.008007979020476341, -0.05118073150515556, -0.02002665027976036, -0.03730221465229988, 0.024889718741178513, -0.10397863388061523, 0.04225147143006325, 0.028395922854542732, 0.008688338100910187, 0.04530412703752518, -0.12386252731084824, 0.027536313980817795, 0.02920909784734249, 0.07157141715288162, 0.057381074875593185, -0.012211997993290424, -0.04356842860579491, 0.022599296644330025, -0.002754702465608716, 0.06467980891466141, -0.03611540421843529, -0.017334258183836937, -0.05508036911487579, 0.08291309326887131, 0.03166802600026131, 0.04896567016839981, 0.05759034305810928, -0.05162101984024048, 0.07776907831430435, 0.028844522312283516, -0.013835093937814236, -0.026089824736118317, -0.0007117682253010571, -0.007099628448486328, 0.05433963984251022, -0.06676391512155533, -0.018211370334029198, 0.00917933788150549, -0.05990133062005043, 0.022251691669225693, 0.09196987003087997, 0.09697204828262329, 0.08698762953281403, -0.03645649924874306, -0.0919179767370224, 0.017530476674437523, -0.07840967923402786, 0.05223098769783974, -0.019058633595705032, 0.0066951424814760685, 0.022762058302760124, 0.08514869213104248, -0.05742434412240982, 0.0521719865500927, -0.01568085327744484, -0.007792133837938309, -0.055193427950143814, 0.04662914574146271, -0.009105824865400791, 0.0198519267141819, -0.08209268748760223, 0.08503475785255432, -0.06587741523981094, -0.029188262298703194, -0.02417835220694542, -0.1021709069609642, 0.0019904342480003834, 0.05827402323484421, 0.04724222794175148, 0.03336307406425476, 0.09452376514673233, -0.039362840354442596, 0.012136805802583694, -0.03901488333940506, -0.02975388430058956, 0.05361145734786987, -0.06197221949696541, 0.026539236307144165, 0.04474200680851936, -0.044906582683324814, -0.07839346677064896, -0.0033223761711269617, -0.07377122342586517, -0.021749325096607208, 0.007401842623949051, -0.0413726344704628, 2.7543785062414515e-33, 0.02276337333023548, -0.11406584829092026, -0.05680803209543228, -0.0073969243094325066, -0.016146037727594376, -0.04807566478848457, -0.08076424151659012, -0.028056329116225243, -0.08961589634418488, -0.034082405269145966, -0.018207402899861336, 0.12670543789863586, -0.0354788713157177, -0.02732355147600174, 0.08866163343191147, -0.04313930496573448, 0.08111584186553955, 0.11534251272678375, 0.06890875846147537, -0.02612879127264023, -0.021148206666111946, -0.09023556858301163, -0.023600149899721146, -0.032212648540735245, 0.03857724368572235, 0.0012389404000714421, -0.004211034160107374, -0.09623317420482635, 0.009282086975872517, 0.025791166350245476, -0.015558376908302307, 0.02062162011861801, 0.02232276275753975, 0.03393634781241417, -0.08833511918783188, -0.006478516850620508, -0.06651996076107025, -0.04193338379263878, 0.003332419553771615, -0.07328828424215317, 0.0065070344135165215, 0.02718234248459339, 0.07614240795373917, -0.04354764148592949, 0.05294627323746681, 0.08673050999641418, 0.05305371433496475, -0.09322550147771835, 0.013514821417629719, -0.02970648929476738, 0.07164669781923294, -0.008528154343366623, 0.011912288144230843, 0.0002975083189085126, 0.047669291496276855, -0.001121183973737061, -0.02872356027364731, -0.027016472071409225, 0.06411425024271011, 0.04188155010342598, -0.0816398337483406, -0.061881646513938904, -0.05378518998622894, 0.024044562131166458, 0.10707147419452667, 0.04222024232149124, -0.008726549334824085, 0.033066388219594955, 0.024619195610284805, 0.05165340006351471, -0.011751674115657806, 0.0016860668547451496, -0.005732146557420492, 0.012180325575172901, 0.007334257010370493, -0.03220727667212486, 0.03930606693029404, 0.01351951900869608, -0.0953294038772583, 0.005995613522827625, -0.055724136531353, -0.0720081627368927, -0.05238530412316322, 0.03262181580066681, 0.05869034305214882, -0.027612021192908287, 0.04628203436732292, -0.03791658580303192, -0.1288096159696579, 0.013052904047071934, -0.03744006156921387, -0.05487126111984253, -0.04775691777467728, -0.008351597934961319, -0.08837825059890747, -3.529255015082895e-33, 0.07284635305404663, -0.024013441056013107, 0.05581511929631233, 0.061395224183797836, 0.04573265090584755, 0.000950886809732765, 0.006263787858188152, 0.008299970999360085, -0.010341512970626354, 0.012261361815035343, -0.03876572474837303, 0.012941429391503334, 0.022945063188672066, 0.07210490852594376, -0.0688609853386879, 0.00021423613361548632, -0.048357825726270676, -0.02366204746067524, -0.001899223541840911, 0.048331934958696365, 0.03889107331633568, -0.06687657535076141, 0.0014483236009255052, 0.04434318467974663, 0.036382149904966354, -0.005727955140173435, -0.05646592006087303, -0.032350726425647736, -0.006882886867970228, -0.043401360511779785, -0.043873388320207596, -0.011238333769142628, -0.006821399088948965, -0.05095314607024193, 0.0363435335457325, -0.028386900201439857, -0.012094277888536453, 0.009736635722219944, -0.02051348239183426, 0.02706833742558956, 0.04977244511246681, -0.0078266067430377, -0.09245052933692932, -0.10124707967042923, 0.03147849068045616, 0.01591256633400917, -0.024473005905747414, -0.009932981804013252, -0.09632386267185211, -0.024792827665805817, 0.043295424431562424, -0.041958775371313095, -0.01607777364552021, 0.06199043244123459, -0.06926151365041733, -0.00650749821215868, 0.03063289076089859, -0.028385132551193237, -0.12059887498617172, -0.023967431858181953, 0.04290597513318062, -0.09925995767116547, 0.0036064917221665382, 0.05322014167904854, 0.021864335983991623, -0.05898384749889374, 0.025332948192954063, -0.026058996096253395, -0.07400713115930557, 0.014270392246544361, -0.033262498676776886, 0.04312242195010185, 0.0617888979613781, -0.02759169042110443, -0.026488399133086205, 0.022825583815574646, 0.08285916596651077, -0.12586179375648499, 0.0717695876955986, -0.022226737812161446, -0.054475702345371246, 0.08793196827173233, 0.04032279923558235, 0.030757950618863106, 0.018952617421746254, 0.06854631751775742, 0.05339478328824043, 0.14388084411621094, 0.07347451150417328, 0.13872040808200836, -0.050504520535469055, -0.05416136234998703, -0.016324913129210472, 0.058065906167030334, -0.05979713797569275, -4.997153268959664e-8, -0.049141332507133484, 0.13480590283870697, -0.008796616457402706, -0.0014030009042471647, -0.0039660511538386345, -0.005026267841458321, 0.05563715100288391, 0.02969815395772457, 0.016840871423482895, 0.04317042604088783, 0.028356214985251427, 0.03254154324531555, -0.0381392166018486, 0.08552706986665726, -0.01897476799786091, 0.04376529902219772, -0.01260974071919918, 0.017511364072561264, -0.027169177308678627, -0.033039674162864685, -0.020589884370565414, 0.0268304031342268, 0.032089296728372574, 0.0794009119272232, -0.014511964283883572, -0.03952264413237572, 0.06423293054103851, 0.026711957529187202, -0.003627097001299262, -0.04472655430436134, -0.030468827113509178, -0.03837355226278305, -0.08451192826032639, 0.07436138391494751, -0.03054794855415821, 0.009424027055501938, -0.11323824524879456, 0.036062195897102356, 0.036956094205379486, 0.05241289362311363, 0.04136393219232559, -0.03319702297449112, -0.03998178243637085, 0.010046144016087055, 0.06746414303779602, 0.057866260409355164, -0.021927140653133392, 0.0863136500120163, 0.012055708095431328, 0.008415522053837776, -0.09589750319719315, 0.011295192874968052, -0.00983718317002058, 0.0777115598320961, -0.002529310993850231, -0.06803528964519501, -0.006724575534462929, 0.012308740057051182, 0.05887623503804207, -0.018202800303697586, 0.03419269248843193, -0.044186268001794815, -0.032479170709848404, 0.020195186138153076 ]
0.088223
zero if the number of eligible domains is less than MinDomains). For example, if you have 3 zones with 2, 2 and 1 matching pods respectively, `MaxSkew` is set to 1 then the global minimum is 1. - if you select `whenUnsatisfiable: ScheduleAnyway`, the scheduler gives higher precedence to topologies that would help reduce the skew. - \*\*minDomains\*\* indicates a minimum number of eligible domains. This field is optional. A domain is a particular instance of a topology. An eligible domain is a domain whose nodes match the node selector. {{< note >}} Before Kubernetes v1.30, the `minDomains` field was only available if the `MinDomainsInPodTopologySpread` [feature gate](/docs/reference/command-line-tools-reference/feature-gates-removed/) was enabled (default since v1.28). In older Kubernetes clusters it might be explicitly disabled or the field might not be available. {{< /note >}} - The value of `minDomains` must be greater than 0, when specified. You can only specify `minDomains` in conjunction with `whenUnsatisfiable: DoNotSchedule`. - When the number of eligible domains with match topology keys is less than `minDomains`, Pod topology spread treats global minimum as 0, and then the calculation of `skew` is performed. The global minimum is the minimum number of matching Pods in an eligible domain, or zero if the number of eligible domains is less than `minDomains`. - When the number of eligible domains with matching topology keys equals or is greater than `minDomains`, this value has no effect on scheduling. - If you do not specify `minDomains`, the constraint behaves as if `minDomains` is 1. - \*\*topologyKey\*\* is the key of [node labels](#node-labels). Nodes that have a label with this key and identical values are considered to be in the same topology. We call each instance of a topology (in other words, a pair) a domain. The scheduler will try to put a balanced number of pods into each domain. Also, we define an eligible domain as a domain whose nodes meet the requirements of nodeAffinityPolicy and nodeTaintsPolicy. - \*\*whenUnsatisfiable\*\* indicates how to deal with a Pod if it doesn't satisfy the spread constraint: - `DoNotSchedule` (default) tells the scheduler not to schedule it. - `ScheduleAnyway` tells the scheduler to still schedule it while prioritizing nodes that minimize the skew. - \*\*labelSelector\*\* is used to find matching Pods. Pods that match this label selector are counted to determine the number of Pods in their corresponding topology domain. See [Label Selectors](/docs/concepts/overview/working-with-objects/labels/#label-selectors) for more details. - \*\*matchLabelKeys\*\* is a list of pod label keys to select the group of pods over which the spreading skew will be calculated. At a pod creation, the kube-apiserver uses those keys to lookup values from the incoming pod labels, and those key-value labels will be merged with any existing `labelSelector`. The same key is forbidden to exist in both `matchLabelKeys` and `labelSelector`. `matchLabelKeys` cannot be set when `labelSelector` isn't set. Keys that don't exist in the pod labels will be ignored. A null or empty list means only match against the `labelSelector`. {{< caution >}} It's not recommended to use `matchLabelKeys` with labels that might be updated directly on pods. Even if you edit the pod's label that is specified at `matchLabelKeys` \*\*directly\*\*, (that is, you edit the Pod and not a Deployment), kube-apiserver doesn't reflect the label update onto the merged `labelSelector`. {{< /caution >}} With `matchLabelKeys`, you don't need to update the `pod.spec` between different revisions. The controller/operator just needs to set different values to the same label key for different revisions. For example, if you are configuring a Deployment, you can use the label keyed with [pod-template-hash](/docs/concepts/workloads/controllers/deployment/#pod-template-hash-label), which is added automatically by the Deployment controller, to distinguish between different
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/topology-spread-constraints.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/topology-spread-constraints.md
[ 0.033073943108320236, -0.02515561133623123, 0.0367167703807354, -0.04426604509353638, 0.019434668123722076, -0.04436655715107918, -0.0352143868803978, -0.04396005719900131, 0.07916823774576187, 0.013159503228962421, -0.015917088836431503, -0.057808615267276764, -0.01459150854498148, 0.0007887204992584884, 0.046500589698553085, -0.0033759470097720623, -0.013072723522782326, -0.10344766825437546, -0.027102749794721603, -0.07099823653697968, 0.04604436457157135, -0.010825162753462791, -0.011749722994863987, -0.0026938142254948616, -0.053688593208789825, -0.03791637718677521, -0.08188077062368393, 0.010864070616662502, 0.052801646292209625, 0.0230364091694355, -0.08002113550901413, 0.07139147073030472, -0.021409284323453903, 0.02006816305220127, 0.0721263736486435, 0.06711079925298691, -0.03617049381136894, -0.0037166783586144447, -0.06644182652235031, 0.006959777791053057, 0.05039241537451744, -0.1049254983663559, -0.04681668430566788, -0.03162038326263428, -0.03237181529402733, 0.07500260323286057, -0.06229798123240471, -0.03859328478574753, -0.0572790689766407, 0.005531230475753546, 0.03700588271021843, -0.03829849883913994, 0.03341051563620567, 0.07688843458890915, 0.07398227602243423, 0.07641848176717758, -0.041437435895204544, 0.05458442494273186, 0.06528149545192719, 0.015301477164030075, 0.022179294377565384, -0.08799271285533905, 0.0023310775868594646, -0.06420128047466278, 0.020446691662073135, -0.016841549426317215, -0.0459560826420784, -0.024495502933859825, -0.002835716586560011, 0.009957519359886646, 0.0527566596865654, -0.03462010249495506, -0.07592106610536575, 0.0167696513235569, 0.05516895651817322, 0.05879075080156326, -0.043870922178030014, 0.053917426615953445, 0.06327919661998749, -0.11632480472326279, -0.014092883095145226, 0.040031153708696365, 0.02185457944869995, -0.015519940294325352, -0.05477707087993622, -0.038789402693510056, -0.025644056499004364, 0.003941562492400408, 0.05456963926553726, 0.09409733861684799, 0.06065702438354492, -0.0780322328209877, -0.01962314173579216, -0.07438423484563828, 0.05295126512646675, 0.0775776356458664, -0.04659091308712959, 0.0225120410323143, 0.02020042948424816, 0.018760625272989273, 0.029809441417455673, -0.07738430798053741, 0.048685602843761444, 0.010441437363624573, 0.03725147992372513, -0.05744181200861931, -0.023822180926799774, 0.00923173874616623, -0.030436556786298752, 0.017919320613145828, -0.023137971758842468, 0.08504019677639008, 0.10960707813501358, -0.010238736867904663, -0.050133511424064636, 0.0017176909605041146, 0.04375048354268074, 0.018925853073596954, 0.019117722287774086, 0.016772214323282242, -0.0009605923551134765, -0.04406360536813736, 0.033332329243421555, -0.03213873505592346, -0.012334547005593777, 0.03894419968128204, -0.037561047822237015, 5.251476563918429e-33, 0.08154425024986267, -0.07088806480169296, 0.020858410745859146, -0.15019631385803223, 0.011840732768177986, -0.08494298905134201, -0.04255441203713417, -0.017085909843444824, -0.026993190869688988, 0.02009657397866249, -0.06598939746618271, 0.024905143305659294, -0.009189387783408165, -0.11057040840387344, 0.03880632668733597, -0.028334440663456917, -0.013655764982104301, 0.03019341267645359, 0.09210594743490219, -0.01659597083926201, 0.02752542495727539, -0.027259882539510727, -0.07875465601682663, 0.036761991679668427, 0.019451143220067024, -0.029973570257425308, 0.006014668848365545, -0.08515076339244843, -0.06738048046827316, 0.03479961305856705, -0.02835475280880928, -0.0034201880916953087, 0.008652815595269203, 0.039299577474594116, -0.044947605580091476, 0.03868689015507698, 0.018081417307257652, 0.013331849128007889, -0.07445599138736725, -0.047203924506902695, 0.0234491229057312, 0.026194382458925247, 0.02849029377102852, -0.06253091990947723, 0.06951313465833664, -0.008916057646274567, 0.12557654082775116, 0.02094154618680477, 0.056838784366846085, 0.06908297538757324, 0.030223214998841286, -0.028509486466646194, 0.034942593425512314, -0.04783911257982254, 0.02012190781533718, -0.005169446114450693, 0.06619195640087128, -0.03056882694363594, -0.03926263749599457, 0.02476380206644535, -0.016615349799394608, -0.037840019911527634, 0.019123120233416557, -0.02622923254966736, 0.03491579741239548, 0.018365690484642982, -0.021620115265250206, -0.01170099712908268, -0.029362915083765984, 0.001034125336445868, 0.012115339748561382, 0.06055489555001259, -0.03734355792403221, 0.015776321291923523, -0.00415475619956851, -0.05905091390013695, 0.057029854506254196, 0.004782467149198055, -0.12081248313188553, 0.046317316591739655, 0.02137296460568905, 0.07582727819681168, -0.1056927815079689, 0.07077924907207489, 0.01448801439255476, -0.008471754379570484, 0.02750367671251297, 0.02559470757842064, -0.09768010675907135, -0.03275258094072342, 0.034692250192165375, -0.0476255863904953, -0.042759835720062256, 0.06722045689821243, -0.09604001045227051, -4.066707195326169e-33, 0.040648460388183594, -0.028300944715738297, 0.03215019404888153, 0.035275429487228394, 0.009745071642100811, 0.059895820915699005, 0.04373018816113472, 0.05621207505464554, -0.014702766202390194, -0.062214918434619904, -0.016534078866243362, -0.01003239769488573, 0.055900685489177704, -0.037169452756643295, -0.051723409444093704, -0.017592227086424828, -0.07482559233903885, -0.06758662313222885, -0.040800657123327255, 0.05275730416178703, 0.038511816412210464, 0.023232746869325638, -0.05764223635196686, 0.09308310598134995, 0.0018288465216755867, 0.05338411033153534, -0.020759139209985733, 0.08046343922615051, -0.05778244882822037, -0.043140582740306854, 0.010539724491536617, -0.11817950755357742, -0.09227704256772995, 0.06731362640857697, 0.026924043893814087, -0.08926237374544144, -0.044342074543237686, 0.070475734770298, -0.02994011528789997, 0.02854199893772602, 0.038432445377111435, 0.0408046692609787, -0.06986819207668304, 0.11295934021472931, -0.04022670164704323, 0.05954163521528244, 0.01803472451865673, -0.006338581908494234, 0.014818756841123104, -0.09577877819538116, -0.0925954133272171, -0.014116475358605385, 0.01567554846405983, 0.08101505786180496, -0.002720337361097336, 0.08150148391723633, -0.00022345079923979938, 0.01899833232164383, -0.0015992657281458378, 0.008849083445966244, 0.03941905498504639, -0.06526188552379608, 0.029954923316836357, 0.08715441823005676, 0.04495497792959213, 0.02201525680720806, 0.05594605952501297, 0.11122895777225494, -0.01685599610209465, -0.012500863522291183, 0.03243405744433403, 0.0018087304197251797, -0.012449398636817932, -0.05976269766688347, -0.009414435364305973, 0.012989974580705166, 0.08356022834777832, -0.019202494993805885, 0.031060561537742615, 0.00938564632087946, -0.09658414870500565, 0.06813482940196991, -0.07074183970689774, -0.003924191929399967, 0.05277656018733978, 0.07377934455871582, 0.06464102864265442, 0.0766480341553688, 0.05996742472052574, 0.058067068457603455, -0.002289894735440612, 0.04025157168507576, -0.03957335650920868, 0.11007922887802124, -0.08350912481546402, -5.6176595819579234e-8, -0.0011803088709712029, -0.02164372242987156, -0.05087786167860031, 0.024444377049803734, 0.052121806889772415, -0.053670480847358704, 0.06845918297767639, 0.04195679351687431, -0.055613432079553604, 0.07255297154188156, 0.024027874693274498, 0.03172963857650757, -0.10350221395492554, -0.010009320452809334, 0.11642825603485107, -0.05011260136961937, 0.017798855900764465, 0.06385522335767746, -0.034242890775203705, -0.1079915389418602, -0.027253875508904457, -0.06902920454740524, -0.035835713148117065, -0.04023626074194908, -0.014700976200401783, 0.017882203683257103, 0.06192896515130997, 0.060859788209199905, 0.06372667849063873, 0.0366058424115181, -0.052548084408044815, 0.004482001066207886, -0.027585875242948532, 0.021841738373041153, -0.019698772579431534, 0.03926752135157585, -0.1486227959394455, 0.06050879880785942, 0.02495320700109005, 0.021443482488393784, 0.0261833593249321, -0.023703977465629578, -0.05784587562084198, -0.003562741680070758, -0.03474733605980873, 0.03503775969147682, -0.03196940943598747, 0.07903918623924255, 0.06007355451583862, -0.0429440513253212, -0.026341773569583893, 0.00994910765439272, -0.01812647469341755, 0.07871127873659134, -0.02833864465355873, 0.030356217175722122, 0.0314374677836895, -0.07224644720554352, 0.011638419702649117, -0.02316346950829029, -0.005597023759037256, 0.0164484940469265, -0.0922364592552185, 0.0029105364810675383 ]
0.092533
update the `pod.spec` between different revisions. The controller/operator just needs to set different values to the same label key for different revisions. For example, if you are configuring a Deployment, you can use the label keyed with [pod-template-hash](/docs/concepts/workloads/controllers/deployment/#pod-template-hash-label), which is added automatically by the Deployment controller, to distinguish between different revisions in a single Deployment. ```yaml topologySpreadConstraints: - maxSkew: 1 topologyKey: kubernetes.io/hostname whenUnsatisfiable: DoNotSchedule labelSelector: matchLabels: app: foo matchLabelKeys: - pod-template-hash ``` {{< note >}} The `matchLabelKeys` field is a beta-level field and enabled by default in 1.27. You can disable it by disabling the `MatchLabelKeysInPodTopologySpread` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/). Before v1.34, `matchLabelKeys` was handled implicitly. Since v1.34, key-value labels corresponding to `matchLabelKeys` are explicitly merged into `labelSelector`. You can disable it and revert to the previous behavior by disabling the `MatchLabelKeysInPodTopologySpreadSelectorMerge` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/) of kube-apiserver. {{< /note >}} - \*\*nodeAffinityPolicy\*\* indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations. If this value is null, the behavior is equivalent to the Honor policy. {{< note >}} The `nodeAffinityPolicy` became beta in 1.26 and graduated to GA in 1.33. It's enabled by default in beta, you can disable it by disabling the `NodeInclusionPolicyInPodTopologySpread` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/). {{< /note >}} - \*\*nodeTaintsPolicy\*\* indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included. If this value is null, the behavior is equivalent to the Ignore policy. {{< note >}} The `nodeTaintsPolicy` became beta in 1.26 and graduated to GA in 1.33. It's enabled by default in beta, you can disable it by disabling the `NodeInclusionPolicyInPodTopologySpread` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/). {{< /note >}} When a Pod defines more than one `topologySpreadConstraint`, those constraints are combined using a logical AND operation: the kube-scheduler looks for a node for the incoming Pod that satisfies all the configured constraints. ### Node labels Topology spread constraints rely on node labels to identify the topology domain(s) that each {{< glossary\_tooltip text="node" term\_id="node" >}} is in. For example, a node might have labels: ```yaml region: us-east-1 zone: us-east-1a ``` {{< note >}} For brevity, this example doesn't use the [well-known](/docs/reference/labels-annotations-taints/) label keys `topology.kubernetes.io/zone` and `topology.kubernetes.io/region`. However, those registered label keys are nonetheless recommended rather than the private (unqualified) label keys `region` and `zone` that are used here. You can't make a reliable assumption about the meaning of a private label key between different contexts. {{< /note >}} Suppose you have a 4-node cluster with the following labels: ``` NAME STATUS ROLES AGE VERSION LABELS node1 Ready 4m26s v1.16.0 node=node1,zone=zoneA node2 Ready 3m58s v1.16.0 node=node2,zone=zoneA node3 Ready 3m17s v1.16.0 node=node3,zone=zoneB node4 Ready 2m43s v1.16.0 node=node4,zone=zoneB ``` Then the cluster is logically viewed as below: {{}} graph TB subgraph "zoneB" n3(Node3) n4(Node4) end subgraph "zoneA" n1(Node1) n2(Node2) end classDef plain fill:#ddd,stroke:#fff,stroke-width:4px,color:#000; classDef k8s fill:#326ce5,stroke:#fff,stroke-width:4px,color:#fff; classDef cluster fill:#fff,stroke:#bbb,stroke-width:2px,color:#326ce5; class n1,n2,n3,n4 k8s; class zoneA,zoneB cluster; {{< /mermaid >}} ## Consistency You should set the same Pod topology spread constraints on all pods in a group. Usually, if you are using a workload controller such as a Deployment, the pod template takes care of this for you. If you mix different spread constraints then Kubernetes follows the API definition of the field; however, the behavior is more likely to become confusing and troubleshooting is less straightforward. You need a mechanism to ensure that all the nodes in
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/topology-spread-constraints.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/topology-spread-constraints.md
[ 0.016190387308597565, 0.01157311163842678, 0.05613350123167038, -0.005849276203662157, -0.018970869481563568, 0.03822110965847969, -0.0352582186460495, -0.05643245950341225, 0.11122381687164307, 0.05013638362288475, -0.0005215320852585137, -0.023751650005578995, -0.03378210961818695, -0.06611362844705582, 0.020477600395679474, -0.007379576098173857, -0.011308817192912102, 0.03241296857595444, -0.005062328185886145, -0.03790663555264473, 0.001788673340342939, 0.059463974088430405, 0.0572357177734375, 0.06960629671812057, -0.02159605547785759, 0.04283284768462181, -0.09631811082363129, 0.06894025951623917, 0.02341734804213047, -0.05190136283636093, -0.02413368597626686, 0.06894343346357346, -0.033060990273952484, 0.03832452371716499, 0.06405965983867645, 0.04559072107076645, -0.030207211151719093, 0.011867369525134563, 0.03240395709872246, -0.005860258359462023, 0.03669939190149307, 0.004382862709462643, -0.059719108045101166, -0.02439265139400959, -0.06378389149904251, 0.01870933547616005, -0.0690426155924797, -0.058888670057058334, -0.028682421892881393, 0.0549490824341774, 0.03271052613854408, -0.11646462231874466, 0.031401898711919785, -0.03757533058524132, 0.06713637709617615, 0.09171073883771896, 0.03572613373398781, 0.05559615045785904, 0.10884638875722885, 0.012914473190903664, 0.01382727362215519, -0.021811801940202713, 0.023895904421806335, -0.07576011121273041, 0.006477296352386475, -0.03326239064335823, 0.04358995705842972, -0.05062301456928253, 0.01617412455379963, 0.0312344953417778, 0.06728193908929825, 0.016191231086850166, 0.060026369988918304, -0.08559215813875198, -0.08542747795581818, 0.026018483564257622, -0.05670260265469551, 0.09786853194236755, 0.02966412901878357, -0.09717031568288803, -0.008920029737055302, -0.0029646987095475197, 0.04447641223669052, -0.05474988371133804, -0.022968193516135216, -0.036012981086969376, 0.024468520656228065, -0.03499870002269745, -0.0256595928221941, 0.03652061149477959, 0.019398605450987816, -0.10029847919940948, 0.09993181377649307, -0.12433334439992905, -0.030406778678297997, 0.000587894523050636, -0.03223112225532532, 0.0858762338757515, 0.0868515595793724, 0.03893088549375534, 0.010719972662627697, 0.02461918257176876, -0.018969012424349785, -0.011864962056279182, 0.10002186894416809, -0.01830556057393551, 0.0014656558632850647, -0.02248707227408886, -0.026032015681266785, 0.045482512563467026, 0.03868034482002258, 0.02342430129647255, -0.00003841682701022364, 0.01507715042680502, -0.005352475214749575, 0.021844299510121346, 0.039743248373270035, 0.04248381406068802, -0.0042312368750572205, 0.05864929407835007, 0.027245592325925827, -0.11369498819112778, -0.013900374993681908, 0.04015302285552025, -0.11492262780666351, 0.023319223895668983, 0.013318358920514584, 3.254321947446932e-33, 0.12192661315202713, -0.03922288119792938, -0.03972687944769859, -0.02427801303565502, 0.04036673530936241, -0.03793777525424957, -0.07020698487758636, -0.008188788779079914, -0.012099537998437881, -0.0211750827729702, 0.003921892959624529, 0.07248065620660782, -0.05166272819042206, -0.08679983019828796, -0.044611938297748566, -0.018457358703017235, -0.1163482591509819, 0.057162266224622726, 0.05161220580339432, 0.019295237958431244, 0.01739097200334072, -0.0994584932923317, -0.057003263384103775, -0.038779180496931076, 0.06359841674566269, -0.04687948524951935, 0.030518366023898125, -0.06523113697767258, -0.006613719277083874, -0.0007700164569541812, -0.011607308872044086, -0.037773918360471725, 0.07636745274066925, 0.05127253755927086, -0.07809017598628998, -0.061114583164453506, 0.027215559035539627, 0.007312738802284002, -0.1049366444349289, -0.05658816546201706, 0.03849899396300316, 0.006065030582249165, -0.050270117819309235, -0.11152394115924835, 0.033518604934215546, 0.025311587378382683, 0.014504784718155861, 0.0017670930828899145, 0.09990246593952179, -0.055018626153469086, 0.012185943312942982, -0.0056921993382275105, -0.008233586326241493, -0.0784795880317688, -0.00010989022848661989, -0.04979320988059044, 0.08290063589811325, -0.05511469393968582, -0.017665009945631027, 0.024073177948594093, -0.011532102711498737, 0.025908824056386948, 0.0024573614355176687, 0.011644449084997177, 0.052239932119846344, 0.08144446462392807, 0.006162883248180151, 0.055912867188453674, 0.025097956880927086, 0.03216278925538063, -0.06947608292102814, 0.003531508380547166, -0.07273168116807938, 0.003158283419907093, -0.0004137418873142451, -0.1121676042675972, -0.018924415111541748, 0.047917354851961136, -0.04832219332456589, 0.038178108632564545, -0.03189114108681679, 0.008536227978765965, -0.07336465269327164, 0.11232651770114899, 0.02761046774685383, -0.01453992910683155, 0.022278452292084694, 0.027014734223484993, -0.06120224669575691, 0.017917603254318237, 0.02355574630200863, -0.011832204647362232, -0.023425767198204994, 0.011927037499845028, -0.027975086122751236, -3.173139368843268e-33, 0.044357020407915115, -0.024252956733107567, 0.015124688856303692, 0.030119912698864937, -0.021826984360814095, -0.02617296390235424, 0.01726907305419445, 0.12903200089931488, 0.005518272984772921, -0.05806493014097214, 0.015208346769213676, -0.06450182944536209, -0.02673540636897087, -0.03208933398127556, -0.08479707688093185, -0.04743233695626259, -0.1052594929933548, -0.0373874306678772, 0.004198337905108929, 0.042314447462558746, 0.002239492954686284, 0.00836165715008974, 0.03963851183652878, 0.04221561923623085, 0.02162027917802334, 0.0017760738264769316, 0.05869737267494202, 0.034390535205602646, 0.009716159664094448, -0.03941579908132553, 0.0020226947963237762, -0.09172596782445908, -0.030073419213294983, -0.02253532223403454, 0.0013919436605647206, -0.07287094742059708, -0.02033090405166149, 0.02878696285188198, -0.050089698284864426, 0.10647080838680267, 0.016460934653878212, 0.050732292234897614, -0.08497194945812225, 0.014428270980715752, -0.06000654026865959, -0.012021432630717754, 0.008926339447498322, 0.021513808518648148, -0.02422015555202961, -0.11898964643478394, 0.03160378709435463, 0.00775386905297637, -0.09372858703136444, 0.03379281237721443, -0.04869171604514122, 0.005773950833827257, -0.013982532545924187, 0.030280927196145058, -0.09689635783433914, 0.08390531688928604, 0.019709013402462006, -0.01663965918123722, 0.09486383944749832, 0.03688179701566696, 0.0531095489859581, -0.024370480328798294, 0.005272456910461187, 0.0023035570047795773, 0.004203679505735636, 0.08409923315048218, 0.013484814204275608, -0.03894783556461334, 0.014473885297775269, 0.024413641542196274, 0.0784592479467392, -0.08508829772472382, 0.009765843860805035, -0.03566502407193184, 0.0783434510231018, -0.02053542621433735, -0.04435822367668152, 0.07357124984264374, -0.017061086371541023, 0.0623670369386673, 0.024600215256214142, 0.039046503603458405, 0.04229477420449257, 0.131377175450325, 0.03450381010770798, 0.06866704672574997, 0.00963222049176693, -0.027904875576496124, -0.049400344491004944, 0.058189310133457184, -0.08422369509935379, -4.648439144716576e-8, 0.0027055402752012014, 0.06607413291931152, -0.019440744072198868, 0.0732383131980896, 0.03969748690724373, -0.01843893714249134, 0.013915766030550003, -0.0007297702832147479, -0.036641575396060944, -0.028039390221238136, -0.030970850959420204, 0.09596439450979233, -0.0902487188577652, 0.010072734206914902, -0.017785130068659782, -0.04094206914305687, -0.0010751126101240516, 0.08699789643287659, 0.0013699940172955394, -0.08883706480264664, -0.11866289377212524, 0.006809527985751629, 0.049242500215768814, -0.03382376208901405, 0.009977690875530243, 0.05544222518801689, 0.011957886628806591, 0.03716681897640228, 0.1004999428987503, -0.01649578846991062, 0.043914951384067535, -0.008843095041811466, -0.03148801624774933, 0.03006567619740963, -0.02713533490896225, 0.0004544098046608269, -0.06507845968008041, 0.04440141096711159, 0.083216093480587, 0.09975048899650574, -0.04197443649172783, -0.03565453737974167, -0.1266636699438095, 0.00757468631491065, -0.043786048889160156, 0.010254042223095894, 0.019855933263897896, 0.02498549409210682, -0.0467216819524765, 0.03428731486201286, -0.017477305606007576, -0.08164826780557632, 0.013300790451467037, 0.03476626053452492, -0.029889561235904694, 0.017546385526657104, 0.030739907175302505, -0.0507940873503685, 0.026619523763656616, -0.018839379772543907, 0.09014863520860672, -0.09546442329883575, 0.02145729959011078, 0.007839467376470566 ]
0.055228
Deployment, the pod template takes care of this for you. If you mix different spread constraints then Kubernetes follows the API definition of the field; however, the behavior is more likely to become confusing and troubleshooting is less straightforward. You need a mechanism to ensure that all the nodes in a topology domain (such as a cloud provider region) are labeled consistently. To avoid you needing to manually label nodes, most clusters automatically populate well-known labels such as `kubernetes.io/hostname`. Check whether your cluster supports this. ## Topology spread constraint examples ### Example: one topology spread constraint {#example-one-topologyspreadconstraint} Suppose you have a 4-node cluster where 3 Pods labeled `foo: bar` are located in node1, node2 and node3 respectively: {{}} graph BT subgraph "zoneB" p3(Pod) --> n3(Node3) n4(Node4) end subgraph "zoneA" p1(Pod) --> n1(Node1) p2(Pod) --> n2(Node2) end classDef plain fill:#ddd,stroke:#fff,stroke-width:4px,color:#000; classDef k8s fill:#326ce5,stroke:#fff,stroke-width:4px,color:#fff; classDef cluster fill:#fff,stroke:#bbb,stroke-width:2px,color:#326ce5; class n1,n2,n3,n4,p1,p2,p3 k8s; class zoneA,zoneB cluster; {{< /mermaid >}} If you want an incoming Pod to be evenly spread with existing Pods across zones, you can use a manifest similar to: {{% code\_sample file="pods/topology-spread-constraints/one-constraint.yaml" %}} From that manifest, `topologyKey: zone` implies the even distribution will only be applied to nodes that are labeled `zone: ` (nodes that don't have a `zone` label are skipped). The field `whenUnsatisfiable: DoNotSchedule` tells the scheduler to let the incoming Pod stay pending if the scheduler can't find a way to satisfy the constraint. If the scheduler placed this incoming Pod into zone `A`, the distribution of Pods would become `[3, 1]`. That means the actual skew is then 2 (calculated as `3 - 1`), which violates `maxSkew: 1`. To satisfy the constraints and context for this example, the incoming Pod can only be placed onto a node in zone `B`: {{}} graph BT subgraph "zoneB" p3(Pod) --> n3(Node3) p4(mypod) --> n4(Node4) end subgraph "zoneA" p1(Pod) --> n1(Node1) p2(Pod) --> n2(Node2) end classDef plain fill:#ddd,stroke:#fff,stroke-width:4px,color:#000; classDef k8s fill:#326ce5,stroke:#fff,stroke-width:4px,color:#fff; classDef cluster fill:#fff,stroke:#bbb,stroke-width:2px,color:#326ce5; class n1,n2,n3,n4,p1,p2,p3 k8s; class p4 plain; class zoneA,zoneB cluster; {{< /mermaid >}} OR {{}} graph BT subgraph "zoneB" p3(Pod) --> n3(Node3) p4(mypod) --> n3 n4(Node4) end subgraph "zoneA" p1(Pod) --> n1(Node1) p2(Pod) --> n2(Node2) end classDef plain fill:#ddd,stroke:#fff,stroke-width:4px,color:#000; classDef k8s fill:#326ce5,stroke:#fff,stroke-width:4px,color:#fff; classDef cluster fill:#fff,stroke:#bbb,stroke-width:2px,color:#326ce5; class n1,n2,n3,n4,p1,p2,p3 k8s; class p4 plain; class zoneA,zoneB cluster; {{< /mermaid >}} You can tweak the Pod spec to meet various kinds of requirements: - Change `maxSkew` to a bigger value - such as `2` - so that the incoming Pod can be placed into zone `A` as well. - Change `topologyKey` to `node` so as to distribute the Pods evenly across nodes instead of zones. In the above example, if `maxSkew` remains `1`, the incoming Pod can only be placed onto the node `node4`. - Change `whenUnsatisfiable: DoNotSchedule` to `whenUnsatisfiable: ScheduleAnyway` to ensure the incoming Pod to be always schedulable (suppose other scheduling APIs are satisfied). However, it's preferred to be placed into the topology domain which has fewer matching Pods. (Be aware that this preference is jointly normalized with other internal scheduling priorities such as resource usage ratio). ### Example: multiple topology spread constraints {#example-multiple-topologyspreadconstraints} This builds upon the previous example. Suppose you have a 4-node cluster where 3 existing Pods labeled `foo: bar` are located on node1, node2 and node3 respectively: {{}} graph BT subgraph "zoneB" p3(Pod) --> n3(Node3) n4(Node4) end subgraph "zoneA" p1(Pod) --> n1(Node1) p2(Pod) --> n2(Node2) end classDef plain fill:#ddd,stroke:#fff,stroke-width:4px,color:#000; classDef k8s fill:#326ce5,stroke:#fff,stroke-width:4px,color:#fff; classDef cluster fill:#fff,stroke:#bbb,stroke-width:2px,color:#326ce5; class n1,n2,n3,n4,p1,p2,p3 k8s; class p4 plain; class zoneA,zoneB cluster; {{< /mermaid >}} You can combine two topology spread constraints to control the spread of Pods both by node and by zone: {{% code\_sample
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/topology-spread-constraints.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/topology-spread-constraints.md
[ 0.06480240076780319, -0.017326295375823975, 0.02180197276175022, -0.023609153926372528, 0.02651924267411232, 0.03347477689385414, -0.014588098973035812, -0.06201108545064926, 0.013069319538772106, -0.02488720417022705, -0.033813126385211945, -0.08392404764890671, 0.031711023300886154, -0.013380775228142738, 0.049353115260601044, 0.022075854241847992, 0.011370941065251827, -0.029119303449988365, -0.002327951369807124, -0.06137002632021904, -0.0006241053924895823, 0.015058998949825764, 0.008380535058677197, 0.017523134127259254, -0.07383592426776886, 0.030564146116375923, -0.03974070027470589, 0.013368792831897736, 0.09191419184207916, 0.0029866674449294806, 0.002166635124012828, 0.0643039420247078, -0.04923976585268974, 0.10013841092586517, 0.08721330016851425, 0.046024128794670105, -0.07985859364271164, 0.013508928939700127, -0.03960806131362915, 0.058301012963056564, 0.07950341701507568, -0.012378045357763767, -0.027829622849822044, -0.013623518869280815, 0.011565263383090496, 0.07218973338603973, -0.09331609308719635, 0.06792279332876205, -0.05757231265306473, -0.05583137646317482, 0.019946860149502754, -0.12132418155670166, 0.009015402756631374, 0.031696680933237076, -0.003776771016418934, 0.07588682323694229, -0.02883533015847206, 0.01486154180020094, 0.0711911991238594, 0.05574442073702812, 0.0649818629026413, -0.03248675912618637, -0.016077181324362755, -0.023785464465618134, 0.040293846279382706, 0.022873399779200554, 0.03407512977719307, 0.05353953316807747, 0.0149326017126441, 0.07342735677957535, 0.12844933569431305, 0.03197137266397476, -0.041574377566576004, -0.019437182694673538, 0.00047537736827507615, 0.0783514603972435, -0.014633968472480774, 0.059738244861364365, -0.017912840470671654, -0.02640596218407154, 0.011119137518107891, 0.05190318822860718, 0.03331560641527176, -0.016076425090432167, -0.033615924417972565, -0.08511988818645477, -0.0375533290207386, -0.08383136242628098, -0.00584004633128643, 0.03043738566339016, -0.049221184104681015, -0.07966141402721405, -0.01441246923059225, -0.09501965343952179, 0.03182535991072655, 0.02476145140826702, -0.03425345942378044, -0.02481773868203163, 0.07873587310314178, 0.038422517478466034, -0.021850571036338806, -0.05172726511955261, -0.02832704223692417, -0.06360439956188202, 0.04049473628401756, -0.02121862769126892, -0.04996722936630249, 0.010591194033622742, 0.03182747960090637, 0.07284881919622421, 0.060733404010534286, 0.07610757648944855, -0.01088216807693243, 0.00519984494894743, -0.050727479159832, 0.04128701239824295, 0.09643103927373886, -0.03936370462179184, 0.07065430283546448, 0.0012027344200760126, -0.06696178764104843, -0.08869663625955582, 0.01290877629071474, -0.008990239351987839, -0.05226657912135124, 0.0007042452925816178, -0.10295286774635315, 5.55974885539562e-33, 0.00586250564083457, -0.11148060858249664, 0.013569243252277374, -0.029311977326869965, 0.007376194000244141, -0.016235696151852608, -0.07758471369743347, -0.022251872345805168, -0.05663455277681351, -0.011085516773164272, -0.055997852236032486, 0.06147749349474907, 0.0031324727460741997, -0.08127447217702866, 0.03100127913057804, -0.09410901367664337, -0.00614842027425766, 0.09324710816144943, 0.014031590893864632, -0.02063397504389286, 0.0247522983700037, -0.06968629360198975, -0.0229527335613966, 0.01633910834789276, -0.008493762463331223, -0.04566921666264534, -0.03026215359568596, -0.11979252099990845, 0.054873377084732056, 0.01911962777376175, -0.07394759356975555, -0.02211040072143078, 0.10580272227525711, 0.0347403809428215, -0.05975179001688957, -0.019636424258351326, -0.031479787081480026, -0.011060968041419983, -0.07440364360809326, -0.03673800826072693, 0.036126039922237396, 0.008987685665488243, 0.026594525203108788, -0.06034835800528526, 0.05645817145705223, 0.060738664120435715, 0.021615423262119293, -0.016836807131767273, 0.034734152257442474, -0.04816263169050217, -0.01650181971490383, -0.023460829630494118, 0.0627913624048233, -0.05265812948346138, 0.05638771504163742, -0.007785638328641653, 0.07722148299217224, -0.05065695941448212, -0.01676994562149048, 0.06076207011938095, -0.015635469928383827, -0.06368847191333771, -0.03132830932736397, 0.028705941513180733, 0.0887913852930069, 0.04441126063466072, -0.021427178755402565, 0.05958046764135361, 0.05742096155881882, 0.0009134943829849362, -0.044683586806058884, 0.06246880814433098, -0.10509485751390457, 0.05242154747247696, 0.0040534804575145245, -0.0799194872379303, -0.03125938028097153, 0.08638958632946014, -0.07618141919374466, 0.03581097722053528, -0.07848542928695679, 0.009787041693925858, -0.06154867261648178, 0.11988193541765213, -0.05845005065202713, 0.0022815116681158543, 0.05233979597687721, 0.022342141717672348, -0.05612235143780708, 0.01263682171702385, 0.03725729137659073, -0.011949144303798676, -0.0018879449926316738, 0.021010909229516983, 0.00010386591748101637, -5.11933483583868e-33, -0.014809733256697655, 0.04245087504386902, 0.03035913035273552, 0.020511940121650696, 0.06626633554697037, -0.029411880299448967, 0.017993537709116936, 0.05202397331595421, 0.04568731412291527, 0.02895841747522354, -0.03756893798708916, -0.034609537571668625, -0.023987064138054848, -0.00913546234369278, -0.08550004661083221, 0.011308358982205391, -0.06815320998430252, -0.04600786045193672, 0.038180042058229446, 0.08317205309867859, 0.0008687973604537547, -0.042591724544763565, -0.01843230426311493, 0.006026768125593662, 0.07490577548742294, 0.03314683958888054, 0.006719514261931181, 0.04938840866088867, 0.0028460691682994366, 0.022683080285787582, -0.033034514635801315, -0.05935715511441231, -0.012622700072824955, 0.029349157586693764, -0.034722261130809784, -0.05600021779537201, -0.038677990436553955, 0.06516163051128387, 0.03027980402112007, -0.00024572762777097523, -0.02260984666645527, 0.02901647239923477, -0.14322713017463684, 0.0457453615963459, -0.03148375451564789, 0.0022905177902430296, 0.018917985260486603, 0.009672802872955799, -0.07532189041376114, -0.07839098572731018, -0.06833292543888092, 0.006413968279957771, -0.05937943980097771, 0.026512280106544495, -0.09112199395895004, -0.004864322021603584, -0.032160449773073196, 0.0936412364244461, -0.0671631395816803, -0.014073755592107773, 0.042480118572711945, -0.10071715712547302, 0.06374440342187881, 0.022197866812348366, 0.059231098741292953, -0.07300068438053131, 0.029696645215153694, -0.035970721393823624, -0.09388662874698639, 0.027594370767474174, -0.022418083623051643, 0.03444197401404381, -0.01643611676990986, 0.037202734500169754, -0.004182776901870966, -0.005225571803748608, 0.046679895371198654, 0.012324943207204342, 0.05454659089446068, 0.007239844650030136, -0.0756043791770935, 0.014393279328942299, -0.038564927875995636, 0.0596226267516613, 0.031218159943819046, 0.057699352502822876, 0.13452602922916412, 0.13831345736980438, 0.04319082573056221, 0.15602922439575195, 0.005924929399043322, 0.002165590412914753, -0.02071301080286503, 0.050281867384910583, -0.10353501886129379, -5.6032643414027916e-8, -0.03404734656214714, -0.006363409571349621, -0.07788233458995819, 0.010709342546761036, -0.016901681199669838, 0.017237938940525055, 0.07455161213874817, 0.015311363153159618, -0.03879762440919876, -0.004350422415882349, -0.07421131432056427, 0.04594860225915909, -0.05427303537726402, 0.010243711061775684, -0.008872526697814465, -0.02368217706680298, -0.011815126985311508, 0.016995811834931374, -0.030648548156023026, -0.026214411482214928, -0.09484734386205673, -0.028984548524022102, -0.011079101823270321, 0.028318103402853012, 0.011723251082003117, 0.015103315934538841, 0.020037773996591568, -0.0019988049753010273, 0.11748009920120239, 0.00025700117112137377, -0.0167959276586771, -0.02519683912396431, -0.053824007511138916, 0.055168092250823975, -0.09041718393564224, 0.07103411108255386, -0.08863739669322968, 0.021154798567295074, 0.0052587976679205894, 0.10739756375551224, 0.01041924674063921, 0.011508834548294544, -0.0752793550491333, -0.011988390237092972, 0.012708366848528385, 0.0816781148314476, 0.06022267043590546, 0.08119005709886551, 0.04106277599930763, 0.047886937856674194, -0.0599566251039505, -0.032270871102809906, -0.026173153892159462, -0.006602015811949968, 0.008002899587154388, -0.04288342222571373, -0.037931639701128006, -0.047826819121837616, 0.09122910350561142, 0.006121171172708273, -0.07282283157110214, -0.013070482760667801, 0.02282118797302246, -0.0003997646563220769 ]
0.068246
"zoneA" p1(Pod) --> n1(Node1) p2(Pod) --> n2(Node2) end classDef plain fill:#ddd,stroke:#fff,stroke-width:4px,color:#000; classDef k8s fill:#326ce5,stroke:#fff,stroke-width:4px,color:#fff; classDef cluster fill:#fff,stroke:#bbb,stroke-width:2px,color:#326ce5; class n1,n2,n3,n4,p1,p2,p3 k8s; class p4 plain; class zoneA,zoneB cluster; {{< /mermaid >}} You can combine two topology spread constraints to control the spread of Pods both by node and by zone: {{% code\_sample file="pods/topology-spread-constraints/two-constraints.yaml" %}} In this case, to match the first constraint, the incoming Pod can only be placed onto nodes in zone `B`; while in terms of the second constraint, the incoming Pod can only be scheduled to the node `node4`. The scheduler only considers options that satisfy all defined constraints, so the only valid placement is onto node `node4`. ### Example: conflicting topology spread constraints {#example-conflicting-topologyspreadconstraints} Multiple constraints can lead to conflicts. Suppose you have a 3-node cluster across 2 zones: {{}} graph BT subgraph "zoneB" p4(Pod) --> n3(Node3) p5(Pod) --> n3 end subgraph "zoneA" p1(Pod) --> n1(Node1) p2(Pod) --> n1 p3(Pod) --> n2(Node2) end classDef plain fill:#ddd,stroke:#fff,stroke-width:4px,color:#000; classDef k8s fill:#326ce5,stroke:#fff,stroke-width:4px,color:#fff; classDef cluster fill:#fff,stroke:#bbb,stroke-width:2px,color:#326ce5; class n1,n2,n3,n4,p1,p2,p3,p4,p5 k8s; class zoneA,zoneB cluster; {{< /mermaid >}} If you were to apply [`two-constraints.yaml`](https://raw.githubusercontent.com/kubernetes/website/main/content/en/examples/pods/topology-spread-constraints/two-constraints.yaml) (the manifest from the previous example) to \*\*this\*\* cluster, you would see that the Pod `mypod` stays in the `Pending` state. This happens because: to satisfy the first constraint, the Pod `mypod` can only be placed into zone `B`; while in terms of the second constraint, the Pod `mypod` can only schedule to node `node2`. The intersection of the two constraints returns an empty set, and the scheduler cannot place the Pod. To overcome this situation, you can either increase the value of `maxSkew` or modify one of the constraints to use `whenUnsatisfiable: ScheduleAnyway`. Depending on circumstances, you might also decide to delete an existing Pod manually - for example, if you are troubleshooting why a bug-fix rollout is not making progress. #### Interaction with node affinity and node selectors The scheduler will skip the non-matching nodes from the skew calculations if the incoming Pod has `spec.nodeSelector` or `spec.affinity.nodeAffinity` defined. ### Example: topology spread constraints with node affinity {#example-topologyspreadconstraints-with-nodeaffinity} Suppose you have a 5-node cluster ranging across zones A to C: {{}} graph BT subgraph "zoneB" p3(Pod) --> n3(Node3) n4(Node4) end subgraph "zoneA" p1(Pod) --> n1(Node1) p2(Pod) --> n2(Node2) end classDef plain fill:#ddd,stroke:#fff,stroke-width:4px,color:#000; classDef k8s fill:#326ce5,stroke:#fff,stroke-width:4px,color:#fff; classDef cluster fill:#fff,stroke:#bbb,stroke-width:2px,color:#326ce5; class n1,n2,n3,n4,p1,p2,p3 k8s; class p4 plain; class zoneA,zoneB cluster; {{< /mermaid >}} {{}} graph BT subgraph "zoneC" n5(Node5) end classDef plain fill:#ddd,stroke:#fff,stroke-width:4px,color:#000; classDef k8s fill:#326ce5,stroke:#fff,stroke-width:4px,color:#fff; classDef cluster fill:#fff,stroke:#bbb,stroke-width:2px,color:#326ce5; class n5 k8s; class zoneC cluster; {{< /mermaid >}} and you know that zone `C` must be excluded. In this case, you can compose a manifest as below, so that Pod `mypod` will be placed into zone `B` instead of zone `C`. Similarly, Kubernetes also respects `spec.nodeSelector`. {{% code\_sample file="pods/topology-spread-constraints/one-constraint-with-nodeaffinity.yaml" %}} ## Implicit conventions There are some implicit conventions worth noting here: - Only the Pods holding the same namespace as the incoming Pod can be matching candidates. - The scheduler only considers nodes that have all `topologySpreadConstraints[\*].topologyKey` present at the same time. Nodes missing any of these `topologyKeys` are bypassed. This implies that: 1. any Pods located on those bypassed nodes do not impact `maxSkew` calculation - in the above [example](#example-conflicting-topologyspreadconstraints), suppose the node `node1` does not have a label "zone", then the 2 Pods will be disregarded, hence the incoming Pod will be scheduled into zone `A`. 2. the incoming Pod has no chances to be scheduled onto this kind of nodes - in the above example, suppose a node `node5` has the \*\*mistyped\*\* label `zone-typo: zoneC` (and no `zone` label set). After node `node5` joins the cluster, it will be bypassed
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/topology-spread-constraints.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/topology-spread-constraints.md
[ 0.027941318228840828, 0.005650533828884363, -0.0006184683879837394, -0.019474901258945465, 0.040153827518224716, 0.009013108909130096, -0.02179863676428795, -0.06082591041922569, -0.05954820662736893, -0.0007195415091700852, -0.022240882739424706, -0.06830193102359772, -0.011666154488921165, -0.06341935694217682, 0.08714892715215683, 0.05472289398312569, -0.04465169459581375, 0.0034082166384905577, -0.019679440185427666, -0.041590798646211624, 0.06766454875469208, -0.029093723744153976, 0.013040255755186081, -0.022499116137623787, -0.12654294073581696, 0.08676771819591522, 0.007927829399704933, 0.033710651099681854, 0.0908222571015358, -0.06785661727190018, 0.034592315554618835, 0.07302258908748627, -0.02210531383752823, 0.0739627480506897, 0.06038234755396843, 0.04842031002044678, -0.004719552118331194, -0.00843779742717743, -0.08744112402200699, 0.00044930638978257775, 0.04475112631917, 0.033970482647418976, 0.016418753191828728, 0.00034694778150878847, 0.012560871429741383, 0.06515112519264221, -0.14017203450202942, 0.09091125428676605, -0.00992676056921482, -0.09940092265605927, 0.013600951060652733, -0.17584767937660217, -0.024009497836232185, -0.001158547238446772, 0.01954265683889389, 0.07104873657226562, -0.003970697056502104, 0.0018880391726270318, 0.08122735470533371, -0.02488226816058159, 0.07803966104984283, -0.018097197636961937, 0.016830509528517723, -0.041196566075086594, 0.04273173585534096, -0.030553188174962997, -0.02895338274538517, 0.11766499280929565, 0.001431615324690938, 0.04479515179991722, 0.05133402347564697, 0.011110611259937286, -0.0043043894693255424, -0.005876234266906977, 0.01098447572439909, 0.055429067462682724, -0.011080202646553516, 0.04845022037625313, -0.0523383803665638, -0.03234342113137245, -0.03920523077249527, 0.030602358281612396, 0.06840688735246658, 0.03232257813215256, -0.01861029863357544, -0.031083041802048683, -0.08746394515037537, -0.09001285582780838, 0.013145925477147102, 0.03271573781967163, -0.030218956992030144, 0.02589447796344757, -0.007797203026711941, -0.06268440932035446, 0.027486532926559448, -0.0007033219444565475, 0.006987107917666435, -0.044550247490406036, 0.06035301089286804, 0.06358827650547028, -0.010450865142047405, -0.050802573561668396, -0.04247422143816948, -0.05074233189225197, 0.05408014357089996, 0.0024377754889428616, -0.0718051865696907, -0.014731649309396744, 0.05251162499189377, 0.04054493457078934, 0.01384145487099886, 0.019429925829172134, -0.0265298243612051, 0.007964042946696281, -0.08916385471820831, -0.03614519536495209, 0.06936772912740707, 0.013048735447227955, 0.056593913584947586, 0.036278508603572845, 0.036535054445266724, -0.047935083508491516, -0.021480536088347435, -0.010559051297605038, 0.010759435594081879, -0.061719782650470734, -0.09320759028196335, 5.1552215763433306e-33, 0.034623123705387115, -0.15809042751789093, -0.04876938462257385, -0.01080025639384985, 0.08684313297271729, -0.035003963857889175, -0.01657790131866932, -0.05267857015132904, -0.09293875843286514, -0.01223709061741829, -0.06318555772304535, -0.004429406952112913, -0.03185839578509331, -0.03398507088422775, 0.04145132750272751, -0.11149270087480545, 0.007210681680589914, 0.06091652810573578, 0.005898472853004932, 0.013904107734560966, 0.014510287903249264, 0.004269913770258427, -0.013483910821378231, -0.01879238337278366, -0.01693708822131157, 0.008613662794232368, 0.00595581391826272, -0.1468229591846466, 0.036690957844257355, 0.027231669053435326, -0.02949567139148712, -0.06907948851585388, 0.03629825636744499, 0.027595091611146927, -0.07107190042734146, -0.0017936857184395194, 0.061734504997730255, -0.0307915136218071, -0.07890039682388306, -0.10129553824663162, 0.0035384309012442827, -0.0278207715600729, 0.048208508640527725, 0.001332104904577136, 0.002628947841003537, -0.002380908699706197, 0.06944902241230011, 0.018821565434336662, -0.003411772893741727, -0.0007968962891027331, -0.015469674952328205, 0.0019555697217583656, 0.053487591445446014, -0.047611452639102936, 0.029153896495699883, -0.019154652953147888, 0.07002851366996765, 0.009384997189044952, -0.025239592418074608, 0.06615228205919266, -0.004359579645097256, 0.028429565951228142, -0.02025694213807583, -0.01885312795639038, 0.08501056581735611, 0.034200116991996765, -0.004951773677021265, -0.023354770615696907, 0.08134792745113373, 0.015812406316399574, -0.048722706735134125, 0.09198106825351715, -0.019294951111078262, 0.027032533660531044, -0.038560643792152405, -0.033294159919023514, 0.02779502421617508, 0.07191821932792664, -0.08796913176774979, -0.010941268876194954, -0.08080507069826126, 0.05754271149635315, -0.0595942921936512, 0.003318306291475892, -0.08159423619508743, -0.02570563554763794, 0.06090398505330086, 0.05892962962388992, -0.088460773229599, -0.02465946041047573, -0.02583060972392559, -0.051806267350912094, 0.06487225741147995, -0.0322350338101387, -0.010293278843164444, -4.4680624763411614e-33, 0.025187281891703606, 0.06287244707345963, 0.020697791129350662, 0.04105783626437187, 0.06633839011192322, -0.010344414971768856, 0.04363176226615906, -0.032583028078079224, 0.027795638889074326, 0.02821936272084713, -0.08318553119897842, 0.04268581047654152, 0.07384145259857178, -0.004690570756793022, -0.07262330502271652, 0.0074881212785840034, -0.06074923649430275, -0.006138285156339407, 0.023709263652563095, 0.00004556466592475772, -0.044656701385974884, 0.015188521705567837, 0.03985926881432533, 0.06071646511554718, -0.013755245134234428, 0.03202380612492561, -0.019946979358792305, 0.06003691256046295, -0.07774466276168823, 0.03627089411020279, -0.0019093250157311559, -0.06367329508066177, -0.03701641038060188, 0.03001241572201252, -0.029598014429211617, -0.05374089628458023, -0.05675961449742317, 0.07180541008710861, -0.007407947909086943, 0.0010696110548451543, 0.025517871603369713, -0.010495609603822231, -0.14306123554706573, 0.041329387575387955, -0.051329340785741806, 0.024999583140015602, 0.01802508533000946, 0.09494691342115402, -0.04982902482151985, -0.04634619876742363, -0.08188775926828384, 0.004476918838918209, -0.029232703149318695, 0.05689363181591034, -0.014549140818417072, 0.03317875415086746, -0.0261764507740736, 0.0697946548461914, -0.020674066618084908, 0.05382170155644417, 0.028779111802577972, -0.11246101558208466, -0.003551127854734659, 0.05800680071115494, 0.06796794384717941, -0.07439351826906204, -0.008910580538213253, -0.020094646140933037, 0.0007466515526175499, 0.04232920706272125, -0.0054361242800951, 0.188831627368927, 0.0513230636715889, 0.041871167719364166, 0.04837513342499733, -0.0162397101521492, 0.05278335511684418, 0.006478750612586737, 0.059997186064720154, 0.0353168286383152, -0.1441391110420227, 0.07280546426773071, -0.005134955048561096, 0.06722047179937363, 0.06983307003974915, 0.06778513640165329, 0.11960706859827042, 0.09669825434684753, 0.07571806013584137, 0.06555072963237762, 0.010551024228334427, 0.0005910568870604038, 0.03461463004350662, 0.02275378815829754, -0.05383241921663284, -4.900292793763583e-8, 0.002005296992138028, -0.06753691285848618, -0.030806338414549828, 0.0036501733120530844, -0.003062521107494831, -0.02478947304189205, 0.009291667491197586, 0.005223062355071306, -0.02982529066503048, -0.017023304477334023, 0.00180723425000906, 0.06033707782626152, -0.053176648914813995, 0.0034427721984684467, -0.013949176296591759, 0.0033549268264323473, 0.014700224623084068, 0.01039644330739975, -0.07662247121334076, -0.06448028236627579, -0.02893989533185959, -0.07088625431060791, -0.04202602803707123, 0.10513225942850113, -0.013944385573267937, -0.0025316125247627497, -0.026304924860596657, -0.03096761368215084, 0.08872532844543457, -0.0026892602909356356, -0.0269875880330801, -0.04232713207602501, -0.02908334881067276, 0.06446436047554016, -0.008054465055465698, -0.018777234479784966, -0.105701744556427, 0.08400087803602219, -0.02997400611639023, 0.09038893133401871, 0.001787301036529243, -0.01026128325611353, -0.0454631969332695, 0.0015808461466804147, 0.035285744816064835, 0.04588174447417259, 0.05765274539589882, 0.01223357580602169, 0.004273909144103527, 0.08761991560459137, 0.005545955151319504, -0.03386789560317993, -0.02046915329992771, 0.027920426800847054, -0.026870131492614746, -0.04463353008031845, -0.05867712199687958, -0.031205225735902786, 0.053602833300828934, 0.020999960601329803, -0.04687878116965294, 0.0132175637409091, 0.01773531548678875, -0.005678373854607344 ]
0.073768
be scheduled into zone `A`. 2. the incoming Pod has no chances to be scheduled onto this kind of nodes - in the above example, suppose a node `node5` has the \*\*mistyped\*\* label `zone-typo: zoneC` (and no `zone` label set). After node `node5` joins the cluster, it will be bypassed and Pods for this workload aren't scheduled there. - Be aware of what will happen if the incoming Pod's `topologySpreadConstraints[\*].labelSelector` doesn't match its own labels. In the above example, if you remove the incoming Pod's labels, it can still be placed onto nodes in zone `B`, since the constraints are still satisfied. However, after that placement, the degree of imbalance of the cluster remains unchanged - it's still zone `A` having 2 Pods labeled as `foo: bar`, and zone `B` having 1 Pod labeled as `foo: bar`. If this is not what you expect, update the workload's `topologySpreadConstraints[\*].labelSelector` to match the labels in the pod template. ## Cluster-level default constraints It is possible to set default topology spread constraints for a cluster. Default topology spread constraints are applied to a Pod if, and only if: - It doesn't define any constraints in its `.spec.topologySpreadConstraints`. - It belongs to a Service, ReplicaSet, StatefulSet or ReplicationController. Default constraints can be set as part of the `PodTopologySpread` plugin arguments in a [scheduling profile](/docs/reference/scheduling/config/#profiles). The constraints are specified with the same [API above](#topologyspreadconstraints-field), except that `labelSelector` must be empty. The selectors are calculated from the Services, ReplicaSets, StatefulSets or ReplicationControllers that the Pod belongs to. An example configuration might look like follows: ```yaml apiVersion: kubescheduler.config.k8s.io/v1 kind: KubeSchedulerConfiguration profiles: - schedulerName: default-scheduler pluginConfig: - name: PodTopologySpread args: defaultConstraints: - maxSkew: 1 topologyKey: topology.kubernetes.io/zone whenUnsatisfiable: ScheduleAnyway defaultingType: List ``` ### Built-in default constraints {#internal-default-constraints} {{< feature-state for\_k8s\_version="v1.24" state="stable" >}} If you don't configure any cluster-level default constraints for pod topology spreading, then kube-scheduler acts as if you specified the following default topology constraints: ```yaml defaultConstraints: - maxSkew: 3 topologyKey: "kubernetes.io/hostname" whenUnsatisfiable: ScheduleAnyway - maxSkew: 5 topologyKey: "topology.kubernetes.io/zone" whenUnsatisfiable: ScheduleAnyway ``` Also, the legacy `SelectorSpread` plugin, which provides an equivalent behavior, is disabled by default. {{< note >}} The `PodTopologySpread` plugin does not score the nodes that don't have the topology keys specified in the spreading constraints. This might result in a different default behavior compared to the legacy `SelectorSpread` plugin when using the default topology constraints. If your nodes are not expected to have \*\*both\*\* `kubernetes.io/hostname` and `topology.kubernetes.io/zone` labels set, define your own constraints instead of using the Kubernetes defaults. {{< /note >}} If you don't want to use the default Pod spreading constraints for your cluster, you can disable those defaults by setting `defaultingType` to `List` and leaving empty `defaultConstraints` in the `PodTopologySpread` plugin configuration: ```yaml apiVersion: kubescheduler.config.k8s.io/v1 kind: KubeSchedulerConfiguration profiles: - schedulerName: default-scheduler pluginConfig: - name: PodTopologySpread args: defaultConstraints: [] defaultingType: List ``` ## Comparison with podAffinity and podAntiAffinity {#comparison-with-podaffinity-podantiaffinity} In Kubernetes, [inter-Pod affinity and anti-affinity](/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity) control how Pods are scheduled in relation to one another - either more packed or more scattered. `podAffinity` : attracts Pods; you can try to pack any number of Pods into qualifying topology domain(s). `podAntiAffinity` : repels Pods. If you set this to `requiredDuringSchedulingIgnoredDuringExecution` mode then only a single Pod can be scheduled into a single topology domain; if you choose `preferredDuringSchedulingIgnoredDuringExecution` then you lose the ability to enforce the constraint. For finer control, you can specify topology spread constraints to distribute Pods across different topology domains - to achieve either high availability or cost-saving. This can also help on rolling update workloads and scaling out replicas smoothly. For more context, see the [Motivation](https://github.com/kubernetes/enhancements/tree/master/keps/sig-scheduling/895-pod-topology-spread#motivation) section of the enhancement
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/topology-spread-constraints.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/topology-spread-constraints.md
[ 0.023361463099718094, -0.008740453980863094, 0.026059802621603012, 0.03568597882986069, 0.020803311839699745, 0.0007965078111737967, 0.026203982532024384, -0.07453577220439911, 0.006640201900154352, 0.010347956791520119, -0.018892481923103333, -0.023749178275465965, 0.037469495087862015, -0.0776049941778183, 0.01510097086429596, -0.0023635420948266983, 0.04058593511581421, -0.05170708894729614, 0.0025278874672949314, -0.043053653091192245, -0.01175414677709341, 0.051889821887016296, 0.006044713314622641, 0.05570022389292717, -0.04154117777943611, 0.05627095326781273, -0.09263908118009567, 0.00672687403857708, 0.06045914068818092, -0.022355979308485985, -0.04235423356294632, 0.10457764565944672, 0.00702713942155242, 0.03481581062078476, 0.07635009288787842, 0.07472719252109528, -0.056828100234270096, -0.03373730555176735, -0.03858989477157593, -0.02498202957212925, 0.15240909159183502, 0.0005646851495839655, -0.03267452120780945, 0.033508047461509705, -0.07103884220123291, 0.06331726908683777, -0.07578103244304657, 0.017081119120121002, -0.08611055463552475, -0.015843451023101807, -0.012720383703708649, -0.12170612066984177, 0.01081821694970131, 0.06782030314207077, 0.031361646950244904, 0.14609193801879883, 0.06959503889083862, 0.00092031602980569, 0.09085056185722351, 0.007908187806606293, 0.034619707614183426, -0.04684077948331833, 0.008632496930658817, -0.05665186047554016, 0.09597776085138321, -0.001230286550708115, -0.025876767933368683, 0.046007800847291946, 0.03448156267404556, 0.04660952463746071, 0.07276076823472977, 0.04192059859633446, 0.011069376952946186, 0.02636348456144333, -0.0005489207105711102, 0.08495894819498062, -0.008180443197488785, 0.04109393060207367, 0.007251815404742956, -0.051104310899972916, -0.043522946536540985, -0.01403430663049221, 0.03687872365117073, -0.02343001961708069, -0.05575920268893242, -0.034554850310087204, -0.016905149444937706, -0.09693925082683563, 0.0525931715965271, 0.0461270809173584, 0.012364418245851994, -0.03809138759970665, 0.04723283648490906, -0.08584468066692352, 0.02722034975886345, -0.006395317614078522, -0.03894000127911568, 0.021728429943323135, 0.04047485068440437, 0.046032290905714035, 0.04791849106550217, 0.02605397254228592, -0.06313761323690414, -0.022447410970926285, 0.010172017849981785, -0.03014325723052025, -0.05918312445282936, -0.021951837465167046, 0.01668979972600937, 0.017455929890275, 0.03868569806218147, 0.03430015221238136, 0.059122007340192795, 0.009075905196368694, -0.08342550694942474, 0.06277038902044296, 0.09701283276081085, -0.0007122574606910348, -0.025885872542858124, 0.026876769959926605, -0.03117518126964569, -0.0710415318608284, 0.0377252921462059, -0.02017425000667572, -0.06221267580986023, -0.018812932074069977, -0.019389454275369644, 1.713919436311859e-33, 0.010118748992681503, -0.15748587250709534, -0.03201768174767494, -0.06512124836444855, 0.060732461512088776, -0.05410508066415787, -0.05153980478644371, -0.021135997027158737, 0.013812260702252388, -0.06167243793606758, -0.07576565444469452, 0.044822290539741516, 0.017883174121379852, -0.008698015473783016, 0.00632310938090086, -0.06467575579881668, 0.039819102734327316, 0.07382605969905853, -0.0010749943321570754, -0.0013648811727762222, 0.022395046427845955, -0.02275257185101509, -0.07109332084655762, -0.05268331617116928, -0.04479040578007698, -0.025464026257395744, -0.03643161058425903, -0.11510098725557327, 0.0443715862929821, 0.0345180369913578, -0.09053460508584976, 0.026372388005256653, 0.03654230013489723, 0.10161689668893814, -0.041480451822280884, 0.030979914590716362, 0.0419134683907032, 0.008487474173307419, -0.10278001427650452, -0.10913297533988953, 0.012311013415455818, 0.03497478738427162, -0.003821013495326042, -0.029425347223877907, 0.09062481671571732, -0.05354341119527817, 0.023721225559711456, -0.04592346027493477, 0.0082693537697196, -0.024373944848775864, 0.08718007057905197, -0.0429544672369957, 0.0430549681186676, -0.07525408267974854, -0.05172129347920418, 0.0018927956698462367, 0.08430097997188568, -0.016300592571496964, 0.031149722635746002, 0.12584269046783447, 0.000656959367915988, -0.003791415598243475, -0.027284953743219376, 0.051025692373514175, 0.09622462093830109, 0.0991518571972847, 0.012354055419564247, -0.012976913712918758, 0.06824591010808945, 0.028961753472685814, -0.05590853840112686, 0.06386594474315643, -0.05137728527188301, 0.08292379230260849, -0.058521825820207596, -0.009687832556664944, -0.022957760840654373, 0.00468817912042141, -0.1623975932598114, 0.05132316052913666, 0.022699203342199326, -0.0035699116997420788, -0.05512802302837372, 0.054702792316675186, -0.0037155901081860065, -0.04221693053841591, 0.025040458887815475, -0.041817549616098404, -0.05320735275745392, 0.013552267104387283, 0.05529414489865303, -0.042217496782541275, -0.036314669996500015, 0.047503769397735596, -0.03840978816151619, -1.91284797795953e-33, 0.0028007966466248035, 0.03320029005408287, -0.011030156165361404, 0.006335603538900614, -0.022178707644343376, -0.004323278088122606, 0.02218545973300934, 0.04603247344493866, 0.0015424102311953902, 0.0032950611785054207, -0.07516876608133316, -0.018847160041332245, 0.023326614871621132, -0.00865959096699953, -0.07618452608585358, -0.026172349229454994, -0.012374261394143105, -0.03498948737978935, -0.04773576557636261, 0.08019322901964188, 0.027579287067055702, -0.0293961800634861, -0.006461743731051683, 0.05431654676795006, 0.06495147943496704, 0.04686278849840164, 0.002612846437841654, 0.06813852488994598, -0.04401630163192749, -0.031261757016181946, -0.037556201219558716, -0.11233818531036377, -0.03760237246751785, -0.009547202847898006, 0.05015910416841507, -0.05399138852953911, -0.0918000340461731, 0.0734790712594986, -0.009022953920066357, -0.0655684843659401, 0.045003492385149, 0.04137665405869484, -0.16596807539463043, 0.035673823207616806, 0.005719044245779514, 0.0012288617435842752, -0.042856547981500626, 0.029779689386487007, -0.06172267720103264, -0.016039498150348663, -0.025111697614192963, -0.04354841262102127, -0.03696604073047638, 0.10454040765762329, -0.0006728408043272793, -0.0007750947261229157, -0.014012090861797333, 0.044062450528144836, -0.05195820704102516, 0.06226710230112076, 0.036950912326574326, -0.04357413947582245, 0.020616872236132622, -0.023976940661668777, 0.06440369784832001, -0.048720262944698334, 0.053963109850883484, -0.0004311456286814064, -0.003562147496268153, -0.009598747827112675, 0.07556533068418503, 0.1296188235282898, -0.0063599152490496635, 0.03287589177489281, 0.007125414442270994, -0.033383309841156006, 0.01765204221010208, -0.011678232811391354, -0.004110041540116072, 0.03972887992858887, -0.13341093063354492, 0.08797667920589447, -0.017841460183262825, 0.07548286020755768, 0.0001730622461764142, 0.062327392399311066, 0.09577269107103348, 0.100235715508461, 0.06435282528400421, 0.0723910853266716, 0.0332568883895874, -0.02258886955678463, -0.038786109536886215, 0.06489888578653336, -0.0712597519159317, -4.768870454086027e-8, -0.02211568132042885, 0.017503313720226288, -0.07214420288801193, 0.045554786920547485, 0.020482636988162994, -0.05523485317826271, 0.007502431981265545, 0.0264911912381649, -0.028296321630477905, 0.04373679682612419, 0.014461816288530827, -0.03763023018836975, -0.0590529628098011, -0.025316108018159866, -0.028224635869264603, -0.003311224514618516, 0.029969943687319756, 0.01945042423903942, -0.0688742846250534, -0.061026304960250854, -0.0698249489068985, -0.02814561314880848, 0.028174297884106636, 0.043677281588315964, -0.003803179832175374, -0.05208908021450043, 0.012063334695994854, 0.032457705587148666, 0.0826873630285263, -0.001230575144290924, -0.03611402586102486, -0.032576002180576324, -0.033563535660505295, 0.060840900987386703, -0.10323750227689743, 0.018906865268945694, -0.06478017568588257, 0.003219316015020013, 0.017878416925668716, 0.13037653267383575, -0.014351744204759598, -0.02906045876443386, -0.03883323445916176, -0.004692248068749905, 0.007944176904857159, 0.012973224744200706, -0.004481267184019089, 0.04834311828017235, 0.03162812069058418, 0.027238493785262108, -0.05703454837203026, -0.007860971614718437, -0.009493479505181313, 0.04244647175073624, -0.010486230254173279, -0.062182676047086716, -0.016412368044257164, -0.077419213950634, -0.014529665932059288, 0.015676967799663544, 0.0003380531561560929, -0.013309616595506668, 0.009112623520195484, -0.020833855494856834 ]
0.143316
enforce the constraint. For finer control, you can specify topology spread constraints to distribute Pods across different topology domains - to achieve either high availability or cost-saving. This can also help on rolling update workloads and scaling out replicas smoothly. For more context, see the [Motivation](https://github.com/kubernetes/enhancements/tree/master/keps/sig-scheduling/895-pod-topology-spread#motivation) section of the enhancement proposal about Pod topology spread constraints. ## Known limitations - There's no guarantee that the constraints remain satisfied when Pods are removed. For example, scaling down a Deployment may result in imbalanced Pods distribution. You can use a tool such as the [Descheduler](https://github.com/kubernetes-sigs/descheduler) to rebalance the Pods distribution. - Pods matched on tainted nodes are respected. See [Issue 80921](https://github.com/kubernetes/kubernetes/issues/80921). - The scheduler doesn't have prior knowledge of all the zones or other topology domains that a cluster has. They are determined from the existing nodes in the cluster. This could lead to a problem in autoscaled clusters, when a node pool (or node group) is scaled to zero nodes, and you're expecting the cluster to scale up, because, in this case, those topology domains won't be considered until there is at least one node in them. You can work around this by using a Node autoscaler that is aware of Pod topology spread constraints and is also aware of the overall set of topology domains. - Pods that don't match their own labelSelector create "ghost pods". If a pod's labels don't match the `labelSelector` in its topology spread constraint, the pod won't count itself in spread calculations. This means: - Multiple such pods can just accumulate on the same topology (until matching pods are newly created/deleted) because those pod's schedule don't change a spreading calculation result. - The spreading constraint works in an unintended way, most likely not matching your expectations Ensure your pod's labels match the `labelSelector` in your spread constraints. Typically, a pod should match its own topology spread constraint selector. ## {{% heading "whatsnext" %}} - The blog article [Introducing PodTopologySpread](/blog/2020/05/introducing-podtopologyspread/) explains `maxSkew` in some detail, as well as covering some advanced usage examples. - Read the [scheduling](/docs/reference/kubernetes-api/workload-resources/pod-v1/#scheduling) section of the API reference for Pod.
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/topology-spread-constraints.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/topology-spread-constraints.md
[ 0.004872030112892389, 0.02087676152586937, 0.08620597422122955, 0.022191468626260757, -0.01986624114215374, -0.017599424347281456, -0.05077355355024338, -0.029956268146634102, 0.014444943517446518, 0.034334003925323486, -0.07101207971572876, -0.02688612975180149, 0.009194967336952686, -0.02516886405646801, 0.030769094824790955, -0.03411451354622841, 0.05257200449705124, 0.030909709632396698, -0.0559479296207428, -0.02291056700050831, -0.0039453753270208836, -0.04584226384758949, -0.021689139306545258, 0.07194793224334717, -0.07087385654449463, -0.028130540624260902, -0.0004549414443317801, -0.021187225356698036, 0.006352792959660292, -0.020311735570430756, -0.03337930142879486, 0.004138311371207237, -0.00240678945556283, -0.0023229881189763546, 0.0874204933643341, 0.05302216857671738, -0.06838969141244888, -0.04887973144650459, -0.042341478168964386, 0.007910097017884254, 0.06707894802093506, -0.046305082738399506, -0.10383688658475876, 0.01306656189262867, -0.054581090807914734, 0.025614893063902855, -0.04801260307431221, 0.03790131211280823, -0.045448314398527145, -0.06394106894731522, 0.07064700871706009, -0.11173427104949951, 0.05917514115571976, 0.032799284905195236, 0.058819595724344254, 0.02971702069044113, 0.06735718250274658, 0.010134835727512836, 0.11493214964866638, 0.02315276674926281, 0.05753818526864052, -0.0344308540225029, -0.012910110875964165, -0.037425506860017776, 0.008778238669037819, 0.015754854306578636, 0.06774598360061646, 0.04123876243829727, 0.010590939782559872, 0.05449724942445755, 0.08825086057186127, -0.003363272175192833, -0.02924250066280365, 0.004249447025358677, 0.004101922269910574, 0.051756374537944794, -0.015297281555831432, 0.029648900032043457, 0.021527709439396858, 0.0028852883260697126, 0.004765862599015236, 0.032174669206142426, 0.04601595178246498, -0.04812100529670715, -0.06818413734436035, -0.10600794851779938, -0.004253695718944073, -0.04224231839179993, 0.08042125403881073, -0.012492706067860126, 0.04410834610462189, 0.03974393010139465, 0.03248179331421852, -0.10325697809457779, 0.06753908842802048, -0.020615991204977036, -0.03554636240005493, -0.013185026124119759, 0.05010933801531792, 0.0012967976508662105, 0.06367111206054688, -0.015236292034387589, -0.005768666509538889, 0.010886997915804386, 0.09975125640630722, -0.036627426743507385, -0.038190778344869614, -0.04304732009768486, -0.005712126847356558, 0.020342331379652023, 0.08554525673389435, 0.07031360268592834, 0.036440443247556686, 0.024354299530386925, 0.0038545201532542706, 0.05337762460112572, 0.0705844834446907, -0.008162976242601871, -0.0001441154454369098, 0.0022294786758720875, -0.03447100147604942, -0.09937016665935516, 0.03333067521452904, -0.022137153893709183, -0.029734887182712555, 0.05538183078169823, -0.03656851500272751, 2.4972874224700552e-33, -0.024434464052319527, -0.061001162976026535, -0.002645171480253339, -0.10996710509061813, 0.05003344267606735, -0.06457280367612839, -0.0383196696639061, -0.026938945055007935, -0.05098157376050949, -0.08747120946645737, -0.04434219002723694, 0.06511220335960388, -0.043395865708589554, -0.05264972150325775, 0.06255562603473663, -0.06695005297660828, -0.024963878095149994, 0.07672563195228577, 0.11573415249586105, -0.014480509795248508, 0.004792550578713417, -0.13476887345314026, -0.09469828009605408, 0.026197606697678566, -0.0044248066842556, -0.05076202377676964, -0.012714982032775879, -0.11824216693639755, -0.01598832756280899, 0.02777605690062046, -0.05112266167998314, 0.03335624188184738, 0.060583729296922684, 0.09243369847536087, -0.12538012862205505, -0.03105783648788929, -0.0714365616440773, 0.018506838008761406, -0.07484022527933121, -0.021068600937724113, 0.053024619817733765, 0.019398067146539688, 0.03427806869149208, -0.04092448204755783, 0.09410984069108963, 0.035265516489744186, 0.07200077921152115, -0.0555802583694458, -0.011197030544281006, -0.036141034215688705, 0.07360754907131195, -0.02065873146057129, 0.025023281574249268, -0.10427812486886978, 0.014770342037081718, -0.048781152814626694, 0.09418928623199463, -0.08043433725833893, 0.015915261581540108, 0.06472326070070267, 0.004979811608791351, -0.07199855148792267, -0.017427410930395126, 0.03856026753783226, 0.10187949240207672, 0.02524394728243351, -0.030278991907835007, 0.011266455054283142, -0.01447293907403946, 0.04460485279560089, -0.05361096188426018, 0.02433846704661846, -0.07702232897281647, -0.007274081464856863, -0.036141637712717056, -0.07381629198789597, 0.06412328779697418, 0.10453803837299347, -0.10259616374969482, 0.0399208627641201, -0.0016359906876459718, 0.04354829341173172, -0.03771001473069191, 0.02920978143811226, -0.014142965897917747, -0.0774311050772667, 0.022434120997786522, 0.0634564533829689, -0.0848936140537262, 0.03305777162313461, 0.03522214666008949, -0.049264684319496155, -0.038352932780981064, 0.06438685953617096, -0.0334295928478241, -1.399724673687439e-33, 0.06703096628189087, 0.009546794928610325, 0.03512740880250931, 0.04046769067645073, 0.030443690717220306, 0.02799321338534355, -0.010692409239709377, 0.01708647608757019, 0.02570183575153351, -0.07303456217050552, -0.07652033865451813, -0.05415212735533714, 0.056058261543512344, 0.026798950508236885, -0.12667539715766907, -0.04780038818717003, -0.04864482581615448, -0.02790251187980175, -0.017499929293990135, 0.024354081600904465, 0.04169003292918205, -0.051298946142196655, 0.013915427960455418, 0.023805545642971992, 0.09126949310302734, 0.007246055640280247, -0.059506289660930634, 0.045911796391010284, -0.01177606638520956, -0.0011945848818868399, -0.03774311766028404, -0.09086339920759201, 0.020764140412211418, 0.00004557593274512328, 0.03893015533685684, -0.019129857420921326, -0.043253153562545776, 0.13896431028842926, 0.031046485528349876, 0.05622110143303871, 0.03244870901107788, -0.003265498671680689, -0.10709650069475174, 0.0007247427711263299, -0.001620216411538422, 0.026891088113188744, 0.002474541310220957, -0.015721460804343224, -0.05902329832315445, -0.045621298253536224, -0.04283004626631737, 0.0063461363315582275, -0.040976084768772125, 0.08656694740056992, -0.05943431705236435, 0.013815953396260738, 0.0077096992172300816, 0.05985391139984131, -0.05396600067615509, 0.05326555296778679, 0.05026357248425484, -0.060315340757369995, 0.055709514766931534, 0.008105413988232613, 0.03293422609567642, -0.03719450533390045, 0.07679138332605362, 0.004578753840178251, -0.023513752967119217, 0.010173306800425053, 0.03451845049858093, 0.0021130191162228584, 0.035371024161577225, 0.048983290791511536, -0.028353754431009293, -0.046666014939546585, 0.03472694754600525, -0.01803448423743248, 0.07823484390974045, 0.02917637676000595, -0.10472112149000168, 0.08104511350393295, -0.007364210207015276, 0.02266762964427471, -0.007922879420220852, 0.07907263189554214, 0.10540412366390228, 0.06937029957771301, 0.10454416275024414, 0.10152705758810043, 0.004028120078146458, -0.047099918127059937, -0.034821100533008575, 0.05152837932109833, -0.0448073111474514, -4.9161346993287225e-8, 0.04171189293265343, 0.006100231781601906, -0.03716303035616875, 0.03522162511944771, 0.06535067409276962, -0.0595427080988884, 0.04188520833849907, -0.02098971977829933, -0.009590798057615757, 0.0684400200843811, 0.0006324904970824718, 0.04330397769808769, -0.023449325934052467, 0.023901596665382385, 0.0349423848092556, -0.014314054511487484, 0.030586889013648033, 0.045398976653814316, -0.034518465399742126, -0.05231161415576935, -0.06205398589372635, -0.007701902184635401, 0.01900182105600834, 0.0007784441113471985, 0.006379421800374985, 0.019282590597867966, 0.04432704672217369, 0.028166506439447403, 0.10805494338274002, 0.030934898182749748, -0.04557656869292259, -0.0454227440059185, -0.05639657750725746, 0.042736198753118515, -0.051383815705776215, 0.05102747678756714, -0.17434263229370117, 0.02085736021399498, -0.003841973841190338, 0.061559323221445084, 0.004074545577168465, -0.018871430307626724, -0.047674670815467834, -0.013790657743811607, 0.014986991882324219, 0.07539766281843185, -0.026236779987812042, 0.09044325351715088, -0.004740184638649225, 0.03927678242325783, -0.024612395092844963, -0.028388597071170807, 0.02963210642337799, 0.06987152993679047, -0.02124367095530033, -0.03824097290635109, 0.0038857157342135906, -0.044551871716976166, 0.04439625144004822, -0.007846326567232609, 0.0043552895076572895, -0.025510231032967567, -0.02923654019832611, -0.015104551799595356 ]
0.096764
In Kubernetes, \_scheduling\_ refers to making sure that {{< glossary\_tooltip text="Pods" term\_id="pod" >}} are matched to {{< glossary\_tooltip text="Nodes" term\_id="node" >}} so that {{< glossary\_tooltip term\_id="kubelet" >}} can run them. ## Scheduling overview {#scheduling} A scheduler watches for newly created Pods that have no Node assigned. For every Pod that the scheduler discovers, the scheduler becomes responsible for finding the best Node for that Pod to run on. The scheduler reaches this placement decision taking into account the scheduling principles described below. If you want to understand why Pods are placed onto a particular Node, or if you're planning to implement a custom scheduler yourself, this page will help you learn about scheduling. ## kube-scheduler [kube-scheduler](/docs/reference/command-line-tools-reference/kube-scheduler/) is the default scheduler for Kubernetes and runs as part of the {{< glossary\_tooltip text="control plane" term\_id="control-plane" >}}. kube-scheduler is designed so that, if you want and need to, you can write your own scheduling component and use that instead. Kube-scheduler selects an optimal node to run newly created or not yet scheduled (unscheduled) pods. Since containers in pods - and pods themselves - can have different requirements, the scheduler filters out any nodes that don't meet a Pod's specific scheduling needs. Alternatively, the API lets you specify a node for a Pod when you create it, but this is unusual and is only done in special cases. In a cluster, Nodes that meet the scheduling requirements for a Pod are called \_feasible\_ nodes. If none of the nodes are suitable, the pod remains unscheduled until the scheduler is able to place it. The scheduler finds feasible Nodes for a Pod and then runs a set of functions to score the feasible Nodes and picks a Node with the highest score among the feasible ones to run the Pod. The scheduler then notifies the API server about this decision in a process called \_binding\_. Factors that need to be taken into account for scheduling decisions include individual and collective resource requirements, hardware / software / policy constraints, affinity and anti-affinity specifications, data locality, inter-workload interference, and so on. ### Node selection in kube-scheduler {#kube-scheduler-implementation} kube-scheduler selects a node for the pod in a 2-step operation: 1. Filtering 1. Scoring The \_filtering\_ step finds the set of Nodes where it's feasible to schedule the Pod. For example, the PodFitsResources filter checks whether a candidate Node has enough available resources to meet a Pod's specific resource requests. After this step, the node list contains any suitable Nodes; often, there will be more than one. If the list is empty, that Pod isn't (yet) schedulable. In the \_scoring\_ step, the scheduler ranks the remaining nodes to choose the most suitable Pod placement. The scheduler assigns a score to each Node that survived filtering, basing this score on the active scoring rules. Finally, kube-scheduler assigns the Pod to the Node with the highest ranking. If there is more than one node with equal scores, kube-scheduler selects one of these at random. There are two supported ways to configure the filtering and scoring behavior of the scheduler: 1. [Scheduling Policies](/docs/reference/scheduling/policies) allow you to configure \_Predicates\_ for filtering and \_Priorities\_ for scoring. 1. [Scheduling Profiles](/docs/reference/scheduling/config/#profiles) allow you to configure Plugins that implement different scheduling stages, including: `QueueSort`, `Filter`, `Score`, `Bind`, `Reserve`, `Permit`, and others. You can also configure the kube-scheduler to run different profiles. ## {{% heading "whatsnext" %}} \* Read about [scheduler performance tuning](/docs/concepts/scheduling-eviction/scheduler-perf-tuning/) \* Read about [Pod topology spread constraints](/docs/concepts/scheduling-eviction/topology-spread-constraints/) \* Read the [reference documentation](/docs/reference/command-line-tools-reference/kube-scheduler/) for kube-scheduler \* Read the [kube-scheduler config (v1)](/docs/reference/config-api/kube-scheduler-config.v1/) reference \* Learn about [configuring multiple schedulers](/docs/tasks/extend-kubernetes/configure-multiple-schedulers/) \* Learn about [topology management policies](/docs/tasks/administer-cluster/topology-manager/) \* Learn
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/kube-scheduler.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/kube-scheduler.md
[ -0.03705579787492752, 0.005947981961071491, 0.08358725160360336, 0.038085952401161194, -0.0011488159652799368, -0.026210058480501175, 0.05028757452964783, -0.09043759852647781, 0.11026977747678757, 0.0003803152358159423, -0.027926448732614517, -0.04003624618053436, -0.017012862488627434, -0.06843621283769608, -0.026243915781378746, -0.026230527088046074, 0.038343314081430435, -0.08379046618938446, -0.02745029143989086, -0.08554849028587341, 0.06715234369039536, 0.013804260641336441, 0.03770482540130615, 0.018073441460728645, -0.0718865692615509, -0.0004978925571776927, -0.06720229983329773, 0.00722920848056674, 0.07077078521251678, 0.022409798577427864, -0.03184811770915985, 0.022397292777895927, 0.015158592723309994, 0.07482364773750305, 0.056536585092544556, 0.0815945714712143, -0.01252217311412096, -0.03265294060111046, -0.0453529953956604, 0.03836001828312874, 0.06198874115943909, -0.056800320744514465, -0.10012418776750565, -0.01076644379645586, -0.061957839876413345, 0.0508529432117939, -0.06747739017009735, -0.04264809936285019, -0.05753965675830841, -0.00867544300854206, 0.0045201960019767284, -0.1487099826335907, 0.01123428251594305, 0.030040426179766655, 0.06435317546129227, 0.1268540769815445, -0.018671631813049316, -0.019403383135795593, 0.12867248058319092, 0.008315819315612316, 0.017941512167453766, -0.016936730593442917, -0.030885139480233192, 0.03065398894250393, 0.030864251777529716, -0.06095997616648674, 0.0020716392900794744, 0.042517442256212234, 0.019903061911463737, -0.04956410452723503, 0.047228291630744934, -0.015529844909906387, 0.00490862550213933, 0.03132188320159912, -0.009780787862837315, 0.005985287018120289, 0.002065670443698764, 0.05813908949494362, -0.02605626918375492, -0.10450071841478348, -0.029279286041855812, 0.04498440399765968, 0.08552837371826172, 0.06240019574761391, -0.04356139525771141, -0.056914232671260834, 0.02990434132516384, -0.024409692734479904, 0.08507267385721207, 0.057811323553323746, 0.015594176016747952, -0.05616874247789383, 0.004211186431348324, -0.0902174711227417, 0.06656640022993088, 0.05806716904044151, 0.041995830833911896, 0.01295878179371357, 0.04345443844795227, 0.006312002893537283, 0.04362030699849129, -0.0571414977312088, 0.014838806353509426, 0.003856342751532793, -0.003674280596897006, -0.03771001845598221, -0.13183628022670746, -0.06545213609933853, 0.002614568453282118, -0.006375263445079327, 0.021201128140091896, 0.06106514111161232, -0.00473958533257246, 0.019131433218717575, -0.05210543051362038, -0.00001592952867213171, -0.00682414136826992, 0.005106180440634489, 0.05843252316117287, 0.08813801407814026, 0.001009264844469726, -0.05931316688656807, -0.01011659111827612, -0.048680227249860764, -0.0683027058839798, 0.03691946715116501, -0.008604324422776699, 2.526088687104132e-33, 0.06056952476501465, -0.10750515758991241, -0.041059914976358414, -0.07286036014556885, -0.0025034528225660324, -0.06510525941848755, -0.07417263090610504, 0.022286446765065193, -0.025286203250288963, -0.03675014525651932, -0.023131059482693672, 0.06110614538192749, -0.022442389279603958, 0.03193424269556999, 0.040346257388591766, -0.013135002925992012, 0.010642259381711483, 0.07452484220266342, 0.03459712117910385, -0.04394342750310898, 0.03408260643482208, -0.062108077108860016, -0.08679553121328354, -0.006708428263664246, 0.06357435137033463, 0.0018421243876218796, -0.020856885239481926, -0.1354212462902069, -0.0015779078239575028, 0.02347608096897602, -0.024960044771432877, 0.003314250847324729, 0.061770565807819366, 0.05913259834051132, -0.09464731812477112, 0.023343201726675034, -0.048242196440696716, -0.02172468788921833, -0.03211546316742897, -0.0730300173163414, 0.03193496912717819, -0.018572041764855385, -0.011379596777260303, -0.06833203881978989, 0.062398072332143784, 0.01862100325524807, 0.01636059582233429, -0.06773869693279266, 0.06595879048109055, 0.06077643856406212, 0.03323255106806755, -0.024349166080355644, 0.08639488369226456, -0.011293446645140648, 0.0326092392206192, 0.07002950459718704, 0.07488566637039185, -0.09665213525295258, -0.0337175577878952, 0.022963320836424828, -0.040252603590488434, 0.03971974924206734, -0.007117303553968668, 0.028358176350593567, 0.029153041541576385, 0.0285388994961977, 0.003346009412780404, 0.033469125628471375, 0.05321553349494934, 0.020657794550061226, -0.05979938805103302, 0.035238780081272125, 0.017466917634010315, 0.06455802172422409, 0.035535309463739395, -0.011833194643259048, -0.01994861103594303, -0.013599911704659462, -0.13896144926548004, 0.025150828063488007, 0.023771895095705986, -0.014110955409705639, -0.038778532296419144, 0.03501017764210701, -0.009290806017816067, -0.023353178054094315, 0.005541989579796791, -0.03142760321497917, -0.031780824065208435, 0.028892124071717262, 0.027166396379470825, -0.047266677021980286, -0.15321363508701324, 0.06644988805055618, -0.113315649330616, -5.3255022186355086e-33, 0.1461898386478424, -0.04461824893951416, 0.037561576813459396, 0.03203558176755905, 0.0027865422889590263, -0.027258221060037613, -0.022182980552315712, -0.03441883996129036, 0.0345483273267746, 0.0029352076817303896, -0.059107910841703415, 0.01859288662672043, 0.022787872701883316, 0.07346919178962708, -0.03856249526143074, 0.016902050003409386, -0.08415509760379791, -0.02545216865837574, -0.05614849179983139, 0.022658687084913254, 0.008152943104505539, -0.00706468615680933, 0.0089114373549819, -0.012404751032590866, 0.023745829239487648, -0.030631685629487038, 0.07395665347576141, 0.02963719516992569, -0.04445803910493851, -0.01927853189408779, -0.027927912771701813, -0.08413700759410858, -0.03179224580526352, -0.02045792154967785, 0.062046781182289124, -0.013750918209552765, -0.04239850491285324, 0.018316341564059258, 0.0004304689064156264, 0.04498889297246933, 0.1144033670425415, 0.030528467148542404, -0.05196205899119377, -0.08012739568948746, -0.04340778663754463, 0.05571076646447182, 0.008210436441004276, 0.0032936742063611746, -0.009280325844883919, -0.1157788559794426, 0.014784105122089386, -0.023998284712433815, 0.005697391461580992, 0.06770894676446915, -0.04662369191646576, 0.02713918313384056, 0.008870686404407024, -0.01956791989505291, -0.043843355029821396, 0.003499712096527219, 0.06225208193063736, -0.06469396501779556, 0.043571896851062775, 0.05263473838567734, -0.04921757057309151, -0.07587108761072159, 0.00418698787689209, -0.026999203488230705, -0.011153759434819221, -0.04663228988647461, -0.016215138137340546, -0.008942163549363613, 0.029332520440220833, -0.02292524091899395, -0.05230967700481415, 0.03155893087387085, 0.05906335636973381, -0.07138419896364212, -0.01008796226233244, -0.0161599088460207, -0.07444070279598236, 0.07283195108175278, 0.0013377007562667131, 0.020228086039423943, -0.04585485905408859, 0.04918771982192993, 0.0332895964384079, 0.11420715600252151, 0.03127177059650421, 0.028485342860221863, 0.04401256889104843, -0.0173423383384943, -0.024150889366865158, 0.16140592098236084, -0.03901566192507744, -5.380130119192472e-8, 0.0020909735467284918, 0.09323414415121078, -0.026818055659532547, 0.019194243475794792, 0.05005515366792679, -0.06855881959199905, 0.0876995101571083, -0.020880842581391335, -0.01304125040769577, 0.027480540797114372, 0.06434664130210876, 0.020757708698511124, -0.05485071614384651, 0.041861392557621, 0.05107300728559494, 0.03624153509736061, -0.04683526232838631, -0.03031761571764946, 0.004116727504879236, -0.05938910320401192, -0.025118453428149223, -0.03865712881088257, 0.005113346967846155, 0.024585673585534096, -0.03548991680145264, 0.02230302058160305, 0.03661266714334488, 0.08022171258926392, 0.013109997846186161, 0.04381484538316727, -0.019500084221363068, 0.059839460998773575, -0.10060664266347885, 0.05477263033390045, -0.017962832003831863, 0.005003106314688921, -0.19531388580799103, -0.005588917527347803, 0.09128619730472565, 0.07063010334968567, 0.020810354501008987, -0.05558548495173454, -0.07733535021543503, 0.007411565165966749, 0.025874285027384758, 0.05796702951192856, -0.02806846983730793, 0.06452693790197372, -0.036402832716703415, -0.02950432151556015, -0.07341044396162033, -0.029102062806487083, 0.007326291408389807, 0.04138520359992981, 0.0012457129778340459, 0.0016676457598805428, 0.0529174767434597, -0.031117606908082962, 0.009438836947083473, -0.033986132591962814, -0.0400865413248539, 0.013987437821924686, -0.02506115846335888, -0.006852040067315102 ]
0.1452
to run different profiles. ## {{% heading "whatsnext" %}} \* Read about [scheduler performance tuning](/docs/concepts/scheduling-eviction/scheduler-perf-tuning/) \* Read about [Pod topology spread constraints](/docs/concepts/scheduling-eviction/topology-spread-constraints/) \* Read the [reference documentation](/docs/reference/command-line-tools-reference/kube-scheduler/) for kube-scheduler \* Read the [kube-scheduler config (v1)](/docs/reference/config-api/kube-scheduler-config.v1/) reference \* Learn about [configuring multiple schedulers](/docs/tasks/extend-kubernetes/configure-multiple-schedulers/) \* Learn about [topology management policies](/docs/tasks/administer-cluster/topology-manager/) \* Learn about [Pod Overhead](/docs/concepts/scheduling-eviction/pod-overhead/) \* Learn about scheduling of Pods that use volumes in: \* [Volume Topology Support](/docs/concepts/storage/storage-classes/#volume-binding-mode) \* [Storage Capacity Tracking](/docs/concepts/storage/storage-capacity/) \* [Node-specific Volume Limits](/docs/concepts/storage/storage-limits/)
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/kube-scheduler.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/kube-scheduler.md
[ 0.0325201191008091, -0.03449631109833717, -0.003009881591424346, 0.018068069592118263, -0.035686567425727844, 0.0059224627912044525, -0.04792864993214607, 0.008979344740509987, -0.03853040188550949, -0.04352450743317604, -0.05875514820218086, -0.07184648513793945, 0.030943971127271652, -0.03018924593925476, 0.04961531609296799, -0.01808629371225834, 0.0034488048404455185, 0.002170143648982048, -0.023954972624778748, -0.055763889104127884, 0.049730971455574036, -0.03814953938126564, 0.034736741334199905, -0.02174188382923603, -0.105265311896801, -0.027241023257374763, -0.011695929802954197, -0.016841599717736244, -0.06074388325214386, -0.022128814831376076, 0.006814376916736364, -0.0067816078662872314, 0.016989165917038918, -0.008734126575291157, 0.052791330963373184, 0.06782493740320206, 0.004655009135603905, -0.03552410751581192, -0.057871703058481216, 0.022021351382136345, 0.0564279668033123, -0.04907110705971718, -0.08634553849697113, -0.043835654854774475, -0.047046907246112823, 0.004545676521956921, -0.08248662203550339, -0.019840406253933907, -0.04571101814508438, -0.05591949075460434, 0.029436379671096802, -0.1058436706662178, 0.005563379731029272, -0.0006511106621474028, 0.09699425846338272, 0.08751508593559265, 0.010588367469608784, 0.013219879008829594, 0.11297647655010223, -0.01799563691020012, -0.006598344072699547, -0.02523193135857582, -0.03558225929737091, 0.002360397716984153, -0.01199049036949873, -0.016693994402885437, -0.005998470354825258, 0.04575864598155022, 0.007114664185792208, -0.0135426614433527, -0.025530623272061348, -0.011882063932716846, -0.05075050890445709, -0.042895082384347916, 0.02298593893647194, 0.024910064414143562, -0.03463371843099594, 0.09549582004547119, -0.04652199149131775, -0.1262942999601364, -0.042635973542928696, 0.011101741343736649, 0.016802113503217697, -0.04199489951133728, -0.04765786603093147, -0.024004284292459488, 0.02498287707567215, -0.0781741663813591, 0.05977829918265343, 0.05673491582274437, 0.10080402344465256, 0.006878043990582228, 0.010425510816276073, -0.11942578107118607, 0.0406222864985466, 0.02489793486893177, -0.06347273290157318, 0.022179679945111275, 0.10111197084188461, -0.004484182223677635, -0.005170383024960756, -0.06539374589920044, 0.0533481240272522, 0.1161346510052681, 0.056956447660923004, -0.02431461401283741, -0.04581748694181442, -0.010698952712118626, -0.027752140536904335, 0.00020308724197093397, 0.057779766619205475, 0.07244361191987991, 0.017355753108859062, 0.01893361285328865, 0.05820735916495323, 0.06297117471694946, 0.05343329533934593, -0.015051890164613724, 0.05327165871858597, 0.11115387827157974, 0.0027074709068983793, -0.1099272221326828, 0.026394641026854515, -0.02624872513115406, -0.048284634947776794, 0.018275341019034386, -0.022996608167886734, 1.6357982858081175e-33, 0.026984602212905884, -0.07304707169532776, 0.012516113929450512, -0.041826825588941574, 0.04092526435852051, -0.0505906343460083, -0.05326065421104431, 0.015297453850507736, 0.01653302274644375, -0.05433345213532448, -0.015962352976202965, 0.06434739381074905, -0.020220696926116943, 0.019166497513651848, 0.009889155626296997, -0.040277283638715744, 0.002058745129033923, 0.07877743244171143, 0.0824904516339302, -0.021655529737472534, 0.06260132044553757, -0.007582309655845165, -0.12069576233625412, 0.021717848256230354, 0.027979109436273575, 0.01253877580165863, 0.09334695339202881, -0.09554893523454666, -0.060826290398836136, 0.0287740807980299, 0.026709983125329018, -0.0068834200501441956, -0.0012913501122966409, 0.10078835487365723, -0.08652160316705704, 0.024070655927062035, -0.016917994245886803, 0.08281684666872025, -0.09019041061401367, -0.038795243948698044, 0.004485690966248512, -0.00872889906167984, 0.014194169081747532, -0.07751842588186264, 0.016292603686451912, -0.005372544284909964, 0.07713575661182404, -0.027178704738616943, 0.054224103689193726, 0.008509200997650623, 0.02225944958627224, -0.06262348592281342, 0.07665248215198517, -0.038032662123441696, 0.0647570788860321, -0.011657899245619774, 0.06759589165449142, -0.05633227154612541, 0.0002523711009416729, 0.04780464991927147, -0.03408641740679741, 0.0012354172067716718, -0.04287393018603325, 0.01888025924563408, 0.038009002804756165, 0.004360378719866276, -0.03977915272116661, -0.02851085551083088, 0.02927303873002529, 0.03627318516373634, -0.06566324830055237, 0.030028479173779488, -0.0031820007134228945, 0.045075759291648865, -0.003864230355247855, -0.04146319627761841, 0.02377096377313137, 0.04898548126220703, -0.18563203513622284, 0.0529768168926239, 0.013608939945697784, 0.09356720000505447, -0.004986985120922327, -0.025413233786821365, -0.03323936089873314, -0.065476194024086, 0.011207502335309982, 0.04515258967876434, -0.030397506430745125, 0.029365140944719315, 0.07825066894292831, -0.03319212421774864, -0.05182249844074249, 0.07831352204084396, -0.0831686481833458, -1.9490317144587555e-33, 0.07429210096597672, -0.003850665409117937, 0.07326371222734451, 0.021087560802698135, 0.04276914522051811, 0.039462171494960785, 0.0431412011384964, 0.01787160150706768, 0.020384320989251137, -0.05686013028025627, -0.09730412811040878, -0.05267036706209183, 0.07158263027667999, -0.02089565433561802, -0.05692429840564728, 0.013397096656262875, -0.037760570645332336, -0.009156215004622936, -0.038186896592378616, 0.032352201640605927, -0.03929261118173599, -0.0018643350340425968, -0.04139535874128342, 0.004146866500377655, 0.02986191399395466, 0.024681566283106804, 0.01441384106874466, 0.04564615711569786, -0.06738529354333878, 0.032925669103860855, -0.021776532754302025, -0.1178431510925293, 0.006802686955779791, 0.0689198225736618, 0.0020643635652959347, -0.03412891551852226, -0.059057556092739105, 0.09565149247646332, 0.011993253603577614, 0.04558504372835159, 0.10159022361040115, 0.004475181456655264, -0.04517579451203346, -0.028195209801197052, -0.009731954894959927, 0.06103716790676117, 0.017731579020619392, -0.06557631492614746, -0.07357405871152878, -0.08777250349521637, -0.022087331861257553, -0.019560521468520164, -0.027392609044909477, 0.07555094361305237, -0.018744008615612984, 0.008892502635717392, 0.06449788808822632, 0.030101856216788292, -0.020618906244635582, 0.041733309626579285, 0.09543871879577637, -0.0780567079782486, 0.12299960106611252, 0.07043631374835968, -0.029949713498353958, -0.10564292967319489, 0.012847084552049637, -0.053058087825775146, -0.08466482907533646, 0.012107251212000847, -0.08063387870788574, -0.03443235158920288, 0.030903784558176994, 0.019321506842970848, -0.03187210112810135, -0.03873070329427719, 0.021889451891183853, -0.01573091372847557, -0.02913696877658367, 0.08772991597652435, -0.06958988308906555, 0.04190885275602341, -0.06671830266714096, -0.008277762681245804, -0.059726472944021225, 0.11341053992509842, 0.0935230553150177, 0.12358935177326202, 0.07222583889961243, 0.032316792756319046, 0.03426653519272804, -0.019208122044801712, -0.044222887605428696, 0.11003687977790833, -0.015940306708216667, -4.6805119779946835e-8, 0.06944151967763901, -0.03863748162984848, -0.01055560726672411, 0.04051818698644638, 0.019844822585582733, -0.025086529552936554, 0.021112695336341858, -0.006742038298398256, -0.006947151850908995, 0.04097337648272514, 0.01881335861980915, 0.0745231956243515, -0.036543942987918854, 0.026803581044077873, 0.04128590226173401, -0.03264826908707619, 0.03190647438168526, 0.03556505963206291, 0.01834823749959469, -0.01748736761510372, -0.046984609216451645, -0.000566442555282265, 0.007949906401336193, -0.03937406837940216, 0.024456609040498734, 0.06403722614049911, 0.021464159712195396, 0.029801413416862488, 0.06550173461437225, 0.021473398432135582, -0.021118808537721634, 0.008588939905166626, -0.08287350833415985, -0.03530734032392502, -0.048907626420259476, 0.01828690990805626, -0.135610893368721, 0.05171733349561691, 0.02595416270196438, 0.12082896381616592, 0.09085440635681152, -0.03338859975337982, -0.0755675733089447, 0.024806667119264603, 0.027682529762387276, 0.06575028598308563, -0.04628658667206764, 0.04435117915272713, -0.015219432301819324, 0.009546599350869656, -0.050537943840026855, -0.03601710498332977, 0.040465112775564194, 0.024267295375466347, -0.0061884247697889805, -0.014110487885773182, 0.016386305913329124, -0.07270504534244537, 0.03180358558893204, -0.014796179719269276, -0.05282850190997124, -0.03306897357106209, -0.027714531868696213, 0.005464417394250631 ]
0.111926
In Kubernetes, scheduling refers to making sure that {{}} are matched to {{}} so that the {{}} can run them. Preemption is the process of terminating Pods with lower {{}} so that Pods with higher Priority can schedule on Nodes. Eviction is the process of terminating one or more Pods on Nodes. ## Scheduling \* [Kubernetes Scheduler](/docs/concepts/scheduling-eviction/kube-scheduler/) \* [Assigning Pods to Nodes](/docs/concepts/scheduling-eviction/assign-pod-node/) \* [Pod Overhead](/docs/concepts/scheduling-eviction/pod-overhead/) \* [Pod Topology Spread Constraints](/docs/concepts/scheduling-eviction/topology-spread-constraints/) \* [Taints and Tolerations](/docs/concepts/scheduling-eviction/taint-and-toleration/) \* [Scheduling Framework](/docs/concepts/scheduling-eviction/scheduling-framework) \* [Dynamic Resource Allocation](/docs/concepts/scheduling-eviction/dynamic-resource-allocation) \* [Scheduler Performance Tuning](/docs/concepts/scheduling-eviction/scheduler-perf-tuning/) \* [Resource Bin Packing for Extended Resources](/docs/concepts/scheduling-eviction/resource-bin-packing/) \* [Pod Scheduling Readiness](/docs/concepts/scheduling-eviction/pod-scheduling-readiness/) \* [Gang Scheduling](/docs/concepts/scheduling-eviction/gang-scheduling/) \* [Descheduler](https://github.com/kubernetes-sigs/descheduler#descheduler-for-kubernetes) \* [Node Declared Features](/docs/concepts/scheduling-eviction/node-declared-features/) ## Pod Disruption {{}} \* [Pod Priority and Preemption](/docs/concepts/scheduling-eviction/pod-priority-preemption/) \* [Node-pressure Eviction](/docs/concepts/scheduling-eviction/node-pressure-eviction/) \* [API-initiated Eviction](/docs/concepts/scheduling-eviction/api-eviction/)
null
./vendor/kubernetes/content/en/docs/concepts/scheduling-eviction/_index.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/scheduling-eviction/_index.md
[ 0.006016117986291647, 0.04713677987456322, 0.05213212966918945, 0.04267677664756775, -0.0024006159510463476, -0.011294948868453503, -0.012132707051932812, -0.04452333599328995, 0.04087177291512489, 0.038975365459918976, 0.0024270135909318924, 0.012834815308451653, -0.04078572615981102, -0.032346248626708984, -0.00834403932094574, -0.0013623236445710063, 0.07159353792667389, -0.023914504796266556, -0.056064423173666, -0.022983761504292488, 0.09071766585111618, -0.010364343412220478, -0.040589746087789536, -0.023119427263736725, -0.04006754234433174, -0.027263328433036804, -0.08100850135087967, -0.023759422823786736, 0.07784067839384079, 0.0290389321744442, -0.07043205946683884, -0.021544329822063446, 0.10400303453207016, 0.004559491761028767, 0.020465344190597534, 0.1313423216342926, 0.0018873329972848296, -0.10605600476264954, -0.027075259014964104, 0.05118827521800995, -0.014037521556019783, -0.0441911481320858, -0.11867868155241013, -0.013152195140719414, -0.05460274592041969, 0.05387205258011818, -0.041837334632873535, -0.029117275029420853, -0.09421519935131073, -0.05331198871135712, 0.0059553468599915504, -0.05941379815340042, 0.04567728191614151, 0.055070910602808, 0.03984156250953674, 0.07477233558893204, 0.027809998020529747, -0.008497790433466434, 0.10032761842012405, 0.00014589955389965326, 0.019959736615419388, -0.018771465867757797, -0.048061393201351166, 0.02838815376162529, 0.062449611723423004, -0.06432564556598663, 0.019410958513617516, 0.040114980190992355, 0.0348055437207222, -0.02870526723563671, 0.06176752597093582, -0.03428821265697479, -0.022441985085606575, 0.029940390959382057, 0.011899854056537151, 0.03138137608766556, 0.029263461008667946, 0.10132597386837006, -0.02680012583732605, -0.09459171444177628, -0.012158228084445, 0.009613734669983387, 0.015195412561297417, -0.08099720627069473, -0.05805671587586403, -0.013153715059161186, -0.026554280892014503, -0.011603636667132378, 0.0856999084353447, 0.07530277222394943, 0.04812483489513397, -0.008377185091376305, 0.00862108077853918, -0.047247301787137985, 0.07258904725313187, 0.010795945301651955, 0.0038310224190354347, -0.005670798011124134, 0.011025032959878445, 0.022240061312913895, -0.004968305584043264, -0.024471167474985123, -0.04765377193689346, 0.035956256091594696, 0.06387915462255478, -0.07226096093654633, -0.06712604314088821, -0.022482747212052345, -0.01735781878232956, 0.02335355430841446, 0.038912419229745865, 0.007462865673005581, 0.0008108296315185726, 0.014578311704099178, -0.045572973787784576, 0.07004076987504959, 0.011877133511006832, -0.015171085484325886, 0.08981585502624512, 0.05817001312971115, 0.018095284700393677, -0.0802997499704361, 0.0036650304682552814, -0.023989597335457802, -0.032973408699035645, -0.03262798488140106, -0.018925435841083527, 2.161223873145533e-33, 0.022858876734972, -0.11825765669345856, -0.027606133371591568, -0.08025003969669342, 0.056558821350336075, -0.09870482236146927, -0.03971796855330467, -0.020883386954665184, -0.008566660806536674, -0.03045370802283287, -0.04894697666168213, 0.05559119954705238, -0.00022802225430496037, 0.008723924867808819, 0.008523808792233467, -0.08686933666467667, 0.008725613355636597, 0.029105084016919136, 0.08753890544176102, -0.043222833424806595, 0.043775707483291626, -0.07274512946605682, -0.07134779542684555, 0.014871328137814999, 0.02260582149028778, 0.0004485163080971688, 0.0385483019053936, -0.1793382614850998, -0.0014561460120603442, 0.03999485820531845, -0.04749317467212677, 0.014754383824765682, 0.038124386221170425, 0.05442691594362259, -0.12697851657867432, 0.03795056790113449, -0.028903111815452576, 0.0004090005240868777, -0.06033819168806076, -0.04916727542877197, 0.0005497032543644309, -0.013489092700183392, -0.007803529500961304, -0.07305450737476349, 0.07635867595672607, -0.0693114697933197, 0.05057831481099129, -0.06198980659246445, 0.034746862947940826, 0.07959616929292679, 0.012858175672590733, -0.056065045297145844, 0.08158379048109055, -0.05763828009366989, -0.019261160865426064, 0.007159159518778324, 0.11856813728809357, -0.012059788219630718, -0.0486106351017952, 0.08998990058898926, -0.04964630305767059, 0.027149785310029984, 0.006167214829474688, 0.007978911511600018, 0.04943284019827843, -0.017669685184955597, -0.0316772498190403, 0.008135433308780193, 0.07359369844198227, 0.03321157768368721, -0.07634670287370682, 0.0021180633921176195, 0.045097626745700836, 0.08737542480230331, -0.05276402831077576, 0.008978337049484253, 0.006486901547759771, 0.004151393659412861, -0.12913168966770172, 0.021024560555815697, -0.042321790009737015, 0.050481896847486496, -0.03126022592186928, 0.008261490613222122, -0.0506114587187767, -0.038258686661720276, 0.009322404861450195, 0.02210482396185398, 0.016760963946580887, 0.0018364640418440104, 0.06274186819791794, 0.0018292488530278206, -0.08601197600364685, 0.04134039580821991, -0.06944238394498825, -3.601808730467555e-33, 0.0951465293765068, 0.010547932237386703, -0.06838890165090561, 0.04384428262710571, 0.02256331965327263, 0.014792299829423428, -0.03924485296010971, -0.009911391884088516, -0.00809451099485159, -0.045949868857860565, -0.1011984571814537, -0.0346122607588768, 0.06595474481582642, 0.04529615491628647, -0.07435248792171478, -0.018689697608351707, -0.041241757571697235, -0.06423579901456833, -0.030713437125086784, 0.03748482093214989, -0.018115045502781868, 0.00810447707772255, -0.013432702049612999, -0.0018626736709848046, 0.049134280532598495, -0.008780820295214653, 0.06012566015124321, 0.06267848610877991, -0.03762338310480118, 0.04938479885458946, -0.03573078289628029, -0.11262422800064087, 0.012060126289725304, 0.06541439890861511, 0.03623047098517418, -0.020361319184303284, -0.04410196468234062, 0.08945858478546143, 0.02359287440776825, -0.026217389851808548, 0.11317934840917587, -0.03549237549304962, -0.0707528367638588, -0.05135846883058548, -0.04829825833439827, 0.05186851695179939, -0.04195437580347061, -0.015422956086695194, 0.02074441686272621, -0.11160647124052048, 0.03779285401105881, 0.03392567113041878, -0.010683264583349228, 0.09680454432964325, -0.010255159810185432, -0.042905133217573166, 0.023873236030340195, 0.020955946296453476, 0.024606799706816673, 0.048702266067266464, 0.07729198038578033, -0.03307157754898071, 0.08780262619256973, -0.008006567135453224, 0.005419000517576933, -0.07301914691925049, 0.012620214372873306, -0.03527555242180824, -0.03462021425366402, -0.04061944782733917, -0.012438653968274593, 0.0297359898686409, 0.024289855733513832, 0.03647899255156517, -0.021704213693737984, -0.01827789656817913, 0.05797452852129936, -0.0039376975037157536, 0.03128267452120781, 0.002073565497994423, -0.10472999513149261, 0.10188176482915878, -0.04081732779741287, 0.08471353352069855, -0.06291382759809494, 0.07556670904159546, 0.06135682389140129, 0.039647672325372696, 0.043686773627996445, 0.049484070390462875, 0.03685562312602997, 0.016224948689341545, 0.005922225769609213, 0.10635097324848175, -0.006713862996548414, -5.016251591882792e-8, 0.07640350610017776, -0.023520147427916527, 0.02650453895330429, -0.014652159996330738, 0.08521200716495514, -0.05381539463996887, 0.10943292826414108, 0.021863171830773354, -0.03938116133213043, 0.044383589178323746, 0.029566321521997452, 0.046045128256082535, 0.007411880884319544, -0.04038893058896065, 0.03966240584850311, -0.009994872845709324, 0.0010497509501874447, -0.01447032205760479, -0.044569436460733414, -0.10274693369865417, -0.05240817368030548, -0.0743500217795372, -0.03323478624224663, -0.07706133276224136, 0.028210744261741638, 0.013476029969751835, 0.06227533519268036, 0.056999173015356064, 0.05242851749062538, -0.018970999866724014, -0.0887330174446106, 0.026808518916368484, -0.04833514243364334, -0.01849956065416336, -0.033945322036743164, 0.05283099412918091, -0.1560189425945282, -0.027724895626306534, -0.030376803129911423, 0.0658997967839241, -0.013431068509817123, -0.05415542796254158, -0.021175671368837357, -0.019565530121326447, 0.02463408000767231, 0.07132422924041748, -0.08145637065172195, 0.09573636204004288, -0.02533574216067791, -0.00991140678524971, -0.016016753390431404, -0.0440375916659832, 0.016194254159927368, 0.03258620947599411, -0.03687701374292374, 0.029668860137462616, 0.025008728727698326, -0.06982477754354477, 0.010964030399918556, -0.010042058303952217, 0.044700898230075836, 0.044456787407398224, 0.03379049152135849, -0.020732704550027847 ]
0.200773
This document describes \_ephemeral volumes\_ in Kubernetes. Familiarity with [volumes](/docs/concepts/storage/volumes/) is suggested, in particular PersistentVolumeClaim and PersistentVolume. Some applications need additional storage but don't care whether that data is stored persistently across restarts. For example, caching services are often limited by memory size and can move infrequently used data into storage that is slower than memory with little impact on overall performance. Other applications expect some read-only input data to be present in files, like configuration data or secret keys. \_Ephemeral volumes\_ are designed for these use cases. Because volumes follow the Pod's lifetime and get created and deleted along with the Pod, Pods can be stopped and restarted without being limited to where some persistent volume is available. Ephemeral volumes are specified \_inline\_ in the Pod spec, which simplifies application deployment and management. ### Types of ephemeral volumes Kubernetes supports several different kinds of ephemeral volumes for different purposes: - [emptyDir](/docs/concepts/storage/volumes/#emptydir): empty at Pod startup, with storage coming locally from the kubelet base directory (usually the root disk) or RAM - [configMap](/docs/concepts/storage/volumes/#configmap), [downwardAPI](/docs/concepts/storage/volumes/#downwardapi), [secret](/docs/concepts/storage/volumes/#secret): inject different kinds of Kubernetes data into a Pod - [image](/docs/concepts/storage/volumes/#image): allows mounting container image files or artifacts, directly to a Pod. - [CSI ephemeral volumes](#csi-ephemeral-volumes): similar to the previous volume kinds, but provided by special {{< glossary\_tooltip text="CSI" term\_id="csi" >}} drivers which specifically [support this feature](https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html) - [generic ephemeral volumes](#generic-ephemeral-volumes), which can be provided by all storage drivers that also support persistent volumes `emptyDir`, `configMap`, `downwardAPI`, `secret` are provided as [local ephemeral storage](/docs/concepts/storage/ephemeral-storage/). They are managed by kubelet on each node. CSI ephemeral volumes \*must\* be provided by third-party CSI storage drivers. Generic ephemeral volumes \*can\* be provided by third-party CSI storage drivers, but also by any other storage driver that supports dynamic provisioning. Some CSI drivers are written specifically for CSI ephemeral volumes and do not support dynamic provisioning: those then cannot be used for generic ephemeral volumes. The advantage of using third-party drivers is that they can offer functionality that Kubernetes itself does not support, for example storage with different performance characteristics than the disk that is managed by kubelet, or injecting different data. ### CSI ephemeral volumes {{< feature-state for\_k8s\_version="v1.25" state="stable" >}} {{< note >}} CSI ephemeral volumes are only supported by a subset of CSI drivers. The Kubernetes CSI [Drivers list](https://kubernetes-csi.github.io/docs/drivers.html) shows which drivers support ephemeral volumes. {{< /note >}} Conceptually, CSI ephemeral volumes are similar to `configMap`, `downwardAPI` and `secret` volume types: the storage is managed locally on each node and is created together with other local resources after a Pod has been scheduled onto a node. Kubernetes has no concept of rescheduling Pods anymore at this stage. Volume creation has to be unlikely to fail, otherwise Pod startup gets stuck. In particular, [storage capacity aware Pod scheduling](/docs/concepts/storage/storage-capacity/) is \*not\* supported for these volumes. They are currently also not covered by the storage resource usage limits of a Pod, because that is something that kubelet can only enforce for storage that it manages itself. Here's an example manifest for a Pod that uses CSI ephemeral storage: ```yaml kind: Pod apiVersion: v1 metadata: name: my-csi-app spec: containers: - name: my-frontend image: busybox:1.28 volumeMounts: - mountPath: "/data" name: my-csi-inline-vol command: [ "sleep", "1000000" ] volumes: - name: my-csi-inline-vol csi: driver: inline.storage.kubernetes.io volumeAttributes: foo: bar ``` The `volumeAttributes` determine what volume is prepared by the driver. These attributes are specific to each driver and not standardized. See the documentation of each CSI driver for further instructions. ### CSI driver restrictions CSI ephemeral volumes allow users to provide `volumeAttributes` directly to the CSI driver as part of the Pod spec. A CSI driver
null
./vendor/kubernetes/content/en/docs/concepts/storage/ephemeral-volumes.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/storage/ephemeral-volumes.md
[ 0.019965199753642082, 0.013295798562467098, 0.019692258909344673, 0.00812778901308775, -0.010353488847613335, -0.007558236364275217, -0.023555919528007507, 0.05547656491398811, 0.13789112865924835, 0.048053815960884094, 0.0012825281592085958, 0.07028856873512268, 0.001874758512713015, -0.03265540301799774, -0.015078031457960606, -0.042915791273117065, 0.024261057376861572, 0.01819790154695511, -0.04856720566749573, 0.02370145171880722, 0.031812090426683426, 0.02616123855113983, 0.014403275214135647, 0.045380182564258575, -0.04397396743297577, 0.026415223255753517, -0.06080731377005577, -0.027033185586333275, 0.021745510399341583, -0.03538574278354645, -0.0163344107568264, 0.05786575749516487, 0.0093080447986722, 0.018407240509986877, 0.005651580169796944, 0.06077922135591507, 0.003041546093299985, -0.05360138788819313, -0.11347535252571106, -0.03752884641289711, 0.015644315630197525, -0.04658830165863037, -0.1133473590016365, 0.055083032697439194, -0.03952082246541977, 0.0012902215821668506, 0.02209610305726528, -0.08582613617181778, -0.0179094597697258, 0.0005356765468604863, 0.03772358596324921, -0.05725938454270363, 0.031713590025901794, 0.12267150729894638, 0.05765720456838608, 0.023396866396069527, -0.015370110981166363, 0.059748291969299316, 0.0450671948492527, 0.026790697127580643, 0.047040894627571106, -0.0071565331891179085, 0.035283710807561874, -0.03461970016360283, -0.0014283967902883887, -0.0017075332580134273, 0.017938490957021713, -0.008209239691495895, 0.04405200853943825, -0.012093915604054928, 0.05991716310381889, 0.10898678004741669, -0.015412211418151855, -0.004180159419775009, -0.02932010591030121, -0.009778822772204876, -0.039613258093595505, 0.015097160823643208, 0.0047496589832007885, -0.018505621701478958, 0.020299801602959633, 0.04990822449326515, 0.023615797981619835, -0.028576329350471497, -0.06825628131628036, -0.03477746248245239, -0.016221560537815094, -0.028844710439443588, -0.019368374720215797, -0.04168131947517395, 0.05160146951675415, -0.009286157786846161, 0.06967414915561676, -0.04271261394023895, -0.005799597129225731, -0.015463372692465782, -0.015738319605588913, 0.0007631031912751496, 0.09905121475458145, -0.038779281079769135, 0.03899747133255005, 0.047386158257722855, -0.043129514902830124, 0.03774533048272133, 0.05391809344291687, -0.14315447211265564, 0.0128092672675848, 0.034911517053842545, -0.040988948196172714, 0.0558130107820034, 0.02153373509645462, -0.0179265309125185, -0.025607535615563393, 0.061390042304992676, 0.06166054308414459, 0.028398752212524414, -0.07809511572122574, 0.028694117441773415, 0.005959146190434694, 0.11338946223258972, 0.042114630341529846, -0.07174967229366302, 0.0007434416329488158, 0.018775373697280884, -0.02317911386489868, 0.02455839142203331, 0.02159164659678936, 7.728904744015311e-33, -0.0003487787034828216, -0.08268409222364426, -0.001915937988087535, -0.014938983134925365, 0.0016040016198530793, -0.06641093641519547, 0.008052454330027103, 0.042871274054050446, 0.0028706302400678396, -0.08208081126213074, -0.07219752669334412, 0.13532648980617523, -0.028951972723007202, 0.017966872081160545, 0.04097103327512741, -0.020517468452453613, -0.08504073321819305, 0.10378395020961761, 0.08396536856889725, -0.07813295722007751, 0.05876961350440979, -0.012770241126418114, -0.02946416102349758, 0.006080689374357462, 0.03529883548617363, -0.019581647589802742, 0.04978727176785469, -0.04641586169600487, -0.014462407678365707, 0.033217091113328934, -0.0646076574921608, 0.014563906006515026, 0.02083800733089447, -0.016339579597115517, -0.08713186532258987, 0.017467277124524117, -0.04015277326107025, 0.007043018005788326, -0.10031512379646301, -0.0677073746919632, 0.07095328718423843, 0.01730402000248432, 0.026421869173645973, -0.04257521033287048, -0.020582176744937897, -0.10458605736494064, 0.01766875572502613, -0.024059560149908066, 0.005330528598278761, 0.0504411980509758, 0.009158354252576828, 0.032989002764225006, 0.0023070399183779955, -0.016889657825231552, -0.011317815631628036, 0.007213177625089884, 0.03362034261226654, -0.10831312835216522, -0.038426849991083145, -0.01305192057043314, -0.05268282815814018, 0.06676534563302994, 0.06458934396505356, 0.04020010307431221, -0.016906829550862312, 0.05355330929160118, 0.032588180154561996, 0.004498888738453388, 0.008775908499956131, -0.03641404211521149, -0.04034756124019623, -0.051596689969301224, -0.010849405080080032, -0.045544110238552094, -0.054799407720565796, -0.06534972041845322, -0.006193756125867367, -0.021279651671648026, -0.10127966850996017, 0.008790974505245686, 0.03199866786599159, -0.06325648725032806, -0.0778760313987732, 0.11070767790079117, -0.013139234855771065, -0.01824634149670601, 0.022229842841625214, -0.0017462526448071003, -0.03077259287238121, 0.015228095464408398, 0.05278128758072853, -0.03236553072929382, -0.0007652497733943164, -0.03714625537395477, -0.10211887955665588, -7.702852850465212e-33, 0.11583366990089417, -0.03088313899934292, -0.03444817662239075, 0.028889017179608345, -0.009837139397859573, 0.08251216262578964, -0.05560828745365143, 0.07812866568565369, -0.06713195890188217, -0.10598377883434296, -0.07210256904363632, -0.04662935435771942, 0.020415931940078735, -0.00005690749821951613, -0.06757773458957672, -0.018620729446411133, -0.08012440800666809, -0.10355517268180847, 0.016047539189457893, 0.03263365104794502, -0.03235834091901779, -0.09066825360059738, 0.026172136887907982, 0.04709404706954956, -0.04515264928340912, -0.0009589577093720436, -0.03809903562068939, -0.010818551294505596, -0.1008571982383728, -0.04211372137069702, -0.023062700405716896, -0.11532987654209137, -0.03970487415790558, -0.06651818007230759, -0.03306111320853233, -0.08843858540058136, -0.024000922217965126, 0.002160562900826335, -0.04108316823840141, -0.01521945558488369, 0.03507956117391586, 0.03926223888993263, 0.011027460917830467, -0.060423798859119415, -0.06592421233654022, 0.017553512006998062, 0.004849913064390421, -0.024297533556818962, 0.09054525941610336, -0.058139681816101074, 0.015300387516617775, 0.016539745032787323, -0.0831206813454628, 0.039130084216594696, 0.002012323820963502, 0.045537255704402924, -0.03988484665751457, 0.06577567011117935, -0.03757890313863754, -0.017139511182904243, 0.09703157097101212, -0.10756167769432068, -0.0017088906606659293, -0.002802165923640132, -0.0602179579436779, -0.05363083630800247, 0.03984204679727554, 0.005075498018413782, -0.05508723855018616, 0.019714506343007088, 0.040062904357910156, -0.044313058257102966, 0.058165088295936584, 0.036624640226364136, 0.000016721553038223647, -0.017409028485417366, 0.01391172781586647, -0.11858305335044861, 0.02538609690964222, 0.029779527336359024, -0.06251946836709976, 0.07352849841117859, -0.08093667030334473, 0.05724602937698364, 0.04343614727258682, 0.002287532901391387, -0.02718067727982998, 0.05245591700077057, 0.05225110054016113, 0.08351080119609833, 0.0068506947718560696, 0.05301352217793465, -0.07096435874700546, 0.08438189327716827, 0.03244774788618088, -4.951432686084445e-8, 0.052070502191782, 0.02727477438747883, 0.03205513209104538, 0.08830685913562775, -0.018922775983810425, -0.11079274863004684, 0.0818667933344841, 0.1087077409029007, -0.007699243724346161, 0.01604413613677025, 0.07000459730625153, 0.024473803117871284, -0.09331095218658447, -0.06646125018596649, -0.015289193019270897, 0.06061114743351936, 0.07356935739517212, -0.022649221122264862, -0.005402571987360716, -0.06531774252653122, -0.05098763108253479, -0.007100812159478664, 0.002940563950687647, -0.03167596086859703, 0.08089164644479752, 0.09151670336723328, 0.11657053232192993, 0.0547327846288681, 0.02028692699968815, -0.015895554795861244, 0.009480043314397335, -0.002528521465137601, 0.01287365984171629, 0.08586262911558151, -0.007696507964283228, 0.034868668764829636, -0.04746546968817711, 0.0669986680150032, -0.021176613867282867, 0.0162813737988472, -0.022187668830156326, -0.09359247237443924, -0.005258582998067141, 0.012566265650093555, 0.030855443328619003, 0.032432280480861664, -0.03922812268137932, 0.15141037106513977, -0.05299616977572441, 0.025644298642873764, -0.06396791338920593, -0.03200633451342583, -0.020733263343572617, 0.09875405579805374, 0.041232407093048096, 0.05042966082692146, -0.01305350847542286, -0.011193369515240192, 0.005703421775251627, 0.05184477940201759, 0.06919902563095093, 0.027227206155657768, -0.041060253977775574, -0.03276874125003815 ]
0.169992
prepared by the driver. These attributes are specific to each driver and not standardized. See the documentation of each CSI driver for further instructions. ### CSI driver restrictions CSI ephemeral volumes allow users to provide `volumeAttributes` directly to the CSI driver as part of the Pod spec. A CSI driver allowing `volumeAttributes` that are typically restricted to administrators is NOT suitable for use in an inline ephemeral volume. For example, parameters that are normally defined in the StorageClass should not be exposed to users through the use of inline ephemeral volumes. Cluster administrators who need to restrict the CSI drivers that are allowed to be used as inline volumes within a Pod spec may do so by: - Removing `Ephemeral` from `volumeLifecycleModes` in the CSIDriver spec, which prevents the driver from being used as an inline ephemeral volume. - Using an [admission webhook](/docs/reference/access-authn-authz/extensible-admission-controllers/) to restrict how this driver is used. ### Generic ephemeral volumes {{< feature-state for\_k8s\_version="v1.23" state="stable" >}} Generic ephemeral volumes are similar to `emptyDir` volumes in the sense that they provide a per-pod directory for scratch data that is usually empty after provisioning. But they may also have additional features: - Storage can be local or network-attached. - Volumes can have a fixed size that Pods are not able to exceed. - Volumes may have some initial data, depending on the driver and parameters. - Typical operations on volumes are supported assuming that the driver supports them, including [snapshotting](/docs/concepts/storage/volume-snapshots/), [cloning](/docs/concepts/storage/volume-pvc-datasource/), [resizing](/docs/concepts/storage/persistent-volumes/#expanding-persistent-volumes-claims), and [storage capacity tracking](/docs/concepts/storage/storage-capacity/). Example: ```yaml kind: Pod apiVersion: v1 metadata: name: my-app spec: containers: - name: my-frontend image: busybox:1.28 volumeMounts: - mountPath: "/scratch" name: scratch-volume command: [ "sleep", "1000000" ] volumes: - name: scratch-volume ephemeral: volumeClaimTemplate: metadata: labels: type: my-frontend-volume spec: accessModes: [ "ReadWriteOnce" ] storageClassName: "scratch-storage-class" resources: requests: storage: 1Gi ``` ### Lifecycle and PersistentVolumeClaim The key design idea is that the [parameters for a volume claim](/docs/reference/generated/kubernetes-api/{{< param "version" >}}/#ephemeralvolumesource-v1-core) are allowed inside a volume source of the Pod. Labels, annotations and the whole set of fields for a PersistentVolumeClaim are supported. When such a Pod gets created, the ephemeral volume controller then creates an actual PersistentVolumeClaim object in the same namespace as the Pod and ensures that the PersistentVolumeClaim gets deleted when the Pod gets deleted. That triggers volume binding and/or provisioning, either immediately if the {{< glossary\_tooltip text="StorageClass" term\_id="storage-class" >}} uses immediate volume binding or when the Pod is tentatively scheduled onto a node (`WaitForFirstConsumer` volume binding mode). The latter is recommended for generic ephemeral volumes because then the scheduler is free to choose a suitable node for the Pod. With immediate binding, the scheduler is forced to select a node that has access to the volume once it is available. In terms of [resource ownership](/docs/concepts/architecture/garbage-collection/#owners-dependents), a Pod that has generic ephemeral storage is the owner of the PersistentVolumeClaim(s) that provide that ephemeral storage. When the Pod is deleted, the Kubernetes garbage collector deletes the PVC, which then usually triggers deletion of the volume because the default reclaim policy of storage classes is to delete volumes. You can create quasi-ephemeral local storage using a StorageClass with a reclaim policy of `retain`: the storage outlives the Pod, and in this case you need to ensure that volume clean up happens separately. While these PVCs exist, they can be used like any other PVC. In particular, they can be referenced as data source in volume cloning or snapshotting. The PVC object also holds the current status of the volume. ### PersistentVolumeClaim naming Naming of the automatically created PVCs is deterministic: the name is a combination of the Pod name and volume name, with a hyphen
null
./vendor/kubernetes/content/en/docs/concepts/storage/ephemeral-volumes.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/storage/ephemeral-volumes.md
[ 0.046996209770441055, 0.07090992480516434, -0.0268088448792696, 0.008756525814533234, -0.003963951487094164, -0.02731238305568695, 0.029332660138607025, 0.017986860126256943, -0.01724415086209774, 0.012237351387739182, 0.030893003568053246, -0.04578983411192894, 0.04791206493973732, 0.04410426691174507, -0.01064557209610939, -0.12240108847618103, 0.07297280430793762, 0.011250782757997513, -0.006586434319615364, 0.07927525043487549, 0.0397711805999279, -0.00612450810149312, 0.024705689400434494, 0.06763425469398499, -0.04839521273970604, -0.06382321566343307, 0.010777892544865608, 0.03765315189957619, 0.04843829572200775, -0.02065953239798546, -0.001923976931720972, 0.010207552462816238, 0.05648600310087204, 0.04660927131772041, 0.047441598027944565, -0.008926285430788994, 0.039190880954265594, 0.007259896490722895, -0.11953303217887878, -0.024877753108739853, 0.03701191395521164, -0.005493622273206711, -0.06905508041381836, 0.06990363448858261, -0.0517263263463974, -0.08013159781694412, -0.004066965542733669, -0.05408920347690582, -0.031107740476727486, 0.03422001004219055, 0.026686828583478928, 0.00762549601495266, 0.0743117406964302, 0.11641629040241241, -0.03654172271490097, 0.01859143003821373, 0.0007617471273988485, 0.1073654294013977, 0.067487433552742, -0.03802461177110672, -0.022884704172611237, -0.07784762233495712, 0.03168093413114548, -0.031111977994441986, -0.02596336416900158, 0.021160172298550606, 0.011229483410716057, 0.021804699674248695, -0.04117188602685928, 0.01949009671807289, 0.051154084503650665, 0.05472047999501228, -0.02703906036913395, 0.03402813896536827, 0.03680975362658501, 0.11715605854988098, -0.06590825319290161, 0.03041876293718815, -0.005905712489038706, -0.07103151828050613, -0.005246483720839024, -0.001554187387228012, -0.05298710986971855, -0.010092152282595634, -0.006858712062239647, 0.05932581424713135, -0.08546619117259979, -0.001652032369747758, -0.09062863141298294, -0.011888686567544937, 0.1001388430595398, -0.026082651689648628, -0.04084433615207672, -0.06826085597276688, 0.03629421442747116, -0.06828304380178452, -0.042854808270931244, -0.04152297601103783, 0.06566449999809265, 0.022216185927391052, -0.014022358693182468, 0.021821269765496254, -0.07247202098369598, 0.033106088638305664, -0.010647759772837162, -0.08945772051811218, 0.061539262533187866, 0.008635180070996284, -0.010716755874454975, 0.08662846684455872, 0.06802094727754593, 0.0387461893260479, -0.019873112440109253, 0.02262585610151291, 0.021713903173804283, 0.14326360821723938, -0.03990590572357178, 0.06252405047416687, 0.01920458674430847, 0.024965407326817513, -0.005207776091992855, -0.021484792232513428, 0.007585349027067423, 0.032957129180431366, 0.013765249401330948, -0.009075935930013657, -0.033708903938531876, 7.191634030712445e-33, -0.007076579611748457, -0.05514128506183624, -0.05366190895438194, -0.007174560334533453, 0.028234103694558144, -0.027439633384346962, 0.02725294791162014, -0.017722630873322487, -0.014561698772013187, -0.09462671726942062, -0.02797616273164749, 0.15307019650936127, -0.007986456155776978, -0.03307471424341202, 0.02693522721529007, -0.012621279805898666, -0.09559972584247589, 0.11423633992671967, 0.02415153756737709, 0.016662927344441414, 0.06050144135951996, -0.08587028831243515, -0.037220221012830734, 0.049192193895578384, -0.010845290496945381, 0.033464498817920685, -0.04436846077442169, -0.01043000165373087, 0.049614980816841125, 0.06703919917345047, -0.08934066444635391, 0.009363490156829357, 0.022819453850388527, 0.01961447112262249, -0.047008074820041656, -0.04188966378569603, -0.03530163690447807, 0.007958704605698586, -0.043478820472955704, -0.14695893228054047, 0.03707341477274895, -0.06917309015989304, 0.03863772004842758, 0.002337626414373517, -0.06626887619495392, -0.07705619931221008, 0.01049941498786211, -0.023902297019958496, 0.04169727861881256, 0.03499367833137512, -0.012683103792369366, -0.020273540169000626, 0.005292486399412155, -0.09340570122003555, 0.003687123069539666, -0.044223953038454056, 0.022906774654984474, -0.013708078302443027, 0.0069322362542152405, -0.018909025937318802, -0.013238870538771152, 0.09251850098371506, 0.02306583896279335, -0.022332316264510155, -0.07103453576564789, 0.071956567466259, -0.027969053015112877, -0.02674928307533264, 0.02285579964518547, -0.019204601645469666, -0.04054014012217522, 0.0798136368393898, -0.050888851284980774, 0.06192174181342125, -0.06791414320468903, -0.07545652240514755, 0.013709010556340218, 0.043672747910022736, -0.04641560837626457, 0.011082597076892853, -0.0743594542145729, 0.001192791503854096, -0.0456693209707737, 0.12503552436828613, -0.012743564322590828, -0.02528257668018341, -0.002649028319865465, 0.04459698125720024, -0.0593041330575943, 0.0007109983125701547, 0.08766590058803558, -0.04853477329015732, 0.00036362401442602277, -0.016673065721988678, -0.11271397769451141, -6.725522602620576e-33, 0.10331158339977264, -0.03537861257791519, 0.014638305641710758, -0.040844473987817764, -0.025812523439526558, 0.06584996730089188, -0.010750440880656242, 0.0647294893860817, 0.019859526306390762, -0.12244369089603424, 0.02345234900712967, -0.012524868361651897, 0.014539494179189205, -0.05180777981877327, -0.01017649658024311, 0.008370022289454937, -0.07132817059755325, -0.035625237971544266, 0.0918656587600708, 0.02168099209666252, -0.014474219642579556, -0.027639973908662796, 0.04695312678813934, 0.07377700507640839, 0.013246595859527588, -0.054900527000427246, -0.005552864167839289, 0.09175176173448563, -0.05533336102962494, -0.017218980938196182, -0.0035435324534773827, -0.0749780535697937, -0.09945883601903915, -0.02919827215373516, -0.03408239036798477, -0.053062181919813156, 0.005545516964048147, 0.04399103671312332, -0.07993912696838379, -0.05810403823852539, 0.012253566645085812, -0.02838723547756672, -0.07530499994754791, 0.017217138782143593, -0.030143169686198235, 0.016859646886587143, 0.083167664706707, -0.0432390458881855, 0.0017346501117572188, -0.017273638397455215, -0.00840835366398096, 0.011489173397421837, 0.01171101164072752, 0.11168347299098969, -0.033139221370220184, 0.06498637050390244, 0.03226569667458534, 0.019596746191382408, -0.02755562774837017, 0.008237321861088276, 0.07429872453212738, -0.0384555421769619, 0.0032771292608231306, 0.020276861265301704, -0.05238359421491623, -0.09060265868902206, -0.01260050106793642, 0.007233248092234135, -0.05099356174468994, 0.08711905032396317, 0.040395088493824005, -0.0681268647313118, 0.08943163603544235, 0.053436029702425, 0.029388492926955223, -0.030008383095264435, -0.02665526419878006, -0.062490224838256836, 0.025136733427643776, -0.019548453390598297, -0.07850178331136703, 0.11661681532859802, -0.04222027212381363, 0.13483873009681702, 0.08091140538454056, 0.031242482364177704, 0.03414143621921539, 0.08511798828840256, 0.005309696309268475, 0.09060925245285034, -0.027960611507296562, 0.021614188328385353, -0.009814659133553505, 0.04326191172003746, -0.026909053325653076, -5.378117151622064e-8, 0.024224787950515747, -0.027225757017731667, -0.0027613190468400717, 0.04520517215132713, 0.006813953630626202, -0.05605000630021095, -0.025630468502640724, 0.02163740061223507, -0.07124432921409607, 0.020086778327822685, 0.06566207110881805, -0.01559672225266695, -0.01779426634311676, -0.046327143907547, -0.042719028890132904, 0.007302452344447374, -0.025983180850744247, 0.06632765382528305, -0.05264626070857048, -0.08109085261821747, -0.04817033186554909, -0.043925173580646515, 0.038442809134721756, 0.009482273831963539, 0.07753068953752518, 0.11122895777225494, -0.032060351222753525, -0.03857322037220001, 0.023864232003688812, -0.051768530160188675, -0.05854487791657448, -0.03558264300227165, -0.03437191992998123, 0.05605437606573105, -0.0817396268248558, 0.05694521591067314, -0.019540563225746155, 0.04995559900999069, -0.005367920733988285, 0.035872362554073334, -0.04278698191046715, -0.07757648080587387, -0.025248948484659195, -0.005971154198050499, 0.07512079924345016, 0.04964158311486244, -0.010015781968832016, 0.1023690328001976, -0.0035124646965414286, 0.06267543137073517, -0.0022050936240702868, -0.05804036185145378, -0.025754908099770546, 0.06358250975608826, -0.006860378663986921, -0.010730967856943607, -0.04051053896546364, -0.04731413349509239, 0.04433323070406914, 0.06700799614191055, 0.07581225037574768, 0.028555667027831078, 0.017828918993473053, 0.005760174710303545 ]
0.123984
particular, they can be referenced as data source in volume cloning or snapshotting. The PVC object also holds the current status of the volume. ### PersistentVolumeClaim naming Naming of the automatically created PVCs is deterministic: the name is a combination of the Pod name and volume name, with a hyphen (`-`) in the middle. In the example above, the PVC name will be `my-app-scratch-volume`. This deterministic naming makes it easier to interact with the PVC because one does not have to search for it once the Pod name and volume name are known. The deterministic naming also introduces a potential conflict between different Pods (a Pod "pod-a" with volume "scratch" and another Pod with name "pod" and volume "a-scratch" both end up with the same PVC name "pod-a-scratch") and between Pods and manually created PVCs. Such conflicts are detected: a PVC is only used for an ephemeral volume if it was created for the Pod. This check is based on the ownership relationship. An existing PVC is not overwritten or modified. But this does not resolve the conflict because without the right PVC, the Pod cannot start. {{< caution >}} Take care when naming Pods and volumes inside the same namespace, so that these conflicts can't occur. {{< /caution >}} ### Security Using generic ephemeral volumes allows users to create PVCs indirectly if they can create Pods, even if they do not have permission to create PVCs directly. Cluster administrators must be aware of this. If this does not fit their security model, they should use an [admission webhook](/docs/reference/access-authn-authz/extensible-admission-controllers/) that rejects objects like Pods that have a generic ephemeral volume. The normal [namespace quota for PVCs](/docs/concepts/policy/resource-quotas/#storage-resource-quota) still applies, so even if users are allowed to use this new mechanism, they cannot use it to circumvent other policies. ## {{% heading "whatsnext" %}} ### Ephemeral volumes managed by kubelet See [local ephemeral storage](/docs/concepts/storage/ephemeral-storage/). ### CSI ephemeral volumes - For more information on the design, see the [Ephemeral Inline CSI volumes KEP](https://github.com/kubernetes/enhancements/blob/ad6021b3d61a49040a3f835e12c8bb5424db2bbb/keps/sig-storage/20190122-csi-inline-volumes.md). - For more information on further development of this feature, see the [enhancement tracking issue #596](https://github.com/kubernetes/enhancements/issues/596). ### Generic ephemeral volumes - For more information on the design, see the [Generic ephemeral inline volumes KEP](https://github.com/kubernetes/enhancements/blob/master/keps/sig-storage/1698-generic-ephemeral-volumes/README.md).
null
./vendor/kubernetes/content/en/docs/concepts/storage/ephemeral-volumes.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/storage/ephemeral-volumes.md
[ -0.09121046215295792, -0.10195060074329376, 0.018857724964618683, -0.05256538465619087, 0.01791837252676487, -0.026498129591345787, 0.05179830268025398, 0.017367471009492874, 0.10046248883008957, 0.01278014201670885, 0.029235973954200745, -0.06499426811933517, 0.05298684909939766, -0.01182015985250473, -0.06354891508817673, -0.03915398195385933, 0.014147947542369366, 0.021393412724137306, -0.0003551413828972727, 0.05846916511654854, 0.0506853312253952, 0.058035969734191895, -0.019940491765737534, -0.0022810196969658136, 0.031490251421928406, 0.05294302478432655, -0.04920516163110733, 0.043579306453466415, 0.05136925354599953, -0.07929542660713196, 0.028596431016921997, 0.09663413465023041, 0.05292234569787979, 0.017201123759150505, 0.0909619927406311, 0.05481135472655296, -0.07564260810613632, -0.013789623975753784, -0.030004257336258888, -0.05739687755703926, 0.03857635334134102, -0.08763851225376129, -0.03534625843167305, 0.011416958644986153, -0.09265977889299393, 0.022688040509819984, 0.001819438999518752, -0.051642317324876785, -0.059037137776613235, 0.05145656690001488, 0.014992197044193745, -0.11378858238458633, -0.00060262531042099, 0.08068424463272095, 0.009820731356739998, 0.05034333094954491, 0.035911157727241516, 0.09921687096357346, 0.04836060851812363, 0.036361176520586014, -0.04176225885748863, 0.0314115472137928, -0.045546017587184906, 0.016814883798360825, 0.08979444950819016, -0.023762956261634827, 0.060176074504852295, 0.013055963441729546, 0.043340541422367096, -0.00781936850398779, 0.08654391765594482, 0.1331455409526825, 0.027620049193501472, 0.010300673544406891, -0.03245490416884422, 0.03624919056892395, -0.018213434144854546, 0.04074826464056969, -0.08254092931747437, -0.07141538709402084, -0.011911815963685513, 0.09736034274101257, -0.06292925775051117, -0.044597968459129333, -0.01198592409491539, 0.059278734028339386, 0.007035232149064541, 0.023296957835555077, 0.0031337968539446592, -0.016857247799634933, -0.018629929050803185, -0.07441546767950058, 0.08575916290283203, -0.05175548046827316, 0.08746589720249176, -0.022897353395819664, 0.041039012372493744, 0.017665842548012733, 0.07564594596624374, -0.03307836130261421, -0.012484858743846416, 0.0018270682776346803, -0.08023428171873093, -0.013249306939542294, 0.10009996592998505, -0.09678784012794495, -0.05994417890906334, -0.07265247404575348, 0.008061621338129044, 0.07806991785764694, -0.029249785467982292, 0.029752006754279137, -0.014867699705064297, -0.004294103942811489, 0.013776816427707672, 0.0002473717322573066, -0.026189744472503662, 0.009750708006322384, -0.026953699067234993, -0.08007777482271194, -0.00430928124114871, -0.13874836266040802, 0.01013481430709362, -0.0330074280500412, -0.0779663473367691, -0.009919533506035805, -0.045706894248723984, 1.9862998444966145e-33, 0.018365442752838135, -0.06062696501612663, -0.001682556001469493, 0.0390496663749218, 0.01625142991542816, 0.02024603821337223, 0.04852821305394173, 0.048814140260219574, -0.0070386347360908985, -0.07901240885257721, -0.04873444512486458, 0.07792939990758896, -0.0003442276210989803, 0.018674205988645554, -0.061775773763656616, 0.009562688879668713, -0.06805914640426636, 0.0775219053030014, -0.04489976912736893, -0.045182473957538605, -0.007038180250674486, 0.03288339078426361, 0.00014733713760506362, 0.0644776001572609, 0.004169934429228306, -0.01724996604025364, 0.026513120159506798, -0.05372043699026108, 0.02600388042628765, 0.02480318956077099, -0.051365260034799576, 0.037079837173223495, 0.07254603505134583, 0.03521529585123062, 0.033248357474803925, 0.036481332033872604, -0.04291620850563049, -0.03064604289829731, -0.06104464456439018, -0.07355060428380966, 0.022391607984900475, 0.011491771787405014, -0.00653704721480608, -0.004044886212795973, -0.0050592138431966305, -0.09589574486017227, -0.018884330987930298, 0.008321922272443771, -0.048190560191869736, 0.045625586062669754, 0.036023106426000595, 0.036891043186187744, -0.022954411804676056, -0.07359959930181503, -0.020595746114850044, -0.0407109409570694, -0.026680689305067062, -0.0655803307890892, -0.0837203860282898, 0.021500589326024055, 0.039507750421762466, 0.09746503829956055, 0.04794497415423393, 0.059228140860795975, 0.024608222767710686, 0.1321479082107544, -0.023037059232592583, -0.05276158079504967, 0.1117808148264885, -0.012341638095676899, -0.028015362098813057, -0.03336431831121445, -0.0788426324725151, 0.008997791446745396, 0.03744359314441681, -0.045422300696372986, -0.03476599603891373, -0.009973674081265926, -0.029643336310982704, -0.02520993910729885, -0.10741959512233734, 0.035502564162015915, -0.0814686045050621, 0.0292253065854311, -0.14997221529483795, -0.030059250071644783, 0.026566028594970703, -0.033434394747018814, -0.15666726231575012, -0.05610348656773567, 0.061055753380060196, -0.030764905735850334, -0.04308880865573883, 0.007150067947804928, -0.03542976453900337, -3.9328242662392646e-33, 0.038476403802633286, -0.028206976130604744, -0.010173539631068707, 0.01262458972632885, -0.028141222894191742, -0.04470806568861008, -0.013364356942474842, -0.022916903719305992, -0.009181694127619267, -0.050022516399621964, -0.021330399438738823, 0.02208014205098152, -0.08956354111433029, -0.004729000385850668, -0.01226860098540783, 0.009668722748756409, -0.06248442083597183, -0.061949487775564194, 0.007256409619003534, 0.06675274670124054, 0.007649528328329325, 0.026585597544908524, -0.030234020203351974, 0.05649986490607262, -0.021823137998580933, -0.030838213860988617, -0.02298891544342041, -0.019791265949606895, 0.03500588610768318, -0.040364544838666916, 0.01698835752904415, -0.02173914574086666, -0.11333128064870834, -0.05833505094051361, -0.012174908071756363, -0.0686163380742073, 0.004532651975750923, -0.0668695867061615, -0.002930403919890523, -0.08551222085952759, 0.003964907955378294, 0.026374919340014458, -0.03462112322449684, -0.03800013288855553, -0.059040557593107224, -0.04271640628576279, 0.0356680192053318, 0.03258820250630379, 0.0749640017747879, -0.06876612454652786, 0.043856702744960785, -0.025527695193886757, -0.04055687040090561, 0.04930299147963524, 0.06762254983186722, 0.05416155606508255, -0.0000011359408063071896, 0.09052974730730057, -0.023396015167236328, -0.033172834664583206, 0.08226091414690018, -0.003097889246419072, 0.0225201603025198, 0.06295857578516006, -0.05154506117105484, -0.022809548303484917, 0.06164448335766792, -0.01719248853623867, 0.025234179571270943, -0.0406479611992836, 0.07941926270723343, 0.01792493276298046, 0.01902804896235466, -0.0448283925652504, -0.07745935022830963, -0.11653364449739456, -0.05572355538606644, -0.07094163447618484, -0.018423056229948997, -0.033750541508197784, -0.06276968866586685, 0.08576586097478867, -0.0067311679013073444, 0.11856596171855927, -0.011409882456064224, 0.031477902084589005, 0.05533215403556824, 0.055562302470207214, 0.04319009184837341, 0.0649760514497757, 0.04143824428319931, 0.07471445202827454, -0.0503031387925148, 0.1083936020731926, -0.01689106784760952, -4.9063817897376794e-8, 0.06239326670765877, 0.03758241981267929, -0.03158542141318321, 0.007060627918690443, 0.0020310934633016586, -0.07699578255414963, -0.009645385667681694, 0.05239073932170868, 0.012514195404946804, 0.06347671151161194, 0.05749963968992233, -0.010184512473642826, -0.0713636577129364, -0.04989330843091011, 0.03746873885393143, 0.044940847903490067, 0.010339451022446156, 0.07724454998970032, -0.05574417486786842, -0.00748362485319376, -0.04446340724825859, -0.03747567906975746, -0.003894532797858119, 0.0073188235983252525, 0.033633917570114136, 0.008908550255000591, 0.07049373537302017, 0.019586749374866486, 0.022019777446985245, 0.0068317013792693615, 0.06478186696767807, 0.0395188145339489, 0.015026327222585678, 0.030107321217656136, 0.031402040272951126, 0.08911512792110443, 0.022974317893385887, 0.027251023799180984, 0.04615214839577675, 0.04489896818995476, -0.043636713176965714, -0.04156181961297989, -0.031796522438526154, 0.037402693182229996, 0.017079852521419525, 0.037989139556884766, -0.03743510693311691, -0.00501836696639657, -0.04902126267552376, 0.0827472060918808, -0.06046917289495468, 0.034609779715538025, -0.02932945266366005, 0.015313836745917797, 0.035046231001615524, 0.04798222333192825, -0.03549426794052124, -0.008236235938966274, 0.08676156401634216, 0.053216468542814255, 0.07192190736532211, 0.06407209485769272, 0.020837979391217232, 0.024109939113259315 ]
0.137628
Storage capacity is limited and may vary depending on the node on which a pod runs: network-attached storage might not be accessible by all nodes, or storage is local to a node to begin with. {{< feature-state for\_k8s\_version="v1.24" state="stable" >}} This page describes how Kubernetes keeps track of storage capacity and how the scheduler uses that information to [schedule Pods](/docs/concepts/scheduling-eviction/) onto nodes that have access to enough storage capacity for the remaining missing volumes. Without storage capacity tracking, the scheduler may choose a node that doesn't have enough capacity to provision a volume and multiple scheduling retries will be needed. ## {{% heading "prerequisites" %}} Kubernetes v{{< skew currentVersion >}} includes cluster-level API support for storage capacity tracking. To use this you must also be using a CSI driver that supports capacity tracking. Consult the documentation for the CSI drivers that you use to find out whether this support is available and, if so, how to use it. If you are not running Kubernetes v{{< skew currentVersion >}}, check the documentation for that version of Kubernetes. ## API There are two API extensions for this feature: - [CSIStorageCapacity](/docs/reference/kubernetes-api/config-and-storage-resources/csi-storage-capacity-v1/) objects: these get produced by a CSI driver in the namespace where the driver is installed. Each object contains capacity information for one storage class and defines which nodes have access to that storage. - [The `CSIDriverSpec.StorageCapacity` field](/docs/reference/kubernetes-api/config-and-storage-resources/csi-driver-v1/#CSIDriverSpec): when set to `true`, the Kubernetes scheduler will consider storage capacity for volumes that use the CSI driver. ## Scheduling Storage capacity information is used by the Kubernetes scheduler if: - a Pod uses a volume that has not been created yet, - that volume uses a {{< glossary\_tooltip text="StorageClass" term\_id="storage-class" >}} which references a CSI driver and uses `WaitForFirstConsumer` [volume binding mode](/docs/concepts/storage/storage-classes/#volume-binding-mode), and - the `CSIDriver` object for the driver has `StorageCapacity` set to true. In that case, the scheduler only considers nodes for the Pod which have enough storage available to them. This check is very simplistic and only compares the size of the volume against the capacity listed in `CSIStorageCapacity` objects with a topology that includes the node. For volumes with `Immediate` volume binding mode, the storage driver decides where to create the volume, independently of Pods that will use the volume. The scheduler then schedules Pods onto nodes where the volume is available after the volume has been created. For [CSI ephemeral volumes](/docs/concepts/storage/ephemeral-volumes/#csi-ephemeral-volumes), scheduling always happens without considering storage capacity. This is based on the assumption that this volume type is only used by special CSI drivers which are local to a node and do not need significant resources there. ## Rescheduling When a node has been selected for a Pod with `WaitForFirstConsumer` volumes, that decision is still tentative. The next step is that the CSI storage driver gets asked to create the volume with a hint that the volume is supposed to be available on the selected node. Because Kubernetes might have chosen a node based on out-dated capacity information, it is possible that the volume cannot really be created. The node selection is then reset and the Kubernetes scheduler tries again to find a node for the Pod. ## Limitations Storage capacity tracking increases the chance that scheduling works on the first try, but cannot guarantee this because the scheduler has to decide based on potentially out-dated information. Usually, the same retry mechanism as for scheduling without any storage capacity information handles scheduling failures. One situation where scheduling can fail permanently is when a Pod uses multiple volumes: one volume might have been created already in a topology segment which then does not have enough capacity left for
null
./vendor/kubernetes/content/en/docs/concepts/storage/storage-capacity.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/storage/storage-capacity.md
[ 0.03581399843096733, 0.014269381761550903, 0.05074445903301239, 0.09172870218753815, 0.004696917720139027, 0.01783248409628868, -0.07624176889657974, -0.02323145419359207, 0.037898555397987366, 0.051114846020936966, -0.05730835720896721, -0.015695396810770035, -0.005426822695881128, 0.006280583795160055, -0.032871417701244354, -0.015333928167819977, 0.03671310842037201, -0.02251826599240303, -0.03643779829144478, -0.02913549914956093, 0.016653692349791527, 0.02334451861679554, 0.03403601422905922, 0.00555721390992403, -0.043624889105558395, -0.0012889334466308355, -0.08423216640949249, -0.05692729353904724, 0.004078999627381563, 0.017300762236118317, -0.056077055633068085, -0.0430242195725441, 0.05157111585140228, 0.031114906072616577, 0.08999966084957123, 0.040721237659454346, -0.020325858145952225, -0.04126642271876335, -0.043111737817525864, 0.017031652852892876, 0.048997338861227036, -0.005122258327901363, -0.11161402612924576, 0.010312369093298912, -0.034054748713970184, 0.02029038965702057, -0.05960017815232277, -0.022672953084111214, -0.021361714228987694, -0.01084933802485466, 0.042518019676208496, -0.094126857817173, 0.08796211332082748, 0.07143283635377884, 0.0403737872838974, 0.03515589237213135, -0.0035593428183346987, 0.040977541357278824, 0.07463566958904266, -0.001998297171667218, 0.07231733202934265, -0.07526746392250061, 0.06509099900722504, -0.06834887713193893, 0.00006102765109972097, 0.007449084892868996, 0.02404152974486351, 0.05349190905690193, -0.03891655057668686, 0.0255297739058733, 0.07387232780456543, 0.06517423689365387, -0.05149247869849205, 0.04782820865511894, 0.005792825482785702, 0.01534555945545435, 0.06745706498622894, 0.0951550304889679, 0.020050348713994026, -0.016985028982162476, -0.03683178126811981, -0.018054477870464325, 0.006854228675365448, -0.023413866758346558, -0.11086910963058472, -0.08471628278493881, -0.05647313967347145, 0.004109763540327549, 0.0018691045697778463, -0.034822460263967514, 0.03325893357396126, 0.051628634333610535, 0.020201975479722023, -0.1331561952829361, 0.02972532995045185, 0.031215813010931015, -0.053299445658922195, 0.02946322038769722, 0.03794138878583908, -0.0269077830016613, 0.04786740988492966, 0.014232602901756763, 0.01960734650492668, -0.009564407169818878, 0.031034836545586586, -0.050561074167490005, -0.034137506037950516, -0.004834502935409546, -0.05882037431001663, 0.07479218393564224, 0.07417356967926025, 0.08258561789989471, -0.0064385561272501945, 0.033293500542640686, 0.07427676022052765, 0.07929892092943192, -0.04066096618771553, 0.00124216522090137, 0.04889250546693802, 0.0733732208609581, 0.03450043499469757, -0.10708928108215332, 0.019991643726825714, -0.020946212112903595, -0.0028278713580220938, 0.02567072957754135, 0.000012421759493008722, 5.041726494745485e-33, -0.010655874386429787, -0.08204442262649536, 0.011539173312485218, -0.07027966529130936, 0.027776775881648064, -0.10908275842666626, -0.011468320153653622, 0.01187106128782034, -0.04708169773221016, -0.10607605427503586, -0.09200693666934967, 0.08041949570178986, -0.0015771199250593781, -0.05161379277706146, -0.0012610744452103972, -0.03289489820599556, 0.01893243007361889, 0.05816904082894325, 0.10292541980743408, -0.06517904996871948, 0.05217210203409195, -0.11680217832326889, -0.035552576184272766, -0.0004016072489321232, 0.008883760310709476, -0.051103945821523666, 0.09239131957292557, -0.10005838423967361, -0.012118034064769745, 0.0014041885733604431, -0.04674817994236946, 0.043965671211481094, 0.024533256888389587, 0.01097850687801838, -0.08912047743797302, -0.026181692257523537, -0.02818278968334198, 0.04229726642370224, -0.06853242218494415, -0.034756239503622055, 0.03922735154628754, -0.002807589480653405, 0.01610558107495308, -0.05664307251572609, 0.015185702592134476, -0.03721294552087784, 0.05205875262618065, -0.08173386007547379, -0.0078003485687077045, 0.12411317229270935, 0.0032735439017415047, -0.040658917278051376, -0.019697513431310654, -0.05188993364572525, 0.03528928384184837, 0.015191762708127499, 0.08431776612997055, -0.09301868826150894, 0.004973248112946749, -0.026369718834757805, -0.02053878642618656, -0.019590942189097404, 0.06401953101158142, -0.01914459653198719, 0.012654455378651619, 0.021330853924155235, -0.010022924281656742, 0.03485868498682976, 0.009470763616263866, 0.011063620448112488, -0.0076831309124827385, 0.0028144826646894217, -0.003184038680046797, 0.02500837855041027, -0.020587651059031487, -0.0857093334197998, -0.001587918377481401, -0.0044576553627848625, -0.12108989804983139, 0.06756928563117981, 0.01685561239719391, -0.06550289690494537, -0.011770437471568584, 0.080560602247715, -0.01548254769295454, -0.0834890678524971, 0.013856913894414902, 0.0816902220249176, -0.031534481793642044, 0.014442973770201206, 0.05643855035305023, -0.07633920758962631, -0.08901984244585037, -0.0018774430500343442, -0.06717252731323242, -4.655214401303516e-33, 0.12144520878791809, 0.027509070932865143, -0.0030973588582128286, -0.009890204295516014, 0.00394732179120183, 0.02316947467625141, -0.04640847072005272, 0.028692875057458878, -0.007613626308739185, -0.08722498267889023, -0.09913424402475357, -0.053184494376182556, 0.04037594422698021, 0.03690384328365326, -0.10791220515966415, -0.002017468912526965, -0.07062096148729324, -0.066207155585289, 0.026019830256700516, 0.02922806143760681, -0.02590876817703247, -0.06333661079406738, 0.04483834654092789, 0.07060354202985764, -0.009083344601094723, 0.003939678892493248, 0.009976470842957497, 0.049711987376213074, -0.0647311732172966, 0.001243714476004243, -0.013515261001884937, -0.17553380131721497, 0.02046712301671505, 0.03792991861701012, 0.0749942883849144, -0.053156521171331406, -0.042635079473257065, 0.05132417753338814, 0.012515556998550892, 0.024481432512402534, 0.0613890215754509, -0.008364340290427208, -0.052409473806619644, -0.018410731106996536, -0.03876567259430885, 0.023136092349886894, 0.06380080431699753, 0.006125906482338905, 0.02301808074116707, -0.09845829010009766, -0.005232062190771103, -0.02189864031970501, -0.07356186211109161, 0.11995763331651688, -0.0027624547947198153, 0.07006712257862091, 0.01214880682528019, 0.07895686477422714, -0.030870547518134117, 0.02750704064965248, 0.03893953934311867, -0.09579422324895859, 0.07108473032712936, -0.021051347255706787, -0.042083483189344406, -0.0797220915555954, 0.01318809948861599, -0.029824981465935707, -0.06408470869064331, 0.036630719900131226, 0.015798214823007584, 0.0195393618196249, 0.07727879285812378, 0.072392538189888, -0.029969457536935806, -0.020974095910787582, -0.004641016945242882, 0.019151410087943077, 0.0435514971613884, 0.006139952223747969, -0.09433051943778992, 0.06771831214427948, -0.07102392613887787, 0.0003663651295937598, 0.03817085921764374, 0.053941626101732254, 0.06122129037976265, 0.03743695840239525, 0.025069497525691986, 0.05140094831585884, 0.015341524966061115, 0.03364189714193344, -0.07177986949682236, 0.11715725809335709, 0.0025208713486790657, -5.238786471295498e-8, 0.06163216009736061, 0.042189568281173706, -0.02870354615151882, 0.02764328196644783, 0.03589332103729248, -0.09002125263214111, 0.09415711462497711, 0.02824157476425171, -0.017992675304412842, 0.08998610079288483, 0.04871011897921562, 0.0067048342898488045, -0.06109367311000824, -0.028405962511897087, 0.01486376952379942, 0.008813843131065369, -0.0000019410492768656695, 0.02509136125445366, 0.002810512902215123, -0.040788132697343826, 0.016477296128869057, -0.08068627119064331, 0.014192096889019012, -0.0033952640369534492, 0.049995988607406616, 0.036185964941978455, 0.01157882995903492, 0.04116849973797798, 0.045482099056243896, -0.04678639769554138, 0.010641461238265038, 0.0037827652413398027, -0.03425321355462074, 0.04620635509490967, 0.014709703624248505, 0.0308969859033823, -0.12459735572338104, 0.05137546360492706, 0.0463680773973465, 0.06735940277576447, -0.017276784405112267, -0.05573255568742752, -0.037530649453401566, -0.004187065176665783, 0.048100635409355164, 0.0471014641225338, -0.07768940925598145, 0.09831266105175018, -0.03320096805691719, 0.012714182026684284, 0.0007625482394360006, -0.07526032626628876, -0.014816610142588615, 0.10872744023799896, -0.028214093297719955, 0.002836529863998294, 0.012304023839533329, -0.02123534306883812, 0.015572812408208847, 0.028770552948117256, 0.014642653986811638, 0.042511455714702606, -0.0409780815243721, -0.02323758788406849 ]
0.112731
Usually, the same retry mechanism as for scheduling without any storage capacity information handles scheduling failures. One situation where scheduling can fail permanently is when a Pod uses multiple volumes: one volume might have been created already in a topology segment which then does not have enough capacity left for another volume. Manual intervention is necessary to recover from this, for example by increasing capacity or deleting the volume that was already created. ## {{% heading "whatsnext" %}} - For more information on the design, see the [Storage Capacity Constraints for Pod Scheduling KEP](https://github.com/kubernetes/enhancements/blob/master/keps/sig-storage/1472-storage-capacity-tracking/README.md).
null
./vendor/kubernetes/content/en/docs/concepts/storage/storage-capacity.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/storage/storage-capacity.md
[ 0.007914192043244839, 0.027278997004032135, 0.09717701375484467, 0.09730050712823868, -0.036106742918491364, -0.019467921927571297, -0.056723687797784805, -0.03908662125468254, 0.02790580689907074, 0.024862539023160934, -0.028760086745023727, 0.047277431935071945, -0.012022115290164948, -0.01914050430059433, -0.0876389890909195, -0.0955306813120842, 0.014971951954066753, 0.02257217839360237, -0.019977962598204613, -0.054749321192502975, 0.041924990713596344, 0.018991807475686073, -0.02720847725868225, 0.02102844789624214, -0.08166033029556274, 0.010357226245105267, -0.07852344959974289, -0.014805879443883896, -0.01665133237838745, -0.0463503859937191, -0.060554783791303635, -0.004603509325534105, -0.0030313581228256226, 0.007868359796702862, 0.10244856029748917, 0.07510283589363098, -0.04035673290491104, -0.08954472839832306, -0.05212987959384918, -0.040454357862472534, 0.0024654739536345005, -0.04666906222701073, -0.10957768559455872, 0.04198583588004112, -0.0037308698520064354, 0.03154591843485832, -0.06063496693968773, -0.029701055958867073, -0.04922037199139595, -0.020146669819951057, 0.031664617359638214, -0.05025370419025421, 0.09749531000852585, 0.08705919981002808, 0.07323765754699707, 0.06176295503973961, 0.00866116862744093, 0.0755879208445549, 0.04406697303056717, 0.04300902783870697, 0.05077778548002243, -0.03436769172549248, 0.02266855537891388, -0.03510639816522598, 0.07554471492767334, 0.022185800597071648, 0.05888671055436134, 0.03669917955994606, -0.005596662871539593, 0.04175153747200966, 0.1080072745680809, 0.017573028802871704, -0.05878940969705582, 0.05666477978229523, -0.007278261706233025, 0.021199481561779976, -0.007049598731100559, 0.05298064276576042, 0.040075723081827164, 0.01423931960016489, -0.044726260006427765, 0.00339630339294672, 0.038576848804950714, -0.039847902953624725, -0.027330558747053146, -0.0961565226316452, -0.03403574600815773, 0.04208798706531525, 0.040702514350414276, -0.05862536281347275, 0.002089506248012185, 0.03221031278371811, 0.013870760798454285, -0.06437279284000397, 0.03225468471646309, 0.015796473249793053, -0.053203035145998, 0.022986598312854767, 0.04626014456152916, -0.06792213022708893, 0.031569208949804306, 0.03163875639438629, 0.0006269023870117962, 0.008168058469891548, 0.06366372853517532, -0.10541103035211563, -0.029912849888205528, 0.025503069162368774, -0.05472814291715622, 0.02134454809129238, 0.06909284740686417, 0.029601389542222023, 0.07554320991039276, 0.01629927195608616, 0.08177421241998672, 0.09714298695325851, -0.0552491620182991, 0.03310450166463852, 0.013184322975575924, 0.006490787956863642, 0.02478303574025631, -0.052825137972831726, 0.0360584482550621, -0.04991327226161957, -0.03502983599901199, 0.04325123131275177, 0.027145149186253548, 3.71692636161152e-33, -0.011903949081897736, -0.07931465655565262, 0.0038347882218658924, -0.07467111200094223, 0.0073271747678518295, -0.12773652374744415, -0.01934433914721012, 0.022516634315252304, 0.006783744320273399, -0.11596612632274628, -0.034447044134140015, 0.024236969649791718, -0.05154713615775108, -0.053698934614658356, -0.002241520443931222, -0.029968785122036934, -0.024382205680012703, 0.10694601386785507, 0.03959416225552559, -0.0189172625541687, 0.006166976876556873, -0.0810212641954422, -0.020427178591489792, -0.02283615805208683, 0.06427301466464996, 0.02290046028792858, 0.03992609307169914, -0.09198987483978271, -0.01477472111582756, 0.009204852394759655, -0.0628572553396225, 0.06505011022090912, -0.029696928337216377, 0.02654958702623844, -0.08091091364622116, -0.044725410640239716, 0.010816896334290504, 0.03470943123102188, -0.07587622851133347, -0.00041813694406300783, 0.055726028978824615, 0.013002845458686352, 0.033182017505168915, -0.04358047991991043, 0.012976174242794514, -0.04594370350241661, 0.03576948121190071, -0.06916173547506332, -0.029283227398991585, 0.03236662223935127, 0.02933899685740471, 0.0013208338059484959, -0.0058961110189557076, -0.044171661138534546, 0.011497915722429752, -0.023960106074810028, 0.07714109867811203, -0.07356465607881546, -0.015754060819745064, 0.05780884996056557, 0.03358646482229233, 0.019495435059070587, 0.03880899026989937, 0.025479385629296303, 0.023703237995505333, 0.054620347917079926, -0.0036212599370628595, 0.0030492229852825403, 0.01192101463675499, 0.0077526867389678955, -0.044549524784088135, -0.02214709296822548, 0.0007133025210350752, -0.022004762664437294, -0.03447168692946434, -0.10123161226511002, 0.07888635247945786, 0.01878357119858265, -0.07009869813919067, -0.0008501848788000643, 0.07990442216396332, -0.08404004573822021, 0.0031513867434114218, 0.04192892462015152, -0.03211529180407524, -0.08529777824878693, 0.016765546053647995, 0.057202424854040146, -0.03061777725815773, -0.029830068349838257, 0.030895691365003586, -0.045855168253183365, -0.05896872282028198, 0.03800853341817856, -0.05061227083206177, -3.290948882050616e-33, 0.0978793203830719, -0.01229843869805336, 0.006901060696691275, 0.016288653016090393, 0.0033059511333703995, 0.021682044491171837, -0.029076848179101944, 0.04044011980295181, 0.019857244566082954, -0.08859279006719589, -0.05278409272432327, -0.08894172310829163, 0.08248152583837509, 0.07200805842876434, -0.12151871621608734, -0.05635783076286316, -0.07989595830440521, -0.09344656765460968, 0.0009397711255587637, 0.05662694200873375, 0.03384137153625488, -0.08280733972787857, 0.04745348170399666, 0.027856606990098953, -0.002926328219473362, 0.05390043184161186, 0.016337761655449867, -0.0015680799260735512, -0.06972301006317139, -0.049878381192684174, 0.07789840549230576, -0.19179348647594452, -0.017524393275380135, 0.058734647929668427, 0.11429351568222046, -0.031022178009152412, -0.04874328523874283, 0.08466586470603943, -0.01991073228418827, 0.03516621142625809, 0.10632172226905823, 0.06764916330575943, -0.05234043672680855, -0.010807765647768974, -0.013107037171721458, 0.004707819316536188, 0.08472538739442825, -0.0631609559059143, 0.047699566930532455, -0.1048356369137764, -0.005349225364625454, -0.03097499907016754, -0.055130887776613235, 0.08041652292013168, -0.012454153969883919, 0.03533918783068657, 0.0015646397368982434, 0.039658281952142715, -0.03812829777598381, 0.05265793576836586, -0.022481700405478477, -0.08694802224636078, 0.086014524102211, 0.013500185683369637, 0.018850289285182953, -0.048210952430963516, 0.06829693913459778, -0.07724852859973907, -0.007386593613773584, 0.016008276492357254, 0.09126763790845871, 0.05448731780052185, 0.06876776367425919, 0.044610507786273956, 0.002089675283059478, 0.02128032222390175, -0.06216343864798546, -0.022657474502921104, 0.025255639106035233, -0.03477564454078674, -0.044039905071258545, 0.039803288877010345, -0.04618999361991882, 0.08426477015018463, 0.01815549097955227, 0.06480570882558823, 0.027623480185866356, 0.06469026207923889, 0.03716036304831505, -0.015568911097943783, -0.0031020604074001312, -0.03104393184185028, -0.08425983041524887, 0.1187320277094841, -0.0034592528827488422, -4.3572285335358174e-8, 0.03118610568344593, 0.010285553522408009, -0.01888008415699005, 0.009950190782546997, 0.11079146713018417, -0.12050499022006989, 0.07931610941886902, 0.01619545929133892, -0.0025646446738392115, 0.04789186269044876, 0.028264256194233894, 0.03772268071770668, -0.0266901645809412, -0.021870693191885948, 0.0027163065969944, -0.03270675241947174, 0.012089613825082779, 0.03538469597697258, 0.006330043077468872, -0.08405333757400513, -0.0127854123711586, -0.05416622757911682, 0.03398795425891876, -0.008166094310581684, -0.004639199934899807, 0.052153266966342926, 0.07362338900566101, 0.05743268132209778, 0.08750859647989273, -0.043699704110622406, -0.05366777628660202, -0.013556872494518757, 0.03074188157916069, 0.07362306118011475, 0.0005262831109575927, 0.027123143896460533, -0.09767301380634308, 0.057585254311561584, 0.0268939808011055, 0.006434428971260786, -0.026104506105184555, -0.009978053160011768, -0.024588532745838165, 0.024357615038752556, 0.04135745391249657, 0.032337259501218796, -0.05559400096535683, 0.08682548254728317, -0.06274116039276123, 0.016462096944451332, -0.04057364538311958, -0.05225711688399315, -0.015210109762847424, 0.04970524087548256, -0.014392998069524765, -0.007363094482570887, 0.010551226325333118, -0.020943379029631615, -0.00828568171709776, -0.0032222524750977755, 0.019372768700122833, 0.020861200988292694, -0.032894544303417206, 0.0024405906442552805 ]
0.134958
This page provides an storage overview specific to the Windows operating system. ## Persistent storage {#storage} Windows has a layered filesystem driver to mount container layers and create a copy filesystem based on NTFS. All file paths in the container are resolved only within the context of that container. \* With Docker, volume mounts can only target a directory in the container, and not an individual file. This limitation does not apply to containerd. \* Volume mounts cannot project files or directories back to the host filesystem. \* Read-only filesystems are not supported because write access is always required for the Windows registry and SAM database. However, read-only volumes are supported. \* Volume user-masks and permissions are not available. Because the SAM is not shared between the host & container, there's no mapping between them. All permissions are resolved within the context of the container. As a result, the following storage functionality is not supported on Windows nodes: \* Volume subpath mounts: only the entire volume can be mounted in a Windows container \* Subpath volume mounting for Secrets \* Host mount projection \* Read-only root filesystem (mapped volumes still support `readOnly`) \* Block device mapping \* Memory as the storage medium (for example, `emptyDir.medium` set to `Memory`) \* File system features like uid/gid; per-user Linux filesystem permissions \* Setting [secret permissions with DefaultMode](/docs/tasks/inject-data-application/distribute-credentials-secure/#set-posix-permissions-for-secret-keys) (due to UID/GID dependency) \* NFS based storage/volume support \* Expanding the mounted volume (resizefs) Kubernetes {{< glossary\_tooltip text="volumes" term\_id="volume" >}} enable complex applications, with data persistence and Pod volume sharing requirements, to be deployed on Kubernetes. Management of persistent volumes associated with a specific storage back-end or protocol includes actions such as provisioning/de-provisioning/resizing of volumes, attaching/detaching a volume to/from a Kubernetes node and mounting/dismounting a volume to/from individual containers in a pod that needs to persist data. Volume management components are shipped as Kubernetes volume [plugin](/docs/concepts/storage/volumes/#volume-types). The following broad classes of Kubernetes volume plugins are supported on Windows: \* [`FlexVolume plugins`](/docs/concepts/storage/volumes/#flexvolume) \* Please note that FlexVolumes have been deprecated as of 1.23 \* [`CSI Plugins`](/docs/concepts/storage/volumes/#csi) ##### In-tree volume plugins The following in-tree plugins support persistent storage on Windows nodes: \* [`azureFile`](/docs/concepts/storage/volumes/#azurefile) \* [`vsphereVolume`](/docs/concepts/storage/volumes/#vspherevolume)
null
./vendor/kubernetes/content/en/docs/concepts/storage/windows-storage.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/storage/windows-storage.md
[ -0.019173286855220795, -0.00734068313613534, -0.056582506746053696, 0.08180782198905945, 0.019784487783908844, 0.016385605558753014, -0.005712973419576883, 0.025447903200984, 0.030525190755724907, 0.025188017636537552, -0.0600566491484642, 0.008589798584580421, 0.034522894769907, 0.05266107991337776, -0.0677536204457283, -0.03243207558989525, 0.01579836942255497, 0.08119883388280869, -0.06758278608322144, 0.0833984985947609, -0.03479177877306938, 0.032878730446100235, 0.01947241649031639, -0.01445874385535717, 0.0019506962271407247, 0.006496332585811615, -0.07637006789445877, -0.09732376039028168, 0.05057681351900101, 0.0102846659719944, -0.025669269263744354, -0.07419253885746002, 0.0059551359154284, 0.019946951419115067, 0.023208241909742355, 0.026571596041321754, 0.041373204439878464, -0.07067212462425232, -0.10806816816329956, -0.08043541014194489, 0.028681380674242973, 0.017932334914803505, -0.07359469681978226, 0.030165381729602814, -0.03076552413403988, -0.020983649417757988, 0.0749167650938034, -0.02263815701007843, -0.10622134059667587, 0.05853269621729851, -0.06171756982803345, 0.0018907454796135426, 0.06474094837903976, 0.07851571589708328, -0.029315626248717308, -0.01729637198150158, -0.009321298450231552, 0.0965457335114479, -0.005277059506624937, -0.010583864524960518, 0.030158326029777527, -0.03039948083460331, 0.046130839735269547, -0.06346847116947174, 0.0503985621035099, 0.02796231396496296, -0.0895036906003952, 0.006496427580714226, -0.008584539406001568, -0.04498344659805298, 0.04513450711965561, 0.0752587765455246, -0.030543338507413864, 0.004751310683786869, 0.061539072543382645, 0.0569177120923996, 0.04040363430976868, 0.07216326892375946, -0.002868862822651863, -0.002484138822183013, 0.020190274342894554, 0.009883138351142406, 0.03347405418753624, -0.06551169604063034, -0.10654111206531525, 0.01346992701292038, -0.08814502507448196, 0.08190925419330597, -0.0734136700630188, -0.06423457711935043, 0.051085688173770905, -0.02113451436161995, -0.01729457639157772, -0.04665212333202362, 0.06035736948251724, -0.09157919883728027, -0.04350165277719498, 0.03006828762590885, 0.059946004301309586, -0.05843023583292961, 0.00024070822109933943, 0.037086617201566696, -0.0446435809135437, -0.012814086861908436, 0.012118623591959476, -0.04309661313891411, -0.010894842445850372, -0.04008049517869949, -0.05371537804603577, 0.016312969848513603, 0.002885873429477215, 0.044478997588157654, -0.06295611709356308, 0.005273705814033747, 0.017920270562171936, -0.11111609637737274, -0.07024969160556793, 0.011144447140395641, -0.04403295740485191, 0.025828223675489426, 0.00587486894801259, -0.04288864880800247, 0.04536948725581169, -0.05007581412792206, 0.033452898263931274, 0.0043137469328939915, -0.09789490699768066, 7.499280738789808e-33, -0.03563959151506424, -0.08584306389093399, 0.10552182048559189, 0.04667288437485695, 0.10280278325080872, -0.07172495126724243, 0.037192441523075104, -0.07892654836177826, -0.063454270362854, -0.04199099540710449, -0.0414397306740284, 0.04802602902054787, -0.010142723098397255, -0.057312168180942535, 0.07421402633190155, 0.031945690512657166, -0.008489120751619339, -0.014826244674623013, 0.0741308256983757, -0.02710035629570484, 0.02715805359184742, 0.042065560817718506, -0.038923751562833786, -0.05775153264403343, 0.03739769011735916, -0.07070277631282806, 0.05252213403582573, -0.08845671266317368, 0.053538478910923004, 0.006601574830710888, -0.07507789134979248, 0.010055296123027802, 0.05532161518931389, 0.0016553830355405807, -0.003761560656130314, -0.0033110433723777533, 0.019552361220121384, 0.03337949514389038, -0.07137195020914078, -0.06469466537237167, 0.02133709378540516, -0.11254287511110306, 0.09424085170030594, 0.07449483126401901, -0.046237554401159286, -0.0720343291759491, -0.010355763137340546, 0.04987567290663719, -0.05254238098859787, 0.12351982295513153, 0.006951153744012117, -0.0011926926672458649, -0.08479323238134384, -0.018505021929740906, 0.0020446216221898794, -0.039680421352386475, -0.06692446768283844, -0.029139934107661247, -0.026443906128406525, 0.017034394666552544, -0.033302225172519684, 0.03493506833910942, 0.04873521998524666, 0.0023652869276702404, -0.09757418185472488, -0.012861577793955803, 0.008935770019888878, -0.0621519610285759, 0.007676300592720509, 0.055316194891929626, -0.0028608592692762613, 0.044429805129766464, -0.05217546597123146, -0.01012828852981329, -0.09009402990341187, -0.028601396828889847, 0.04770900681614876, -0.0505562387406826, 0.050435665994882584, 0.03152480348944664, -0.07314728945493698, -0.010407314635813236, -0.005972555838525295, 0.047550369054079056, -0.07368328422307968, -0.11982496827840805, -0.028719544410705566, 0.02231391705572605, 0.048561371862888336, -0.060728769749403, 0.0723351389169693, -0.009574517607688904, 0.03380386903882027, -0.0398724265396595, -0.06439341604709625, -8.128976164794015e-33, 0.023213976994156837, -0.03523838520050049, -0.037280477583408356, -0.020498480647802353, -0.06367865204811096, 0.04089637100696564, -0.023966047912836075, -0.05943697690963745, 0.010374974459409714, -0.08728089183568954, -0.08006330579519272, 0.0470132939517498, 0.03227255120873451, 0.04511038586497307, -0.05484255775809288, -0.02210514061152935, 0.025485696271061897, -0.07997617870569229, 0.07858579605817795, 0.04060117527842522, -0.017763497307896614, -0.001400875160470605, 0.00691200839355588, 0.08293358981609344, -0.022955918684601784, -0.027679599821567535, -0.021759025752544403, -0.011111916042864323, 0.002383606741204858, -0.009799403138458729, 0.05867312103509903, -0.020045218989253044, 0.02473595179617405, -0.06707864999771118, -0.028072712942957878, -0.029655680060386658, -0.002854051301255822, -0.014526029117405415, -0.1108856201171875, -0.01148833055049181, -0.040612347424030304, -0.04982118681073189, 0.030086537823081017, -0.0117662837728858, 0.01339870784431696, 0.041238926351070404, 0.0820760577917099, -0.04528522118926048, 0.0015770504251122475, 0.04175062105059624, 0.06799952685832977, -0.05407708138227463, 0.03052568808197975, 0.05537824332714081, 0.05051616206765175, 0.03200414031744003, -0.06203523650765419, -0.0002706513914745301, 0.002151148859411478, -0.0020550985354930162, 0.13272568583488464, -0.07318216562271118, -0.038382019847631454, 0.04688161984086037, -0.06970208138227463, -0.021576175466179848, 0.0283996369689703, -0.01431115623563528, -0.08284853398799896, 0.004782339092344046, 0.03545327112078667, -0.04471142590045929, 0.08040761947631836, 0.057627346366643906, -0.002717807190492749, -0.006564395967870951, -0.0124673405662179, -0.0157498586922884, -0.006576477084308863, 0.043205372989177704, -0.06110009178519249, 0.06901892274618149, -0.02778291516005993, 0.037882428616285324, 0.057067207992076874, 0.04868505895137787, 0.06040317192673683, 0.028243878856301308, -0.008272863924503326, -0.026688210666179657, -0.04233788326382637, 0.01472223736345768, -0.06649640947580338, 0.05863426625728607, 0.0232229046523571, -5.087064280928644e-8, 0.008221928961575031, 0.02196148782968521, -0.06926239281892776, -0.02485441043972969, -0.06337010860443115, -0.06938225775957108, 0.09405406564474106, 0.05908579006791115, -0.06476826220750809, 0.10265171527862549, 0.009313346818089485, -0.035612430423498154, -0.06472795456647873, -0.14434318244457245, 0.004595320671796799, 0.053218793123960495, 0.03305355831980705, 0.000711292726919055, 0.03117593750357628, -0.009144561365246773, 0.02587481401860714, 0.03407050669193268, -0.0005984558956697583, 0.0209845881909132, 0.030543528497219086, 0.042987678200006485, 0.040831342339515686, -0.034374237060546875, 0.04501566290855408, 0.043081074953079224, 0.07564033567905426, -0.02270277962088585, 0.034599803388118744, 0.1295248419046402, -0.007674668915569782, -0.010149024426937103, 0.05224897712469101, 0.11787109076976776, 0.03813726827502251, 0.03642702102661133, -0.030409639701247215, -0.0544283352792263, 0.017791826277971268, 0.01722606271505356, 0.00025116451433859766, 0.036745835095644, -0.014035104773938656, 0.08265069872140884, -0.030916539952158928, 0.011377690359950066, -0.024173088371753693, 0.015083933249115944, 0.007014975883066654, 0.08792097121477127, 0.0849621519446373, 0.10184064507484436, -0.01058931089937687, 0.05458005145192146, 0.030303537845611572, 0.0325193889439106, 0.047183405607938766, 0.12468011677265167, -0.005144577939063311, 0.029970897361636162 ]
0.026887
This document describes \_projected volumes\_ in Kubernetes. Familiarity with [volumes](/docs/concepts/storage/volumes/) is suggested. ## Introduction A `projected` volume maps several existing volume sources into the same directory. Currently, the following types of volume sources can be projected: \* [`secret`](/docs/concepts/storage/volumes/#secret) \* [`downwardAPI`](/docs/concepts/storage/volumes/#downwardapi) \* [`configMap`](/docs/concepts/storage/volumes/#configmap) \* [`serviceAccountToken`](#serviceaccounttoken) \* [`clusterTrustBundle`](#clustertrustbundle) \* [`podCertificate`](#podcertificate) All sources are required to be in the same namespace as the Pod. For more details, see the [all-in-one volume](https://git.k8s.io/design-proposals-archive/node/all-in-one-volume.md) design document. ### Example configuration with a secret, a downwardAPI, and a configMap {#example-configuration-secret-downwardapi-configmap} {{% code\_sample file="pods/storage/projected-secret-downwardapi-configmap.yaml" %}} ### Example configuration: secrets with a non-default permission mode set {#example-configuration-secrets-nondefault-permission-mode} {{% code\_sample file="pods/storage/projected-secrets-nondefault-permission-mode.yaml" %}} Each projected volume source is listed in the spec under `sources`. The parameters are nearly the same with two exceptions: \* For secrets, the `secretName` field has been changed to `name` to be consistent with ConfigMap naming. \* The `defaultMode` can only be specified at the projected level and not for each volume source. However, as illustrated above, you can explicitly set the `mode` for each individual projection. ## serviceAccountToken projected volumes {#serviceaccounttoken} You can inject the token for the current [service account](/docs/reference/access-authn-authz/authentication/#service-account-tokens) into a Pod at a specified path. For example: {{% code\_sample file="pods/storage/projected-service-account-token.yaml" %}} The example Pod has a projected volume containing the injected service account token. Containers in this Pod can use that token to access the Kubernetes API server, authenticating with the identity of [the pod's ServiceAccount](/docs/tasks/configure-pod-container/configure-service-account/). The `audience` field contains the intended audience of the token. A recipient of the token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. This field is optional and it defaults to the identifier of the API server. The `expirationSeconds` is the expected duration of validity of the service account token. It defaults to 1 hour and must be at least 10 minutes (600 seconds). An administrator can also limit its maximum value by specifying the `--service-account-max-token-expiration` option for the API server. The `path` field specifies a relative path to the mount point of the projected volume. {{< note >}} A container using a projected volume source as a [`subPath`](/docs/concepts/storage/volumes/#using-subpath) volume mount will not receive updates for those volume sources. {{< /note >}} ## clusterTrustBundle projected volumes {#clustertrustbundle} {{< feature-state feature\_gate\_name="ClusterTrustBundleProjection" >}} {{< note >}} To use this feature in Kubernetes {{< skew currentVersion >}}, you must enable support for ClusterTrustBundle objects with the `ClusterTrustBundle` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/) and `--runtime-config=certificates.k8s.io/v1beta1/clustertrustbundles=true` kube-apiserver flag, then enable the `ClusterTrustBundleProjection` feature gate. {{< /note >}} The `clusterTrustBundle` projected volume source injects the contents of one or more [ClusterTrustBundle](/docs/reference/access-authn-authz/certificate-signing-requests#cluster-trust-bundles) objects as an automatically-updating file in the container filesystem. ClusterTrustBundles can be selected either by [name](/docs/reference/access-authn-authz/certificate-signing-requests#ctb-signer-unlinked) or by [signer name](/docs/reference/access-authn-authz/certificate-signing-requests#ctb-signer-linked). To select by name, use the `name` field to designate a single ClusterTrustBundle object. To select by signer name, use the `signerName` field (and optionally the `labelSelector` field) to designate a set of ClusterTrustBundle objects that use the given signer name. If `labelSelector` is not present, then all ClusterTrustBundles for that signer are selected. The kubelet deduplicates the certificates in the selected ClusterTrustBundle objects, normalizes the PEM representations (discarding comments and headers), reorders the certificates, and writes them into the file named by `path`. As the set of selected ClusterTrustBundles or their content changes, kubelet keeps the file up-to-date. By default, the kubelet will prevent the pod from starting if the named ClusterTrustBundle is not found, or if `signerName` / `labelSelector` do not match any ClusterTrustBundles. If this behavior is not what you want, then set the `optional` field to `true`, and the pod will start up with an empty file at `path`. {{% code\_sample
null
./vendor/kubernetes/content/en/docs/concepts/storage/projected-volumes.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/storage/projected-volumes.md
[ -0.01896684244275093, -0.046714991331100464, 0.007335084956139326, -0.02355417236685753, 0.0014335073065012693, -0.003698567161336541, -0.025664735585451126, -0.015946485102176666, 0.10738570243120193, 0.014841273427009583, -0.022246014326810837, -0.05693105235695839, 0.09269566088914871, -0.004364752676337957, -0.029744703322649002, -0.05214635655283928, -0.0013182975817471743, 0.07608861476182938, -0.03043288365006447, -0.027841052040457726, 0.06554008275270462, 0.08873848617076874, 0.03314066305756569, -0.022258395329117775, -0.01405007392168045, -0.03491149842739105, -0.0459069199860096, -0.0031492982525378466, -0.0005483373533934355, -0.04338337853550911, 0.011629359796643257, 0.026634901762008667, 0.009895114228129387, 0.039171408861875534, 0.11011456698179245, 0.026630599051713943, -0.04179558530449867, 0.0017652937676757574, -0.0428091324865818, 0.030740194022655487, 0.04123846814036369, 0.026208169758319855, -0.06653917580842972, -0.03446943312883377, -0.09653681516647339, 0.004974589217454195, -0.018862424418330193, -0.06046130508184433, -0.010922730900347233, -0.0017486285651102662, 0.007126771379262209, -0.10686999559402466, 0.041839323937892914, 0.12901408970355988, 0.02212545834481716, 0.02208481729030609, -0.06308562308549881, 0.10642221570014954, 0.09314477443695068, -0.004228473640978336, 0.07081136107444763, -0.007757919374853373, 0.025998422876000404, -0.05749207362532616, 0.07277598977088928, 0.007357512600719929, -0.003202133346349001, 0.06912658363580704, -0.04745383933186531, -0.0008684768690727651, 0.08913443237543106, 0.06696061044931412, 0.007490026298910379, -0.02242858335375786, 0.04998266324400902, 0.024143336340785027, -0.02231874130666256, 0.07158353179693222, 0.018135182559490204, -0.0520656481385231, 0.03648804873228073, 0.06631822139024734, 0.019149741157889366, -0.039747267961502075, -0.08005435764789581, -0.03521963953971863, -0.04573150351643562, -0.014506998471915722, -0.005548145622014999, -0.027092844247817993, 0.011134831234812737, -0.10685008019208908, 0.051384445279836655, -0.06812454015016556, 0.06301796436309814, -0.048265766352415085, -0.06787377595901489, -0.004434642847627401, 0.11618273705244064, -0.025627417489886284, -0.044341180473566055, -0.017661621794104576, 0.02855786494910717, -0.013613580726087093, 0.048870015889406204, -0.0708305686712265, -0.018267640843987465, 0.0053110988810658455, -0.025788258761167526, 0.07176026701927185, 0.028383631259202957, 0.037896301597356796, -0.026327401399612427, 0.023798299953341484, 0.040293850004673004, 0.050598278641700745, -0.001496621174737811, 0.04362482577562332, -0.004199781455099583, 0.06187036260962486, -0.02918439731001854, -0.08211515843868256, 0.007548856548964977, 0.0449988953769207, -0.05212177336215973, 0.013598637655377388, -0.0755893737077713, 2.1598244838550775e-33, 0.03369574248790741, -0.06343622505664825, 0.01336668711155653, 0.023660145699977875, 0.038039885461330414, -0.052209462970495224, 0.0105838468298316, 0.01067293994128704, -0.03811900317668915, -0.07733191549777985, -0.06794170290231705, 0.13623835146427155, -0.06232967972755432, -0.009329494088888168, -0.05726169794797897, -0.02522110566496849, -0.016619008034467697, 0.15208135545253754, 0.027745911851525307, -0.06728730350732803, 0.012220392934978008, -0.031217502430081367, -0.024304386228322983, -0.049127284437417984, 0.015630140900611877, -0.060112930834293365, 0.08049421012401581, -0.09825771301984787, -0.041969168931245804, 0.03024362213909626, -0.09665342420339584, 0.023066014051437378, 0.0442681722342968, 0.0025460515171289444, -0.08095579594373703, 0.005059399176388979, -0.06223493069410324, 0.03663212060928345, -0.1325261890888214, -0.028398843482136726, 0.020534688606858253, 0.021260101348161697, 0.021564440801739693, -0.058601513504981995, 0.003609289415180683, 0.016518447548151016, -0.005658380221575499, -0.06880621612071991, 0.0745406523346901, 0.042142171412706375, 0.03728323057293892, -0.017855508252978325, -0.01582983322441578, -0.06641840934753418, 0.035313207656145096, -0.0006696684285998344, 0.027386046946048737, -0.07845332473516464, 0.011302406899631023, -0.013926651328802109, -0.08032850176095963, 0.010509949177503586, -0.022532088682055473, -0.007379260845482349, -0.035584185272455215, 0.05918877199292183, -0.04148826748132706, -0.01452635508030653, 0.04776432365179062, -0.005497452337294817, -0.07426552474498749, 0.006084067281335592, -0.039536502212285995, 0.028929561376571655, -0.026495179161429405, -0.05940575897693634, -0.025545746088027954, 0.018263747915625572, -0.07793519645929337, 0.03545569255948067, -0.07019980251789093, 0.012696083635091782, -0.07143431156873703, 0.09471743553876877, -0.011211727745831013, 0.003098611254245043, 0.03626173734664917, 0.009264348074793816, -0.04822086915373802, -0.011873508803546429, -0.0015838815597817302, -0.025010941550135612, -0.05238442122936249, -0.028185861185193062, -0.071922667324543, -2.5279902328875795e-33, 0.07033553719520569, 0.0015985536156222224, 0.04098280891776085, -0.025005068629980087, -0.007340037729591131, 0.08982758224010468, -0.013733964413404465, 0.026461854577064514, 0.004098549019545317, 0.0015672905137762427, -0.058937281370162964, -0.04142976924777031, 0.041381362825632095, -0.020275259390473366, -0.08608058094978333, 0.008690861985087395, -0.00016690586926415563, -0.02583310939371586, 0.020114390179514885, 0.035938914865255356, -0.024255074560642242, -0.010493803769350052, 0.03267701342701912, 0.05426311865448952, 0.008114776574075222, 0.01784469000995159, 0.0045694997534155846, 0.061388250440359116, -0.06067701801657677, 0.012030608020722866, -0.029986891895532608, -0.08815320581197739, -0.07020796090364456, -0.053926512598991394, -0.07295770198106766, -0.04905436187982559, -0.03147195279598236, 0.03032519482076168, -0.05108460411429405, -0.05395720154047012, -0.05058307573199272, -0.011814376339316368, -0.014401508495211601, -0.01524338312447071, -0.0806843563914299, -0.03967171534895897, 0.1349005401134491, -0.05724938213825226, 0.008613552898168564, -0.08111800998449326, -0.007753264624625444, 0.0045079756528139114, -0.06523104012012482, 0.06924884766340256, 0.00004494580571190454, 0.07881569117307663, -0.038620296865701675, 0.112321637570858, 0.012037263251841068, -0.019807513803243637, 0.07469036430120468, -0.06131831929087639, 0.031014833599328995, 0.026826990768313408, -0.04817377030849457, -0.04642081633210182, 0.026523800566792488, 0.04526009038090706, -0.0440097413957119, 0.05013806000351906, 0.016157029196619987, -0.02275083027780056, 0.09181001782417297, 0.0628470852971077, 0.01345761027187109, -0.043667022138834, 0.03368405997753143, -0.025432541966438293, 0.080205537378788, 0.02856244333088398, -0.10922406613826752, 0.05875749886035919, -0.0872650071978569, 0.05075014382600784, 0.13026809692382812, 0.02347625605762005, 0.134276881814003, 0.045200835913419724, 0.04421675577759743, 0.05320563539862633, -0.017208751291036606, 0.04683936759829521, -0.017117761075496674, 0.0748000517487526, 0.021347248926758766, -4.7746038234208754e-8, 0.061226505786180496, 0.025158153846859932, -0.025788962841033936, 0.04370080307126045, -0.06393667310476303, -0.09843668341636658, 0.050887420773506165, 0.11860565841197968, -0.041387271136045456, 0.028226938098669052, 0.04570486396551132, 0.02819344960153103, -0.04226582124829292, -0.015020382590591908, -0.036159612238407135, -0.0015024273889139295, -0.008053116500377655, 0.03836178779602051, -0.026295209303498268, -0.05197618156671524, -0.009418793953955173, 0.013781788758933544, 0.032215241342782974, -0.03550119698047638, 0.08251124620437622, 0.05925944074988365, 0.04264673590660095, -0.020470252260565758, 0.04661073908209801, -0.03449704498052597, 0.00692983902990818, 0.010417795740067959, -0.08681704849004745, 0.03125863894820213, -0.029105978086590767, 0.04536745324730873, -0.06305543333292007, 0.09891977906227112, -0.006018835119903088, 0.08719699829816818, -0.02943459339439869, -0.08732004463672638, -0.004815198481082916, 0.030787263065576553, 0.029869109392166138, 0.11326485872268677, -0.013631836511194706, 0.12642227113246918, -0.06327573210000992, 0.02038811706006527, -0.06820403784513474, -0.02924884296953678, 0.01912747137248516, 0.08296912908554077, 0.016425330191850662, 0.020014725625514984, -0.03802267834544182, -0.03741507604718208, 0.013489775359630585, 0.06245432049036026, 0.022881779819726944, 0.04369548708200455, -0.029385821893811226, 0.0037607091944664717 ]
0.101463
the pod from starting if the named ClusterTrustBundle is not found, or if `signerName` / `labelSelector` do not match any ClusterTrustBundles. If this behavior is not what you want, then set the `optional` field to `true`, and the pod will start up with an empty file at `path`. {{% code\_sample file="pods/storage/projected-clustertrustbundle.yaml" %}} ## podCertificate projected volumes {#podcertificate} {{< feature-state feature\_gate\_name="PodCertificateRequest" >}} {{< note >}} In Kubernetes {{< skew currentVersion >}}, you must enable support for Pod Certificates using the `PodCertificateRequest` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/) and the `--runtime-config=certificates.k8s.io/v1beta1/podcertificaterequests=true` kube-apiserver flag. {{< /note >}} The `podCertificate` projected volumes source securely provisions a private key and X.509 certificate chain for pod to use as client or server credentials. Kubelet will then handle refreshing the private key and certificate chain when they get close to expiration. The application just has to make sure that it reloads the file promptly when it changes, with a mechanism like `inotify` or polling. Each `podCertificate` projection supports the following configuration fields: \* `signerName`: The [signer](/docs/reference/access-authn-authz/certificate-signing-requests#signers) you want to issue the certificate. Note that signers may have their own access requirements, and may refuse to issue certificates to your pod. \* `keyType`: The type of private key that should be generated. Valid values are `ED25519`, `ECDSAP256`, `ECDSAP384`, `ECDSAP521`, `RSA3072`, and `RSA4096`. \* `maxExpirationSeconds`: The maximum lifetime you will accept for the certificate issued to the pod. If not set, will be defaulted to `86400` (24 hours). Must be at least `3600` (1 hour), and at most `7862400` (91 days). Kubernetes built-in signers are restricted to a max lifetime of `86400` (1 day). The signer is allowed to issue a certificate with a lifetime shorter than what you've specified. \* `credentialBundlePath`: Relative path within the projection where the credential bundle should be written. The credential bundle is a PEM-formatted file, where the first block is a "PRIVATE KEY" block that contains a PKCS#8-serialized private key, and the remaining blocks are "CERTIFICATE" blocks that comprise the certificate chain (leaf certificate and any intermediates). \* `keyPath` and `certificateChainPath`: Separate paths where Kubelet should write \*just\* the private key or certificate chain. \* `userAnnotations`: a map that allows you to pass additional information to the signer implementation. It is copied verbatim into the `spec.unverifiedUserAnnotations` field of the [PodCertificateRequest](docs/reference/access-authn-authz/certificate-signing-requests#pod-certificate-requests) objects that Kubelet creates. Entries are subject to the same validation as object metadata annotations, with the addition that all keys must be domain-prefixed. No restrictions are placed on values, except an overall size limitation on the entire field. Other than these basic validations, the API server does not conduct any extra validations. The signer implementations should be very careful when consuming this data. Signers must not inherently trust this data without first performing the appropriate verification steps. Signers should document the keys and values they support. Signers should deny requests that contain keys they do not recognize. {{< note >}} Most applications should prefer using `credentialBundlePath` unless they need the key and certificates in separate files for compatibility reasons. Kubelet uses an atomic writing strategy based on symlinks to make sure that when you open the files it projects, you read either the old content or the new content. However, if you read the key and certificate chain from separate files, Kubelet may rotate the credentials after your first read and before your second read, resulting in your application loading a mismatched key and certificate. {{< /note >}} {{% code\_sample file="pods/storage/projected-podcertificate.yaml" %}} ## SecurityContext interactions The [proposal](https://git.k8s.io/enhancements/keps/sig-storage/2451-service-account-token-volumes#proposal) for file permission handling in projected service account volume enhancement introduced the projected files having the correct owner permissions set. ### Linux In Linux pods that have a projected
null
./vendor/kubernetes/content/en/docs/concepts/storage/projected-volumes.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/storage/projected-volumes.md
[ 0.07619228959083557, -0.010142211802303791, 0.005522436462342739, 0.047286782413721085, 0.04301949962973595, 0.021232735365629196, -0.03205425664782524, 0.012410001829266548, 0.04839758947491646, 0.057149309664964676, 0.050873689353466034, -0.07752879709005356, 0.008103515021502972, 0.05269903689622879, 0.062398821115493774, -0.03083249181509018, 0.009009383618831635, 0.004040214233100414, 0.036252837628126144, -0.04881994426250458, 0.0006846034084446728, -0.006655980367213488, 0.05088774114847183, 0.030326368287205696, -0.035765163600444794, -0.05894617736339569, -0.07436008006334305, 0.0020546521991491318, -0.025959640741348267, -0.004996291361749172, 0.005104013253003359, 0.027615586295723915, 0.053434304893016815, 0.01693456433713436, 0.1692071110010147, 0.09244029223918915, 0.052991028875112534, -0.01776602491736412, -0.06927180290222168, 0.0017272534314543009, 0.06953481584787369, -0.0975533127784729, -0.09238491207361221, -0.02164844423532486, -0.02947838418185711, -0.0021317668724805117, 0.0013153394684195518, -0.07179030776023865, -0.021161114796996117, 0.03274478390812874, -0.01242966391146183, -0.10121942311525345, 0.036799293011426926, 0.0007711407379247248, -0.021370703354477882, 0.025080295279622078, -0.00712761003524065, 0.13953912258148193, 0.07555394619703293, 0.05584816634654999, 0.07016069442033768, -0.02449081465601921, 0.013074764050543308, -0.08358504623174667, 0.012277097441256046, 0.011839241720736027, 0.014411130920052528, 0.02119593508541584, -0.0242807324975729, -0.022844921797513962, 0.1285322606563568, 0.05585022270679474, 0.018025780096650124, -0.03171271085739136, -0.020565658807754517, -0.051555126905441284, -0.03713742643594742, 0.04328364133834839, 0.0544213131070137, -0.03516828641295433, -0.00918705202639103, 0.03184034675359726, 0.04056388512253761, -0.006586321629583836, -0.09756611287593842, 0.02602044679224491, 0.022861212491989136, -0.06124584749341011, -0.02446199394762516, -0.020365821197628975, -0.022730451077222824, -0.09330756217241287, -0.03706442192196846, -0.08511541783809662, 0.06450603157281876, 0.025287870317697525, -0.04910308122634888, 0.01259687915444374, 0.05895945429801941, -0.030127080157399178, 0.025169704109430313, -0.028018414974212646, -0.031598497182130814, -0.03544525429606438, 0.06991811096668243, 0.029679717496037483, -0.05234816297888756, -0.06192038953304291, 0.023760516196489334, 0.08169442415237427, 0.037922728806734085, 0.05033325031399727, -0.015979427844285965, 0.01580207794904709, -0.03208863362669945, 0.08269534260034561, -0.04120530188083649, 0.06758096069097519, -0.008608361706137657, 0.01140632200986147, 0.012632298283278942, -0.0773693323135376, -0.0012292151805013418, 0.052674226462841034, -0.09320150315761566, 0.017443852499127388, 0.0062634265050292015, 4.776346155419876e-33, 0.04303472489118576, -0.05703704059123993, 0.015568310394883156, -0.0038777117151767015, 0.005572161637246609, -0.09665128588676453, -0.005306603852659464, 0.051175959408283234, -0.07528489828109741, -0.016478246077895164, -0.04772859811782837, 0.05570486560463905, -0.02309609204530716, -0.04768636077642441, -0.0386265367269516, -0.07911352068185806, -0.09365846961736679, 0.043066464364528656, 0.05706845223903656, -0.03650863841176033, 0.0296175554394722, -0.05171438679099083, -0.010540502145886421, -0.02602863684296608, -0.0766400471329689, -0.026871109381318092, 0.036364223808050156, -0.0977950170636177, 0.030777590349316597, 0.017073633149266243, -0.02619592845439911, -0.05812380090355873, 0.09550005942583084, 0.011366481892764568, -0.10215139389038086, -0.032837409526109695, 0.044968850910663605, 0.009613493457436562, -0.10400280356407166, -0.042224638164043427, 0.044749192893505096, -0.01891433261334896, 0.044986359775066376, -0.05332464724779129, 0.04586344584822655, 0.02341979369521141, 0.055772315710783005, -0.07978162914514542, 0.11305573582649231, 0.013654634356498718, -0.044372882694005966, -0.05913931503891945, -0.003708776319399476, -0.07383608818054199, 0.024364188313484192, 0.012346548028290272, 0.005813904106616974, -0.028451239690184593, -0.10436288267374039, -0.07797388732433319, -0.048136357218027115, -0.005660194903612137, -0.0035023547243326902, -0.07904790341854095, -0.0042265173979103565, 0.08016712218523026, 0.034715935587882996, 0.03027612343430519, -0.0007683101575821638, 0.02444041147828102, -0.07977968454360962, 0.033621035516262054, -0.07596802711486816, 0.022735603153705597, 0.017357690259814262, -0.048306722193956375, 0.03666863590478897, 0.09166774153709412, -0.08425230532884598, 0.022691817954182625, -0.030020175501704216, -0.02315390668809414, -0.04818100109696388, 0.11111311614513397, 0.02766110561788082, -0.023431353271007538, 0.03378262743353844, 0.012914497405290604, -0.057343509048223495, -0.012123714201152325, 0.0176699198782444, 0.03249054774641991, -0.0410827212035656, 0.054282937198877335, -0.07536011189222336, -4.8768171269525954e-33, 0.09169644862413406, -0.020720507949590683, 0.027204057201743126, -0.010747687891125679, -0.03347861394286156, -0.013022235594689846, 0.015296918340027332, 0.10325822234153748, -0.008075050078332424, -0.018425090238451958, -0.03397320583462715, -0.07319023460149765, 0.04731688275933266, -0.022092116996645927, -0.12218207865953445, 0.004095262847840786, -0.08728621155023575, -0.007760879583656788, 0.04656168818473816, 0.04014024883508682, -0.01810733787715435, -0.004939946811646223, 0.017229391261935234, 0.07946537435054779, 0.014901227317750454, 0.0013822158798575401, 0.05443401262164116, -0.009837747551500797, -0.03354636952280998, -0.011388972401618958, 0.08158392459154129, -0.047415491193532944, -0.06363093107938766, 0.0046891034580767155, -0.037858739495277405, -0.044820308685302734, -0.03314818814396858, -0.009901750832796097, -0.03068743273615837, -0.047680117189884186, -0.026440022513270378, -0.01662006601691246, -0.09221578389406204, -0.029225142672657967, -0.004258265253156424, -0.037115056067705154, 0.10109208524227142, 0.015222233720123768, -0.0065628583543002605, -0.044320523738861084, 0.024445610120892525, 0.010871228761970997, -0.07746945321559906, 0.056030526757240295, -0.017201438546180725, 0.06280515342950821, -0.019778098911046982, 0.1188698410987854, -0.055611513555049896, 0.02395438961684704, 0.03823871910572052, -0.053723134100437164, 0.02960369922220707, -0.010987491346895695, -0.0019474787404760718, -0.04039793834090233, -0.009100580587983131, 0.07185202091932297, 0.009383712895214558, 0.03078390285372734, 0.005299287848174572, 0.008861744776368141, 0.019579896703362465, 0.020709363743662834, -0.007726361975073814, 0.00043305582948960364, -0.017913268879055977, -0.027458416298031807, 0.07561109960079193, 0.03782567009329796, 0.00449798908084631, 0.09673863649368286, -0.09014512598514557, 0.028146594762802124, 0.11309318989515305, 0.056093137711286545, 0.09435141086578369, 0.06628149747848511, 0.02659517526626587, 0.11367623507976532, 0.02966579981148243, 0.047885674983263016, 0.03467773646116257, 0.06928345561027527, -0.03443121537566185, -4.9639680810287246e-8, 0.060602009296417236, 0.05021042376756668, -0.053913846611976624, 0.028759725391864777, 0.028460675850510597, -0.001959688263013959, 0.046343009918928146, 0.0016562138916924596, -0.10233859717845917, -0.018720028921961784, -0.0563264898955822, 0.0015546922804787755, -0.1501818299293518, 0.02348640374839306, 0.0017862219829112291, -0.05249786749482155, 0.007878460921347141, 0.10752106457948685, 0.02189340814948082, -0.04855339974164963, -0.0332627072930336, -0.0676981583237648, -0.048236601054668427, -0.012205383740365505, 0.006313392426818609, 0.07475542277097702, 0.0651310533285141, -0.0006077961879782379, 0.06283514946699142, -0.03258791193366051, -0.049808043986558914, -0.008104044944047928, -0.0645381361246109, 0.014195941388607025, -0.03901490569114685, 0.10638124495744705, -0.06359058618545532, 0.06489501148462296, 0.020964011549949646, 0.041835881769657135, -0.0009123549098148942, 0.008746552281081676, -0.03677971288561821, -0.025063661858439445, -0.05949733406305313, 0.061212554574012756, 0.018440749496221542, 0.08643316477537155, -0.00851484015583992, 0.0560528039932251, -0.003365858690813184, -0.08387401700019836, -0.012316625565290451, 0.05355435982346535, -0.09092908352613449, 0.026750152930617332, -0.03381916135549545, -0.010177791118621826, -0.003083938965573907, -0.028338877484202385, 0.04897034168243408, -0.042103350162506104, 0.03800066187977791, -0.017236799001693726 ]
0.08002
in your application loading a mismatched key and certificate. {{< /note >}} {{% code\_sample file="pods/storage/projected-podcertificate.yaml" %}} ## SecurityContext interactions The [proposal](https://git.k8s.io/enhancements/keps/sig-storage/2451-service-account-token-volumes#proposal) for file permission handling in projected service account volume enhancement introduced the projected files having the correct owner permissions set. ### Linux In Linux pods that have a projected volume and `RunAsUser` set in the Pod [`SecurityContext`](/docs/reference/kubernetes-api/workload-resources/pod-v1/#security-context), the projected files have the correct ownership set including container user ownership. When all containers in a pod have the same `runAsUser` set in their [`PodSecurityContext`](/docs/reference/kubernetes-api/workload-resources/pod-v1/#security-context) or container [`SecurityContext`](/docs/reference/kubernetes-api/workload-resources/pod-v1/#security-context-1), then the kubelet ensures that the contents of the `serviceAccountToken` volume are owned by that user, and the token file has its permission mode set to `0600`. {{< note >}} {{< glossary\_tooltip text="Ephemeral containers" term\_id="ephemeral-container" >}} added to a Pod after it is created do \*not\* change volume permissions that were set when the pod was created. If a Pod's `serviceAccountToken` volume permissions were set to `0600` because all other containers in the Pod have the same `runAsUser`, ephemeral containers must use the same `runAsUser` to be able to read the token. {{< /note >}} ### Windows In Windows pods that have a projected volume and `RunAsUsername` set in the Pod `SecurityContext`, the ownership is not enforced due to the way user accounts are managed in Windows. Windows stores and manages local user and group accounts in a database file called Security Account Manager (SAM). Each container maintains its own instance of the SAM database, to which the host has no visibility into while the container is running. Windows containers are designed to run the user mode portion of the OS in isolation from the host, hence the maintenance of a virtual SAM database. As a result, the kubelet running on the host does not have the ability to dynamically configure host file ownership for virtualized container accounts. It is recommended that if files on the host machine are to be shared with the container then they should be placed into their own volume mount outside of `C:\`. By default, the projected files will have the following ownership as shown for an example projected volume file: ```powershell PS C:\> Get-Acl C:\var\run\secrets\kubernetes.io\serviceaccount\..2021\_08\_31\_22\_22\_18.318230061\ca.crt | Format-List Path : Microsoft.PowerShell.Core\FileSystem::C:\var\run\secrets\kubernetes.io\serviceaccount\..2021\_08\_31\_22\_22\_18.318230061\ca.crt Owner : BUILTIN\Administrators Group : NT AUTHORITY\SYSTEM Access : NT AUTHORITY\SYSTEM Allow FullControl BUILTIN\Administrators Allow FullControl BUILTIN\Users Allow ReadAndExecute, Synchronize Audit : Sddl : O:BAG:SYD:AI(A;ID;FA;;;SY)(A;ID;FA;;;BA)(A;ID;0x1200a9;;;BU) ``` This implies all administrator users like `ContainerAdministrator` will have read, write and execute access while, non-administrator users will have read and execute access. {{< note >}} In general, granting the container access to the host is discouraged as it can open the door for potential security exploits. Creating a Windows Pod with `RunAsUser` in it's `SecurityContext` will result in the Pod being stuck at `ContainerCreating` forever. So it is advised to not use the Linux only `RunAsUser` option with Windows Pods. {{< /note >}}
null
./vendor/kubernetes/content/en/docs/concepts/storage/projected-volumes.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/storage/projected-volumes.md
[ 0.021243419498205185, 0.047365885227918625, 0.03209861367940903, -0.009704533033072948, -0.028910908848047256, -0.03723863139748573, 0.025527164340019226, 0.03315548971295357, 0.06737083196640015, 0.04157298803329468, 0.005182781256735325, -0.07060471177101135, 0.04117083176970482, 0.039628613740205765, 0.013113821856677532, -0.04725506156682968, 0.029717694967985153, 0.04089684784412384, -0.014510927721858025, -0.014777205884456635, 0.025461846962571144, 0.007130767218768597, 0.0424765981733799, 0.028130799531936646, -0.028344018384814262, -0.024408547207713127, -0.04106297343969345, 0.01255343109369278, 0.004691697657108307, 0.004310572985559702, 0.009814759716391563, -0.03337717801332474, 0.019765334203839302, 0.002353308955207467, 0.07918953150510788, 0.09539513289928436, 0.06715837866067886, -0.0837256982922554, -0.05299678072333336, -0.01719602569937706, 0.04973628744482994, -0.03388432785868645, -0.09865746647119522, 0.01925751380622387, -0.041884101927280426, 0.025138026103377342, 0.03376518189907074, -0.08874218910932541, -0.021339600905776024, 0.029080288484692574, 0.010148278437554836, -0.06391717493534088, 0.09195131063461304, 0.03715138137340546, 0.004633624106645584, 0.032355256378650665, 0.009430356323719025, 0.1253177970647812, 0.13019421696662903, 0.00831762608140707, 0.022948132827878, -0.014942219480872154, 0.012447216548025608, -0.04106293246150017, 0.04041067510843277, -0.01965204067528248, -0.003916491754353046, 0.003849614644423127, -0.05046223849058151, -0.017180828377604485, 0.12706243991851807, 0.05166975408792496, -0.01629774272441864, -0.021031392738223076, -0.00038799038156867027, -0.0025919442996382713, -0.04365041106939316, 0.03520703315734863, 0.019492262974381447, -0.08377949148416519, 0.0726446732878685, 0.04093339666724205, 0.041499730199575424, -0.03003873862326145, -0.09017490595579147, 0.04514613002538681, -0.015678035095334053, -0.06629805266857147, 0.030280407518148422, 0.03920132294297218, 0.0617324523627758, -0.06156058982014656, -0.000610765942838043, -0.08715226501226425, 0.11540347337722778, -0.06360749155282974, -0.027249513193964958, 0.052033618092536926, 0.014256102964282036, -0.01093229465186596, 0.0003486049536149949, -0.01336891483515501, -0.011759898625314236, 0.03469351306557655, 0.106269970536232, 0.008207668550312519, -0.026357067748904228, -0.03808906674385071, -0.04291395843029022, 0.033861689269542694, 0.05182252079248428, -0.000822912494186312, -0.057372771203517914, 0.07475670427083969, 0.041499488055706024, 0.03639094531536102, -0.07624787837266922, 0.023772867396473885, -0.05318889766931534, 0.029017580673098564, 0.012053881771862507, -0.09938015043735504, 0.02323303371667862, 0.032936014235019684, -0.07711313664913177, 0.02899765595793724, -0.025972457602620125, 2.4708002286681674e-33, 0.005498397629708052, -0.07177262008190155, 0.03425045311450958, 0.03557673841714859, 0.0873056948184967, -0.10414460301399231, -0.0009958703303709626, -0.021560270339250565, -0.05476386845111847, -0.01143349427729845, -0.06161293014883995, 0.09191777557134628, -0.024092936888337135, -0.05590708926320076, 0.01537284068763256, 0.014906316995620728, -0.0945013016462326, 0.045558035373687744, 0.06676661968231201, 0.036145683377981186, 0.04703831672668457, -0.0291588231921196, -0.021127747371792793, -0.011744006536900997, 0.020506588742136955, -0.03258158639073372, 0.02200721576809883, -0.10019070655107498, 0.026093704625964165, 0.022398637607693672, -0.05840347707271576, -0.014065020717680454, 0.08531971275806427, 0.010755865834653378, -0.11695727705955505, -0.03273506090044975, 0.03564400598406792, 0.013345742598176003, -0.11636011302471161, -0.05733129382133484, 0.057666145265102386, -0.041441064327955246, 0.0686979740858078, -0.03207596763968468, -0.04143375903367996, -0.05251188203692436, 0.005078330636024475, -0.027845576405525208, 0.07254698872566223, 0.14472253620624542, -0.04394743591547012, -0.06056509166955948, -0.0248287133872509, -0.09732162952423096, 0.054879993200302124, -0.08184120804071426, 0.007177095394581556, -0.03315041586756706, -0.06139877066016197, -0.06304586678743362, -0.06320764869451523, 0.03082653135061264, 0.012927982956171036, -0.016848217695951462, -0.000050604150601429865, 0.019416816532611847, -0.008790465071797371, 0.007395216729491949, 0.030193215236067772, 0.0035894783213734627, -0.10239511728286743, 0.054004888981580734, -0.03600852191448212, 0.03710825741291046, -0.030521174892783165, -0.09226534515619278, 0.05069604143500328, 0.09817072749137878, -0.10621141642332077, 0.033375270664691925, 0.009075015783309937, 0.0027454104274511337, 0.004467375576496124, 0.054287489503622055, -0.08964212983846664, 0.01705770194530487, -0.014865188859403133, 0.03262107074260712, -0.05350303277373314, 0.04306849464774132, 0.07335522025823593, 0.002845103619620204, -0.028496157377958298, 0.06606126576662064, -0.14003433287143707, -2.6858049412602795e-33, 0.07279016077518463, -0.044205192476511, 0.023323766887187958, -0.04822058603167534, 0.046723268926143646, 0.013627054169774055, 0.010171416215598583, 0.003138360334560275, 0.0011454327031970024, -0.04699070751667023, -0.07455980032682419, -0.05521140247583389, 0.06079671159386635, 0.04129942134022713, -0.06109204888343811, -0.03963771089911461, -0.07370620220899582, -0.0045824297703802586, 0.014235994778573513, -0.0028556413017213345, -0.007783911656588316, 0.06473186612129211, 0.07224981486797333, 0.0782226100564003, 0.02220013737678528, 0.0025496957823634148, -0.010660943575203419, 0.04964449256658554, -0.03896604850888252, -0.07413601130247116, 0.05347616970539093, -0.11587252467870712, -0.053087107837200165, -0.014243045821785927, -0.047890935093164444, -0.08720271289348602, -0.0688450038433075, 0.08557949215173721, -0.013818459585309029, -0.004489656537771225, 0.02383292093873024, 0.013189679943025112, -0.003797633107751608, 0.0026790194679051638, -0.04878610000014305, 0.028060993179678917, 0.13107244670391083, -0.06657968461513519, 0.017223499715328217, -0.04122117906808853, 0.05355311185121536, 0.01605691760778427, -0.015673454850912094, 0.08438961952924728, -0.012492679059505463, 0.01435266062617302, 0.0708162933588028, 0.028302736580371857, -0.03705855831503868, 0.02103564329445362, 0.10400068014860153, -0.02540103904902935, 0.06899116188287735, 0.042760372161865234, -0.06519530713558197, -0.046824194490909576, -0.02583460509777069, 0.05732772499322891, 0.018080051988363266, 0.03360402211546898, 0.01659783348441124, -0.08401921391487122, 0.012280568480491638, 0.013205737806856632, 0.03273390978574753, -0.060966432094573975, -0.030661650002002716, -0.05220283567905426, 0.04389854893088341, -0.014170454815030098, -0.05649426206946373, 0.06106092780828476, -0.07988730072975159, 0.035087715834379196, 0.07737064361572266, 0.050057344138622284, 0.11107920110225677, 0.03806682303547859, 0.025920405983924866, 0.10441066324710846, 0.0008772240835241973, 0.017900044098496437, -0.04228955879807472, 0.05307783558964729, 0.009439435787498951, -4.412396137354335e-8, 0.0495213158428669, 0.0755353644490242, -0.06608683615922928, 0.05242828652262688, -0.0038392520509660244, -0.07380969077348709, 0.06143643707036972, -0.004856526851654053, -0.04718158766627312, -0.011425625532865524, -0.05423756316304207, 0.015086095780134201, -0.05970370024442673, -0.04511750116944313, -0.010210707783699036, -0.06525932252407074, -0.04988608509302139, 0.06835269927978516, -0.0237992312759161, -0.06839744746685028, -0.006966469809412956, -0.046638283878564835, -0.010699814185500145, 0.001802614307962358, -0.0015127490041777492, 0.1332293003797531, 0.01766061782836914, -0.024213571101427078, 0.05038536339998245, 0.0077608684077858925, -0.04642681032419205, -0.016665445640683174, -0.07444725930690765, 0.005972725804895163, -0.034439925104379654, 0.018574360758066177, -0.061231788247823715, 0.03734282776713371, -0.01020339410752058, 0.040962494909763336, -0.07107748091220856, -0.015048671513795853, -0.0028159518260508776, 0.021039113402366638, -0.06649163365364075, 0.08110271394252777, 0.015388778410851955, 0.07461972534656525, -0.00209282455034554, 0.06885378062725067, -0.0031490514520555735, -0.07752921432256699, -0.029499884694814682, 0.07608815282583237, -0.03089008294045925, -0.007981250993907452, 0.021571006625890732, 0.003475338686257601, 0.014016005210578442, -0.0002841386594809592, 0.05405375361442566, -0.014038512483239174, -0.0009032084490172565, 0.025535380467772484 ]
0.095238
In Kubernetes, a \_VolumeSnapshot\_ represents a snapshot of a volume on a storage system. This document assumes that you are already familiar with Kubernetes [persistent volumes](/docs/concepts/storage/persistent-volumes/). ## Introduction Similar to how API resources `PersistentVolume` and `PersistentVolumeClaim` are used to provision volumes for users and administrators, `VolumeSnapshotContent` and `VolumeSnapshot` API resources are provided to create volume snapshots for users and administrators. A `VolumeSnapshotContent` is a snapshot taken from a volume in the cluster that has been provisioned by an administrator. It is a resource in the cluster just like a PersistentVolume is a cluster resource. A `VolumeSnapshot` is a request for snapshot of a volume by a user. It is similar to a PersistentVolumeClaim. `VolumeSnapshotClass` allows you to specify different attributes belonging to a `VolumeSnapshot`. These attributes may differ among snapshots taken from the same volume on the storage system and therefore cannot be expressed by using the same `StorageClass` of a `PersistentVolumeClaim`. Volume snapshots provide Kubernetes users with a standardized way to copy a volume's contents at a particular point in time without creating an entirely new volume. This functionality enables, for example, database administrators to backup databases before performing edit or delete modifications. Users need to be aware of the following when using this feature: - API Objects `VolumeSnapshot`, `VolumeSnapshotContent`, and `VolumeSnapshotClass` are {{< glossary\_tooltip term\_id="CustomResourceDefinition" text="CRDs" >}}, not part of the core API. - `VolumeSnapshot` support is only available for CSI drivers. - As part of the deployment process of `VolumeSnapshot`, the Kubernetes team provides a snapshot controller to be deployed into the control plane, and a sidecar helper container called csi-snapshotter to be deployed together with the CSI driver. The snapshot controller watches `VolumeSnapshot` and `VolumeSnapshotContent` objects and is responsible for the creation and deletion of `VolumeSnapshotContent` object. The sidecar csi-snapshotter watches `VolumeSnapshotContent` objects and triggers `CreateSnapshot` and `DeleteSnapshot` operations against a CSI endpoint. - There is also a validating webhook server which provides tightened validation on snapshot objects. This should be installed by the Kubernetes distros along with the snapshot controller and CRDs, not CSI drivers. It should be installed in all Kubernetes clusters that has the snapshot feature enabled. - CSI drivers may or may not have implemented the volume snapshot functionality. The CSI drivers that have provided support for volume snapshot will likely use the csi-snapshotter. See [CSI Driver documentation](https://kubernetes-csi.github.io/docs/) for details. - The CRDs and snapshot controller installations are the responsibility of the Kubernetes distribution. For advanced use cases, such as creating group snapshots of multiple volumes, see the external [CSI Volume Group Snapshot documentation](https://kubernetes-csi.github.io/docs/group-snapshot-restore-feature.html). ## Lifecycle of a volume snapshot and volume snapshot content `VolumeSnapshotContents` are resources in the cluster. `VolumeSnapshots` are requests for those resources. The interaction between `VolumeSnapshotContents` and `VolumeSnapshots` follow this lifecycle: ### Provisioning Volume Snapshot There are two ways snapshots may be provisioned: pre-provisioned or dynamically provisioned. #### Pre-provisioned {#static} A cluster administrator creates a number of `VolumeSnapshotContents`. They carry the details of the real volume snapshot on the storage system which is available for use by cluster users. They exist in the Kubernetes API and are available for consumption. #### Dynamic Instead of using a pre-existing snapshot, you can request that a snapshot to be dynamically taken from a PersistentVolumeClaim. The [VolumeSnapshotClass](/docs/concepts/storage/volume-snapshot-classes/) specifies storage provider-specific parameters to use when taking a snapshot. ### Binding The snapshot controller handles the binding of a `VolumeSnapshot` object with an appropriate `VolumeSnapshotContent` object, in both pre-provisioned and dynamically provisioned scenarios. The binding is a one-to-one mapping. In the case of pre-provisioned binding, the VolumeSnapshot will remain unbound until the requested VolumeSnapshotContent object is created. ### Persistent Volume Claim as Snapshot Source
null
./vendor/kubernetes/content/en/docs/concepts/storage/volume-snapshots.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/storage/volume-snapshots.md
[ -0.04279160499572754, -0.0033118959981948137, 0.00838396605104208, -0.011429987847805023, 0.022788189351558685, -0.020908048376441002, 0.020072847604751587, 0.004626413341611624, 0.10309887677431107, -0.01797335594892502, -0.015096059069037437, -0.05190432816743851, 0.07308468222618103, -0.005175262689590454, -0.06844694912433624, -0.06223439425230026, 0.01895625703036785, -0.0059399898163974285, -0.040470074862241745, 0.03957999497652054, 0.03751995414495468, 0.08395612239837646, -0.03135283663868904, -0.004360968247056007, 0.06443507969379425, -0.0019479565089568496, -0.0135241923853755, -0.02469848468899727, 0.03783363476395607, 0.0019537510816007853, 0.008856281638145447, 0.030572520568966866, -0.0018200691556558013, 0.011930381879210472, 0.013562488369643688, 0.09917950630187988, -0.010867586359381676, -0.030723314732313156, -0.07729974389076233, 0.0018138965824618936, 0.013149317353963852, -0.016546597704291344, -0.10133522003889084, 0.00016891336417756975, -0.06303717941045761, 0.061983492225408554, -0.023971976712346077, -0.05250513553619385, -0.0580810084939003, 0.02395053021609783, 0.010584617033600807, -0.0784158930182457, -0.004597178194671869, 0.09758272022008896, 0.043921105563640594, 0.08262898772954941, -0.04456128925085068, 0.06836406141519547, 0.0366644412279129, -0.008934782817959785, 0.0015739399241283536, -0.0009124685311689973, 0.04700878635048866, -0.014994027093052864, 0.06385502964258194, 0.016549836844205856, 0.03646617382764816, 0.010795273818075657, 0.05882894620299339, -0.12577468156814575, 0.036167342215776443, 0.09102249890565872, -0.03852736949920654, 0.04980482533574104, -0.024120787158608437, -0.012682336382567883, 0.00991353951394558, 0.07947194576263428, -0.039357781410217285, -0.030066432431340218, -0.0007630344480276108, 0.03391006216406822, -0.0030537578277289867, -0.0245086420327425, -0.07063553482294083, -0.01316044107079506, -0.06685569137334824, -0.028159569948911667, 0.007426179945468903, 0.011555684730410576, -0.02717248722910881, -0.04603922739624977, 0.03856203332543373, -0.1012999415397644, 0.02907603792846203, -0.02225356176495552, -0.06897806376218796, 0.017903974279761314, 0.06612756848335266, -0.0431898832321167, -0.02490154094994068, 0.04904375970363617, -0.021651573479175568, -0.04490355774760246, 0.03705201297998428, -0.1164102852344513, -0.05333252623677254, -0.024996517226099968, -0.0161210335791111, 0.029094422236084938, 0.007990076206624508, 0.03591106832027435, -0.05201421305537224, -0.024807676672935486, 0.09147872030735016, -0.014867881312966347, -0.012307585217058659, -0.018487747758626938, 0.047717366367578506, 0.009627758525311947, 0.0422268845140934, -0.0647522434592247, 0.02579958364367485, -0.0384165495634079, -0.023910552263259888, -0.003142600180581212, -0.030012868344783783, 1.9272075598097858e-33, 0.03197329118847847, -0.07079266011714935, 0.04757408797740936, 0.03410322219133377, 0.05239323526620865, -0.0613115131855011, -0.004429537802934647, -0.011044363491237164, 0.004611364100128412, -0.10789433866739273, -0.09243901073932648, 0.14191745221614838, -0.029269546270370483, -0.008752462454140186, 0.031171929091215134, 0.05387738719582558, -0.10120483487844467, 0.042103882879018784, 0.027318108826875687, -0.0037943553179502487, -0.012443730607628822, 0.08459169417619705, 0.013117928989231586, 0.053191933780908585, 0.05674067512154579, -0.020250696688890457, 0.04126325249671936, -0.013196153566241264, -0.05046635493636131, 0.01999945566058159, -0.10660911351442337, 0.035819683223962784, -0.01779991202056408, -0.056819867342710495, -0.028486110270023346, -0.0028415117412805557, -0.052035845816135406, -0.04990173876285553, -0.09662700444459915, -0.0732475072145462, -0.0006584672373719513, -0.02141416072845459, -0.04637303203344345, -0.0667530968785286, 0.015725336968898773, -0.07335533201694489, -0.051516298204660416, -0.0215065348893404, 0.004023422487080097, 0.07525431364774704, 0.03713015466928482, -0.03268808126449585, 0.09815485775470734, -0.0554530993103981, -0.03193257376551628, 0.002775687724351883, 0.08526410907506943, -0.11279953271150589, -0.010494894348084927, 0.007076863665133715, -0.004870953503996134, 0.041261713951826096, 0.06038013845682144, 0.05884688347578049, -0.02377961203455925, 0.0678037777543068, 0.006264073774218559, 0.051344625651836395, 0.07148788124322891, -0.04978020116686821, -0.00851169042289257, 0.022331438958644867, -0.05656540021300316, 0.011179838329553604, -0.002023886190727353, -0.09907587617635727, -0.01586965285241604, 0.027207547798752785, -0.09987754374742508, 0.08711396902799606, -0.03718891739845276, -0.08275799453258514, -0.08410776406526566, -0.0029689546208828688, -0.059310682117938995, 0.021038511767983437, 0.0716051459312439, -0.017791394144296646, -0.012485919520258904, -0.026940956711769104, 0.003747355891391635, -0.0052919997833669186, -0.06363067030906677, 0.019099541008472443, -0.029010402038693428, -5.082033461351212e-33, 0.10571471601724625, 0.006874237209558487, -0.09554089605808258, 0.03007989004254341, 0.00048093849909491837, 0.06400156766176224, 0.019715946167707443, 0.03486625850200653, -0.07747655361890793, -0.0721120610833168, -0.07810137420892715, 0.009402064606547356, -0.06794126331806183, -0.04406273365020752, -0.05408891662955284, -0.04746846482157707, 0.025488946586847305, -0.09144114702939987, -0.04427323862910271, 0.030887991189956665, -0.0183323435485363, -0.03706837072968483, 0.024641552940011024, 0.023376639932394028, -0.006325468420982361, -0.01684614270925522, 0.0265639778226614, 0.026457034051418304, -0.017811760306358337, -0.08406366407871246, 0.024552516639232635, -0.051689859479665756, -0.0050433059222996235, -0.027530983090400696, -0.02119726687669754, -0.05261177197098732, 0.06464766710996628, -0.01180316973477602, -0.028532180935144424, -0.05391552299261093, 0.018406685441732407, 0.0062236119993031025, 0.040764305740594864, 0.019582781940698624, -0.0763133093714714, 0.04814780130982399, 0.07676514983177185, -0.0783190131187439, 0.03512995317578316, -0.08373668044805527, 0.06663785874843597, -0.000031014693377073854, -0.03211589530110359, 0.11786247044801712, -0.00015636412717867643, 0.03513014689087868, -0.036889590322971344, 0.10669398307800293, 0.05365931987762451, -0.008146997541189194, 0.04838617518544197, -0.1088515892624855, -0.04526735469698906, 0.02927902340888977, -0.08090417832136154, -0.04690555855631828, 0.05882583186030388, -0.024654200300574303, -0.0883743017911911, 0.03322840481996536, -0.0024587835650891066, -0.0700869932770729, 0.15287412703037262, 0.027971835806965828, -0.03516684100031853, -0.03544314578175545, 0.022865980863571167, -0.016036896035075188, 0.022077597677707672, -0.036596205085515976, -0.056910574436187744, -0.04649069905281067, -0.03016790561378002, 0.05826662853360176, 0.04220259562134743, -0.05426523834466934, 0.024047203361988068, 0.06526632606983185, 0.04217202216386795, 0.0013836744474247098, -0.03477083146572113, 0.08357106894254684, -0.08244248479604721, 0.062213025987148285, 0.03024781495332718, -5.4083994172060557e-8, 0.042892906814813614, 0.02488405629992485, -0.0546652190387249, 0.023456905037164688, -0.014881863258779049, -0.06009271740913391, 0.03293817490339279, 0.09388231486082077, 0.0022652677726000547, 0.005229223519563675, 0.06289495527744293, -0.011175606399774551, -0.04731713980436325, -0.10623013973236084, 0.03564530611038208, 0.027129916474223137, 0.0006571484846062958, 0.0007211993215605617, 0.0142055107280612, 0.011167311109602451, -0.032432448118925095, -0.02376040257513523, -0.054497696459293365, -0.031041443347930908, 0.03403928875923157, 0.07615998387336731, 0.022165756672620773, 0.058739811182022095, 0.039009470492601395, -0.0817548930644989, 0.014248823747038841, 0.044362008571624756, 0.014536907896399498, 0.038655541837215424, -0.059258874505758286, 0.07598123699426651, -0.03199412673711777, 0.04795122146606445, 0.03677237778902054, 0.04696251451969147, -0.06407920271158218, -0.04073718562722206, -0.046180855482816696, 0.019661424681544304, -0.012120389379560947, 0.1304292231798172, -0.014104289002716541, 0.11810410767793655, -0.09246604889631271, 0.035311613231897354, -0.057413287460803986, -0.030478890985250473, -0.0077896723523736, 0.10002994537353516, -0.017423590645194054, 0.014997442252933979, 0.0199334304779768, -0.0832589641213417, 0.0745605081319809, 0.05798203498125076, 0.07855267077684402, 0.06270678341388702, -0.007188868243247271, 0.07326254993677139 ]
0.134857
handles the binding of a `VolumeSnapshot` object with an appropriate `VolumeSnapshotContent` object, in both pre-provisioned and dynamically provisioned scenarios. The binding is a one-to-one mapping. In the case of pre-provisioned binding, the VolumeSnapshot will remain unbound until the requested VolumeSnapshotContent object is created. ### Persistent Volume Claim as Snapshot Source Protection The purpose of this protection is to ensure that in-use {{< glossary\_tooltip text="PersistentVolumeClaim" term\_id="persistent-volume-claim" >}} API objects are not removed from the system while a snapshot is being taken from it (as this may result in data loss). While a snapshot is being taken of a PersistentVolumeClaim, that PersistentVolumeClaim is in-use. If you delete a PersistentVolumeClaim API object in active use as a snapshot source, the PersistentVolumeClaim object is not removed immediately. Instead, removal of the PersistentVolumeClaim object is postponed until the snapshot is readyToUse or aborted. ### Delete Deletion is triggered by deleting the `VolumeSnapshot` object, and the `DeletionPolicy` will be followed. If the `DeletionPolicy` is `Delete`, then the underlying storage snapshot will be deleted along with the `VolumeSnapshotContent` object. If the `DeletionPolicy` is `Retain`, then both the underlying snapshot and `VolumeSnapshotContent` remain. ## VolumeSnapshots Each VolumeSnapshot contains a spec and a status. ```yaml apiVersion: snapshot.storage.k8s.io/v1 kind: VolumeSnapshot metadata: name: new-snapshot-test spec: volumeSnapshotClassName: csi-hostpath-snapclass source: persistentVolumeClaimName: pvc-test ``` `persistentVolumeClaimName` is the name of the PersistentVolumeClaim data source for the snapshot. This field is required for dynamically provisioning a snapshot. A volume snapshot can request a particular class by specifying the name of a [VolumeSnapshotClass](/docs/concepts/storage/volume-snapshot-classes/) using the attribute `volumeSnapshotClassName`. If nothing is set, then the default class is used if available. For pre-provisioned snapshots, you need to specify a `volumeSnapshotContentName` as the source for the snapshot as shown in the following example. The `volumeSnapshotContentName` source field is required for pre-provisioned snapshots. ```yaml apiVersion: snapshot.storage.k8s.io/v1 kind: VolumeSnapshot metadata: name: test-snapshot spec: source: volumeSnapshotContentName: test-content ``` ## Volume Snapshot Contents Each VolumeSnapshotContent contains a spec and status. In dynamic provisioning, the snapshot common controller creates `VolumeSnapshotContent` objects. Here is an example: ```yaml apiVersion: snapshot.storage.k8s.io/v1 kind: VolumeSnapshotContent metadata: name: snapcontent-72d9a349-aacd-42d2-a240-d775650d2455 spec: deletionPolicy: Delete driver: hostpath.csi.k8s.io source: volumeHandle: ee0cfb94-f8d4-11e9-b2d8-0242ac110002 sourceVolumeMode: Filesystem volumeSnapshotClassName: csi-hostpath-snapclass volumeSnapshotRef: name: new-snapshot-test namespace: default uid: 72d9a349-aacd-42d2-a240-d775650d2455 ``` `volumeHandle` is the unique identifier of the volume created on the storage backend and returned by the CSI driver during the volume creation. This field is required for dynamically provisioning a snapshot. It specifies the volume source of the snapshot. For pre-provisioned snapshots, you (as cluster administrator) are responsible for creating the `VolumeSnapshotContent` object as follows. ```yaml apiVersion: snapshot.storage.k8s.io/v1 kind: VolumeSnapshotContent metadata: name: new-snapshot-content-test spec: deletionPolicy: Delete driver: hostpath.csi.k8s.io source: snapshotHandle: 7bdd0de3-aaeb-11e8-9aae-0242ac110002 sourceVolumeMode: Filesystem volumeSnapshotRef: name: new-snapshot-test namespace: default ``` `snapshotHandle` is the unique identifier of the volume snapshot created on the storage backend. This field is required for the pre-provisioned snapshots. It specifies the CSI snapshot id on the storage system that this `VolumeSnapshotContent` represents. `sourceVolumeMode` is the mode of the volume whose snapshot is taken. The value of the `sourceVolumeMode` field can be either `Filesystem` or `Block`. If the source volume mode is not specified, Kubernetes treats the snapshot as if the source volume's mode is unknown. `volumeSnapshotRef` is the reference of the corresponding `VolumeSnapshot`. Note that when the `VolumeSnapshotContent` is being created as a pre-provisioned snapshot, the `VolumeSnapshot` referenced in `volumeSnapshotRef` might not exist yet. ## Converting the volume mode of a Snapshot {#convert-volume-mode} If the `VolumeSnapshots` API installed on your cluster supports the `sourceVolumeMode` field, then the API has the capability to prevent unauthorized users from converting the mode of a volume. To check if your cluster has capability for this feature, run the following command: ```yaml $
null
./vendor/kubernetes/content/en/docs/concepts/storage/volume-snapshots.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/storage/volume-snapshots.md
[ -0.09916435927152634, 0.016638876870274544, 0.04501510411500931, 0.016193250194191933, 0.016591692343354225, -0.0145265506580472, 0.0027175608556717634, -0.04104863852262497, 0.0912388265132904, 0.04805348813533783, 0.03361843153834343, -0.011706666089594364, 0.0709734857082367, -0.020866326987743378, -0.017187772318720818, 0.025881001725792885, 0.05246327072381973, -0.056039806455373764, -0.09860170632600784, 0.069321408867836, 0.03797698765993118, 0.06675195693969727, -0.08578042685985565, 0.042954616248607635, 0.09971369057893753, -0.04651450738310814, -0.014648288488388062, -0.03424268215894699, 0.07504647225141525, 0.0072423191741108894, 0.0032107511069625616, 0.04013226926326752, -0.04632944613695145, 0.00034308366593904793, 0.033480651676654816, 0.06634192913770676, -0.04070126637816429, -0.03158540651202202, -0.034318916499614716, -0.022106310352683067, 0.030577940866351128, -0.0059135123156011105, -0.09292637556791306, -0.048421408981084824, -0.054117877036333084, 0.043454576283693314, 0.007535151671618223, 0.009023171849548817, -0.0603279247879982, 0.06192329525947571, -0.022156838327646255, -0.06874819099903107, -0.029708517715334892, 0.10081881284713745, -0.0358593724668026, 0.04165919870138168, 0.006612309254705906, 0.054270558059215546, -0.0014733902644366026, -0.004361279308795929, -0.038737062364816666, 0.04064116254448891, -0.007371706422418356, 0.008937091566622257, 0.07706381380558014, 0.06270333379507065, 0.07368136942386627, -0.07863713055849075, 0.025149662047624588, 0.003256044816225767, 0.05671726167201996, 0.06864097714424133, -0.01180507242679596, -0.014944382011890411, 0.05318206176161766, 0.03098517656326294, -0.028279094025492668, -0.00742281973361969, 0.005985317751765251, -0.08725812286138535, 0.08229611068964005, 0.03024349734187126, 0.0006718389340676367, 0.03167478367686272, -0.06140534579753876, -0.028462976217269897, -0.04104309156537056, -0.03759000822901726, 0.01171080768108368, 0.024905618280172348, -0.012268858961760998, -0.08277584612369537, 0.06319741159677505, 0.01612873375415802, 0.06494604796171188, -0.09129215031862259, -0.05942286178469658, 0.0057095810770988464, 0.011234009638428688, -0.05922090262174606, -0.027561021968722343, 0.015578198246657848, -0.06129270792007446, 0.018185345456004143, 0.025337643921375275, -0.08813350647687912, -0.016039442270994186, -0.1107618510723114, -0.04189090058207512, 0.101387158036232, 0.09499058872461319, 0.05688925459980965, -0.004046556074172258, 0.01087202038615942, 0.03214212879538536, 0.055969540029764175, -0.025000737980008125, 0.01453349832445383, -0.03480031341314316, -0.07095972448587418, -0.003973942715674639, -0.008083304390311241, 0.049880530685186386, -0.05189107730984688, -0.040151070803403854, -0.0012169841211289167, 0.01821978949010372, 5.654352273407813e-33, -0.016797184944152832, -0.10890612006187439, -0.019504733383655548, 0.026041803881525993, 0.07315293699502945, -0.006566502153873444, 0.030021706596016884, 0.034982115030288696, -0.034618865698575974, -0.057533495128154755, -0.01875964179635048, 0.12234442681074142, -0.031483180820941925, -0.031807322055101395, 0.011925360187888145, 0.015256408601999283, 0.002778076333925128, 0.07461924850940704, -0.035820797085762024, 0.0632043406367302, -0.004845873452723026, 0.05047781020402908, -0.009985608980059624, 0.009635698050260544, 0.031538572162389755, 0.0027590275276452303, 0.0028257190715521574, 0.021749047562479973, -0.08780601620674133, 0.0392453558743, -0.1050218790769577, 0.07147864252328873, -0.014324511401355267, -0.0008345506503246725, -0.04026853293180466, -0.03793707862496376, -0.056456081569194794, -0.06528584659099579, -0.07120221108198166, -0.05208640173077583, 0.04803834483027458, 0.0023906135465949774, -0.06111050769686699, -0.034424394369125366, -0.018994096666574478, -0.14317679405212402, -0.04804039001464844, 0.0015372656052932143, 0.01010906882584095, 0.03645342215895653, 0.07362715154886246, 0.013342558406293392, 0.0020015474874526262, -0.0798599049448967, -0.08081742376089096, -0.06003405526280403, -0.058475229889154434, -0.12631618976593018, 0.049111682921648026, 0.0003070282400585711, -0.04474150389432907, 0.029429905116558075, 0.04180491715669632, 0.06905705481767654, 0.029867911711335182, 0.11568515747785568, -0.017225757241249084, -0.040975283831357956, 0.020887227728962898, -0.11081311106681824, 0.0047117844223976135, -0.020645182579755783, -0.0688348338007927, -0.02997555024921894, -0.003963017370551825, -0.07544173300266266, -0.00021284342801664025, 0.023956995457410812, -0.006383078172802925, 0.04161931946873665, 0.02512339875102043, -0.0072077312506735325, 0.00034026449429802597, 0.01931845396757126, -0.01562945544719696, -0.05631917342543602, 0.03989030793309212, -0.09449518471956253, -0.046879518777132034, 0.017319275066256523, -0.01668311469256878, -0.031207729130983353, -0.043999310582876205, 0.020890381187200546, 0.006163499783724546, -7.367005298227653e-33, 0.09978555142879486, -0.0071580903604626656, -0.0897558331489563, 0.07052788883447647, -0.009266316890716553, 0.010181795805692673, -0.020311014726758003, 0.08095848560333252, -0.02876073122024536, -0.09223955869674683, -0.021616589277982712, 0.034797653555870056, -0.08920951932668686, 0.0252788458019495, -0.018609002232551575, -0.03232414275407791, -0.0024152868427336216, -0.10724732279777527, -0.05910385772585869, 0.030701547861099243, 0.09679824858903885, -0.05630778148770332, 0.0075349994003772736, 0.04409042373299599, -0.05522729083895683, -0.05208050087094307, -0.045150235295295715, 0.018411362543702126, 0.03932048752903938, -0.0673559233546257, -0.013844622299075127, 0.04691372439265251, -0.032299015671014786, -0.1101272851228714, -0.026715334504842758, -0.04574815556406975, 0.02967928908765316, 0.007096490822732449, -0.03380478918552399, -0.03977885842323303, 0.05255856364965439, -0.03128938004374504, -0.03643111139535904, -0.025841260328888893, 0.04169352725148201, -0.009931441396474838, 0.10477755218744278, -0.013034993782639503, 0.07369925081729889, 0.030643997713923454, 0.07263969630002975, -0.0013260034611448646, 0.027860084548592567, 0.09447914361953735, -0.009175955317914486, 0.026605987921357155, 0.03002137877047062, -0.03468983620405197, 0.03697981312870979, -0.035641495138406754, 0.08164706826210022, 0.011659004725515842, -0.03469317778944969, 0.02641211822628975, -0.00555911660194397, 0.009208965115249157, 0.06213384494185448, 0.03270891681313515, 0.0015085979830473661, -0.015419135801494122, 0.019281040877103806, -0.04805295914411545, 0.10292301326990128, -0.06593280285596848, 0.02581941708922386, 0.001102732727304101, -0.023497745394706726, -0.118675097823143, 0.03351021930575371, -0.02768873982131481, -0.03062640316784382, -0.03386707231402397, 0.012973344884812832, 0.05036633834242821, 0.01841432973742485, -0.037766434252262115, -0.031892627477645874, -0.0037103022914379835, 0.060155466198921204, 0.1275717169046402, -0.0335162915289402, 0.014554133638739586, -0.049808308482170105, 0.002112684305757284, 0.025246651843190193, -5.422493032369857e-8, 0.016421588137745857, 0.16717231273651123, -0.0263704564422369, 0.06097441166639328, -0.01409671176224947, -0.0887516513466835, 0.0663820281624794, 0.09649749845266342, 0.018953070044517517, -0.014985981397330761, 0.060975946485996246, 0.02118360437452793, -0.03713516891002655, -0.06466680020093918, -0.05319679528474808, -0.0005504749715328217, -0.020778534933924675, -0.10303522646427155, -0.024431440979242325, -0.04644164443016052, -0.034535136073827744, -0.04243879392743111, 0.028854534029960632, -0.03719746693968773, 0.01653463765978813, -0.005692572798579931, 0.08001775294542313, -0.0002153532113879919, 0.004872082266956568, -0.01653861068189144, -0.07877013832330704, 0.028811000287532806, 0.014473626390099525, 0.07938046008348465, -0.08048885315656662, 0.029913965612649918, 0.016853833571076393, 0.050845079123973846, 0.0620274618268013, -0.002561326138675213, -0.04859505593776703, 0.0362282358109951, -0.014142638072371483, -0.019158191978931427, -0.03431243449449539, 0.05796023830771446, 0.022134991362690926, 0.08226890861988068, -0.05193787068128586, 0.06919515877962112, -0.10950781404972076, 0.016650967299938202, -0.03521953895688057, 0.10504966974258423, 0.06471244990825653, -0.04450470581650734, 0.04538596794009209, -0.009374483488500118, 0.08786765486001968, 0.06910517811775208, 0.05322273448109627, -0.022137237712740898, -0.004594219382852316, 0.005821701604872942 ]
-0.020862
mode of a Snapshot {#convert-volume-mode} If the `VolumeSnapshots` API installed on your cluster supports the `sourceVolumeMode` field, then the API has the capability to prevent unauthorized users from converting the mode of a volume. To check if your cluster has capability for this feature, run the following command: ```yaml $ kubectl get crd volumesnapshotcontent -o yaml ``` If you want to allow users to create a `PersistentVolumeClaim` from an existing `VolumeSnapshot`, but with a different volume mode than the source, the annotation `snapshot.storage.kubernetes.io/allow-volume-mode-change: "true"`needs to be added to the `VolumeSnapshotContent` that corresponds to the `VolumeSnapshot`. For pre-provisioned snapshots, `spec.sourceVolumeMode` needs to be populated by the cluster administrator. An example `VolumeSnapshotContent` resource with this feature enabled would look like: ```yaml apiVersion: snapshot.storage.k8s.io/v1 kind: VolumeSnapshotContent metadata: name: new-snapshot-content-test annotations: - snapshot.storage.kubernetes.io/allow-volume-mode-change: "true" spec: deletionPolicy: Delete driver: hostpath.csi.k8s.io source: snapshotHandle: 7bdd0de3-aaeb-11e8-9aae-0242ac110002 sourceVolumeMode: Filesystem volumeSnapshotRef: name: new-snapshot-test namespace: default ``` ## Provisioning Volumes from Snapshots You can provision a new volume, pre-populated with data from a snapshot, by using the \_dataSource\_ field in the `PersistentVolumeClaim` object. For more details, see [Volume Snapshot and Restore Volume from Snapshot](/docs/concepts/storage/persistent-volumes/#volume-snapshot-and-restore-volume-from-snapshot-support).
null
./vendor/kubernetes/content/en/docs/concepts/storage/volume-snapshots.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/storage/volume-snapshots.md
[ 0.042364127933979034, 0.0007761384476907551, 0.0032735266722738743, -0.04198829457163811, -0.014858797192573547, -0.02343270741403103, -0.04216103255748749, -0.022675907239317894, 0.03461260348558426, 0.02738252282142639, -0.025090854614973068, -0.08348491042852402, 0.0615910068154335, -0.0158676840364933, -0.03936261311173439, -0.062447771430015564, 0.02623617649078369, 0.05011938139796257, 0.007115495856851339, -0.020052995532751083, 0.013136527501046658, 0.03123023919761181, 0.029073381796479225, -0.022520380094647408, 0.0680907815694809, -0.0809791162610054, -0.005943774711340666, -0.021733621135354042, 0.021904977038502693, -0.039435770362615585, 0.012157123535871506, 0.028906840831041336, 0.005976952146738768, -0.02506479062139988, 0.05607467144727707, 0.023219631984829903, 0.044502224773168564, -0.0440496988594532, -0.06641890853643417, -0.03080631047487259, 0.04593317583203316, -0.036766793578863144, -0.09578949958086014, -0.04468265920877457, -0.042284682393074036, 0.009976786561310291, 0.005772545002400875, -0.038245201110839844, -0.00808212161064148, 0.027228064835071564, -0.0014021226670593023, -0.05950554832816124, -0.006588424555957317, 0.08062800019979477, -0.013483479619026184, 0.08806933462619781, -0.010477622039616108, 0.11775568127632141, 0.12440811097621918, -0.058186933398246765, -0.07483262568712234, 0.00166998989880085, 0.07260087877511978, -0.06103033944964409, -0.004080699756741524, 0.0620410330593586, 0.0029606977477669716, -0.009655647911131382, -0.0309417936950922, -0.013028628192842007, 0.08806700259447098, 0.06125650182366371, -0.030022205784916878, -0.021230608224868774, 0.032894812524318695, -0.034691259264945984, -0.06133699789643288, 0.031540654599666595, -0.023831231519579887, 0.021603751927614212, 0.016681727021932602, 0.01121747400611639, -0.018653739243745804, -0.02219298481941223, -0.09647396206855774, -0.01774132251739502, -0.06637538969516754, -0.022534595802426338, -0.002917252713814378, -0.007604760583490133, -0.052750274538993835, -0.0299321748316288, 0.002062733517959714, -0.09190072864294052, 0.04368768632411957, -0.06423884630203247, -0.0788087472319603, 0.025845535099506378, 0.08871567994356155, -0.06844551116228104, -0.0066075692884624004, 0.04345420375466347, -0.046505630016326904, -0.019060125574469566, 0.05497271195054054, -0.08108970522880554, -0.022670406848192215, 0.002602947410196066, -0.059933193027973175, 0.09420425444841385, 0.0606510192155838, 0.10856369882822037, 0.0018960552988573909, -0.028318136930465698, 0.1112527921795845, 0.03891095891594887, -0.022587183862924576, 0.016529642045497894, -0.034008368849754333, -0.01472296379506588, 0.06180311366915703, -0.0442940853536129, 0.014276102185249329, 0.03241623193025589, 0.0303282979875803, 0.046895842999219894, 0.0013486238894984126, 3.0289526807584292e-33, 0.048723023384809494, -0.08467531949281693, 0.08577948063611984, 0.026074333116412163, 0.02193542942404747, -0.009802903048694134, -0.026331694796681404, -0.06505272537469864, -0.040750227868556976, -0.14147339761257172, -0.05788492411375046, 0.06902624666690826, -0.02144772931933403, -0.0718936026096344, 0.04046836122870445, 0.030339419841766357, -0.07126463949680328, -0.03436489403247833, 0.07131931185722351, -0.007769264280796051, 0.047488052397966385, -0.01442951150238514, -0.018851349130272865, 0.07036365568637848, -0.033049389719963074, -0.0009529102244414389, 0.058724984526634216, -0.05296436697244644, 0.007708305027335882, 0.019918769598007202, -0.11830610781908035, 0.044160764664411545, 0.04393898323178291, -0.007609307765960693, -0.0772017240524292, -0.0174940824508667, -0.026516614481806755, 0.040522292256355286, -0.11862527579069138, -0.027843186631798744, 0.02410145103931427, -0.03277556225657463, -0.03690246492624283, -0.006002469919621944, -0.007617124821990728, -0.03159693628549576, -0.00030919082928448915, -0.01141298282891512, 0.025567831471562386, 0.07221060246229172, -0.021302100270986557, -0.006331261247396469, 0.0477607361972332, -0.09802340716123581, 0.017409617081284523, -0.04411806911230087, 0.08324962109327316, -0.12066233158111572, -0.020886698737740517, -0.07015493512153625, 0.010458619333803654, 0.05912497267127037, 0.10358276218175888, 0.03873119875788689, -0.05285506695508957, 0.02640221081674099, -0.04484955221414566, -0.004429415334016085, 0.003534481395035982, -0.057487279176712036, -0.03212115913629532, 0.013422021642327309, -0.10286732017993927, -0.010006122291088104, -0.013369309715926647, -0.12057014554738998, 0.05384407564997673, 0.04367195814847946, 0.006578613538295031, 0.06441105157136917, 0.024443555623292923, -0.03817203268408775, -0.032368894666433334, -0.00923934020102024, 0.03677457943558693, -0.036430444568395615, -0.016807138919830322, 0.011273130774497986, -0.019361963495612144, 0.00995690282434225, 0.02665034495294094, -0.04823583364486694, 0.01520085334777832, 0.033011455088853836, -0.06533776968717575, -3.9912261316659775e-33, 0.08369753509759903, -0.007199625950306654, -0.062156569212675095, 0.0358874574303627, 0.028277814388275146, 0.06680575013160706, 0.033593133091926575, 0.07061099261045456, -0.0012979350285604596, -0.09267418831586838, -0.0032301831524819136, -0.00955990981310606, -0.05208512768149376, -0.047900814563035965, -0.05634160712361336, -0.0442504920065403, 0.010318512097001076, -0.04716002196073532, -0.03582959249615669, 0.04426722228527069, -0.03130999580025673, -0.06169212982058525, 0.06631223857402802, 0.09363587945699692, -0.018257783725857735, 0.006886950694024563, -0.001862510573118925, 0.04914329573512077, -0.015496105886995792, -0.0901031643152237, 0.013816280290484428, -0.0012495664414018393, -0.04092774912714958, -0.031140318140387535, -0.030400924384593964, -0.08775662630796432, 0.013454143889248371, 0.0542990081012249, -0.07641255110502243, -0.01896052062511444, -0.026228515431284904, 0.026139097288250923, -0.01471728179603815, -0.022061724215745926, -0.09816266596317291, 0.04879900440573692, 0.14792966842651367, -0.08089087158441544, 0.019487297162413597, -0.023324886336922646, 0.034376360476017, 0.04355596378445625, 0.03176574036478996, 0.11944225430488586, 0.007033700589090586, 0.02109728381037712, -0.000022064934455556795, 0.06346375495195389, 0.020397838205099106, 0.007053705397993326, 0.04776845872402191, -0.06567976623773575, 0.02905578538775444, -0.04402504116296768, -0.014272448606789112, -0.010463351383805275, 0.055785998702049255, 0.053480587899684906, -0.05596418306231499, 0.06271862983703613, 0.03581737354397774, -0.07344567775726318, 0.16497011482715607, 0.03725786507129669, 0.020992228761315346, -0.07808045297861099, -0.05192682519555092, -0.033904802054166794, 0.021365327760577202, -0.03861911594867706, 0.007148019503802061, 0.00976001936942339, -0.02191309630870819, 0.06306978315114975, 0.045326508581638336, 0.004233849234879017, 0.022797759622335434, 0.031405847519636154, 0.03383536636829376, 0.10153044015169144, -0.022312797605991364, 0.037457387894392014, -0.06554478406906128, 0.03538228198885918, 0.08816812932491302, -4.7757087173749824e-8, 0.0037352892104536295, 0.009154057130217552, -0.0804518312215805, 0.0357641875743866, 0.021931616589426994, -0.08211449533700943, 0.018569953739643097, 0.023934220895171165, -0.02563488855957985, -0.014429881237447262, 0.03711111843585968, 0.019797619432210922, 0.002171094762161374, -0.04928595945239067, 0.0323176234960556, 0.01869131624698639, 0.04205089807510376, 0.03052322193980217, 0.025710545480251312, -0.05029008165001869, -0.07329773902893066, -0.034044403582811356, -0.05540788546204567, -0.031709447503089905, 0.052145522087812424, 0.08321557193994522, -0.002598726889118552, -0.05616745352745056, 0.07354646176099777, -0.05536432936787605, -0.04436781257390976, 0.008842116221785545, -0.02231638878583908, 0.051642682403326035, -0.08790910243988037, 0.06052084267139435, 0.018091769888997078, 0.10833954811096191, 0.00746954744681716, -0.038249846547842026, -0.07494856417179108, -0.013724848628044128, -0.06756453216075897, -0.019175531342625618, -0.06296656280755997, 0.07794561982154846, 0.05873719975352287, 0.1589636504650116, -0.04423272982239723, 0.09367033839225769, 0.009908183477818966, -0.037869200110435486, 0.04164164140820503, 0.04923886060714722, 0.03202875331044197, 0.02267935499548912, 0.013457904569804668, -0.014068491756916046, 0.06685283035039902, 0.07161159068346024, 0.09657768160104752, 0.009130464866757393, -0.030184974893927574, 0.0425771027803421 ]
-0.011526
This document describes the concept of cloning existing CSI Volumes in Kubernetes. Familiarity with [Volumes](/docs/concepts/storage/volumes) is suggested. ## Introduction The {{< glossary\_tooltip text="CSI" term\_id="csi" >}} Volume Cloning feature adds support for specifying existing {{< glossary\_tooltip text="PVC" term\_id="persistent-volume-claim" >}}s in the `dataSource` field to indicate a user would like to clone a {{< glossary\_tooltip term\_id="volume" >}}. A Clone is defined as a duplicate of an existing Kubernetes Volume that can be consumed as any standard Volume would be. The only difference is that upon provisioning, rather than creating a "new" empty Volume, the back end device creates an exact duplicate of the specified Volume. The implementation of cloning, from the perspective of the Kubernetes API, adds the ability to specify an existing PVC as a dataSource during new PVC creation. The source PVC must be bound and available (not in use). Users need to be aware of the following when using this feature: \* Cloning support (`VolumePVCDataSource`) is only available for CSI drivers. \* Cloning support is only available for dynamic provisioners. \* CSI drivers may or may not have implemented the volume cloning functionality. \* You can only clone a PVC when it exists in the same namespace as the destination PVC (source and destination must be in the same namespace). \* Cloning is supported with a different Storage Class. - Destination volume can be the same or a different storage class as the source. - Default storage class can be used and storageClassName omitted in the spec. \* Cloning can only be performed between two volumes that use the same VolumeMode setting (if you request a block mode volume, the source MUST also be block mode) ## Provisioning Clones are provisioned like any other PVC with the exception of adding a dataSource that references an existing PVC in the same namespace. ```yaml apiVersion: v1 kind: PersistentVolumeClaim metadata: name: clone-of-pvc-1 namespace: myns spec: accessModes: - ReadWriteOnce storageClassName: cloning resources: requests: storage: 5Gi dataSource: kind: PersistentVolumeClaim name: pvc-1 ``` {{< note >}} You must specify a capacity value for `spec.resources.requests.storage`, and the value you specify must be the same or larger than the capacity of the source volume. {{< /note >}} The result is a new PVC with the name `clone-of-pvc-1` that has the exact same content as the specified source `pvc-1`. ## Usage Upon availability of the new PVC, the cloned PVC is consumed the same as other PVC. It's also expected at this point that the newly created PVC is an independent object. It can be consumed, cloned, snapshotted, or deleted independently and without consideration for it's original dataSource PVC. This also implies that the source is not linked in any way to the newly created clone, it may also be modified or deleted without affecting the newly created clone.
null
./vendor/kubernetes/content/en/docs/concepts/storage/volume-pvc-datasource.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/storage/volume-pvc-datasource.md
[ -0.1324126422405243, -0.04573293775320053, 0.06420028954744339, -0.04561594873666763, -0.0476614385843277, -0.044405583292245865, 0.07820142060518265, -0.046381957828998566, 0.10530257970094681, 0.028342068195343018, 0.009980647824704647, -0.05878563970327377, 0.06753452122211456, -0.031871091574430466, -0.008962768130004406, -0.0026791279669851065, 0.04219404608011246, -0.026676185429096222, -0.027114657685160637, 0.02896638959646225, 0.10742051899433136, 0.043512776494026184, -0.0062718382105231285, -0.015247778035700321, 0.04414483904838562, 0.012656306847929955, -0.03654675930738449, 0.05535019189119339, 0.06990708410739899, 0.002801512135192752, -0.021070435643196106, 0.088628388941288, -0.07087820023298264, 0.040795449167490005, 0.0858747586607933, 0.02246282435953617, -0.02256891317665577, 0.05923517048358917, -0.03600471094250679, 0.03259308636188507, 0.04438212141394615, -0.05937149375677109, -0.10453706234693527, 0.027707338333129883, -0.08747315406799316, 0.046035900712013245, 0.002159846480935812, -0.018601521849632263, 0.01607394777238369, 0.0483122281730175, 0.030105872079730034, -0.12436915934085846, -0.004705885425209999, 0.06872031837701797, 0.059222642332315445, 0.001927275094203651, 0.00010115301847690716, 0.03380383923649788, 0.05189741030335426, 0.020648404955863953, 0.03308957442641258, 0.05318308249115944, 0.030095063149929047, 0.02849956788122654, 0.029110340401530266, -0.039763014763593674, 0.0063233268447220325, 0.04175402969121933, -0.03615090623497963, -0.00960345659404993, 0.03864184394478798, 0.0503058061003685, 0.0019725433085113764, 0.025717591866850853, 0.0048889219760894775, 0.03193139657378197, -0.07648351043462753, 0.034932829439640045, -0.010230348445475101, -0.09494148194789886, 0.01850252039730549, 0.09162036329507828, 0.009446099400520325, 0.04390702024102211, -0.0787714496254921, -0.06499968469142914, -0.004572990350425243, 0.018379835411906242, 0.010493413545191288, -0.013036915101110935, 0.02168332040309906, -0.06656628847122192, 0.050817228853702545, -0.08052987605333328, 0.044202450662851334, -0.008325150236487389, -0.025004904717206955, -0.030419714748859406, 0.07625361531972885, -0.046648260205984116, -0.0072862799279391766, 0.005249376408755779, 0.02231890708208084, -0.022598762065172195, -0.014820397831499577, -0.10342074185609818, -0.07876543700695038, -0.009659871459007263, -0.04223213344812393, 0.03922295570373535, -0.004240489564836025, 0.11250316351652145, -0.020783986896276474, 0.00628105690702796, 0.04098999500274658, -0.02718384563922882, -0.04524192214012146, -0.008153429254889488, -0.018040260300040245, -0.0065868208184838295, 0.015618736855685711, -0.07293865084648132, -0.023591799661517143, 0.010942619293928146, -0.044301457703113556, 0.0452057309448719, -0.012674414552748203, 3.6347236743165327e-33, 0.06831061840057373, -0.013268556445837021, -0.006027062889188528, -0.005526243709027767, -0.029623961076140404, -0.04056541249155998, 0.002176051726564765, 0.025688666850328445, -0.10139986127614975, -0.05347718670964241, -0.02364826388657093, 0.09316578507423401, -0.03233376517891884, 0.0041839792393147945, -0.029938630759716034, 0.031445592641830444, -0.006664624437689781, 0.1300373673439026, 0.009214979596436024, -0.05562747269868851, 0.01649942621588707, 0.010013573803007603, 0.07297676056623459, -0.019361281767487526, 0.09667936712503433, -0.022401433438062668, -0.020408891141414642, -0.06987013667821884, 0.026389682665467262, 0.007357125636190176, -0.0877753421664238, 0.0015904615866020322, 0.10303183645009995, -0.006733830086886883, -0.0944516658782959, -0.009351730346679688, -0.047373078763484955, -0.07351073622703552, -0.047347597777843475, -0.08121328800916672, 0.05203055217862129, 0.002817155560478568, 0.014003269374370575, -0.03861615061759949, 0.027888819575309753, -0.015073251910507679, -0.03901918604969978, -0.05439815670251846, 0.03523432835936546, 0.02102026343345642, 0.06051608547568321, 0.012071670964360237, -0.00464621651917696, -0.035148151218891144, 0.01013428345322609, 0.0011760080233216286, -0.0011055541690438986, -0.11856366693973541, -0.024875765666365623, 0.0008275418658740819, -0.04077444225549698, 0.10980834811925888, -0.010128891095519066, 0.044795457273721695, 0.021473320201039314, 0.022480931133031845, 0.02058017998933792, 0.01895212195813656, 0.03569167107343674, -0.04947907105088234, -0.025554370135068893, -0.04116501659154892, -0.1357940435409546, 0.026014141738414764, 0.031288061290979385, -0.09390067309141159, -0.027607204392552376, -0.033854566514492035, -0.014788630418479443, -0.03303300961852074, -0.057008255273103714, -0.07618364691734314, -0.05959523469209671, 0.02248419262468815, 0.008703152649104595, -0.02154376730322838, 0.0391729474067688, -0.061371318995952606, -0.07788029313087463, -0.003735458245500922, -0.021843094378709793, -0.07177279889583588, -0.13645151257514954, -0.0186904463917017, -0.06280696392059326, -5.506498226619401e-33, 0.09506502747535706, -0.09051689505577087, 0.029279695823788643, 0.08463573455810547, -0.0363294780254364, 0.02442837320268154, 0.0169888474047184, 0.025499649345874786, -0.031289491802453995, -0.038117922842502594, -0.030413974076509476, 0.04003221169114113, 0.008128037676215172, 0.01891380362212658, -0.04793315380811691, 0.0013163258554413915, -0.12212368100881577, -0.007518006023019552, -0.034570593386888504, 0.05189310014247894, 0.04696239158511162, 0.00858487468212843, 0.03746766969561577, 0.0533175952732563, -0.04939396679401398, -0.06908727437257767, -0.008500026538968086, 0.04983079060912132, 0.005436652339994907, -0.07302538305521011, 0.010027424432337284, -0.02392471209168434, -0.07514576613903046, -0.08538442105054855, 0.008299470879137516, -0.02693060413002968, 0.15120704472064972, -0.006392756476998329, -0.04730253666639328, 0.02817147597670555, -0.0023334443103522062, -0.0341302864253521, -0.06072411686182022, -0.09590882062911987, -0.050087619572877884, -0.028109323233366013, 0.0854792669415474, 0.005072801373898983, 0.059263501316308975, -0.0637788474559784, 0.0771065428853035, -0.009230195544660091, -0.02618507854640484, 0.04067486897110939, -0.042880233377218246, -0.00023536702792625874, 0.0036839155945926905, 0.018891451880335808, -0.022120675072073936, -0.06968711316585541, 0.0738920047879219, -0.06620507687330246, 0.03160993382334709, 0.009856214746832848, 0.0036773383617401123, -0.04576583579182625, 0.047902386635541916, 0.03066251054406166, -0.054576121270656586, -0.030688101425766945, -0.013851560652256012, -0.034674737602472305, 0.03523661941289902, -0.08532083034515381, 0.01110089011490345, -0.018375078216195107, 0.018210988491773605, -0.10310449451208115, 0.026471810415387154, -0.02648196555674076, -0.012280800379812717, 0.03183777257800102, 0.0009871638612821698, 0.05074405297636986, 0.07593436539173126, 0.007425270043313503, 0.04850229620933533, 0.10570356994867325, 0.025029482319951057, 0.05449213832616806, -0.09094113856554031, 0.007766475435346365, -0.06713247299194336, 0.13964329659938812, -0.01191624440252781, -4.938566888768037e-8, 0.0008807238773442805, 0.18666033446788788, -0.025257788598537445, 0.042919132858514786, -0.04345537722110748, -0.09139197319746017, 0.009205669164657593, 0.031048282980918884, -0.013480867259204388, -0.027461105957627296, 0.023578280583024025, 0.056878216564655304, -0.00801348127424717, 0.023401256650686264, -0.024768443778157234, 0.03735698014497757, -0.02190578542649746, -0.04150192067027092, 0.011670941486954689, -0.06720021367073059, -0.015017571859061718, 0.014184744097292423, -0.022106345742940903, 0.030794311314821243, 0.014823604375123978, 0.007762070745229721, 0.031034575775265694, 0.0037931299302726984, 0.0317646823823452, -0.034823957830667496, 0.05047048255801201, -0.011857347562909126, -0.03139331191778183, 0.1009761318564415, 0.06465142220258713, 0.004654338117688894, -0.06741635501384735, 0.055702414363622665, 0.07822451740503311, 0.03848675265908241, 0.002512705512344837, -0.03245018050074577, -0.0968259796500206, 0.021292611956596375, 0.06218963488936424, 0.09708856791257858, -0.018037717789411545, 0.06998448818922043, -0.06538884341716766, 0.006236269138753414, -0.016168419271707535, -0.006731501780450344, -0.011553450487554073, 0.07393789291381836, 0.017692964524030685, 0.023838821798563004, 0.02165909670293331, 0.07206441462039948, 0.09186700731515884, 0.06591126322746277, 0.055746741592884064, 0.03669983521103859, 0.02563106268644333, 0.008981120772659779 ]
0.071162
This document describes the concept of a StorageClass in Kubernetes. Familiarity with [volumes](/docs/concepts/storage/volumes/) and [persistent volumes](/docs/concepts/storage/persistent-volumes) is suggested. A StorageClass provides a way for administrators to describe the \_classes\_ of storage they offer. Different classes might map to quality-of-service levels, or to backup policies, or to arbitrary policies determined by the cluster administrators. Kubernetes itself is unopinionated about what classes represent. The Kubernetes concept of a storage class is similar to “profiles” in some other storage system designs. ## StorageClass objects Each StorageClass contains the fields `provisioner`, `parameters`, and `reclaimPolicy`, which are used when a PersistentVolume belonging to the class needs to be dynamically provisioned to satisfy a PersistentVolumeClaim (PVC). The name of a StorageClass object is significant, and is how users can request a particular class. Administrators set the name and other parameters of a class when first creating StorageClass objects. As an administrator, you can specify a default StorageClass that applies to any PVCs that don't request a specific class. For more details, see the [PersistentVolumeClaim concept](/docs/concepts/storage/persistent-volumes/#persistentvolumeclaims). Here's an example of a StorageClass: {{% code\_sample file="storage/storageclass-low-latency.yaml" %}} ## Default StorageClass You can mark a StorageClass as the default for your cluster. For instructions on setting the default StorageClass, see [Change the default StorageClass](/docs/tasks/administer-cluster/change-default-storage-class/). When a PVC does not specify a `storageClassName`, the default StorageClass is used. If you set the [`storageclass.kubernetes.io/is-default-class`](/docs/reference/labels-annotations-taints/#storageclass-kubernetes-io-is-default-class) annotation to true on more than one StorageClass in your cluster, and you then create a PersistentVolumeClaim with no `storageClassName` set, Kubernetes uses the most recently created default StorageClass. {{< note >}} You should try to only have one StorageClass in your cluster that is marked as the default. The reason that Kubernetes allows you to have multiple default StorageClasses is to allow for seamless migration. {{< /note >}} You can create a PersistentVolumeClaim without specifying a `storageClassName` for the new PVC, and you can do so even when no default StorageClass exists in your cluster. In this case, the new PVC creates as you defined it, and the `storageClassName` of that PVC remains unset until a default becomes available. You can have a cluster without any default StorageClass. If you don't mark any StorageClass as default (and one hasn't been set for you by, for example, a cloud provider), then Kubernetes cannot apply that defaulting for PersistentVolumeClaims that need it. If or when a default StorageClass becomes available, the control plane identifies any existing PVCs without `storageClassName`. For the PVCs that either have an empty value for `storageClassName` or do not have this key, the control plane then updates those PVCs to set `storageClassName` to match the new default StorageClass. If you have an existing PVC where the `storageClassName` is `""`, and you configure a default StorageClass, then this PVC will not get updated. In order to keep binding to PVs with `storageClassName` set to `""` (while a default StorageClass is present), you need to set the `storageClassName` of the associated PVC to `""`. ## Provisioner Each StorageClass has a provisioner that determines what volume plugin is used for provisioning PVs. This field must be specified. | Volume Plugin | Internal Provisioner | Config Example | | :------------------- | :------------------: | :-----------------------------------: | | AzureFile | ✓ | [Azure File](#azure-file) | | CephFS | - | - | | FC | - | - | | FlexVolume | - | - | | iSCSI | - | - | | Local | - | [Local](#local) | | NFS | - | [NFS](#nfs) | | PortworxVolume | ✓ | [Portworx Volume](#portworx-volume) | | RBD | - | [Ceph RBD](#ceph-rbd) | | VsphereVolume | ✓ | [vSphere](#vsphere) |
null
./vendor/kubernetes/content/en/docs/concepts/storage/storage-classes.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/storage/storage-classes.md
[ -0.058657702058553696, 0.014427806250751019, 0.003988089505583048, 0.01888941042125225, -0.051255691796541214, 0.00755489943549037, 0.036326609551906586, -0.012654813937842846, 0.06345251947641373, 0.014486530795693398, -0.023313147947192192, 0.017773481085896492, 0.0585433728992939, 0.0031658802181482315, -0.017149848863482475, -0.03584000840783119, 0.036170829087495804, -0.009023148566484451, -0.10315225273370743, 0.05573342740535736, 0.035453323274850845, -0.0065931049175560474, 0.006568577606230974, 0.022529415786266327, -0.04139992967247963, 0.018559042364358902, -0.014722985215485096, -0.02821703441441059, 0.011426577344536781, -0.010408258065581322, -0.035847947001457214, 0.023556290194392204, -0.014526136219501495, 0.029059672728180885, 0.048857465386390686, 0.0921061635017395, -0.018154432997107506, 0.014677518978714943, -0.09749764204025269, -0.005836645141243935, 0.0033282183576375246, -0.06494102627038956, -0.06699586659669876, 0.008722829632461071, -0.045758847147226334, 0.04210599884390831, -0.0053661963902413845, -0.07608967274427414, -0.029372096061706543, -0.05222202464938164, 0.07909032702445984, -0.06406300514936447, 0.029937956482172012, 0.09967031329870224, 0.012562034651637077, 0.07343442738056183, 0.026276426389813423, 0.08492115139961243, 0.05403681844472885, -0.007709160912781954, -0.01235496997833252, -0.006715377792716026, 0.06582976877689362, 0.009939913637936115, -0.043195173144340515, 0.015010791830718517, 0.023112522438168526, 0.04344690591096878, 0.0679527223110199, -0.023759115487337112, 0.044547975063323975, 0.09164498001337051, -0.04053260385990143, 0.0686221644282341, 0.013428064994513988, -0.005598485469818115, -0.04321145638823509, 0.09138475358486176, -0.0024647379759699106, -0.07216626405715942, 0.03139667585492134, 0.025530606508255005, 0.01875559240579605, -0.018237553536891937, -0.07654570788145065, -0.04850373417139053, -0.056231509894132614, -0.019250452518463135, 0.01730392873287201, -0.010558363050222397, 0.0002885155554395169, -0.017787804827094078, 0.061518777161836624, -0.1102244183421135, -0.01196964830160141, -0.01955271139740944, -0.040560364723205566, -0.049002740532159805, 0.08601486682891846, -0.03906060755252838, -0.01429403480142355, 0.01708974502980709, 0.010673507116734982, 0.024714497849345207, 0.04676070809364319, -0.12936240434646606, -0.013955562375485897, -0.00779870618134737, -0.02263554185628891, 0.047802697867155075, -0.04632563143968582, 0.05417238920927048, -0.06307627260684967, 0.005226675420999527, 0.040625154972076416, 0.04273190721869469, -0.027504775673151016, 0.012930085882544518, 0.006105577573180199, 0.013632270507514477, 0.004072091076523066, -0.10922896862030029, 0.05317861959338188, -0.04382600262761116, -0.003074581967666745, 0.052169669419527054, -0.07280811667442322, 1.6753299771552787e-33, 0.004596767481416464, -0.07824666053056717, 0.0037744129076600075, 0.002492518164217472, 0.01934211514890194, -0.07359914481639862, 0.02601265348494053, 0.028592195361852646, 0.007979502901434898, -0.09572063386440277, -0.045148663222789764, 0.11569316685199738, 0.004306518007069826, 0.03853549063205719, 0.09158967435359955, 0.047933343797922134, -0.09475325047969818, 0.10362184792757034, 0.08419406414031982, -0.07685225456953049, 0.018012497574090958, 0.08007236570119858, 0.04700183495879173, -0.0160940270870924, 0.035754282027482986, -0.021770695224404335, 0.07245120406150818, -0.05569125711917877, -0.010685374960303307, 0.023979563266038895, -0.04844629019498825, -0.019995931535959244, 0.05856703966856003, -0.02309998869895935, -0.05708799883723259, 0.07774191349744797, -0.06548183411359787, 0.040253132581710815, -0.06946015357971191, -0.11598164588212967, 0.014796029776334763, -0.06089325249195099, 0.007513991557061672, -0.0002856566570699215, -0.02178274840116501, -0.055774036794900894, 0.0597228966653347, -0.052013933658599854, -0.010138418525457382, 0.06663423031568527, -0.013608619570732117, -0.032188042998313904, 0.021945390850305557, -0.012274584732949734, 0.0167356226593256, -0.008053332567214966, 0.10245178639888763, -0.07162417471408844, -0.08200708776712418, -0.0482526570558548, 0.011110546998679638, 0.02033567801117897, 0.0024747068528085947, 0.046027086675167084, -0.03168844059109688, -0.028757741674780846, -0.013711029663681984, -0.018092667683959007, 0.030920490622520447, -0.07065145671367645, 0.021029479801654816, -0.01320557203143835, -0.12197700887918472, -0.002782378578558564, 0.027748631313443184, -0.042426109313964844, -0.020045965909957886, 0.027964668348431587, -0.11108855903148651, 0.004136234521865845, -0.01761097088456154, -0.09584131836891174, -0.05625515058636665, 0.08283726871013641, -0.09228210151195526, -0.02205648086965084, 0.0630449429154396, -0.005404118914157152, -0.020604606717824936, -0.017673876136541367, 0.020946398377418518, -0.05499842017889023, -0.014879490248858929, 0.08496314287185669, -0.053887490183115005, -3.927697641501741e-33, 0.08029837161302567, 0.01442326046526432, -0.058507151901721954, 0.029696615412831306, 0.011739915236830711, 0.07503574341535568, -0.06897500157356262, 0.013005326502025127, -0.07663440704345703, -0.0906786397099495, -0.07902784645557404, -0.006278353277593851, -0.033158499747514725, 0.012952513992786407, -0.08533473312854767, -0.028819547966122627, -0.09215271472930908, -0.08644621819257736, 0.004211711697280407, 0.020689209923148155, -0.0230590607970953, -0.010572867467999458, 0.014774775132536888, 0.05702105909585953, -0.02906779758632183, -0.009353694505989552, -0.01792696863412857, 0.04400252178311348, -0.031377214938402176, -0.017066258937120438, -0.02103908360004425, -0.12346706539392471, -0.03551866486668587, -0.02955695241689682, -0.019052723422646523, -0.06804107129573822, 0.026183590292930603, -0.025564493611454964, -0.0698256641626358, 0.04471789300441742, 0.008455324918031693, -0.014148633927106857, -0.031090596690773964, -0.010765118524432182, -0.03774048760533333, 0.024497343227267265, 0.07435401529073715, -0.02403237856924534, 0.06575828045606613, -0.05087589845061302, 0.001458378043025732, -0.015118329785764217, -0.007724564056843519, 0.06345880031585693, -0.005335909314453602, 0.07955235987901688, -0.0006151643465273082, 0.08464288711547852, -0.02382686175405979, 0.045661404728889465, 0.08527468144893646, -0.08768347650766373, 0.02722088061273098, 0.07248447090387344, -0.12604066729545593, -0.050915125757455826, 0.08477050065994263, -0.005339684896171093, -0.0922330915927887, 0.026398101821541786, 0.02671358920633793, -0.06353110074996948, -0.00355493719689548, 0.02400217205286026, -0.027854835614562035, -0.09914880990982056, 0.049795981496572495, -0.024298284202814102, 0.023860899731516838, -0.01427137479186058, -0.019466092810034752, 0.011493961326777935, -0.07646949589252472, 0.028491735458374023, 0.0458604171872139, -0.05486418306827545, 0.06997523456811905, 0.04159152880311012, 0.04254628345370293, 0.04019084572792053, -0.018564356490969658, 0.06541623920202255, -0.12368956953287125, 0.08609063178300858, -0.060104746371507645, -5.269944480801314e-8, 0.00695617264136672, 0.029323754832148552, -0.002303705085068941, 0.07556968927383423, -0.017535652965307236, -0.09927956759929657, 0.030510881915688515, 0.055197205394506454, -0.02274717204272747, 0.027461417019367218, 0.06801055371761322, 0.050541918724775314, -0.04308457672595978, -0.08200624585151672, -0.006583870388567448, 0.037234410643577576, 0.01707020029425621, 0.023606382310390472, -0.011447547934949398, 0.016199447214603424, 0.008037984371185303, -0.07412099093198776, -0.008592767640948296, -0.015013208612799644, 0.05126455798745155, 0.04609230160713196, 0.08375588059425354, 0.058241330087184906, 0.07660733163356781, 0.0572073869407177, 0.030019288882613182, 0.04856375232338905, 0.0026392219588160515, 0.04702861234545708, -0.009081308729946613, 0.08825359493494034, -0.07509143650531769, 0.02791578322649002, 0.04853467643260956, 0.06206075847148895, -0.019464801996946335, -0.04676136374473572, -0.05881568789482117, 0.04158099740743637, 0.06946694105863571, 0.11248619109392166, -0.0065263183787465096, 0.0845840573310852, -0.02879280596971512, 0.04800208657979965, -0.09160061180591583, -0.018229778856039047, -0.03420758247375488, 0.12897980213165283, -0.028179267421364784, -0.008954646997153759, -0.016584640368819237, 0.00017377712356392294, 0.05936576426029205, 0.029910983517766, 0.042490363121032715, 0.08482564985752106, -0.006457882467657328, 0.02549760602414608 ]
0.119293
FlexVolume | - | - | | iSCSI | - | - | | Local | - | [Local](#local) | | NFS | - | [NFS](#nfs) | | PortworxVolume | ✓ | [Portworx Volume](#portworx-volume) | | RBD | - | [Ceph RBD](#ceph-rbd) | | VsphereVolume | ✓ | [vSphere](#vsphere) | You are not restricted to specifying the "internal" provisioners listed here (whose names are prefixed with "kubernetes.io" and shipped alongside Kubernetes). You can also run and specify external provisioners, which are independent programs that follow a [specification](https://git.k8s.io/design-proposals-archive/storage/volume-provisioning.md) defined by Kubernetes. Authors of external provisioners have full discretion over where their code lives, how the provisioner is shipped, how it needs to be run, what volume plugin it uses (including Flex), etc. The repository [kubernetes-sigs/sig-storage-lib-external-provisioner](https://github.com/kubernetes-sigs/sig-storage-lib-external-provisioner) houses a library for writing external provisioners that implements the bulk of the specification. Some external provisioners are listed under the repository [kubernetes-sigs/sig-storage-lib-external-provisioner](https://github.com/kubernetes-sigs/sig-storage-lib-external-provisioner). For example, NFS doesn't provide an internal provisioner, but an external provisioner can be used. There are also cases when 3rd party storage vendors provide their own external provisioner. ## Reclaim policy PersistentVolumes that are dynamically created by a StorageClass will have the [reclaim policy](/docs/concepts/storage/persistent-volumes/#reclaiming) specified in the `reclaimPolicy` field of the class, which can be either `Delete` or `Retain`. If no `reclaimPolicy` is specified when a StorageClass object is created, it will default to `Delete`. PersistentVolumes that are created manually and managed via a StorageClass will have whatever reclaim policy they were assigned at creation. ## Volume expansion {#allow-volume-expansion} PersistentVolumes can be configured to be expandable. This allows you to resize the volume by editing the corresponding PVC object, requesting a new larger amount of storage. The following types of volumes support volume expansion, when the underlying StorageClass has the field `allowVolumeExpansion` set to true. {{< table caption = "Table of Volume types and the version of Kubernetes they require" >}} | Volume type | Required Kubernetes version for volume expansion | | :------------------- | :----------------------------------------------- | | Azure File | 1.11 | | CSI | 1.24 | | FlexVolume | 1.13 | | Portworx | 1.11 | | rbd | 1.11 | {{< /table >}} {{< note >}} You can only use the volume expansion feature to grow a Volume, not to shrink it. {{< /note >}} ## Mount options PersistentVolumes that are dynamically created by a StorageClass will have the mount options specified in the `mountOptions` field of the class. If the volume plugin does not support mount options but mount options are specified, provisioning will fail. Mount options are \*\*not\*\* validated on either the class or PV. If a mount option is invalid, the PV mount fails. ## Volume binding mode The `volumeBindingMode` field controls when [volume binding and dynamic provisioning](/docs/concepts/storage/persistent-volumes/#provisioning) should occur. When unset, `Immediate` mode is used by default. The `Immediate` mode indicates that volume binding and dynamic provisioning occurs once the PersistentVolumeClaim is created. For storage backends that are topology-constrained and not globally accessible from all Nodes in the cluster, PersistentVolumes will be bound or provisioned without knowledge of the Pod's scheduling requirements. This may result in unschedulable Pods. A cluster administrator can address this issue by specifying the `WaitForFirstConsumer` mode which will delay the binding and provisioning of a PersistentVolume until a Pod using the PersistentVolumeClaim is created. PersistentVolumes will be selected or provisioned conforming to the topology that is specified by the Pod's scheduling constraints. These include, but are not limited to, [resource requirements](/docs/concepts/configuration/manage-resources-containers/), [node selectors](/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector), [pod affinity and anti-affinity](/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity), and [taints and tolerations](/docs/concepts/scheduling-eviction/taint-and-toleration). The following plugins support `WaitForFirstConsumer` with dynamic provisioning: - CSI volumes, provided that the specific CSI driver supports this The
null
./vendor/kubernetes/content/en/docs/concepts/storage/storage-classes.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/storage/storage-classes.md
[ 0.006111594848334789, -0.067986860871315, 0.024779945611953735, -0.013948977924883366, 0.024365369230508804, -0.020204639062285423, -0.07274594902992249, 0.05737103149294853, 0.021150045096874237, 0.00355662708170712, -0.001095677725970745, -0.08231210708618164, 0.013046476989984512, 0.011452145874500275, -0.0030740469228476286, -0.06968700140714645, 0.03213455528020859, -0.05267450958490372, -0.041808146983385086, 0.009003265760838985, 0.02994237281382084, 0.023569196462631226, -0.014748682267963886, -0.06719790399074554, -0.02256770431995392, -0.0517096221446991, -0.00592385046184063, 0.029980041086673737, 0.06538140773773193, -0.061193134635686874, 0.0321924053132534, 0.022764606401324272, 0.0250505730509758, 0.015465683303773403, 0.13008221983909607, 0.05310146138072014, 0.03369211405515671, -0.0692048892378807, -0.1787048727273941, -0.013302629813551903, 0.026150230318307877, -0.09901093691587448, -0.11154107004404068, 0.0173773355782032, -0.030290398746728897, -0.05276273936033249, -0.015486466698348522, -0.06757292151451111, -0.03344753757119179, 0.009118221700191498, 0.05532965436577797, -0.046967316418886185, 0.0013142044190317392, 0.13850389420986176, 0.009551051072776318, -0.023113831877708435, 0.014368419535458088, 0.048186905682086945, 0.11546863615512848, 0.04987303167581558, 0.13099950551986694, -0.05773746967315674, 0.06971374899148941, -0.014786949381232262, -0.08615314215421677, 0.09289443492889404, 0.0016198174562305212, 0.030550865456461906, -0.08895599097013474, -0.09272628277540207, 0.02433319203555584, 0.026255279779434204, -0.025093764066696167, 0.024826718494296074, 0.018036918714642525, 0.001874922658316791, 0.03152044117450714, 0.02335663139820099, 0.018093420192599297, -0.10409078747034073, 0.02611079439520836, 0.07126560807228088, -0.06021498516201973, -0.016146142035722733, -0.07688525319099426, 0.003508177353069186, -0.02715487591922283, 0.008647944778203964, 0.05066142976284027, -0.0034630484879016876, -0.047651857137680054, -0.0695958137512207, 0.03041595034301281, -0.0909467563033104, 0.08124391734600067, -0.04672162979841232, -0.04878994822502136, -0.016437962651252747, 0.01246106717735529, -0.03835674375295639, -0.068145751953125, -0.03953887149691582, -0.014886027202010155, 0.029408860951662064, -0.05093038082122803, -0.09488515555858612, -0.01044820249080658, 0.03113703802227974, -0.002760208211839199, 0.01195363700389862, -0.04933469370007515, 0.07735296338796616, -0.03831222280859947, -0.030728192999958992, -0.00048524740850552917, 0.054282572120428085, -0.044936422258615494, -0.001664049574173987, 0.07417358458042145, 0.0026854637544602156, -0.01874847337603569, -0.058156225830316544, 0.014044184237718582, 0.011285514570772648, 0.033591218292713165, 0.05172548443078995, -0.0009165882947854698, 4.36415024509641e-33, 0.005992962047457695, 0.005243258085101843, -0.034777555614709854, 0.002879004692658782, 0.054732002317905426, -0.0688682422041893, 0.05427931621670723, -0.0169637743383646, -0.09708227962255478, -0.07691150903701782, -0.009957723319530487, 0.1069050282239914, -0.011462293565273285, 0.03948584571480751, 0.061068687587976456, -0.05054916441440582, -0.013877224177122116, 0.04416678845882416, 0.05210694298148155, -0.018572719767689705, 0.027735544368624687, -0.012420655228197575, -0.029598722234368324, -0.02030116133391857, 0.02437134087085724, -0.08006943017244339, 0.007051678374409676, -0.011395484209060669, 0.037141550332307816, -0.011413163505494595, -0.04324638098478317, -0.02803748846054077, 0.08805327862501144, 0.06531830132007599, -0.03788764029741287, -0.00689407903701067, -0.09144696593284607, 0.0013968829298391938, -0.11023451387882233, -0.001709213713183999, 0.027531679719686508, 0.028556756675243378, -0.04076980799436569, -0.018994005396962166, -0.039195552468299866, -0.012343448586761951, 0.007307269610464573, -0.08986328542232513, 0.10499680787324905, 0.015146351419389248, 0.009271706454455853, 0.07906880229711533, 0.011075662449002266, -0.061752304434776306, 0.13657858967781067, -0.03197885677218437, 0.0043107690289616585, -0.060890037566423416, -0.024326693266630173, -0.052790917456150055, -0.048002805560827255, 0.005814948584884405, 0.017566759139299393, 0.022659828886389732, -0.011197135783731937, -0.04236392304301262, 0.00790652446448803, -0.04023139551281929, 0.054598234593868256, -0.07208499312400818, -0.10516626387834549, 0.04199622943997383, 0.004309043288230896, -0.03257051482796669, 0.0063564409501850605, -0.051869772374629974, -0.048241615295410156, 0.03856557235121727, -0.04597363993525505, -0.036189865320920944, -0.06256891787052155, 0.009255782701075077, -0.0685143917798996, 0.11744283884763718, 0.008380342274904251, 0.02057599648833275, -0.01488916389644146, 0.03931187465786934, -0.0037067800294607878, -0.05342789739370346, 0.021512746810913086, -0.0695255696773529, -0.02861427702009678, -0.06266330182552338, -0.0438198521733284, -5.848091742180573e-33, 0.03393757715821266, 0.0337226428091526, -0.03127283602952957, 0.005511908326297998, 0.038457706570625305, 0.06795597821474075, 0.01317055243998766, 0.013276562094688416, 0.006604490336030722, -0.0905764251947403, -0.01922578178346157, 0.01676180772483349, 0.05247654765844345, 0.00269624893553555, -0.08044929802417755, 0.017535265535116196, -0.0349159799516201, -0.02383258379995823, 0.05190429463982582, 0.02821369282901287, -0.028158793225884438, 0.016969891265034676, 0.07560552656650543, 0.03622741252183914, -0.00779012031853199, 0.022347481921315193, 0.009180732071399689, 0.045268334448337555, -0.11813917011022568, -0.04624605551362038, -0.0015178438043221831, -0.02433490939438343, -0.06451678276062012, -0.003733676392585039, 0.026326516643166542, -0.06186964362859726, 0.029657719656825066, 0.034016575664281845, -0.02406911924481392, -0.07094821333885193, -0.00599291455000639, -0.024667367339134216, -0.05551875755190849, 0.020888162776827812, -0.11617367714643478, -0.0017292022239416838, 0.06035415828227997, -0.06367164850234985, 0.006838272791355848, -0.019019203260540962, -0.0607336163520813, -0.010947093367576599, -0.04552397131919861, 0.07721412926912308, -0.005119868088513613, 0.052812207490205765, 0.0433797761797905, 0.05272785574197769, -0.018215512856841087, 0.013419384136795998, 0.1071520447731018, -0.05316568538546562, 0.08306699246168137, -0.024317463859915733, -0.030879756435751915, -0.013467179611325264, -0.023879913613200188, -0.019508475437760353, -0.05591464415192604, 0.001098046195693314, 0.0005522139254026115, -0.06418261677026749, 0.011740363202989101, 0.021571118384599686, -0.01483854278922081, -0.031820107251405716, 0.01558666117489338, -0.05982404574751854, -0.009260473772883415, 0.050279002636671066, -0.05093661695718765, 0.0597091019153595, -0.04211683198809624, 0.0465686097741127, 0.041221436113119125, -0.017003318294882774, 0.11116654425859451, 0.02857835590839386, 0.07101112604141235, 0.042628850787878036, -0.07936461269855499, 0.04140692949295044, -0.015531286597251892, 0.08102334290742874, 0.059419069439172745, -5.632904986896392e-8, 0.009474759921431541, -0.009207602590322495, -0.10774938017129898, 0.016442622989416122, -0.031092273071408272, -0.056305885314941406, 0.05064373463392258, -0.043722592294216156, 0.004789348226040602, 0.038946472108364105, 0.028131868690252304, -0.004850122611969709, -0.03970944136381149, -0.03907755762338638, 0.020153647288680077, 0.009685995057225227, 0.023592302575707436, 0.10587971657514572, -0.010362275876104832, -0.03577155992388725, 0.014395320788025856, 0.03469586372375488, 0.044589072465896606, -0.0304526649415493, -0.0023871930316090584, 0.06718515604734421, 0.08128179609775543, -0.07522636651992798, 0.0669286921620369, 0.022398483008146286, 0.04889753460884094, 0.04923924803733826, -0.012740343809127808, 0.0506296306848526, -0.042708393186330795, 0.020698662847280502, -0.04390756040811539, 0.1411578357219696, 0.07073758542537689, 0.058509018272161484, 0.011125437915325165, 0.023410150781273842, -0.07766257971525192, -0.009320320561528206, 0.051444247364997864, 0.04885795712471008, -0.11614864319562912, 0.033233191817998886, -0.04110090062022209, 0.04954853653907776, -0.03826276957988739, -0.04072200134396553, -0.012854869477450848, 0.12166472524404526, 0.07842184603214264, 0.023384183645248413, -0.05559668317437172, 0.007831943221390247, 0.07742274552583694, 0.09565053135156631, -0.056330908089876175, 0.02951883152127266, 0.05473332107067108, 0.018902309238910675 ]
0.164231
to the topology that is specified by the Pod's scheduling constraints. These include, but are not limited to, [resource requirements](/docs/concepts/configuration/manage-resources-containers/), [node selectors](/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector), [pod affinity and anti-affinity](/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity), and [taints and tolerations](/docs/concepts/scheduling-eviction/taint-and-toleration). The following plugins support `WaitForFirstConsumer` with dynamic provisioning: - CSI volumes, provided that the specific CSI driver supports this The following plugins support `WaitForFirstConsumer` with pre-created PersistentVolume binding: - CSI volumes, provided that the specific CSI driver supports this - [`local`](#local) {{< note >}} If you choose to use `WaitForFirstConsumer`, do not use `nodeName` in the Pod spec to specify node affinity. If `nodeName` is used in this case, the scheduler will be bypassed and PVC will remain in `pending` state. Instead, you can use node selector for `kubernetes.io/hostname`: {{< /note >}} {{% code\_sample language="yaml" file="storage/storageclass/pod-volume-binding.yaml" %}} ## Allowed topologies When a cluster operator specifies the `WaitForFirstConsumer` volume binding mode, it is no longer necessary to restrict provisioning to specific topologies in most situations. However, if still required, `allowedTopologies` can be specified. This example demonstrates how to restrict the topology of provisioned volumes to specific zones and should be used as a replacement for the `zone` and `zones` parameters for the supported plugins. {{% code\_sample language="yaml" file="storage/storageclass/storageclass-topology.yaml" %}} ## Parameters StorageClasses have parameters that describe volumes belonging to the storage class. Different parameters may be accepted depending on the `provisioner`. When a parameter is omitted, some default is used. There can be at most 512 parameters defined for a StorageClass. The total length of the parameters object including its keys and values cannot exceed 256 KiB. ### AWS EBS Kubernetes {{< skew currentVersion >}} does not include a `awsElasticBlockStore` volume type. The AWSElasticBlockStore in-tree storage driver was deprecated in the Kubernetes v1.19 release and then removed entirely in the v1.27 release. The Kubernetes project suggests that you use the [AWS EBS](https://github.com/kubernetes-sigs/aws-ebs-csi-driver) out-of-tree storage driver instead. Here is an example StorageClass for the AWS EBS CSI driver: {{% code\_sample language="yaml" file="storage/storageclass/storageclass-aws-ebs.yaml" %}} `tagSpecification`: Tags with this prefix are applied to dynamically provisioned EBS volumes. ### AWS EFS To configure AWS EFS storage, you can use the out-of-tree [AWS\_EFS\_CSI\_DRIVER](https://github.com/kubernetes-sigs/aws-efs-csi-driver). {{% code\_sample language="yaml" file="storage/storageclass/storageclass-aws-efs.yaml" %}} - `provisioningMode`: The type of volume to be provisioned by Amazon EFS. Currently, only access point based provisioning is supported (`efs-ap`). - `fileSystemId`: The file system under which the access point is created. - `directoryPerms`: The directory permissions of the root directory created by the access point. For more details, refer to the [AWS\_EFS\_CSI\_Driver Dynamic Provisioning](https://github.com/kubernetes-sigs/aws-efs-csi-driver/blob/master/examples/kubernetes/dynamic\_provisioning/README.md) documentation. ### NFS To configure NFS storage, you can use the in-tree driver or the [NFS CSI driver for Kubernetes](https://github.com/kubernetes-csi/csi-driver-nfs#readme) (recommended). {{% code\_sample language="yaml" file="storage/storageclass/storageclass-nfs.yaml" %}} - `server`: Server is the hostname or IP address of the NFS server. - `path`: Path that is exported by the NFS server. - `readOnly`: A flag indicating whether the storage will be mounted as read only (default false). Kubernetes doesn't include an internal NFS provisioner. You need to use an external provisioner to create a StorageClass for NFS. Here are some examples: - [NFS Ganesha server and external provisioner](https://github.com/kubernetes-sigs/nfs-ganesha-server-and-external-provisioner) - [NFS subdir external provisioner](https://github.com/kubernetes-sigs/nfs-subdir-external-provisioner) ### vSphere There are two types of provisioners for vSphere storage classes: - [CSI provisioner](#vsphere-provisioner-csi): `csi.vsphere.vmware.com` - [vCP provisioner](#vcp-provisioner): `kubernetes.io/vsphere-volume` In-tree provisioners are [deprecated](/blog/2019/12/09/kubernetes-1-17-feature-csi-migration-beta/#why-are-we-migrating-in-tree-plugins-to-csi). For more information on the CSI provisioner, see [Kubernetes vSphere CSI Driver](https://vsphere-csi-driver.sigs.k8s.io/) and [vSphereVolume CSI migration](/docs/concepts/storage/volumes/#vsphere-csi-migration). #### CSI Provisioner {#vsphere-provisioner-csi} The vSphere CSI StorageClass provisioner works with Tanzu Kubernetes clusters. For an example, refer to the [vSphere CSI repository](https://github.com/kubernetes-sigs/vsphere-csi-driver/blob/master/example/vanilla-k8s-RWM-filesystem-volumes/example-sc.yaml). #### vCP Provisioner The following examples use the VMware Cloud Provider (vCP) StorageClass provisioner. 1. Create a StorageClass with a user specified disk format. ```yaml apiVersion: storage.k8s.io/v1 kind:
null
./vendor/kubernetes/content/en/docs/concepts/storage/storage-classes.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/storage/storage-classes.md
[ 0.004055976402014494, -0.02559269219636917, -0.007231409661471844, 0.0581347681581974, 0.00809544138610363, -0.015356536954641342, -0.011799695901572704, -0.03522106260061264, 0.015267642214894295, 0.015314080752432346, 0.02158411778509617, -0.029066644608974457, 0.005426882300525904, 0.00031033167033456266, -0.0024041063152253628, -0.06837909668684006, 0.07589772343635559, 0.007947511039674282, 0.05287836864590645, -0.005278128664940596, 0.02435222454369068, 0.012395797297358513, 0.004513045772910118, -0.015020989812910557, -0.0224189180880785, -0.027764664962887764, -0.0631234347820282, -0.013811877928674221, 0.07754997909069061, -0.009209580719470978, -0.012836135923862457, -0.027773162350058556, 0.0440681166946888, -0.0042501455172896385, 0.09700457006692886, 0.09230729937553406, -0.005685233976691961, -0.08101456612348557, -0.08662162721157074, 0.038889966905117035, 0.04730045422911644, -0.055351488292217255, -0.08089904487133026, 0.0011662147007882595, -0.07370223850011826, -0.03288399055600166, -0.011540466919541359, 0.01967806927859783, -0.04180988296866417, -0.02643871121108532, 0.0034019697923213243, -0.0688994824886322, 0.062462177127599716, 0.06712919473648071, 0.050910934805870056, 0.10386229306459427, 0.053162939846515656, 0.05821361020207405, 0.07700341194868088, -0.0022268795873969793, 0.007750281132757664, -0.06600051373243332, 0.038037173449993134, -0.024090850725769997, 0.0505780391395092, 0.009698905050754547, 0.036946434527635574, 0.050707049667835236, 0.06846536695957184, 0.02449686825275421, 0.05454102158546448, 0.023174170404672623, -0.00418477226048708, 0.009978262707591057, 0.0003209868154954165, 0.07067254930734634, 0.06809098273515701, 0.04113325849175453, -0.0025581391528248787, -0.07447948306798935, -0.00352197396568954, 0.04353037104010582, -0.02670196071267128, -0.04332202672958374, -0.08027151972055435, 0.01332789659500122, -0.04479536786675453, 0.01763763278722763, 0.03719285503029823, -0.02646336518228054, 0.0628778338432312, 0.008808474987745285, -0.06418014317750931, -0.061138179153203964, 0.07339679449796677, -0.03289280831813812, -0.022320358082652092, -0.01775079034268856, 0.0449385941028595, -0.030809858813881874, 0.011106837540864944, -0.04571998864412308, -0.023020615801215172, 0.06854677200317383, 0.029351644217967987, -0.08785659074783325, -0.06455995887517929, -0.027783391997218132, -0.0421958789229393, 0.09412401914596558, 0.04649095609784126, 0.036507636308670044, 0.04002347216010094, -0.021429693326354027, -0.048539210110902786, 0.10741765797138214, 0.02108939178287983, -0.02366647496819496, 0.08737220615148544, 0.03390549123287201, 0.03030950389802456, -0.051047008484601974, 0.035955581814050674, -0.04964447766542435, 0.03636649623513222, -0.005975794978439808, -0.01149783842265606, 5.521676246411417e-34, 0.020490707829594612, -0.1455271989107132, -0.07177486270666122, -0.06385789066553116, -0.010633825324475765, -0.057971108704805374, 0.040440600365400314, 0.040244199335575104, -0.044769540429115295, -0.05785590782761574, -0.039351169019937515, 0.01534526888281107, -0.03779887780547142, -0.023992031812667847, 0.010893170721828938, -0.10482669621706009, -0.01016443595290184, 0.03754036873579025, 0.05110258236527443, 0.0027863902505487204, 0.021070200949907303, -0.06963379681110382, -0.06711239367723465, 0.014168302528560162, 0.04808216169476509, -0.014120382256805897, 0.03023977018892765, -0.11836323887109756, 0.0049096751026809216, 0.05321237072348595, -0.07235628366470337, 0.047256406396627426, 0.014817623421549797, 0.02408245950937271, -0.09553989768028259, -0.022578731179237366, -0.0758882611989975, 0.016440358012914658, -0.09427415579557419, -0.07395584136247635, 0.009798465296626091, 0.01734384521842003, 0.022068385034799576, -0.07605031132698059, -0.01241537556052208, -0.10524102300405502, 0.03541288897395134, -0.004482056945562363, 0.014504400081932545, 0.03907525911927223, 0.07010956853628159, -0.013739915564656258, -0.023072825744748116, -0.08095652610063553, 0.027470754459500313, -0.03078424744307995, 0.010408989153802395, -0.007453232537955046, 0.016238203272223473, 0.08597426116466522, -0.08716707676649094, -0.009066793136298656, -0.002271209144964814, 0.03219878301024437, 0.01310056634247303, 0.08528211712837219, -0.02366817556321621, -0.03814561292529106, 0.02298244647681713, 0.06179148703813553, -0.06316955387592316, 0.013831675983965397, -0.07249583303928375, 0.04306720197200775, -0.05838795378804207, 0.00007637990347575396, 0.010566667653620243, 0.034296195954084396, -0.1252240687608719, 0.0008645940106362104, -0.0031841930467635393, 0.06056566536426544, -0.014775563962757587, 0.11603754758834839, -0.009244014509022236, -0.02832149527966976, 0.06523572653532028, 0.03909987583756447, -0.06701992452144623, -0.0009621852659620345, 0.07363799214363098, -0.024792689830064774, 0.004317819140851498, 0.014527208171784878, -0.09179027378559113, -3.4677179776528447e-34, 0.07944074273109436, -0.07269469648599625, -0.022266056388616562, 0.0528520867228508, 0.012939092703163624, 0.00881871022284031, -0.026585642248392105, 0.019952047616243362, -0.017407473176717758, -0.04014984890818596, -0.07571584731340408, -0.02888258546590805, -0.0035137671511620283, 0.02194276638329029, -0.09177317470312119, -0.016726365312933922, -0.06052713468670845, -0.09203182905912399, 0.02793356589972973, 0.08706444501876831, 0.04894782230257988, -0.026502985507249832, -0.005048430524766445, -0.030378639698028564, 0.06316870450973511, -0.01397219579666853, 0.0444154255092144, 0.07555243372917175, -0.09064821898937225, -0.022292179986834526, -0.0408940464258194, -0.07776176184415817, -0.06012554466724396, -0.01627996191382408, 0.019663801416754723, 0.03692517802119255, -0.07685994356870651, 0.06422095745801926, 0.011264040134847164, 0.009234336204826832, 0.07963210344314575, 0.006341319065541029, -0.11097609996795654, -0.027542447671294212, -0.06801770627498627, 0.028381945565342903, 0.04387509077787399, -0.03490881249308586, -0.043605078011751175, -0.01844799518585205, -0.021994441747665405, 0.021947301924228668, -0.0037231275346130133, 0.11046365648508072, 0.010370729491114616, -0.002512628911063075, 0.03143082186579704, 0.04296543076634407, -0.03992300480604172, 0.032619185745716095, 0.07495887577533722, -0.08435654640197754, 0.08194892108440399, -0.009917238727211952, 0.048263128846883774, -0.05901160463690758, 0.039055678993463516, -0.03760785236954689, -0.047412559390068054, 0.039260175079107285, 0.09708119928836823, 0.002785035641863942, 0.03835330158472061, 0.06111682206392288, -0.014290519058704376, -0.021510064601898193, -0.02131046913564205, -0.02102290466427803, 0.056720852851867676, 0.022833997383713722, -0.10412635654211044, 0.11307138949632645, -0.015095551498234272, 0.05875872075557709, 0.07163365930318832, 0.09220700711011887, 0.03510914742946625, 0.09110688418149948, 0.07763155549764633, 0.09828030318021774, -0.01239208597689867, -0.03035234473645687, -0.02258395403623581, 0.057918015867471695, -0.0375017412006855, -5.133809821700197e-8, 0.06464271992444992, 0.01856604591012001, -0.022984271869063377, 0.04053930193185806, 0.05490037798881531, -0.07806822657585144, 0.10008516162633896, -0.0037838153075426817, -0.04737735912203789, 0.10016191750764847, 0.050180695950984955, 0.00047870498383417726, 0.045224107801914215, -0.03145254775881767, 0.004122654441744089, 0.005235548131167889, 0.05083981156349182, 0.009557589888572693, -0.07858922332525253, -0.08649531751871109, -0.03661027178168297, 0.01802927814424038, -0.03950997069478035, -0.010049078613519669, 0.004168037325143814, 0.011739994399249554, 0.10321716964244843, -0.006757138296961784, 0.09623512625694275, -0.012603182345628738, -0.11799123138189316, -0.016468746587634087, -0.03418196737766266, 0.01711997762322426, -0.08109009265899658, 0.06644512712955475, -0.11113926768302917, 0.06115097925066948, -0.004548810888081789, 0.049144402146339417, -0.025098327547311783, -0.06199948862195015, -0.029019424691796303, -0.03862859681248665, 0.0022260891273617744, 0.06506229937076569, -0.08319492638111115, 0.07131292670965195, -0.0356786847114563, 0.0424860380589962, -0.01961960271000862, -0.05701913312077522, -0.018320655450224876, 0.06538704037666321, 0.02762962318956852, -0.019647860899567604, 0.03518930450081825, -0.06700070202350616, 0.06725255399942398, 0.027165813371539116, -0.02099963091313839, -0.01355515606701374, 0.03525726497173309, 0.0005535012460313737 ]
0.138686
CSI Provisioner {#vsphere-provisioner-csi} The vSphere CSI StorageClass provisioner works with Tanzu Kubernetes clusters. For an example, refer to the [vSphere CSI repository](https://github.com/kubernetes-sigs/vsphere-csi-driver/blob/master/example/vanilla-k8s-RWM-filesystem-volumes/example-sc.yaml). #### vCP Provisioner The following examples use the VMware Cloud Provider (vCP) StorageClass provisioner. 1. Create a StorageClass with a user specified disk format. ```yaml apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: name: fast provisioner: kubernetes.io/vsphere-volume parameters: diskformat: zeroedthick ``` `diskformat`: `thin`, `zeroedthick` and `eagerzeroedthick`. Default: `"thin"`. 2. Create a StorageClass with a disk format on a user specified datastore. ```yaml apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: name: fast provisioner: kubernetes.io/vsphere-volume parameters: diskformat: zeroedthick datastore: VSANDatastore ``` `datastore`: The user can also specify the datastore in the StorageClass. The volume will be created on the datastore specified in the StorageClass, which in this case is `VSANDatastore`. This field is optional. If the datastore is not specified, then the volume will be created on the datastore specified in the vSphere config file used to initialize the vSphere Cloud Provider. 3. Storage Policy Management inside kubernetes - Using existing vCenter SPBM policy One of the most important features of vSphere for Storage Management is policy based Management. Storage Policy Based Management (SPBM) is a storage policy framework that provides a single unified control plane across a broad range of data services and storage solutions. SPBM enables vSphere administrators to overcome upfront storage provisioning challenges, such as capacity planning, differentiated service levels and managing capacity headroom. The SPBM policies can be specified in the StorageClass using the `storagePolicyName` parameter. - Virtual SAN policy support inside Kubernetes Vsphere Infrastructure (VI) Admins will have the ability to specify custom Virtual SAN Storage Capabilities during dynamic volume provisioning. You can now define storage requirements, such as performance and availability, in the form of storage capabilities during dynamic volume provisioning. The storage capability requirements are converted into a Virtual SAN policy which are then pushed down to the Virtual SAN layer when a persistent volume (virtual disk) is being created. The virtual disk is distributed across the Virtual SAN datastore to meet the requirements. You can see [Storage Policy Based Management for dynamic provisioning of volumes](https://github.com/vmware-archive/vsphere-storage-for-kubernetes/blob/fa4c8b8ad46a85b6555d715dd9d27ff69839df53/documentation/policy-based-mgmt.md) for more details on how to use storage policies for persistent volumes management. ### Ceph RBD (deprecated) {#ceph-rbd} {{< note >}} {{< feature-state state="deprecated" for\_k8s\_version="v1.28" >}} This internal provisioner of Ceph RBD is deprecated. Please use [CephFS RBD CSI driver](https://github.com/ceph/ceph-csi). {{< /note >}} {{% code\_sample language="yaml" file="storage/storageclass/storageclass-ceph-rbd.yaml" %}} - `monitors`: Ceph monitors, comma delimited. This parameter is required. - `adminId`: Ceph client ID that is capable of creating images in the pool. Default is "admin". - `adminSecretName`: Secret Name for `adminId`. This parameter is required. The provided secret must have type "kubernetes.io/rbd". - `adminSecretNamespace`: The namespace for `adminSecretName`. Default is "default". - `pool`: Ceph RBD pool. Default is "rbd". - `userId`: Ceph client ID that is used to map the RBD image. Default is the same as `adminId`. - `userSecretName`: The name of Ceph Secret for `userId` to map RBD image. It must exist in the same namespace as PVCs. This parameter is required. The provided secret must have type "kubernetes.io/rbd", for example created in this way: ```shell kubectl create secret generic ceph-secret --type="kubernetes.io/rbd" \ --from-literal=key='QVFEQ1pMdFhPUnQrSmhBQUFYaERWNHJsZ3BsMmNjcDR6RFZST0E9PQ==' \ --namespace=kube-system ``` - `userSecretNamespace`: The namespace for `userSecretName`. - `fsType`: fsType that is supported by kubernetes. Default: `"ext4"`. - `imageFormat`: Ceph RBD image format, "1" or "2". Default is "2". - `imageFeatures`: This parameter is optional and should only be used if you set `imageFormat` to "2". Currently supported features are `layering` only. Default is "", and no features are turned on. ### Azure Disk Kubernetes {{< skew currentVersion >}} does not include a `azureDisk`
null
./vendor/kubernetes/content/en/docs/concepts/storage/storage-classes.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/storage/storage-classes.md
[ -0.0019225786672905087, 0.037414416670799255, 0.028780674561858177, 0.00798017904162407, -0.00878533162176609, -0.007538985460996628, -0.041175298392772675, 0.05094097554683685, 0.040837790817022324, 0.08199750632047653, 0.0186450332403183, -0.08046522736549377, 0.04644499719142914, 0.053289249539375305, -0.008474322967231274, -0.07070742547512054, -0.0007009664550423622, -0.010170035995543003, 0.03686359152197838, 0.021511726081371307, 0.038219526410102844, 0.030291559174656868, 0.03749674931168556, -0.032499998807907104, -0.034266356378793716, -0.0767601728439331, 0.011244703084230423, 0.073650062084198, 0.06606020778417587, -0.0044904411770403385, -0.040243301540613174, 0.017956357449293137, -0.003841034835204482, 0.042952463030815125, 0.13538339734077454, 0.04914176091551781, 0.03266597539186478, -0.05614875257015228, -0.1475880742073059, 0.038026753813028336, 0.044630616903305054, -0.008219322189688683, -0.11982042342424393, 0.007975593209266663, -0.033007822930812836, -0.028970973566174507, 0.04155368357896805, -0.026784216985106468, -0.04374829679727554, -0.027511989697813988, 0.002162334742024541, -0.012992552481591702, 0.00903764646500349, 0.10766856372356415, -0.051877617835998535, -0.01070069894194603, 0.015492340549826622, 0.0943717360496521, 0.056459005922079086, -0.026756584644317627, 0.04680824652314186, -0.061927977949380875, 0.026024779304862022, -0.06924771517515182, -0.08747003227472305, 0.07471615821123123, 0.06444404274225235, 0.0783248320221901, -0.01650628075003624, -0.030572783201932907, 0.024539563804864883, 0.07831253111362457, -0.017636993899941444, 0.0878872200846672, 0.011224441230297089, -0.0019849599339067936, 0.03640834242105484, 0.04760254546999931, 0.0672740787267685, -0.10767361521720886, 0.0027465615421533585, 0.023505471646785736, -0.030230682343244553, 0.008116273209452629, -0.0811702311038971, -0.0033451933413743973, -0.04236651584506035, -0.012486389838159084, 0.05793283134698868, -0.03725774958729744, -0.005847752094268799, -0.030433472245931625, -0.022928357124328613, -0.0944148451089859, 0.017543040215969086, -0.04385608807206154, 0.0004834021092392504, 0.06373832374811172, 0.0748714730143547, -0.06395623087882996, -0.03464866429567337, -0.03399551287293434, -0.036943040788173676, 0.061172861605882645, 0.017137926071882248, 0.01736518368124962, -0.012015318498015404, -0.010750027373433113, -0.0776745080947876, 0.017329592257738113, 0.004476585425436497, 0.13687634468078613, -0.06737932562828064, -0.04451676085591316, 0.013169916346669197, 0.08819682896137238, -0.04271835833787918, 0.043201327323913574, -0.05030501261353493, 0.003996330313384533, 0.024881916120648384, -0.07654629647731781, -0.06070424243807793, -0.03356292098760605, -0.039245374500751495, 0.009670784696936607, 0.018912259489297867, 4.6705623167634244e-33, -0.0025742938742041588, -0.012118620797991753, -0.0032503739930689335, -0.0038402557838708162, 0.04070448875427246, -0.10306977480649948, 0.02041221410036087, 0.00875308271497488, -0.13643936812877655, -0.04652108624577522, -0.08425348252058029, -0.0180796030908823, -0.013654215261340141, 0.030680453404784203, 0.060822729021310806, -0.02986885979771614, -0.0744146853685379, 0.061926279217004776, 0.008991017937660217, -0.013832449913024902, 0.031650662422180176, 0.02738167904317379, 0.07896029949188232, -0.07632777094841003, 0.04188276082277298, -0.021287905052304268, 0.05883859843015671, -0.05746744945645332, 0.022009696811437607, -0.01620272547006607, -0.07984751462936401, -0.0022555291652679443, 0.0888543426990509, 0.02339566871523857, -0.05035386607050896, -0.00644242437556386, -0.06726138293743134, 0.038987379521131516, -0.10943657904863358, -0.0002116985706379637, 0.08894744515419006, 0.03914201259613037, 0.030452365055680275, 0.03716907650232315, -0.03406953066587448, -0.03387988731265068, -0.02713867835700512, -0.09974030405282974, 0.11232463270425797, 0.06599762290716171, 0.0402103029191494, 0.05866760015487671, 0.018955226987600327, -0.07190947979688644, 0.06539329886436462, 0.011121202260255814, 0.10267730802297592, -0.08629313111305237, -0.05093191936612129, -0.06607354432344437, -0.03325877711176872, 0.021858664229512215, 0.01666565239429474, 0.0278082937002182, -0.0494065098464489, -0.024903299286961555, -0.014652037061750889, -0.03147878870368004, 0.015428755432367325, -0.010117112658917904, -0.050439901649951935, 0.08251684904098511, -0.08566198498010635, -0.026057327166199684, 0.008425453677773476, -0.09941256791353226, -0.0037758385296911, 0.015838580206036568, -0.0849783644080162, -0.012528144754469395, -0.04635884612798691, -0.08622028678655624, -0.07354824244976044, 0.040954187512397766, -0.07401037216186523, -0.028303463011980057, 0.051039230078458786, 0.07125259935855865, 0.04705612361431122, -0.05394529551267624, 0.037684518843889236, -0.05992836505174637, 0.03613946959376335, -0.026543138548731804, -0.11501654982566833, -4.2093435165648685e-33, 0.04875774681568146, 0.006630374118685722, 0.0007518822094425559, 0.02292153798043728, -0.04651866853237152, 0.03463752195239067, 0.008535973727703094, 0.05289443954825401, -0.04809845983982086, -0.06206816807389259, -0.0067734383046627045, 0.011547751724720001, 0.018515467643737793, 0.007796691730618477, -0.06850168108940125, 0.02704426273703575, -0.031875450164079666, -0.029622532427310944, 0.04457001015543938, -0.036924250423908234, 0.030344536527991295, 0.011156284250319004, 0.09628978371620178, 0.01070381049066782, -0.011251619085669518, -0.03993519768118858, 0.08805939555168152, 0.13787876069545746, -0.04925180971622467, -0.04699593409895897, 0.02335578016936779, -0.04681038111448288, -0.06742580235004425, -0.050903335213661194, 0.019722726196050644, -0.02117237076163292, 0.04800332337617874, 0.02267841435968876, -0.043749239295721054, -0.022471806034445763, -0.030861657112836838, -0.007895467802882195, -0.11398676782846451, 0.031127702444791794, -0.06237095221877098, 0.051709674298763275, 0.13527914881706238, 0.007931647822260857, 0.04968024045228958, -0.02155235782265663, 0.026187045499682426, -0.018899276852607727, -0.0363011509180069, 0.0979217067360878, -0.00431124959141016, 0.010018625296652317, -0.006733983755111694, 0.039303746074438095, -0.028657710179686546, 0.005543882492929697, 0.07488220185041428, -0.06588111817836761, 0.0403180792927742, -0.017441434785723686, 0.007304920349270105, -0.026645131409168243, 0.009414994157850742, 0.0020045528654009104, -0.08629611879587173, 0.002729459898546338, -0.034084733575582504, -0.004318177234381437, 0.025423893705010414, -0.010447127744555473, 0.015875469893217087, -0.023581799119710922, -0.06029849871993065, -0.031124327331781387, 0.02867061272263527, 0.038248151540756226, -0.0395684577524662, 0.021620940417051315, -0.021073447540402412, 0.06565744429826736, 0.02988423779606819, 0.03778627887368202, 0.06970562785863876, 0.08736127614974976, 0.0641457810997963, 0.06167779490351677, -0.028083696961402893, -0.04958238825201988, -0.01874581351876259, 0.05284301936626434, -0.011436808854341507, -4.725498570223863e-8, 0.027981119230389595, 0.00414577592164278, -0.10450795292854309, -0.0006437990232370794, -0.030050160363316536, -0.06258480995893478, 0.043786805123090744, 0.017574328929185867, 0.020759988576173782, 0.013027294538915157, 0.021614456549286842, 0.046361055225133896, -0.05543002113699913, -0.018023211508989334, -0.009761881083250046, -0.003851148299872875, -0.026038758456707, 0.10957247018814087, -0.023399479687213898, -0.07494702935218811, 0.006367523223161697, 0.014360404573380947, 0.028157876804471016, 0.009144161827862263, 0.08331353962421417, 0.10332653671503067, -0.005609146319329739, -0.024653436616063118, 0.039521124213933945, -0.05715889111161232, 0.024408956989645958, 0.023557811975479126, -0.029735630378127098, 0.06137997284531593, -0.005007539410144091, 0.040963564068078995, -0.0425284206867218, 0.1477399468421936, 0.09911037981510162, 0.009121252223849297, -0.00829526036977768, -0.02123502641916275, -0.09926280379295349, 0.03432833403348923, -0.006091996096074581, 0.05429323390126228, -0.04468829929828644, 0.056733086705207825, -0.018005795776844025, 0.004895624238997698, 0.01749391295015812, -0.08113289624452591, -0.036293838173151016, 0.05342084541916847, -0.06214587390422821, -0.0037069518584758043, -0.054406147450208664, -0.0003094414423685521, 0.0695464238524437, 0.02210221067070961, 0.044100720435380936, 0.011975839734077454, 0.04176816716790199, -0.011943446472287178 ]
0.090666
or "2". Default is "2". - `imageFeatures`: This parameter is optional and should only be used if you set `imageFormat` to "2". Currently supported features are `layering` only. Default is "", and no features are turned on. ### Azure Disk Kubernetes {{< skew currentVersion >}} does not include a `azureDisk` volume type. The `azureDisk` in-tree storage driver was deprecated in the Kubernetes v1.19 release and then removed entirely in the v1.27 release. The Kubernetes project suggests that you use the [Azure Disk](https://github.com/kubernetes-sigs/azuredisk-csi-driver) third party storage driver instead. ### Azure File (deprecated) {#azure-file} {{% code\_sample language="yaml" file="storage/storageclass/storageclass-azure-file.yaml" %}} - `skuName`: Azure storage account SKU tier. Default is empty. - `location`: Azure storage account location. Default is empty. - `storageAccount`: Azure storage account name. Default is empty. If a storage account is not provided, all storage accounts associated with the resource group are searched to find one that matches `skuName` and `location`. If a storage account is provided, it must reside in the same resource group as the cluster, and `skuName` and `location` are ignored. - `secretNamespace`: the namespace of the secret that contains the Azure Storage Account Name and Key. Default is the same as the Pod. - `secretName`: the name of the secret that contains the Azure Storage Account Name and Key. Default is `azure-storage-account--secret` - `readOnly`: a flag indicating whether the storage will be mounted as read only. Defaults to false which means a read/write mount. This setting will impact the `ReadOnly` setting in VolumeMounts as well. During storage provisioning, a secret named by `secretName` is created for the mounting credentials. If the cluster has enabled both [RBAC](/docs/reference/access-authn-authz/rbac/) and [Controller Roles](/docs/reference/access-authn-authz/rbac/#controller-roles), add the `create` permission of resource `secret` for clusterrole `system:controller:persistent-volume-binder`. In a multi-tenancy context, it is strongly recommended to set the value for `secretNamespace` explicitly, otherwise the storage account credentials may be read by other users. ### Portworx volume (deprecated) {#portworx-volume} {{% code\_sample language="yaml" file="storage/storageclass/storageclass-portworx-volume.yaml" %}} - `fs`: filesystem to be laid out: `none/xfs/ext4` (default: `ext4`). - `block\_size`: block size in Kbytes (default: `32`). - `repl`: number of synchronous replicas to be provided in the form of replication factor `1..3` (default: `1`) A string is expected here i.e. `"1"` and not `1`. - `priority\_io`: determines whether the volume will be created from higher performance or a lower priority storage `high/medium/low` (default: `low`). - `snap\_interval`: clock/time interval in minutes for when to trigger snapshots. Snapshots are incremental based on difference with the prior snapshot, 0 disables snaps (default: `0`). A string is expected here i.e. `"70"` and not `70`. - `aggregation\_level`: specifies the number of chunks the volume would be distributed into, 0 indicates a non-aggregated volume (default: `0`). A string is expected here i.e. `"0"` and not `0` - `ephemeral`: specifies whether the volume should be cleaned-up after unmount or should be persistent. `emptyDir` use case can set this value to true and `persistent volumes` use case such as for databases like Cassandra should set to false, `true/false` (default `false`). A string is expected here i.e. `"true"` and not `true`. ### Local {{% code\_sample language="yaml" file="storage/storageclass/storageclass-local.yaml" %}} Local volumes do not support dynamic provisioning in Kubernetes {{< skew currentVersion >}}; however a StorageClass should still be created to delay volume binding until a Pod is actually scheduled to the appropriate node. This is specified by the `WaitForFirstConsumer` volume binding mode. Delaying volume binding allows the scheduler to consider all of a Pod's scheduling constraints when choosing an appropriate PersistentVolume for a PersistentVolumeClaim.
null
./vendor/kubernetes/content/en/docs/concepts/storage/storage-classes.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/storage/storage-classes.md
[ 0.011209730990231037, 0.02420041710138321, 0.008097234182059765, 0.04723580554127693, 0.015911061316728592, 0.038736797869205475, -0.01169018168002367, -0.014408967457711697, 0.09108015149831772, 0.08629147708415985, 0.038086920976638794, -0.05732851102948189, 0.039253998547792435, 0.06619496643543243, 0.013249804265797138, 0.03145711123943329, -0.03280459716916084, 0.009063774719834328, 0.025707529857754707, 0.037567127496004105, 0.03163575381040573, 0.004238965455442667, 0.03649842366576195, -0.028686977922916412, -0.006538394372910261, -0.0689803883433342, -0.11558637768030167, -0.0189205352216959, -0.0022340526338666677, -0.02325545623898506, -0.0683107078075409, 0.00028932769782841206, 0.010702776722609997, 0.03626644238829613, 0.09539078921079636, -0.001019131625071168, 0.024567393586039543, -0.042163606733083725, -0.10843838006258011, -0.00549925584346056, 0.07802373915910721, 0.015252233482897282, -0.03918309882283211, -0.0810367539525032, -0.05485609546303749, 0.06620844453573227, -0.019446859136223793, -0.02104717493057251, -0.03487061336636543, 0.026654262095689774, 0.013010435737669468, -0.0728626623749733, -0.0032219868153333664, 0.07560504227876663, 0.07040134072303772, 0.016141008585691452, -0.05132632330060005, 0.10180658847093582, 0.06805238127708435, 0.05660928413271904, 0.04725692421197891, -0.05495738983154297, 0.02658003941178322, -0.056934062391519547, 0.004498530179262161, 0.039450161159038544, -0.013898315839469433, -0.06331232935190201, -0.06056589633226395, -0.05564090982079506, 0.04685206711292267, 0.04245423153042793, -0.06136219576001167, 0.018502170220017433, 0.014209356158971786, -0.01929142139852047, 0.009168533608317375, 0.1074795350432396, 0.06117819994688034, -0.04608556255698204, -0.007681542541831732, 0.008082152344286442, 0.0528603196144104, -0.020030291751027107, -0.05506192520260811, -0.025720199570059776, -0.06797035038471222, 0.016485780477523804, -0.05960366502404213, -0.04142134264111519, -0.023491036146879196, -0.016706347465515137, 0.041052162647247314, -0.012521290220320225, 0.06449560821056366, 0.015549414791166782, -0.11048047244548798, 0.034871820360422134, 0.029709216207265854, -0.049023453146219254, -0.051716163754463196, 0.0070751989260315895, 0.02120181918144226, -0.01890164613723755, 0.07294977456331253, -0.0497121587395668, -0.011846022680401802, -0.010991291143000126, -0.04437638074159622, 0.03587764501571655, 0.06857988983392715, 0.06169600784778595, -0.04109550639986992, 0.013919968158006668, 0.04131225496530533, 0.05656033009290695, -0.025029266253113747, 0.07623381912708282, -0.031756989657878876, 0.030753497034311295, 0.009191290475428104, -0.09316131472587585, -0.06234675645828247, -0.03026808425784111, -0.01423273328691721, -0.04654857516288757, -0.01866314932703972, 4.845621343591695e-33, 0.038830362260341644, -0.050725508481264114, 0.06844409555196762, -0.014484602026641369, 0.03828372061252594, -0.11624658852815628, 0.0317462719976902, -0.07139183580875397, -0.019673224538564682, -0.0703108161687851, -0.10359358787536621, -0.008056409657001495, -0.033751871436834335, 0.05727409943938255, 0.013041866011917591, 0.02705567516386509, -0.05567501485347748, -0.03231596574187279, 0.09020569175481796, -0.03047615848481655, 0.07363411039113998, 0.007798749953508377, 0.0024033738300204277, -0.01063955295830965, -0.004000162240117788, -0.11912268400192261, 0.0780220627784729, -0.10999315232038498, 0.03242968022823334, -0.01231948472559452, -0.10431075841188431, -0.04262296110391617, 0.05319974198937416, -0.011916670016944408, -0.08405226469039917, -0.0448433980345726, -0.054879795759916306, 0.05699826776981354, -0.1288170963525772, 0.09548138827085495, 0.020094968378543854, 0.0075993649661540985, -0.003623244585469365, 0.01808907836675644, 0.026074495166540146, 0.022711073979735374, 0.030246643349528313, -0.016835102811455727, 0.05689854174852371, 0.07294442504644394, -0.06250976771116257, 0.028766511008143425, -0.0037737912498414516, -0.01619260013103485, 0.02279128134250641, 0.01597527600824833, 0.11487285047769547, -0.09090571105480194, -0.08443454653024673, -0.044851046055555344, 0.009063157252967358, -0.04298468679189682, 0.08422703295946121, -0.012942318804562092, -0.05667192488908768, -0.036274898797273636, -0.003697366453707218, -0.0466008223593235, -0.0613371804356575, -0.03658707067370415, -0.00437538605183363, 0.02458079904317856, -0.04641148820519447, -0.05629938095808029, 0.018098317086696625, -0.10743916034698486, 0.018445590510964394, -0.012075687758624554, -0.07057615369558334, 0.0542214959859848, -0.03255941718816757, -0.0276623722165823, -0.016251850873231888, 0.0722527951002121, -0.0986819937825203, -0.061909548938274384, 0.05043905973434448, 0.03735733404755592, 0.04482746496796608, -0.018381118774414062, 0.01844457909464836, -0.03585916385054588, -0.016892248764634132, -0.02103539928793907, -0.05664214864373207, -4.041730511765088e-33, 0.06487379968166351, 0.015643013641238213, 0.017158305272459984, -0.018453070893883705, -0.030033208429813385, 0.06709792464971542, 0.056041937321424484, 0.0384068489074707, -0.019628142938017845, -0.06782061606645584, 0.01564338058233261, 0.05296136438846588, -0.03940335288643837, 0.024316053837537766, -0.10006348788738251, -0.012797514908015728, -0.016271304339170456, -0.06644948571920395, 0.03971311077475548, 0.015788983553647995, -0.024488411843776703, -0.0021120975725352764, 0.043291445821523666, 0.07097236812114716, 0.02716226875782013, 0.01750011183321476, 0.06536369025707245, 0.037913717329502106, -0.049001023173332214, -0.011708999052643776, -0.03543156012892723, -0.04372163116931915, 0.029819030314683914, 0.006562079768627882, 0.018254727125167847, -0.08800654113292694, 0.03163309022784233, -0.113254614174366, -0.07183484733104706, 0.002978250849992037, -0.028940066695213318, 0.0055228425189852715, 0.0004127034917473793, 0.03400854766368866, -0.01551730278879404, -0.0017569944029673934, 0.0818713903427124, -0.0427287295460701, 0.05274490639567375, -0.03611782565712929, -0.017476433888077736, 0.04297131299972534, -0.06329292058944702, 0.14391043782234192, -0.06060372665524483, 0.0520503856241703, -0.014561756514012814, 0.0985625609755516, -0.041534069925546646, -0.007990987971425056, 0.020709000527858734, -0.03321985900402069, 0.002633239608258009, -0.07681354135274887, -0.004249549936503172, -0.01573304273188114, -0.005481509491801262, -0.017958372831344604, -0.06943845748901367, 0.017948728054761887, -0.06976921856403351, -0.03791990503668785, 0.03556609898805618, 0.0046816240064799786, -0.04685547575354576, -0.036953046917915344, -0.00530217494815588, 0.0081351762637496, 0.07088382542133331, -0.012494375929236412, -0.06411589682102203, 0.06610216945409775, -0.10476163774728775, 0.06379528343677521, 0.08698862791061401, 0.07107069343328476, 0.0676940456032753, 0.006219629663974047, -0.014632521197199821, 0.02997570112347603, -0.005664831027388573, 0.012558982707560062, -0.020902078598737717, 0.14286789298057556, -0.026242854073643684, -5.4085564471506586e-8, 0.014750667847692966, 0.04795407876372337, -0.07657408714294434, -0.014885357581079006, -0.007411029189825058, -0.06801318377256393, 0.06864570826292038, 0.10334406793117523, -0.05034472793340683, 0.013283874839544296, -0.026983490213751793, 0.028595391660928726, -0.028216993436217308, -0.02629202976822853, 0.08380986005067825, 0.051466748118400574, 0.04823075979948044, 0.05212382599711418, 0.014498142525553703, -0.06605138629674911, 0.012163869105279446, -0.052047766745090485, -0.05428100749850273, -0.026515576988458633, -0.002366582630202174, 0.09825854003429413, 0.033493123948574066, 0.04928963631391525, 0.02432831935584545, -0.03298719599843025, 0.041928574442863464, 0.01321525126695633, -0.011692053638398647, 0.022698285058140755, 0.01959618553519249, 0.07602274417877197, -0.04090537130832672, 0.06787335872650146, 0.0799233466386795, 0.041138507425785065, -0.03305603191256523, -0.007344834506511688, -0.04159289225935936, 0.008191111497581005, 0.0017970349872484803, -0.01149245910346508, 0.030804330483078957, 0.09309158474206924, -0.06133102998137474, 0.08936890959739685, -0.014577656053006649, -0.054133832454681396, -0.024550173431634903, 0.12747728824615479, -0.0025943259242922068, 0.04807478189468384, 0.010477137751877308, -0.0654824823141098, 0.028124496340751648, 0.11200585961341858, 0.1082155853509903, -0.013823755085468292, 0.011049981229007244, 0.021856967359781265 ]
0.026628
binding mode. Delaying volume binding allows the scheduler to consider all of a Pod's scheduling constraints when choosing an appropriate PersistentVolume for a PersistentVolumeClaim.
null
./vendor/kubernetes/content/en/docs/concepts/storage/storage-classes.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/storage/storage-classes.md
[ 0.007096263580024242, -0.046280164271593094, 0.04806433990597725, 0.030197707936167717, -0.035660117864608765, -0.005130918696522713, -0.039585936814546585, -0.02803332731127739, 0.08666545897722244, -0.007666453253477812, 0.004744278732687235, 0.027214735746383667, -0.02125588431954384, -0.01706010289490223, -0.04799690470099449, -0.020188309252262115, 0.03757008537650108, -0.004121714737266302, -0.0321524441242218, 0.018238233402371407, 0.06044796109199524, 0.0353083461523056, -0.02717616595327854, 0.028606582432985306, 0.015866577625274658, -0.008999689482152462, -0.032678619027137756, -0.027888203039765358, 0.10153193771839142, -0.028784068301320076, -0.05408429726958275, 0.044452350586652756, 0.09523847699165344, -0.02100389637053013, -0.03983696922659874, 0.04018692672252655, -0.0033087979536503553, -0.06802251189947128, -0.03972100093960762, 0.013947738334536552, 0.03125271946191788, -0.11142747849225998, -0.02598467841744423, -0.007539958693087101, -0.10339858382940292, 0.006978435907512903, 0.015200257301330566, -0.010438398458063602, -0.04155310243368149, 0.001966560957953334, 0.029630152508616447, -0.093761146068573, 0.0020454179029911757, 0.08140642940998077, 0.04223097860813141, 0.10558344423770905, 0.06209482625126839, 0.09653855115175247, 0.08764084428548813, -0.031697604805231094, -0.05639033764600754, -0.006421636324375868, -0.043865375220775604, 0.06783433258533478, 0.07038047909736633, 0.016768591478466988, 0.06442553550004959, 0.001317462301813066, 0.030285533517599106, 0.03286481276154518, 0.060925763100385666, 0.020791681483387947, 0.0033367350697517395, 0.0072526405565440655, 0.04352659359574318, -0.007862969301640987, -0.02212534099817276, 0.003425358096137643, 0.0017902189865708351, -0.02845996432006359, 0.01810857094824314, 0.01832544058561325, -0.03867744281888008, 0.024084586650133133, -0.004662064835429192, -0.03781071677803993, -0.016255997121334076, -0.026847824454307556, 0.009284424595534801, 0.006737890653312206, -0.031130313873291016, -0.05793564021587372, 0.005829991772770882, -0.025452058762311935, -0.05358829349279404, -0.017653703689575195, -0.022592635825276375, -0.016839195042848587, 0.0794810876250267, -0.029799701645970345, 0.022279109805822372, -0.006576952058821917, -0.05377618968486786, 0.0616547130048275, 0.05423995479941368, -0.15647195279598236, -0.006275363266468048, -0.02795064076781273, -0.10842195898294449, 0.08039736747741699, 0.06674712896347046, -0.05484169349074364, 0.10309521853923798, -0.000998739036731422, 0.027782199904322624, 0.13317596912384033, -0.03298516944050789, 0.0887916311621666, 0.04040968790650368, -0.05676712840795517, -0.012302863411605358, -0.06686318665742874, 0.03580754995346069, -0.04354867339134216, 0.029949938878417015, -0.016665266826748848, -0.020167173817753792, 6.009034826729895e-34, 0.007334626279771328, -0.1616899073123932, -0.06711971759796143, -0.03367071598768234, 0.024819720536470413, -0.018175065517425537, 0.030010530725121498, 0.038179248571395874, -0.033904653042554855, -0.07738523185253143, 0.039376985281705856, 0.06660214066505432, -0.030022703111171722, 0.004618830978870392, -0.012469412758946419, -0.08351128548383713, 0.01136386301368475, 0.12902560830116272, -0.0022046631202101707, -0.012629366479814053, 0.02644088864326477, -0.06229427456855774, -0.06135018914937973, 0.016774678602814674, 0.044923752546310425, 0.010931354016065598, 0.014082169160246849, -0.05447285249829292, 0.010799148119986057, 0.046222344040870667, -0.05689451843500137, 0.08932776749134064, -0.022535983473062515, -0.0018221419304609299, -0.07541345059871674, -0.006385202053934336, -0.016546735540032387, -0.03301646560430527, -0.046511709690093994, -0.06195969507098198, -0.016323724761605263, -0.06246421858668327, -0.07668406516313553, -0.03602835536003113, -0.015525797381997108, -0.10874657332897186, 0.020638830959796906, 0.045542776584625244, -0.02850482240319252, 0.05631345510482788, 0.0782238245010376, 0.036266762763261795, 0.02649869956076145, -0.04867060109972954, 0.047820039093494415, -0.043465159833431244, 0.0011099419789388776, -0.05266033113002777, -0.023466354236006737, 0.049092814326286316, -0.03510298952460289, 0.0422753281891346, 0.040887054055929184, 0.060743264853954315, 0.008844784460961819, 0.11173347383737564, -0.03379995748400688, -0.10890007019042969, 0.04386540874838829, -0.008359963074326515, -0.009656823240220547, 0.005017878487706184, -0.04613263159990311, -0.00015705835539847612, -0.020971504971385002, -0.0016831307439133525, -0.013170280493795872, -0.01168995350599289, -0.041113633662462234, 0.024741262197494507, -0.016629310324788094, 0.04638022929430008, -0.04400777444243431, 0.07573585212230682, -0.027957599610090256, -0.044812608510255814, 0.014629743993282318, 0.008142644539475441, -0.09823860973119736, -0.030884718522429466, 0.01278623566031456, -0.046539291739463806, -0.039972934871912, 0.06150813028216362, -0.01778012327849865, -5.094745881742378e-34, 0.11464386433362961, -0.04357904568314552, -0.024213476106524467, 0.09770314395427704, 0.05180423706769943, 0.044457871466875076, -0.05382727086544037, -0.03582725301384926, -0.0004037514154333621, -0.05081475153565407, 0.014713701792061329, -0.019488252699375153, -0.08374767750501633, 0.02658110484480858, -0.040611762553453445, -0.014513898640871048, -0.036208946257829666, -0.1070793867111206, -0.011480442248284817, 0.060027092695236206, 0.06448950618505478, -0.047620806843042374, -0.007418976165354252, 0.044179461896419525, -0.044746506959199905, -0.0408390536904335, -0.017139926552772522, 0.07264576852321625, -0.07501551508903503, -0.007319056894630194, -0.029383527114987373, -0.051951486617326736, -0.04888876527547836, -0.10730699449777603, 0.025067133828997612, 0.052506595849990845, 0.0048789759166538715, 0.055836115032434464, -0.041673559695482254, -0.046286389231681824, 0.0910167247056961, -0.004252648912370205, -0.01549278013408184, -0.04632103443145752, -0.03126262128353119, 0.04472528025507927, 0.09304561465978622, 0.002031818265095353, 0.015548321418464184, -0.025488873943686485, 0.02630985900759697, -0.005337042268365622, 0.02561364136636257, 0.09111878275871277, -0.010063917376101017, 0.06613405793905258, -0.046121932566165924, 0.023506352677941322, 0.02430286444723606, 0.04557928070425987, 0.08637800067663193, -0.053627800196409225, 0.09098831564188004, -0.0104462755843997, -0.03692057728767395, -0.02265951782464981, 0.10710611194372177, 0.016001451760530472, 0.011073889210820198, 0.0523669607937336, 0.12115589529275894, -0.06137818098068237, 0.12938638031482697, 0.06065302714705467, 0.0490783154964447, -0.04683351889252663, -0.009451963938772678, -0.07963205873966217, -0.004498103633522987, 0.033460866659879684, -0.056875452399253845, 0.04567813500761986, 0.02103859931230545, 0.06422027200460434, -0.01836692914366722, 0.1004728227853775, 0.010351452976465225, 0.05878639221191406, 0.07352323085069656, 0.09602946043014526, 0.04299198463559151, 0.012081938795745373, -0.014092511497437954, 0.07292446494102478, 0.01137178111821413, -2.7000542246469195e-8, 0.053377415984869, -0.0009987570811063051, -0.004241634625941515, -0.030082393437623978, 0.0377001017332077, -0.1084817573428154, 0.0808887854218483, -0.03188302740454674, -0.01020329911261797, 0.05137646570801735, 0.108382448554039, -0.051297564059495926, 0.013349446468055248, -0.008424666710197926, 0.06183145195245743, 0.005223982036113739, 0.039732083678245544, -0.020874127745628357, -0.0753805860877037, -0.09517224878072739, 0.005508802831172943, -0.04645545408129692, 0.0287628211081028, -0.0834224671125412, 0.05027952045202255, 0.030753709375858307, 0.05926521494984627, 0.04642817750573158, 0.04466921463608742, 0.006618900690227747, -0.05546955391764641, 0.04953676089644432, -0.05165557190775871, 0.06803487986326218, -0.08994260430335999, 0.03190244361758232, -0.06254695355892181, 0.0054901097901165485, -0.0077473619021475315, 0.026899557560682297, -0.004690155386924744, -0.08516417443752289, -0.04114032909274101, -0.01285838708281517, -0.008422828279435635, 0.0826631486415863, -0.03475990518927574, 0.07732886075973511, -0.0732336938381195, 0.053590524941682816, -0.0865631103515625, -0.0024388397578150034, 0.011698829010128975, 0.04865284264087677, 0.045763444155454636, 0.015430944040417671, 0.029851067811250687, -0.03664766252040863, 0.008094114251434803, 0.04504916071891785, -0.03667976334691048, 0.014789450913667679, -0.04257798567414284, -0.04309067130088806 ]
0.122275
This document describes the concept of VolumeSnapshotClass in Kubernetes. Familiarity with [volume snapshots](/docs/concepts/storage/volume-snapshots/) and [storage classes](/docs/concepts/storage/storage-classes) is suggested. ## Introduction Just like StorageClass provides a way for administrators to describe the "classes" of storage they offer when provisioning a volume, VolumeSnapshotClass provides a way to describe the "classes" of storage when provisioning a volume snapshot. ## The VolumeSnapshotClass Resource Each VolumeSnapshotClass contains the fields `driver`, `deletionPolicy`, and `parameters`, which are used when a VolumeSnapshot belonging to the class needs to be dynamically provisioned. The name of a VolumeSnapshotClass object is significant, and is how users can request a particular class. Administrators set the name and other parameters of a class when first creating VolumeSnapshotClass objects, and the objects cannot be updated once they are created. {{< note >}} Installation of the CRDs is the responsibility of the Kubernetes distribution. Without the required CRDs present, the creation of a VolumeSnapshotClass fails. {{< /note >}} ```yaml apiVersion: snapshot.storage.k8s.io/v1 kind: VolumeSnapshotClass metadata: name: csi-hostpath-snapclass driver: hostpath.csi.k8s.io deletionPolicy: Delete parameters: ``` Administrators can specify a default VolumeSnapshotClass for VolumeSnapshots that don't request any particular class to bind to by adding the `snapshot.storage.kubernetes.io/is-default-class: "true"` annotation: ```yaml apiVersion: snapshot.storage.k8s.io/v1 kind: VolumeSnapshotClass metadata: name: csi-hostpath-snapclass annotations: snapshot.storage.kubernetes.io/is-default-class: "true" driver: hostpath.csi.k8s.io deletionPolicy: Delete parameters: ``` If multiple CSI drivers exist, a default VolumeSnapshotClass can be specified for each of them. ### VolumeSnapshotClass dependencies When you create a VolumeSnapshot without specifying a VolumeSnapshotClass, Kubernetes automatically selects a default VolumeSnapshotClass that has a CSI driver matching the CSI driver of the PVC’s StorageClass. This behavior allows multiple default VolumeSnapshotClass objects to coexist in a cluster, as long as each one is associated with a unique CSI driver. Always ensure that there is only one default VolumeSnapshotClass for each CSI driver. If multiple default VolumeSnapshotClass objects are created using the same CSI driver, a VolumeSnapshot creation will fail because Kubernetes cannot determine which one to use. ### Driver Volume snapshot classes have a driver that determines what CSI volume plugin is used for provisioning VolumeSnapshots. This field must be specified. ### DeletionPolicy Volume snapshot classes have a [deletionPolicy](/docs/concepts/storage/volume-snapshots/#delete). It enables you to configure what happens to a VolumeSnapshotContent when the VolumeSnapshot object it is bound to is to be deleted. The deletionPolicy of a volume snapshot class can either be `Retain` or `Delete`. This field must be specified. If the deletionPolicy is `Delete`, then the underlying storage snapshot will be deleted along with the VolumeSnapshotContent object. If the deletionPolicy is `Retain`, then both the underlying snapshot and VolumeSnapshotContent remain. ## Parameters Volume snapshot classes have parameters that describe volume snapshots belonging to the volume snapshot class. Different parameters may be accepted depending on the `driver`.
null
./vendor/kubernetes/content/en/docs/concepts/storage/volume-snapshot-classes.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/storage/volume-snapshot-classes.md
[ -0.07718604058027267, 0.04122895747423172, 0.016484834253787994, -0.046646520495414734, -0.0239715576171875, -0.01542690023779869, -0.0011863675899803638, -0.009304812178015709, 0.0551392138004303, 0.02162584476172924, 0.009091680869460106, -0.01883942447602749, 0.08363285660743713, -0.02213106118142605, -0.06602026522159576, -0.055517956614494324, -0.013131319545209408, -0.02653655782341957, -0.07306715846061707, 0.06460385769605637, 0.051676519215106964, 0.04209137707948685, -0.011429544538259506, 0.02287665568292141, -0.009662462398409843, -0.02517695352435112, 0.013639361597597599, -0.0009234255412593484, 0.013712036423385143, -0.006266230717301369, 0.013918276876211166, 0.014684885740280151, -0.012111875228583813, 0.022257352247834206, 0.04674169793725014, 0.0717640295624733, 0.0318642184138298, -0.0010583113180473447, -0.0760226920247078, 0.00044567204895429313, -0.009470317512750626, -0.0014796059112995863, -0.10181346535682678, 0.006290721241384745, -0.04049769416451454, 0.02650199458003044, -0.022946249693632126, -0.06843404471874237, -0.033475328236818314, -0.042245712131261826, 0.021028593182563782, -0.09121482819318771, -0.03397113457322121, 0.12227451056241989, 0.0032770123798400164, 0.0669177994132042, -0.009514762088656425, 0.07992083579301834, 0.06411445140838623, -0.03709816187620163, -0.01652037724852562, -0.02116924338042736, 0.06868637353181839, -0.02107800357043743, 0.02534857951104641, -0.011699732393026352, 0.03132295608520508, -0.017140118405222893, 0.03684676066040993, -0.04368852823972702, 0.017996758222579956, 0.08075930923223495, -0.05006055161356926, 0.017959510907530785, 0.002291277050971985, 0.0035879104398190975, -0.021674444898962975, 0.04530967399477959, -0.05180196836590767, -0.05923288315534592, 0.026891691610217094, 0.012594487518072128, 0.012812335044145584, -0.056608203798532486, -0.04260282590985298, -0.029477158561348915, -0.03466399386525154, -0.03504269942641258, 0.01629471965134144, 0.0387716181576252, 0.007710334844887257, -0.06338737905025482, 0.05958102270960808, -0.10743261873722076, 0.008083329536020756, 0.03105725534260273, -0.0419594831764698, -0.0015077028656378388, 0.04382980614900589, -0.0391150638461113, -0.04169021174311638, 0.045370861887931824, -0.004178174771368504, -0.03723781555891037, 0.04002365842461586, -0.0824420228600502, -0.033847417682409286, 0.02722197398543358, -0.07681694626808167, -0.01421211939305067, 0.00392700731754303, 0.0827215164899826, -0.0779537782073021, -0.03484543412923813, 0.04283574968576431, 0.0470954105257988, -0.07229996472597122, -0.004357818979769945, 0.01817498914897442, -0.024465229362249374, 0.03705378994345665, -0.07480080425739288, 0.0001315008121309802, -0.058257997035980225, 0.008913345634937286, 0.030325574800372124, -0.023848021402955055, 4.419212237198849e-33, 0.010115329176187515, -0.04174070805311203, -0.030480174347758293, 0.05888395383954048, 0.05084675922989845, -0.05986872315406799, 0.0064724949188530445, 0.04964636266231537, -0.019586872309446335, -0.1303735226392746, -0.09292495995759964, 0.11122507601976395, -0.017388438805937767, -0.029181435704231262, 0.05847162380814552, 0.025387434288859367, -0.12509356439113617, 0.06345253437757492, 0.060291267931461334, -0.0073416572995483875, 0.01455084141343832, 0.03566164895892143, 0.03158117085695267, 0.026005370542407036, 0.03755825385451317, 0.028417587280273438, 0.06505024433135986, -0.0024993387050926685, -0.03287840262055397, 0.018705470487475395, -0.05073358863592148, 0.03800559043884277, -0.009162981063127518, -0.036423832178115845, 0.008305376395583153, 0.02705501951277256, -0.0751834362745285, -0.00418926402926445, -0.12257348746061325, -0.08493641763925552, 0.04909602180123329, -0.03637989982962608, -0.07359471172094345, -0.017628079280257225, -0.00927172601222992, -0.08432210236787796, 0.007947738282382488, -0.030313953757286072, 0.025454267859458923, 0.07262574881315231, -0.018263492733240128, -0.004212494008243084, 0.07518817484378815, -0.061295319348573685, -0.008654202334582806, -0.020331284031271935, 0.10651548951864243, -0.116927869617939, -0.04580817371606827, -0.014453952200710773, -0.02153034135699272, 0.07394340634346008, 0.06572894006967545, 0.08269468694925308, -0.009920013137161732, 0.031260304152965546, 0.008494722656905651, -0.027309322729706764, 0.10587472468614578, -0.09015350788831711, 0.037525542080402374, 0.002492243191227317, -0.08782926201820374, -0.0030889043118804693, 0.05557352304458618, -0.07620447874069214, -0.010378031060099602, 0.04134765639901161, -0.08595253527164459, 0.05827837809920311, -0.015857823193073273, -0.09027965366840363, -0.05207010731101036, 0.05625235289335251, -0.052301496267318726, -0.06878259778022766, 0.059477224946022034, 0.010611191391944885, 0.04157854989171028, 0.029109975323081017, -0.00029383652145043015, -0.030026517808437347, -0.07456333935260773, 0.03813723474740982, -0.03365546092391014, -5.0726515470637114e-33, 0.09429619461297989, -0.017500752583146095, -0.06257470697164536, 0.04208448529243469, -0.030883511528372765, 0.08627132326364517, -0.0381087027490139, 0.016537697985768318, -0.04866080731153488, -0.09732013195753098, -0.05392163246870041, 0.019108237698674202, -0.06692596524953842, -0.017305724322795868, -0.06157474219799042, -0.016623547300696373, -0.0147092929109931, -0.15392960608005524, -0.04650809243321419, 0.018489686772227287, 0.0026581238489598036, 0.04285072907805443, 0.04891720414161682, 0.09148383885622025, -0.00369607238098979, 0.012043016031384468, -0.009659678675234318, 0.05644183233380318, 0.010468896478414536, -0.02830336056649685, 0.006235220935195684, -0.08367165178060532, -0.014595279470086098, 0.013669542968273163, -0.04672113433480263, -0.04675520956516266, 0.032393574714660645, 0.041606683284044266, -0.04390915483236313, 0.030670344829559326, 0.03775661438703537, 0.0016509633278474212, -0.03535541519522667, 0.030851883813738823, -0.05533818528056145, 0.0026385472156107426, 0.10403618216514587, 0.01378836389631033, 0.05145493894815445, -0.06182980164885521, 0.007285113912075758, -0.021636828780174255, -0.019305117428302765, 0.05750841274857521, 0.05209680274128914, 0.062441494315862656, 0.007225683890283108, 0.04919380322098732, 0.04706675559282303, 0.07229235768318176, 0.0922393724322319, -0.07024814933538437, 0.0047766887582838535, 0.015019983053207397, -0.09319663792848587, -0.04659748449921608, 0.04895201325416565, -0.022273076698184013, -0.06970465183258057, 0.02088324725627899, 0.026272745802998543, -0.04539930447936058, 0.10903745144605637, -0.011879020370543003, -0.03136267885565758, -0.05698985978960991, 0.02438255585730076, 0.028826359659433365, 0.04884054884314537, -0.048398420214653015, -0.026286562904715538, -0.03787161782383919, -0.03468163684010506, 0.0992182195186615, -0.005114785861223936, -0.09470915049314499, 0.051656030118465424, -0.028632940724492073, 0.034470800310373306, -0.01826065219938755, -0.022256068885326385, 0.09395981580018997, -0.04961085319519043, 0.09633180499076843, 0.034020740538835526, -5.424050897318011e-8, -0.007229207083582878, 0.03990902751684189, -0.01754046231508255, 0.05579030513763428, 0.01949489861726761, -0.08999548107385635, 0.043681517243385315, 0.11335352808237076, -0.002063487423583865, 0.02052883990108967, 0.05751373618841171, -0.01613811030983925, -0.008996113203465939, -0.036329351365566254, 0.029355699196457863, 0.04197559878230095, -0.0019211964681744576, 0.06356034427881241, -0.03937548026442528, 0.005239453166723251, -0.005262013524770737, -0.08440062403678894, 0.0028385703917592764, 0.03126073628664017, 0.07591360807418823, 0.04151259362697601, 0.08751780539751053, -0.0019375780830159783, 0.06940370798110962, -0.006226403638720512, 0.0001691029465291649, 0.030898652970790863, 0.02909904159605503, 0.0762069895863533, -0.012476468458771706, 0.09768791496753693, -0.0470188744366169, 0.09311386942863464, 0.041752975434064865, 0.04558281600475311, -0.09484291076660156, -0.03543887659907341, -0.07151249796152115, -0.0007591174216940999, -0.0016259007388725877, 0.0668426901102066, -0.06538636982440948, 0.10765799880027771, -0.09564942866563797, 0.0593084916472435, -0.037261709570884705, -0.033778343349695206, -0.004978678654879332, 0.08691569417715073, -0.04184868186712265, 0.028017908334732056, 0.0515710823237896, -0.09046704322099686, 0.08046302944421768, 0.037291865795850754, 0.0668724998831749, 0.08937199413776398, -0.010325619019567966, 0.03769602254033089 ]
0.09558
This document describes \_persistent volumes\_ in Kubernetes. Familiarity with [volumes](/docs/concepts/storage/volumes/), [StorageClasses](/docs/concepts/storage/storage-classes/) and [VolumeAttributesClasses](/docs/concepts/storage/volume-attributes-classes/) is suggested. ## Introduction Managing storage is a distinct problem from managing compute instances. The PersistentVolume subsystem provides an API for users and administrators that abstracts details of how storage is provided from how it is consumed. To do this, we introduce two new API resources: PersistentVolume and PersistentVolumeClaim. A \_PersistentVolume\_ (PV) is a piece of storage in the cluster that has been provisioned by an administrator or dynamically provisioned using [Storage Classes](/docs/concepts/storage/storage-classes/). It is a resource in the cluster just like a node is a cluster resource. PVs are volume plugins like Volumes, but have a lifecycle independent of any individual Pod that uses the PV. This API object captures the details of the implementation of the storage, be that NFS, iSCSI, or a cloud-provider-specific storage system. A \_PersistentVolumeClaim\_ (PVC) is a request for storage by a user. It is similar to a Pod. Pods consume node resources and PVCs consume PV resources. Pods can request specific levels of resources (CPU and Memory). Claims can request specific size and access modes (e.g., they can be mounted ReadWriteOnce, ReadOnlyMany, ReadWriteMany, or ReadWriteOncePod, see [AccessModes](#access-modes)). While PersistentVolumeClaims allow a user to consume abstract storage resources, it is common that users need PersistentVolumes with varying properties, such as performance, for different problems. Cluster administrators need to be able to offer a variety of PersistentVolumes that differ in more ways than size and access modes, without exposing users to the details of how those volumes are implemented. For these needs, there is the \_StorageClass\_ resource. See the [detailed walkthrough with working examples](/docs/tasks/configure-pod-container/configure-persistent-volume-storage/). ## Lifecycle of a volume and claim PVs are resources in the cluster. PVCs are requests for those resources and also act as claim checks to the resource. The interaction between PVs and PVCs follows this lifecycle: ### Provisioning There are two ways PVs may be provisioned: statically or dynamically. #### Static A cluster administrator creates a number of PVs. They carry the details of the real storage, which is available for use by cluster users. They exist in the Kubernetes API and are available for consumption. #### Dynamic When none of the static PVs the administrator created match a user's PersistentVolumeClaim, the cluster may try to dynamically provision a volume specially for the PVC. This provisioning is based on StorageClasses: the PVC must request a [storage class](/docs/concepts/storage/storage-classes/) and the administrator must have created and configured that class for dynamic provisioning to occur. Claims that request the class `""` effectively disable dynamic provisioning for themselves. To enable dynamic storage provisioning based on storage class, the cluster administrator needs to enable the `DefaultStorageClass` [admission controller](/docs/reference/access-authn-authz/admission-controllers/#defaultstorageclass) on the API server. This can be done, for example, by ensuring that `DefaultStorageClass` is among the comma-delimited, ordered list of values for the `--enable-admission-plugins` flag of the API server component. For more information on API server command-line flags, check [kube-apiserver](/docs/reference/command-line-tools-reference/kube-apiserver/) documentation. ### Binding A user creates, or in the case of dynamic provisioning, has already created, a PersistentVolumeClaim with a specific amount of storage requested and with certain access modes. A control loop in the control plane watches for new PVCs, finds a matching PV (if possible), and binds them together. If a PV was dynamically provisioned for a new PVC, the loop will always bind that PV to the PVC. Otherwise, the user will always get at least what they asked for, but the volume may be in excess of what was requested. Once bound, PersistentVolumeClaim binds are exclusive, regardless of how they were bound. A PVC to PV binding is a
null
./vendor/kubernetes/content/en/docs/concepts/storage/persistent-volumes.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/storage/persistent-volumes.md
[ -0.04691171646118164, -0.0012397324899211526, 0.0004473893204703927, 0.029567550867795944, -0.015583823435008526, -0.04291233792901039, 0.002636489225551486, -0.008500384166836739, 0.1074359193444252, 0.01728088967502117, -0.0265983734279871, -0.006359395571053028, 0.04816427454352379, 0.025103306397795677, -0.03393632918596268, -0.02460039034485817, 0.0271272175014019, 0.01689194142818451, -0.06929036974906921, 0.002621294930577278, 0.03270785138010979, 0.04289540648460388, -0.00931742787361145, 0.031240710988640785, 0.011542286723852158, -0.00923101231455803, -0.027235038578510284, -0.051503513008356094, 0.05736056715250015, -0.014461725950241089, -0.011779596097767353, 0.02895527146756649, -0.050967659801244736, 0.02271372452378273, 0.032272107899188995, 0.09021907299757004, 0.003376410575583577, -0.03984967619180679, -0.09014207869768143, -0.025832783430814743, 0.044904738664627075, -0.07157506048679352, -0.08966443687677383, -0.013510093092918396, -0.0383237786591053, 0.038831278681755066, -0.00017826221301220357, -0.07294576615095139, -0.039527542889118195, 0.006789432838559151, 0.021699020639061928, -0.10083839297294617, 0.05414954572916031, 0.12492262572050095, 0.03204302862286568, 0.055487412959337234, 0.024596581235527992, 0.08414579182863235, 0.05666906386613846, 0.00650308933109045, 0.03314198553562164, 0.015215623192489147, 0.06941372156143188, 0.008816348388791084, -0.033735379576683044, 0.0374629981815815, 0.05068721994757652, 0.04588606581091881, 0.08566437661647797, -0.029810944572091103, 0.05720151960849762, 0.0967354029417038, -0.07929530739784241, 0.028686190024018288, 0.00300311460159719, 0.02086031809449196, -0.041382044553756714, 0.06459680944681168, 0.012824906036257744, -0.037552885711193085, 0.029366515576839447, 0.03950284421443939, -0.0036299859639257193, 0.012175694108009338, -0.04094579070806503, -0.034159377217292786, -0.037082821130752563, 0.006117151118814945, 0.0003649009158834815, -0.05553917586803436, -0.0033782371319830418, -0.01800302229821682, 0.02969517931342125, -0.11010517179965973, -0.001361209899187088, -0.04049794748425484, -0.03748663142323494, -0.0459175668656826, 0.10112790018320084, -0.024194199591875076, -0.01960781030356884, 0.04795028641819954, -0.013240073807537556, 0.017412690445780754, 0.04327636584639549, -0.11303021013736725, -0.02074555866420269, 0.041712626814842224, -0.03223418816924095, 0.06962066143751144, 0.0003184986999258399, 0.04512513801455498, -0.034327033907175064, 0.02344910055398941, 0.07669229805469513, 0.05919220298528671, -0.025402940809726715, 0.024467414245009422, 0.03741525113582611, 0.02918018028140068, 0.05276224762201309, -0.08461643755435944, 0.03341672569513321, 0.004827369935810566, 0.01030802819877863, 0.02712511084973812, -0.03678828105330467, 2.0051825082036437e-33, 0.007814728654921055, -0.09371083974838257, 0.0389087051153183, 0.013443871401250362, -0.005447625648230314, -0.10667229443788528, 0.007942328229546547, 0.03091302700340748, -0.007674261927604675, -0.12843197584152222, -0.04931189492344856, 0.15907606482505798, -0.021257974207401276, -0.026723328977823257, 0.0719730332493782, -0.02942007966339588, -0.05318644270300865, 0.09492266923189163, 0.07975899428129196, -0.05365361273288727, 0.023662541061639786, 0.05427342280745506, 0.01505311019718647, 0.0004996489151380956, 0.059639822691679, -0.01450247224420309, 0.07091325521469116, -0.049909986555576324, -0.015301018953323364, 0.03406347334384918, -0.060219455510377884, 0.019567370414733887, 0.025875607505440712, -0.0011256725993007421, -0.10425437986850739, 0.016447782516479492, -0.09143661707639694, 0.011257944628596306, -0.08139126002788544, -0.07006252557039261, 0.04891818016767502, -0.019558411091566086, 0.003879833035171032, -0.07205604761838913, -0.027646636590361595, -0.045609116554260254, 0.006726802792400122, -0.018456552177667618, 0.027955099940299988, 0.029793979600071907, 0.029939571395516396, 0.005908002611249685, -0.005594652146100998, -0.023731572553515434, 0.01070764847099781, -0.023720035329461098, 0.062461283057928085, -0.10440003871917725, -0.02830074541270733, -0.02132476679980755, -0.033769264817237854, 0.03150119632482529, 0.009219580329954624, 0.058990996330976486, -0.03200947493314743, -0.003926537465304136, 0.00394885428249836, 0.0014058997621759772, 0.013506537303328514, -0.04264593496918678, -0.008231992833316326, 0.0005249358946457505, -0.07306866347789764, -0.036957547068595886, -0.02126111090183258, -0.09780791401863098, 0.0036939652636647224, -0.028167374432086945, -0.1083870604634285, 0.03423050791025162, 0.0030551666859537363, -0.08415251225233078, -0.07054869830608368, 0.07942487299442291, -0.031708989292383194, -0.027792608365416527, 0.055428601801395416, -0.037793468683958054, -0.08221282064914703, 0.00040961438207887113, 0.03241564333438873, -0.046036504209041595, -0.010292058810591698, 0.010577688924968243, -0.06977628171443939, -3.240339442143901e-33, 0.0843062698841095, 0.002791146980598569, -0.027111586183309555, 0.04428861662745476, 0.014940544031560421, 0.06412255018949509, -0.052736446261405945, 0.05990777164697647, -0.06805995106697083, -0.07750217616558075, -0.10234430432319641, -0.02238047681748867, -0.05891011282801628, 0.004343703854829073, -0.05537518486380577, -0.024238305166363716, -0.06734782457351685, -0.10861430317163467, 0.007708217017352581, 0.05973763391375542, -0.04176713526248932, 0.015417859889566898, 0.017107905820012093, 0.016257507726550102, -0.010979868471622467, 0.011840278282761574, -0.0033253771252930164, 0.04493718594312668, -0.07496429979801178, -0.05260803550481796, -0.05166001245379448, -0.09778810292482376, -0.06534323841333389, -0.09299566596746445, -0.0023155235685408115, -0.05142725631594658, 0.054185524582862854, 0.007459048181772232, -0.05373196676373482, -0.017020326107740402, 0.019294187426567078, -0.017824094742536545, -0.03288599103689194, -0.03472461551427841, -0.035769592970609665, 0.022298673167824745, 0.03884712606668472, -0.012047525495290756, 0.03585049510002136, -0.06660294532775879, 0.026304222643375397, -0.001759509788826108, -0.047610171139240265, 0.05047761648893356, -0.019045913591980934, 0.08308693766593933, -0.0016962474910542369, 0.10135090351104736, -0.043070096522569656, -0.017311621457338333, 0.06646228581666946, -0.10484834760427475, -0.004105620086193085, 0.05264770984649658, -0.10072578489780426, -0.02002912014722824, 0.07332754880189896, 0.008105695247650146, -0.1121586337685585, 0.03580281138420105, 0.05148003622889519, -0.022318754345178604, 0.028576334938406944, 0.028133735060691833, 0.00418773852288723, -0.05625572428107262, 0.011528577655553818, -0.09578335285186768, 0.032582350075244904, 0.006015503313392401, -0.07545887678861618, 0.0316634476184845, -0.05512934550642967, 0.02175092324614525, 0.04968804493546486, -0.040583834052085876, 0.011137085035443306, 0.055416274815797806, 0.05880570039153099, 0.07002152502536774, -0.06796887516975403, 0.0677429586648941, -0.12569177150726318, 0.055032528936862946, -0.02903115563094616, -4.804529041280148e-8, 0.033187948167324066, 0.051748454570770264, 0.004713843576610088, 0.08785378932952881, -0.009820708073675632, -0.08782889693975449, 0.06177718564867973, 0.10779660195112228, -0.027906909584999084, 0.035238705575466156, 0.05398987978696823, 0.004204075317829847, -0.043695028871297836, -0.06393896043300629, -0.034495268017053604, 0.06323178857564926, 0.012924736365675926, -0.013798241503536701, -0.03498752415180206, -0.028141655027866364, -0.00966211874037981, 0.012380185537040234, 0.0071178581565618515, -0.022464590147137642, 0.04724406450986862, 0.05250953510403633, 0.10315406322479248, 0.0681338980793953, 0.05134661868214607, 0.0010343523463234305, 0.01392245665192604, 0.020390627905726433, 0.0233968086540699, 0.0854865238070488, -0.04239274933934212, 0.044594474136829376, -0.05890091136097908, 0.06576390564441681, -0.0018647649558261037, 0.0471249483525753, -0.03137682378292084, -0.03919994831085205, -0.0419948548078537, 0.04844924807548523, 0.07417254894971848, 0.09191921353340149, -0.03175904601812363, 0.12387184053659439, -0.04198997840285301, 0.057472266256809235, -0.07370594143867493, -0.057590823620557785, -0.04007139801979065, 0.14763207733631134, -0.006866380572319031, 0.0019799836445599794, -0.01058862917125225, 0.0040966784581542015, 0.07358146458864212, 0.07563252002000809, 0.04312843456864357, 0.043492935597896576, 0.03284820169210434, 0.026538841426372528 ]
0.165763
will always bind that PV to the PVC. Otherwise, the user will always get at least what they asked for, but the volume may be in excess of what was requested. Once bound, PersistentVolumeClaim binds are exclusive, regardless of how they were bound. A PVC to PV binding is a one-to-one mapping, using a ClaimRef which is a bi-directional binding between the PersistentVolume and the PersistentVolumeClaim. Claims will remain unbound indefinitely if a matching volume does not exist. Claims will be bound as matching volumes become available. For example, a cluster provisioned with many 50Gi PVs would not match a PVC requesting 100Gi. The PVC can be bound when a 100Gi PV is added to the cluster. ### Using Pods use claims as volumes. The cluster inspects the claim to find the bound volume and mounts that volume for a Pod. For volumes that support multiple access modes, the user specifies which mode is desired when using their claim as a volume in a Pod. Once a user has a claim and that claim is bound, the bound PV belongs to the user for as long as they need it. Users schedule Pods and access their claimed PVs by including a `persistentVolumeClaim` section in a Pod's `volumes` block. See [Claims As Volumes](#claims-as-volumes) for more details on this. ### Storage Object in Use Protection The purpose of the Storage Object in Use Protection feature is to ensure that PersistentVolumeClaims (PVCs) in active use by a Pod and PersistentVolume (PVs) that are bound to PVCs are not removed from the system, as this may result in data loss. {{< note >}} PVC is in active use by a Pod when a Pod object exists that is using the PVC. {{< /note >}} If a user deletes a PVC in active use by a Pod, the PVC is not removed immediately. PVC removal is postponed until the PVC is no longer actively used by any Pods. Also, if an admin deletes a PV that is bound to a PVC, the PV is not removed immediately. PV removal is postponed until the PV is no longer bound to a PVC. You can see that a PVC is protected when the PVC's status is `Terminating` and the `Finalizers` list includes `kubernetes.io/pvc-protection`: ```shell kubectl describe pvc hostpath Name: hostpath Namespace: default StorageClass: example-hostpath Status: Terminating Volume: Labels: Annotations: volume.beta.kubernetes.io/storage-class=example-hostpath volume.beta.kubernetes.io/storage-provisioner=example.com/hostpath Finalizers: [kubernetes.io/pvc-protection] ... ``` You can see that a PV is protected when the PV's status is `Terminating` and the `Finalizers` list includes `kubernetes.io/pv-protection` too: ```shell kubectl describe pv task-pv-volume Name: task-pv-volume Labels: type=local Annotations: Finalizers: [kubernetes.io/pv-protection] StorageClass: standard Status: Terminating Claim: Reclaim Policy: Delete Access Modes: RWO Capacity: 1Gi Message: Source: Type: HostPath (bare host directory volume) Path: /tmp/data HostPathType: Events: ``` ### Reclaiming When a user is done with their volume, they can delete the PVC objects from the API that allows reclamation of the resource. The reclaim policy for a PersistentVolume tells the cluster what to do with the volume after it has been released of its claim. Currently, volumes can either be Retained, Recycled, or Deleted. #### Retain The `Retain` reclaim policy allows for manual reclamation of the resource. When the PersistentVolumeClaim is deleted, the PersistentVolume still exists and the volume is considered "released". But it is not yet available for another claim because the previous claimant's data remains on the volume. An administrator can manually reclaim the volume with the following steps. 1. Delete the PersistentVolume. The associated storage asset in external infrastructure still exists after the PV is deleted. 1. Manually clean up the data on the associated storage asset
null
./vendor/kubernetes/content/en/docs/concepts/storage/persistent-volumes.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/storage/persistent-volumes.md
[ -0.03495413810014725, -0.014167622663080692, -0.0010966850677505136, 0.016490837559103966, -0.0009924129117280245, -0.002503753174096346, 0.05566563084721565, 0.03904799371957779, 0.04933551698923111, 0.018355829641222954, -0.02375873364508152, 0.010347036644816399, 0.06564030051231384, -0.006855112500488758, 0.018720069900155067, 0.006387794855982065, 0.07793771475553513, -0.008928190916776657, -0.03325977548956871, 0.05109401047229767, 0.08234163373708725, -0.014406818896532059, -0.027606775984168053, -0.0005440128152258694, 0.016751447692513466, 0.004710200242698193, -0.054450493305921555, -0.022003984078764915, 0.07226705551147461, -0.044973865151405334, -0.059804756194353104, 0.04089190065860748, 0.014811808243393898, -0.0024106712080538273, 0.03629708290100098, 0.06319668143987656, -0.05009894445538521, -0.06423544883728027, -0.06537214666604996, 0.033229440450668335, 0.017472688108682632, -0.05016684904694557, -0.058479633182287216, -0.02554946206510067, -0.06359889358282089, 0.03542931750416756, 0.0025518913753330708, 0.0488051101565361, -0.048798900097608566, 0.04702840745449066, 0.04597502574324608, -0.09280413389205933, 0.03472912311553955, 0.12348334491252899, -0.06485701352357864, 0.022074652835726738, 0.06433086097240448, 0.027439119294285774, 0.06797745823860168, 0.004693652968853712, -0.03124414198100567, -0.0008610232616774738, -0.021400202065706253, 0.049390651285648346, 0.04727047681808472, -0.020342668518424034, 0.07326501607894897, 0.03031543269753456, 0.0010880144545808434, 0.0042989919893443584, 0.10141120105981827, 0.0635286271572113, -0.04390694946050644, 0.007525542285293341, 0.026599183678627014, 0.03065711259841919, -0.0318680964410305, 0.0038583101704716682, 0.05278153717517853, -0.07555735856294632, 0.03786131367087364, 0.09006020426750183, -0.020294882357120514, -0.06597954779863358, -0.023655161261558533, -0.02286507561802864, -0.03231491148471832, 0.02448878064751625, 0.05670403316617012, -0.0013225425500422716, -0.007189734373241663, -0.00000930031637835782, 0.04113446921110153, -0.029610650613904, 0.057128921151161194, -0.043665166944265366, -0.023180073127150536, -0.03991105034947395, 0.06574942171573639, -0.021285245195031166, 0.018317919224500656, 0.009705874137580395, -0.09796308726072311, -0.05117563530802727, 0.07354969531297684, -0.0755665972828865, -0.014355545863509178, -0.010282275266945362, 0.018256457522511482, 0.12599590420722961, 0.006700212135910988, -0.014197155833244324, 0.019694486632943153, 0.016506381332874298, 0.009314130991697311, 0.08136145025491714, 0.03820501267910004, 0.08379239588975906, -0.0661594420671463, -0.11274896562099457, -0.050167251378297806, -0.11991029232740402, 0.052457112818956375, 0.0051442296244204044, -0.021393489092588425, 0.004356666933745146, -0.056766487658023834, 5.060650484425785e-33, 0.005124199204146862, -0.13518139719963074, 0.030582472681999207, 0.002207359531894326, 0.005560554563999176, 0.05483980104327202, 0.0069717285223305225, 0.03093969263136387, -0.063012033700943, -0.08530980348587036, 0.02408972941339016, 0.10054326057434082, 0.01952756941318512, 0.034710537642240524, 0.005630748812109232, -0.04011117294430733, 0.043314192444086075, 0.07829788327217102, 0.029111698269844055, -0.05183457210659981, -0.034497711807489395, -0.008710394613444805, -0.009443038143217564, 0.05013179033994675, 0.016606410965323448, -0.057649411261081696, -0.016075748950242996, -0.030324628576636314, -0.028321517631411552, 0.030699405819177628, -0.046777695417404175, 0.03124327026307583, 0.08457208424806595, 0.04869769513607025, -0.06930987536907196, 0.04137943685054779, -0.048435866832733154, -0.02623925171792507, -0.07847786694765091, -0.09176783263683319, -0.03616198152303696, -0.014091403223574162, 0.03249263018369675, -0.04696926102042198, -0.07236870378255844, -0.10173756629228592, 0.04746241122484207, 0.025815511122345924, -0.0789005383849144, 0.05463522672653198, 0.06600344181060791, 0.04479672759771347, -0.054833631962537766, -0.026824505999684334, 0.018391715362668037, -0.011009663343429565, -0.09334271401166916, -0.041618168354034424, 0.010634563863277435, 0.04229140654206276, -0.008687900379300117, -0.03637003153562546, -0.0062665208242833614, 0.04828808456659317, -0.0179629847407341, 0.11407449096441269, -0.01826636493206024, -0.0861932709813118, 0.06563513725996017, -0.004024602938443422, 0.019290901720523834, -0.06688347458839417, -0.07272578030824661, 0.004879677668213844, -0.07734066992998123, -0.03713778778910637, -0.004192193038761616, 0.0029163348954170942, -0.03796200454235077, 0.021964775398373604, -0.04069606959819794, 0.0035025409888476133, -0.008317247964441776, 0.09742853045463562, -0.046926792711019516, -0.05773966759443283, 0.04008891433477402, -0.041098520159721375, -0.13628925383090973, -0.0583924800157547, 0.04791049659252167, -0.04708274453878403, 0.03734474256634712, 0.06142222508788109, 0.008548680692911148, -5.402618321469297e-33, 0.03178940340876579, 0.021823829039931297, -0.02210107073187828, 0.009580051526427269, 0.012544048018753529, -0.0080979373306036, -0.05239687114953995, -0.0072262161411345005, -0.009459409862756729, -0.053428832441568375, -0.04355848208069801, -0.022577818483114243, -0.04824495688080788, 0.0474921315908432, -0.07648301869630814, -0.006916336715221405, 0.0009513441473245621, -0.030715053901076317, -0.008080017752945423, 0.08177004754543304, 0.03410647436976433, -0.06107383966445923, 0.039044953882694244, 0.029379958286881447, 0.005154820624738932, -0.014384515583515167, -0.06588707119226456, -0.009149295277893543, -0.08765174448490143, -0.040352847427129745, -0.004961763508617878, -0.10868287831544876, -0.1099500060081482, -0.11932695657014847, -0.0061461287550628185, -0.11759600788354874, -0.01287879515439272, 0.05695567652583122, -0.022183716297149658, 0.009983379393815994, 0.04141158238053322, -0.06131790578365326, -0.07248204946517944, -0.0516434870660305, -0.03128014877438545, -0.022563718259334564, 0.11982135474681854, -0.017457565292716026, 0.048375967890024185, -0.01511974073946476, -0.003160271793603897, 0.01098847109824419, 0.025349916890263557, 0.14163190126419067, -0.007516134064644575, 0.0006620354834012687, -0.03886556252837181, 0.12216412276029587, 0.01517477072775364, -0.07772763818502426, 0.09668534249067307, 0.03136545047163963, 0.011649723164737225, 0.09374929219484329, -0.04323725029826164, -0.03288279473781586, 0.11133649200201035, -0.016966713592410088, -0.027516460046172142, 0.015973448753356934, 0.05374819040298462, -0.05820030719041824, 0.023820292204618454, -0.02983567863702774, 0.013091626577079296, -0.03477322310209274, -0.030093638226389885, -0.10627170652151108, 0.012946081347763538, -0.006842334754765034, -0.061680279672145844, 0.07386667281389236, -0.0385441929101944, 0.004121202044188976, 0.06118437275290489, 0.0176770631223917, 0.07718189060688019, -0.006707553286105394, 0.07208546996116638, 0.16833923757076263, 0.031346678733825684, 0.047311581671237946, -0.05389924347400665, 0.01313959714025259, -0.030507277697324753, -5.3961318968731575e-8, 0.07102802395820618, 0.05620966851711273, -0.009484084323048592, 0.014757581986486912, 0.014399564824998379, -0.07765931636095047, 0.051779605448246, 0.013129486702382565, -0.013373075984418392, 0.10912945866584778, 0.1072574183344841, -0.006089213769882917, -0.02548227645456791, -0.076096311211586, -0.006433458533138037, 0.015869252383708954, 0.027991654351353645, -0.06432369351387024, -0.08030834048986435, -0.03903140872716904, -0.060049667954444885, -0.0342329740524292, -0.026889296248555183, 0.04109129309654236, 0.02275656722486019, 0.0027494521345943213, 0.05194271728396416, -0.021143609657883644, 0.015639910474419594, 0.01340247131884098, -0.0009692712919786572, 0.01048852689564228, -0.0356844887137413, -0.0000021569662749243435, -0.03198259696364403, 0.03718158230185509, -0.0455872118473053, 0.0043647619895637035, -0.025299053639173508, 0.06637789309024811, -0.017864201217889786, 0.0008203130564652383, 0.08831123262643814, 0.023886265233159065, 0.029400918632745743, 0.09766190499067307, -0.01037103496491909, 0.029715154320001602, -0.035512927919626236, 0.06070888414978981, -0.059597913175821304, -0.01642616093158722, -0.03783506155014038, 0.047709666192531586, 0.07949286699295044, -0.02826519124209881, -0.03100975789129734, 0.07600200176239014, 0.028530267998576164, 0.06612195074558258, 0.01172714028507471, 0.03592408448457718, -0.026518093422055244, -0.0301732886582613 ]
0.054419
claim because the previous claimant's data remains on the volume. An administrator can manually reclaim the volume with the following steps. 1. Delete the PersistentVolume. The associated storage asset in external infrastructure still exists after the PV is deleted. 1. Manually clean up the data on the associated storage asset accordingly. 1. Manually delete the associated storage asset. If you want to reuse the same storage asset, create a new PersistentVolume with the same storage asset definition. #### Delete For volume plugins that support the `Delete` reclaim policy, deletion removes both the PersistentVolume object from Kubernetes, as well as the associated storage asset in the external infrastructure. Volumes that were dynamically provisioned inherit the [reclaim policy of their StorageClass](#reclaim-policy), which defaults to `Delete`. The administrator should configure the StorageClass according to users' expectations; otherwise, the PV must be edited or patched after it is created. See [Change the Reclaim Policy of a PersistentVolume](/docs/tasks/administer-cluster/change-pv-reclaim-policy/). #### Recycle {{< warning >}} The `Recycle` reclaim policy is deprecated. Instead, the recommended approach is to use dynamic provisioning. {{< /warning >}} If supported by the underlying volume plugin, the `Recycle` reclaim policy performs a basic scrub (`rm -rf /thevolume/\*`) on the volume and makes it available again for a new claim. However, an administrator can configure a custom recycler Pod template using the Kubernetes controller manager command line arguments as described in the [reference](/docs/reference/command-line-tools-reference/kube-controller-manager/). The custom recycler Pod template must contain a `volumes` specification, as shown in the example below: ```yaml apiVersion: v1 kind: Pod metadata: name: pv-recycler namespace: default spec: restartPolicy: Never volumes: - name: vol hostPath: path: /any/path/it/will/be/replaced containers: - name: pv-recycler image: "registry.k8s.io/busybox" command: ["/bin/sh", "-c", "test -e /scrub && rm -rf /scrub/..?\* /scrub/.[!.]\* /scrub/\* && test -z \"$(ls -A /scrub)\" || exit 1"] volumeMounts: - name: vol mountPath: /scrub ``` However, the particular path specified in the custom recycler Pod template in the `volumes` part is replaced with the particular path of the volume that is being recycled. ### PersistentVolume deletion protection finalizer {{< feature-state feature\_gate\_name="HonorPVReclaimPolicy" >}} Finalizers can be added on a PersistentVolume to ensure that PersistentVolumes having `Delete` reclaim policy are deleted only after the backing storage are deleted. The finalizer `external-provisioner.volume.kubernetes.io/finalizer`(introduced in v1.31) is added to both dynamically provisioned and statically provisioned CSI volumes. The finalizer `kubernetes.io/pv-controller`(introduced in v1.31) is added to dynamically provisioned in-tree plugin volumes and skipped for statically provisioned in-tree plugin volumes. The following is an example of dynamically provisioned in-tree plugin volume: ```shell kubectl describe pv pvc-74a498d6-3929-47e8-8c02-078c1ece4d78 Name: pvc-74a498d6-3929-47e8-8c02-078c1ece4d78 Labels: Annotations: kubernetes.io/createdby: vsphere-volume-dynamic-provisioner pv.kubernetes.io/bound-by-controller: yes pv.kubernetes.io/provisioned-by: kubernetes.io/vsphere-volume Finalizers: [kubernetes.io/pv-protection kubernetes.io/pv-controller] StorageClass: vcp-sc Status: Bound Claim: default/vcp-pvc-1 Reclaim Policy: Delete Access Modes: RWO VolumeMode: Filesystem Capacity: 1Gi Node Affinity: Message: Source: Type: vSphereVolume (a Persistent Disk resource in vSphere) VolumePath: [vsanDatastore] d49c4a62-166f-ce12-c464-020077ba5d46/kubernetes-dynamic-pvc-74a498d6-3929-47e8-8c02-078c1ece4d78.vmdk FSType: ext4 StoragePolicyName: vSAN Default Storage Policy Events: ``` The finalizer `external-provisioner.volume.kubernetes.io/finalizer` is added for CSI volumes. The following is an example: ```shell Name: pvc-2f0bab97-85a8-4552-8044-eb8be45cf48d Labels: Annotations: pv.kubernetes.io/provisioned-by: csi.vsphere.vmware.com Finalizers: [kubernetes.io/pv-protection external-provisioner.volume.kubernetes.io/finalizer] StorageClass: fast Status: Bound Claim: demo-app/nginx-logs Reclaim Policy: Delete Access Modes: RWO VolumeMode: Filesystem Capacity: 200Mi Node Affinity: Message: Source: Type: CSI (a Container Storage Interface (CSI) volume source) Driver: csi.vsphere.vmware.com FSType: ext4 VolumeHandle: 44830fa8-79b4-406b-8b58-621ba25353fd ReadOnly: false VolumeAttributes: storage.kubernetes.io/csiProvisionerIdentity=1648442357185-8081-csi.vsphere.vmware.com type=vSphere CNS Block Volume Events: ``` When the `CSIMigration{provider}` feature flag is enabled for a specific in-tree volume plugin, the `kubernetes.io/pv-controller` finalizer is replaced by the `external-provisioner.volume.kubernetes.io/finalizer` finalizer. The finalizers ensure that the PV object is removed only after the volume is deleted from the storage backend provided the reclaim policy of the PV is `Delete`. This also ensures that the volume is deleted from storage backend irrespective of the order of
null
./vendor/kubernetes/content/en/docs/concepts/storage/persistent-volumes.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/storage/persistent-volumes.md
[ -0.039001692086458206, 0.04420461505651474, 0.06090303137898445, 0.016649460420012474, -0.0028026564978063107, -0.004642822779715061, 0.02193557843565941, -0.02630612812936306, 0.09734417498111725, 0.03948246315121651, 0.017916740849614143, 0.006472717970609665, 0.06538711488246918, 0.057983770966529846, -0.022832076996564865, -0.026481231674551964, -0.03547737002372742, 0.021815836429595947, -0.062083907425403595, 0.016812000423669815, 0.028806785121560097, -0.019348815083503723, -0.005698466673493385, 0.018005507066845894, 0.10246023535728455, 0.014013251289725304, -0.020063284784555435, 0.006045342888683081, 0.03433607518672943, -0.04631614685058594, 0.0010184183483943343, 0.010511469095945358, -0.03984550014138222, -0.07097860425710678, 0.0935182273387909, 0.04691304266452789, -0.07139883190393448, 0.008910772390663624, -0.0843149870634079, -0.021870015189051628, 0.04587279260158539, -0.056627724319696426, -0.09750774502754211, -0.05811469256877899, -0.03708628565073013, 0.08289728313684464, 0.03259913623332977, -0.0367962047457695, 0.0075315930880606174, 0.02025454491376877, 0.08799290657043457, -0.04702803120017052, 0.062185049057006836, 0.1402669996023178, -0.009010990150272846, 0.015591941773891449, 0.05410652607679367, 0.13706853985786438, 0.059118177741765976, 0.014465585350990295, -0.007165266200900078, 0.027566468343138695, 0.049015723168849945, -0.006779895164072514, -0.0416724793612957, 0.027895698323845863, 0.06962337344884872, -0.007546787150204182, -0.02317879907786846, 0.006073462776839733, 0.12653160095214844, 0.10152596235275269, -0.026016706600785255, -0.013778171502053738, 0.03963358327746391, 0.027552247047424316, -0.05052967369556427, 0.0475863441824913, 0.02832951955497265, -0.03990760073065758, 0.05813644081354141, 0.004926235415041447, -0.025593237951397896, -0.03902899846434593, -0.11412345618009567, -0.05481512472033501, -0.08597734570503235, -0.005281694233417511, -0.03040046989917755, -0.025759778916835785, 0.04439803212881088, -0.02625533752143383, 0.04969415068626404, -0.0306832417845726, 0.03769945353269577, -0.10185592621564865, -0.06510687619447708, -0.008709587156772614, 0.06506514549255371, -0.015988867729902267, -0.017230965197086334, 0.03425205498933792, -0.05696564167737961, 0.011161732487380505, 0.0222184918820858, -0.12025399506092072, 0.016977285966277122, 0.03460879623889923, -0.04386865720152855, 0.06164347380399704, 0.008289260789752007, 0.019210578873753548, 0.000650803733151406, 0.05623067542910576, 0.10800482332706451, 0.07714302092790604, -0.03160072863101959, 0.074333555996418, -0.0794929787516594, -0.05321972444653511, -0.014909103512763977, -0.0839623436331749, -0.0021327657159417868, 0.03377331793308258, -0.01892899163067341, 0.07734478265047073, -0.003644331591203809, 2.8021786983206936e-33, 0.006780460011214018, -0.04587414860725403, 0.06896686553955078, -0.03816534951329231, 0.025573447346687317, -0.03729609027504921, 0.04895363003015518, 0.010115629062056541, -0.02853948064148426, -0.12140247225761414, -0.02820572443306446, 0.13896320760250092, -0.027140287682414055, -0.015644649043679237, 0.004081899765878916, -0.012471992522478104, -0.008666742593050003, 0.0936281681060791, 0.03671681508421898, -0.06756823509931564, 0.05247151106595993, 0.07290904223918915, 0.04751325026154518, 0.0002741783100645989, 0.02426695078611374, -0.05062057450413704, 0.06720077246427536, -0.03189907968044281, -0.055079445242881775, 0.009839881211519241, -0.08158788084983826, 0.04471580684185028, 0.048838064074516296, 0.037653639912605286, -0.08872733265161514, 0.021404197439551353, -0.02834228426218033, -0.0029443029779940844, -0.12780532240867615, -0.022134410217404366, 0.07726524025201797, -0.014642360620200634, 0.038645438849925995, -0.020819898694753647, -0.04170047864317894, -0.09398272633552551, 0.05208888277411461, -0.0626404881477356, -0.002198487054556608, 0.08216110616922379, 0.05291822925209999, 0.04615898057818413, -0.01967027597129345, -0.06866186112165451, 0.001879081828519702, -0.036792904138565063, 0.0015761980321258307, -0.07032888382673264, -0.0035522920079529285, -0.04709339514374733, 0.058468643575906754, 0.061983998864889145, 0.01829468086361885, 0.03285128250718117, -0.02868916280567646, 0.034241318702697754, -0.00521595124155283, -0.013588176108896732, -0.02290567383170128, -0.1236482784152031, -0.0060583618469536304, -0.001333436113782227, -0.0955551341176033, -0.06284762918949127, 0.002030116505920887, -0.07705971598625183, -0.01724308170378208, 0.004357730038464069, -0.06634120643138885, -0.03158622980117798, -0.02960895374417305, -0.07150877267122269, -0.002593045588582754, 0.07414837926626205, -0.025268685072660446, -0.028640296310186386, 0.0297129824757576, -0.03587624058127403, -0.02249949984252453, -0.005192653276026249, 0.008706358261406422, -0.05337277054786682, -0.005530255381017923, 0.05494888871908188, -0.034039873629808426, -3.2734983010706747e-33, 0.056511636823415756, 0.042589638382196426, -0.0038653952069580555, -0.028422443196177483, 0.026975339278578758, 0.034156184643507004, -0.04921674728393555, 0.10305558890104294, -0.053330205380916595, -0.08824145793914795, -0.06227885186672211, -0.03196100890636444, -0.01591380499303341, 0.00195209844969213, -0.04457812011241913, -0.013743741437792778, -0.03341390937566757, -0.04517720639705658, -0.03519350290298462, 0.012058706022799015, 0.02097909525036812, -0.003160550957545638, 0.05708663910627365, 0.03876606374979019, -0.04749377444386482, -0.01230659894645214, 0.002741536358371377, 0.027929013594985008, 0.03801398724317551, -0.018362982198596, -0.03258732333779335, -0.08962148427963257, -0.061126988381147385, -0.08450049161911011, 0.04673711955547333, -0.09002337604761124, 0.028336821123957634, -0.02659662999212742, -0.05670145899057388, -0.003551607020199299, -0.021810874342918396, 0.0034069549292325974, -0.02288288064301014, -0.027098961174488068, -0.023446807637810707, 0.005884252488613129, 0.08182071894407272, -0.07793058454990387, 0.0830417349934578, -0.028018847107887268, 0.0065481942147016525, -0.004034838639199734, -0.015170486643910408, 0.09231315553188324, -0.01887352019548416, 0.04118320345878601, 0.05540136620402336, 0.10429269820451736, -0.04407357797026634, -0.08803384006023407, 0.0614498071372509, -0.026252523064613342, -0.02462402544915676, 0.07585971802473068, -0.01682131364941597, -0.02370471879839897, 0.09295445680618286, -0.034820668399333954, -0.06686375290155411, -0.005618390627205372, 0.0012439858401194215, 0.00014675325655844063, -0.001972306752577424, -0.015498585067689419, 0.051930371671915054, -0.033553216606378555, -0.047255147248506546, -0.04382992535829544, -0.0294305682182312, -0.0038596983067691326, 0.03847064822912216, -0.024622149765491486, -0.06697774678468704, -0.03548572584986687, 0.048732541501522064, -0.02815285325050354, 0.052612386643886566, -0.010005166754126549, 0.02083277329802513, 0.14401935040950775, -0.07854387164115906, 0.005656011868268251, -0.05646442994475365, 0.08951514959335327, -0.0166420079767704, -4.872577008541157e-8, 0.033340614289045334, 0.07248569279909134, -0.009823990985751152, 0.08926253765821457, 0.0008099002297967672, -0.1355084329843521, 0.051798418164253235, 0.11839164793491364, -0.034120965749025345, -0.025528110563755035, 0.02652869001030922, 0.03956640511751175, -0.003744149347767234, -0.08045479655265808, -0.030617231503129005, -0.035570383071899414, -0.016241412609815598, -0.049688685685396194, 0.0360698439180851, -0.040958620607852936, -0.00963226892054081, -0.0628008246421814, -0.025821004062891006, -0.02194272167980671, 0.04038538783788681, 0.06181079521775246, 0.05722475051879883, 0.005818512756377459, 0.057214099913835526, 0.013980706222355366, 0.006901631131768227, 0.00043833939707838, 0.034098874777555466, 0.06739417463541031, -0.029458045959472656, 0.017024090513586998, 0.015203737653791904, 0.0729735866189003, -0.01544129103422165, 0.03385929390788078, -0.06357038766145706, 0.021364817395806313, -0.021556884050369263, 0.003750020172446966, 0.032707031816244125, 0.03836755082011223, -0.0055019548162817955, 0.08283666521310806, -0.06763769686222076, 0.0663556158542633, -0.05371176823973656, -0.0343143455684185, -0.07265684753656387, 0.11336586624383926, 0.02524004504084587, -0.02431402914226055, -0.03052166849374771, 0.055132996290922165, -0.020376265048980713, 0.08035358041524887, 0.0626276358962059, 0.030691299587488174, 0.0028828412760049105, -0.030408360064029694 ]
0.012039
is replaced by the `external-provisioner.volume.kubernetes.io/finalizer` finalizer. The finalizers ensure that the PV object is removed only after the volume is deleted from the storage backend provided the reclaim policy of the PV is `Delete`. This also ensures that the volume is deleted from storage backend irrespective of the order of deletion of PV and PVC. ### Reserving a PersistentVolume The control plane can [bind PersistentVolumeClaims to matching PersistentVolumes](#binding) in the cluster. However, if you want a PVC to bind to a specific PV, you need to pre-bind them. By specifying a PersistentVolume in a PersistentVolumeClaim, you declare a binding between that specific PV and PVC. If the PersistentVolume exists and has not reserved PersistentVolumeClaims through its `claimRef` field, then the PersistentVolume and PersistentVolumeClaim will be bound. The binding happens regardless of some volume matching criteria, including node affinity. The control plane still checks that [storage class](/docs/concepts/storage/storage-classes/), access modes, and requested storage size are valid. ```yaml apiVersion: v1 kind: PersistentVolumeClaim metadata: name: foo-pvc namespace: foo spec: storageClassName: "" # Empty string must be explicitly set otherwise default StorageClass will be set volumeName: foo-pv ... ``` This method does not guarantee any binding privileges to the PersistentVolume. If other PersistentVolumeClaims could use the PV that you specify, you first need to reserve that storage volume. Specify the relevant PersistentVolumeClaim in the `claimRef` field of the PV so that other PVCs can not bind to it. ```yaml apiVersion: v1 kind: PersistentVolume metadata: name: foo-pv spec: storageClassName: "" claimRef: name: foo-pvc namespace: foo ... ``` This is useful if you want to consume PersistentVolumes that have their `persistentVolumeReclaimPolicy` set to `Retain`, including cases where you are reusing an existing PV. ### Expanding Persistent Volumes Claims {{< feature-state for\_k8s\_version="v1.24" state="stable" >}} Support for expanding PersistentVolumeClaims (PVCs) is enabled by default. You can expand the following types of volumes: \* {{< glossary\_tooltip text="csi" term\_id="csi" >}} (including some CSI migrated volme types) \* flexVolume (deprecated) \* portworxVolume (deprecated) You can only expand a PVC if its storage class's `allowVolumeExpansion` field is set to true. ```yaml apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: name: example-vol-default provisioner: vendor-name.example/magicstorage parameters: resturl: "http://192.168.10.100:8080" restuser: "" secretNamespace: "" secretName: "" allowVolumeExpansion: true ``` To request a larger volume for a PVC, edit the PVC object and specify a larger size. This triggers expansion of the volume that backs the underlying PersistentVolume. A new PersistentVolume is never created to satisfy the claim. Instead, an existing volume is resized. {{< warning >}} Directly editing the size of a PersistentVolume can prevent an automatic resize of that volume. If you edit the capacity of a PersistentVolume, and then edit the `.spec` of a matching PersistentVolumeClaim to make the size of the PersistentVolumeClaim match the PersistentVolume, then no storage resize happens. The Kubernetes control plane will see that the desired state of both resources matches, conclude that the backing volume size has been manually increased and that no resize is necessary. {{< /warning >}} #### CSI Volume expansion {{< feature-state for\_k8s\_version="v1.24" state="stable" >}} Support for expanding CSI volumes is enabled by default but it also requires a specific CSI driver to support volume expansion. Refer to documentation of the specific CSI driver for more information. #### Resizing a volume containing a file system You can only resize volumes containing a file system if the file system is XFS, Ext3, or Ext4. When a volume contains a file system, the file system is only resized when a new Pod is using the PersistentVolumeClaim in `ReadWrite` mode. File system expansion is either done when a Pod is starting up or when a Pod is running and the underlying file system
null
./vendor/kubernetes/content/en/docs/concepts/storage/persistent-volumes.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/storage/persistent-volumes.md
[ -0.0327080637216568, -0.04598035663366318, 0.028357738628983498, 0.024812525138258934, -0.008202947676181793, 0.032460764050483704, 0.03805650770664215, -0.01320009957998991, 0.10516183078289032, 0.051086604595184326, 0.0034532102290540934, -0.01840965822339058, 0.03643301501870155, -0.0010689824121072888, -0.0009904928738251328, 0.011577095836400986, 0.03755595162510872, 0.010368023999035358, -0.044187549501657486, 0.03822525963187218, 0.004180357325822115, 0.02775898203253746, 0.004030036274343729, 0.006072513293474913, 0.00462893582880497, -0.009040712378919125, -0.04283840209245682, -0.023832332342863083, 0.08392433077096939, -0.03393588960170746, -0.01368150394409895, 0.04132230207324028, -0.012444495223462582, 0.0011434504995122552, 0.054606832563877106, 0.1072005033493042, -0.050303224474191666, -0.08864805102348328, -0.10224278271198273, -0.009187288582324982, 0.0572454035282135, -0.024313604459166527, -0.0819544568657875, -0.05261595919728279, -0.02922382764518261, 0.03826950117945671, -0.05102164298295975, 0.017601681873202324, -0.06676334887742996, -0.006799063645303249, 0.088668592274189, -0.11933857947587967, 0.020928870886564255, 0.11435604095458984, -0.03344450145959854, 0.0747719332575798, 0.05954812094569206, 0.09247207641601562, 0.0745173767209053, -0.018586650490760803, 0.01599773019552231, -0.0003483827458694577, 0.024318823590874672, -0.010416031815111637, 0.01261914987117052, 0.025599611923098564, 0.07155030965805054, 0.00009086698992177844, 0.009297890588641167, 0.0025594618637114763, 0.12031042575836182, 0.06881294399499893, -0.017345955595374107, 0.0011115428060293198, 0.007562210317701101, 0.07553733885288239, -0.016049036756157875, 0.003934361971914768, -0.006231675855815411, -0.060980670154094696, 0.061818815767765045, 0.04670644924044609, -0.00957419816404581, -0.03775068745017052, -0.07966126501560211, -0.0233426745980978, -0.10939235240221024, -0.02876480109989643, 0.027182217687368393, 0.007072989828884602, -0.009777811355888844, -0.012230497784912586, -0.02300986833870411, -0.06449202448129654, 0.07035604864358902, -0.06391799449920654, -0.05659016594290733, -0.03388037532567978, 0.0684746578335762, -0.0470842681825161, -0.013932601548731327, -0.015686672180891037, -0.09175942838191986, 0.04410339519381523, 0.03603758662939072, -0.1092187762260437, -0.009261484257876873, 0.0013338413555175066, -0.03687615320086479, 0.09381159394979477, -0.020813755691051483, 0.061842598021030426, 0.02681775763630867, -0.009047913365066051, 0.045165542513132095, 0.08619111031293869, 0.09647094458341599, 0.027230683714151382, -0.007704839576035738, -0.05716775357723236, -0.054282814264297485, -0.08361978083848953, -0.0108739472925663, 0.02331472933292389, -0.02149260975420475, -0.001763523556292057, -0.04551568999886513, 4.139449724490929e-33, 0.01180567592382431, -0.13194414973258972, 0.0342586487531662, -0.034933045506477356, 0.013916625641286373, 0.015246950089931488, 0.03253152221441269, -0.001948145916685462, -0.08880945295095444, -0.09771469980478287, -0.039005059748888016, 0.06172601506114006, 0.024721479043364525, -0.0020984956063330173, 0.004183236975222826, -0.060066040605306625, 0.003994978964328766, 0.09319979697465897, 0.03065415471792221, -0.07533677667379379, 0.02732069417834282, 0.042267002165317535, -0.015458486042916775, 0.009761862456798553, -0.009543288499116898, -0.05059574544429779, 0.024247245863080025, -0.023545613512396812, -0.02200412005186081, 0.00611388823017478, -0.05169672518968582, 0.05482371523976326, 0.08969797939062119, 0.032174885272979736, -0.10690624266862869, 0.011866837739944458, -0.06359126418828964, -0.0028635833878070116, -0.08458243310451508, -0.08899190276861191, 0.013671474531292915, 0.024006566032767296, 0.003808253910392523, -0.025965571403503418, -0.03176049143075943, -0.11812979727983475, 0.056187957525253296, -0.001978060696274042, 0.022623766213655472, 0.011276543140411377, 0.07022756338119507, 0.005465622525662184, -0.02242300659418106, -0.05395958572626114, 0.01290055550634861, 0.0006945207715034485, 0.003052446059882641, -0.04401283711194992, -0.047217682003974915, 0.0242121871560812, 0.0306223277002573, 0.008342243731021881, -0.028136247768998146, 0.021712513640522957, 0.01701335795223713, 0.07738031446933746, -0.013749806210398674, -0.03668319433927536, -0.013985509984195232, -0.10605547577142715, -0.00932230893522501, 0.028057940304279327, -0.0767638087272644, -0.009173447266221046, 0.005064604338258505, -0.0839456170797348, -0.022099193185567856, -0.0003204361710231751, -0.0725368782877922, -0.009375710040330887, -0.037889514118433, 0.006970832124352455, -0.03787485882639885, 0.12482233345508575, -0.015902770683169365, -0.06835580617189407, 0.062450703233480453, -0.01997212879359722, -0.03135473281145096, -0.03096884675323963, 0.05547651648521423, -0.10464661568403244, 0.039973028004169464, 0.04091872274875641, -0.017819734290242195, -4.2715381879829065e-33, 0.0824522078037262, 0.033435896039009094, -0.0487329438328743, 0.006547481752932072, 0.03208337351679802, 0.003312879242002964, -0.06128209829330444, 0.02787068486213684, -0.023032259196043015, -0.06992486119270325, 0.007527338806539774, -0.0413321815431118, -0.028171652927994728, 0.04447203129529953, -0.09869255870580673, -0.014587133191525936, -0.07569915056228638, -0.05417598783969879, 0.004764783661812544, 0.044224899262189865, 0.06127454340457916, -0.06766903400421143, 0.033769864588975906, 0.03506503254175186, -0.017582299187779427, -0.05376005917787552, -0.023379378020763397, 0.05832025408744812, -0.06943351775407791, -0.047588568180799484, -0.012458695098757744, -0.061710864305496216, -0.056504637002944946, -0.0394630953669548, 0.019404985010623932, -0.09268248081207275, -0.0051417965441942215, -0.029993191361427307, -0.006805685348808765, -0.05281401053071022, -0.02992076985538006, 0.014519978314638138, -0.09430454671382904, -0.026927493512630463, -0.0014777969336137176, 0.009960738942027092, 0.1346961259841919, -0.005048072896897793, 0.06915462762117386, -0.04218132793903351, -0.05144384875893593, -0.010202858597040176, -0.019116707146167755, 0.1437748521566391, -0.02015218511223793, 0.06195845454931259, 0.040306903421878815, 0.10937908291816711, -0.013278895989060402, -0.08803990483283997, 0.08090940862894058, -0.03355388715863228, 0.04897334426641464, 0.041105616837739944, -0.0014631637604907155, -0.03701440617442131, 0.13491767644882202, 0.04792339727282524, -0.020753679797053337, 0.007261946331709623, -0.008541337214410305, 0.027026714757084846, 0.05552612617611885, 0.04825744777917862, 0.020961934700608253, -0.06873499602079391, 0.007458149921149015, -0.059373483061790466, 0.037785694003105164, 0.0003819197590928525, -0.06505689024925232, 0.03973749652504921, -0.06780282407999039, 0.01809515804052353, 0.08599294722080231, 0.031964465975761414, 0.03666117042303085, 0.043062567710876465, 0.019304396584630013, 0.12529553472995758, -0.01966201700270176, -0.003328876569867134, -0.0014418259961530566, 0.05527772754430771, -0.03183964639902115, -5.4335782095904506e-8, 0.04835561662912369, 0.09070149809122086, -0.0738835260272026, 0.01330252829939127, -0.042460642755031586, -0.10167460888624191, 0.07850679755210876, 0.03377087786793709, -0.020520366728305817, 0.015399363823235035, 0.04371136426925659, 0.0236053466796875, -0.02105729840695858, -0.09846684336662292, -0.02153312787413597, -0.050747767090797424, 0.030468005686998367, -0.03976447507739067, 0.009360314346849918, -0.06125148385763168, -0.044516779482364655, -0.05042465403676033, 0.007120037917047739, 0.0077463118359446526, 0.034819550812244415, 0.0648142397403717, 0.06393181532621384, 0.009028302505612373, 0.040081046521663666, 0.04884418472647667, 0.013330155052244663, 0.020131848752498627, 0.009232298471033573, 0.03345540165901184, -0.05321585759520531, 0.08427862823009491, -0.04694334417581558, 0.06732654571533203, 0.03434760496020317, 0.11560959368944168, 0.006474810652434826, 0.018232986330986023, -0.04170827195048332, 0.006249693222343922, 0.07108580321073532, 0.10100111365318298, 0.018698209896683693, 0.06674932688474655, -0.02223140187561512, 0.04561152309179306, -0.03931340575218201, -0.054914213716983795, -0.059897907078266144, 0.051647529006004333, 0.04131009802222252, -0.031070757657289505, -0.06381051987409592, 0.04046645760536194, 0.05890559032559395, 0.07248026132583618, 0.03134477511048317, 0.031084679067134857, -0.014530387707054615, -0.02829817309975624 ]
0.043865
Ext3, or Ext4. When a volume contains a file system, the file system is only resized when a new Pod is using the PersistentVolumeClaim in `ReadWrite` mode. File system expansion is either done when a Pod is starting up or when a Pod is running and the underlying file system supports online expansion. FlexVolumes (deprecated since Kubernetes v1.23) allow resize if the driver is configured with the `RequiresFSResize` capability to `true`. The FlexVolume can be resized on Pod restart. #### Resizing an in-use PersistentVolumeClaim {{< feature-state for\_k8s\_version="v1.24" state="stable" >}} In this case, you don't need to delete and recreate a Pod or deployment that is using an existing PVC. Any in-use PVC automatically becomes available to its Pod as soon as its file system has been expanded. This feature has no effect on PVCs that are not in use by a Pod or deployment. You must create a Pod that uses the PVC before the expansion can complete. Similar to other volume types - FlexVolume volumes can also be expanded when in-use by a Pod. {{< note >}} FlexVolume resize is possible only when the underlying driver supports resize. {{< /note >}} #### Recovering from Failure when Expanding Volumes If a user specifies a new size that is too big to be satisfied by underlying storage system, expansion of PVC will be continuously retried until user or cluster administrator takes some action. This can be undesirable and hence Kubernetes provides following methods of recovering from such failures. {{< tabs name="recovery\_methods" >}} {{% tab name="Manually with Cluster Administrator access" %}} If expanding underlying storage fails, the cluster administrator can manually recover the Persistent Volume Claim (PVC) state and cancel the resize requests. Otherwise, the resize requests are continuously retried by the controller without administrator intervention. 1. Mark the PersistentVolume(PV) that is bound to the PersistentVolumeClaim(PVC) with `Retain` reclaim policy. 2. Delete the PVC. Since PV has `Retain` reclaim policy - we will not lose any data when we recreate the PVC. 3. Delete the `claimRef` entry from PV specs, so as new PVC can bind to it. This should make the PV `Available`. 4. Re-create the PVC with smaller size than PV and set `volumeName` field of the PVC to the name of the PV. This should bind new PVC to existing PV. 5. Don't forget to restore the reclaim policy of the PV. {{% /tab %}} {{% tab name="By requesting expansion to smaller size" %}} If expansion has failed for a PVC, you can retry expansion with a smaller size than the previously requested value. To request a new expansion attempt with a smaller proposed size, edit `.spec.resources` for that PVC and choose a value that is less than the value you previously tried. This is useful if expansion to a higher value did not succeed because of capacity constraint. If that has happened, or you suspect that it might have, you can retry expansion by specifying a size that is within the capacity limits of underlying storage provider. You can monitor status of resize operation by watching `.status.allocatedResourceStatuses` and events on the PVC. Note that, although you can specify a lower amount of storage than what was requested previously, the new value must still be higher than `.status.capacity`. Kubernetes does not support shrinking a PVC to less than its current size. {{% /tab %}} {{% /tabs %}} ## Types of Persistent Volumes PersistentVolume types are implemented as plugins. Kubernetes currently supports the following plugins: \* [`csi`](/docs/concepts/storage/volumes/#csi) - Container Storage Interface (CSI) \* [`fc`](/docs/concepts/storage/volumes/#fc) - Fibre Channel (FC) storage \* [`hostPath`](/docs/concepts/storage/volumes/#hostpath) - HostPath volume (for single node testing only; WILL
null
./vendor/kubernetes/content/en/docs/concepts/storage/persistent-volumes.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/storage/persistent-volumes.md
[ 0.03002157434821129, -0.04141787439584732, 0.036893658339977264, 0.042328670620918274, 0.02199736423790455, -0.008105499669909477, -0.02827007882297039, 0.08448301255702972, 0.04964451491832733, 0.07609942555427551, 0.016512075439095497, 0.0559115931391716, -0.04958935081958771, -0.03131619468331337, -0.03170857951045036, -0.03307544067502022, -0.0247262604534626, 0.08902163803577423, -0.04414639621973038, 0.017954779788851738, 0.03007151372730732, -0.03339096158742905, 0.0069015007466077805, 0.0003624807286541909, 0.03162495791912079, 0.0028821597807109356, -0.06816185265779495, -0.011981809511780739, 0.0044248029589653015, -0.07121855020523071, -0.02569994144141674, 0.0586390420794487, 0.04282160475850105, -0.03319363668560982, 0.1020931601524353, 0.043764032423496246, 0.0005637172143906355, -0.0672340840101242, -0.08368390798568726, -0.06013890355825424, -0.010404490865767002, -0.05084962025284767, -0.08811347186565399, -0.029038939625024796, -0.05736030638217926, 0.0025137602351605892, -0.005063712131232023, -0.029052240774035454, 0.013809849508106709, -0.02080477960407734, 0.052560750395059586, -0.06148965284228325, 0.02126418985426426, 0.11293474584817886, 0.06105406954884529, -0.019433924928307533, -0.03258094936609268, 0.09601065516471863, 0.08741666376590729, 0.01040609460324049, 0.015039756894111633, 0.017470819875597954, 0.059223927557468414, -0.0025443346239626408, -0.010883558541536331, -0.006701249163597822, 0.05617837980389595, -0.020583346486091614, 0.029458438977599144, -0.03911139816045761, 0.07398626953363419, 0.09115155041217804, -0.015636775642633438, 0.035404711961746216, 0.014997784048318863, -0.011642334051430225, -0.0001196043667732738, 0.09777336567640305, 0.010630329139530659, 0.05541714280843735, 0.07061232626438141, 0.045046526938676834, 0.01497016940265894, -0.08193961530923843, -0.04354783520102501, 0.0011202034074813128, -0.0795881375670433, -0.035869501531124115, -0.0033211023546755314, -0.001306229503825307, 0.0035938676446676254, -0.029824495315551758, 0.021950237452983856, -0.059779852628707886, 0.03520743176341057, -0.0898091122508049, -0.045020293444395065, -0.022684982046484947, 0.06803679466247559, 0.001292876317165792, 0.0381297767162323, 0.032977741211652756, -0.025801142677664757, 0.016879361122846603, 0.08664356917142868, -0.09750175476074219, -0.02535756677389145, 0.035669825971126556, -0.031765080988407135, 0.024982595816254616, 0.036477044224739075, -0.01614721119403839, -0.025818536058068275, 0.04174588993191719, 0.05577671155333519, -0.0007205227157101035, -0.05748710408806801, 0.05648375302553177, -0.02871517650783062, 0.029174843803048134, 0.03168380632996559, -0.08092749118804932, -0.011921504512429237, 0.03393743187189102, 0.0004471897555049509, 0.052754174917936325, -0.00409139646217227, 5.633061499320529e-33, -0.03256192430853844, -0.04619951918721199, 0.004760790150612593, 0.05750562250614166, 0.01750934310257435, -0.019514789804816246, 0.04642549157142639, -0.0005643038311973214, -0.10150131583213806, -0.13876771926879883, -0.010998834855854511, 0.06544352322816849, 0.01039174385368824, -0.014651847071945667, 0.026681050658226013, -0.07287155836820602, -0.08473286777734756, 0.08000792562961578, 0.033144984394311905, -0.05987776443362236, 0.04506949335336685, 0.005611020140349865, 0.01599813811480999, 0.03501242771744728, 0.009530329145491123, -0.10848626494407654, 0.030300823971629143, -0.07075981795787811, -0.0696631595492363, 0.009843802079558372, -0.10178055614233017, -0.011976438574492931, 0.04008715972304344, 0.011478561908006668, -0.14281749725341797, -0.002901074243709445, -0.05677315220236778, -0.04196736589074135, -0.12443385273218155, 0.0029862106312066317, 0.025710605084896088, -0.01119287870824337, 0.012115204706788063, -0.05129358544945717, -0.0006278885412029922, -0.01177152618765831, 0.06669047474861145, 0.000487110490212217, -0.009585143066942692, 0.02023160085082054, 0.03854632377624512, 0.06671375781297684, -0.003380411770194769, -0.07981191575527191, 0.04626761004328728, -0.03507569804787636, 0.05224783718585968, -0.09475743770599365, -0.0199262835085392, -0.06646575033664703, -0.0073386384174227715, 0.005413336679339409, 0.031209999695420265, 0.022670326754450798, 0.008501879870891571, 0.03186735510826111, -0.004603593144565821, -0.016160033643245697, 0.011436564847826958, -0.019090890884399414, -0.02135602943599224, 0.0037937534507364035, -0.0334697961807251, -0.017845720052719116, -0.012543435208499432, -0.06412390619516373, 0.014768805354833603, -0.0011343794176355004, -0.09770913422107697, 0.0026768273673951626, -0.0549364797770977, 0.019412972033023834, -0.006911908276379108, 0.10991542041301727, -0.002469337545335293, -0.09570593386888504, 0.003112975973635912, -0.018334368243813515, -0.07934408634901047, -0.06354983150959015, 0.058000002056360245, -0.07028600573539734, -0.025893134996294975, 0.026996204629540443, -0.049703583121299744, -5.0985506263482035e-33, 0.10508798807859421, -0.0012917416170239449, -0.03401491791009903, -0.034746624529361725, -0.026812659576535225, 0.050711195915937424, -0.05676195025444031, 0.11254590004682541, -0.049034398049116135, -0.14140672981739044, -0.026284804567694664, -0.0235858503729105, -0.009821496903896332, 0.0044410936534404755, -0.1301175206899643, -0.0296392273157835, -0.10328630357980728, -0.09405296295881271, 0.012138154357671738, 0.042039286345243454, 0.02927960641682148, -0.05679222196340561, 0.10099347680807114, 0.09120980650186539, 0.017387036234140396, -0.04645460098981857, -0.01600578799843788, 0.029702559113502502, -0.031609464436769485, -0.02047579735517502, -0.004520167130976915, -0.11829224973917007, -0.04471338912844658, -0.001836052630096674, 0.05339067056775093, -0.07154055684804916, -0.022936105728149414, -0.008488072082400322, 0.004519423469901085, 0.0337759405374527, 0.005711982026696205, 0.03708984702825546, -0.018088899552822113, -0.06359776109457016, -0.04497114568948746, 0.008097290061414242, 0.11554047465324402, 0.0075536626391112804, 0.0573851615190506, -0.0652380883693695, 0.025709249079227448, 0.027497997507452965, -0.05677177757024765, 0.09008713811635971, -0.003212509909644723, 0.07047682255506516, 0.02107630856335163, 0.0923914983868599, -0.10714508593082428, -0.015001829713582993, 0.04401767626404762, -0.0844855010509491, 0.07052206993103027, -0.04652922973036766, -0.02479492872953415, -0.02883254364132881, 0.08427996188402176, 0.021225906908512115, -0.06123826280236244, 0.01172440592199564, 0.05873522534966469, 0.01687074825167656, 0.023500535637140274, 0.04429108276963234, 0.03785737231373787, -0.09116245061159134, 0.0014174245297908783, -0.07707458734512329, 0.05854722484946251, -0.008812773041427135, -0.06741909682750702, 0.0522233285009861, -0.042639460414648056, 0.04983779415488243, 0.09078697115182877, 0.036027275025844574, 0.05726315826177597, 0.0924200490117073, 0.0636400654911995, 0.11831693351268768, -0.01257401891052723, 0.05177456513047218, 0.02274715155363083, 0.0789036825299263, 0.007165869232267141, -4.8471473945710386e-8, 0.0035118507221341133, 0.09234140813350677, -0.05744342505931854, 0.09302834421396255, 0.01926650106906891, -0.08926929533481598, 0.05494237691164017, 0.03549554944038391, -0.05382036045193672, -0.02974124811589718, 0.029373319819569588, 0.00896534975618124, -0.013203755021095276, -0.016779817640781403, 0.04852466657757759, -0.024723049253225327, 0.007762011140584946, 0.043855488300323486, -0.03278054669499397, -0.07593642175197601, -0.01755484752357006, -0.03598736971616745, -0.012649535201489925, 0.001505033578723669, 0.0431491956114769, 0.05641375854611397, 0.021163787692785263, 0.02985161542892456, 0.036152105778455734, -0.0209074467420578, 0.008686431683599949, 0.032222650945186615, 0.001227474887855351, 0.11021482944488525, -0.006953162606805563, 0.014455756172537804, -0.025739803910255432, 0.10422833263874054, -0.025734378024935722, 0.03247164934873581, -0.03943752497434616, 0.009476630948483944, -0.010124226100742817, 0.0006157444440759718, -0.007242403458803892, -0.0178027655929327, -0.02029774710536003, 0.08298086374998093, -0.06747040897607803, 0.061964575201272964, 0.026392130181193352, -0.006125618703663349, -0.05250909551978111, 0.09023252874612808, 0.06137281656265259, -0.012637200765311718, -0.04500403255224228, 0.05491530895233154, -0.001989078940823674, 0.07314545661211014, 0.015450638718903065, 0.01260303519666195, -0.012409214861690998, 0.016639389097690582 ]
0.101835
current size. {{% /tab %}} {{% /tabs %}} ## Types of Persistent Volumes PersistentVolume types are implemented as plugins. Kubernetes currently supports the following plugins: \* [`csi`](/docs/concepts/storage/volumes/#csi) - Container Storage Interface (CSI) \* [`fc`](/docs/concepts/storage/volumes/#fc) - Fibre Channel (FC) storage \* [`hostPath`](/docs/concepts/storage/volumes/#hostpath) - HostPath volume (for single node testing only; WILL NOT WORK in a multi-node cluster; consider using `local` volume instead) \* [`iscsi`](/docs/concepts/storage/volumes/#iscsi) - iSCSI (SCSI over IP) storage \* [`local`](/docs/concepts/storage/volumes/#local) - local storage devices mounted on nodes. \* [`nfs`](/docs/concepts/storage/volumes/#nfs) - Network File System (NFS) storage The following types of PersistentVolume are deprecated but still available. If you are using these volume types except for `flexVolume`, `cephfs` and `rbd`, please install corresponding CSI drivers. \* [`awsElasticBlockStore`](/docs/concepts/storage/volumes/#awselasticblockstore) - AWS Elastic Block Store (EBS) (\*\*migration on by default\*\* starting v1.23) \* [`azureDisk`](/docs/concepts/storage/volumes/#azuredisk) - Azure Disk (\*\*migration on by default\*\* starting v1.23) \* [`azureFile`](/docs/concepts/storage/volumes/#azurefile) - Azure File (\*\*migration on by default\*\* starting v1.24) \* [`cinder`](/docs/concepts/storage/volumes/#cinder) - Cinder (OpenStack block storage) (\*\*migration on by default\*\* starting v1.21) \* [`flexVolume`](/docs/concepts/storage/volumes/#flexvolume) - FlexVolume (\*\*deprecated\*\* starting v1.23, no migration plan and no plan to remove support) \* [`gcePersistentDisk`](/docs/concepts/storage/volumes/#gcePersistentDisk) - GCE Persistent Disk (\*\*migration on by default\*\* starting v1.23) \* [`portworxVolume`](/docs/concepts/storage/volumes/#portworxvolume) - Portworx volume (\*\*migration on by default\*\* starting v1.31) \* [`vsphereVolume`](/docs/concepts/storage/volumes/#vspherevolume) - vSphere VMDK volume (\*\*migration on by default\*\* starting v1.25) Older versions of Kubernetes also supported the following in-tree PersistentVolume types: \* [`cephfs`](/docs/concepts/storage/volumes/#cephfs) (\*\*not available\*\* starting v1.31) \* `flocker` - Flocker storage. (\*\*not available\*\* starting v1.25) \* `glusterfs` - GlusterFS storage. (\*\*not available\*\* starting v1.26) \* `photonPersistentDisk` - Photon controller persistent disk. (\*\*not available\*\* starting v1.15) \* `quobyte` - Quobyte volume. (\*\*not available\*\* starting v1.25) \* [`rbd`](/docs/concepts/storage/volumes/#rbd) - Rados Block Device (RBD) volume (\*\*not available\*\* starting v1.31) \* `scaleIO` - ScaleIO volume. (\*\*not available\*\* starting v1.21) \* `storageos` - StorageOS volume. (\*\*not available\*\* starting v1.25) ## Persistent Volumes Each PV contains a spec and status, which is the specification and status of the volume. The name of a PersistentVolume object must be a valid [DNS subdomain name](/docs/concepts/overview/working-with-objects/names#dns-subdomain-names). ```yaml apiVersion: v1 kind: PersistentVolume metadata: name: pv0003 spec: capacity: storage: 5Gi volumeMode: Filesystem accessModes: - ReadWriteOnce persistentVolumeReclaimPolicy: Recycle storageClassName: slow mountOptions: - hard - nfsvers=4.1 nfs: path: /tmp server: 172.17.0.2 ``` {{< note >}} Helper programs relating to the volume type may be required for consumption of a PersistentVolume within a cluster. In this example, the PersistentVolume is of type NFS and the helper program /sbin/mount.nfs is required to support the mounting of NFS filesystems. {{< /note >}} ### Capacity Generally, a PV will have a specific storage capacity. This is set using the PV's `capacity` attribute which is a {{< glossary\_tooltip term\_id="quantity" >}} value. Currently, storage size is the only resource that can be set or requested. Future attributes may include IOPS, throughput, etc. ### Volume Mode {{< feature-state for\_k8s\_version="v1.18" state="stable" >}} Kubernetes supports two `volumeModes` of PersistentVolumes: `Filesystem` and `Block`. `volumeMode` is an optional API parameter. `Filesystem` is the default mode used when `volumeMode` parameter is omitted. A volume with `volumeMode: Filesystem` is \*mounted\* into Pods into a directory. If the volume is backed by a block device and the device is empty, Kubernetes creates a filesystem on the device before mounting it for the first time. You can set the value of `volumeMode` to `Block` to use a volume as a raw block device. Such volume is presented into a Pod as a block device, without any filesystem on it. This mode is useful to provide a Pod the fastest possible way to access a volume, without any filesystem layer between the Pod and the volume. On the other hand, the application running in the
null
./vendor/kubernetes/content/en/docs/concepts/storage/persistent-volumes.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/storage/persistent-volumes.md
[ 0.04293772950768471, -0.00217609154060483, -0.012401055544614792, 0.008556047454476357, 0.006185986567288637, -0.009412290528416634, -0.04941505938768387, 0.01118744071573019, 0.04161796346306801, 0.03464064374566078, -0.01542050950229168, -0.028027338907122612, 0.001751838019117713, 0.04009731113910675, -0.07568447291851044, -0.04272398352622986, 0.018805617466568947, 0.02120898850262165, -0.029598500579595566, 0.017774207517504692, -0.011640621349215508, 0.010852126404643059, 0.05125977471470833, -0.06450020521879196, -0.05345349386334419, -0.027020087465643883, -0.05327776446938515, -0.03987928107380867, 0.03012782707810402, -0.03866944462060928, 0.015248771756887436, 0.04271840304136276, -0.0301055870950222, 0.03279125690460205, 0.07163923233747482, 0.03298932686448097, 0.013157554902136326, -0.06819469481706619, -0.058393966406583786, -0.0041051460430026054, 0.07360994815826416, -0.026783253997564316, -0.039770953357219696, -0.010360467247664928, -0.015769368037581444, -0.035933032631874084, -0.06514367461204529, -0.00954166054725647, 0.00011329940025461838, -0.04762696102261543, -0.025226537138223648, -0.06551768630743027, 0.018604474142193794, 0.11859360337257385, 0.039840664714574814, 0.009271647781133652, -0.05718196928501129, 0.04017746075987816, 0.08670396357774734, 0.05529915168881416, 0.07347778230905533, -0.022662827745079994, 0.10527877509593964, -0.03096782974898815, -0.01650891825556755, 0.09155775606632233, 0.008685733191668987, 0.0627950057387352, -0.0020450763404369354, 0.005402144510298967, 0.06027737259864807, 0.08928945660591125, -0.06984947621822357, 0.046161215752363205, 0.051343709230422974, 0.00071311229839921, -0.003416660474613309, 0.07690388709306717, -0.021774325519800186, -0.008604100905358791, -0.04510265588760376, -0.005851234309375286, 0.007974711246788502, -0.013019915670156479, -0.0708380863070488, -0.004396114964038134, -0.04958861693739891, -0.038509391248226166, 0.0014459750382229686, -0.05609231814742088, -0.00043191565782763064, -0.011230623349547386, -0.015722600743174553, -0.07826829701662064, 0.007595080882310867, -0.05486677214503288, -0.0646093413233757, 0.0020095454528927803, 0.08026080578565598, -0.023698335513472557, 0.03222209960222244, 0.023659246042370796, 0.04160565882921219, 0.0385948121547699, -0.020037706941366196, -0.04138995334506035, 0.02571686916053295, 0.019481075927615166, 0.027545053511857986, 0.05473286658525467, 0.01591372676193714, 0.0556207038462162, -0.08476128429174423, 0.02558688074350357, 0.030986253172159195, 0.024725640192627907, 0.02291988953948021, 0.006518082693219185, 0.03988011181354523, 0.061895474791526794, 0.03978057950735092, -0.09526018053293228, -0.05555925518274307, 0.022843068465590477, -0.0003360991831868887, 0.0641883909702301, -0.020968113094568253, 2.9559004823006243e-33, 0.010121064260601997, -0.035375457257032394, -0.0023021288216114044, 0.0539151094853878, 0.051956530660390854, -0.06999406963586807, 0.03246450424194336, -0.0058051845990121365, -0.09201499819755554, -0.0646967887878418, -0.0900435596704483, 0.09009405225515366, -0.03137248754501343, -0.05527590960264206, 0.0350753515958786, -0.04453296214342117, -0.006146504543721676, 0.03810293972492218, 0.07832030206918716, -0.08088009804487228, 0.04269140958786011, 0.021811364218592644, 0.008986278437077999, -0.03917840123176575, 0.059704408049583435, -0.11031752824783325, 0.0240288358181715, -0.04077743738889694, 0.016017286106944084, -0.007854659110307693, -0.04843745008111, -0.02047705464065075, 0.05784537270665169, -0.0020941186230629683, -0.10907138139009476, 0.03821968287229538, -0.09191442281007767, 0.04141804203391075, -0.12123732268810272, -0.027771318331360817, 0.00016016041627153754, -0.001904650591313839, 0.012228067964315414, -0.03735439106822014, -0.026012739166617393, -0.0463935025036335, -0.01712329126894474, -0.048605725169181824, 0.033249735832214355, 0.015553377568721771, 0.0054427748546004295, -0.0037853720132261515, 0.04044906049966812, 0.019656574353575706, 0.0815017819404602, 0.03599640727043152, 0.04850354045629501, -0.0584651455283165, -0.0025957359466701746, 0.06781789660453796, -0.0981319397687912, 0.0006296741776168346, -0.004388928413391113, 0.05965117737650871, -0.05620979145169258, 0.044087763875722885, -0.007142986636608839, -0.01738337241113186, 0.047583963721990585, -0.049148283898830414, -0.027150925248861313, 0.059558358043432236, -0.029310176149010658, 0.008445177227258682, -0.04463236406445503, -0.08222456276416779, -0.07631906867027283, -0.00949936918914318, -0.07647469639778137, 0.03573683649301529, -0.001897853217087686, -0.03421482816338539, -0.0568310022354126, 0.11580459028482437, 0.029061226174235344, -0.035949841141700745, 0.07386832684278488, -0.012775938026607037, -0.04596906155347824, -0.025204285979270935, 0.06805182993412018, 0.0062598478980362415, 0.06779874116182327, -0.08411438018083572, -0.05608973279595375, -2.051517373106189e-33, 0.05357515439391136, 0.022421803325414658, -0.01001741923391819, 0.04418459162116051, -0.03323843330144882, 0.03448612987995148, 0.029322458431124687, 0.03874915465712547, -0.012521627359092236, -0.07262132316827774, -0.03310050442814827, -0.047504622489213943, 0.016082216054201126, -0.03763842582702637, -0.07861899584531784, 0.010891852900385857, -0.03436533361673355, -0.0847640261054039, 0.036751944571733475, 0.01975589245557785, -0.006953259464353323, -0.03037332184612751, 0.07138048112392426, 0.024438759312033653, -0.033977679908275604, 0.023923609405755997, 0.08470253646373749, 0.049892060458660126, -0.10326498746871948, -0.047665808349847794, -0.034729648381471634, -0.06584352254867554, -0.03592618927359581, 0.012609761208295822, 0.0853356122970581, -0.05215020477771759, 0.010935047641396523, 0.030391020700335503, -0.014546805992722511, -0.04381472244858742, -0.02763647586107254, 0.03156830742955208, -0.03689996153116226, 0.0015529249794781208, -0.08956710249185562, 0.06570501625537872, 0.10639925301074982, 0.004246313124895096, -0.013859981670975685, -0.02203069068491459, -0.02660752460360527, -0.08918677270412445, -0.07403469830751419, 0.07926122844219208, 0.014353431761264801, 0.06555437296628952, -0.012347026728093624, 0.1358357071876526, -0.10687825083732605, -0.021740639582276344, 0.059657156467437744, -0.14855486154556274, 0.031789686530828476, 0.006270740181207657, -0.045243486762046814, -0.07042041420936584, -0.010315715335309505, -0.002183119999244809, -0.07084403932094574, 0.06825610995292664, 0.0030676808673888445, 0.02000744640827179, 0.03568214550614357, 0.0625293105840683, -0.0017277146689593792, -0.05158171430230141, 0.02044086903333664, 0.0027654871810227633, 0.07711711525917053, 0.03636618331074715, -0.06389687210321426, 0.08354352414608002, -0.08365444093942642, -0.007291714660823345, 0.09661456197500229, 0.03695385158061981, 0.10017026215791702, 0.13346794247627258, 0.04826921969652176, 0.08264658600091934, -0.03987360745668411, 0.07871180027723312, -0.03889134153723717, 0.032281409949064255, -0.023840583860874176, -4.897489347399642e-8, -0.007785741239786148, 0.008584409020841122, -0.10873251408338547, 0.05588698014616966, -0.053213898092508316, -0.08554551750421524, 0.11297903954982758, 0.0322282500565052, -0.05780711770057678, 0.036804284900426865, 0.05414407700300217, 0.04959990456700325, -0.05899747461080551, -0.0835883840918541, -0.028141360729932785, -0.02770734205842018, -0.012948326766490936, 0.0037299341056495905, -0.011318979784846306, -0.01169497799128294, 0.0071137892082333565, 0.023260055109858513, 0.01198018528521061, 0.06954629719257355, 0.04024273902177811, 0.04197893664240837, 0.037470653653144836, -0.006040503736585379, 0.014651034027338028, -0.04988323524594307, 0.03457377478480339, -0.026372378692030907, -0.038171835243701935, 0.07157168537378311, -0.023695314303040504, 0.018576405942440033, -0.018664896488189697, 0.13285484910011292, 0.03789574280381203, 0.08070966601371765, 0.0031565178651362658, -0.06657025218009949, -0.06752651184797287, -0.00010862449562409893, 0.03242369368672371, 0.04945185035467148, -0.06035652384161949, 0.15786220133304596, -0.04083167389035225, 0.020199652761220932, -0.03195291757583618, -0.043634988367557526, -0.01765243336558342, 0.08849333226680756, 0.019324377179145813, -0.0179399773478508, -0.025291692465543747, 0.05960579961538315, 0.023203762248158455, 0.0908447876572609, 0.04254281520843506, 0.059709060937166214, -0.020848533138632774, 0.02181832864880562 ]
0.15837
volume is presented into a Pod as a block device, without any filesystem on it. This mode is useful to provide a Pod the fastest possible way to access a volume, without any filesystem layer between the Pod and the volume. On the other hand, the application running in the Pod must know how to handle a raw block device. See [Raw Block Volume Support](#raw-block-volume-support) for an example on how to use a volume with `volumeMode: Block` in a Pod. ### Access Modes A PersistentVolume can be mounted on a host in any way supported by the resource provider. As shown in the table below, providers will have different capabilities and each PV's access modes are set to the specific modes supported by that particular volume. For example, NFS can support multiple read/write clients, but a specific NFS PV might be exported on the server as read-only. Each PV gets its own set of access modes describing that specific PV's capabilities. The access modes are: `ReadWriteOnce` : the volume can be mounted as read-write by a single node. ReadWriteOnce access mode still can allow multiple pods to access (read from or write to) that volume when the pods are running on the same node. For single pod access, please see ReadWriteOncePod. `ReadOnlyMany` : the volume can be mounted as read-only by many nodes. `ReadWriteMany` : the volume can be mounted as read-write by many nodes. `ReadWriteOncePod` : {{< feature-state for\_k8s\_version="v1.29" state="stable" >}} the volume can be mounted as read-write by a single Pod. Use ReadWriteOncePod access mode if you want to ensure that only one pod across the whole cluster can read that PVC or write to it. {{< note >}} The `ReadWriteOncePod` access mode is only supported for {{< glossary\_tooltip text="CSI" term\_id="csi" >}} volumes and Kubernetes version 1.22+. To use this feature you will need to update the following [CSI sidecars](https://kubernetes-csi.github.io/docs/sidecar-containers.html) to these versions or greater: \* [csi-provisioner:v3.0.0+](https://github.com/kubernetes-csi/external-provisioner/releases/tag/v3.0.0) \* [csi-attacher:v3.3.0+](https://github.com/kubernetes-csi/external-attacher/releases/tag/v3.3.0) \* [csi-resizer:v1.3.0+](https://github.com/kubernetes-csi/external-resizer/releases/tag/v1.3.0) {{< /note >}} In the CLI, the access modes are abbreviated to: \* RWO - ReadWriteOnce \* ROX - ReadOnlyMany \* RWX - ReadWriteMany \* RWOP - ReadWriteOncePod {{< note >}} Kubernetes uses volume access modes to match PersistentVolumeClaims and PersistentVolumes. In some cases, the volume access modes also constrain where the PersistentVolume can be mounted. Volume access modes do \*\*not\*\* enforce write protection once the storage has been mounted. Even if the access modes are specified as ReadWriteOnce, ReadOnlyMany, or ReadWriteMany, they don't set any constraints on the volume. For example, even if a PersistentVolume is created as ReadOnlyMany, it is no guarantee that it will be read-only. If the access modes are specified as ReadWriteOncePod, the volume is constrained and can be mounted on only a single Pod. {{< /note >}} > \_\_Important!\_\_ A volume can only be mounted using one access mode at a time, > even if it supports many. | Volume Plugin | ReadWriteOnce | ReadOnlyMany | ReadWriteMany | ReadWriteOncePod | | :--- | :---: | :---: | :---: | - | | AzureFile | ✓ | ✓ | ✓ | - | | CephFS | ✓ | ✓ | ✓ | - | | CSI | depends on the driver | depends on the driver | depends on the driver | depends on the driver | | FC | ✓ | ✓ | - | - | | FlexVolume | ✓ | ✓ | depends on the driver | - | | HostPath | ✓ | - | - | - | | iSCSI | ✓ | ✓ | - | - | | NFS | ✓ | ✓ | ✓
null
./vendor/kubernetes/content/en/docs/concepts/storage/persistent-volumes.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/storage/persistent-volumes.md
[ 0.009065357968211174, -0.0122861722484231, 0.012820366770029068, 0.02714850939810276, 0.022814041003584862, -0.032134123146533966, -0.040239185094833374, 0.026932403445243835, 0.06579332798719406, 0.014623288996517658, -0.04019763693213463, 0.06803757697343826, 0.015614627860486507, -0.020931674167513847, -0.017394928261637688, -0.07400282472372055, 0.054182592779397964, 0.08202220499515533, -0.024448981508612633, 0.023115374147892, 0.0826248824596405, 0.058238591998815536, -0.001372292055748403, -0.031355999410152435, 0.006515537854284048, 0.01784091256558895, -0.08679626882076263, -0.03626067563891411, 0.03336816653609276, -0.05495762452483177, -0.02869243547320366, -0.011229552328586578, -0.008815794251859188, 0.026895832270383835, -0.009167488664388657, 0.025250963866710663, 0.011098628863692284, -0.081398144364357, -0.10361331701278687, -0.02463456243276596, 0.014435047283768654, -0.07276362180709839, -0.07448165118694305, 0.023628300055861473, -0.04607795178890228, 0.010722334496676922, -0.006476421840488911, -0.023840472102165222, -0.009565244428813457, 0.004518367350101471, -0.022157154977321625, -0.07762280851602554, 0.0672556683421135, 0.13423429429531097, 0.05725669860839844, -0.013595836237072945, -0.00510827312245965, 0.041197746992111206, 0.04723285138607025, 0.008142066188156605, 0.009827028028666973, -0.008128305897116661, 0.03303387016057968, -0.0031534929294139147, 0.06061508506536484, -0.018659699708223343, 0.03540695086121559, 0.0441884770989418, -0.016769442707300186, -0.10858737677335739, 0.10317433625459671, 0.08508361876010895, -0.0069444021210074425, -0.03384208306670189, 0.0057887183502316475, -0.01818164251744747, -0.041203584522008896, 0.08685150742530823, 0.021640727296471596, -0.006398273166269064, 0.045345719903707504, 0.13785241544246674, -0.006606727838516235, -0.05435241013765335, -0.07938534766435623, -0.0027911781799048185, -0.03712627664208412, 0.06343448162078857, -0.01395752839744091, 0.007268188986927271, 0.01801983080804348, 0.024518156424164772, 0.003250323934480548, -0.00912997592240572, 0.03982670232653618, -0.1047806441783905, -0.01589481718838215, -0.007562647107988596, 0.054397694766521454, -0.03391275554895401, 0.05383535847067833, 0.030049143359065056, -0.08766046166419983, -0.003975324332714081, 0.04896855354309082, -0.10148931294679642, 0.006984057370573282, 0.032250095158815384, -0.013159816153347492, 0.10003775358200073, -0.0338817723095417, 0.01706305332481861, -0.03516494110226631, 0.031123431399464607, -0.004955252632498741, 0.0010550582082942128, -0.04191165789961815, 0.08910618722438812, -0.0020263988990336657, 0.01085705030709505, -0.012357129715383053, -0.09009993821382523, 0.03208169713616371, -0.02292378433048725, 0.02163391187787056, 0.028850149363279343, -0.028752926737070084, 3.73088021423975e-33, -0.0001549801672808826, -0.09344310313463211, -0.01692630723118782, -0.01500735618174076, 0.002563073765486479, -0.0005943647702224553, 0.040173571556806564, -0.003439315129071474, -0.048655346035957336, -0.11820617318153381, 0.00606999546289444, 0.09721410274505615, -0.004874386824667454, 0.04165595769882202, 0.03357116878032684, -0.01900796964764595, -0.012136663310229778, 0.028391283005475998, 0.07473020255565643, -0.0037626922130584717, -0.007972355000674725, 0.03692413121461868, -0.005561400204896927, 0.0465974435210228, -0.012098417617380619, -0.03600509092211723, 0.008822061121463776, -0.11769132316112518, -0.043725430965423584, 0.03443452715873718, -0.0937417671084404, -0.00543693732470274, 0.06373312324285507, 0.013734236359596252, -0.053377531468868256, -0.002442746888846159, -0.02271903119981289, -0.05177921801805496, -0.08386092633008957, -0.09150457382202148, -0.005966312251985073, -0.04590107500553131, 0.010475284419953823, -0.0025212890468537807, -0.10363264381885529, -0.009811559692025185, -0.012086870148777962, -0.02605823613703251, -0.09856101125478745, 0.07782754302024841, 0.022672846913337708, 0.04238166660070419, -0.015851184725761414, -0.08492450416088104, 0.1083776131272316, -0.021638983860611916, -0.02017596922814846, -0.026566771790385246, -0.03472891077399254, 0.0066858865320682526, -0.015598218888044357, 0.0542728565633297, 0.05417546629905701, 0.030771838501095772, -0.08555827289819717, 0.07874319702386856, -0.053291141986846924, -0.08916211128234863, 0.06082010641694069, -0.0030107740312814713, -0.02603045105934143, 0.03242342546582222, -0.06022980809211731, -0.02000780589878559, -0.0830545499920845, -0.025441082194447517, -0.01592918299138546, 0.0049660783261060715, 0.005870313849300146, 0.013390167616307735, -0.029585709795355797, 0.047964468598365784, -0.05868837982416153, 0.07826375961303711, -0.08575843274593353, 0.010459941811859608, 0.02376735955476761, -0.004420439712703228, -0.04876996949315071, -0.06500522792339325, 0.051721155643463135, -0.06365446001291275, 0.014178749173879623, -0.07828778773546219, -0.0014639953151345253, -3.9597515357387415e-33, 0.05012286826968193, -0.009414966218173504, -0.04882274195551872, -0.013902580365538597, -0.0180251132696867, 0.01067865826189518, -0.07862989604473114, -0.011048343032598495, -0.009351848624646664, -0.06665951013565063, -0.06188831478357315, -0.009649919345974922, -0.03159148618578911, 0.02132260426878929, -0.054913897067308426, -0.033499471843242645, -0.03585110232234001, -0.09295427799224854, 0.025076115503907204, 0.03996552154421806, -0.07448745518922806, 0.02110268734395504, 0.0927128940820694, 0.09269798547029495, -0.027695534750819206, -0.001697197905741632, -0.054331518709659576, 0.00732638081535697, -0.04154857620596886, -0.08614066988229752, 0.038492776453495026, -0.09539735317230225, -0.013546372763812542, -0.06713619828224182, 0.02502344734966755, 0.008395121432840824, -0.023572994396090508, 0.04633447155356407, -0.07355450838804245, -0.049343764781951904, 0.04364710673689842, 0.011155945248901844, 0.017085185274481773, -0.06620295345783234, -0.08912637829780579, 0.03982173278927803, 0.04841349273920059, -0.005468165967613459, 0.0014945047441869974, -0.049664758145809174, 0.02755289524793625, -0.014923221431672573, 0.021730931475758553, 0.09597605466842651, 0.03673717752099037, 0.024810653179883957, -0.016926169395446777, 0.09151796996593475, -0.025372780859470367, -0.017363179475069046, 0.1324043571949005, -0.049702443182468414, -0.023795221000909805, 0.050270210951566696, -0.09074893593788147, -0.07966426014900208, 0.061898332089185715, -0.03076384961605072, -0.026563838124275208, 0.0695822536945343, 0.006274129264056683, -0.04036203399300575, 0.12593010067939758, 0.0347246378660202, 0.026912864297628403, 0.005149570293724537, -0.050753504037857056, -0.08022007346153259, -0.05985212326049805, 0.043432172387838364, -0.1010667011141777, 0.08564450591802597, -0.03373603895306587, 0.05792250484228134, 0.07991424947977066, 0.023354215547442436, 0.07587920129299164, -0.007632923312485218, 0.056884147226810455, 0.039387814700603485, 0.007961860857903957, 0.038180720061063766, -0.09863974153995514, 0.0965980589389801, -0.017737681046128273, -4.757520244424995e-8, 0.08641950786113739, -0.013514787890017033, -0.026513662189245224, -0.00024541051243431866, -0.034984298050403595, -0.0816815048456192, 0.05125686153769493, 0.0025065129157155752, 0.02630816586315632, 0.1285938024520874, 0.06088145449757576, -0.058436039835214615, -0.059493761509656906, -0.0926370695233345, 0.028645742684602737, 0.10570207238197327, 0.06799425929784775, 0.023076040670275688, -0.016643723472952843, -0.03502232953906059, -0.007535741664469242, -0.029993167147040367, -0.0637645348906517, 0.04382700100541115, 0.05343826115131378, 0.07109902799129486, 0.07802272588014603, -0.05224967375397682, 0.04427098482847214, 0.024734849110245705, 0.015014528296887875, 0.01627296768128872, 0.0086979316547513, 0.0648074671626091, -0.009202372282743454, 0.05645931884646416, -0.0019115053582936525, 0.04692934826016426, 0.021453503519296646, 0.06423410773277283, -0.016473250463604927, -0.076055608689785, 0.04750410094857216, 0.023141706362366676, -0.004680742975324392, 0.03176313266158104, -0.02451561950147152, 0.0827045738697052, -0.07758267968893051, 0.08098248392343521, -0.02954464592039585, -0.006511541083455086, -0.001197360921651125, 0.07847543805837631, 0.06451395153999329, 0.03847292438149452, -0.005314812064170837, 0.014875280670821667, 0.051853980869054794, 0.07185882329940796, 0.0437944196164608, 0.035277076065540314, 0.04764702171087265, 0.04220578446984291 ]
0.16746
✓ | - | - | | FlexVolume | ✓ | ✓ | depends on the driver | - | | HostPath | ✓ | - | - | - | | iSCSI | ✓ | ✓ | - | - | | NFS | ✓ | ✓ | ✓ | - | | RBD | ✓ | ✓ | - | - | | VsphereVolume | ✓ | - | - (works when Pods are collocated) | - | | PortworxVolume | ✓ | - | ✓ | - | - | ### Class A PV can have a class, which is specified by setting the `storageClassName` attribute to the name of a [StorageClass](/docs/concepts/storage/storage-classes/). A PV of a particular class can only be bound to PVCs requesting that class. A PV with no `storageClassName` has no class and can only be bound to PVCs that request no particular class. In the past, the annotation `volume.beta.kubernetes.io/storage-class` was used instead of the `storageClassName` attribute. This annotation is still working; however, it will become fully deprecated in a future Kubernetes release. ### Reclaim Policy Current reclaim policies are: \* Retain -- manual reclamation \* Recycle -- basic scrub (`rm -rf /thevolume/\*`) \* Delete -- delete the volume For Kubernetes {{< skew currentVersion >}}, only `nfs` and `hostPath` volume types support recycling. ### Mount Options A Kubernetes administrator can specify additional mount options for when a Persistent Volume is mounted on a node. {{< note >}} Not all Persistent Volume types support mount options. {{< /note >}} The following volume types support mount options: \* `csi` (including CSI migrated volume types) \* `iscsi` \* `nfs` Mount options are not validated. If a mount option is invalid, the mount fails. In the past, the annotation `volume.beta.kubernetes.io/mount-options` was used instead of the `mountOptions` attribute. This annotation is still working; however, it will become fully deprecated in a future Kubernetes release. ### Node Affinity {{< note >}} For most volume types, you do not need to set this field. You need to explicitly set this for [local](/docs/concepts/storage/volumes/#local) volumes. {{< /note >}} A PV can specify node affinity to define constraints that limit what nodes this volume can be accessed from. Pods that use a PV will only be scheduled to nodes that are selected by the node affinity. To specify node affinity, set `nodeAffinity` in the `.spec` of a PV. The [PersistentVolume](/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-v1/#PersistentVolumeSpec) API reference has more details on this field. #### Updates to node affinity {{< feature-state feature\_gate\_name="MutablePVNodeAffinity" >}} If the `MutablePVNodeAffinity` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/) is enabled in your cluster, the `.spec.nodeAffinity` field of a PersistentVolume is mutable. This allows cluster administrators or external storage controller to update the node affinity of a PersistentVolume when the data is migrated, without interrupting the running pods. When updating the node affinity, you should ensure that the new node affinity still matches the nodes where the volume is currently in use. For the pods violating the new affinity, if the pod is already running, it may continue to run. But Kubernetes does not support this configuration. You should terminate the violating pods soon. Due to in memory caching, the pods created after the update may still be scheduled according to the old node affinity for a short period of time. To use this feature, you should enable the `MutablePVNodeAffinity` feature gate on the following components: - `kube-apiserver` - `kubelet` ### Phase A PersistentVolume will be in one of the following phases: `Available` : a free resource that is not yet bound to a claim `Bound` : the volume is bound to a claim `Released` : the claim has been deleted,
null
./vendor/kubernetes/content/en/docs/concepts/storage/persistent-volumes.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/storage/persistent-volumes.md
[ -0.04244323447346687, 0.018631204962730408, 0.012553228996694088, 0.023145904764533043, 0.030029157176613808, -0.00634338241070509, -0.018236419185996056, 0.011948703788220882, 0.04503631219267845, -0.036219291388988495, 0.017642229795455933, -0.007012306246906519, 0.00797506794333458, 0.028351301327347755, -0.018612535670399666, -0.01082600373774767, 0.034277740865945816, -0.003091117599979043, -0.030400816351175308, 0.11721678823232651, 0.05943062901496887, 0.028897028416395187, 0.02901017852127552, -0.036082375794649124, -0.04317507520318031, -0.038351792842149734, -0.02483321726322174, -0.01863427646458149, 0.05500086769461632, -0.05374985933303833, -0.054932259023189545, 0.08569560199975967, -0.011602244339883327, 0.04199685528874397, 0.09527479857206345, 0.03802097588777542, 0.04240405932068825, -0.008765839971601963, -0.12431123107671738, -0.0022192494943737984, 0.009777005761861801, -0.0874364897608757, -0.029380053281784058, -0.006513414438813925, -0.05156766250729561, -0.028336714953184128, -0.007940124720335007, -0.12004398554563522, -0.007404109463095665, -0.05178871005773544, -0.0006043548928573728, -0.09513510018587112, 0.019846675917506218, 0.11536260694265366, -0.013494070619344711, 0.040881361812353134, 0.006429718807339668, 0.10380534082651138, 0.07919354736804962, 0.04691483452916145, 0.026408938691020012, -0.04455854371190071, 0.07487834244966507, -0.028386464342474937, -0.08897567540407181, 0.022481538355350494, 0.043455131351947784, 0.015479519963264465, -0.05158042535185814, -0.005956305656582117, 0.04853931441903114, 0.08698195219039917, -0.009465781971812248, 0.018788203597068787, 0.0357758067548275, 0.05306701362133026, 0.004815949127078056, 0.10386774688959122, 0.05181793123483658, -0.10954073071479797, -0.023722128942608833, 0.01823290064930916, 0.009818654507398605, -0.03930196166038513, -0.007266407832503319, 0.045734044164419174, -0.08736628293991089, -0.048466987907886505, -0.01617400534451008, -0.0026378189213573933, -0.0646863654255867, -0.057990819215774536, 0.01477191224694252, -0.031763140112161636, 0.01982041820883751, -0.028942666947841644, -0.050991084426641464, -0.01333675067871809, 0.039628464728593826, -0.019173774868249893, -0.04977572336792946, 0.0630820244550705, -0.056634046137332916, -0.018020812422037125, 0.015766451135277748, -0.06010586768388748, -0.02740669809281826, 0.0065857539884746075, -0.05255251005291939, 0.012126118876039982, 0.01299372874200344, 0.05846235156059265, -0.030665384605526924, -0.006516079418361187, -0.01131416391581297, 0.0737464651465416, -0.05110878497362137, 0.020863067358732224, 0.00017137432587333024, -0.01607487164437771, -0.012895248830318451, -0.12873704731464386, -0.0013225082075223327, -0.00773191824555397, -0.010319707915186882, 0.03694883733987808, -0.010254492983222008, 9.718190160492022e-34, 0.04959695786237717, -0.06759302318096161, -0.048159804195165634, 0.05094367638230324, -0.004895200952887535, -0.018342340365052223, 0.06181730702519417, 0.006199434865266085, -0.046521954238414764, -0.09774889796972275, -0.02127419225871563, 0.06551852822303772, -0.023906391113996506, -0.026400698348879814, 0.05747273191809654, 0.006535629276186228, -0.06217372044920921, 0.027983836829662323, -0.003358178772032261, -0.06811471283435822, 0.04206208512187004, 0.06458554416894913, 0.022443123161792755, -0.047552209347486496, 0.052975066006183624, 0.021814100444316864, 0.024323580786585808, -0.09412235021591187, -0.003083934774622321, 0.043109528720378876, -0.04723712429404259, -0.01179591566324234, 0.07643024623394012, 0.07174596935510635, -0.057521261274814606, 0.022368358448147774, -0.048257723450660706, 0.02995498850941658, -0.16497349739074707, -0.0808512419462204, -0.02530510351061821, 0.015959475189447403, -0.046628743410110474, -0.02193552814424038, -0.04795975983142853, -0.03282277658581734, 0.03251590579748154, -0.05172887071967125, 0.027641475200653076, 0.012523088604211807, -0.04172247275710106, 0.042976751923561096, -0.043410949409008026, -0.05723913013935089, 0.08415926247835159, -0.01942303217947483, 0.06296391785144806, 0.037990957498550415, -0.07587174326181412, -0.05229779705405235, -0.009522821754217148, 0.03894141688942909, 0.04527472332119942, 0.014418378472328186, -0.032799020409584045, 0.06380998343229294, -0.015750274062156677, -0.08909393846988678, 0.03044949844479561, -0.08425131440162659, 0.043432168662548065, 0.02287062257528305, -0.09890878200531006, -0.002905560191720724, 0.020266028121113777, -0.06294842064380646, -0.0173499658703804, -0.011123492382466793, -0.04436739161610603, -0.024928873404860497, -0.02605925314128399, -0.05114235356450081, -0.06187833845615387, 0.09375815838575363, -0.06285358220338821, -0.018715381622314453, 0.07544027268886566, 0.013671815395355225, -0.025461498647928238, -0.06590536236763, 0.045121196657419205, -0.06445395201444626, -0.028308918699622154, -0.04536852240562439, -0.09042726457118988, -3.581458719202913e-33, 0.08018863201141357, 0.062139615416526794, -0.06868907809257507, 0.003216182580217719, -0.0013882041675969958, 0.03239841014146805, -0.016211215406656265, 0.02784751169383526, -0.0488368384540081, -0.05563720688223839, -0.01552245207130909, -0.005562716629356146, -0.05102209746837616, 0.01583966612815857, -0.07543683052062988, 0.03162262588739395, -0.06030437350273132, -0.11539022624492645, 0.003845581552013755, 0.03944602608680725, -0.02218925766646862, 0.05560024082660675, 0.0625663697719574, 0.11502095311880112, -0.042928967624902725, -0.008603710681200027, 0.022926662117242813, 0.036253370344638824, -0.044653695076704025, -0.06044987961649895, 0.0290887039154768, -0.04151533916592598, -0.06417332589626312, -0.015912912786006927, 0.012411114759743214, -0.052127182483673096, 0.019700374454259872, -0.013114158995449543, -0.0627618208527565, 0.011095331981778145, 0.008283532224595547, -0.03240087628364563, -0.08338215202093124, -0.007228249218314886, -0.10120553523302078, -0.021273477002978325, 0.09398435801267624, -0.020752057433128357, 0.061134710907936096, -0.04697324335575104, 0.010631436482071877, -0.0902222990989685, 0.001081662718206644, 0.10780897736549377, 0.0077999671921133995, 0.05482020601630211, 0.03130403161048889, 0.06129026785492897, -0.10630596429109573, 0.008375026285648346, 0.07320108264684677, -0.036328915506601334, 0.0077297268435359, 0.018695423379540443, -0.0675593689084053, 0.001033144653774798, 0.01931273564696312, 0.004746491089463234, -0.03987042233347893, 0.0026401628274470568, 0.07528486847877502, 0.010029962286353111, 0.08136245608329773, 0.05140611529350281, -0.022065432742238045, -0.04071033373475075, 0.014746271073818207, -0.02964584343135357, 0.051411308348178864, 0.0033748738933354616, -0.13628165423870087, 0.04860344156622887, -0.050601620227098465, 0.030290309339761734, 0.017412807792425156, -0.032695695757865906, 0.10427184402942657, 0.07183495908975601, 0.05174354836344719, 0.025181157514452934, 0.0010580011876299977, 0.05429064854979515, -0.06666120141744614, 0.08723492175340652, 0.028985342010855675, -5.3508426134385445e-8, 0.01149924099445343, 0.001395371975377202, -0.06488214433193207, 0.04774805158376694, -0.02189990133047104, -0.11730337142944336, 0.077590212225914, 0.07502355426549911, -0.041539642959833145, 0.06911778450012207, 0.01852959580719471, 0.03994365781545639, -0.005287617910653353, -0.06938012689352036, 0.006874099839478731, 0.040362823754549026, 0.039673417806625366, 0.0739077776670456, -0.04069022089242935, -0.02494780160486698, 0.00013095379108563066, -0.08631636947393417, 0.006611509248614311, 0.01672494411468506, 0.013161048293113708, 0.018324630334973335, 0.04674762859940529, -0.03701038286089897, 0.09611524641513824, -0.02681490033864975, -0.009161210618913174, 0.057106759399175644, -0.030046924948692322, 0.024245182052254677, -0.04662322252988815, 0.09180232882499695, 0.013396536000072956, 0.052294135093688965, 0.09277481585741043, 0.11944108456373215, -0.051573220640420914, -0.05663987994194031, -0.07379418611526489, 0.022876257076859474, 0.03880125656723976, 0.07542913407087326, -0.05036330595612526, 0.05402079597115517, -0.056516896933317184, 0.05922440066933632, -0.09938904643058777, -0.03841565176844597, -0.06373019516468048, 0.06584804505109787, -0.024307256564497948, 0.006993141956627369, -0.055801525712013245, 0.039751067757606506, 0.010450338944792747, 0.016793500632047653, 0.019160157069563866, 0.035442933440208435, 0.039742518216371536, 0.029700718820095062 ]
0.11622
gate on the following components: - `kube-apiserver` - `kubelet` ### Phase A PersistentVolume will be in one of the following phases: `Available` : a free resource that is not yet bound to a claim `Bound` : the volume is bound to a claim `Released` : the claim has been deleted, but the associated storage resource is not yet reclaimed by the cluster `Failed` : the volume has failed its (automated) reclamation You can see the name of the PVC bound to the PV using `kubectl describe persistentvolume `. #### Phase transition timestamp {{< feature-state feature\_gate\_name="PersistentVolumeLastPhaseTransitionTime" >}} The `.status` field for a PersistentVolume can include an alpha `lastPhaseTransitionTime` field. This field records the timestamp of when the volume last transitioned its phase. For newly created volumes the phase is set to `Pending` and `lastPhaseTransitionTime` is set to the current time. ## PersistentVolumeClaims Each PVC contains a spec and status, which is the specification and status of the claim. The name of a PersistentVolumeClaim object must be a valid [DNS subdomain name](/docs/concepts/overview/working-with-objects/names#dns-subdomain-names). ```yaml apiVersion: v1 kind: PersistentVolumeClaim metadata: name: myclaim spec: accessModes: - ReadWriteOnce volumeMode: Filesystem resources: requests: storage: 8Gi storageClassName: slow selector: matchLabels: release: "stable" matchExpressions: - {key: environment, operator: In, values: [dev]} ``` ### Access Modes Claims use [the same conventions as volumes](#access-modes) when requesting storage with specific access modes. ### Volume Modes Claims use [the same convention as volumes](#volume-mode) to indicate the consumption of the volume as either a filesystem or block device. ### Volume Name Claims can use the `volumeName` field to explicitly bind to a specific PersistentVolume. You can also leave `volumeName` unset, indicating that you'd like Kubernetes to set up a new PersistentVolume that matches the claim. If the specified PV is already bound to another PVC, the binding will be stuck in a pending state. ### Resources Claims, like Pods, can request specific quantities of a resource. In this case, the request is for storage. The same [resource model](https://git.k8s.io/design-proposals-archive/scheduling/resources.md) applies to both volumes and claims. {{< note >}} For `Filesystem` volumes, the storage request refers to the "outer" volume size (i.e. the allocated size from the storage backend). This means that the writeable size may be slightly lower for providers that build a filesystem on top of a block device, due to filesystem overhead. This is especially visible with XFS, where many metadata features are enabled by default. {{< /note >}} ### Selector Claims can specify a [label selector](/docs/concepts/overview/working-with-objects/labels/#label-selectors) to further filter the set of volumes. Only the volumes whose labels match the selector can be bound to the claim. The selector can consist of two fields: \* `matchLabels` - the volume must have a label with this value \* `matchExpressions` - a list of requirements made by specifying key, list of values, and operator that relates the key and values. Valid operators include `In`, `NotIn`, `Exists`, and `DoesNotExist`. All of the requirements, from both `matchLabels` and `matchExpressions`, are ANDed together – they must all be satisfied in order to match. ### Class A claim can request a particular class by specifying the name of a [StorageClass](/docs/concepts/storage/storage-classes/) using the attribute `storageClassName`. Only PVs of the requested class, ones with the same `storageClassName` as the PVC, can be bound to the PVC. PVCs don't necessarily have to request a class. A PVC with its `storageClassName` set equal to `""` is always interpreted to be requesting a PV with no class, so it can only be bound to PVs with no class (no annotation or one set equal to `""`). A PVC with no `storageClassName` is not quite the same and is treated differently by the cluster,
null
./vendor/kubernetes/content/en/docs/concepts/storage/persistent-volumes.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/storage/persistent-volumes.md
[ -0.06324465572834015, -0.001222848310135305, 0.0040314882062375546, 0.028281904757022858, -0.011967005208134651, 0.010410289280116558, -0.04151397570967674, -0.008422251790761948, 0.10042471438646317, 0.01041977945715189, -0.03211250528693199, -0.08608987182378769, -0.006007443182170391, -0.03437115624547005, 0.009405368939042091, -0.02424650825560093, -0.01785413734614849, -0.048177920281887054, -0.03826817870140076, -0.05836820974946022, 0.037904586642980576, -0.023628070950508118, -0.027445347979664803, 0.014509023167192936, 0.02085571549832821, -0.007535213604569435, -0.007665435317903757, -0.002318739891052246, 0.08059515804052353, -0.07118035852909088, -0.07341373711824417, 0.05758778005838394, -0.034127917140722275, 0.0012305111158639193, 0.09727899730205536, 0.12487006187438965, 0.002031874842941761, -0.04164370149374008, -0.045953232795000076, -0.05758504942059517, 0.06992056965827942, -0.08675945550203323, -0.09557287395000458, -0.02416732907295227, -0.021050220355391502, 0.07004008442163467, -0.038438573479652405, -0.03355412557721138, -0.016207866370677948, -0.014488816261291504, 0.053375545889139175, -0.06914874911308289, 0.086647167801857, 0.07690389454364777, 0.017814218997955322, 0.07355543226003647, 0.04671066999435425, 0.05081687122583389, 0.09752607345581055, 0.01920439302921295, 0.004159200005233288, 0.024522120133042336, 0.007670562714338303, 0.025063427165150642, -0.02643723599612713, 0.0331454873085022, 0.05155879259109497, 0.017601564526557922, 0.03729799762368202, -0.048278894275426865, 0.04668765142560005, 0.05845797434449196, -0.026215767487883568, -0.02129279263317585, 0.012590836733579636, 0.014882219955325127, -0.013334410265088081, 0.051831793040037155, 0.03890987113118172, -0.09583234041929245, -0.003927563317120075, 0.028202760964632034, -0.018659012392163277, -0.025431903079152107, -0.07592325657606125, -0.0323290154337883, -0.045967403799295425, 0.0107993483543396, 0.04802277311682701, -0.006688313093036413, -0.012367401272058487, -0.017606442794203758, -0.0020502281840890646, -0.05360725522041321, 0.07089677453041077, -0.022640855982899666, 0.02322360686957836, -0.02166941575706005, 0.08827244490385056, -0.01517884898930788, 0.007370123639702797, 0.04371427372097969, -0.07315381616353989, -0.020888879895210266, 0.03127633035182953, -0.10834468901157379, -0.0024010599590837955, 0.02901969850063324, -0.0002085434680338949, 0.10060868412256241, 0.007124090567231178, 0.03585507348179817, 0.023617492988705635, -0.004039848688989878, 0.09836149215698242, 0.05814501643180847, 0.0006656443583779037, 0.04419787973165512, 0.008023704402148724, -0.06947408616542816, 0.04115113988518715, -0.10258045792579651, -0.04198271781206131, 0.008886939845979214, -0.05206367000937462, 0.017730487510561943, 0.030911076813936234, 4.09803705851146e-33, 0.03682834282517433, -0.11333055794239044, 0.03710468113422394, -0.04332567751407623, -0.02935120277106762, -0.01825750805437565, -0.019185662269592285, -0.03559163212776184, -0.07775789499282837, -0.089313805103302, -0.03895393759012222, 0.04737098887562752, -0.08097262680530548, -0.07306185364723206, -0.025722026824951172, -0.05971156805753708, -0.02071421593427658, 0.07614582777023315, 0.034122783690690994, -0.04284065589308739, 0.054550692439079285, -0.004273531958460808, -0.018091095611453056, 0.017758067697286606, 0.017658518627285957, -0.022943750023841858, 0.03956376388669014, -0.05635851249098778, -0.08448681980371475, 0.0366189107298851, -0.015772473067045212, 0.03672520071268082, -0.007152238395065069, 0.04585853964090347, -0.11552335321903229, 0.025750767439603806, -0.04833471029996872, -0.008040083572268486, -0.0760192722082138, -0.03916017711162567, -0.010370445437729359, -0.03067220002412796, 0.008059726096689701, -0.053928472101688385, -0.010379745624959469, -0.08781635016202927, 0.03008541464805603, -0.0345175676047802, 0.028850961476564407, 0.0706196203827858, 0.005708362441509962, 0.040681157261133194, -0.0007072376902215183, -0.0716562494635582, 0.047215577214956284, 0.05110619217157364, 0.08476502448320389, -0.0652807205915451, -0.04943137988448143, 0.025601916015148163, 0.05508659407496452, 0.03400134667754173, -0.024474453181028366, 0.004288187250494957, -0.02321454882621765, 0.08691862970590591, -0.03183480724692345, 0.014694785699248314, -0.008042399771511555, -0.041345302015542984, -0.04104679822921753, 0.010716462507843971, -0.026043947786092758, -0.005446937400847673, -0.01706315390765667, -0.07652383297681808, 0.059030335396528244, -0.017993653193116188, -0.11530862003564835, 0.02738163433969021, -0.0009958272567018867, -0.10203217715024948, -0.04716826230287552, 0.07115592062473297, 0.03906095772981644, -0.00580626493319869, 0.04935327544808388, 0.004120525438338518, -0.1327018439769745, -0.03661622852087021, -0.01729857362806797, -0.03466039150953293, 0.02830432541668415, 0.07385824620723724, -0.07370136678218842, -5.836487408886049e-33, 0.09511841088533401, 0.01577625796198845, 0.042537249624729156, -0.010632632300257683, 0.00462248083204031, 0.003965873271226883, -0.054547764360904694, 0.1269376277923584, -0.02079567313194275, -0.006240610498934984, -0.025706568732857704, -0.02514219656586647, -0.08015543222427368, -0.028982236981391907, -0.07807057350873947, 0.028656110167503357, -0.024941742420196533, -0.03686367720365524, 0.022241253405809402, 0.08797760307788849, -0.008391015231609344, -0.013293752446770668, -0.02068742737174034, 0.02930501103401184, -0.021749084815382957, 0.0016640669200569391, 0.0396588072180748, 0.04189382866024971, -0.07178886234760284, -0.03282902389764786, 0.00278821331448853, -0.11404983699321747, -0.10860714316368103, -0.0024521094746887684, -0.004089969675987959, -0.10369697958230972, 0.08042669296264648, -0.0629652813076973, -0.042294103652238846, -0.01628021150827408, 0.02396257407963276, 0.0303568784147501, -0.07178741693496704, -0.03527313843369484, -0.05383363366127014, 0.06977950781583786, 0.1372574269771576, -0.00763981556519866, 0.034578535705804825, -0.07099518179893494, 0.01483133714646101, -0.02446639910340309, 0.02831708826124668, 0.14533813297748566, -0.0246215108782053, 0.04805374890565872, 0.002909812843427062, 0.11607609689235687, -0.038026656955480576, -0.08474645763635635, 0.011472044512629509, -0.056214526295661926, 0.051247406750917435, 0.03907791152596474, -0.00332873547449708, -0.046546489000320435, 0.11082124710083008, 0.03208301216363907, -0.020229661837220192, 0.010615102015435696, 0.008415930904448032, 0.04344511404633522, 0.006608343217521906, 0.004801530856639147, 0.019950008019804955, -0.020639294758439064, -0.04627162963151932, -0.07200606912374496, 0.012426831759512424, 0.011378893628716469, -0.021909074857831, 0.014605618081986904, -0.07477138191461563, -0.016811680048704147, 0.07594862580299377, 0.00336480513215065, 0.045527320355176926, 0.07204980403184891, 0.10073606669902802, 0.09971927106380463, -0.080803781747818, 0.03828953579068184, -0.09218810498714447, 0.08982241153717041, -0.031744252890348434, -4.982362256100714e-8, 0.07747802883386612, 0.01828676648437977, -0.03515827655792236, -0.010102765634655952, 0.06402650475502014, -0.07658316940069199, 0.03614230826497078, -0.0006227365811355412, -0.07525575906038284, -0.04512947052717209, 0.04189649224281311, 0.051645562052726746, -0.03471243381500244, -0.06138637289404869, -0.02310742810368538, -0.03327558934688568, 0.01114982832223177, 0.02055908925831318, 0.02988911047577858, -0.04724942520260811, -0.028582202270627022, -0.09902273863554001, 0.059010252356529236, -0.03293951600790024, 0.02601834014058113, 0.05629650130867958, 0.07193426787853241, 0.029055247083306313, 0.02973306179046631, -0.012753869406878948, -0.016265859827399254, 0.020076720044016838, 0.025172309949994087, 0.03827335312962532, -0.027161024510860443, 0.07459543645381927, -0.09110328555107117, 0.061528563499450684, 0.01573898084461689, 0.09443648904561996, 0.00016724014130886644, 0.02102501504123211, -0.040587373077869415, 0.043503694236278534, 0.019471779465675354, 0.12497936934232712, -0.04041602462530136, 0.08752859383821487, -0.011360486038029194, 0.01630764827132225, -0.030771955847740173, -0.05318088456988335, -0.037410058081150055, 0.08148394525051117, -0.019512653350830078, 0.03486614301800728, -0.041174598038196564, -0.006026895716786385, 0.03836103901267052, 0.033918462693691254, 0.037880633026361465, 0.03362884745001793, -0.007372620981186628, -0.022869164124131203 ]
0.144253
equal to `""` is always interpreted to be requesting a PV with no class, so it can only be bound to PVs with no class (no annotation or one set equal to `""`). A PVC with no `storageClassName` is not quite the same and is treated differently by the cluster, depending on whether the [`DefaultStorageClass` admission plugin](/docs/reference/access-authn-authz/admission-controllers/#defaultstorageclass) is turned on. \* If the admission plugin is turned on, the administrator may specify a default StorageClass. All PVCs that have no `storageClassName` can be bound only to PVs of that default. Specifying a default StorageClass is done by setting the annotation `storageclass.kubernetes.io/is-default-class` equal to `true` in a StorageClass object. If the administrator does not specify a default, the cluster responds to PVC creation as if the admission plugin were turned off. If more than one default StorageClass is specified, the newest default is used when the PVC is dynamically provisioned. \* If the admission plugin is turned off, there is no notion of a default StorageClass. All PVCs that have `storageClassName` set to `""` can be bound only to PVs that have `storageClassName` also set to `""`. However, PVCs with missing `storageClassName` can be updated later once default StorageClass becomes available. If the PVC gets updated it will no longer bind to PVs that have `storageClassName` also set to `""`. See [retroactive default StorageClass assignment](#retroactive-default-storageclass-assignment) for more details. Depending on installation method, a default StorageClass may be deployed to a Kubernetes cluster by addon manager during installation. When a PVC specifies a `selector` in addition to requesting a StorageClass, the requirements are ANDed together: only a PV of the requested class and with the requested labels may be bound to the PVC. {{< note >}} Currently, a PVC with a non-empty `selector` can't have a PV dynamically provisioned for it. {{< /note >}} In the past, the annotation `volume.beta.kubernetes.io/storage-class` was used instead of `storageClassName` attribute. This annotation is still working; however, it won't be supported in a future Kubernetes release. #### Retroactive default StorageClass assignment {{< feature-state for\_k8s\_version="v1.28" state="stable" >}} You can create a PersistentVolumeClaim without specifying a `storageClassName` for the new PVC, and you can do so even when no default StorageClass exists in your cluster. In this case, the new PVC creates as you defined it, and the `storageClassName` of that PVC remains unset until default becomes available. When a default StorageClass becomes available, the control plane identifies any existing PVCs without `storageClassName`. For the PVCs that either have an empty value for `storageClassName` or do not have this key, the control plane then updates those PVCs to set `storageClassName` to match the new default StorageClass. If you have an existing PVC where the `storageClassName` is `""`, and you configure a default StorageClass, then this PVC will not get updated. In order to keep binding to PVs with `storageClassName` set to `""` (while a default StorageClass is present), you need to set the `storageClassName` of the associated PVC to `""`. This behavior helps administrators change default StorageClass by removing the old one first and then creating or setting another one. This brief window while there is no default causes PVCs without `storageClassName` created at that time to not have any default, but due to the retroactive default StorageClass assignment this way of changing defaults is safe. ## Claims As Volumes Pods access storage by using the claim as a volume. Claims must exist in the same namespace as the Pod using the claim. The cluster finds the claim in the Pod's namespace and uses it to get the PersistentVolume backing the claim. The volume is then mounted to the
null
./vendor/kubernetes/content/en/docs/concepts/storage/persistent-volumes.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/storage/persistent-volumes.md
[ -0.013953259214758873, -0.005590703338384628, 0.026804175227880478, 0.021931402385234833, -0.008150779642164707, 0.041067998856306076, 0.0401134118437767, -0.030594071373343468, 0.07484997063875198, 0.03326737508177757, 0.0325809083878994, -0.02270379103720188, 0.00180589419323951, 0.027560381218791008, -0.00827721320092678, -0.03160596266388893, 0.06768779456615448, -0.08608095347881317, -0.028200073167681694, 0.060565657913684845, 0.04667382687330246, -0.04435553029179573, -0.016404418274760246, -0.02275172993540764, -0.0336633026599884, -0.008265838027000427, -0.031960535794496536, 0.018583213910460472, 0.07406224310398102, -0.01087239570915699, -0.06871925294399261, 0.041888900101184845, 0.026394028216600418, 0.039030157029628754, 0.09946197271347046, 0.054094213992357254, 0.0006910974043421447, -0.005396445747464895, -0.08787543326616287, 0.01623421162366867, 0.04546195641160011, -0.0700158029794693, -0.027438301593065262, -0.011995866894721985, 0.013747218064963818, 0.05661176145076752, -0.07636572420597076, -0.08553938567638397, -0.06516282260417938, -0.03592965751886368, 0.0994664803147316, -0.025685619562864304, 0.03557515889406204, 0.07205959409475327, -0.024244066327810287, 0.09310486912727356, -0.021970435976982117, 0.08313565701246262, 0.08145824074745178, -0.019299974665045738, -0.0356876514852047, -0.07195223122835159, 0.03762700781226158, 0.0054413070902228355, -0.03533797338604927, -0.03358764573931694, 0.06308133155107498, 0.032389700412750244, 0.046165477484464645, -0.06546562910079956, 0.06834815442562103, 0.0862567350268364, -0.045692261308431625, -0.0022425258066505194, 0.003146634204313159, 0.040478672832250595, -0.044578492641448975, 0.11467967927455902, 0.03211260959506035, -0.10200326144695282, 0.010066239163279533, -0.0204781461507082, 0.008927500806748867, -0.07290779054164886, -0.09113915264606476, 0.022855300456285477, -0.10076365619897842, -0.034238316118717194, 0.024123264476656914, 0.006984207779169083, 0.004567569121718407, -0.015557483769953251, -0.019908837974071503, -0.04339253902435303, 0.0005527583998627961, 0.0027780572418123484, -0.025735925883054733, -0.03734438121318817, 0.0759664997458458, -0.005682687275111675, 0.009308066219091415, 0.03762178122997284, -0.03869141265749931, -0.0009319843375124037, 0.06619799137115479, -0.09643185138702393, -0.02082582376897335, -0.004658519756048918, 0.008966044522821903, 0.06934719532728195, -0.0405195876955986, 0.046977605670690536, 0.02672603726387024, -0.01432912889868021, -0.03610162436962128, 0.06440430879592896, 0.03954371064901352, 0.005327030085027218, -0.02405722439289093, 0.02788548171520233, -0.04471198096871376, -0.11627749353647232, 0.012328872457146645, -0.015522710978984833, -0.09003745019435883, 0.028245512396097183, -0.07372312992811203, 2.9128617770261817e-33, 0.05203244090080261, -0.10693635046482086, 0.04874774441123009, -0.05819547548890114, -0.051115620881319046, -0.06311161071062088, 0.001216157921589911, -0.029973726719617844, -0.029570823535323143, -0.08914054930210114, -0.06193273887038231, 0.05036931112408638, 0.025511205196380615, 0.024830898270010948, 0.01198660396039486, 0.10654161870479584, -0.05312878638505936, 0.05145828053355217, 0.07483251392841339, -0.03941516950726509, 0.0445483960211277, 0.0591578409075737, 0.020797697827219963, -0.019339200109243393, 0.025872718542814255, -0.02929495833814144, 0.029341937974095345, -0.07969507575035095, -0.06291232258081436, 0.0050002760253846645, -0.013484200462698936, -0.06760744005441666, 0.08116082102060318, 0.003555420320481062, -0.03063860349357128, 0.08818604052066803, 0.00199467153288424, 0.043436042964458466, -0.08528359234333038, -0.13672544062137604, -0.03197526931762695, -0.028488149866461754, 0.03794102743268013, -0.024833055213093758, -0.008558478206396103, -0.009141801856458187, 0.03689619153738022, -0.05869266018271446, 0.022714460268616676, 0.03330380097031593, -0.061659201979637146, -0.04347215220332146, -0.02269834838807583, 0.01745777763426304, 0.007610191125422716, -0.007423626258969307, 0.08708053827285767, -0.048167843371629715, -0.09049683809280396, -0.062360621988773346, 0.02000296302139759, -0.022973963990807533, -0.03407459706068039, -0.017148105427622795, -0.02563108131289482, -0.006109303329139948, -0.010968095622956753, -0.026234205812215805, 0.03757986053824425, -0.06593459844589233, -0.021593814715743065, -0.0005292094429023564, -0.09864085167646408, 0.018058495596051216, 0.05068220943212509, -0.032306037843227386, 0.016100673004984856, 0.029024407267570496, -0.04156283661723137, 0.013294798322021961, -0.024139301851391792, -0.030312461778521538, -0.05296645313501358, 0.09989003092050552, -0.08385001122951508, -0.022205140441656113, 0.05169961228966713, 0.003872948233038187, 0.0019913080614060163, -0.042967718094587326, 0.12542644143104553, -0.031396836042404175, 0.027936287224292755, 0.09740433096885681, -0.03659866005182266, -4.917838941060416e-33, 0.07039977610111237, 0.05592293292284012, -0.08013259619474411, -0.02392945997416973, 0.0196053609251976, 0.0509733185172081, -0.02609957940876484, 0.038629721850156784, 0.007110620383173227, -0.06034880131483078, 0.05150175467133522, 0.004862737841904163, 0.006365601904690266, 0.004147568717598915, -0.06098230555653572, 0.023392394185066223, -0.030953967943787575, -0.010763274505734444, 0.06163128465414047, 0.062468841671943665, -0.011319251731038094, -0.01801041141152382, 0.032202597707509995, 0.007570357993245125, 0.027612335979938507, 0.009536328725516796, -0.005184216424822807, 0.06088830158114433, -0.07278018444776535, -0.027166912332177162, 0.015335018746554852, -0.08127292990684509, -0.10630548000335693, 0.05806576833128929, 0.01250174269080162, -0.11999251693487167, -0.01647525653243065, -0.008180955424904823, -0.019122665748000145, 0.03677837923169136, -0.03598272427916527, 0.007017952855676413, -0.05383547767996788, 0.03574099391698837, -0.050013963133096695, 0.01014387235045433, 0.05703016743063927, -0.05994972214102745, 0.06425908952951431, -0.08537306636571884, -0.0696195662021637, -0.025447966530919075, 0.04675162956118584, 0.1284705549478531, 0.025417732074856758, 0.061213377863168716, 0.021794192492961884, 0.107179194688797, -0.0422140508890152, 0.03205819055438042, 0.05984807014465332, -0.047380417585372925, 0.002052203519269824, 0.06441854685544968, -0.12080787122249603, -0.04149105027318001, 0.06932439655065536, -0.0030789831653237343, -0.06312725692987442, -0.002423015423119068, -0.02304242178797722, -0.035437434911727905, 0.013241041451692581, -0.02910996600985527, -0.04436302185058594, -0.10186309367418289, 0.04351120442152023, 0.0007025548839010298, 0.002498469315469265, -0.06766340881586075, -0.09010899066925049, 0.06401931494474411, -0.096333809196949, -0.00004876724779023789, 0.02600829117000103, -0.030178742483258247, 0.10592286288738251, 0.0025720715057104826, 0.05135127902030945, 0.0918605625629425, -0.020839817821979523, 0.05695507675409317, -0.07173594832420349, 0.05932677909731865, -0.1137293353676796, -5.494318600085535e-8, 0.0018558558076620102, -0.024843664839863777, -0.05369502678513527, 0.055549465119838715, 0.02539883740246296, -0.07428372651338577, 0.02444571815431118, 0.043847981840372086, -0.05959157645702362, 0.028428087010979652, 0.06934033334255219, 0.09639599919319153, -0.015077490359544754, -0.11935128271579742, 0.009565274231135845, 0.053296059370040894, -0.01237025111913681, -0.0004326884518377483, -0.014810972847044468, -0.03714912384748459, -0.04109762981534004, -0.08037003129720688, 0.004913211800158024, 0.0037395029794424772, -0.004847204312682152, 0.08215713500976562, 0.09160672128200531, 0.03285383805632591, 0.0691264197230339, 0.04817808419466019, 0.01564927212893963, 0.05774836614727974, -0.001852503977715969, 0.0009406262543052435, -0.04415958747267723, 0.09711062163114548, -0.048715345561504364, 0.015799542888998985, 0.039479464292526245, 0.0898059532046318, -0.025244103744626045, -0.05645151808857918, -0.04537483677268028, 0.001788223860785365, 0.026972994208335876, 0.08310005813837051, 0.03652837872505188, 0.04604652523994446, 0.02135551907122135, 0.014149473048746586, -0.05050181970000267, -0.03506755456328392, -0.06448438763618469, 0.04916330426931381, 0.00045423556002788246, -0.002979795914143324, -0.04405743256211281, 0.009910425171256065, 0.04650527238845825, -0.0043015256524086, 0.029563462361693382, 0.014782332815229893, -0.003751809010282159, 0.014208225533366203 ]
0.065113
Volumes Pods access storage by using the claim as a volume. Claims must exist in the same namespace as the Pod using the claim. The cluster finds the claim in the Pod's namespace and uses it to get the PersistentVolume backing the claim. The volume is then mounted to the host and into the Pod. ```yaml apiVersion: v1 kind: Pod metadata: name: mypod spec: containers: - name: myfrontend image: nginx volumeMounts: - mountPath: "/var/www/html" name: mypd volumes: - name: mypd persistentVolumeClaim: claimName: myclaim ``` ### A Note on Namespaces PersistentVolumes binds are exclusive, and since PersistentVolumeClaims are namespaced objects, mounting claims with "Many" modes (`ROX`, `RWX`) is only possible within one namespace. ### PersistentVolumes typed `hostPath` A `hostPath` PersistentVolume uses a file or directory on the Node to emulate network-attached storage. See [an example of `hostPath` typed volume](/docs/tasks/configure-pod-container/configure-persistent-volume-storage/#create-a-persistentvolume). ## Raw Block Volume Support {{< feature-state for\_k8s\_version="v1.18" state="stable" >}} The following volume plugins support raw block volumes, including dynamic provisioning where applicable: \* CSI (including some CSI migrated volume types) \* FC (Fibre Channel) \* iSCSI \* Local volume ### PersistentVolume using a Raw Block Volume {#persistent-volume-using-a-raw-block-volume} ```yaml apiVersion: v1 kind: PersistentVolume metadata: name: block-pv spec: capacity: storage: 10Gi accessModes: - ReadWriteOnce volumeMode: Block persistentVolumeReclaimPolicy: Retain fc: targetWWNs: ["50060e801049cfd1"] lun: 0 readOnly: false ``` ### PersistentVolumeClaim requesting a Raw Block Volume {#persistent-volume-claim-requesting-a-raw-block-volume} ```yaml apiVersion: v1 kind: PersistentVolumeClaim metadata: name: block-pvc spec: accessModes: - ReadWriteOnce volumeMode: Block resources: requests: storage: 10Gi ``` ### Pod specification adding Raw Block Device path in container ```yaml apiVersion: v1 kind: Pod metadata: name: pod-with-block-volume spec: containers: - name: fc-container image: fedora:26 command: ["/bin/sh", "-c"] args: [ "tail -f /dev/null" ] volumeDevices: - name: data devicePath: /dev/xvda volumes: - name: data persistentVolumeClaim: claimName: block-pvc ``` {{< note >}} When adding a raw block device for a Pod, you specify the device path in the container instead of a mount path. {{< /note >}} ### Binding Block Volumes If a user requests a raw block volume by indicating this using the `volumeMode` field in the PersistentVolumeClaim spec, the binding rules differ slightly from previous releases that didn't consider this mode as part of the spec. Listed is a table of possible combinations the user and admin might specify for requesting a raw block device. The table indicates if the volume will be bound or not given the combinations: Volume binding matrix for statically provisioned volumes: | PV volumeMode | PVC volumeMode | Result | | --------------|:---------------:| ----------------:| | unspecified | unspecified | BIND | | unspecified | Block | NO BIND | | unspecified | Filesystem | BIND | | Block | unspecified | NO BIND | | Block | Block | BIND | | Block | Filesystem | NO BIND | | Filesystem | Filesystem | BIND | | Filesystem | Block | NO BIND | | Filesystem | unspecified | BIND | {{< note >}} Only statically provisioned volumes are supported for alpha release. Administrators should take care to consider these values when working with raw block devices. {{< /note >}} ## Volume Snapshot and Restore Volume from Snapshot Support {{< feature-state for\_k8s\_version="v1.20" state="stable" >}} Volume snapshots only support the out-of-tree CSI volume plugins. For details, see [Volume Snapshots](/docs/concepts/storage/volume-snapshots/). In-tree volume plugins are deprecated. You can read about the deprecated volume plugins in the [Volume Plugin FAQ](https://github.com/kubernetes/community/blob/master/sig-storage/volume-plugin-faq.md). ### Create a PersistentVolumeClaim from a Volume Snapshot {#create-persistent-volume-claim-from-volume-snapshot} ```yaml apiVersion: v1 kind: PersistentVolumeClaim metadata: name: restore-pvc spec: storageClassName: csi-hostpath-sc dataSource: name: new-snapshot-test kind: VolumeSnapshot apiGroup: snapshot.storage.k8s.io accessModes: - ReadWriteOnce resources: requests: storage: 10Gi ``` ## Volume Cloning [Volume Cloning](/docs/concepts/storage/volume-pvc-datasource/) only available for CSI volume plugins. ### Create PersistentVolumeClaim
null
./vendor/kubernetes/content/en/docs/concepts/storage/persistent-volumes.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/storage/persistent-volumes.md
[ -0.020014328882098198, -0.018892765045166016, -0.0027838738169521093, 0.05517375469207764, 0.07966100424528122, -0.049224723130464554, -0.016956990584731102, 0.02879817970097065, 0.0952400267124176, 0.04628467559814453, -0.00078868173295632, 0.0032802573405206203, 0.0436059944331646, 0.04246268793940544, 0.019217979162931442, -0.04308280721306801, 0.028992148116230965, 0.059972893446683884, 0.009100249037146568, 0.022550642490386963, 0.011139003559947014, 0.07378199696540833, 0.02197566255927086, 0.005087865982204676, 0.048365917056798935, -0.013427725061774254, -0.06224806234240532, 0.021267296746373177, 0.05144764110445976, -0.06355535238981247, 0.05076976120471954, 0.01834019273519516, -0.021298017352819443, -0.00997580960392952, 0.031437743455171585, 0.11899080127477646, 0.014673633500933647, -0.11024534702301025, -0.07695318758487701, -0.03924868255853653, 0.08797342330217361, -0.04932893067598343, -0.05015582963824272, -0.07033316045999527, -0.08673825114965439, -0.014965581707656384, -0.008121429942548275, 0.030679384246468544, -0.013207590207457542, 0.047862183302640915, -0.04365857318043709, -0.1308443397283554, 0.04638049751520157, 0.117706798017025, -0.004538461100310087, 0.011622179299592972, -0.006189543288201094, 0.0774591788649559, 0.04423283413052559, 0.009694026783108711, 0.03666330501437187, -0.0209116879850626, 0.07562348246574402, -0.029664041474461555, 0.03228360787034035, 0.03449227288365364, -0.006752598565071821, 0.02349811978638172, -0.011228923685848713, -0.014237317256629467, 0.15748505294322968, 0.08512167632579803, -0.035455234348773956, -0.011917502619326115, 0.008403578773140907, 0.017636312171816826, -0.05441095307469368, 0.03365912660956383, -0.01288995984941721, -0.007483384106308222, 0.0039080483838915825, 0.07101577520370483, 0.047247763723134995, 0.012339328415691853, -0.05485345423221588, -0.014672382734715939, 0.009437127970159054, 0.00959744118154049, -0.0867953822016716, -0.053607162088155746, 0.010034088976681232, -0.043750789016485214, -0.016091175377368927, -0.04398171976208687, 0.05662178993225098, -0.0802624374628067, -0.050046131014823914, 0.025914499536156654, 0.08352557569742203, -0.005575386807322502, -0.001191857154481113, 0.02928287535905838, -0.04890740290284157, -0.05594940856099129, 0.03176821023225784, -0.05306001007556915, -0.02549722045660019, -0.054930057376623154, -0.005893469788134098, 0.03920619934797287, 0.001371725695207715, 0.008821210823953152, -0.06280861049890518, 0.04229508340358734, 0.0010470181005075574, 0.015862515196204185, -0.08811710774898529, 0.07730195671319962, -0.036028265953063965, -0.06463304162025452, 0.04803807660937309, -0.04899303615093231, 0.027003495022654533, 0.02680518478155136, 0.01612791046500206, -0.001646085293032229, -0.04559450224041939, 5.168142095968791e-33, 0.014264089986681938, -0.07577391713857651, -0.011498726904392242, 0.013214671984314919, 0.04207196459174156, -0.056722309440374374, 0.0007321194862015545, 0.04847074672579765, -0.04634147509932518, -0.042189210653305054, -0.032708294689655304, 0.15637820959091187, -0.025692908093333244, -0.050175268203020096, 0.01690320111811161, -0.029718764126300812, -0.03401605412364006, 0.03480678051710129, 0.06231139972805977, 0.009360319003462791, 0.0267446581274271, 0.017286593094468117, -0.01107058860361576, 0.030088283121585846, 0.006716935429722071, -0.04406626150012016, 0.03340131416916847, -0.12148667871952057, -0.03494061157107353, 0.025482341647148132, -0.03777778148651123, 0.027243362739682198, 0.05741839110851288, 0.03812023997306824, -0.0561380572617054, 0.007640458643436432, -0.022903239354491234, -0.033997874706983566, -0.18060879409313202, -0.06534287333488464, 0.046057429164648056, -0.018529292196035385, -0.006126439664512873, -0.01591002754867077, -0.05795846879482269, -0.0827832743525505, -0.015170778147876263, -0.09906978160142899, 0.0656847432255745, 0.08640269935131073, 0.03291551396250725, -0.06010089069604874, -0.02092266082763672, -0.0553659088909626, 0.02125338278710842, -0.03730415552854538, -0.05087192729115486, -0.011556399054825306, -0.00403340719640255, -0.017889471724629402, -0.02552531473338604, -0.024737585335969925, 0.03311857953667641, -0.005658695939928293, -0.04571416229009628, 0.12338622659444809, 0.029885491356253624, -0.027481751516461372, 0.05891239643096924, 0.04022473096847534, -0.01907975785434246, 0.05037570744752884, -0.09230629354715347, -0.001172694843262434, -0.02847662754356861, -0.07693172246217728, 0.010949851013720036, 0.008744712918996811, -0.04118180647492409, 0.0352310910820961, -0.014260109513998032, -0.03817034512758255, -0.0818931981921196, 0.12288946658372879, -0.05850686505436897, 0.02779426984488964, 0.016496047377586365, -0.020114993676543236, -0.05957573279738426, -0.01991811767220497, 0.041504066437482834, -0.01649688370525837, -0.018545987084507942, -0.023712141439318657, -0.09377311915159225, -5.437619400449e-33, 0.06548243016004562, -0.023938635364174843, 0.0007272468064911664, 0.030532630160450935, -0.05942944064736366, 0.007566098589450121, -0.009401840157806873, 0.09090214222669601, -0.046091191470623016, -0.036448098719120026, -0.05696410313248634, -0.015633678063750267, -0.035478800535202026, 0.04745080694556236, -0.054126475006341934, -0.029131582006812096, -0.03539550304412842, -0.14775796234607697, 0.02937535010278225, 0.019645730033516884, -0.027598988264799118, 0.024550138041377068, 0.13125889003276825, 0.044434599578380585, 0.024129068478941917, 0.030820880085229874, 0.03443713113665581, -0.03322469815611839, -0.007230859249830246, -0.07023459672927856, -0.013712998479604721, -0.046104591339826584, -0.09930667281150818, -0.10909726470708847, -0.021274453029036522, -0.020744482055306435, -0.032039575278759, 0.057978469878435135, -0.06697133183479309, -0.10251237452030182, 0.007867039181292057, -0.006040613166987896, -0.05235802009701729, -0.021692192181944847, -0.05994146689772606, -0.05873117968440056, 0.06509973108768463, -0.022808853536844254, 0.04765009507536888, -0.019665611907839775, 0.05211228132247925, -0.0004345109045971185, -0.02844182774424553, 0.08459111303091049, -0.0026733092963695526, 0.018419833853840828, -0.03260507807135582, 0.04027916491031647, -0.016300247982144356, -0.009211333468556404, 0.09956873953342438, -0.0395926758646965, -0.01974058710038662, 0.062133342027664185, -0.09005870670080185, -0.05827496573328972, -0.02005012519657612, -0.02634195238351822, -0.029812656342983246, 0.0893290787935257, 0.03719799593091011, 0.011447202414274216, 0.06734073907136917, 0.0500541552901268, 0.02743581309914589, 0.005650439765304327, -0.010255471803247929, -0.06909621506929398, 0.01741020381450653, 0.006609485950320959, -0.05269124358892441, 0.0887964516878128, -0.061895452439785004, 0.01623416692018509, 0.10133746266365051, 0.028798919171094894, 0.053709402680397034, 0.053077638149261475, 0.0640164241194725, 0.10938144475221634, 0.01711825653910637, 0.04498335346579552, -0.0703541561961174, 0.009763776324689388, -0.029589194804430008, -4.825886890102993e-8, 0.021658970043063164, 0.07134705036878586, 0.025577610358595848, 0.070730060338974, -0.005822721403092146, -0.06512188911437988, 0.10421207547187805, 0.03245546668767929, -0.03164507448673248, 0.02864324115216732, 0.035438746213912964, 0.009118941612541676, -0.06407693773508072, -0.08727846294641495, -0.04312857985496521, 0.02613258734345436, 0.015332113020122051, 0.010762285441160202, 0.012426072731614113, -0.06839515268802643, -0.06715056300163269, -0.08172646164894104, -0.013810371048748493, -0.007873348891735077, 0.02070278488099575, 0.048772480338811874, 0.06601458042860031, 0.010518532246351242, 0.01012198906391859, -0.06324079632759094, -0.02394022047519684, 0.0023004719987511635, 0.01002930011600256, 0.05054543539881706, -0.03598112240433693, 0.021446527913212776, -0.05914673954248428, 0.07943052798509598, -0.03349396586418152, -0.027607563883066177, -0.06676219403743744, -0.016694147139787674, 0.04792480915784836, -0.012518083676695824, -0.0247725211083889, 0.0719171017408371, 0.036132264882326126, 0.10070990025997162, -0.027996592223644257, 0.044801779091358185, -0.0004966600681655109, -0.11212781816720963, -0.017582571133971214, 0.1335330456495285, 0.022313373163342476, 0.006779326591640711, 0.011408505961298943, 0.0036437015514820814, 0.025492575019598007, 0.03762293606996536, 0.0455092117190361, 0.02765662781894207, 0.05755029618740082, 0.01074855774641037 ]
0.13324
FAQ](https://github.com/kubernetes/community/blob/master/sig-storage/volume-plugin-faq.md). ### Create a PersistentVolumeClaim from a Volume Snapshot {#create-persistent-volume-claim-from-volume-snapshot} ```yaml apiVersion: v1 kind: PersistentVolumeClaim metadata: name: restore-pvc spec: storageClassName: csi-hostpath-sc dataSource: name: new-snapshot-test kind: VolumeSnapshot apiGroup: snapshot.storage.k8s.io accessModes: - ReadWriteOnce resources: requests: storage: 10Gi ``` ## Volume Cloning [Volume Cloning](/docs/concepts/storage/volume-pvc-datasource/) only available for CSI volume plugins. ### Create PersistentVolumeClaim from an existing PVC {#create-persistent-volume-claim-from-an-existing-pvc} ```yaml apiVersion: v1 kind: PersistentVolumeClaim metadata: name: cloned-pvc spec: storageClassName: my-csi-plugin dataSource: name: existing-src-pvc-name kind: PersistentVolumeClaim accessModes: - ReadWriteOnce resources: requests: storage: 10Gi ``` ## Volume populators and data sources {{< feature-state for\_k8s\_version="v1.24" state="beta" >}} Kubernetes supports custom volume populators. To use custom volume populators, you must enable the `AnyVolumeDataSource` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/) for the kube-apiserver and kube-controller-manager. Volume populators take advantage of a PVC spec field called `dataSourceRef`. Unlike the `dataSource` field, which can only contain either a reference to another PersistentVolumeClaim or to a VolumeSnapshot, the `dataSourceRef` field can contain a reference to any object in the same namespace, except for core objects other than PVCs. For clusters that have the feature gate enabled, use of the `dataSourceRef` is preferred over `dataSource`. ## Cross namespace data sources {{< feature-state for\_k8s\_version="v1.26" state="alpha" >}} Kubernetes supports cross namespace volume data sources. To use cross namespace volume data sources, you must enable the `AnyVolumeDataSource` and `CrossNamespaceVolumeDataSource` [feature gates](/docs/reference/command-line-tools-reference/feature-gates/) for the kube-apiserver and kube-controller-manager. Also, you must enable the `CrossNamespaceVolumeDataSource` feature gate for the csi-provisioner. Enabling the `CrossNamespaceVolumeDataSource` feature gate allows you to specify a namespace in the dataSourceRef field. {{< note >}} When you specify a namespace for a volume data source, Kubernetes checks for a ReferenceGrant in the other namespace before accepting the reference. ReferenceGrant is part of the `gateway.networking.k8s.io` extension APIs. See [ReferenceGrant](https://gateway-api.sigs.k8s.io/api-types/referencegrant/) in the Gateway API documentation for details. This means that you must extend your Kubernetes cluster with at least ReferenceGrant from the Gateway API before you can use this mechanism. {{< /note >}} ## Data source references The `dataSourceRef` field behaves almost the same as the `dataSource` field. If one is specified while the other is not, the API server will give both fields the same value. Neither field can be changed after creation, and attempting to specify different values for the two fields will result in a validation error. Therefore the two fields will always have the same contents. There are two differences between the `dataSourceRef` field and the `dataSource` field that users should be aware of: \* The `dataSource` field ignores invalid values (as if the field was blank) while the `dataSourceRef` field never ignores values and will cause an error if an invalid value is used. Invalid values are any core object (objects with no apiGroup) except for PVCs. \* The `dataSourceRef` field may contain different types of objects, while the `dataSource` field only allows PVCs and VolumeSnapshots. When the `CrossNamespaceVolumeDataSource` feature is enabled, there are additional differences: \* The `dataSource` field only allows local objects, while the `dataSourceRef` field allows objects in any namespaces. \* When namespace is specified, `dataSource` and `dataSourceRef` are not synced. Users should always use `dataSourceRef` on clusters that have the feature gate enabled, and fall back to `dataSource` on clusters that do not. It is not necessary to look at both fields under any circumstance. The duplicated values with slightly different semantics exist only for backwards compatibility. In particular, a mixture of older and newer controllers are able to interoperate because the fields are the same. ### Using volume populators Volume populators are {{< glossary\_tooltip text="controllers" term\_id="controller" >}} that can create non-empty volumes, where the contents of the volume are determined by a Custom Resource. Users create a populated volume by referring to
null
./vendor/kubernetes/content/en/docs/concepts/storage/persistent-volumes.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/storage/persistent-volumes.md
[ -0.056731224060058594, -0.04478543624281883, -0.011337199248373508, -0.0281215850263834, -0.02191065065562725, -0.006527742370963097, -0.024453721940517426, 0.004912511445581913, 0.07508834451436996, 0.04524778202176094, 0.02922101505100727, -0.042157553136348724, 0.03724701330065727, 0.013160042464733124, -0.03416304662823677, -0.04265661537647247, -0.025752097368240356, 0.040257856249809265, -0.03797655552625656, 0.02323363535106182, 0.03953332453966141, 0.021331753581762314, 0.0023617586120963097, -0.01695828139781952, 0.04033658653497696, -0.054152991622686386, 0.0001520931691629812, 0.04783594608306885, 0.020995579659938812, -0.0795179083943367, 0.03133058920502663, 0.023414749652147293, -0.02877926267683506, -0.012146943248808384, 0.10637819021940231, 0.09898447245359421, 0.0281585231423378, -0.0647076666355133, -0.09967980533838272, -0.020352615043520927, 0.05621049925684929, -0.07019826024770737, -0.0898997038602829, -0.020850466564297676, -0.07422831654548645, 0.005800931714475155, -0.011919901706278324, -0.060394492000341415, -0.0032317552249878645, 0.03919769078493118, 0.010684030130505562, -0.12247882038354874, 0.020220261067152023, 0.14268819987773895, 0.013679919764399529, 0.021574893966317177, 0.017572510987520218, 0.08988550305366516, 0.09680578112602234, 0.0023743235506117344, -0.006710563320666552, 0.0373959019780159, 0.05013927444815636, -0.0005259313038550317, -0.05071596801280975, 0.03809183090925217, 0.05262031406164169, 0.03698282688856125, 0.005081032402813435, -0.010751276277005672, 0.03040623664855957, 0.06389233469963074, -0.05754214897751808, 0.033160388469696045, 0.011613125912845135, 0.017622554674744606, -0.032126348465681076, 0.026021985337138176, -0.018228009343147278, -0.06646952778100967, 0.002719065872952342, 0.02314063534140587, -0.0761008933186531, 0.01803569868206978, -0.07485058903694153, 0.006829463876783848, -0.052257195115089417, 0.019051291048526764, -0.0226438008248806, -0.0338331013917923, 0.05574919283390045, -0.019167745485901833, -0.027075069025158882, -0.07676691561937332, 0.02995777502655983, -0.04128941893577576, -0.05577743053436279, 0.017528139054775238, 0.09583702683448792, -0.06110961735248566, -0.016901904717087746, 0.04225042834877968, -0.056967537850141525, -0.003943375777453184, 0.04946506768465042, -0.10862571001052856, 0.0005088713369332254, 0.014254980720579624, -0.08486665785312653, 0.07098103314638138, 0.01845311000943184, 0.09177255630493164, -0.006576686166226864, 0.007728338707238436, 0.11705391854047775, 0.0417344830930233, -0.02989800088107586, 0.06825433671474457, -0.040235135704278946, -0.0676412507891655, 0.054097626358270645, -0.03671831637620926, -0.039897430688142776, 0.018538516014814377, -0.03176729753613472, 0.04365561157464981, 0.012379570864140987, 6.237089271490561e-33, 0.06942687928676605, -0.04892046004533768, 0.032943423837423325, 0.04318317770957947, 0.01694202795624733, -0.07352671772241592, 0.06880534440279007, 0.0006903682369738817, -0.09238183498382568, -0.10704270005226135, -0.03834916278719902, 0.07445771247148514, -0.060615234076976776, -0.031435102224349976, -0.012081514112651348, -0.033800385892391205, -0.05488363280892372, 0.02034335769712925, 0.038214050233364105, -0.03127598017454147, 0.06898346543312073, 0.019141187891364098, 0.05818163603544235, 0.010200506076216698, 0.0494818240404129, 0.0015030972426757216, 0.049967024475336075, -0.02457241714000702, -0.019733907654881477, 0.012006908655166626, -0.10173308849334717, 0.037098366767168045, 0.06408682465553284, 0.0069427709095180035, -0.05914527177810669, -0.016762258484959602, -0.05517376586794853, 0.02151804231107235, -0.1263284981250763, -0.04225347191095352, 0.050731875002384186, 0.008385784924030304, -0.014677265658974648, -0.04627762362360954, 0.015140006318688393, -0.08121173083782196, -0.05972195044159889, -0.01213452685624361, 0.09685701131820679, 0.05384495109319687, 0.04308388754725456, 0.007938362658023834, -0.005894964095205069, -0.08697528392076492, 0.014568457379937172, -0.015987670049071312, 0.009884516708552837, -0.09670225530862808, -0.04088491201400757, -0.017477918416261673, 0.022516148164868355, 0.05923880264163017, 0.044413093477487564, 0.05128362774848938, -0.01598242297768593, 0.05583486333489418, -0.06223958730697632, -0.011314298026263714, 0.012378389947116375, -0.03704766184091568, -0.02901610918343067, 0.015153910964727402, -0.11475833505392075, -0.028901025652885437, -0.023873714730143547, -0.12329263240098953, -0.02241651900112629, -0.0048949215561151505, -0.020152440294623375, 0.025601960718631744, -0.0606994666159153, -0.06314732134342194, -0.08759526163339615, 0.043715186417102814, 0.016730066388845444, -0.03616953268647194, 0.05510111525654793, -0.0006333089550025761, -0.08508048206567764, -0.018711667507886887, 0.01928047463297844, -0.05026087909936905, 0.0029638735577464104, -0.022173572331666946, -0.07966280728578568, -7.00974317765399e-33, 0.0845385417342186, -0.03715920448303223, 0.016835497692227364, 0.06783395260572433, -0.03483514487743378, 0.05182517319917679, -0.002063860883936286, 0.08390581607818604, -0.02614174596965313, -0.01924790069460869, -0.05760277062654495, 0.010999886319041252, -0.021293548867106438, -0.061353590339422226, -0.04897427186369896, -0.029042357578873634, -0.05862558260560036, -0.09516885876655579, -0.0030623788479715586, 0.040042728185653687, 0.001732675707899034, 0.046582166105508804, 0.06277307122945786, 0.05626922845840454, 0.004885327536612749, -0.03557049110531807, 0.021516339853405952, 0.09883682429790497, -0.03526638448238373, -0.057286083698272705, 0.01854630559682846, -0.043887972831726074, -0.11405395716428757, -0.06985780596733093, -0.014866282232105732, -0.031807754188776016, 0.09098760038614273, 0.03929329290986061, -0.05143936723470688, -0.021802447736263275, -0.011852549389004707, -0.020101644098758698, -0.07999873161315918, -0.01423317939043045, -0.07612252235412598, 0.0523771196603775, 0.12698498368263245, -0.018676254898309708, 0.0355973020195961, -0.038433756679296494, 0.04626104235649109, 0.021434804424643517, -0.044480882585048676, 0.12849348783493042, -0.0028007125947624445, 0.013224517926573753, 0.009061802178621292, 0.07790649682283401, -0.038481391966342926, -0.05589259788393974, 0.059486016631126404, -0.05662094056606293, 0.0025403553154319525, -0.010364444926381111, -0.02647932805120945, -0.022030435502529144, 0.05693791061639786, 0.01733413152396679, -0.059862490743398666, 0.009209176525473595, 0.018063124269247055, -0.0039544012397527695, 0.07095260173082352, -0.029801873490214348, 0.0440002903342247, -0.063304103910923, -0.10176191478967667, -0.05963045731186867, 0.013085347600281239, 0.029463663697242737, -0.029164066538214684, 0.027476541697978973, -0.038815975189208984, 0.04311157017946243, 0.06931905448436737, -0.009945793077349663, 0.05134299397468567, 0.10208717733621597, 0.04984752833843231, 0.07810819894075394, -0.060578662902116776, 0.024317381903529167, -0.05335189774632454, 0.05926883965730667, 0.008623135276138783, -5.096274691140934e-8, 0.02480556257069111, 0.050527557730674744, -0.04347873479127884, 0.03829120844602585, -0.027013543993234634, -0.10151342302560806, 0.04542692005634308, 0.05401582643389702, -0.03843678534030914, -0.017988603562116623, 0.05567755922675133, 0.08601166307926178, -0.005313200876116753, -0.031319960951805115, -0.05884586274623871, -0.03614351153373718, -0.0003506893408484757, 0.049759987741708755, 0.009738609194755554, -0.058808110654354095, -0.04094994068145752, -0.009127299301326275, -0.022703668102622032, -0.0002591384982224554, 0.05780826508998871, 0.09416425228118896, 0.017975308001041412, -0.003915066830813885, 0.060740891844034195, -0.055156368762254715, 0.05378575250506401, -0.016442200168967247, 0.005494503770023584, 0.045124247670173645, -0.03605475276708603, 0.07668130099773407, 0.016035575419664383, 0.07851029187440872, 0.03975892439484596, 0.006478206720203161, -0.044389206916093826, -0.05067726597189903, -0.06300050765275955, 0.0056729563511908054, -0.020754536613821983, 0.06788846105337143, -0.044146474450826645, 0.1043793112039566, -0.05839277431368828, 0.08245934545993805, -0.010791203938424587, -0.08142964541912079, 0.0022056791931390762, 0.06794445216655731, 0.018741222098469734, 0.02078251913189888, 0.00869195256382227, 0.011265172623097897, 0.08199764788150787, 0.08666831254959106, 0.12679122388362885, 0.017525795847177505, 0.03641076758503914, 0.015378289856016636 ]
0.086027
and newer controllers are able to interoperate because the fields are the same. ### Using volume populators Volume populators are {{< glossary\_tooltip text="controllers" term\_id="controller" >}} that can create non-empty volumes, where the contents of the volume are determined by a Custom Resource. Users create a populated volume by referring to a Custom Resource using the `dataSourceRef` field: ```yaml apiVersion: v1 kind: PersistentVolumeClaim metadata: name: populated-pvc spec: dataSourceRef: name: example-name kind: ExampleDataSource apiGroup: example.storage.k8s.io accessModes: - ReadWriteOnce resources: requests: storage: 10Gi ``` Because volume populators are external components, attempts to create a PVC that uses one can fail if not all the correct components are installed. External controllers should generate events on the PVC to provide feedback on the status of the creation, including warnings if the PVC cannot be created due to some missing component. You can install the alpha [volume data source validator](https://github.com/kubernetes-csi/volume-data-source-validator) controller into your cluster. That controller generates warning Events on a PVC in the case that no populator is registered to handle that kind of data source. When a suitable populator is installed for a PVC, it's the responsibility of that populator controller to report Events that relate to volume creation and issues during the process. ### Using a cross-namespace volume data source {{< feature-state for\_k8s\_version="v1.26" state="alpha" >}} Create a ReferenceGrant to allow the namespace owner to accept the reference. You define a populated volume by specifying a cross namespace volume data source using the `dataSourceRef` field. You must already have a valid ReferenceGrant in the source namespace: ```yaml apiVersion: gateway.networking.k8s.io/v1beta1 kind: ReferenceGrant metadata: name: allow-ns1-pvc namespace: default spec: from: - group: "" kind: PersistentVolumeClaim namespace: ns1 to: - group: snapshot.storage.k8s.io kind: VolumeSnapshot name: new-snapshot-demo ``` ```yaml apiVersion: v1 kind: PersistentVolumeClaim metadata: name: foo-pvc namespace: ns1 spec: storageClassName: example accessModes: - ReadWriteOnce resources: requests: storage: 1Gi dataSourceRef: apiGroup: snapshot.storage.k8s.io kind: VolumeSnapshot name: new-snapshot-demo namespace: default volumeMode: Filesystem ``` ## Writing Portable Configuration If you're writing configuration templates or examples that run on a wide range of clusters and need persistent storage, it is recommended that you use the following pattern: - Include PersistentVolumeClaim objects in your bundle of config (alongside Deployments, ConfigMaps, etc). - Do not include PersistentVolume objects in the config, since the user instantiating the config may not have permission to create PersistentVolumes. - Give the user the option of providing a storage class name when instantiating the template. - If the user provides a storage class name, put that value into the `persistentVolumeClaim.storageClassName` field. This will cause the PVC to match the right storage class if the cluster has StorageClasses enabled by the admin. - If the user does not provide a storage class name, leave the `persistentVolumeClaim.storageClassName` field as nil. This will cause a PV to be automatically provisioned for the user with the default StorageClass in the cluster. Many cluster environments have a default StorageClass installed, or administrators can create their own default StorageClass. - In your tooling, watch for PVCs that are not getting bound after some time and surface this to the user, as this may indicate that the cluster has no dynamic storage support (in which case the user should create a matching PV) or the cluster has no storage system (in which case the user cannot deploy config requiring PVCs). ## {{% heading "whatsnext" %}} \* Learn more about [Creating a PersistentVolume](/docs/tasks/configure-pod-container/configure-persistent-volume-storage/#create-a-persistentvolume). \* Learn more about [Creating a PersistentVolumeClaim](/docs/tasks/configure-pod-container/configure-persistent-volume-storage/#create-a-persistentvolumeclaim). \* Read the [Persistent Storage design document](https://git.k8s.io/design-proposals-archive/storage/persistent-storage.md). ### API references {#reference} Read about the APIs described in this page: \* [`PersistentVolume`](/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-v1/) \* [`PersistentVolumeClaim`](/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-claim-v1/)
null
./vendor/kubernetes/content/en/docs/concepts/storage/persistent-volumes.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/storage/persistent-volumes.md
[ -0.063026562333107, -0.10993858426809311, -0.04111479967832565, -0.022633502259850502, -0.03568706661462784, -0.046349313110113144, 0.024692479521036148, 0.023212533444166183, 0.10236574709415436, 0.0278153158724308, 0.02154865860939026, -0.060959767550230026, 0.05876948684453964, 0.012527242302894592, 0.020297834649682045, 0.02323400415480137, 0.09714535623788834, -0.05751680210232735, -0.07361995428800583, 0.04584326222538948, 0.0938410609960556, 0.07088498026132584, -0.014251096174120903, -0.01557862851768732, -0.04316394776105881, -0.01612319052219391, -0.05818912759423256, 0.043809760361909866, 0.0977301299571991, -0.009235256351530552, 0.050414323806762695, -0.011525033041834831, -0.06454328447580338, -0.016256943345069885, 0.0675111636519432, -0.023868361487984657, 0.03444604575634003, -0.01738937944173813, -0.05437999218702316, -0.03675729036331177, 0.07798738777637482, -0.021344652399420738, -0.06272540241479874, -0.022681353613734245, -0.06444833427667618, 0.01751021482050419, -0.03569163754582405, -0.09058006852865219, -0.06444574147462845, 0.05636882781982422, 0.034703996032476425, -0.1467658430337906, 0.055508363991975784, 0.08184244483709335, 0.0003305568534415215, -0.017491653561592102, 0.00795744825154543, 0.09991102665662766, 0.0652090534567833, 0.023089401423931122, -0.003336811438202858, 0.024957457557320595, 0.014829828403890133, -0.017814205959439278, -0.022559376433491707, -0.0120271360501647, 0.0321127288043499, 0.002554668579250574, -0.02482449822127819, -0.10038482397794724, 0.037610284984111786, 0.04427887499332428, -0.006980822421610355, 0.03185389190912247, -0.016201427206397057, 0.031803589314222336, -0.06980309635400772, 0.021038098260760307, -0.0036824701819568872, -0.08791694045066833, 0.04043809697031975, 0.08526883274316788, -0.07621700316667557, 0.0234967153519392, -0.02318882755935192, -0.047691553831100464, -0.05734245106577873, 0.0842488706111908, 0.0173437912017107, -0.020926179364323616, 0.06861599534749985, -0.058399807661771774, 0.022489849478006363, -0.002999460557475686, 0.08035802096128464, -0.019520165398716927, -0.0261988528072834, -0.08568991720676422, 0.03828630968928337, -0.03605096787214279, -0.06964705884456635, 0.02584276720881462, -0.05566125735640526, 0.022402875125408173, 0.0466415174305439, -0.07061737775802612, -0.053928520530462265, 0.10489272326231003, -0.09008081257343292, 0.04063655436038971, -0.0021239568013697863, 0.006930483039468527, -0.003978683613240719, -0.01933174580335617, 0.05832546204328537, 0.018378812819719315, -0.0010573199251666665, 0.011152260936796665, -0.08252269774675369, -0.06331192702054977, -0.03123222291469574, -0.1195773184299469, -0.03390449658036232, -0.00269553461112082, 0.07285913079977036, -0.0156377125531435, -0.02107798308134079, 6.624576290559743e-33, 0.041836414486169815, -0.05146758630871773, -0.012395576573908329, 0.04452357441186905, -0.017292972654104233, -0.002389451488852501, 0.0723235234618187, -0.019548164680600166, 0.007853513583540916, -0.09376062452793121, 0.0010163006372749805, 0.17190058529376984, -0.06734537333250046, -0.05436110123991966, -0.021226881071925163, -0.018884601071476936, -0.0030367092695087194, 0.09524513781070709, 0.019505351781845093, -0.03987938165664673, 0.0704934224486351, 0.0033764177933335304, 0.026893749833106995, -0.020187539979815483, 0.06867250055074692, 0.048188842833042145, 0.011058859527111053, -0.029560508206486702, 0.04227125272154808, 0.012853279709815979, -0.03372523933649063, 0.01689520664513111, 0.03512943536043167, 0.011566860601305962, 0.001750644645653665, -0.015143792144954205, -0.05036351829767227, -0.016851574182510376, -0.05105571821331978, -0.009009705856442451, 0.0338350385427475, -0.059976644814014435, -0.04264752194285393, -0.007204006426036358, -0.04854089021682739, -0.024259397760033607, -0.035773906856775284, -0.019958483055233955, 0.056506503373384476, -0.006808687932789326, 0.01725424826145172, 0.036068420857191086, -0.029606271535158157, -0.004236509557813406, 0.06510066241025925, -0.060793206095695496, -0.07017748057842255, -0.051785148680210114, -0.004916429985314608, -0.054196909070014954, -0.005011813715100288, 0.07058396190404892, 0.017191091552376747, 0.04350386559963226, -0.024169502779841423, 0.004188298247754574, 0.034184083342552185, -0.05561766400933266, 0.061138980090618134, -0.0751095861196518, -0.011089909821748734, -0.008815157227218151, -0.05730872228741646, -0.006113219074904919, 0.06612981110811234, -0.1528121531009674, -0.0011000047670677304, -0.02716010808944702, -0.025683321058750153, -0.0010815563146024942, -0.017093539237976074, -0.05102267116308212, -0.030386386439204216, 0.12054499983787537, 0.00912780687212944, -0.04151863977313042, 0.004284190479665995, 0.03339236602187157, -0.08541080355644226, -0.08752758055925369, -0.0201493538916111, -0.03771708533167839, -0.032599788159132004, -0.0086663868278265, -0.020514940842986107, -7.65233965415847e-33, 0.08481087535619736, -0.07202941924333572, 0.019073322415351868, 0.02401634491980076, 0.008755956776440144, 0.041904859244823456, 0.00978031288832426, 0.017439868301153183, 0.012256229296326637, -0.03195866942405701, -0.061308227479457855, 0.05362408980727196, -0.019446324557065964, 0.007281132508069277, -0.06380057334899902, -0.016348620876669884, -0.10316915810108185, -0.059845421463251114, 0.043619848787784576, 0.017920546233654022, -0.025227919220924377, 0.021824195981025696, 0.03014453500509262, 0.04563872143626213, -0.031922802329063416, -0.033311858773231506, -0.05660320073366165, 0.021135205402970314, -0.017796698957681656, -0.014858793467283249, 0.003094850108027458, 0.006633463315665722, -0.013595250435173512, -0.1446843147277832, -0.012745519168674946, -0.022955041378736496, 0.08012635260820389, -0.032573845237493515, -0.10447917878627777, -0.007163126952946186, 0.0019290937343612313, -0.05794580280780792, -0.033811140805482864, -0.08674643188714981, -0.07388085871934891, -0.033768437802791595, 0.08965348452329636, -0.03825940191745758, 0.014413478784263134, -0.005254726391285658, 0.05594669654965401, -0.010854043997824192, -0.03166831284761429, 0.04075202718377113, -0.0012596900342032313, -0.016732091084122658, 0.045623891055583954, 0.03439364954829216, -0.06968426704406738, -0.05536778271198273, 0.07462210953235626, -0.029965508729219437, 0.010977190919220448, 0.016730088740587234, -0.02934468910098076, 0.0553959421813488, 0.1291341930627823, 0.005159003660082817, 0.07888435572385788, -0.026359472423791885, -0.004687367007136345, -0.08271660655736923, 0.060701481997966766, -0.03244350850582123, 0.10476482659578323, -0.00714249350130558, -0.0380934439599514, -0.1209396943449974, 0.040399301797151566, -0.04206399992108345, -0.06262806057929993, 0.050602588802576065, 0.05651170387864113, 0.0621008574962616, 0.04919423162937164, 0.023117776960134506, 0.03304530680179596, 0.055710986256599426, -0.0248937476426363, 0.039001721888780594, -0.07759809494018555, 0.006705967243760824, 0.0008926470763981342, 0.13397416472434998, 0.025306852534413338, -6.10918462484733e-8, 0.03231213614344597, 0.1163109689950943, -0.005414695478975773, 0.02608484774827957, -0.057006534188985825, -0.08965985476970673, 0.011308090761303902, 0.045941293239593506, -0.009916956536471844, 0.04860686510801315, 0.09828467667102814, -0.00948677584528923, -0.0019218322122469544, -0.034449126571416855, 0.015379149466753006, 0.01785026118159294, 0.0037313320208340883, 0.01654081791639328, -0.014528854750096798, -0.08251925557851791, 0.05235595628619194, 0.005447544157505035, 0.008961102925240993, -0.05008545517921448, 0.08017386496067047, 0.049299757927656174, -0.03538236394524574, -0.029803872108459473, -0.02953965775668621, -0.022172028198838234, 0.07515887916088104, -0.023322785273194313, -0.0027322827372699976, 0.07792460173368454, 0.0025561184156686068, 0.09032317996025085, -0.0034176846966147423, 0.0299388375133276, 0.030835097655653954, -0.0029855233151465654, -0.008481625467538834, 0.00886589102447033, -0.07097125053405762, -0.0029616965912282467, 0.08470773696899414, 0.0998932272195816, -0.03461834415793419, 0.060850948095321655, -0.035462770611047745, 0.07626049965620041, -0.06348450481891632, 0.0029284616466611624, -0.02848498709499836, 0.05770602077245712, 0.04645676538348198, -0.0033726354595273733, -0.042375583201646805, 0.03459959849715233, 0.07092941552400589, 0.07557902485132217, 0.038254089653491974, 0.04215214028954506, 0.03760196641087532, -0.007898763753473759 ]
0.002893
more about [Creating a PersistentVolume](/docs/tasks/configure-pod-container/configure-persistent-volume-storage/#create-a-persistentvolume). \* Learn more about [Creating a PersistentVolumeClaim](/docs/tasks/configure-pod-container/configure-persistent-volume-storage/#create-a-persistentvolumeclaim). \* Read the [Persistent Storage design document](https://git.k8s.io/design-proposals-archive/storage/persistent-storage.md). ### API references {#reference} Read about the APIs described in this page: \* [`PersistentVolume`](/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-v1/) \* [`PersistentVolumeClaim`](/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-claim-v1/)
null
./vendor/kubernetes/content/en/docs/concepts/storage/persistent-volumes.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/storage/persistent-volumes.md
[ -0.04323768615722656, -0.0007839694153517485, 0.009562451392412186, 0.014552820473909378, -0.052004773169755936, -0.0030314638279378414, -0.03707180917263031, 0.056212328374385834, 0.07339474558830261, 0.03384678065776825, -0.028191519901156425, 0.010194577276706696, 0.04753011837601662, 0.009723840281367302, -0.058258626610040665, -0.025222579017281532, 0.026104183867573738, 0.007602591533213854, -0.05206041410565376, 0.004455300513654947, 0.06413055956363678, 0.0161155816167593, 0.02849297598004341, -0.0000499982743349392, 0.0011313915019854903, -0.010161425918340683, -0.0009672964224591851, -0.06076107919216156, 0.013329679146409035, -0.02961326576769352, 0.023329801857471466, 0.014852264896035194, -0.040317922830581665, -0.007792613469064236, 0.05040117725729942, 0.09269508719444275, -0.01668929122388363, -0.07195770740509033, -0.07961936295032501, -0.01733553037047386, 0.05097109079360962, -0.08040956407785416, -0.10251456499099731, -0.0333692766726017, -0.03144560009241104, 0.02690735273063183, 0.005158089101314545, -0.02897823415696621, 0.005723736714571714, 0.023875974118709564, 0.013005156069993973, -0.1046828180551529, 0.067452572286129, 0.09635312110185623, 0.03639215975999832, 0.07979895174503326, -0.009064247831702232, 0.08594848960638046, 0.08417730033397675, 0.022883890196681023, 0.04937345162034035, 0.02447141893208027, 0.0711032822728157, 0.00002567958836152684, 0.007663308642804623, 0.025940261781215668, 0.043218713253736496, 0.04781530797481537, 0.0526159442961216, -0.0014112594071775675, 0.08063924312591553, 0.11518268287181854, -0.0899813175201416, -0.01423739641904831, 0.040483299642801285, -0.027546504512429237, -0.04737278074026108, 0.03423219919204712, -0.01512859296053648, -0.0033570220693945885, 0.030508385971188545, 0.03303486853837967, 0.006239252630621195, -0.035985320806503296, -0.06036479026079178, -0.03164232149720192, -0.02489575184881687, 0.00817804504185915, -0.006822876166552305, -0.060260873287916183, 0.010503296740353107, -0.024810543283820152, 0.010001007467508316, -0.0910959541797638, 0.0237809456884861, -0.04313361272215843, -0.07540775835514069, 0.01678663119673729, 0.051435988396406174, -0.06486404687166214, -0.0025869947858154774, -0.005730357952415943, -0.02529950812458992, 0.06778260320425034, 0.0847785621881485, -0.14723238348960876, -0.0016873728018254042, -0.007797383237630129, -0.05286695435643196, 0.07916917651891708, 0.0241486094892025, 0.0015096934512257576, -0.005569235421717167, 0.07469932734966278, 0.07147302478551865, 0.06790613383054733, -0.04665258899331093, 0.033974260091781616, 0.038890525698661804, 0.011610379442572594, 0.06396610289812088, -0.08392928540706635, -0.04067719355225563, -0.008037060499191284, -0.027994636446237564, 0.04326339066028595, -0.009780244901776314, 1.4714915425410168e-33, 0.049905240535736084, -0.06587576121091843, 0.03207026794552803, 0.012520912103354931, 0.02313743159174919, -0.1227663904428482, -0.000815303937997669, 0.010838432237505913, -0.008277432061731815, -0.08358829468488693, -0.05717712268233299, 0.10990208387374878, -0.061397720128297806, -0.029858257621526718, -0.012194357812404633, -0.05645163357257843, -0.06207628175616264, 0.04177337884902954, 0.104530930519104, -0.044973231852054596, 0.034568365663290024, 0.027312586084008217, -0.008535772562026978, -0.02411213330924511, 0.0651034489274025, -0.038834668695926666, 0.07807586342096329, -0.09170930087566376, -0.039988890290260315, 0.024156294763088226, -0.07169010490179062, 0.017377903684973717, 0.028043994680047035, -0.005905331112444401, -0.12766826152801514, -0.025832828134298325, -0.09458725899457932, 0.034239210188388824, -0.12514369189739227, -0.05756520852446556, 0.0678095743060112, -0.03684288263320923, -0.015968849882483482, -0.05294666066765785, -0.00763475289568305, -0.07634871453046799, 0.02878192812204361, -0.045632828027009964, 0.08124255388975143, 0.10352224111557007, 0.04249953478574753, -0.01826081983745098, -0.02976248413324356, -0.025551551952958107, 0.02721494808793068, -0.017534196376800537, 0.03485666215419769, -0.10710974037647247, -0.0064527238719165325, -0.03242989256978035, -0.031264688819646835, 0.024294402450323105, 0.04481867328286171, 0.0027233303990215063, -0.003263106569647789, 0.06110875681042671, -0.029823103919625282, -0.016787292435765266, 0.03640658035874367, -0.06318150460720062, -0.00999112892895937, -0.027396585792303085, -0.05624818801879883, -0.01030299998819828, -0.05253276973962784, -0.0741795152425766, -0.013252068310976028, 0.003316932823508978, -0.09938878566026688, 0.020420286804437637, 0.021563589572906494, -0.041308194398880005, -0.05123430863022804, 0.08427988737821579, 0.007141888607293367, -0.01669246144592762, 0.06722187250852585, -0.025693468749523163, -0.09452716261148453, -0.0016622988041490316, 0.0457453653216362, -0.005337338894605637, 0.006879662629216909, 0.002279752865433693, -0.04552535340189934, -2.308048627693006e-33, 0.09691546112298965, 0.0033644107170403004, -0.013450123369693756, 0.0508565679192543, 0.01353052631020546, 0.06360546499490738, -0.016132984310388565, 0.06624485552310944, -0.006605921313166618, -0.059360262006521225, -0.10981839150190353, -0.03120901994407177, -0.019509300589561462, 0.02603684924542904, -0.08519525080919266, -0.05004539713263512, -0.07587838172912598, -0.06167829409241676, 0.0064592426642775536, 0.04956880956888199, -0.013839524239301682, 0.010975104756653309, 0.01329033076763153, 0.052995096892118454, -0.019699983298778534, -0.01651926524937153, 0.04481258988380432, 0.04242691025137901, -0.04141400381922722, -0.06373894959688187, -0.031663015484809875, -0.07907944172620773, -0.06578047573566437, -0.045584119856357574, 0.02179279550909996, -0.06223422288894653, 0.0535769946873188, 0.04250508174300194, -0.046641755849123, -0.02751455269753933, 0.058200281113386154, -0.01503965724259615, -0.030109215527772903, -0.025691775605082512, -0.05722614377737045, 0.009444864466786385, 0.09286611527204514, -0.03628198429942131, 0.016011839732527733, -0.06071474403142929, 0.05406966432929039, 0.02331056259572506, -0.07543191313743591, 0.07219152897596359, -0.014653666876256466, 0.06183985620737076, 0.021762017160654068, 0.09543698281049728, 0.008095131255686283, -0.015657007694244385, 0.06377239525318146, -0.09974247962236404, 0.05653466284275055, 0.0030667120590806007, -0.07209847122430801, -0.07281327992677689, 0.020733682438731194, 0.03344317525625229, -0.07755322009325027, 0.052878156304359436, 0.021278848871588707, -0.00871956255286932, 0.07641520351171494, 0.05025862529873848, 0.061546579003334045, -0.07884599268436432, -0.01051771454513073, -0.0824536681175232, 0.06805583089590073, 0.029919404536485672, -0.0702177882194519, 0.052502136677503586, -0.0462602935731411, 0.009152304381132126, 0.05855525657534599, 0.00864139012992382, 0.04514167830348015, 0.07915417104959488, 0.061360083520412445, 0.09365321695804596, -0.026111165061593056, 0.01796845905482769, -0.07756353169679642, 0.05836699903011322, -0.03629041835665703, -4.6225846261904735e-8, 0.04802077263593674, 0.035245880484580994, -0.0225589070469141, 0.09634190797805786, -0.03402898088097572, -0.12165626883506775, 0.0847664549946785, 0.030107179656624794, -0.04464643821120262, -0.04524623975157738, 0.026177480816841125, 0.04941219463944435, -0.0331902951002121, -0.022621409967541695, -0.03440433368086815, 0.02008787915110588, 0.011482044123113155, 0.006672156509011984, -0.0014399564824998379, -0.027612073346972466, -0.022960342466831207, -0.02304190769791603, 0.017732582986354828, -0.02993721514940262, 0.05836997926235199, 0.11120418459177017, 0.07013329118490219, 0.04827054217457771, 0.04201587289571762, -0.007338756695389748, 0.0050334688276052475, 0.028309857472777367, -0.006767999846488237, 0.05437743291258812, -0.05078564211726189, 0.012405780144035816, -0.08070767670869827, 0.07282999157905579, -0.024408871307969093, 0.009578239172697067, -0.04416203498840332, -0.04005635529756546, -0.02995380014181137, 0.013378945179283619, 0.006195064168423414, 0.06531598418951035, 0.004488359205424786, 0.10528136789798737, -0.05530034378170967, 0.07828608900308609, -0.05295281857252121, -0.07317887991666794, 0.011243489570915699, 0.09597422182559967, 0.057101279497146606, -0.0063634589314460754, 0.03258451074361801, -0.006853568833321333, 0.05479012057185173, 0.05854833871126175, 0.07976609468460083, 0.05617843195796013, 0.010531632229685783, 0.027348391711711884 ]
0.119035
Nodes have local ephemeral storage, backed by locally-attached writeable devices or, sometimes, by RAM. "Ephemeral" means that there is no long-term guarantee about durability. Pods use ephemeral local storage for scratch space, caching, and for logs. The kubelet can provide scratch space to Pods using local ephemeral storage to mount [`emptyDir`](/docs/concepts/storage/volumes/#emptydir) {{< glossary\_tooltip term\_id="volume" text="volumes" >}} into containers. The kubelet also uses this kind of storage to hold [node-level container logs](/docs/concepts/cluster-administration/logging/#logging-at-the-node-level), container images, and the writable layers of running containers. {{< caution >}} If a node fails, the data in its ephemeral storage can be lost. Your applications cannot expect any performance SLAs (disk IOPS for example) from local ephemeral storage. {{< /caution >}} {{< note >}} To make the resource quota work on ephemeral-storage, two things need to be done: \* An admin sets the resource quota for ephemeral-storage in a namespace. \* A user needs to specify limits for the ephemeral-storage resource in the Pod spec. If the user doesn't specify the ephemeral-storage resource limit in the Pod spec, the resource quota is not enforced on ephemeral-storage. {{< /note >}} Kubernetes lets you track, reserve and limit the amount of ephemeral local storage a Pod can consume. ## Configurations for local ephemeral storage {#configurations} Kubernetes supports two ways to configure local ephemeral storage on a node: {{< tabs name="local\_storage\_configurations" >}} {{% tab name="Single filesystem" %}} In this configuration, you place all different kinds of ephemeral local data (`emptyDir` volumes, writeable layers, container images, logs) into one filesystem. The most effective way to configure the kubelet means dedicating this filesystem to Kubernetes (kubelet) data. The kubelet also writes [node-level container logs](/docs/concepts/cluster-administration/logging/#logging-at-the-node-level) and treats these similarly to ephemeral local storage. The kubelet writes logs to files inside its configured log directory (`/var/log` by default); and has a base directory for other locally stored data (`/var/lib/kubelet` by default). Typically, both `/var/lib/kubelet` and `/var/log` are on the system root filesystem, and the kubelet is designed with that layout in mind. Your node can have as many other filesystems, not used for Kubernetes, as you like. {{% /tab %}} {{% tab name="Two filesystems" %}} You have a filesystem on the node that you're using for ephemeral data that comes from running Pods: logs, and `emptyDir` volumes. You can use this filesystem for other data (for example: system logs not related to Kubernetes); it can even be the root filesystem. The kubelet also writes [node-level container logs](/docs/concepts/cluster-administration/logging/#logging-at-the-node-level) into the first filesystem, and treats these similarly to ephemeral local storage. You also use a separate filesystem, backed by a different logical storage device. In this configuration, the directory where you tell the kubelet to place container image layers and writeable layers is on this second filesystem. The first filesystem does not hold any image layers or writeable layers. Your node can have as many other filesystems, not used for Kubernetes, as you like. {{% /tab %}} {{< /tabs >}} The kubelet can measure how much local storage it is using. It does this provided that you have set up the node using one of the supported configurations for local ephemeral storage. If you have a different configuration, then the kubelet does not apply resource limits for ephemeral local storage. {{< note >}} The kubelet tracks `tmpfs` emptyDir volumes as container memory use, rather than as local ephemeral storage. {{< /note >}} {{< note >}} The kubelet will only track the root filesystem for ephemeral storage. OS layouts that mount a separate disk to `/var/lib/kubelet` or `/var/lib/containers` will not report ephemeral storage correctly. {{< /note >}} ## Setting requests and limits for local ephemeral storage {#requests-limits}
null
./vendor/kubernetes/content/en/docs/concepts/storage/ephemeral-storage.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/storage/ephemeral-storage.md
[ 0.01369106862694025, 0.03762815520167351, 0.05522778630256653, 0.028032928705215454, 0.012470952235162258, -0.04762090742588043, -0.018102530390024185, 0.029156213626265526, 0.09794659912586212, 0.04269580915570259, -0.008187946863472462, -0.05077235400676727, 0.009183380752801895, -0.0227739866822958, -0.005342565011233091, -0.044075049459934235, 0.038158856332302094, 0.015928426757454872, -0.027385536581277847, 0.046314872801303864, 0.05946563929319382, 0.011019210331141949, 0.04330522194504738, 0.03766917437314987, -0.0024282773956656456, 0.03265368938446045, -0.040639229118824005, -0.05437004566192627, 0.05468505248427391, -0.0335477814078331, -0.022677317261695862, 0.007543512620031834, 0.014774528332054615, 0.05424783006310463, 0.09109427779912949, 0.11323156952857971, 0.02049381472170353, -0.07808606326580048, -0.10703173279762268, -0.022674988955259323, 0.013217233121395111, -0.0013368629151955247, -0.10522150248289108, 0.0278872549533844, -0.03253430500626564, -0.004924405366182327, -0.03669954463839531, -0.0686725303530693, -0.05808630213141441, -0.04526424780488014, 0.058699995279312134, -0.06254904717206955, 0.0764305591583252, 0.05922311544418335, 0.05919240787625313, 0.06299318373203278, 0.017903154715895653, 0.03564794361591339, 0.058101776987314224, 0.03929464891552925, 0.04896140098571777, -0.029700256884098053, 0.03774167224764824, -0.028303980827331543, 0.03651727735996246, -0.025429049506783485, 0.010010472498834133, 0.045394204556941986, -0.026900682598352432, 0.018938152119517326, 0.05318664014339447, 0.03162967786192894, -0.052292708307504654, 0.041676755994558334, -0.0028401354793459177, 0.010738786309957504, -0.013876755721867085, 0.04790668562054634, -0.029738223180174828, -0.014219315722584724, -0.020378803834319115, 0.0679628923535347, 0.05785991996526718, -0.02622162364423275, -0.11578520387411118, -0.039445552974939346, -0.03036864474415779, 0.013407154008746147, -0.001880037714727223, -0.03833574056625366, 0.05273998901247978, 0.028732959181070328, 0.026562491431832314, -0.05075614154338837, 0.04531000554561615, -0.030353303998708725, -0.00579907326027751, 0.03934092819690704, 0.06756945699453354, -0.020972516387701035, 0.05300546810030937, 0.07425004243850708, -0.059727441519498825, -0.001499471953138709, 0.050988491624593735, -0.0826706662774086, -0.03724655881524086, -0.023318607360124588, -0.02698453515768051, 0.07668361812829971, 0.016598301008343697, 0.005466356407850981, -0.06614585965871811, 0.0848468467593193, 0.008826587349176407, -0.0024445154704153538, -0.05433358624577522, -0.03926989808678627, 0.013297799043357372, 0.06776517629623413, 0.06312979012727737, -0.05482881888747215, -0.03310400992631912, 0.0019951669964939356, -0.004327551461756229, -0.023120306432247162, 0.011808115988969803, 3.8646819607480504e-33, 0.07779715955257416, -0.08963145315647125, 0.01911013014614582, -0.04933493584394455, -0.0034013367258012295, -0.046044398099184036, -0.03673076257109642, 0.0032923161052167416, -0.07916876673698425, -0.0781192034482956, -0.08349040150642395, 0.07417682558298111, -0.02699095569550991, -0.014148019254207611, 0.0861157774925232, -0.005274288356304169, -0.06330516934394836, 0.07632957398891449, 0.09210404008626938, -0.06005878746509552, 0.029512662440538406, -0.05377032980322838, -0.04329726845026016, 0.0016382175963371992, 0.010044977068901062, -0.023256858810782433, 0.050696298480033875, -0.1093696802854538, -0.0030883329454809427, 0.024990562349557877, -0.06369353830814362, 0.04130018502473831, 0.016142671927809715, 0.03203346207737923, -0.09968937188386917, 0.06115248426795006, -0.02919367328286171, 0.020802434533834457, -0.09223061054944992, -0.047752510756254196, 0.01950911618769169, 0.00938379019498825, 0.03574322536587715, -0.08296260237693787, -0.019205911085009575, -0.06452193111181259, 0.06698306649923325, -0.08023214340209961, -0.04211970046162605, 0.09269169718027115, -0.01177586056292057, -0.013493116945028305, -0.025799842551350594, 0.04250654950737953, 0.01878945156931877, 0.049165256321430206, 0.10722099989652634, -0.09980662167072296, -0.010760807432234287, 0.016150053590536118, -0.019081518054008484, 0.04401863366365433, 0.058785539120435715, 0.02992061898112297, -0.020058775320649147, 0.08899664878845215, 0.026110004633665085, 0.05507330968976021, 0.010237706825137138, -0.006457620300352573, -0.03856642171740532, -0.009143578819930553, 0.0035678402055054903, 0.02079339139163494, -0.07192458212375641, -0.033280666917562485, -0.009566647931933403, -0.009220017120242119, -0.18048161268234253, 0.026181062683463097, 0.013743392191827297, -0.12088046967983246, -0.07104737311601639, 0.05958770215511322, -0.012642876245081425, -0.0649850070476532, 0.036464590579271317, 0.051845110952854156, -0.07002463936805725, 0.04128306731581688, 0.04895398020744324, -0.024838631972670555, -0.016273824498057365, -0.05411887168884277, -0.13126307725906372, -3.711861450327414e-33, 0.12215808033943176, -0.0020336261950433254, 0.018869273364543915, 0.023364929482340813, -0.013234818354249, 0.04392377287149429, -0.0717795342206955, 0.03713763505220413, -0.04934048280119896, -0.049755509942770004, -0.12619660794734955, -0.04449158161878586, 0.036954667419195175, 0.05550188198685646, -0.1123688593506813, 0.017523106187582016, -0.05699298903346062, -0.05210283771157265, 0.006853703409433365, 0.009706194512546062, 0.008249431848526001, -0.031218532472848892, -0.001215392374433577, 0.038709305226802826, -0.023827513679862022, 0.012874282896518707, -0.005190560128539801, -0.037538930773735046, -0.08737847954034805, -0.06820059567689896, 0.011325160972774029, -0.1434229165315628, -0.05774751678109169, -0.04530109092593193, 0.044651713222265244, -0.0770794227719307, -0.01662507653236389, 0.0477483868598938, -0.03337429463863373, -0.04724057391285896, 0.009380639530718327, 0.04870564863085747, -0.012080280110239983, -0.047513697296381, -0.02644738182425499, 0.006033413112163544, -0.014577644877135754, -0.02003195509314537, 0.05076032876968384, -0.07319927215576172, 0.01950720138847828, -0.019221901893615723, 0.0005793565651401877, 0.09042112529277802, -0.008920963853597641, -0.006343259941786528, -0.0026526902802288532, 0.062925323843956, -0.04851793497800827, -0.04987689107656479, 0.0727396309375763, -0.09774582833051682, -0.004420857410877943, -0.00005177721322979778, -0.045448847115039825, -0.12787072360515594, 0.009700153023004532, 0.020586121827363968, -0.05184456706047058, 0.04441038891673088, 0.06077990680932999, 0.024833479896187782, 0.05339883267879486, 0.05680282786488533, -0.00948590412735939, 0.04891325905919075, 0.017341893166303635, -0.0671747475862503, 0.07432913035154343, 0.012503723613917828, -0.06052534654736519, 0.11359357833862305, -0.03605249896645546, 0.04635258764028549, 0.0747821182012558, -0.0016905919183045626, 0.024036547169089317, 0.037045132368803024, 0.03702899068593979, 0.055156391113996506, -0.017998145893216133, 0.03666495904326439, -0.053143467754125595, 0.1124996617436409, -0.01964324153959751, -4.7702350514100544e-8, 0.039847321808338165, -0.005245618522167206, -0.014074722304940224, 0.0682685375213623, 0.007214214652776718, -0.08631223440170288, 0.07724341005086899, 0.07015451788902283, -0.0012200323399156332, 0.03595709800720215, 0.013538544066250324, 0.00466057937592268, -0.07272320240736008, -0.056469351053237915, 0.019773174077272415, 0.017568301409482956, 0.07521223276853561, 0.019658980891108513, 0.001370827667415142, -0.008198250085115433, -0.06279540061950684, -0.03445145860314369, 0.014376730658113956, 0.0220197606831789, 0.04497750103473663, 0.03887854143977165, 0.09092428535223007, 0.0548505038022995, 0.014162927865982056, -0.037895720452070236, -0.014437364414334297, 0.024717742577195168, -0.01079363003373146, 0.0638064444065094, 0.023933764547109604, 0.01190321147441864, -0.1118752732872963, 0.056541964411735535, 0.005282819736748934, 0.07720208913087845, -0.046750202775001526, -0.09375932067632675, 0.020862704142928123, -0.008126291446387768, -0.005772331263870001, 0.049238577485084534, -0.03941769897937775, 0.0904613807797432, -0.024163460358977318, 0.018398206681013107, 0.0005979586858302355, -0.056054599583148956, -0.04610832408070564, 0.08018265664577484, 0.006811799947172403, 0.052795398980379105, 0.015444005839526653, -0.024888908490538597, 0.052638016641139984, 0.029591655358672142, 0.08216911554336548, 0.029047900810837746, 0.02644870989024639, 0.019290955737233162 ]
0.190095
local ephemeral storage. {{< /note >}} {{< note >}} The kubelet will only track the root filesystem for ephemeral storage. OS layouts that mount a separate disk to `/var/lib/kubelet` or `/var/lib/containers` will not report ephemeral storage correctly. {{< /note >}} ## Setting requests and limits for local ephemeral storage {#requests-limits} You can specify `ephemeral-storage` for managing local ephemeral storage. Each container of a Pod can specify either or both of the following: \* `spec.containers[].resources.limits.ephemeral-storage` \* `spec.containers[].resources.requests.ephemeral-storage` Limits and requests for `ephemeral-storage` are measured in byte quantities. You can express storage as a plain integer or as a fixed-point number using one of these suffixes: E, P, T, G, M, k. You can also use the power-of-two equivalents: Ei, Pi, Ti, Gi, Mi, Ki. For example, the following quantities all represent roughly the same value: - `128974848` - `129e6` - `129M` - `123Mi` Pay attention to the case of the suffixes. If you request `400m` of ephemeral-storage, this is a request for 0.4 bytes. Someone who types that probably meant to ask for 400 mebibytes (`400Mi`) or 400 megabytes (`400M`). In the following example, the Pod has two containers. Each container has a request of 2GiB of local ephemeral storage. Each container has a limit of 4GiB of local ephemeral storage. Therefore, the Pod has a request of 4GiB of local ephemeral storage, and a limit of 8GiB of local ephemeral storage. 500Mi of that limit could be consumed by the `emptyDir` volume. ```yaml apiVersion: v1 kind: Pod metadata: name: frontend spec: containers: - name: app image: images.my-company.example/app:v4 resources: requests: ephemeral-storage: "2Gi" limits: ephemeral-storage: "4Gi" volumeMounts: - name: ephemeral mountPath: "/tmp" - name: log-aggregator image: images.my-company.example/log-aggregator:v6 resources: requests: ephemeral-storage: "2Gi" limits: ephemeral-storage: "4Gi" volumeMounts: - name: ephemeral mountPath: "/tmp" volumes: - name: ephemeral emptyDir: sizeLimit: 500Mi ``` ## How Pods with ephemeral-storage requests are scheduled When you create a Pod, the Kubernetes scheduler selects a node for the Pod to run on. Each node has a maximum amount of local ephemeral storage it can provide for Pods. For more information, see [Node Allocatable](/docs/tasks/administer-cluster/reserve-compute-resources/#node-allocatable). The scheduler ensures that the sum of the resource requests of the scheduled containers is less than the capacity of the node. ## Ephemeral storage consumption management {#resource-emphemeralstorage-consumption} If the kubelet is managing local ephemeral storage as a resource, then the kubelet measures storage use in: - `emptyDir` volumes, except \_tmpfs\_ `emptyDir` volumes - directories holding node-level logs - writeable container layers If a Pod is using more ephemeral storage than you allow it to, the kubelet sets an eviction signal that triggers Pod eviction. For container-level isolation, if a container's writable layer and log usage exceeds its storage limit, the kubelet marks the Pod for eviction. For pod-level isolation the kubelet works out an overall Pod storage limit by summing the limits for the containers in that Pod. In this case, if the sum of the local ephemeral storage usage from all containers and also the Pod's `emptyDir` volumes exceeds the overall Pod storage limit, then the kubelet also marks the Pod for eviction. {{< caution >}} If the kubelet is not measuring local ephemeral storage, then a Pod that exceeds its local storage limit will not be evicted for breaching local storage resource limits. However, if the filesystem space for writeable container layers, node-level logs, or `emptyDir` volumes falls low, the node {{< glossary\_tooltip text="taints" term\_id="taint" >}} itself as short on local storage and this taint triggers eviction for any Pods that don't specifically tolerate the taint. See the supported [configurations](#configurations) for ephemeral local storage. {{< /caution >}} The kubelet supports different ways to measure Pod
null
./vendor/kubernetes/content/en/docs/concepts/storage/ephemeral-storage.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/storage/ephemeral-storage.md
[ 0.02976011112332344, 0.0832730233669281, 0.005571207497268915, -0.0019709020853042603, -0.03028862550854683, -0.040906306356191635, -0.0020331479609012604, 0.059312645345926285, 0.0882437452673912, 0.002974895993247628, 0.006662522442638874, -0.0767301395535469, -0.01293016504496336, -0.022822773084044456, 0.00006986369407968596, -0.03846844285726547, -0.009037818759679794, 0.019648626446723938, -0.011711417697370052, 0.05741162598133087, 0.07189781963825226, 0.024217108264565468, 0.08163103461265564, 0.011639873497188091, -0.027047980576753616, -0.01315109059214592, -0.04573390632867813, -0.006092531606554985, 0.06474100798368454, -0.0651090145111084, 0.027104193344712257, 0.060609810054302216, 0.02230260893702507, 0.03595798835158348, 0.16413535177707672, 0.11839780956506729, 0.004589704796671867, -0.09655948728322983, -0.11273518949747086, -0.030600260943174362, 0.03317919373512268, 0.01938418671488762, -0.07632546871900558, 0.035808075219392776, -0.0388951413333416, -0.012590705417096615, -0.04268355667591095, -0.06974845379590988, -0.05529823899269104, -0.04254867509007454, 0.0566803440451622, -0.05872504040598869, 0.03492618352174759, 0.07011961936950684, 0.07070046663284302, 0.0012750773457810283, -0.022906189784407616, 0.035903312265872955, 0.05588247627019882, 0.022019989788532257, 0.052975669503211975, -0.013679681345820427, 0.020161330699920654, -0.06326977163553238, -0.026597363874316216, 0.03844037652015686, -0.0030665486119687557, 0.031720854341983795, -0.025987321510910988, 0.021448807790875435, 0.045731328427791595, 0.023850101977586746, -0.02486874908208847, 0.046571750193834305, 0.010390586219727993, -0.021423960104584694, -0.04371603950858116, 0.012723890133202076, -0.0325167290866375, -0.0726824700832367, -0.025927798822522163, 0.0062305014580488205, 0.05137322470545769, -0.0502944216132164, -0.07564976811408997, -0.039688728749752045, -0.032730281352996826, 0.014777264557778835, 0.019395412877202034, -0.030851714313030243, 0.0721103623509407, -0.02310718037188053, 0.016504162922501564, -0.03988833352923393, 0.03405230864882469, 0.008112040348351002, 0.010028732940554619, 0.028789544478058815, 0.02915761061012745, 0.0143061438575387, 0.026415113359689713, 0.11360881477594376, -0.010951964184641838, 0.03766319900751114, 0.04880916699767113, -0.08133076876401901, -0.03784037008881569, 0.039225928485393524, -0.031216461211442947, 0.013747094199061394, 0.0016790053341537714, -0.005872257519513369, -0.05950732156634331, 0.03158166632056236, 0.016149871051311493, -0.01331165712326765, -0.018769651651382446, 0.0317009836435318, 0.027950424700975418, 0.07111804932355881, 0.06177550181746483, -0.046821799129247665, -0.031085805967450142, 0.032986678183078766, -0.03958459571003914, -0.002942194463685155, 0.0016037952154874802, 5.1194380589363616e-33, 0.08025017380714417, -0.09125334769487381, 0.0461956188082695, -0.035947538912296295, -0.027985213324427605, -0.07705457508563995, -0.07628381252288818, -0.03278455510735512, -0.07145041972398758, -0.028821507468819618, -0.07333140820264816, 0.07273043692111969, -0.042434435337781906, -0.0005564047023653984, 0.06930028647184372, 0.00353577290661633, -0.07483799755573273, 0.08895370364189148, 0.0920112133026123, -0.03120044246315956, 0.048046261072158813, -0.04203367605805397, -0.04592809081077576, -0.001470734365284443, 0.017349988222122192, -0.021032050251960754, 0.05838188901543617, -0.06152266636490822, -0.03042920120060444, 0.005310410168021917, 0.002017499879002571, -0.008819389156997204, 0.03897424042224884, 0.02936224266886711, -0.08848343789577484, 0.02284012734889984, 0.005294834729284048, 0.026891810819506645, -0.12289942800998688, -0.07506191730499268, 0.03918086364865303, 0.023129289969801903, 0.02161913923919201, -0.03234812989830971, -0.00037452459218911827, -0.048633817583322525, 0.014774631708860397, -0.0396990142762661, 0.008735552430152893, 0.0721462070941925, -0.03699982538819313, 0.026735540479421616, -0.030324585735797882, 0.039723608642816544, 0.020481642335653305, 0.03639345243573189, 0.0609322115778923, -0.0488559789955616, -0.021161086857318878, -0.00449792155995965, 0.0030503699090331793, 0.04368811845779419, 0.0565979927778244, 0.023678477853536606, 0.01935790851712227, 0.05286663398146629, -0.04527909681200981, 0.05243093892931938, -0.016312502324581146, 0.04231136292219162, -0.07010137289762497, 0.0008164934115484357, 0.035414449870586395, 0.022733049467206, -0.08110211789608002, -0.0620470754802227, -0.013124302960932255, -0.0005712567362934351, -0.18998725712299347, 0.010953123681247234, 0.0030578109435737133, -0.11808095872402191, -0.006315592676401138, 0.1041196882724762, -0.01081952452659607, -0.04414745420217514, 0.02555891126394272, 0.030755074694752693, -0.020761705935001373, 0.01487309206277132, 0.010517499409615993, 0.0008430319139733911, -0.03261765465140343, -0.07082214951515198, -0.17341777682304382, -5.0774802574516986e-33, 0.10518639534711838, 0.032914649695158005, -0.0007837782613933086, -0.0031002431642264128, -0.03470933437347412, 0.04309040307998657, -0.01777583733201027, 0.031018448993563652, -0.02276299148797989, -0.03958238661289215, -0.07872738689184189, -0.03218483179807663, 0.02137797325849533, -0.04322589561343193, -0.057248305529356, 0.04670708253979683, -0.05640726909041405, -0.04352398216724396, 0.02694130316376686, 0.032963309437036514, -0.09504016488790512, -0.03697897866368294, 0.03341538831591606, 0.06417065858840942, -0.015173511579632759, 0.02946576476097107, 0.06099683418869972, -0.037738699465990067, -0.09606236219406128, -0.03338054195046425, 0.033746812492609024, -0.11819567531347275, -0.05130550637841225, 0.03823135420680046, 0.005729824770241976, -0.09792208671569824, -0.03915974125266075, 0.05123487114906311, -0.03843094781041145, 0.0288927610963583, 0.01751016452908516, 0.06090853363275528, -0.016087552532553673, -0.06160099804401398, -0.05902189388871193, -0.007691975217312574, 0.06268139183521271, 0.014092463068664074, 0.035646166652441025, -0.14461660385131836, 0.027834497392177582, -0.013406069949269295, -0.014488163404166698, -0.0006580900517292321, -0.00969448871910572, 0.011927211657166481, 0.018917813897132874, 0.02878337912261486, -0.06466281414031982, -0.05624252185225487, 0.06485038250684738, -0.11967267841100693, 0.036049019545316696, -0.02417050115764141, -0.0625382736325264, -0.09882017225027084, -0.02020343393087387, -0.04098496586084366, -0.02619844861328602, 0.05084856599569321, 0.008109817281365395, 0.005822483915835619, 0.06397532671689987, 0.03152943775057793, 0.006043364759534597, -0.0039261719211936, -0.016759878024458885, -0.04041324928402901, 0.12177835404872894, 0.0019028295064345002, -0.04402663931250572, 0.08887548744678497, -0.013909357599914074, -0.01031531486660242, 0.0653359591960907, -0.02400536648929119, -0.005340998061001301, 0.052519481629133224, 0.038287922739982605, 0.028831347823143005, 0.002575148129835725, 0.06106536090373993, -0.04057393595576286, 0.09439156949520111, 0.012834690511226654, -4.8849905454062537e-8, 0.07031585276126862, -0.017908349633216858, -0.04357907548546791, 0.07611098140478134, 0.009945054538547993, -0.07065130025148392, 0.07359679788351059, 0.032307349145412445, -0.023844903334975243, -0.02305183932185173, 0.009235365316271782, 0.004225549753755331, -0.06413491070270538, -0.0339074432849884, 0.0024738870561122894, -0.02940456010401249, 0.03956935182213783, 0.06357469409704208, -0.030604524537920952, -0.0030180313624441624, -0.0983637347817421, -0.027164442464709282, 0.03936045989394188, -0.021037662401795387, 0.05221084505319595, 0.08631040900945663, 0.0838063582777977, 0.04127997159957886, 0.06033942475914955, 0.012990379706025124, 0.0358683243393898, -0.006565669551491737, -0.07005929946899414, 0.061332929879426956, 0.035344198346138, 0.04370313137769699, -0.1291581094264984, 0.08255714923143387, 0.030841229483485222, 0.11864309757947922, -0.039547309279441833, -0.11024055629968643, -0.02668158710002899, 0.04075188934803009, 0.01265246793627739, 0.02732752077281475, -0.03253176808357239, 0.11780516803264618, -0.001999438740313053, 0.015327587723731995, 0.02602822706103325, -0.053176622837781906, -0.04412940517067909, 0.06153259798884392, -0.04697869345545769, 0.08661670237779617, -0.028803687542676926, -0.04896015301346779, -0.015860939398407936, -0.012029888108372688, 0.07454507052898407, 0.010657068341970444, -0.003505611326545477, 0.028268838301301003 ]
0.142883
`emptyDir` volumes falls low, the node {{< glossary\_tooltip text="taints" term\_id="taint" >}} itself as short on local storage and this taint triggers eviction for any Pods that don't specifically tolerate the taint. See the supported [configurations](#configurations) for ephemeral local storage. {{< /caution >}} The kubelet supports different ways to measure Pod storage use: {{< tabs name="resource-emphemeralstorage-measurement" >}} {{% tab name="Periodic scanning" %}} The kubelet performs regular, scheduled checks that scan each `emptyDir` volume, container log directory, and writeable container layer. The scan measures how much space is used. {{< note >}} In this mode, the kubelet does not track open file descriptors for deleted files. If you (or a container) create a file inside an `emptyDir` volume, something then opens that file, and you delete the file while it is still open, then the inode for the deleted file stays until you close that file but the kubelet does not categorize the space as in use. {{< /note >}} {{% /tab %}} {{% tab name="Filesystem project quota" %}} {{< feature-state feature\_gate\_name="LocalStorageCapacityIsolationFSQuotaMonitoring" >}} Project quotas are an operating-system level feature for managing storage use on filesystems. With Kubernetes, you can enable project quotas for monitoring storage use. Make sure that the filesystem backing the `emptyDir` volumes, on the node, provides project quota support. For example, XFS and ext4fs offer project quotas. {{< note >}} Project quotas let you monitor storage use; they do not enforce limits. {{< /note >}} Kubernetes uses project IDs starting from `1048576`. The IDs in use are registered in `/etc/projects` and `/etc/projid`. If project IDs in this range are used for other purposes on the system, those project IDs must be registered in `/etc/projects` and `/etc/projid` so that Kubernetes does not use them. Quotas are faster and more accurate than directory scanning. When a directory is assigned to a project, all files created under a directory are created in that project, and the kernel merely has to keep track of how many blocks are in use by files in that project. If a file is created and deleted, but has an open file descriptor, it continues to consume space. Quota tracking records that space accurately whereas directory scans overlook the storage used by deleted files. To use quotas to track a pod's resource usage, the pod must be in a user namespace. Within user namespaces, the kernel restricts changes to projectIDs on the filesystem, ensuring the reliability of storage metrics calculated by quotas. If you want to use project quotas, you should: \* Enable the `LocalStorageCapacityIsolationFSQuotaMonitoring=true` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/) using the `featureGates` field in the [kubelet configuration](/docs/reference/config-api/kubelet-config.v1beta1/). \* Ensure the `UserNamespacesSupport` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/) is enabled, and that the kernel, CRI implementation and OCI runtime support user namespaces. \* Ensure that the root filesystem (or optional runtime filesystem) has project quotas enabled. All XFS filesystems support project quotas. For ext4 filesystems, you need to enable the project quota tracking feature while the filesystem is not mounted. ```bash # For ext4, with /dev/block-device not mounted sudo tune2fs -O project -Q prjquota /dev/block-device ``` \* Ensure that the root filesystem (or optional runtime filesystem) is mounted with project quotas enabled. For both XFS and ext4fs, the mount option is named `prjquota`. If you don't want to use project quotas, you should: \* Disable the `LocalStorageCapacityIsolationFSQuotaMonitoring` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/) using the `featureGates` field in the [kubelet configuration](/docs/reference/config-api/kubelet-config.v1beta1/). {{% /tab %}} {{< /tabs >}} ## {{% heading "whatsnext" %}} \* Read about [project quotas](https://www.linux.org/docs/man8/xfs\_quota.html) in XFS
null
./vendor/kubernetes/content/en/docs/concepts/storage/ephemeral-storage.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/storage/ephemeral-storage.md
[ 0.01246321015059948, 0.04231605678796768, 0.06096859648823738, 0.03356693312525749, 0.016301319003105164, -0.05991533398628235, 0.02367573231458664, -0.0024822622071951628, 0.16193042695522308, 0.017595335841178894, 0.01426009926944971, -0.05492798984050751, -0.01616084761917591, -0.029214538633823395, -0.07381561398506165, -0.04593423008918762, -0.027857044711709023, 0.0037875669077038765, -0.07748804986476898, 0.02606908045709133, 0.0033318570349365473, 0.03881091624498367, 0.08882995694875717, 0.010969558730721474, -0.01172671653330326, -0.006356157828122377, -0.06029335409402847, -0.06365209072828293, 0.05273374542593956, -0.05597544461488724, -0.015934614464640617, 0.08118456602096558, -0.014432046562433243, 0.05578360706567764, 0.12872324883937836, 0.058526959270238876, 0.00043893296970054507, -0.02791612222790718, -0.07777249068021774, -0.011586158536374569, 0.027427705004811287, 0.02413695491850376, -0.10968013852834702, 0.03655184432864189, -0.07353714853525162, 0.027605319395661354, -0.0506407804787159, -0.05963056534528732, -0.032214049249887466, -0.05296802520751953, 0.018750391900539398, -0.058111097663640976, 0.08378355950117111, 0.0756203904747963, 0.04656148701906204, -0.006912227254360914, 0.0028220165986567736, 0.024681000038981438, 0.026976386085152626, 0.05383114144206047, 0.047718413174152374, 0.02003156766295433, 0.0006273870239965618, -0.03531912714242935, 0.054988082498311996, 0.010674010962247849, 0.0005032040644437075, 0.04386855289340019, -0.031314484775066376, -0.002005701418966055, 0.059221550822257996, 0.011048078536987305, -0.032895732671022415, 0.06818699836730957, 0.007545568514615297, 0.004988424014300108, -0.051478348672389984, 0.04657992348074913, -0.02352221868932247, -0.03742432966828346, 0.020984428003430367, 0.019919097423553467, 0.0812249407172203, 0.0016138966893777251, -0.0757647231221199, -0.04828469455242157, -0.022080689668655396, -0.004888770170509815, 0.013037090189754963, -0.008901262655854225, 0.0744352638721466, 0.030007123947143555, -0.016805123537778854, -0.06838984787464142, 0.04242078214883804, -0.04561963677406311, 0.03413006663322449, 0.062233295291662216, 0.030933907255530357, -0.0034874912817031145, 0.030172858387231827, 0.06933251768350601, -0.0663728266954422, 0.01265938300639391, 0.06232040748000145, -0.07649016380310059, -0.004445280879735947, -0.026675205677747726, 0.008731917478144169, 0.02208707667887211, 0.016283532604575157, -0.021551799029111862, -0.015633543953299522, 0.06142797693610191, 0.016571108251810074, 0.010135339573025703, -0.024727752432227135, 0.056143246591091156, 0.009699822403490543, 0.07651548832654953, 0.03940170630812645, -0.07557190209627151, -0.05210952088236809, 0.003328573890030384, -0.04350941255688667, 0.032960765063762665, 0.023447353392839432, 3.8664345493567295e-33, 0.056669071316719055, -0.07758413255214691, -0.01684693619608879, -0.018222235143184662, -0.026689056307077408, -0.11074402928352356, -0.07633297145366669, 0.01991872303187847, -0.03512619808316231, -0.013430926017463207, -0.0989191085100174, 0.08527068048715591, -0.06844848394393921, 0.00503384368494153, 0.06425606459379196, 0.0013402096228674054, -0.07787895202636719, 0.08537213504314423, 0.013971705920994282, -0.06657065451145172, 0.07696966081857681, -0.04059000313282013, -0.035034410655498505, -0.011782949790358543, 0.044340215623378754, -0.004680351819843054, 0.030754128471016884, -0.08299656212329865, -0.03794480860233307, 0.017611393705010414, -0.05238960683345795, 0.05052214115858078, 0.00616212235763669, 0.023318175226449966, -0.16321717202663422, 0.05579797923564911, -0.0565449483692646, 0.007521803490817547, -0.06625081598758698, -0.07180008292198181, 0.03448331728577614, -0.02112586237490177, -0.00017303656204603612, -0.07515367120504379, -0.019611485302448273, -0.07341121882200241, 0.034543175250291824, -0.09567409753799438, -0.000769434089306742, 0.089304618537426, 0.020310163497924805, 0.006610773038119078, -0.00342421792447567, 0.060053616762161255, -0.004798884969204664, 0.08250346779823303, 0.12986506521701813, -0.15029287338256836, -0.02784312702715397, 0.04771377146244049, -0.036123473197221756, 0.05639669671654701, 0.051789458841085434, -0.001463830703869462, 0.0018710159929469228, 0.041598252952098846, 0.018926676362752914, 0.05458136647939682, 0.004185324534773827, -0.007552006281912327, -0.08932166546583176, 0.01093077939003706, 0.015354860574007034, -0.022052617743611336, -0.02031143754720688, -0.06627371162176132, -0.024075236171483994, -0.028099628165364265, -0.128800630569458, -0.015191451646387577, 0.05869707837700844, -0.1422809362411499, 0.0289304181933403, 0.05558047443628311, -0.011930781416594982, -0.05578489601612091, 0.04143281280994415, 0.02355332113802433, -0.09546899050474167, 0.03807235136628151, 0.010972450487315655, -0.0205074455589056, -0.0640704333782196, -0.015795335173606873, -0.10417385399341583, -4.012531232090662e-33, 0.08089206367731094, -0.014757750555872917, -0.01454341784119606, 0.04034934192895889, -0.05120570585131645, 0.02818525768816471, -0.025936974212527275, 0.11855288594961166, 0.009297407232224941, -0.036875274032354355, -0.07580306380987167, 0.005444049835205078, 0.02142365649342537, 0.052822910249233246, -0.04002763330936432, 0.027831755578517914, -0.0657135471701622, -0.07444293051958084, -0.03170955181121826, 0.013189872726798058, -0.0007934016757644713, -0.0427481010556221, 0.0012552522821351886, 0.01959293521940708, -0.04817737638950348, 0.016059070825576782, 0.04289526864886284, -0.02081669494509697, -0.05475408956408501, -0.06501114368438721, 0.039144933223724365, -0.09274264425039291, -0.029143571853637695, -0.017352215945720673, 0.05546983703970909, -0.11930938065052032, 0.0033726231195032597, 0.0343228280544281, -0.04380011558532715, 0.007164272479712963, 0.012972095981240273, 0.12876245379447937, -0.046058472245931625, -0.04330003261566162, -0.02038300223648548, 0.032276708632707596, 0.0033323410898447037, 0.01626325212419033, 0.07407144457101822, -0.0785694420337677, 0.06951886415481567, -0.022376064211130142, 0.02193938009440899, 0.05889902263879776, -0.01718723401427269, 0.05886486545205116, 0.009261255152523518, 0.007160952314734459, -0.09167134016752243, -0.00966966338455677, 0.03829696401953697, -0.08807310461997986, -0.009989202953875065, -0.01410598959773779, -0.03675594553351402, -0.04105517640709877, 0.03354958817362785, 0.05409640818834305, 0.010036526247859001, 0.011708092875778675, 0.04570282623171806, 0.026900555938482285, 0.05663853883743286, -0.018780866637825966, 0.009140831418335438, 0.04891300946474075, 0.01314761396497488, -0.09063543379306793, 0.06570253521203995, -0.014606774784624577, -0.016969626769423485, 0.05892104655504227, -0.04986267164349556, 0.004484498407691717, 0.03418658301234245, 0.020981645211577415, -0.033213093876838684, 0.047978755086660385, 0.046618811786174774, 0.07808514684438705, -0.008336006663739681, 0.012425457127392292, -0.031153082847595215, 0.06986663490533829, -0.014474880881607533, -4.398658859372517e-8, 0.0376444086432457, 0.023654047399759293, -0.02740742638707161, 0.08716393262147903, 0.052890025079250336, -0.09407611936330795, 0.0511271208524704, 0.09797967225313187, -0.050755057483911514, 0.002202959032729268, 0.021923866122961044, -0.001652992912568152, -0.12071919441223145, -0.030414534732699394, 0.03254168480634689, -0.026778051629662514, 0.03442171588540077, 0.01506838295608759, -0.017525462433695793, -0.03469926491379738, -0.03828448802232742, -0.0040139625780284405, 0.04028664156794548, 0.03398491442203522, 0.028595367446541786, 0.05051698908209801, 0.07161001861095428, 0.03272290527820587, 0.03971554711461067, -0.03523620218038559, 0.024444982409477234, 0.030288029462099075, -0.03672340512275696, 0.07136083394289017, -0.022663293406367302, 0.1072024255990982, -0.12261223047971725, 0.017836671322584152, 0.03423428535461426, 0.1089763343334198, -0.0431348942220211, -0.08053308725357056, -0.03261876851320267, -0.007401240523904562, -0.05632994696497917, 0.013638125732541084, -0.004222449846565723, 0.07222449034452438, 0.0013059875927865505, 0.008302555419504642, -0.0020385971292853355, -0.054248157888650894, -0.06880497187376022, 0.11525129526853561, -0.04041249677538872, 0.014719377271831036, 0.012869685888290405, -0.01101323775947094, 0.02511425130069256, -0.0029478685464709997, 0.04438624158501625, -0.017625268548727036, 0.00004816159707843326, 0.009012918919324875 ]
0.170057
the [kubelet configuration](/docs/reference/config-api/kubelet-config.v1beta1/). {{% /tab %}} {{< /tabs >}} ## {{% heading "whatsnext" %}} \* Read about [project quotas](https://www.linux.org/docs/man8/xfs\_quota.html) in XFS
null
./vendor/kubernetes/content/en/docs/concepts/storage/ephemeral-storage.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/storage/ephemeral-storage.md
[ 0.0774243175983429, 0.00338164996355772, -0.03238200396299362, -0.06437946110963821, 0.003616476431488991, -0.009881614707410336, 0.03662772849202156, 0.05173502489924431, 0.07161280512809753, 0.01066731195896864, 0.020242348313331604, -0.08847571164369583, 0.03420098125934601, 0.0250706784427166, -0.09019655734300613, -0.04966319352388382, -0.05861795321106911, -0.02921946533024311, -0.018001114949584007, -0.0006238256464712322, 0.03551841154694557, 0.0020558489486575127, 0.07379940152168274, 0.01991504803299904, -0.0024105352349579334, -0.029522240161895752, -0.06397847086191177, -0.09004585444927216, -0.006402111612260342, -0.023640332743525505, -0.007953817956149578, 0.013965165242552757, 0.016904188320040703, 0.02795392833650112, 0.07385190576314926, 0.04048538580536842, -0.0154036870226264, -0.025261571630835533, -0.11658168584108353, 0.009049016050994396, -0.06485649198293686, -0.033372022211551666, -0.08738452196121216, 0.005631069652736187, -0.07130341976881027, 0.04442739114165306, -0.03282613307237625, -0.04901838302612305, -0.00016645377036184072, 0.03153371065855026, -0.007520688697695732, 0.01521979458630085, -0.0058382730931043625, -0.012625213712453842, 0.07257317751646042, -0.029783228412270546, -0.06669387966394424, -0.012167530134320259, 0.01412186585366726, 0.05897762253880501, 0.0037091898266226053, -0.005804389249533415, 0.04873715341091156, 0.028451619669795036, -0.02422010712325573, 0.043633174151182175, -0.06299743056297302, 0.10334184020757675, -0.0902135968208313, 0.047849997878074646, 0.0791521966457367, 0.05518294498324394, -0.08481661230325699, 0.05386321246623993, 0.04597935825586319, -0.011265089735388756, 0.003910228610038757, 0.1075734868645668, -0.04064732789993286, -0.10871473699808121, -0.031392525881528854, 0.02469806559383869, 0.046819835901260376, 0.02542937733232975, -0.05625690892338753, -0.012282273732125759, -0.00967243779450655, 0.044700294733047485, -0.02033134177327156, 0.008509533479809761, 0.0675005242228508, -0.04485571011900902, 0.0777880996465683, 0.012323308736085892, -0.022454172372817993, -0.032650694251060486, 0.030897339805960655, 0.07482799887657166, 0.019401801750063896, -0.021503683179616928, -0.01863577961921692, -0.003548155538737774, 0.02456500753760338, 0.07614689320325851, -0.01538567990064621, -0.07439862191677094, 0.018900983035564423, -0.0006754945497959852, -0.08763901889324188, 0.016148410737514496, 0.05638786405324936, 0.009911783039569855, -0.07600731402635574, -0.03677978366613388, 0.017294887453317642, -0.0032287235371768475, 0.0523168221116066, -0.008062153123319149, 0.05206751078367233, 0.025640087202191353, 0.060142967849969864, -0.02845006436109543, -0.10167284309864044, 0.047184210270643234, -0.06978646665811539, -0.022880615666508675, -0.0618392676115036, 4.631558805792979e-35, 0.004559594206511974, 0.019806917756795883, 0.04860850051045418, -0.05591354891657829, -0.03689901530742645, -0.08520001173019409, 0.04777831211686134, 0.02012598142027855, -0.0799064189195633, -0.029567837715148926, -0.005930815823376179, 0.007021564524620771, -0.018152272328734398, -0.05020209401845932, 0.011269594542682171, -0.06561372429132462, -0.08679923415184021, 0.08205562084913254, 0.025072239339351654, -0.06285509467124939, 0.021533669903874397, -0.018223553895950317, -0.0234807301312685, -0.0005249871173873544, 0.057319607585668564, -0.01111010741442442, 0.02484375797212124, -0.052237607538700104, -0.04358666390180588, -0.0008450716268271208, -0.05011414363980293, 0.03297373279929161, 0.05541611090302467, 0.019459685310721397, -0.11984295397996902, 0.03633429855108261, -0.041473791003227234, 0.013146706856787205, -0.04164722561836243, 0.017072472721338272, 0.03829572722315788, -0.012516548857092857, 0.012262684293091297, -0.07048609852790833, -0.0970345214009285, 0.009760772809386253, 0.08350417762994766, -0.08216920495033264, -0.03244887664914131, 0.0751902386546135, 0.006089162081480026, -0.01309487409889698, -0.0001327764184679836, 0.08129536360502243, 0.10250650346279144, -0.008385098539292812, 0.002294692676514387, -0.0770215094089508, -0.01885397918522358, 0.057532794773578644, -0.06876120716333389, -0.02176680974662304, 0.052541330456733704, 0.0609523206949234, -0.08270866423845291, 0.06599978357553482, 0.017523981630802155, -0.009159992448985577, 0.01196846179664135, -0.030763601884245872, -0.10820389539003372, -0.024143123999238014, 0.020107941702008247, 0.0153441047295928, -0.07195936143398285, -0.05840340629220009, -0.03162979334592819, 0.04145587980747223, -0.10109906643629074, 0.059461891651153564, 0.030802110210061073, -0.057322908192873, -0.010424637235701084, 0.03258731961250305, 0.0005201819585636258, 0.03249768540263176, 0.10052572935819626, 0.060423366725444794, -0.07335049659013748, 0.016747528687119484, 0.031161362305283546, -0.038822587579488754, -0.001687410636804998, -0.07509974390268326, -0.06587738543748856, -9.540792450918592e-34, 0.08298324793577194, 0.0064513492397964, 0.021599968895316124, 0.0035776933655142784, 0.030178038403391838, 0.08621487021446228, 0.039364222437143326, 0.06579595059156418, 0.03164006769657135, 0.009129009209573269, -0.056698985397815704, 0.004414818715304136, 0.02760697528719902, -0.014968879520893097, -0.11057639867067337, 0.016814948990941048, 0.015860620886087418, -0.01774466410279274, 0.026551131159067154, -0.07585141062736511, -0.07060787826776505, -0.021455079317092896, 0.03964141383767128, -0.0051015038043260574, 0.05775062367320061, 0.021592747420072556, 0.06184267997741699, 0.03474137559533119, -0.025784537196159363, -0.05593438073992729, -0.013073980808258057, -0.1117267832159996, -0.10622502118349075, -0.01629820093512535, 0.05574997141957283, -0.09428051859140396, -0.03152380511164665, 0.1389610320329666, -0.049327973276376724, 0.08722007274627686, -0.0707169696688652, 0.04415247589349747, 0.05240250378847122, 0.0787254348397255, -0.07424461096525192, 0.07499071955680847, 0.10654488205909729, -0.08548109233379364, 0.03839997202157974, -0.06864709407091141, -0.001022023381665349, -0.06798212230205536, 0.016212619841098785, 0.06547874957323074, -0.03638084605336189, -0.0011485626455396414, -0.005135354585945606, 0.11810574680566788, -0.048647381365299225, -0.07256126403808594, 0.01050660852342844, -0.0527774952352047, 0.022413691505789757, 0.021728478372097015, -0.007968920283019543, -0.11400087922811508, -0.04897378757596016, -0.006024378817528486, -0.03995957598090172, 0.059636443853378296, -0.0037842663004994392, 0.00008794115274213254, 0.025132153183221817, 0.04673568904399872, -0.021031713113188744, 0.05457174777984619, 0.04878256469964981, 0.0005601896555162966, 0.07177882641553879, 0.04341686889529228, 0.027790924534201622, 0.059642791748046875, 0.06656400114297867, -0.040580201894044876, 0.04003598541021347, 0.030964378267526627, 0.04611966013908386, 0.08876968920230865, -0.006396667566150427, 0.03720449283719063, -0.027385510504245758, 0.006443385034799576, 0.024541737511754036, 0.09923956543207169, 0.008389257825911045, -3.711831197961146e-8, -0.03554096072912216, -0.017505640164017677, -0.05651022493839264, -0.004550959914922714, 0.014125452376902103, -0.022387158125638962, 0.07091144472360611, 0.06844664365053177, -0.02703467197716236, -0.020986732095479965, 0.04507742077112198, 0.08541307598352432, -0.0456990972161293, -0.013257441110908985, -0.08264710754156113, -0.04506837576627731, 0.010850825347006321, 0.05510367825627327, -0.000097412928880658, 0.017454413697123528, -0.010109593160450459, 0.006755854934453964, -0.005394564941525459, 0.008646880276501179, 0.020201265811920166, 0.026408962905406952, 0.018803434446454048, 0.039928458631038666, 0.030718788504600525, -0.044648077338933945, 0.005073665641248226, -0.015297398902475834, -0.10139254480600357, -0.02836117334663868, 0.05772905424237251, -0.00590871088206768, -0.12728677690029144, 0.02307993546128273, 0.022322796285152435, 0.08434681594371796, 0.012884538620710373, -0.06304559111595154, -0.025085866451263428, 0.033919740468263626, -0.04442552477121353, 0.10365451127290726, -0.13132773339748383, 0.07393268495798111, -0.01502653956413269, -0.06945222616195679, 0.046763770282268524, -0.005844200495630503, 0.005029165185987949, -0.027914192527532578, 0.008574958890676498, 0.06360616534948349, 0.023526838049292564, 0.055997103452682495, -0.02183915488421917, -0.02666722796857357, -0.00047861234634183347, 0.0707227885723114, 0.04946637526154518, 0.04210175946354866 ]
0.089498
This page describes the maximum number of volumes that can be attached to a Node for various cloud providers. Cloud providers like Google, Amazon, and Microsoft typically have a limit on how many volumes can be attached to a Node. It is important for Kubernetes to respect those limits. Otherwise, Pods scheduled on a Node could get stuck waiting for volumes to attach. ## Kubernetes default limits The Kubernetes scheduler has default limits on the number of volumes that can be attached to a Node: | Cloud service | Maximum volumes per Node | | --- | --- | | [Amazon Elastic Block Store (EBS)](https://aws.amazon.com/ebs/) | 39 | | [Google Persistent Disk](https://cloud.google.com/persistent-disk/) | 16 | | [Microsoft Azure Disk Storage](https://azure.microsoft.com/en-us/services/storage/main-disks/) | 16 | ## Dynamic volume limits {{< feature-state state="stable" for\_k8s\_version="v1.17" >}} Dynamic volume limits are supported for following volume types. - Amazon EBS - Google Persistent Disk - Azure Disk - CSI For volumes managed by in-tree volume plugins, Kubernetes automatically determines the Node type and enforces the appropriate maximum number of volumes for the node. For example: \* On [Google Compute Engine](https://cloud.google.com/compute/), up to 127 volumes can be attached to a node, [depending on the node type](https://cloud.google.com/compute/docs/disks/#pdnumberlimits). \* For Amazon EBS disks on M5,C5,R5,T3 and Z1D instance types, Kubernetes allows only 25 volumes to be attached to a Node. For other instance types on [Amazon Elastic Compute Cloud (EC2)](https://aws.amazon.com/ec2/), Kubernetes allows 39 volumes to be attached to a Node. \* On Azure, up to 64 disks can be attached to a node, depending on the node type. For more details, refer to [Sizes for virtual machines in Azure](https://docs.microsoft.com/en-us/azure/virtual-machines/windows/sizes). \* If a CSI storage driver advertises a maximum number of volumes for a Node (using `NodeGetInfo`), the {{< glossary\_tooltip text="kube-scheduler" term\_id="kube-scheduler" >}} honors that limit. Refer to the [CSI specifications](https://github.com/container-storage-interface/spec/blob/master/spec.md#nodegetinfo) for details. \* For volumes managed by in-tree plugins that have been migrated to a CSI driver, the maximum number of volumes will be the one reported by the CSI driver. ### Mutable CSI Node Allocatable Count {{< feature-state feature\_gate\_name="MutableCSINodeAllocatableCount" >}} CSI drivers can dynamically adjust the maximum number of volumes that can be attached to a Node at runtime. This enhances scheduling accuracy and reduces pod scheduling failures due to changes in resource availability. To use this feature, you must enable the `MutableCSINodeAllocatableCount` feature gate on the following components: - `kube-apiserver` - `kubelet` #### Periodic Updates When enabled, CSI drivers can request periodic updates to their volume limits by setting the `nodeAllocatableUpdatePeriodSeconds` field in the `CSIDriver` specification. For example: ```yaml apiVersion: storage.k8s.io/v1 kind: CSIDriver metadata: name: hostpath.csi.k8s.io spec: nodeAllocatableUpdatePeriodSeconds: 60 ``` Kubelet will periodically call the corresponding CSI driver’s `NodeGetInfo` endpoint to refresh the maximum number of attachable volumes, using the interval specified in `nodeAllocatableUpdatePeriodSeconds`. The minimum allowed value for this field is 10 seconds. If a volume attachment operation fails with a `ResourceExhausted` error (gRPC code 8), Kubernetes triggers an immediate update to the allocatable volume count for that Node. Additionally, kubelet marks affected pods as Failed, allowing their controllers to handle recreation. This prevents pods from getting stuck indefinitely in the `ContainerCreating` state. ### Preventing Pod placement without CSI driver {{< feature-state feature\_gate\_name="VolumeLimitScaling" >}} If `VolumeLimitScaling` [feature gate](/docs/reference/command-line-tools-reference/feature-gates#VolumeLimitScaling) is enabled and a CSI driver has corresponding `CSIDriver` object installed, then scheduler will prevent pod placement to nodes that do not yet have CSI driver installed. This limitation only applies to pods that require corresponding CSI volume.
null
./vendor/kubernetes/content/en/docs/concepts/storage/storage-limits.md
https://github.com/kubernetes/website/blob/main//content/en/docs/concepts/storage/storage-limits.md
[ 0.01650424487888813, -0.028903089463710785, 0.048529598861932755, 0.009387269616127014, -0.025177543982863426, 0.01048780046403408, -0.09080570191144943, -0.006535973399877548, 0.07361065596342087, 0.05717209354043007, -0.06507131457328796, 0.037200525403022766, 0.06331241875886917, -0.001981160370633006, -0.028442664071917534, 0.015831127762794495, 0.035003434866666794, -0.01962222531437874, -0.08267698436975479, 0.028790531679987907, 0.05955086275935173, 0.06441926211118698, -0.0030350955203175545, 0.020482823252677917, -0.06403189152479172, -0.016168594360351562, -0.08300968259572983, -0.05869155377149582, 0.06206816807389259, -0.031586792320013046, -0.001512804999947548, -0.06330983340740204, -0.006001245230436325, 0.06538470089435577, 0.019372951239347458, -0.04029642045497894, -0.05722282454371452, -0.08421625196933746, -0.0437915213406086, -0.0012414036318659782, 0.11305632442235947, -0.049922581762075424, -0.053903717547655106, -0.01634737104177475, -0.007012202870100737, 0.03446465730667114, -0.043380435556173325, -0.04111688584089279, -0.010383266024291515, 0.024819504469633102, -0.021601539105176926, -0.08009016513824463, 0.03486913815140724, 0.14308767020702362, -0.027121322229504585, -0.02762785367667675, -0.02027883753180504, 0.08360092341899872, 0.12981563806533813, 0.05017564818263054, 0.0640219897031784, -0.09422988444566727, 0.0912230908870697, -0.04026973247528076, 0.022162919864058495, 0.05303420126438141, -0.01578935794532299, -0.00742880767211318, -0.08934185653924942, 0.02431112341582775, 0.08856719732284546, 0.07363985478878021, -0.07052003592252731, 0.021941358223557472, 0.012062059715390205, 0.012508129701018333, -0.00884468387812376, 0.05934824422001839, -0.012304381467401981, 0.01885649934411049, -0.030803842470049858, 0.0005537758697755635, 0.024794990196824074, -0.014458317309617996, -0.15050120651721954, -0.056895144283771515, -0.07938939332962036, 0.030891520902514458, -0.014546772465109825, -0.0017997119575738907, 0.05882588401436806, 0.015128951519727707, 0.0700974315404892, -0.03987067937850952, 0.03347847983241081, -0.04469043016433716, -0.05719893053174019, -0.01890420727431774, 0.06338712573051453, -0.08459404855966568, -0.006830840837210417, 0.0017049092566594481, -0.003389843739569187, 0.009784561581909657, 0.022829480469226837, -0.11193399876356125, -0.030310004949569702, -0.018862619996070862, -0.010626438073813915, 0.0718882754445076, 0.0608532577753067, 0.06652379781007767, 0.01653864234685898, 0.003693526377901435, 0.033072080463171005, 0.009622190147638321, -0.038979705423116684, 0.006331285461783409, 0.024901917204260826, 0.02993115596473217, 0.07523418962955475, -0.06437643617391586, 0.014250406064093113, -0.05411525443196297, -0.007881677709519863, 0.02956031821668148, -0.009922065772116184, 2.863110447995567e-33, 0.03628024086356163, -0.08927391469478607, 0.04988763481378555, -0.021238837391138077, 0.0494220145046711, -0.05899031460285187, 0.026150688529014587, 0.021274840459227562, -0.05706721171736717, -0.10022900253534317, -0.08730316907167435, 0.12442386150360107, -0.0016354898689314723, 0.004229325335472822, 0.03146209195256233, -0.021759172901511192, 0.03999226912856102, 0.06184057891368866, 0.06096653640270233, -0.01964661292731762, 0.03456401452422142, -0.04731796309351921, -0.018900053575634956, -0.0023951632902026176, -0.002227000892162323, -0.017418231815099716, 0.06151196360588074, -0.04420832544565201, 0.0013295651879161596, 0.014622627757489681, -0.0782695859670639, 0.021498190239071846, 0.03273239731788635, 0.024321945384144783, -0.048394691199064255, -0.015820013359189034, -0.13384588062763214, 0.029028236865997314, -0.06289273500442505, -0.038589559495449066, 0.05189334228634834, -0.028583865612745285, 0.022786680608987808, 0.01962476223707199, -0.006155034992843866, 0.0064520505256950855, 0.054452162235975266, -0.07479517161846161, -0.012061051093041897, 0.11614824086427689, -0.00012854202941525728, 0.028829369693994522, -0.04875636100769043, 0.0018042237497866154, 0.0434408001601696, 0.04485190287232399, -0.0033464510925114155, -0.08395442366600037, -0.0270160473883152, 0.03318207710981369, -0.015127977356314659, -0.005904910620301962, 0.06192871928215027, 0.017451710999011993, -0.018581325188279152, 0.052335649728775024, -0.0018815731164067984, 0.010089376010000706, 0.018795887008309364, -0.009882180020213127, 0.010404057800769806, -0.0024055589456111193, 0.018065396696329117, -0.035697001963853836, -0.06582914292812347, -0.1211373433470726, -0.0023829357232898474, -0.04547244310379028, -0.07203700393438339, 0.0326874777674675, -0.041281718760728836, -0.06160168722271919, -0.02408526837825775, 0.07039368897676468, -0.029223795980215073, 0.009891917929053307, 0.027042724192142487, 0.06340574473142624, -0.04009523615241051, -0.0010822011390700936, 0.02093789353966713, -0.06794730573892593, 0.0015138821909204125, -0.04904371500015259, -0.017721671611070633, -2.816767134227375e-33, 0.0723668783903122, -0.024249238893389702, -0.032804492861032486, 0.08892389386892319, 0.02750030718743801, 0.0032675452530384064, -0.05262331664562225, 0.09688232094049454, -0.04227188602089882, -0.07774139940738678, -0.03223036229610443, -0.0018626251257956028, 0.016410253942012787, 0.034107133746147156, -0.11759454011917114, -0.02382167987525463, -0.07963109761476517, -0.09862520545721054, 0.0460815392434597, 0.012919276021420956, -0.0255738515406847, -0.08549144864082336, 0.05547332763671875, 0.05379614606499672, 0.00427764467895031, 0.003605827922001481, -0.010257942602038383, -0.005322210490703583, -0.034493040293455124, -0.031510163098573685, -0.03821223974227905, -0.07473473250865936, -0.045553963631391525, 0.03682621568441391, 0.03433425724506378, -0.08092177659273148, 0.002850703429430723, 0.024700595065951347, 0.0504656620323658, -0.03629385679960251, 0.026000775396823883, -0.08406440168619156, 0.03688435256481171, -0.058771729469299316, -0.03162289410829544, 0.017488908022642136, 0.026715096086263657, 0.009399035945534706, 0.017972029745578766, -0.07129686325788498, -0.05729169398546219, 0.03918605297803879, -0.06508447229862213, 0.1305226981639862, 0.03149034082889557, -0.0031194810289889574, -0.039626818150281906, 0.05940266698598862, -0.0050655631348490715, -0.014220206066966057, 0.07601067423820496, -0.034971240907907486, 0.03879090026021004, 0.013909613713622093, -0.0497230589389801, -0.025849180296063423, -0.00867992639541626, -0.004038550425320864, -0.06239043548703194, 0.06620749831199646, 0.016980567947030067, -0.028514809906482697, 0.10493092983961105, 0.03969098627567291, -0.04283646494150162, -0.01786448061466217, -0.03764958307147026, -0.10648559778928757, 0.016339311376214027, -0.007319631986320019, -0.0970539078116417, 0.1065242737531662, -0.038886770606040955, 0.035461679100990295, 0.030816668644547462, 0.018595583736896515, 0.06979091465473175, 0.0497891828417778, 0.03999612107872963, 0.10346858203411102, -0.025333045050501823, 0.002066525397822261, -0.06475047022104263, 0.0821220800280571, -0.03944521024823189, -4.296213518273362e-8, 0.07148969918489456, 0.05428148806095123, -0.046172503381967545, 0.021682454273104668, 0.021368438377976418, -0.07032495737075806, 0.08015987277030945, 0.05764360353350639, -0.023979496210813522, 0.1403549462556839, 0.08887812495231628, -0.03311529755592346, -0.06238070875406265, -0.01555776596069336, -0.015537142753601074, 0.0007241002167575061, 0.01703420653939247, -0.04380999505519867, 0.03857939690351486, -0.035664383322000504, -0.015194774605333805, -0.01101059652864933, 0.03128023073077202, -0.0421125665307045, 0.056219764053821564, 0.05158676207065582, 0.029110509902238846, 0.03982042893767357, -0.017668873071670532, -0.021318137645721436, -0.005140379536896944, -0.013820841908454895, -0.04902494326233864, 0.03901074826717377, 0.0037221466191112995, -0.008710145950317383, -0.0967249721288681, 0.03420153260231018, 0.02423703484237194, 0.08812165260314941, 0.022110436111688614, -0.06213424354791641, 0.025345342233777046, -0.017522266134619713, 0.057546645402908325, 0.05346495658159256, -0.06783968210220337, 0.09606511145830154, -0.031381215900182724, 0.072568878531456, -0.01799251139163971, -0.06385289877653122, 0.006468151230365038, 0.12239319831132889, 0.057233136147260666, -0.003694713581353426, -0.010803474113345146, -0.017960945144295692, 0.0014708824455738068, 0.10863759368658066, 0.02637379616498947, 0.07808548212051392, -0.0012773236958310008, -0.009821450337767601 ]
0.041396