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
0 34s ``` At this point, it should be clear that the resources users create in one namespace are hidden from the other namespace. As the policy support in Kubernetes evolves, we will extend this scenario to show how you can provide different authorization rules for each namespace. ## Understanding the motivation for using namespaces A single cluster should be able to satisfy the needs of multiple users or groups of users (henceforth in this document a \_user community\_). Kubernetes \_namespaces\_ help different projects, teams, or customers to share a Kubernetes cluster. It does this by providing the following: 1. A scope for [names](/docs/concepts/overview/working-with-objects/names/). 1. A mechanism to attach authorization and policy to a subsection of the cluster. Use of multiple namespaces is optional. Each user community wants to be able to work in isolation from other communities. Each user community has its own: 1. resources (pods, services, replication controllers, etc.) 1. policies (who can or cannot perform actions in their community) 1. constraints (this community is allowed this much quota, etc.) A cluster operator may create a Namespace for each unique user community. The Namespace provides a unique scope for: 1. named resources (to avoid basic naming collisions) 1. delegated management authority to trusted users 1. ability to limit community resource consumption Use cases include: 1. As a cluster operator, I want to support multiple user communities on a single cluster. 1. As a cluster operator, I want to delegate authority to partitions of the cluster to trusted users in those communities. 1. As a cluster operator, I want to limit the amount of resources each community can consume in order to limit the impact to other communities using the cluster. 1. As a cluster user, I want to interact with resources that are pertinent to my user community in isolation of what other user communities are doing on the cluster. ## Understanding namespaces and DNS When you create a [Service](/docs/concepts/services-networking/service/), it creates a corresponding [DNS entry](/docs/concepts/services-networking/dns-pod-service/). This entry is of the form `..svc.cluster.local`, which means that if a container uses `` it will resolve to the service which is local to a namespace. This is useful for using the same configuration across multiple namespaces such as Development, Staging and Production. If you want to reach across namespaces, you need to use the fully qualified domain name (FQDN). ## {{% heading "whatsnext" %}} \* Learn more about [setting the namespace preference](/docs/concepts/overview/working-with-objects/namespaces/#setting-the-namespace-preference). \* Learn more about [setting the namespace for a request](/docs/concepts/overview/working-with-objects/namespaces/#setting-the-namespace-for-a-request) \* See [namespaces design](https://git.k8s.io/design-proposals-archive/architecture/namespaces.md).
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/namespaces.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/namespaces.md
[ -0.007306437939405441, -0.03304173797369003, 0.008298144675791264, -0.016821343451738358, -0.04858318343758583, -0.02220364287495613, 0.10821493715047836, -0.0785524919629097, 0.06004444137215614, 0.02629234455525875, -0.056987084448337555, -0.10892728716135025, 0.05389914661645889, 0.05469760671257973, 0.03519132360816002, 0.03872000053524971, 0.021988237276673317, -0.005136906635016203, -0.07258185744285583, -0.03403384983539581, 0.0649755597114563, -0.02728905901312828, 0.008990958333015442, -0.00022595161863137037, -0.06403978914022446, 0.005423326976597309, -0.06277155131101608, 0.002301017753779888, 0.05030712112784386, -0.03944765776395798, 0.017015429213643074, -0.025345345959067345, 0.05383603647351265, 0.03563530370593071, 0.0532534196972847, 0.012210299260914326, 0.0021266175899654627, -0.027401966974139214, -0.09873061627149582, 0.05014520511031151, 0.011487348936498165, 0.04322359338402748, -0.07676567137241364, -0.025951148942112923, -0.05939066410064697, 0.042578041553497314, -0.009857559576630592, -0.020361246541142464, -0.010771146044135094, -0.019961468875408173, 0.05053619295358658, -0.12288907170295715, 0.04956629127264023, 0.00837255734950304, 0.04135391116142273, -0.025317402556538582, -0.021537920460104942, 0.014864826574921608, 0.06389081478118896, -0.05366579070687294, 0.043400783091783524, -0.06172329559922218, -0.013860509730875492, -0.02569678984582424, 0.0063903662376105785, 0.008640121668577194, -0.025106973946094513, 0.04494241997599602, -0.0018615489825606346, -0.008993325755000114, 0.030998846516013145, 0.021871810778975487, -0.0612386092543602, -0.024518735706806183, 0.010557853616774082, 0.00041402826900593936, -0.08961981534957886, 0.09840064495801926, 0.05384770408272743, -0.1447705328464508, 0.01723529025912285, 0.05967283248901367, 0.008975817821919918, -0.047580793499946594, -0.0828406810760498, 0.004688518587499857, -0.03953227400779724, -0.06884583830833435, 0.06998699903488159, 0.019459396600723267, 0.019527273252606392, -0.0031371591612696648, 0.10575398057699203, -0.10262927412986755, 0.049991533160209656, -0.027485748752951622, 0.007308466359972954, -0.016114678233861923, 0.003526451764628291, 0.021176153793931007, -0.06346055865287781, -0.06434889882802963, 0.02019667439162731, -0.008313843049108982, 0.03027629479765892, -0.006696164608001709, -0.038000527769327164, -0.0027840042021125555, 0.02831500582396984, 0.10754574835300446, -0.05337695777416229, 0.09088300913572311, -0.07649341225624084, 0.005931019317358732, 0.023246731609106064, -0.03535700589418411, 0.049628932029008865, -0.040597304701805115, 0.09412608295679092, 0.05494631454348564, 0.01496809534728527, -0.11629410833120346, 0.0736282467842102, -0.006362550426274538, 0.021218761801719666, 0.04263487085700035, -0.1310175657272339, 4.38264517933866e-33, 0.0005048371385782957, -0.015067245811223984, -0.028008798137307167, 0.04802041873335838, 0.04992637038230896, -0.08132248371839523, -0.06235118582844734, -0.017041444778442383, -0.09519288688898087, -0.07590964436531067, -0.0008642273023724556, 0.13754604756832123, 0.05489453300833702, -0.08506884425878525, 0.06771779805421829, 0.05105366185307503, 0.0026152399368584156, 0.09448149055242538, 0.12723501026630402, 0.04887948930263519, 0.032316260039806366, -0.022935213521122932, -0.024139048531651497, 0.07383058220148087, 0.014479173347353935, -0.05792718753218651, 0.00043792102951556444, -0.11332396417856216, 0.07358207553625107, 0.013799038715660572, -0.002357998164370656, -0.014825614169239998, 0.07107286900281906, -0.0008126162574626505, -0.04491233080625534, 0.05571344494819641, 0.011958922259509563, 0.05661040171980858, -0.06928134709596634, -0.018685730174183846, -0.05621875822544098, -0.011316230520606041, 0.04226981848478317, -0.05421116575598717, 0.018444230780005455, -0.019768837839365005, 0.06483500450849533, -0.003623112104833126, 0.050836093723773956, 0.0437491275370121, -0.01656654290854931, -0.04916245490312576, 0.05758088454604149, 0.0022622537799179554, 0.057928524911403656, -0.035752516239881516, 0.020246440544724464, 0.036394648253917694, -0.035472165793180466, -0.045908790081739426, -0.02084358222782612, -0.018421629443764687, 0.0109012546017766, 0.07427700608968735, 0.014934525825083256, -0.012613179162144661, -0.043764710426330566, 0.08093836158514023, 0.03745006397366524, -0.013578489422798157, -0.0702720358967781, 0.03743577003479004, -0.04274904355406761, 0.025182081386446953, -0.041040677577257156, -0.06232764199376106, -0.011385439895093441, 0.0386568047106266, -0.10269296914339066, 0.05908319726586342, -0.009275846183300018, -0.0571182556450367, -0.022092901170253754, 0.054154641926288605, -0.09964272379875183, -0.020467106252908707, -0.0009224977111443877, 0.008260400965809822, -0.05736859142780304, -0.0371391661465168, 0.06518953293561935, -0.06855814903974533, 0.015422436408698559, 0.06287787109613419, -0.030958417803049088, -5.7883171197572904e-33, 0.0730895847082138, 0.01662294752895832, 0.010011851787567139, -0.023683123290538788, 0.050639186054468155, 0.0324251651763916, -0.03926458582282066, 0.02298421785235405, -0.00921939592808485, -0.05772647261619568, -0.049066051840782166, -0.07911624014377594, 0.05052340775728226, 0.03888238966464996, -0.06623031944036484, -0.029473980888724327, -0.0036702158395200968, -0.008919495157897472, -0.028972886502742767, 0.01957382634282112, -0.03194637969136238, -0.01674068719148636, -0.05235027149319649, 0.04831032082438469, 0.05732996389269829, 0.05006144940853119, -0.09366446733474731, -0.028913479298353195, 0.005932522471994162, 0.05063708871603012, -0.08296029269695282, -0.10731261968612671, -0.019488494843244553, -0.05147939175367355, 0.006503155454993248, -0.12048386037349701, -0.054475825279951096, 0.09997207671403885, -0.021256139501929283, -0.0389564111828804, 0.04625062271952629, 0.015966303646564484, 0.004610308445990086, -0.0318877175450325, -0.062471725046634674, 0.018116887658834457, 0.05356580391526222, -0.06426802277565002, -0.026042455807328224, -0.08830063790082932, -0.006438732612878084, -0.06901892274618149, -0.07271832972764969, 0.018899647518992424, -0.027820629999041557, 0.043747931718826294, 0.07075344026088715, 0.11339437961578369, 0.017029423266649246, 0.03313283994793892, 0.045316874980926514, -0.07643076032400131, 0.00746457464993, 0.1317613571882248, -0.03238118067383766, -0.0431017130613327, 0.013872486539185047, 0.020373603329062462, -0.029903067275881767, 0.0012083655456081033, -0.07153265178203583, -0.07270634174346924, -0.015383088029921055, 0.041009195148944855, -0.008039113134145737, 0.02043806202709675, 0.11979512870311737, -0.07601264864206314, 0.012649993412196636, 0.038487017154693604, -0.06763772666454315, 0.03039010986685753, -0.047546956688165665, 0.02591365948319435, 0.07700734585523605, 0.03151475265622139, 0.09207236021757126, 0.07028006762266159, 0.011419805698096752, 0.09035560488700867, -0.0023819359485059977, 0.007906988263130188, -0.00967120099812746, 0.04387477785348892, -0.048898134380578995, -5.5525465114669714e-8, 0.041243769228458405, -0.0023589415941387415, -0.03987691551446915, 0.028770647943019867, -0.011272149160504341, -0.003102269023656845, -0.0019017904996871948, -0.029316918924450874, 0.0017109985928982496, 0.07364927232265472, 0.0349830761551857, 0.11467505246400833, -0.032962728291749954, -0.009672515094280243, -0.0016643849667161703, 0.0036914858501404524, -0.0105404332280159, 0.023891635239124298, -0.015848839655518532, -0.04760780557990074, -0.07240524888038635, -0.07304782420396805, -0.03447863087058067, -0.05945363640785217, -0.01726819947361946, 0.03890101984143257, -0.021321596577763557, 0.022401057183742523, 0.05603652447462082, 0.004257104825228453, -0.011882619000971317, 0.004025579895824194, -0.09552965313196182, 0.06859233975410461, -0.03929335996508598, -0.009334728121757507, -0.11365531384944916, 0.0553167387843132, 0.02538328804075718, 0.053823888301849365, -0.014278187416493893, -0.018890585750341415, -0.006446857936680317, 0.005109437741339207, 0.035050831735134125, 0.11387784034013748, -0.015078849159181118, 0.027607055380940437, -0.004918091464787722, -0.00048752405564300716, -0.046670541167259216, -0.016360588371753693, -0.007154934573918581, 0.10372608155012131, -0.008987597189843655, -0.006484583020210266, -0.021349113434553146, 0.052252788096666336, 0.04905637353658676, -0.04703167453408241, -0.025873493403196335, 0.0042659868486225605, -0.015349209308624268, -0.0036170496605336666 ]
0.152745
This page shows how to configure and enable the `ip-masq-agent`. ## {{% heading "prerequisites" %}} {{< include "task-tutorial-prereqs.md" >}} {{< version-check >}} ## IP Masquerade Agent User Guide The `ip-masq-agent` configures iptables rules to hide a pod's IP address behind the cluster node's IP address. This is typically done when sending traffic to destinations outside the cluster's pod [CIDR](https://en.wikipedia.org/wiki/Classless\_Inter-Domain\_Routing) range. ### Key Terms \* \*\*NAT (Network Address Translation)\*\*: Is a method of remapping one IP address to another by modifying either the source and/or destination address information in the IP header. Typically performed by a device doing IP routing. \* \*\*Masquerading\*\*: A form of NAT that is typically used to perform a many to one address translation, where multiple source IP addresses are masked behind a single address, which is typically the device doing the IP routing. In Kubernetes this is the Node's IP address. \* \*\*CIDR (Classless Inter-Domain Routing)\*\*: Based on the variable-length subnet masking, allows specifying arbitrary-length prefixes. CIDR introduced a new method of representation for IP addresses, now commonly known as \*\*CIDR notation\*\*, in which an address or routing prefix is written with a suffix indicating the number of bits of the prefix, such as 192.168.2.0/24. \* \*\*Link Local\*\*: A link-local address is a network address that is valid only for communications within the network segment or the broadcast domain that the host is connected to. Link-local addresses for IPv4 are defined in the address block 169.254.0.0/16 in CIDR notation. The ip-masq-agent configures iptables rules to handle masquerading node/pod IP addresses when sending traffic to destinations outside the cluster node's IP and the Cluster IP range. This essentially hides pod IP addresses behind the cluster node's IP address. In some environments, traffic to "external" addresses must come from a known machine address. For example, in Google Cloud, any traffic to the internet must come from a VM's IP. When containers are used, as in Google Kubernetes Engine, the Pod IP will be rejected for egress. To avoid this, we must hide the Pod IP behind the VM's own IP address - generally known as "masquerade". By default, the agent is configured to treat the three private IP ranges specified by [RFC 1918](https://tools.ietf.org/html/rfc1918) as non-masquerade [CIDR](https://en.wikipedia.org/wiki/Classless\_Inter-Domain\_Routing). These ranges are `10.0.0.0/8`, `172.16.0.0/12`, and `192.168.0.0/16`. The agent will also treat link-local (169.254.0.0/16) as a non-masquerade CIDR by default. The agent is configured to reload its configuration from the location \*/etc/config/ip-masq-agent\* every 60 seconds, which is also configurable. ![masq/non-masq example](/images/docs/ip-masq.png) The agent configuration file must be written in YAML or JSON syntax, and may contain three optional keys: \* `nonMasqueradeCIDRs`: A list of strings in [CIDR](https://en.wikipedia.org/wiki/Classless\_Inter-Domain\_Routing) notation that specify the non-masquerade ranges. \* `masqLinkLocal`: A Boolean (true/false) which indicates whether to masquerade traffic to the link local prefix `169.254.0.0/16`. False by default. \* `resyncInterval`: A time interval at which the agent attempts to reload config from disk. For example: '30s', where 's' means seconds, 'ms' means milliseconds. Traffic to 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 ranges will NOT be masqueraded. Any other traffic (assumed to be internet) will be masqueraded. An example of a local destination from a pod could be its Node's IP address as well as another node's address or one of the IP addresses in Cluster's IP range. Any other traffic will be masqueraded by default. The below entries show the default set of rules that are applied by the ip-masq-agent: ```shell iptables -t nat -L IP-MASQ-AGENT ``` ```none target prot opt source destination RETURN all -- anywhere 169.254.0.0/16 /\* ip-masq-agent: cluster-local traffic should not be subject to MASQUERADE \*/ ADDRTYPE match dst-type !LOCAL RETURN all -- anywhere 10.0.0.0/8 /\*
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/ip-masq-agent.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/ip-masq-agent.md
[ 0.018076092004776, 0.022414766252040863, -0.023113375529646873, 0.0032336495351046324, 0.009212031960487366, -0.01891171932220459, -0.0058429064229130745, -0.04589315503835678, -0.013715947978198528, -0.040967073291540146, 0.024772852659225464, -0.004572758451104164, 0.06053878739476204, -0.08435668051242828, 0.004619559273123741, 0.015706563368439674, 0.0631379783153534, -0.007889037020504475, 0.022343076765537262, -0.11220326274633408, 0.04531265050172806, -0.013049094006419182, -0.0010973705211654305, -0.05157994106411934, -0.03366779908537865, 0.015218688175082207, -0.027278639376163483, 0.0200330913066864, 0.02127384953200817, -0.01061809528619051, 0.021990351378917694, 0.06546548008918762, 0.0067957015708088875, 0.042313359677791595, -0.02926008217036724, 0.05013931915163994, 0.06138799712061882, 0.04967470094561577, -0.03311162814497948, 0.015396161936223507, 0.09999207407236099, -0.0166248120367527, 0.049766864627599716, -0.05979304760694504, 0.012506797909736633, 0.026668885722756386, -0.06946012377738953, 0.03150191903114319, -0.022776883095502853, -0.06666002422571182, -0.05481671169400215, -0.05637151747941971, -0.01370152272284031, 0.09760094434022903, 0.06670252233743668, 0.019307952374219894, 0.01600012369453907, 0.03712950646877289, 0.02716454677283764, 0.015914233401417732, -0.016244102269411087, -0.022849395871162415, 0.027322696521878242, 0.016065062955021858, 0.015275249257683754, -0.08314508199691772, -0.023976031690835953, 0.045054156333208084, 0.04354289174079895, 0.03748233616352081, 0.016490982845425606, -0.033159758895635605, -0.0762566477060318, 0.04350798577070236, -0.014418452978134155, 0.07507064938545227, -0.029379742220044136, 0.028333622962236404, 0.03290925920009613, -0.006634625140577555, 0.0254720076918602, 0.03913290798664093, 0.02898012287914753, -0.006201491225510836, -0.07832590490579605, -0.03339524194598198, -0.033675678074359894, -0.08160939067602158, 0.08472677320241928, -0.011245574802160263, -0.09179271757602692, -0.05709299072623253, -0.046212438493967056, 0.024583719670772552, 0.04660220071673393, 0.04444300755858421, -0.004678842145949602, -0.07692534476518631, -0.04094332456588745, 0.061544857919216156, 0.052572280168533325, -0.025471603497862816, -0.05684910714626312, 0.0008212787797674537, -0.02351350151002407, 0.005979226902127266, -0.023100610822439194, 0.028412027284502983, 0.003688347991555929, 0.051617033779621124, -0.0280513484030962, 0.02007826417684555, 0.0017642178572714329, -0.07516014575958252, -0.03116772323846817, -0.016668761149048805, 0.14462672173976898, 0.08292771130800247, 0.023754579946398735, -0.09902141243219376, -0.03588789701461792, -0.01805795170366764, 0.0175006240606308, -0.05844563990831375, 0.06622376292943954, -0.0015413169749081135, -0.05029883235692978, 4.0685832108416844e-33, 0.03283314034342766, -0.018160676583647728, 0.00798382144421339, -0.006372298114001751, 0.05001278221607208, -0.04658687859773636, 0.054713670164346695, 0.04795407876372337, -0.015241828747093678, 0.01237607654184103, 0.02245478890836239, 0.03207854926586151, 0.05762506648898125, -0.02661251276731491, -0.04757491871714592, -0.010579722002148628, 0.0316518172621727, 0.02002686820924282, 0.11326982825994492, 0.023122822865843773, -0.003006251994520426, -0.016649698838591576, 0.025778835639357567, 0.05444561317563057, 0.015669038519263268, 0.06208743155002594, -0.037180837243795395, -0.165833979845047, 0.07183004170656204, 0.035599589347839355, 0.0031188814900815487, 0.13276506960391998, -0.027223318815231323, 0.007350796367973089, -0.048140767961740494, 0.027530759572982788, -0.022927895188331604, -0.09000834077596664, -0.04203180596232414, -0.028694715350866318, -0.07551407068967819, -0.013481461443006992, 0.04138036072254181, -0.13139095902442932, -0.03516508266329765, 0.0024874855298548937, -0.030398264527320862, 0.0046804118901491165, 0.06788329780101776, 0.07356905937194824, -0.009374775923788548, -0.03301577270030975, 0.0023883297108113766, -0.028732743114233017, 0.023375051096081734, -0.004652079194784164, 0.0121429692953825, 0.05180605128407478, -0.029094792902469635, 0.06880386918783188, -0.04989219829440117, -0.01623082533478737, -0.08415178954601288, 0.08265779912471771, 0.017793279141187668, 0.054889973253011703, -0.06844484806060791, 0.04484913870692253, 0.050130486488342285, 0.04517827555537224, -0.008324158377945423, 0.07329417765140533, -0.03424070402979851, 0.1139860600233078, -0.06537920981645584, -0.014410773292183876, -0.046889789402484894, -0.026540236547589302, 0.01454419270157814, -0.021577399224042892, -0.0685892328619957, 0.08516202867031097, -0.08815878629684448, 0.023627551272511482, -0.07156350463628769, -0.07865578681230545, -0.018869498744606972, -0.00045090768253430724, 0.025590382516384125, 0.02205216884613037, 0.01274880114942789, 0.0067321197129786015, -0.07544391602277756, 0.08341769874095917, -0.0905977413058281, -5.793877942720649e-33, 0.010544048622250557, 0.011180280707776546, -0.1393824964761734, 0.01199380774050951, -0.05633729323744774, -0.0553857758641243, 0.0893595814704895, 0.06485116481781006, 0.07586188614368439, -0.03196021169424057, -0.08096163719892502, -0.00490084383636713, 0.07593095302581787, -0.04430698975920677, -0.0739993304014206, -0.09027755260467529, -0.02922266349196434, -0.015694621950387955, -0.05650937929749489, 0.06474658846855164, -0.03194740414619446, 0.05028412118554115, -0.04938375949859619, -0.04668932408094406, 0.046176448464393616, -0.012602673843502998, 0.07886675000190735, 0.06803348660469055, -0.0844108983874321, -0.0016447232337668538, 0.08772758394479752, -0.0490587018430233, -0.01587080955505371, -0.09356770664453506, -0.0008224415360018611, 0.09231388568878174, -0.03770103305578232, 0.07608264684677124, 0.0152533994987607, -0.017562272027134895, 0.026445649564266205, -0.00014083314454182982, -0.1020021140575409, -0.000572310178540647, -0.01501525193452835, 0.05826842412352562, -0.01790703274309635, 0.08116071671247482, 0.005000091623514891, -0.016983546316623688, -0.03995683044195175, -0.062218282371759415, -0.03303898498415947, 0.034929126501083374, -0.05428820848464966, 0.036872345954179764, -0.010483207181096077, 0.0930931493639946, 0.05097510293126106, 0.05258624628186226, 0.06131203472614288, -0.08773932605981827, -0.06497339904308319, 0.07000930607318878, 0.006171491462737322, -0.00992558989673853, 0.0054689738899469376, -0.008933438919484615, 0.03794093430042267, -0.040149904787540436, 0.030729245394468307, 0.0033101574517786503, 0.04431494325399399, 0.044601138681173325, 0.023231884464621544, -0.05876569077372551, 0.05846986174583435, -0.0033840863034129143, -0.04744721204042435, -0.01674274541437626, -0.10371524095535278, 0.04772896319627762, -0.08830470591783524, -0.02942465990781784, 0.10226599872112274, 0.017650984227657318, 0.0005442075780592859, 0.09477484971284866, 0.024626094847917557, 0.05456332862377167, -0.04447636380791664, 0.022425394505262375, -0.06175839528441429, 0.05133434012532234, -0.0892484039068222, -5.832453453535891e-8, 0.009315157309174538, 0.0249019842594862, -0.001958810957148671, -0.007619913667440414, -0.010750258341431618, 0.09376036375761032, 0.04091712832450867, -0.042175084352493286, -0.0009428959456272423, 0.045969851315021515, 0.044839829206466675, 0.04531676694750786, -0.07451491057872772, -0.03608773276209831, -0.008321578614413738, 0.025047020986676216, 0.02832457423210144, -0.041132885962724686, -0.06784659624099731, -0.07623091340065002, -0.09877321869134903, -0.10675010830163956, -0.09419447183609009, 0.0287828017026186, -0.04247105121612549, 0.011574679985642433, 0.05871039628982544, 0.017155682668089867, -0.01004450861364603, 0.049006883054971695, -0.038624513894319534, 0.04797244444489479, 0.03235432878136635, 0.011705040000379086, -0.0864887610077858, 0.12009191513061523, -0.04051528498530388, 0.02964441105723381, 0.030835945159196854, -0.008664307184517384, -0.08759724348783493, -0.02016429789364338, -0.06268347799777985, -0.0395687073469162, 0.029582777991890907, 0.050631165504455566, -0.09839744120836258, 0.0358470119535923, 0.009625835344195366, 0.03589153289794922, -0.03537444770336151, -0.03594158589839935, -0.02172158658504486, 0.047519512474536896, 0.07379674911499023, -0.004266079515218735, -0.023010844364762306, -0.08487304300069809, 0.04924178496003151, 0.03611571341753006, 0.027679529041051865, 0.012181784026324749, 0.045148175209760666, -0.03521576523780823 ]
0.192117
the default set of rules that are applied by the ip-masq-agent: ```shell iptables -t nat -L IP-MASQ-AGENT ``` ```none target prot opt source destination RETURN all -- anywhere 169.254.0.0/16 /\* ip-masq-agent: cluster-local traffic should not be subject to MASQUERADE \*/ ADDRTYPE match dst-type !LOCAL RETURN all -- anywhere 10.0.0.0/8 /\* ip-masq-agent: cluster-local traffic should not be subject to MASQUERADE \*/ ADDRTYPE match dst-type !LOCAL RETURN all -- anywhere 172.16.0.0/12 /\* ip-masq-agent: cluster-local traffic should not be subject to MASQUERADE \*/ ADDRTYPE match dst-type !LOCAL RETURN all -- anywhere 192.168.0.0/16 /\* ip-masq-agent: cluster-local traffic should not be subject to MASQUERADE \*/ ADDRTYPE match dst-type !LOCAL MASQUERADE all -- anywhere anywhere /\* ip-masq-agent: outbound traffic should be subject to MASQUERADE (this match must come after cluster-local CIDR matches) \*/ ADDRTYPE match dst-type !LOCAL ``` By default, in GCE/Google Kubernetes Engine, if network policy is enabled or you are using a cluster CIDR not in the 10.0.0.0/8 range, the `ip-masq-agent` will run in your cluster. If you are running in another environment, you can add the `ip-masq-agent` [DaemonSet](/docs/concepts/workloads/controllers/daemonset/) to your cluster. ## Create an ip-masq-agent To create an ip-masq-agent, run the following kubectl command: ```shell kubectl apply -f https://raw.githubusercontent.com/kubernetes-sigs/ip-masq-agent/master/ip-masq-agent.yaml ``` You must also apply the appropriate node label to any nodes in your cluster that you want the agent to run on. ```shell kubectl label nodes my-node node.kubernetes.io/masq-agent-ds-ready=true ``` More information can be found in the ip-masq-agent documentation [here](https://github.com/kubernetes-sigs/ip-masq-agent). In most cases, the default set of rules should be sufficient; however, if this is not the case for your cluster, you can create and apply a [ConfigMap](/docs/tasks/configure-pod-container/configure-pod-configmap/) to customize the IP ranges that are affected. For example, to allow only 10.0.0.0/8 to be considered by the ip-masq-agent, you can create the following [ConfigMap](/docs/tasks/configure-pod-container/configure-pod-configmap/) in a file called "config". {{< note >}} It is important that the file is called config since, by default, that will be used as the key for lookup by the `ip-masq-agent`: ```yaml nonMasqueradeCIDRs: - 10.0.0.0/8 resyncInterval: 60s ``` {{< /note >}} Run the following command to add the configmap to your cluster: ```shell kubectl create configmap ip-masq-agent --from-file=config --namespace=kube-system ``` This will update a file located at `/etc/config/ip-masq-agent` which is periodically checked every `resyncInterval` and applied to the cluster node. After the resync interval has expired, you should see the iptables rules reflect your changes: ```shell iptables -t nat -L IP-MASQ-AGENT ``` ```none Chain IP-MASQ-AGENT (1 references) target prot opt source destination RETURN all -- anywhere 169.254.0.0/16 /\* ip-masq-agent: cluster-local traffic should not be subject to MASQUERADE \*/ ADDRTYPE match dst-type !LOCAL RETURN all -- anywhere 10.0.0.0/8 /\* ip-masq-agent: cluster-local MASQUERADE all -- anywhere anywhere /\* ip-masq-agent: outbound traffic should be subject to MASQUERADE (this match must come after cluster-local CIDR matches) \*/ ADDRTYPE match dst-type !LOCAL ``` By default, the link local range (169.254.0.0/16) is also handled by the ip-masq agent, which sets up the appropriate iptables rules. To have the ip-masq-agent ignore link local, you can set `masqLinkLocal` to true in the ConfigMap. ```yaml nonMasqueradeCIDRs: - 10.0.0.0/8 resyncInterval: 60s masqLinkLocal: true ```
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/ip-masq-agent.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/ip-masq-agent.md
[ 0.06217867136001587, 0.0221871230751276, -0.056550104171037674, -0.025721438229084015, 0.020978355780243874, -0.0006026214105077088, -0.036489684134721756, 0.0037329373881220818, -0.04751739650964737, 0.004692398011684418, 0.021265337243676186, -0.08615292608737946, -0.013042539358139038, -0.007760355249047279, 0.029863420873880386, 0.021608537063002586, 0.10388284921646118, -0.024757688865065575, 0.06599292904138565, -0.1053612008690834, -0.017561377957463264, -0.06433749943971634, -0.002700588433071971, -0.08381873369216919, -0.062121257185935974, 0.016916288062930107, -0.046963803470134735, -0.013961158692836761, -0.00835543405264616, -0.03435554727911949, -0.02002583257853985, 0.09985171258449554, -0.013663288205862045, 0.002853124402463436, 0.041583236306905746, 0.0336858406662941, 0.05669304355978966, 0.04421260952949524, -0.012692881748080254, 0.03588971495628357, 0.14578478038311005, 0.004210962448269129, 0.03916088491678238, -0.06580623984336853, 0.04061514884233475, -0.06745176017284393, -0.04762823507189751, 0.03558550029993057, -0.009792751632630825, -0.05122823268175125, -0.05090588331222534, -0.008933241479098797, -0.018721584230661392, 0.09412606060504913, 0.06277038156986237, 0.05943075940012932, 0.011226674541831017, 0.05185156315565109, 0.07785667479038239, -0.10036486387252808, -0.04257438704371452, -0.015935659408569336, -0.04116344079375267, -0.010005741380155087, -0.0445784255862236, -0.07627706974744797, -0.04873332008719444, 0.010968086309731007, 0.01987445168197155, 0.05316178873181343, 0.019518496468663216, -0.03414216265082359, -0.06849277019500732, 0.0030348547734320164, -0.0028536012396216393, 0.08426342904567719, -0.02983754687011242, -0.000009639979907660745, 0.020372677594423294, 0.02680930867791176, -0.01591576635837555, -0.01174559909850359, -0.007428386714309454, 0.004242286551743746, -0.07497588545084, 0.0014464023988693953, -0.038487281650304794, -0.043514225631952286, 0.13010931015014648, -0.04215920716524124, -0.03183503821492195, -0.015554944053292274, -0.07550133764743805, 0.011677427217364311, 0.0393882654607296, 0.030026940628886223, -0.05454053357243538, -0.040531497448682785, 0.05956709757447243, 0.05317854881286621, 0.028785377740859985, -0.02430672012269497, -0.07621550559997559, 0.08730634301900864, -0.0351264514029026, 0.02080572210252285, -0.03412676975131035, 0.013886834494769573, 0.017442800104618073, 0.0979919582605362, -0.031993359327316284, 0.054842229932546616, 0.012830357998609543, -0.037811435759067535, -0.014016436412930489, 0.04616769030690193, 0.11194786429405212, 0.04836796969175339, -0.08029903471469879, -0.02148183435201645, -0.026451416313648224, -0.024306392297148705, 0.00008936993981478736, 0.009353120811283588, 0.08659316599369049, 0.042993173003196716, -0.03752805292606354, 3.912371399218926e-33, 0.038327429443597794, -0.08916465193033218, 0.04135533794760704, -0.05675497278571129, 0.06600823253393173, -0.016398148611187935, 0.03708386421203613, 0.004014074336737394, -0.00218373304232955, -0.017731420695781708, -0.03152652084827423, -0.0015977072762325406, -0.018680689856410027, -0.08231283724308014, -0.02946728654205799, 0.06081750988960266, 0.07524630427360535, -0.03363797068595886, 0.02320048399269581, 0.046982210129499435, 0.04481412470340729, -0.05032380670309067, -0.050028007477521896, 0.01184023916721344, -0.06709300726652145, 0.013033464550971985, 0.021254176273941994, -0.08879822492599487, 0.07952744513750076, 0.02417987585067749, -0.03215740621089935, 0.07016051560640335, 0.015951700508594513, 0.04416419193148613, -0.0444614551961422, 0.07465146481990814, -0.07748989760875702, -0.07059697806835175, -0.038312043994665146, -0.048908479511737823, -0.1092396229505539, -0.009545965120196342, 0.04705660790205002, -0.11893747746944427, 0.025840118527412415, -0.008102916181087494, -0.03330596163868904, -0.01926097273826599, 0.04629242792725563, 0.06910919398069382, -0.05983634293079376, -0.031181510537862778, -0.023753026500344276, -0.04537161812186241, 0.002856953302398324, 0.03869565203785896, -0.02487679198384285, 0.10375466197729111, -0.02435099147260189, 0.11628831177949905, -0.013667535968124866, -0.06163697689771652, -0.025411097332835197, -0.02508210763335228, 0.017328975722193718, 0.0819292962551117, -0.07028431445360184, 0.07356440275907516, 0.023393850773572922, 0.053369469940662384, 0.01673055812716484, 0.07898110151290894, -0.01280988473445177, 0.10125697404146194, 0.031112628057599068, -0.052726805210113525, 0.034835729748010635, 0.003612235886976123, 0.02395881526172161, -0.05498634651303291, -0.030349206179380417, 0.08138228207826614, -0.12660005688667297, 0.029941825196146965, -0.018176892772316933, -0.053278472274541855, -0.019460225477814674, 0.03715252876281738, 0.03295358270406723, 0.08033738285303116, -0.051956675946712494, -0.015857931226491928, -0.004539964720606804, 0.04592878371477127, -0.10276255756616592, -5.7541436622689634e-33, -0.014422987587749958, -0.0228259339928627, -0.0769614577293396, -0.027835436165332794, -0.019789177924394608, -0.021169405430555344, 0.022066812962293625, 0.049085553735494614, 0.0806780755519867, 0.043340783566236496, -0.053431473672389984, 0.0168728269636631, 0.07727113366127014, -0.09674341231584549, -0.1045122891664505, -0.05736088007688522, 0.01666315272450447, -0.006139371544122696, -0.008997570723295212, 0.03918571397662163, -0.02848917990922928, 0.06464788317680359, -0.03608635440468788, 0.000042750256397994235, 0.016895314678549767, 0.007899230346083641, 0.0572519414126873, 0.03916844725608826, -0.12520067393779755, 0.01519885566085577, 0.040037404745817184, -0.013741555623710155, -0.04659705609083176, -0.032572340220212936, 0.048319246619939804, 0.037114694714546204, 0.01429392397403717, 0.10373920202255249, 0.013983439654111862, -0.0448661632835865, -0.01054583303630352, -0.02358066290616989, -0.07271910458803177, 0.0419330820441246, -0.005712778307497501, 0.030770737677812576, 0.03984646499156952, 0.013571657240390778, 0.000460038980236277, 0.030765404924750328, -0.07785511016845703, -0.067566879093647, -0.0314653143286705, 0.07437944412231445, -0.046649590134620667, 0.1018042042851448, 0.011236987076699734, 0.0750272274017334, -0.033252812922000885, 0.020872563123703003, 0.07475561648607254, -0.0696217343211174, -0.11793386191129684, 0.05379302054643631, 0.021306142210960388, -0.036777473986148834, -0.008954064920544624, -0.01322736032307148, 0.017476756125688553, -0.0044669401831924915, -0.035320308059453964, 0.0608847551047802, 0.004659352358430624, 0.08877786993980408, 0.014210784807801247, -0.05133016034960747, 0.02022530883550644, 0.014455171301960945, 0.0050672669894993305, 0.032072193920612335, -0.10329584777355194, 0.061029206961393356, -0.05379738658666611, -0.024869004264473915, 0.052904896438121796, 0.027644162997603416, 0.007608612067997456, 0.08121192455291748, 0.028510650619864464, 0.08272278308868408, -0.0796930342912674, 0.007102868519723415, -0.0422527939081192, 0.018148129805922508, -0.057904232293367386, -4.917626128531083e-8, 0.03712357208132744, -0.02106836996972561, -0.05285191163420677, 0.07460552453994751, -0.07061038166284561, 0.08488946408033371, 0.018664240837097168, -0.06451792269945145, -0.020131973549723625, 0.06107805296778679, 0.009233620017766953, 0.07092799991369247, -0.06190472096204758, -0.052804477512836456, -0.009641345590353012, -0.04410254955291748, 0.05385865643620491, -0.09018885344266891, -0.06104860082268715, -0.06041595712304115, -0.03607845678925514, -0.09555552899837494, -0.0723605528473854, 0.07683222740888596, -0.04315521940588951, 0.05012507364153862, 0.03242037072777748, 0.006499682553112507, -0.037983693182468414, 0.09258533269166946, -0.02091308683156967, -0.014906489290297031, -0.014062323607504368, 0.0035923675168305635, -0.08917460590600967, -0.027313347905874252, -0.025115929543972015, 0.05597611516714096, 0.07094534486532211, -0.012761209160089493, -0.015430239029228687, -0.028650278225541115, -0.0026291264221072197, -0.025674134492874146, 0.031944479793310165, 0.024806106463074684, -0.06307154893875122, 0.031886450946331024, 0.04076465964317322, 0.07723518460988998, -0.0015772994374856353, -0.07555064558982849, -0.009522796608507633, 0.00936893466860056, 0.0769142135977745, -0.022652851417660713, -0.023294584825634956, -0.08379042893648148, 0.04177219048142433, 0.016118578612804413, 0.035482048988342285, -0.026530127972364426, 0.014401051215827465, -0.03708307072520256 ]
0.06795
{{< feature-state for\_k8s\_version="v1.18" state="stable" >}} This page provides an overview of NodeLocal DNSCache feature in Kubernetes. ## {{% heading "prerequisites" %}} {{< include "task-tutorial-prereqs.md" >}} {{< version-check >}} ## Introduction NodeLocal DNSCache improves Cluster DNS performance by running a DNS caching agent on cluster nodes as a DaemonSet. In today's architecture, Pods in 'ClusterFirst' DNS mode reach out to a kube-dns `serviceIP` for DNS queries. This is translated to a kube-dns/CoreDNS endpoint via iptables rules added by kube-proxy. With this new architecture, Pods will reach out to the DNS caching agent running on the same node, thereby avoiding iptables DNAT rules and connection tracking. The local caching agent will query kube-dns service for cache misses of cluster hostnames ("`cluster.local`" suffix by default). ## Motivation \* With the current DNS architecture, it is possible that Pods with the highest DNS QPS have to reach out to a different node, if there is no local kube-dns/CoreDNS instance. Having a local cache will help improve the latency in such scenarios. \* Skipping iptables DNAT and connection tracking will help reduce [conntrack races](https://github.com/kubernetes/kubernetes/issues/56903) and avoid UDP DNS entries filling up conntrack table. \* Connections from the local caching agent to kube-dns service can be upgraded to TCP. TCP conntrack entries will be removed on connection close in contrast with UDP entries that have to timeout ([default](https://www.kernel.org/doc/Documentation/networking/nf\_conntrack-sysctl.txt) `nf\_conntrack\_udp\_timeout` is 30 seconds) \* Upgrading DNS queries from UDP to TCP would reduce tail latency attributed to dropped UDP packets and DNS timeouts usually up to 30s (3 retries + 10s timeout). Since the nodelocal cache listens for UDP DNS queries, applications don't need to be changed. \* Metrics & visibility into DNS requests at a node level. \* Negative caching can be re-enabled, thereby reducing the number of queries for the kube-dns service. ## Architecture Diagram This is the path followed by DNS Queries after NodeLocal DNSCache is enabled: {{< figure src="/images/docs/nodelocaldns.svg" alt="NodeLocal DNSCache flow" title="Nodelocal DNSCache flow" caption="This image shows how NodeLocal DNSCache handles DNS queries." class="diagram-medium" >}} ## Configuration {{< note >}} The local listen IP address for NodeLocal DNSCache can be any address that can be guaranteed to not collide with any existing IP in your cluster. It's recommended to use an address with a local scope, for example, from the 'link-local' range '169.254.0.0/16' for IPv4 or from the 'Unique Local Address' range in IPv6 'fd00::/8'. {{< /note >}} This feature can be enabled using the following steps: \* Prepare a manifest similar to the sample [`nodelocaldns.yaml`](https://github.com/kubernetes/kubernetes/blob/master/cluster/addons/dns/nodelocaldns/nodelocaldns.yaml) and save it as `nodelocaldns.yaml`. \* If using IPv6, the CoreDNS configuration file needs to enclose all the IPv6 addresses into square brackets if used in 'IP:Port' format. If you are using the sample manifest from the previous point, this will require you to modify [the configuration line L70](https://github.com/kubernetes/kubernetes/blob/b2ecd1b3a3192fbbe2b9e348e095326f51dc43dd/cluster/addons/dns/nodelocaldns/nodelocaldns.yaml#L70) like this: "`health [\_\_PILLAR\_\_LOCAL\_\_DNS\_\_]:8080`" \* Substitute the variables in the manifest with the right values: ```shell kubedns=`kubectl get svc kube-dns -n kube-system -o jsonpath={.spec.clusterIP}` domain= localdns= ``` `` is "`cluster.local`" by default. `` is the local listen IP address chosen for NodeLocal DNSCache. \* If kube-proxy is running in IPTABLES mode: ``` bash sed -i "s/\_\_PILLAR\_\_LOCAL\_\_DNS\_\_/$localdns/g; s/\_\_PILLAR\_\_DNS\_\_DOMAIN\_\_/$domain/g; s/\_\_PILLAR\_\_DNS\_\_SERVER\_\_/$kubedns/g" nodelocaldns.yaml ``` `\_\_PILLAR\_\_CLUSTER\_\_DNS\_\_` and `\_\_PILLAR\_\_UPSTREAM\_\_SERVERS\_\_` will be populated by the `node-local-dns` pods. In this mode, the `node-local-dns` pods listen on both the kube-dns service IP as well as ``, so pods can look up DNS records using either IP address. \* If kube-proxy is running in IPVS mode: ``` bash sed -i "s/\_\_PILLAR\_\_LOCAL\_\_DNS\_\_/$localdns/g; s/\_\_PILLAR\_\_DNS\_\_DOMAIN\_\_/$domain/g; s/,\_\_PILLAR\_\_DNS\_\_SERVER\_\_//g; s/\_\_PILLAR\_\_CLUSTER\_\_DNS\_\_/$kubedns/g" nodelocaldns.yaml ``` In this mode, the `node-local-dns` pods listen only on ``. The `node-local-dns` interface cannot bind the kube-dns cluster IP since the
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/nodelocaldns.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/nodelocaldns.md
[ 0.0033059814013540745, 0.004142974503338337, 0.08375398814678192, -0.008584314025938511, -0.04438275843858719, -0.03144557401537895, -0.022269755601882935, -0.04764125868678093, 0.055300045758485794, 0.06055906414985657, -0.06404446810483932, 0.006095669232308865, -0.041047126054763794, -0.07473943382501602, -0.0032530436292290688, -0.04514284059405327, 0.05940032750368118, -0.01658678986132145, 0.005530961323529482, -0.0677555650472641, 0.016207342967391014, 0.01878897286951542, 0.006884685717523098, 0.0050507476553320885, -0.05353632569313049, 0.0056020962074398994, -0.050976596772670746, -0.019580397754907608, 0.03880618140101433, -0.0029652747325599194, -0.04971383139491081, 0.036807581782341, 0.0003143047506455332, 0.04332750290632248, 0.04795871675014496, 0.046176597476005554, 0.025201210752129555, 0.019989902153611183, -0.1048555001616478, 0.018934156745672226, 0.07096435129642487, -0.0021287240087985992, 0.0026227226480841637, 0.009512417949736118, 0.06120731681585312, 0.04173032566905022, -0.01474394928663969, 0.05934895947575569, -0.054784368723630905, -0.07674691081047058, 0.05772559717297554, -0.1091129258275032, 0.07352903485298157, 0.04093923419713974, 0.09953591227531433, 0.052185721695423126, -0.03262230381369591, 0.028825435787439346, 0.06414204835891724, 0.05501794070005417, 0.030893657356500626, -0.05759846046566963, 0.006257419008761644, -0.03823966160416603, 0.0023109621834009886, -0.01760726608335972, 0.06247992813587189, 0.006036968901753426, 0.039831485599279404, 0.023448703810572624, 0.014703420922160149, 0.055481988936662674, 0.026212580502033234, -0.02774774841964245, -0.03093368001282215, 0.03382537513971329, -0.010193035006523132, 0.031467143446207047, 0.028638416901230812, -0.07804983109235764, 0.010051843710243702, 0.06862521916627884, 0.047004520893096924, 0.006607488729059696, -0.11267219483852386, -0.04898756369948387, 0.01409411896020174, -0.10671090334653854, 0.07264485210180283, -0.03830543905496597, -0.004562733694911003, -0.023154469206929207, -0.015528150834143162, -0.10743719339370728, -0.04799553379416466, 0.02919420227408409, 0.041526734828948975, 0.046221766620874405, 0.03556384891271591, 0.009358738549053669, 0.06505367159843445, 0.0036648211535066366, -0.03950453922152519, 0.0014993753284215927, 0.04431222379207611, 0.0016947963740676641, -0.05874841287732124, -0.013640092685818672, 0.10775821655988693, 0.12852004170417786, -0.006209993734955788, 0.0356980636715889, 0.0168357715010643, 0.017281413078308105, -0.0468086414039135, -0.02100273407995701, 0.06726917624473572, -0.03273965045809746, 0.11208201199769974, -0.004435024689882994, 0.0032657694537192583, -0.09611203521490097, -0.03791208565235138, -0.04783523827791214, -0.03923773393034935, 0.03406759724020958, -0.03695119544863701, 6.763942900793234e-33, 0.08098205178976059, -0.052854426205158234, 0.01610628142952919, -0.040212325751781464, 0.0072390236891806126, -0.09370576590299606, -0.0066433195024728775, 0.008335922844707966, -0.06882492452859879, -0.03013741411268711, -0.06984452158212662, 0.015987461432814598, 0.037516605108976364, -0.030096735805273056, 0.026892878115177155, 0.05290551856160164, -0.062016572803258896, 0.010860666632652283, 0.0971507802605629, 0.03369150310754776, 0.02189050242304802, -0.0734366700053215, -0.009534700773656368, 0.003102253656834364, 0.010612938553094864, -0.004811661317944527, 0.01611047051846981, -0.07535061985254288, -0.02547588385641575, -0.011543506756424904, -0.004977076780050993, -0.03163245692849159, 0.016413923352956772, 0.04661927372217178, -0.10723689943552017, 0.03021668642759323, 0.011771222576498985, 0.0015549293020740151, -0.0640542209148407, -0.0519908182322979, 0.009181290864944458, 0.03145080804824829, -0.056516677141189575, -0.07580730319023132, 0.05547099933028221, -0.02799435518682003, 0.015126679092645645, -0.09697725623846054, 0.06456555426120758, 0.03135601431131363, 0.03347411006689072, -0.06652133911848068, 0.04138064384460449, -0.03992675617337227, 0.05505005642771721, 0.08703037351369858, 0.11343169212341309, -0.045805368572473526, -0.03615741804242134, 0.06651013344526291, -0.02827853336930275, -0.10759849846363068, -0.018914485350251198, -0.021541012451052666, 0.035670746117830276, 0.07161997258663177, 0.01644199527800083, 0.06847833096981049, 0.012391888536512852, 0.012702005915343761, -0.061087217181921005, 0.05856982618570328, -0.013576571829617023, 0.038051538169384, -0.07168054580688477, -0.014835169538855553, -0.05589338019490242, 0.0153304822742939, -0.11276675015687943, 0.02808239869773388, 0.017417019233107567, -0.0244047362357378, -0.10064155608415604, 0.10918767750263214, -0.031072348356246948, -0.016557635739445686, 0.056889794766902924, -0.00417227391153574, -0.028469659388065338, -0.00024628412211313844, 0.02075650729238987, -0.009098201058804989, 0.004905338864773512, 0.035461097955703735, -0.10984860360622406, -6.566894048080924e-33, 0.06033824384212494, -0.04994382709264755, -0.03384290263056755, 0.05839886888861656, -0.041680362075567245, -0.03965095058083534, -0.019292397424578667, 0.0617009662091732, 0.0035286592319607735, -0.1099785789847374, -0.039622578769922256, -0.07952866703271866, 0.06553860008716583, 0.013378425501286983, -0.029965093359351158, 0.06544669717550278, -0.03764874115586281, -0.07384037971496582, -0.014892111532390118, 0.05663784220814705, -0.011165762320160866, -0.001329801045358181, -0.04460693523287773, 0.031411055475473404, -0.04467127472162247, -0.045812688767910004, 0.008934877812862396, 0.0022430410608649254, -0.06142488494515419, -0.04841749742627144, 0.02957354672253132, -0.06363435834646225, -0.012048006057739258, 0.014587212353944778, 0.01761746220290661, -0.006988939829170704, -0.03923869878053665, 0.019472192972898483, 0.06307786703109741, -0.026176322251558304, 0.009725986048579216, 0.02902519330382347, -0.07219218462705612, -0.0023872919846326113, -0.04830499365925789, 0.00751055171713233, -0.003462673630565405, 0.09083205461502075, -0.06508053094148636, -0.014096396043896675, 0.030720844864845276, -0.06026548519730568, -0.07368112355470657, 0.12071959674358368, -0.055685918778181076, 0.10113049298524857, -0.014923605136573315, 0.10270138829946518, -0.005957375280559063, 0.07797276973724365, 0.08170901983976364, -0.1665768325328827, -0.03508572280406952, 0.053786516189575195, 0.00991236325353384, 0.024899616837501526, -0.028408853337168694, 0.02688676491379738, 0.027559919282794, 0.03547706454992294, 0.010613962076604366, -0.019615180790424347, -0.01425387803465128, 0.03806920722126961, -0.026386704295873642, -0.026871083304286003, 0.05511312931776047, -0.022392334416508675, -0.038388270884752274, 0.0543401837348938, -0.12397553771734238, 0.07920029759407043, -0.06888933479785919, -0.012757886201143265, 0.08232177793979645, 0.07841743528842926, 0.05332493782043457, 0.042621105909347534, 0.045008886605501175, 0.07034198194742203, 0.0007426321972161531, 0.002818045672029257, -0.07406051456928253, 0.03580484166741371, -0.09101355820894241, -4.5256197012122357e-8, 0.027540763840079308, -0.017336351796984673, -0.108587346971035, 0.059460099786520004, 0.01416432112455368, 0.036093320697546005, 0.06393224745988846, 0.052091702818870544, -0.06129375845193863, 0.014345469884574413, 0.056216396391391754, 0.04691358283162117, -0.1033950075507164, 0.0024275886826217175, 0.0953591912984848, 0.01424730196595192, 0.06358174979686737, 0.057878002524375916, -0.0595492385327816, -0.03780106455087662, -0.09223569929599762, -0.012010827660560608, -0.025128358975052834, -0.0457305833697319, -0.015386149287223816, 0.03752051666378975, 0.0876130610704422, 0.022087592631578445, 0.04293491691350937, 0.02089042216539383, -0.05774499475955963, 0.017320828512310982, -0.028075922280550003, -0.012880681082606316, 0.03721729665994644, 0.08393096923828125, -0.11885717511177063, 0.036738548427820206, 0.0465087853372097, 0.07940641045570374, 0.011999131180346012, -0.013815379701554775, -0.03992776945233345, 0.023230310529470444, -0.029591497033834457, 0.053946081548929214, -0.02119106613099575, 0.08519315719604492, 0.024444323033094406, -0.02290429174900055, -0.007259049452841282, -0.07003243267536163, -0.018456902354955673, -0.00513799861073494, -0.06364553421735764, -0.004643062595278025, -0.0394006222486496, -0.05078907683491707, 0.026732653379440308, 0.04436657950282097, 0.017267152667045593, -0.012472559697926044, 0.012970116920769215, -0.018936730921268463 ]
0.208145
so pods can look up DNS records using either IP address. \* If kube-proxy is running in IPVS mode: ``` bash sed -i "s/\_\_PILLAR\_\_LOCAL\_\_DNS\_\_/$localdns/g; s/\_\_PILLAR\_\_DNS\_\_DOMAIN\_\_/$domain/g; s/,\_\_PILLAR\_\_DNS\_\_SERVER\_\_//g; s/\_\_PILLAR\_\_CLUSTER\_\_DNS\_\_/$kubedns/g" nodelocaldns.yaml ``` In this mode, the `node-local-dns` pods listen only on ``. The `node-local-dns` interface cannot bind the kube-dns cluster IP since the interface used for IPVS loadbalancing already uses this address. `\_\_PILLAR\_\_UPSTREAM\_\_SERVERS\_\_` will be populated by the node-local-dns pods. \* Run `kubectl create -f nodelocaldns.yaml` \* If using kube-proxy in IPVS mode, `--cluster-dns` flag to kubelet needs to be modified to use `` that NodeLocal DNSCache is listening on. Otherwise, there is no need to modify the value of the `--cluster-dns` flag, since NodeLocal DNSCache listens on both the kube-dns service IP as well as ``. Once enabled, the `node-local-dns` Pods will run in the `kube-system` namespace on each of the cluster nodes. This Pod runs [CoreDNS](https://github.com/coredns/coredns) in cache mode, so all CoreDNS metrics exposed by the different plugins will be available on a per-node basis. You can disable this feature by removing the DaemonSet, using `kubectl delete -f `. You should also revert any changes you made to the kubelet configuration. ## StubDomains and Upstream server Configuration StubDomains and upstream servers specified in the `kube-dns` ConfigMap in the `kube-system` namespace are automatically picked up by `node-local-dns` pods. The ConfigMap contents need to follow the format shown in [the example](/docs/tasks/administer-cluster/dns-custom-nameservers/#example-1). The `node-local-dns` ConfigMap can also be modified directly with the stubDomain configuration in the Corefile format. Some cloud providers might not allow modifying `node-local-dns` ConfigMap directly. In those cases, the `kube-dns` ConfigMap can be updated. ## Setting memory limits The `node-local-dns` Pods use memory for storing cache entries and processing queries. Since they do not watch Kubernetes objects, the cluster size or the number of Services / EndpointSlices do not directly affect memory usage. Memory usage is influenced by the DNS query pattern. From [CoreDNS docs](https://github.com/coredns/deployment/blob/master/kubernetes/Scaling\_CoreDNS.md), > The default cache size is 10000 entries, which uses about 30 MB when completely filled. This would be the memory usage for each server block (if the cache gets completely filled). Memory usage can be reduced by specifying smaller cache sizes. The number of concurrent queries is linked to the memory demand, because each extra goroutine used for handling a query requires an amount of memory. You can set an upper limit using the `max\_concurrent` option in the forward plugin. If a `node-local-dns` Pod attempts to use more memory than is available (because of total system resources, or because of a configured [resource limit](/docs/concepts/configuration/manage-resources-containers/)), the operating system may shut down that pod's container. If this happens, the container that is terminated (“OOMKilled”) does not clean up the custom packet filtering rules that it previously added during startup. The `node-local-dns` container should get restarted (since managed as part of a DaemonSet), but this will lead to a brief DNS downtime each time that the container fails: the packet filtering rules direct DNS queries to a local Pod that is unhealthy. You can determine a suitable memory limit by running node-local-dns pods without a limit and measuring the peak usage. You can also set up and use a [VerticalPodAutoscaler](https://github.com/kubernetes/autoscaler/tree/master/vertical-pod-autoscaler) in \_recommender mode\_, and then check its recommendations.
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/nodelocaldns.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/nodelocaldns.md
[ -0.012763170525431633, 0.0025981676299124956, 0.06954342126846313, -0.041094690561294556, -0.08596862107515335, -0.04744785279035568, -0.04746999219059944, -0.07031875848770142, 0.08950094878673553, 0.033882029354572296, -0.04848315194249153, -0.025761393830180168, -0.029175931587815285, -0.07633238285779953, 0.03932230919599533, -0.014942115172743797, 0.010424484498798847, 0.032582465559244156, 0.035638559609651566, -0.04903960973024368, 0.010647189803421497, 0.030523717403411865, 0.019100002944469452, -0.006508724298328161, -0.06031876057386398, 0.004856131039559841, -0.04940405860543251, -0.024456264451146126, 0.07176994532346725, 0.005541681777685881, 0.0014010012382641435, 0.05331239104270935, -0.048109132796525955, 0.03560381010174751, 0.049285970628261566, 0.018314151093363762, 0.037664398550987244, 0.03985389694571495, -0.12741491198539734, 0.018270662054419518, 0.1331394910812378, -0.01485022995620966, 0.035051167011260986, -0.02727770060300827, 0.028964867815375328, 0.018225153908133507, -0.018564337864518166, 0.042737990617752075, 0.0035846338141709566, -0.05592259019613266, -0.008950900286436081, -0.10845202207565308, 0.08331567794084549, 0.0010297863045707345, 0.052001696079969406, 0.027311081066727638, -0.029050350189208984, 0.05551935359835625, 0.09912832826375961, 0.061522334814071655, -0.013332290574908257, -0.02206387370824814, 0.03527074679732323, -0.0379721075296402, -0.014720826409757137, -0.06851369142532349, 0.0029063590336591005, 0.07016552239656448, -0.039857517927885056, 0.02526509016752243, 0.05421406403183937, 0.07324250042438507, -0.028856614604592323, -0.06361209601163864, -0.03256353363394737, 0.016827981919050217, -0.029665594920516014, -0.002027403097599745, -0.03212963044643402, -0.06502636522054672, 0.06293565779924393, 0.06039762496948242, 0.07504339516162872, 0.007749476004391909, -0.12148188054561615, -0.03173050284385681, -0.014128133654594421, -0.13451606035232544, 0.03765202313661575, 0.039709966629743576, 0.00870087556540966, -0.06769933551549911, -0.007795609068125486, -0.09083032608032227, 0.04601217806339264, 0.06482084840536118, 0.07600923627614975, 0.06768079102039337, 0.029937395825982094, 0.012128281407058239, 0.04669453203678131, 0.0317772775888443, -0.022930936887860298, 0.0009911420056596398, 0.023726895451545715, -0.02888769842684269, -0.10316242277622223, -0.017086807638406754, 0.08422517031431198, 0.11315345019102097, 0.011111696250736713, 0.03520212322473526, 0.0006285460549406707, -0.018332520499825478, -0.04628894850611687, -0.04461217671632767, 0.049104515463113785, -0.004468596540391445, 0.050028201192617416, -0.020933760330080986, -0.042791515588760376, -0.09527473151683807, -0.056701526045799255, -0.008623103611171246, -0.041570018976926804, 0.022086316719651222, 0.016930442303419113, -2.923432409975951e-33, 0.13499371707439423, -0.10479847341775894, 0.02047409676015377, -0.026538345962762833, -0.029844647273421288, -0.0499759204685688, -0.005675594788044691, 0.028113262727856636, -0.06148954853415489, 0.01724226027727127, -0.0626617819070816, 0.014494630508124828, 0.025567643344402313, -0.023258933797478676, 0.005296234507113695, 0.07705617696046829, -0.01493894774466753, -0.018175283446907997, 0.07708393037319183, 0.009824240580201149, 0.03337926045060158, -0.08271260559558868, -0.0014623497845605016, 0.015725864097476006, -0.004654865711927414, -0.025468846783041954, -0.01384401973336935, -0.10126365721225739, -0.004523157607764006, -0.007348514162003994, 0.016195204108953476, -0.028350526466965675, 0.02803167514503002, 0.02980261854827404, -0.03600380942225456, -0.004783964715898037, 0.07382457703351974, 0.013428820297122002, -0.14450861513614655, -0.0660916119813919, 0.04543711990118027, 0.000121084856800735, -0.051927633583545685, -0.02601959928870201, 0.022568363696336746, -0.03984031826257706, -0.021387867629528046, -0.09336677938699722, 0.04471532255411148, 0.03813784196972847, 0.021468395367264748, -0.02150815539062023, 0.011527548544108868, -0.10262264311313629, 0.1149536669254303, 0.06527239829301834, 0.0309115219861269, -0.010198445059359074, -0.04423653706908226, 0.03280775249004364, -0.08190888166427612, -0.008286737836897373, -0.011343348771333694, 0.013449421152472496, 0.049353957176208496, 0.0983799621462822, 0.013076655566692352, 0.03603461757302284, 0.02517479471862316, 0.008356316946446896, -0.012373034842312336, 0.06357579678297043, -0.028345681726932526, 0.04238034784793854, -0.040144484490156174, -0.03063848614692688, -0.05791343376040459, -0.03537531942129135, -0.03788900375366211, 0.0323154479265213, 0.04693130403757095, -0.0278803501278162, -0.11560405045747757, 0.11259428411722183, -0.025027872994542122, 0.031249750405550003, -0.008437837474048138, -0.038171205669641495, -0.04353552311658859, -0.02439187653362751, 0.0328839085996151, -0.011928640305995941, -0.030424989759922028, -0.005454725585877895, -0.11864125728607178, -1.2443144022751476e-33, 0.05815542861819267, -0.03141370788216591, -0.030087141320109367, -0.016970720142126083, -0.04297477751970291, -0.028826747089624405, 0.04362674430012703, 0.07438703626394272, -0.0036776119377464056, -0.056337688118219376, -0.07218383252620697, -0.02719740942120552, 0.048259034752845764, 0.017777113243937492, -0.030931271612644196, 0.07800256460905075, -0.045191843062639236, -0.06630317866802216, -0.062165893614292145, 0.05421818792819977, -0.054905809462070465, 0.022528577595949173, 0.04364657774567604, 0.08350050449371338, -0.03267701715230942, -0.03968101367354393, 0.03451629355549812, -0.0014350832207128406, -0.10273381322622299, -0.006546247750520706, 0.028064660727977753, -0.061083339154720306, -0.042377129197120667, 0.055438343435525894, -0.07659074664115906, -0.0038639663252979517, -0.0781397596001625, 0.03580166772007942, 0.07735446840524673, -0.07664553076028824, -0.03242539241909981, 0.02869696170091629, -0.1016683503985405, -0.028439553454518318, -0.04412725195288658, -0.0034750632476061583, -0.001457954291254282, 0.09858688712120056, -0.04614342749118805, -0.05349398031830788, 0.0344579853117466, 0.002964911749586463, -0.052721258252859116, 0.15273591876029968, -0.0031903532799333334, 0.06676748394966125, -0.01248923409730196, 0.05528080463409424, -0.021971100941300392, 0.02164572849869728, 0.04941004514694214, -0.1436808556318283, -0.06608792394399643, 0.10556581616401672, 0.015242117457091808, 0.019039060920476913, -0.009546195156872272, 0.004696269053965807, 0.02991279773414135, -0.042553603649139404, 0.04358367621898651, -0.028716392815113068, 0.014885690994560719, 0.024453260004520416, -0.005369569640606642, 0.006099918391555548, 0.06633143872022629, 0.03935452178120613, -0.02656099945306778, 0.06473235040903091, -0.06281042098999023, 0.07681812345981598, -0.049544353038072586, -0.03772919252514839, 0.06744000315666199, 0.07361127436161041, 0.06854856014251709, 0.08696245402097702, 0.049535639584064484, 0.08405197411775589, -0.0022542690858244896, 0.03963128849864006, -0.05472245812416077, 0.0025686942972242832, -0.0295737124979496, -4.555825583452133e-8, 0.037517428398132324, -0.00758534437045455, -0.07827820628881454, 0.026028431951999664, -0.018067294731736183, 0.02320314384996891, 0.058149565011262894, -0.009122895076870918, -0.06900999695062637, 0.04131460189819336, 0.013298540376126766, 0.029560115188360214, -0.13705335557460785, 0.010443580336868763, 0.06232112646102905, -0.05558934435248375, 0.10032562166452408, 0.06141093373298645, -0.02959452196955681, -0.05108341947197914, -0.075701504945755, -0.031244242563843727, -0.05867093801498413, -0.009566460736095905, -0.019455701112747192, 0.017913194373250008, 0.024726388975977898, -0.08067276328802109, 0.044612351804971695, 0.048810508102178574, -0.03475719690322876, -0.017482008785009384, -0.04846077784895897, -0.00958754401654005, -0.032229118049144745, 0.031096341088414192, -0.046809643507003784, 0.009020189754664898, -0.013522480614483356, 0.020763017237186432, -0.04168785735964775, -0.04125919193029404, -0.017820028588175774, -0.004546430893242359, -0.02913740836083889, 0.025005392730236053, 0.020000489428639412, 0.08436892181634903, 0.03683442249894142, -0.010303785093128681, -0.017443682998418808, -0.07766710966825485, 0.019432080909609795, -0.006063089240342379, -0.046818193048238754, -0.0070676784962415695, -0.050069618970155716, -0.017279447987675667, -0.06955693662166595, 0.02184622548520565, -0.011856877245008945, 0.003111628582701087, -0.018710853531956673, 0.018282463774085045 ]
0.082326
{{< feature-state for\_k8s\_version="v1.22" state="alpha" >}} This document describes how to run Kubernetes Node components such as kubelet, CRI, OCI, and CNI without root privileges, by using a {{< glossary\_tooltip text="user namespace" term\_id="userns" >}}. This technique is also known as \_rootless mode\_. {{< note >}} This document describes how to run Kubernetes Node components (and hence pods) as a non-root user. If you are just looking for how to run a pod as a non-root user, see [SecurityContext](/docs/tasks/configure-pod-container/security-context/). {{< /note >}} ## {{% heading "prerequisites" %}} {{% version-check %}} \* [Enable Cgroup v2](https://rootlesscontaine.rs/getting-started/common/cgroup2/) \* [Enable systemd with user session](https://rootlesscontaine.rs/getting-started/common/login/) \* [Configure several sysctl values, depending on host Linux distribution](https://rootlesscontaine.rs/getting-started/common/sysctl/) \* [Ensure that your unprivileged user is listed in `/etc/subuid` and `/etc/subgid`](https://rootlesscontaine.rs/getting-started/common/subuid/) \* Enable the `KubeletInUserNamespace` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/) ## Running Kubernetes inside Rootless Docker/Podman ### kind [kind](https://kind.sigs.k8s.io/) supports running Kubernetes inside Rootless Docker or Rootless Podman. See [Running kind with Rootless Docker](https://kind.sigs.k8s.io/docs/user/rootless/). ### minikube [minikube](https://minikube.sigs.k8s.io/) also supports running Kubernetes inside Rootless Docker or Rootless Podman. See the Minikube documentation: \* [Rootless Docker](https://minikube.sigs.k8s.io/docs/drivers/docker/) \* [Rootless Podman](https://minikube.sigs.k8s.io/docs/drivers/podman/) ## Running Kubernetes inside Unprivileged Containers {{% thirdparty-content %}} ### sysbox [Sysbox](https://github.com/nestybox/sysbox) is an open-source container runtime (similar to "runc") that supports running system-level workloads such as Docker and Kubernetes inside unprivileged containers isolated with the Linux user namespace. See [Sysbox Quick Start Guide: Kubernetes-in-Docker](https://github.com/nestybox/sysbox/blob/master/docs/quickstart/kind.md) for more info. Sysbox supports running Kubernetes inside unprivileged containers without requiring Cgroup v2 and without the `KubeletInUserNamespace` feature gate. It does this by exposing specially crafted `/proc` and `/sys` filesystems inside the container plus several other advanced OS virtualization techniques. ## Running Rootless Kubernetes directly on a host {{% thirdparty-content %}} ### K3s [K3s](https://k3s.io/) experimentally supports rootless mode. See [Running K3s with Rootless mode](https://rancher.com/docs/k3s/latest/en/advanced/#running-k3s-with-rootless-mode-experimental) for the usage. ### Usernetes [Usernetes](https://github.com/rootless-containers/usernetes) is a reference distribution of Kubernetes that can be installed under `$HOME` directory without the root privilege. Usernetes supports both containerd and CRI-O as CRI runtimes. Usernetes supports multi-node clusters using Flannel (VXLAN). See [the Usernetes repo](https://github.com/rootless-containers/usernetes) for the usage. ## Manually deploy a node that runs the kubelet in a user namespace {#userns-the-hard-way} This section provides hints for running Kubernetes in a user namespace manually. {{< note >}} This section is intended to be read by developers of Kubernetes distributions, not by end users. {{< /note >}} ### Creating a user namespace The first step is to create a {{< glossary\_tooltip text="user namespace" term\_id="userns" >}}. If you are trying to run Kubernetes in a user-namespaced container such as Rootless Docker/Podman or LXC/LXD, you are all set, and you can go to the next subsection. Otherwise you have to create a user namespace by yourself, by calling `unshare(2)` with `CLONE\_NEWUSER`. A user namespace can be also unshared by using command line tools such as: - [`unshare(1)`](https://man7.org/linux/man-pages/man1/unshare.1.html) - [RootlessKit](https://github.com/rootless-containers/rootlesskit) - [become-root](https://github.com/giuseppe/become-root) After unsharing the user namespace, you will also have to unshare other namespaces such as mount namespace. You do \*not\* need to call `chroot()` nor `pivot\_root()` after unsharing the mount namespace, however, you have to mount writable filesystems on several directories \*in\* the namespace. At least, the following directories need to be writable \*in\* the namespace (not \*outside\* the namespace): - `/etc` - `/run` - `/var/logs` - `/var/lib/kubelet` - `/var/lib/cni` - `/var/lib/containerd` (for containerd) - `/var/lib/containers` (for CRI-O) ### Creating a delegated cgroup tree In addition to the user namespace, you also need to have a writable cgroup tree with cgroup v2. {{< note >}} Kubernetes support for running Node components in user namespaces requires cgroup v2. Cgroup v1 is not supported. {{< /note >}} If you are trying to run Kubernetes in Rootless Docker/Podman or LXC/LXD on a systemd-based host,
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/kubelet-in-userns.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/kubelet-in-userns.md
[ 0.03452172502875328, 0.003807960543781519, 0.03706374391913414, -0.01801004819571972, -0.049139540642499924, -0.03513817489147186, 0.00440232316032052, 0.03813115134835243, -0.008038684725761414, 0.02265402115881443, -0.010517152026295662, -0.07404216378927231, 0.003321391763165593, 0.020034225657582283, 0.028296202421188354, 0.008046559989452362, 0.059408869594335556, -0.015414652414619923, 0.013448895886540413, 0.009632917121052742, 0.01835012622177601, -0.021593520417809486, 0.06441680341959, 0.025546345859766006, -0.06338007003068924, -0.0032674288377165794, -0.008301968686282635, -0.00115498888771981, 0.06684133410453796, 0.08338432759046555, 0.008081529289484024, 0.024125216528773308, 0.06555886566638947, 0.03768135979771614, 0.06687089800834656, 0.07830332219600677, 0.044561393558979034, -0.06276655197143555, -0.042785193771123886, 0.017188649624586105, 0.038732171058654785, -0.04428525269031525, -0.09462243318557739, 0.0021898241247981787, 0.018963780254125595, 0.006817681714892387, -0.02988313138484955, -0.06495755910873413, -0.012973925098776817, -0.02963360585272312, 0.03888280317187309, -0.09509512782096863, 0.10670659691095352, -0.0008326751994900405, 0.057290706783533096, 0.050661586225032806, -0.004313040059059858, 0.043983642011880875, 0.13170605897903442, 0.01956121437251568, 0.046166423708200455, -0.04426655173301697, 0.02855343371629715, -0.01559322141110897, 0.014665287919342518, -0.019964268431067467, -0.004389896057546139, -0.01582386903464794, -0.030563130974769592, -0.03325778618454933, 0.06495585292577744, -0.02585374191403389, 0.03889058902859688, -0.028433727100491524, 0.007587413303554058, -0.016224050894379616, -0.026992110535502434, 0.025433002039790154, -0.009306375868618488, -0.0619882270693779, 0.013322274200618267, 0.05404090881347656, 0.07184392213821411, 0.047192975878715515, -0.10476271063089371, -0.0033827777951955795, -0.012285703793168068, -0.050818946212530136, 0.0650767982006073, 0.02300081215798855, 0.006364889908581972, -0.045298438519239426, 0.10995093733072281, -0.16528984904289246, 0.06648211926221848, -0.011133501306176186, 0.010805569589138031, 0.01278388686478138, -0.0646674707531929, -0.0026281338650733232, -0.027726123109459877, -0.025675928220152855, -0.034699447453022, 0.00902701448649168, 0.053852833807468414, 0.023950763046741486, -0.06091666594147682, -0.022636713460087776, -0.003979486878961325, 0.03857225552201271, 0.004178832285106182, 0.032863639295101166, -0.04274028167128563, 0.002786813536658883, 0.03244074434041977, -0.09265493601560593, -0.019556546583771706, 0.009633510373532772, 0.06317557394504547, 0.08051250129938126, 0.012183747254312038, -0.10381818562746048, 0.002572725061327219, 0.049479056149721146, -0.02385314181447029, 0.04877566918730736, -0.06946880370378494, 1.3709362660228243e-33, 0.05551623925566673, -0.016550900414586067, -0.0016448481474071741, -0.04436594620347023, 0.027161987498402596, -0.059364959597587585, -0.04205434396862984, -0.03586209937930107, -0.07152830809354782, -0.016856318339705467, -0.033409129828214645, 0.07403071969747543, 0.01171926874667406, -0.06499847024679184, 0.059112634509801865, 0.013490315526723862, -0.08487260341644287, -0.017717301845550537, 0.08479752391576767, -0.013449524529278278, 0.07596061378717422, -0.04360976070165634, -0.022066151723265648, 0.014532278291881084, 0.04466056451201439, -0.10302191227674484, -0.01864040456712246, -0.10201752930879593, 0.051958877593278885, 0.003458155784755945, -0.03882836550474167, -0.007932918146252632, 0.06055812910199165, 0.029598090797662735, -0.1392531394958496, -0.05033118650317192, -0.04182535409927368, 0.008524126373231411, -0.054732706397771835, -0.04622890055179596, 0.06849727779626846, -0.041421279311180115, 0.04605213925242424, -0.09038602560758591, 0.041938237845897675, -0.0005571279325522482, 0.028035204857587814, -0.06121569871902466, 0.07888423651456833, 0.029238183051347733, -0.04691099002957344, -0.01452979352325201, 0.02225099317729473, -0.04130570963025093, 0.09055161476135254, -0.043488018214702606, 0.06534846127033234, -0.04525987431406975, -0.03663275018334389, -0.08480329811573029, -0.07860095798969269, 0.032730404287576675, -0.0005350120482034981, 0.021610340103507042, -0.07552707195281982, -0.03586474433541298, -0.07543496042490005, 0.04215409234166145, 0.00212858896702528, -0.004176453221589327, -0.1238945946097374, 0.03490493446588516, -0.07028499245643616, 0.047696083784103394, -0.07819222658872604, -0.050313081592321396, 0.019005678594112396, 0.06967175751924515, -0.08922643214464188, 0.033591702580451965, -0.027932139113545418, -0.09148380905389786, -0.022159278392791748, 0.1346021145582199, 0.0749911293387413, -0.016893066465854645, -0.0318886823952198, 0.019138962030410767, -0.02038244903087616, -0.011222396977245808, 0.021139729768037796, -0.09136109054088593, -0.07324151694774628, 0.04253349453210831, -0.13516941666603088, -3.46932868041996e-33, 0.06675046682357788, -0.014653913676738739, -0.01667211949825287, -0.023676862940192223, -0.019625891000032425, 0.004055628553032875, 0.0210218895226717, -0.027387764304876328, -0.002585573820397258, -0.09032147377729416, -0.027511995285749435, 0.031212452799081802, 0.066124327480793, 0.08666785061359406, -0.03285904601216316, 0.04167748987674713, -0.14725850522518158, 0.038200199604034424, -0.023242278024554253, 0.015094234608113766, -0.05458208546042442, 0.009692694991827011, 0.043991390615701675, 0.056623611599206924, -0.030852654948830605, -0.027915365993976593, 0.07574601471424103, 0.04318799078464508, -0.05195207521319389, -0.01051903236657381, 0.01595008373260498, -0.06390122324228287, -0.024949779734015465, -0.054839156568050385, -0.00630144914612174, -0.06320030242204666, -0.07750285416841507, -0.017512496560811996, -0.011678336188197136, 0.015210423618555069, 0.07392621040344238, 0.02807391993701458, -0.006264558061957359, -0.027939261868596077, -0.09421084076166153, 0.07545599341392517, 0.0728873535990715, -0.02249143086373806, -0.06888758391141891, -0.07069294154644012, 0.005272043403238058, -0.008011681027710438, 0.020710807293653488, 0.07616926729679108, -0.07452800124883652, -0.02220691181719303, 0.07197920233011246, 0.014068244956433773, 0.03632039949297905, -0.009142983704805374, 0.06597427278757095, -0.07680012285709381, 0.07061782479286194, 0.0030219629406929016, -0.03107965737581253, -0.06552277505397797, -0.06555388122797012, 0.11763925850391388, -0.010779616422951221, 0.013755940832197666, -0.025259705260396004, -0.06868515908718109, 0.03222481161355972, 0.00225446536205709, 0.021740254014730453, -0.0012885169126093388, -0.0006198741029947996, -0.07132449746131897, 0.08098363131284714, -0.06624315679073334, -0.04404262825846672, 0.07561568170785904, -0.047071993350982666, 0.019049104303121567, 0.04232781007885933, 0.01728886552155018, 0.04212884232401848, 0.0645972341299057, 0.0741339847445488, 0.10523537546396255, 0.02517210692167282, 0.03900709003210068, -0.0028894511051476, 0.10390027612447739, 0.012316993437707424, -5.229193789091369e-8, 0.03406747058033943, 0.06198558956384659, -0.0031490877736359835, 0.07078060507774353, 0.08468183875083923, 0.0027527078054845333, 0.018693720921874046, -0.09274464100599289, -0.00894946325570345, 0.016491176560521126, -0.030498584732413292, 0.04353085905313492, -0.06778136640787125, -0.0036255118902772665, 0.0737481340765953, 0.021823881193995476, -0.03743024915456772, 0.10307907313108444, 0.011838113889098167, -0.019576886668801308, -0.041441019624471664, -0.06753886491060257, 0.028528748080134392, 0.05334825441241264, -0.01827542670071125, 0.03630998730659485, 0.02940990962088108, -0.05064397677779198, 0.01764082722365856, -0.0004671989881899208, -0.04199448227882385, 0.04699327424168587, -0.06490632146596909, 0.04849456995725632, -0.02181876078248024, 0.06402397155761719, -0.09189584851264954, 0.034613750874996185, 0.0018589473329484463, 0.01868278719484806, -0.027088012546300888, -0.01084090769290924, -0.05800523981451988, -0.002087955130264163, -0.07180695980787277, 0.05486146733164787, 0.03791226074099541, 0.060161855071783066, 0.06776702404022217, -0.003290113527327776, 0.018455123528838158, -0.03674374148249626, -0.038876794278621674, 0.11046865582466125, 0.016721058636903763, 0.019730569794774055, -0.0169285349547863, 0.02919408306479454, 0.029115987941622734, -0.008975974284112453, 0.010491176508367062, -0.004646903369575739, 0.03541545197367668, -0.016691671684384346 ]
0.118074
also need to have a writable cgroup tree with cgroup v2. {{< note >}} Kubernetes support for running Node components in user namespaces requires cgroup v2. Cgroup v1 is not supported. {{< /note >}} If you are trying to run Kubernetes in Rootless Docker/Podman or LXC/LXD on a systemd-based host, you are all set. Otherwise you have to create a systemd unit with `Delegate=yes` property to delegate a cgroup tree with writable permission. On your node, systemd must already be configured to allow delegation; for more details, see [cgroup v2](https://rootlesscontaine.rs/getting-started/common/cgroup2/) in the Rootless Containers documentation. ### Configuring network {{% thirdparty-content %}} The network namespace of the Node components has to have a non-loopback interface, which can be for example configured with [slirp4netns](https://github.com/rootless-containers/slirp4netns), [VPNKit](https://github.com/moby/vpnkit), or [lxc-user-nic(1)](https://www.man7.org/linux/man-pages/man1/lxc-user-nic.1.html). The network namespaces of the Pods can be configured with regular CNI plugins. For multi-node networking, Flannel (VXLAN, 8472/UDP) is known to work. Ports such as the kubelet port (10250/TCP) and `NodePort` service ports have to be exposed from the Node network namespace to the host with an external port forwarder, such as RootlessKit, slirp4netns, or [socat(1)](https://linux.die.net/man/1/socat). You can use the port forwarder from K3s. See [Running K3s in Rootless Mode](https://rancher.com/docs/k3s/latest/en/advanced/#known-issues-with-rootless-mode) for more details. The implementation can be found in [the `pkg/rootlessports` package](https://github.com/k3s-io/k3s/blob/v1.22.3+k3s1/pkg/rootlessports/controller.go) of k3s. ### Configuring CRI The kubelet relies on a container runtime. You should deploy a container runtime such as containerd or CRI-O and ensure that it is running within the user namespace before the kubelet starts. {{< tabs name="cri" >}} {{% tab name="containerd" %}} Running CRI plugin of containerd in a user namespace is supported since containerd 1.4. Running containerd within a user namespace requires the following configurations. ```toml version = 2 [plugins."io.containerd.grpc.v1.cri"] # Disable AppArmor disable\_apparmor = true # Ignore an error during setting oom\_score\_adj restrict\_oom\_score\_adj = true # Disable hugetlb cgroup v2 controller (because systemd does not support delegating hugetlb controller) disable\_hugetlb\_controller = true [plugins."io.containerd.grpc.v1.cri".containerd] # Using non-fuse overlayfs is also possible for kernel >= 5.11, but requires SELinux to be disabled snapshotter = "fuse-overlayfs" [plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options] # We use cgroupfs that is delegated by systemd, so we do not use SystemdCgroup driver # (unless you run another systemd in the namespace) SystemdCgroup = false ``` The default path of the configuration file is `/etc/containerd/config.toml`. The path can be specified with `containerd -c /path/to/containerd/config.toml`. {{% /tab %}} {{% tab name="CRI-O" %}} Running CRI-O in a user namespace is supported since CRI-O 1.22. CRI-O requires an environment variable `\_CRIO\_ROOTLESS=1` to be set. The following configurations are also recommended: ```toml [crio] storage\_driver = "overlay" # Using non-fuse overlayfs is also possible for kernel >= 5.11, but requires SELinux to be disabled storage\_option = ["overlay.mount\_program=/usr/local/bin/fuse-overlayfs"] [crio.runtime] # We use cgroupfs that is delegated by systemd, so we do not use "systemd" driver # (unless you run another systemd in the namespace) cgroup\_manager = "cgroupfs" ``` The default path of the configuration file is `/etc/crio/crio.conf`. The path can be specified with `crio --config /path/to/crio/crio.conf`. {{% /tab %}} {{< /tabs >}} ### Configuring kubelet Running kubelet in a user namespace requires the following configuration: ```yaml apiVersion: kubelet.config.k8s.io/v1beta1 kind: KubeletConfiguration featureGates: KubeletInUserNamespace: true # We use cgroupfs that is delegated by systemd, so we do not use "systemd" driver # (unless you run another systemd in the namespace) cgroupDriver: "cgroupfs" ``` When the `KubeletInUserNamespace` feature gate is enabled, the kubelet ignores errors that may happen during setting the following sysctl values on the node. - `vm.overcommit\_memory` - `vm.panic\_on\_oom` - `kernel.panic` - `kernel.panic\_on\_oops` - `kernel.keys.root\_maxkeys` - `kernel.keys.root\_maxbytes`. Within a user namespace, the kubelet also ignores any error raised from trying to open `/dev/kmsg`. This feature gate also
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/kubelet-in-userns.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/kubelet-in-userns.md
[ 0.03792884200811386, -0.02202708274126053, -0.03008219599723816, -0.027038905769586563, -0.0663912370800972, 0.0325617678463459, -0.03924580290913582, 0.022171061486005783, 0.04093156382441521, 0.03946416452527046, -0.03295949473977089, -0.0843418538570404, 0.01497971173375845, 0.023312250152230263, 0.03335937485098839, -0.017869479954242706, 0.0883423462510109, 0.001540100434795022, -0.002742248587310314, -0.051360033452510834, -0.008191414177417755, -0.022909410297870636, 0.02967909723520279, 0.008589938282966614, -0.04967038333415985, -0.020443083718419075, -0.08560437709093094, -0.07374433428049088, 0.05053018778562546, 0.022201303392648697, 0.03860410675406456, -0.03146360442042351, 0.03004780225455761, 0.022302743047475815, 0.04907890781760216, 0.10264529287815094, 0.08348358422517776, -0.07641999423503876, -0.10852620750665665, 0.04308513551950455, 0.0428888313472271, 0.030106227844953537, -0.08746162801980972, -0.00443015992641449, -0.0029025310650467873, 0.007371485233306885, -0.030236994847655296, -0.04409472271800041, -0.021618667989969254, 0.020900925621390343, 0.08932669460773468, -0.0809667631983757, 0.11009259521961212, -0.011512321420013905, -0.0006795012741349638, 0.0295422226190567, -0.045567285269498825, 0.07946936786174774, 0.1253145933151245, -0.07179533690214157, 0.04322424530982971, -0.005824355874210596, 0.060583919286727905, -0.039553072303533554, -0.01985902152955532, -0.02314288355410099, 0.03263596072793007, 0.026926640421152115, -0.02223108895123005, -0.03194790333509445, 0.13335692882537842, 0.0068367477506399155, 0.049758657813072205, -0.0041818078607320786, 0.011862572282552719, 0.009311995469033718, 0.013587506487965584, 0.02110970951616764, -0.0016780837904661894, -0.043530602008104324, 0.042348966002464294, 0.08845782279968262, 0.006257219240069389, -0.012497629038989544, -0.1389274001121521, -0.0023834502790123224, -0.036650363355875015, -0.03243475779891014, -0.006723984610289335, 0.008343071676790714, -0.013131036423146725, 0.017202194780111313, 0.010593060404062271, -0.1461986005306244, 0.09790145605802536, -0.01858142763376236, -0.032410841435194016, 0.007366523612290621, -0.052719928324222565, -0.020827073603868484, -0.049029409885406494, 0.023817826062440872, -0.04552999883890152, 0.006269779521971941, 0.04618105664849281, -0.005072967614978552, -0.04311565309762955, -0.04320210963487625, -0.06847987323999405, -0.0030342410318553448, -0.009935707785189152, 0.09768550097942352, -0.07388886064291, 0.037243910133838654, 0.007049086503684521, -0.10243186354637146, 0.057273901998996735, -0.055757053196430206, 0.06608156114816666, -0.011794576421380043, 0.0181365218013525, -0.11524898558855057, -0.007695639040321112, 0.0633668527007103, 0.04547156020998955, 0.07986398041248322, -0.025494754314422607, 6.395788355691263e-33, 0.005324586294591427, -0.0865231528878212, 0.038591448217630386, 0.037055302411317825, 0.11145719140768051, -0.09078724682331085, -0.01951291412115097, -0.06332464516162872, -0.09705936163663864, -0.05456886067986488, -0.08957671374082565, -0.014296808280050755, 0.03921707347035408, -0.08100748807191849, 0.04351545870304108, 0.023332975804805756, -0.053520672023296356, -0.08132228255271912, 0.11534751951694489, -0.05348040908575058, 0.00884296651929617, 0.029240472242236137, -0.01639646477997303, -0.015050387009978294, -0.0315389558672905, -0.1027696505188942, -0.030499186366796494, -0.11526017636060715, 0.08865401148796082, -0.017696091905236244, -0.006436240393668413, 0.010430984199047089, 0.07258034497499466, 0.0335250087082386, -0.13288550078868866, 0.006840388756245375, 0.029243893921375275, 0.055421505123376846, -0.07744891196489334, -0.007279133424162865, 0.006125226151198149, -0.05484301969408989, 0.05039457604289055, -0.06624171137809753, -0.0042374012991786, -0.03728193789720535, 0.01020168699324131, -0.05284692347049713, 0.029743116348981857, 0.0618969202041626, 0.0026487556751817465, -0.01648101396858692, -0.017925800755620003, -0.06820277124643326, 0.09921616315841675, 0.004707559943199158, 0.010229336097836494, -0.022180212661623955, -0.06239135190844536, -0.030145790427923203, -0.05209585651755333, 0.01564870961010456, -0.0077729132026433945, 0.05558699741959572, 0.005628929939121008, -0.00113551109097898, -0.03507724404335022, 0.06378840655088425, -0.03687513619661331, -0.04367735981941223, -0.06499230116605759, 0.022346964105963707, -0.03071010485291481, 0.0857510045170784, 0.05206438899040222, -0.010686226189136505, 0.04544033855199814, 0.006831359583884478, -0.08487683534622192, 0.032589055597782135, -0.022864026948809624, -0.034640420228242874, -0.023399798199534416, 0.10856815427541733, 0.048170506954193115, -0.06184167414903641, -0.038611430674791336, 0.01570090837776661, 0.021308312192559242, 0.007361515425145626, 0.04790753126144409, -0.05964556336402893, 0.06172873452305794, 0.07106868922710419, -0.08017072826623917, -7.56797001649614e-33, 0.0034735912922769785, 0.022465689107775688, -0.04891197010874748, -0.03280218690633774, 0.021556193009018898, 0.0539168044924736, -0.021505139768123627, -0.05718384310603142, -0.02188880555331707, -0.020856590941548347, 0.010999795980751514, -0.015926256775856018, -0.0514635369181633, 0.08569853007793427, -0.09530836343765259, -0.025222936645150185, -0.024089904502034187, -0.02328845113515854, -0.0016258640680462122, 0.029302798211574554, -0.0018676238832995296, 0.05150032415986061, 0.035174980759620667, 0.04338587075471878, 0.017010051757097244, 0.02851055935025215, -0.009309752844274044, 0.059745028614997864, -0.0052285222336649895, -0.0015644780360162258, -0.012590723112225533, -0.05742514878511429, 0.017698390409350395, -0.012858076021075249, -0.012908754870295525, -0.035607945173978806, -0.04106979817152023, 0.031123677268624306, -0.037932138890028, -0.018764622509479523, -0.023562859743833542, -0.008129425346851349, -0.055610861629247665, -0.006294840015470982, -0.009219012223184109, 0.030635671690106392, 0.08086256682872772, -0.04698677361011505, -0.056924495846033096, 0.007011944428086281, -0.0440078005194664, 0.01759812794625759, 0.033378489315509796, 0.10607454925775528, 0.0007148038712330163, 0.042051978409290314, 0.09341223537921906, 0.040860265493392944, 0.07343503832817078, 0.03461325168609619, 0.0676019936800003, -0.09652481228113174, 0.000701471755746752, 0.04592891409993172, 0.025713929906487465, -0.09403252601623535, -0.055525485426187515, 0.06353221833705902, 0.0014828857965767384, 0.0033155425917357206, -0.03201742097735405, -0.0038734206464141607, 0.03917109966278076, 0.037553418427705765, -0.006433280184864998, -0.01526527851819992, 0.018870433792471886, 0.009500065818428993, 0.05488993972539902, -0.011588310822844505, -0.031017830595374107, 0.05700564384460449, -0.06389041990041733, -0.01460858155041933, 0.0493953600525856, 0.0077406237833201885, 0.10747916251420975, 0.05048137903213501, 0.03486946225166321, 0.06597162783145905, 0.03279171139001846, -0.0043037692084908485, 0.04548605531454086, 0.1176590770483017, 0.03464324027299881, -5.321178164763296e-8, 0.014250541105866432, 0.08471574634313583, -0.07640637457370758, -0.03159765899181366, 0.005587033927440643, -0.009397977963089943, 0.0073163388296961784, -0.08121433109045029, -0.042866840958595276, -0.0139339379966259, -0.10404980182647705, 0.06970394402742386, -0.08088118582963943, -0.05783983692526817, 0.009815031662583351, -0.0013980335788801312, -0.03393173962831497, -0.009908328764140606, 0.044973649084568024, -0.030396051704883575, -0.08841460943222046, -0.08702968806028366, -0.08512338250875473, 0.014922506175935268, -0.04756840690970421, 0.08154789358377457, 0.05121242254972458, -0.00890480075031519, 0.02357633039355278, 0.051698263734579086, -0.04654410108923912, 0.04242765158414841, -0.09904605895280838, 0.12155559659004211, -0.046398572623729706, -0.010408400557935238, -0.04074094071984291, 0.07666702568531036, 0.04806507006287575, -0.04734306409955025, -0.03812685236334801, 0.055770713835954666, -0.05813164636492729, -0.018393253907561302, 0.0006706193089485168, 0.06815207749605179, 0.020564213395118713, 0.07020553201436996, 0.0488370917737484, 0.03982884809374809, 0.038193050771951675, -0.043758440762758255, -0.034110177308321, 0.046424683183431625, 0.010573354549705982, 0.009780787862837315, -0.0032263656612485647, -0.004972825292497873, 0.05074026435613632, -0.019480085000395775, -0.030775705352425575, 0.030215809121727943, -0.013119181618094444, -0.0017662571044638753 ]
0.009945
is enabled, the kubelet ignores errors that may happen during setting the following sysctl values on the node. - `vm.overcommit\_memory` - `vm.panic\_on\_oom` - `kernel.panic` - `kernel.panic\_on\_oops` - `kernel.keys.root\_maxkeys` - `kernel.keys.root\_maxbytes`. Within a user namespace, the kubelet also ignores any error raised from trying to open `/dev/kmsg`. This feature gate also allows kube-proxy to ignore an error during setting `RLIMIT\_NOFILE`. The `KubeletInUserNamespace` feature gate was introduced in Kubernetes v1.22 with "alpha" status. Running kubelet in a user namespace without using this feature gate is also possible by mounting a specially crafted proc filesystem (as done by [Sysbox](https://github.com/nestybox/sysbox)), but not officially supported. ### Configuring kube-proxy Running kube-proxy in a user namespace requires the following configuration: ```yaml apiVersion: kubeproxy.config.k8s.io/v1alpha1 kind: KubeProxyConfiguration mode: "iptables" # or "userspace" conntrack: # Skip setting sysctl value "net.netfilter.nf\_conntrack\_max" maxPerCore: 0 # Skip setting "net.netfilter.nf\_conntrack\_tcp\_timeout\_established" tcpEstablishedTimeout: 0s # Skip setting "net.netfilter.nf\_conntrack\_tcp\_timeout\_close" tcpCloseWaitTimeout: 0s ``` ## Caveats - Most of "non-local" volume drivers such as `nfs` and `iscsi` do not work. Local volumes like `local`, `hostPath`, `emptyDir`, `configMap`, `secret`, and `downwardAPI` are known to work. - Some CNI plugins may not work. Flannel (VXLAN) is known to work. For more on this, see the [Caveats and Future work](https://rootlesscontaine.rs/caveats/) page on the rootlesscontaine.rs website. ## {{% heading "seealso" %}} - [rootlesscontaine.rs](https://rootlesscontaine.rs/) - [Rootless Containers 2020 (KubeCon NA 2020)](https://www.slideshare.net/AkihiroSuda/kubecon-na-2020-containerd-rootless-containers-2020) - [Running kind with Rootless Docker](https://kind.sigs.k8s.io/docs/user/rootless/) - [Usernetes](https://github.com/rootless-containers/usernetes) - [Running K3s with rootless mode](https://rancher.com/docs/k3s/latest/en/advanced/#running-k3s-with-rootless-mode-experimental) - [KEP-2033: Kubelet-in-UserNS (aka Rootless mode)](https://github.com/kubernetes/enhancements/tree/master/keps/sig-node/2033-kubelet-in-userns-aka-rootless)
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/kubelet-in-userns.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/kubelet-in-userns.md
[ 0.03347622975707054, -0.012976105324923992, 0.009372526779770851, -0.013352515175938606, -0.050366465002298355, -0.03417054936289787, -0.026897558942437172, 0.05574384704232216, 0.06455185264348984, 0.00011400190851418301, -0.01175200380384922, -0.03579483553767204, 0.0032445022370666265, -0.09924010187387466, 0.009391133673489094, -0.006703469902276993, 0.01704188622534275, 0.05354255810379982, -0.005176329053938389, -0.017424896359443665, -0.010232847183942795, -0.03832031041383743, 0.02137821353971958, 0.0036639024037867785, -0.053525105118751526, -0.05715180188417435, -0.07304830849170685, 0.015996119007468224, 0.04106125608086586, -0.07503224909305573, -0.011639811098575592, -0.006572669371962547, -0.04007923975586891, 0.022624753415584564, 0.07302246242761612, 0.10376246273517609, -0.029299769550561905, -0.09081725031137466, -0.12140334397554398, 0.003814650932326913, 0.04427527263760567, -0.00699384743347764, -0.12585154175758362, 0.03150566667318344, -0.035620611160993576, 0.03884727507829666, 0.011592724360525608, -0.07958295196294785, -0.015767842531204224, -0.057977933436632156, 0.012510128319263458, -0.02372548170387745, 0.11172216385602951, 0.019034139811992645, 0.09225320816040039, 0.009692919440567493, -0.04681471735239029, 0.03196074441075325, 0.10330763459205627, 0.05198721960186958, 0.010998831130564213, 0.002692755311727524, 0.006297008600085974, -0.003885377664119005, -0.06507494300603867, 0.0413186177611351, 0.038922201842069626, -0.02741984650492668, -0.0025827873032540083, 0.03571786358952522, 0.06363408267498016, -0.0013738528359681368, -0.0822027400135994, 0.037786148488521576, 0.030222252011299133, 0.0024366136640310287, -0.12235894799232483, 0.020778369158506393, 0.02642734721302986, -0.08319619297981262, 0.0009083907352760434, 0.04571124166250229, 0.04413227364420891, -0.08434620499610901, -0.06434052437543869, 0.003837434807792306, -0.0643090307712555, 0.01859663799405098, 0.04398070275783539, 0.0001573805056978017, 0.04948262870311737, -0.0791759192943573, 0.01851361244916916, 0.01150548830628395, 0.06588716804981232, -0.021048476919531822, 0.045276254415512085, 0.03230951353907585, -0.005719294305890799, -0.04476292058825493, 0.01276001613587141, 0.04940648004412651, -0.03365914151072502, 0.043913401663303375, 0.08198761194944382, -0.026626797392964363, 0.021537765860557556, -0.004102949984371662, -0.0003456158156041056, -0.010498772375285625, -0.033639274537563324, 0.008226151578128338, 0.03057747334241867, -0.00976001750677824, 0.01934991031885147, -0.03362865746021271, -0.0011511279735714197, -0.008780822157859802, 0.051746271550655365, 0.048522576689720154, 0.043160974979400635, -0.052218206226825714, -0.011876760050654411, 0.034437187016010284, -0.031746018677949905, 0.0274753849953413, -0.03597179427742958, 1.6683974992213043e-33, 0.05906139686703682, -0.05694090574979782, 0.033292122185230255, 0.00016482164210174233, 0.009508782997727394, -0.08019603788852692, -0.06756094843149185, -0.05523262545466423, -0.0607110969722271, -0.06341326981782913, -0.031460653990507126, -0.10869484394788742, -0.025439606979489326, -0.032161835581064224, 0.09571690112352371, 0.0029834837187081575, -0.09438781440258026, 0.023006964474916458, 0.05556560307741165, 0.013813416473567486, 0.037500325590372086, -0.09561529755592346, -0.023524686694145203, 0.019201477989554405, 0.030243100598454475, -0.030213607475161552, 0.04226477071642876, -0.027484452351927757, 0.01202596165239811, 0.035078708082437515, -0.06169058755040169, -0.003817463992163539, 0.027172908186912537, 0.041885022073984146, -0.14056092500686646, 0.011319858953356743, -0.06036652997136116, -0.017928536981344223, -0.10097997635602951, -0.013291247189044952, -0.053274381905794144, 0.03032342903316021, -0.055882785469293594, -0.04050694778561592, 0.019488800317049026, -0.06828293204307556, 0.05665545165538788, -0.014942388981580734, 0.04653148353099823, 0.022360170260071754, -0.03617704287171364, 0.03383614122867584, 0.039616040885448456, -0.0240830946713686, 0.07225066423416138, 0.04524247720837593, 0.09920395910739899, -0.059211116284132004, -0.0702168270945549, 0.054552365094423294, 0.0020201667211949825, -0.002173579530790448, 0.03991995006799698, 0.05192164331674576, 0.02447987161576748, 0.027224401012063026, -0.04634871333837509, 0.051436517387628555, -0.08505351096391678, -0.016002269461750984, -0.09676539897918701, -0.013021123595535755, -0.06001291424036026, -0.017113035544753075, -0.04931199178099632, -0.07250464707612991, 0.04698697477579117, -0.033603161573410034, -0.15242034196853638, 0.012677417136728764, 0.07860624045133591, -0.09458336234092712, 0.010232514701783657, 0.03397522494196892, -0.031068766489624977, -0.012929320335388184, 0.013612900860607624, 0.042802657932043076, -0.06478089094161987, -0.0016885530203580856, 0.04931876063346863, -0.050694145262241364, 0.012471449561417103, 0.06209568679332733, -0.1677655577659607, -3.456771094675316e-33, 0.05160827562212944, 0.0007322750170715153, 0.05418366566300392, 0.02720825746655464, -0.010078653693199158, 0.07349668443202972, 0.03062327578663826, 0.027538729831576347, -0.043673526495695114, -0.067570760846138, -0.06459221243858337, 0.0030916694086045027, 0.03943600505590439, 0.0003950463142246008, -0.0637069121003151, -0.0016529405256733298, -0.0718323364853859, -0.006952430121600628, -0.0317729227244854, 0.015535698272287846, -0.03662969172000885, -0.011165359057486057, 0.002410870511084795, 0.04770864546298981, -0.008436047472059727, 0.045560963451862335, -0.011896315030753613, 0.0784810334444046, -0.09845123440027237, -0.043364666402339935, 0.11448610574007034, -0.023347148671746254, -0.06323631852865219, 0.03756701946258545, 0.05525759980082512, -0.05874389782547951, 0.01518105249851942, 0.043705880641937256, -0.0055933753028512, 0.004988776054233313, 0.05330417677760124, 0.10611037164926529, -0.025069892406463623, -0.03135063499212265, -0.02150186337530613, 0.06344571709632874, 0.039151933044195175, -0.057338133454322815, 0.02487359382212162, -0.13151606917381287, -0.05162527784705162, -0.013812410645186901, 0.009953665547072887, 0.13267594575881958, -0.01614316552877426, 0.04543979838490486, 0.0036891920026391745, 0.09180855751037598, 0.00006319327076198533, -0.08777448534965515, -0.009977978654205799, -0.09062101691961288, 0.059398457407951355, -0.0006853614468127489, -0.02627268247306347, -0.028277546167373657, 0.020750021561980247, 0.08508646488189697, 0.03905347362160683, 0.021982334554195404, -0.00557161308825016, 0.014188836328685284, -0.017860542982816696, 0.013911447487771511, -0.023609427735209465, 0.07203567028045654, -0.0023671297822147608, -0.0830189436674118, -0.008431109599769115, 0.03193042427301407, -0.02856251411139965, 0.022012438625097275, -0.04152139648795128, 0.044075991958379745, 0.08461751788854599, 0.039237841963768005, 0.016414623707532883, 0.10888621211051941, 0.062478724867105484, 0.014851684682071209, -0.023425748571753502, -0.015182667411863804, -0.04404809698462486, 0.09151376783847809, -0.011510302312672138, -5.1080405683023855e-8, 0.045486632734537125, -0.016268130391836166, -0.07670526951551437, -0.01791544258594513, 0.0738753154873848, -0.07846958190202713, 0.05918837711215019, -0.0535537414252758, -0.09498776495456696, 0.017603853717446327, -0.04688039422035217, 0.06514464318752289, -0.0785873532295227, 0.008598797023296356, 0.02853706106543541, -0.04242261126637459, 0.01411400455981493, 0.11260532587766647, 0.03213042393326759, -0.02414899691939354, -0.026156334206461906, -0.04490186274051666, -0.01247483678162098, 0.0411689430475235, 0.03019903227686882, 0.05151199549436569, 0.10432631522417068, 0.02927420660853386, 0.0654398649930954, -0.003498571924865246, -0.02700708992779255, -0.014271063730120659, -0.039493538439273834, 0.04625151678919792, -0.020092498511075974, 0.10105086863040924, -0.07468145340681076, 0.0867941752076149, 0.0026334321592003107, 0.022296110168099403, 0.010755266062915325, -0.04643559828400612, 0.023964380845427513, 0.022050265222787857, -0.06658856570720673, 0.06490110605955124, -0.06055604666471481, 0.10991176217794418, 0.014595355838537216, -0.018610754981637, 0.019656654447317123, 0.010985159315168858, -0.06502822041511536, 0.09997754544019699, 0.004311179276555777, 0.02646036073565483, -0.04985878989100456, -0.03428298234939575, 0.023936713114380836, -0.024507910013198853, 0.023511098697781563, -0.020094268023967743, 0.0022565824910998344, -0.002271000761538744 ]
0.132849
{{< glossary\_definition term\_id="etcd" length="all" prepend="etcd is a ">}} ## {{% heading "prerequisites" %}} Before you follow steps in this page to deploy, manage, back up or restore etcd, you need to understand the typical expectations for operating an etcd cluster. Refer to the [etcd documentation](https://etcd.io/docs/) for more context. Key details include: \* The minimum recommended etcd versions to run in production are `3.4.29+` and `3.5.11+`. \* etcd is a leader-based distributed system. Ensure that the leader periodically send heartbeats on time to all followers to keep the cluster stable. \* You should run etcd as a cluster with an odd number of members. \* Aim to ensure that no resource starvation occurs. Performance and stability of the cluster is sensitive to network and disk I/O. Any resource starvation can lead to heartbeat timeout, causing instability of the cluster. An unstable etcd indicates that no leader is elected. Under such circumstances, a cluster cannot make any changes to its current state, which implies no new pods can be scheduled. ### Resource requirements for etcd Operating etcd with limited resources is suitable only for testing purposes. For deploying in production, advanced hardware configuration is required. Before deploying etcd in production, see [resource requirement reference](https://etcd.io/docs/current/op-guide/hardware/#example-hardware-configurations). Keeping etcd clusters stable is critical to the stability of Kubernetes clusters. Therefore, run etcd clusters on dedicated machines or isolated environments for [guaranteed resource requirements](https://etcd.io/docs/current/op-guide/hardware/). ### Tools Depending on which specific outcome you're working on, you will need the `etcdctl` tool or the `etcdutl` tool (you may need both). ## Understanding etcdctl and etcdutl `etcdctl` and `etcdutl` are command-line tools used to interact with etcd clusters, but they serve different purposes: - `etcdctl`: This is the primary command-line client for interacting with etcd over a network. It is used for day-to-day operations such as managing keys and values, administering the cluster, checking health, and more. - `etcdutl`: This is an administration utility designed to operate directly on etcd data files, including migrating data between etcd versions, defragmenting the database, restoring snapshots, and validating data consistency. For network operations, `etcdctl` should be used. For more information on `etcdutl`, you can refer to the [etcd recovery documentation](https://etcd.io/docs/v3.5/op-guide/recovery/). ## Starting etcd clusters This section covers starting a single-node and multi-node etcd cluster. This guide assumes that `etcd` is already installed. ### Single-node etcd cluster Use a single-node etcd cluster only for testing purposes. 1. Run the following: ```sh etcd --listen-client-urls=http://$PRIVATE\_IP:2379 \ --advertise-client-urls=http://$PRIVATE\_IP:2379 ``` 2. Start the Kubernetes API server with the flag `--etcd-servers=$PRIVATE\_IP:2379`. Make sure `PRIVATE\_IP` is set to your etcd client IP. ### Multi-node etcd cluster For durability and high availability, run etcd as a multi-node cluster in production and back it up periodically. A five-member cluster is recommended in production. For more information, see [FAQ documentation](https://etcd.io/docs/current/faq/#what-is-failure-tolerance). As you're using Kubernetes, you have the option to run etcd as a container inside one or more Pods. The `kubeadm` tool sets up etcd {{< glossary\_tooltip text="static pods" term\_id="static-pod" >}} by default, or you can deploy a [separate cluster](/docs/setup/production-environment/tools/kubeadm/setup-ha-etcd-with-kubeadm/) and instruct kubeadm to use that etcd cluster as the control plane's backing store. You configure an etcd cluster either by static member information or by dynamic discovery. For more information on clustering, see [etcd clustering documentation](https://etcd.io/docs/current/op-guide/clustering/). For an example, consider a five-member etcd cluster running with the following client URLs: `http://$IP1:2379`, `http://$IP2:2379`, `http://$IP3:2379`, `http://$IP4:2379`, and `http://$IP5:2379`. To start a Kubernetes API server: 1. Run the following: ```shell etcd --listen-client-urls=http://$IP1:2379,http://$IP2:2379,http://$IP3:2379,http://$IP4:2379,http://$IP5:2379 --advertise-client-urls=http://$IP1:2379,http://$IP2:2379,http://$IP3:2379,http://$IP4:2379,http://$IP5:2379 ``` 2. Start the Kubernetes API servers with the flag `--etcd-servers=$IP1:2379,$IP2:2379,$IP3:2379,$IP4:2379,$IP5:2379`. Make sure the `IP` variables are set to your client IP addresses. ### Multi-node etcd cluster with load balancer To
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/configure-upgrade-etcd.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/configure-upgrade-etcd.md
[ -0.04292125254869461, 0.008486809208989143, 0.05360084027051926, -0.048226505517959595, 0.016545327380299568, -0.00924056675285101, -0.0932416319847107, -0.04884140565991402, -0.07684127986431122, 0.02159029245376587, 0.029939142987132072, 0.0377216711640358, 0.045328136533498764, -0.04519224539399147, -0.001468782895244658, 0.03354206681251526, 0.03250313177704811, -0.0028433764819055796, -0.0957125797867775, 0.028584184125065804, 0.0011611926602199674, 0.05305201932787895, -0.0037230541929602623, 0.04450768977403641, -0.051499202847480774, -0.008482176810503006, 0.01903620921075344, -0.0202209260314703, 0.012708263471722603, -0.009023908525705338, -0.006811194121837616, -0.040306419134140015, 0.007612696383148432, 0.02489926852285862, 0.044171079993247986, 0.09847581386566162, 0.13628047704696655, -0.022544141858816147, -0.13183900713920593, 0.05516273155808449, 0.022294050082564354, 0.0014471649192273617, -0.10670611262321472, -0.01941346749663353, -0.0227446760982275, -0.015151984058320522, -0.11443962901830673, -0.021515458822250366, -0.030642149969935417, -0.10155133903026581, 0.023149019107222557, 0.0036262813955545425, 0.031313423067331314, -0.05024700239300728, 0.03815997764468193, 0.02829747460782528, 0.03922833874821663, -0.06801190972328186, -0.028452899307012558, -0.04486113414168358, 0.06982181966304779, -0.024827199056744576, 0.048428457230329514, 0.040362127125263214, 0.042050886899232864, -0.004684495739638805, 0.024129362776875496, 0.0202859528362751, -0.010979946702718735, -0.01791215129196644, 0.02657393179833889, -0.004508098121732473, -0.02247033827006817, 0.06409338861703873, 0.021147852763533592, 0.0002981937723234296, 0.04532594233751297, 0.008201663382351398, 0.030175672844052315, -0.07856738567352295, -0.0030552325770258904, 0.059112489223480225, 0.027386892586946487, 0.024079836905002594, -0.0956769809126854, -0.03514406457543373, 0.05595453456044197, -0.011538885533809662, 0.034661609679460526, -0.02700953558087349, -0.011352547444403172, 0.05727829784154892, 0.055342044681310654, -0.022761469706892967, 0.0487438440322876, 0.09974166750907898, 0.04657004028558731, -0.0525750070810318, 0.03400653600692749, -0.024734439328312874, 0.0063985129818320274, 0.020361939445137978, -0.01647792011499405, -0.02132270112633705, -0.10207217931747437, -0.004083054605871439, -0.023159610107541084, 0.04383200407028198, -0.022204721346497536, 0.002493780804798007, 0.029803423210978508, 0.009268602356314659, -0.06417721509933472, 0.054054006934165955, -0.04641859605908394, -0.04103367403149605, -0.012765396386384964, -0.04263896867632866, -0.022099122405052185, -0.024421073496341705, 0.050686050206422806, -0.11392848938703537, 0.011250930838286877, 0.06118033081293106, -0.030984938144683838, 0.07002399861812592, -0.014383428730070591, 3.7051240309872795e-33, 0.03856205940246582, -0.0781518816947937, -0.10949363559484482, 0.03181808814406395, -0.05458276718854904, 0.01706330105662346, -0.03073338232934475, 0.0026885452680289745, -0.039361197501420975, -0.05445069819688797, 0.045666374266147614, -0.010062415152788162, -0.032199591398239136, 0.038571424782276154, 0.03550954535603523, -0.1480148583650589, 0.12390145659446716, 0.06785351783037186, 0.07026328891515732, -0.08560370653867722, 0.044261056929826736, 0.006302224937826395, -0.11434127390384674, 0.0012286552228033543, 0.08055834472179413, 0.05561161786317825, 0.02320721000432968, -0.0312897190451622, 0.040777865797281265, -0.042129915207624435, 0.08323997259140015, -0.04663391411304474, -0.03424207121133804, -0.06716055423021317, -0.07252593338489532, 0.07793960720300674, -0.05656547471880913, 0.020153749734163284, -0.023089107125997543, -0.007680805865675211, -0.0439971461892128, 0.040634315460920334, -0.02182781510055065, -0.06261943280696869, 0.07624325901269913, 0.006843782030045986, 0.01655273139476776, 0.060249216854572296, -0.0011762789217755198, -0.005017631687223911, -0.04370227828621864, 0.004289676900953054, 0.03687210753560066, 0.0366794727742672, -0.029217632487416267, 0.033344071358442307, 0.010271835140883923, -0.12205994874238968, -0.02040345035493374, 0.005296119023114443, 0.03346552699804306, 0.02609902247786522, -0.03413070738315582, 0.11896879971027374, 0.023790866136550903, -0.06769885122776031, 0.022612664848566055, -0.04973234981298447, 0.04132944345474243, 0.04260636493563652, -0.04978968948125839, -0.04713798686861992, -0.01040862500667572, 0.05186060443520546, -0.003881149459630251, -0.07873980700969696, 0.0049433582462370396, -0.006441755685955286, -0.07600211352109909, -0.020135965198278427, -0.020095808431506157, 0.004738820716738701, -0.11214368790388107, -0.0520428828895092, 0.10257211327552795, -0.030872831121087074, -0.027958190068602562, -0.013002630323171616, -0.04658405855298042, -0.019778290763497353, 0.10841559618711472, -0.027378369122743607, 0.07172141969203949, 0.0562976710498333, -0.05062579736113548, -5.57332838654151e-33, 0.019311046227812767, -0.03357534855604172, 0.05331169068813324, 0.001074201543815434, 0.03977513685822487, 0.02857586182653904, -0.052388571202754974, 0.12929590046405792, -0.013627729378640652, -0.08314671367406845, -0.08766896277666092, -0.02588360197842121, 0.013917479664087296, -0.051001813262701035, -0.04863835871219635, 0.07068770378828049, 0.01031652931123972, -0.031509626656770706, 0.02743329480290413, 0.0866720899939537, -0.03658528998494148, 0.0005615357076749206, -0.02073010243475437, 0.05725797638297081, 0.0329333059489727, 0.08476606756448746, -0.005829630885273218, -0.04385939612984657, -0.05428307130932808, 0.022248229011893272, 0.08215819299221039, -0.012376914732158184, -0.07075220346450806, 0.039338838309049606, -0.00810872670263052, -0.020816560834646225, 0.0002868614683393389, -0.0531226210296154, -0.040831439197063446, -0.02496523968875408, -0.002629511756822467, 0.05387743562459946, -0.03147992864251137, -0.03417741134762764, -0.02104254439473152, 0.0014421939849853516, -0.010620537213981152, -0.01090980600565672, -0.05406494066119194, -0.022936061024665833, -0.03675321117043495, -0.07369118183851242, 0.1314466893672943, 0.016626056283712387, 0.010311597026884556, 0.0010405882494524121, 0.03377103433012962, 0.05854343622922897, -0.012809360399842262, -0.01781647652387619, 0.08921261876821518, -0.06895182281732559, 0.013926208950579166, 0.06643306463956833, -0.10007189959287643, -0.04154611751437187, -0.055864594876766205, -0.04370169714093208, -0.08334052562713623, 0.005786977708339691, -0.1154426857829094, -0.023537753149867058, -0.027949661016464233, 0.023068800568580627, -0.09077727794647217, -0.005976962391287088, -0.022430244833230972, -0.040179941803216934, 0.03757584095001221, 0.08363226056098938, -0.08338258415460587, 0.08084731549024582, -0.10547331720590591, 0.03983495011925697, -0.043294209986925125, -0.028054289519786835, 0.07904510200023651, 0.06224442273378372, 0.008008859120309353, 0.03833828493952751, -0.004441814962774515, -0.027503175660967827, -0.026099594309926033, 0.1295510083436966, 0.013717634603381157, -5.9089284576430146e-8, 0.03708232194185257, -0.022633560001850128, 0.03966493532061577, -0.00953784678131342, 0.060695189982652664, -0.040816839784383774, 0.09711845964193344, -0.07022662460803986, 0.041909489780664444, -0.0024775369092822075, 0.06174927577376366, 0.02793242037296295, -0.04994513466954231, 0.0022175577469170094, 0.03258814290165901, 0.0023932664189487696, 0.019446229562163353, 0.05342351272702217, -0.039041902869939804, -0.005670245736837387, -0.055296640843153, -0.03139800950884819, -0.03383179381489754, 0.029146425426006317, 0.04482793062925339, -0.017414448782801628, 0.1434130072593689, 0.02699974738061428, -0.019181912764906883, -0.0030287187546491623, -0.08361856639385223, -0.037526894360780716, -0.008278225548565388, 0.018561864271759987, 0.01644502952694893, 0.07720645517110825, 0.0005409833393059671, 0.02580275386571884, 0.09893278032541275, 0.04594051092863083, -0.016091525554656982, 0.07001132518053055, 0.07595013827085495, 0.005102836526930332, 0.08695497363805771, -0.05461706966161728, -0.0814918652176857, 0.004434023983776569, -0.055877070873975754, -0.03483918309211731, -0.07101306319236755, -0.06538695096969604, 0.01944432221353054, -0.0046785930171608925, 0.0017751221312209964, 0.05074527487158775, -0.05901169776916504, 0.03975941613316536, 0.013767373748123646, 0.04019348695874214, 0.020031770691275597, 0.0047554816119372845, -0.006393377669155598, -0.028673917055130005 ]
0.09827
`http://$IP2:2379`, `http://$IP3:2379`, `http://$IP4:2379`, and `http://$IP5:2379`. To start a Kubernetes API server: 1. Run the following: ```shell etcd --listen-client-urls=http://$IP1:2379,http://$IP2:2379,http://$IP3:2379,http://$IP4:2379,http://$IP5:2379 --advertise-client-urls=http://$IP1:2379,http://$IP2:2379,http://$IP3:2379,http://$IP4:2379,http://$IP5:2379 ``` 2. Start the Kubernetes API servers with the flag `--etcd-servers=$IP1:2379,$IP2:2379,$IP3:2379,$IP4:2379,$IP5:2379`. Make sure the `IP` variables are set to your client IP addresses. ### Multi-node etcd cluster with load balancer To run a load balancing etcd cluster: 1. Set up an etcd cluster. 2. Configure a load balancer in front of the etcd cluster. For example, let the address of the load balancer be `$LB`. 3. Start Kubernetes API Servers with the flag `--etcd-servers=$LB:2379`. ## Securing etcd clusters Access to etcd is equivalent to root permission in the cluster so ideally only the API server should have access to it. Considering the sensitivity of the data, it is recommended to grant permission to only those nodes that require access to etcd clusters. To secure etcd, either set up firewall rules or use the security features provided by etcd. etcd security features depend on x509 Public Key Infrastructure (PKI). To begin, establish secure communication channels by generating a key and certificate pair. For example, use key pairs `peer.key` and `peer.cert` for securing communication between etcd members, and `client.key` and `client.cert` for securing communication between etcd and its clients. See the [example scripts](https://github.com/coreos/etcd/tree/master/hack/tls-setup) provided by the etcd project to generate key pairs and CA files for client authentication. ### Securing communication To configure etcd with secure peer communication, specify flags `--peer-key-file=peer.key` and `--peer-cert-file=peer.cert`, and use HTTPS as the URL schema. Similarly, to configure etcd with secure client communication, specify flags `--key=k8sclient.key` and `--cert=k8sclient.cert`, and use HTTPS as the URL schema. Here is an example on a client command that uses secure communication: ``` ETCDCTL\_API=3 etcdctl --endpoints 10.2.0.9:2379 \ --cert=/etc/kubernetes/pki/etcd/server.crt \ --key=/etc/kubernetes/pki/etcd/server.key \ --cacert=/etc/kubernetes/pki/etcd/ca.crt \ member list ``` ### Limiting access of etcd clusters After configuring secure communication, restrict the access of the etcd cluster to only the Kubernetes API servers using TLS authentication. For example, consider key pairs `k8sclient.key` and `k8sclient.cert` that are trusted by the CA `etcd.ca`. When etcd is configured with `--client-cert-auth` along with TLS, it verifies the certificates from clients by using system CAs or the CA passed in by `--trusted-ca-file` flag. Specifying flags `--client-cert-auth=true` and `--trusted-ca-file=etcd.ca` will restrict the access to clients with the certificate `k8sclient.cert`. Once etcd is configured correctly, only clients with valid certificates can access it. To give Kubernetes API servers the access, configure them with the flags `--etcd-certfile=k8sclient.cert`, `--etcd-keyfile=k8sclient.key` and `--etcd-cafile=ca.cert`. {{< note >}} etcd authentication is not planned for Kubernetes. {{< /note >}} ## Replacing a failed etcd member etcd cluster achieves high availability by tolerating minor member failures. However, to improve the overall health of the cluster, replace failed members immediately. When multiple members fail, replace them one by one. Replacing a failed member involves two steps: removing the failed member and adding a new member. Though etcd keeps unique member IDs internally, it is recommended to use a unique name for each member to avoid human errors. For example, consider a three-member etcd cluster. Let the URLs be, `member1=http://10.0.0.1`, `member2=http://10.0.0.2`, and `member3=http://10.0.0.3`. When `member1` fails, replace it with `member4=http://10.0.0.4`. 1. Get the member ID of the failed `member1`: ```shell etcdctl --endpoints=http://10.0.0.2,http://10.0.0.3 member list ``` The following message is displayed: ```console 8211f1d0f64f3269, started, member1, http://10.0.0.1:2380, http://10.0.0.1:2379 91bc3c398fb3c146, started, member2, http://10.0.0.2:2380, http://10.0.0.2:2379 fd422379fda50e48, started, member3, http://10.0.0.3:2380, http://10.0.0.3:2379 ``` 1. Do either of the following: 1. If each Kubernetes API server is configured to communicate with all etcd members, remove the failed member from the `--etcd-servers` flag, then restart each Kubernetes API server. 1. If each Kubernetes API server communicates with a single etcd member,
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/configure-upgrade-etcd.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/configure-upgrade-etcd.md
[ 0.00304598780348897, 0.014244203455746174, 0.035510819405317307, -0.09643914550542831, -0.05841398984193802, -0.011983511969447136, -0.07552361488342285, -0.07981198281049728, 0.0923653095960617, 0.05136648938059807, -0.024745848029851913, -0.04884133115410805, -0.027004389092326164, -0.018928704783320427, 0.09090142697095871, 0.02067478746175766, 0.0020948494784533978, 0.0292927585542202, 0.013007286004722118, -0.10682625323534012, -0.0033422468695789576, 0.0675739049911499, 0.003844045801088214, -0.07145349681377411, -0.094957634806633, 0.006678258068859577, -0.002963858190923929, -0.013587786816060543, 0.038917627185583115, 0.009313435293734074, 0.011473218910396099, -0.07234977185726166, -0.12073145061731339, 0.038009416311979294, -0.002765491371974349, 0.04619836062192917, 0.08715314418077469, -0.018931925296783447, -0.08007369935512543, 0.1392575204372406, 0.1188887357711792, -0.02215523086488247, -0.08168039470911026, -0.04642391949892044, -0.049894511699676514, -0.007270661182701588, -0.10675486922264099, -0.0006499565788544714, 0.04273856431245804, -0.09521142393350601, 0.019356723874807358, -0.04151924327015877, 0.03731972351670265, -0.010853326879441738, 0.07374373078346252, -0.07478949427604675, -0.08990371227264404, 0.06303302198648453, 0.05715007707476616, 0.030935456976294518, 0.0055763861164450645, -0.059270452708005905, 0.04790707677602768, -0.013520614244043827, -0.0011945657897740602, -0.015146119520068169, -0.010945213958621025, 0.028780754655599594, -0.004918841179460287, 0.01514782290905714, 0.05436249077320099, -0.007921842858195305, -0.11688870191574097, -0.031099963933229446, 0.010558568872511387, 0.02294056862592697, -0.04932021349668503, 0.04525038227438927, -0.06361918151378632, -0.11614637821912766, 0.008625434711575508, -0.012715872377157211, -0.006013368256390095, 0.04807984456419945, -0.11629170924425125, -0.02787407487630844, -0.022830523550510406, -0.04255096614360809, 0.08079856634140015, -0.0012481403537094593, -0.013563195243477821, -0.006686912849545479, -0.03931590914726257, -0.07057330757379532, 0.06796243786811829, 0.07326675206422806, 0.01785234920680523, 0.0012385373702272773, 0.023957625031471252, -0.013698335736989975, -0.005765650887042284, -0.0035967412404716015, -0.04155169799923897, -0.00933878868818283, 0.06120806187391281, -0.031811922788619995, -0.07142012566328049, 0.03320011496543884, 0.016401296481490135, 0.028151551261544228, -0.05394206568598747, -0.0121073629707098, 0.023874454200267792, 0.024968264624476433, -0.044975996017456055, 0.024756168946623802, 0.025055449455976486, -0.016689995303750038, 0.06433355808258057, 0.04973205178976059, 0.0326932892203331, -0.1176234781742096, -0.009225099347531796, 0.11565211415290833, -0.0768732950091362, 0.01261647418141365, 0.06774985790252686, 5.922398780857881e-33, 0.0773748978972435, -0.07265479117631912, 0.015776347368955612, -0.03667350858449936, 0.01913679949939251, -0.039893291890621185, 0.01447267271578312, 0.001001926721073687, -0.033437974750995636, 0.0017483265837654471, -0.06962670385837555, 0.006590588483959436, -0.005183474160730839, -0.06945298612117767, 0.03751180320978165, -0.005564845632761717, 0.04212082922458649, 0.008245985954999924, 0.09249597042798996, -0.0025991301517933607, 0.015099875628948212, -0.040648236870765686, 0.010343379341065884, 0.009053854271769524, 0.02307186834514141, -0.03680483624339104, -0.005545548163354397, -0.048768579959869385, 0.012893486768007278, -0.023376591503620148, 0.07115574181079865, -0.044677820056676865, -0.02046830579638481, -0.01488124392926693, -0.09568314999341965, 0.015163024887442589, 0.02083142101764679, 0.05204886570572853, -0.0832180455327034, -0.026071060448884964, 0.003950423561036587, -0.008271328173577785, -0.059081342071294785, -0.06840266287326813, 0.05472729355096817, 0.003710176097229123, -0.1033591777086258, -0.014686649665236473, 0.007186442613601685, 0.06194876879453659, -0.06811477243900299, 0.04721636697649956, 0.05294116586446762, -0.042692236602306366, 0.04651385173201561, -0.00351147772744298, 0.04160548746585846, -0.052533771842718124, -0.09216253459453583, -0.0007558141951449215, -0.035879623144865036, 0.03815790265798569, -0.024971963837742805, 0.007544554769992828, 0.044759370386600494, -0.029544413089752197, 0.0016616984503343701, 0.07458007335662842, -0.014451170340180397, 0.05991397798061371, -0.0175816360861063, 0.05073348060250282, 0.009870427660644054, 0.04911281540989876, 0.004110768903046846, -0.049475423991680145, -0.012346134521067142, 0.02197873778641224, -0.0059802597388625145, -0.007134666200727224, 0.07209386676549911, 0.0299395639449358, -0.05047965794801712, 0.07848786562681198, -0.02674349583685398, 0.007548714987933636, 0.00023997624521143734, 0.018213430419564247, -0.04642247408628464, 0.0033847857266664505, -0.000024009981643757783, 0.014589015394449234, 0.015528456307947636, 0.005672899540513754, -0.09286725521087646, -7.773513285261078e-33, 0.05207259953022003, 0.020746363326907158, 0.023912064731121063, -0.021928753703832626, 0.01757953129708767, 0.034240830689668655, 0.06176360324025154, 0.0623365119099617, -0.03775911033153534, 0.06731903553009033, -0.010385359637439251, -0.04637781158089638, 0.0422867126762867, -0.028225066140294075, -0.03250466287136078, 0.025945814326405525, -0.051175445318222046, 0.009946613572537899, -0.0008404445252381265, 0.017629068344831467, -0.04417768493294716, 0.044235166162252426, 0.0051538338884711266, 0.04228376969695091, -0.023399220779538155, 0.03909889981150627, 0.07654804736375809, -0.016781289130449295, -0.12888693809509277, -0.010267801582813263, 0.03870038688182831, -0.018062058836221695, -0.030195781961083412, 0.07112813740968704, -0.02020430937409401, 0.015274785459041595, 0.01949428953230381, 0.17114931344985962, 0.015452779829502106, -0.025859739631414413, -0.005743580404669046, -0.01211504079401493, -0.05596904829144478, -0.00849690567702055, -0.06442748010158539, -0.023622021079063416, 0.0005741048371419311, 0.0329786092042923, -0.10901347547769547, -0.09206869453191757, -0.014763899147510529, 0.04107194393873215, -0.004670615773648024, 0.06828512996435165, -0.015120288357138634, 0.04113642871379852, 0.052738260477781296, 0.02873782068490982, 0.013762024231255054, 0.011621224693953991, 0.044479768723249435, -0.13453878462314606, 0.034816429018974304, 0.09680669009685516, -0.028926260769367218, -0.078512042760849, -0.055263981223106384, -0.019465375691652298, -0.023034919053316116, -0.060605183243751526, -0.03676781803369522, -0.054525766521692276, 0.0057617234997451305, 0.010662811808288097, -0.03204762935638428, -0.0149931525811553, 0.054163187742233276, 0.043189190328121185, 0.02583206817507744, 0.12324991822242737, -0.10199171304702759, 0.06856583803892136, -0.10897217690944672, 0.012386753223836422, 0.040622614324092865, 0.024057593196630478, 0.05227980390191078, 0.09214523434638977, 0.01102020125836134, 0.05415558069944382, -0.003948959521949291, 0.11138221621513367, 0.032265715301036835, 0.06898417323827744, 0.034515030682086945, -5.3807124089644276e-8, 0.043696142733097076, -0.050726257264614105, 0.00841071829199791, 0.08961128443479538, -0.03368952125310898, 0.005337749607861042, -0.0009358485112898052, 0.008322387002408504, -0.060347869992256165, -0.0033665054943412542, -0.031685225665569305, 0.07636532932519913, -0.083742156624794, 0.03857141733169556, 0.012369656004011631, -0.003879173658788204, 0.00882326066493988, -0.011673388071358204, 0.058999203145504, -0.019212644547224045, -0.0839654728770256, -0.028375085443258286, -0.01875384896993637, -0.05655499920248985, 0.0019491721177473664, 0.03454505279660225, 0.08873843401670456, -0.015424836426973343, 0.003082439536228776, 0.07054237276315689, -0.03719549998641014, -0.05376967787742615, -0.07719013094902039, -0.013659993186593056, -0.029429562389850616, 0.05656423419713974, -0.1319822072982788, 0.0043908366933465, -0.04187954589724541, -0.01701108179986477, -0.037176523357629776, -0.015862472355365753, -0.005508607253432274, 0.0003581352939363569, 0.11469699442386627, 0.006959098391234875, 0.02297733724117279, 0.08396812528371811, 0.00412689708173275, -0.039050038903951645, -0.04714637249708176, -0.0878499299287796, 0.07297558337450027, -0.06800170987844467, -0.02441927045583725, 0.02591864764690399, -0.06869679689407349, -0.1172335147857666, -0.0014481464168056846, 0.06381631642580032, 0.03967708721756935, 0.03727211058139801, -0.03492393344640732, 0.029102349653840065 ]
0.004499
member3, http://10.0.0.3:2380, http://10.0.0.3:2379 ``` 1. Do either of the following: 1. If each Kubernetes API server is configured to communicate with all etcd members, remove the failed member from the `--etcd-servers` flag, then restart each Kubernetes API server. 1. If each Kubernetes API server communicates with a single etcd member, then stop the Kubernetes API server that communicates with the failed etcd. 1. Stop the etcd server on the broken node. It is possible that other clients besides the Kubernetes API server are causing traffic to etcd and it is desirable to stop all traffic to prevent writes to the data directory. 1. Remove the failed member: ```shell etcdctl member remove 8211f1d0f64f3269 ``` The following message is displayed: ```console Removed member 8211f1d0f64f3269 from cluster ``` 1. Add the new member: ```shell etcdctl member add member4 --peer-urls=http://10.0.0.4:2380 ``` The following message is displayed: ```console Member 2be1eb8f84b7f63e added to cluster ef37ad9dc622a7c4 ``` 1. Start the newly added member on a machine with the IP `10.0.0.4`: ```shell export ETCD\_NAME="member4" export ETCD\_INITIAL\_CLUSTER="member2=http://10.0.0.2:2380,member3=http://10.0.0.3:2380,member4=http://10.0.0.4:2380" export ETCD\_INITIAL\_CLUSTER\_STATE=existing etcd [flags] ``` 1. Do either of the following: 1. If each Kubernetes API server is configured to communicate with all etcd members, add the newly added member to the `--etcd-servers` flag, then restart each Kubernetes API server. 1. If each Kubernetes API server communicates with a single etcd member, start the Kubernetes API server that was stopped in step 2. Then configure Kubernetes API server clients to again route requests to the Kubernetes API server that was stopped. This can often be done by configuring a load balancer. For more information on cluster reconfiguration, see [etcd reconfiguration documentation](https://etcd.io/docs/current/op-guide/runtime-configuration/#remove-a-member). ## Backing up an etcd cluster All Kubernetes objects are stored in etcd. Periodically backing up the etcd cluster data is important to recover Kubernetes clusters under disaster scenarios, such as losing all control plane nodes. The snapshot file contains all the Kubernetes state and critical information. In order to keep the sensitive Kubernetes data safe, encrypt the snapshot files. Backing up an etcd cluster can be accomplished in two ways: etcd built-in snapshot and volume snapshot. ### Built-in snapshot etcd supports built-in snapshot. A snapshot may either be created from a live member with the `etcdctl snapshot save` command or by copying the `member/snap/db` file from an etcd [data directory](https://etcd.io/docs/current/op-guide/configuration/#--data-dir) that is not currently used by an etcd process. Creating the snapshot will not affect the performance of the member. Below is an example for creating a snapshot of the keyspace served by `$ENDPOINT` to the file `snapshot.db`: ```shell ETCDCTL\_API=3 etcdctl --endpoints $ENDPOINT snapshot save snapshot.db ``` Verify the snapshot: {{< tabs name="etcd\_verify\_snapshot" >}} {{% tab name="Use etcdutl" %}} The below example depicts the usage of the `etcdutl` tool for verifying a snapshot: ```shell etcdutl --write-out=table snapshot status snapshot.db ``` This should generate an output resembling the example provided below: ```console +----------+----------+------------+------------+ | HASH | REVISION | TOTAL KEYS | TOTAL SIZE | +----------+----------+------------+------------+ | fe01cf57 | 10 | 7 | 2.1 MB | +----------+----------+------------+------------+ ``` {{% /tab %}} {{% tab name="Use etcdctl (Deprecated)" %}} {{< note >}} The usage of `etcdctl snapshot status` has been \*\*deprecated\*\* since etcd v3.5.x and is slated for removal from etcd v3.6. It is recommended to utilize [`etcdutl`](https://github.com/etcd-io/etcd/blob/main/etcdutl/README.md) instead. {{< /note >}} The below example depicts the usage of the `etcdctl` tool for verifying a snapshot: ```shell export ETCDCTL\_API=3 etcdctl --write-out=table snapshot status snapshot.db ``` This should generate an output resembling the example provided below: ```console Deprecated: Use `etcdutl snapshot status` instead. +----------+----------+------------+------------+ | HASH | REVISION | TOTAL KEYS | TOTAL SIZE | +----------+----------+------------+------------+ | fe01cf57 | 10 | 7 | 2.1 MB
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/configure-upgrade-etcd.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/configure-upgrade-etcd.md
[ -0.02353779785335064, 0.04439929872751236, 0.11914072930812836, -0.054456692188978195, 0.05852004885673523, 0.0032547051087021828, -0.05929087847471237, -0.04822478070855141, 0.05698048323392868, 0.07995440065860748, 0.002338592428714037, -0.02209615334868431, -0.005587359890341759, 0.003574722446501255, -0.0025340819265693426, 0.029767772182822227, 0.009381759911775589, 0.07958995550870895, -0.0313321091234684, 0.015784474089741707, -0.055578991770744324, 0.0938914567232132, 0.018154779449105263, 0.05702316761016846, -0.04462594911456108, 0.006642981432378292, -0.03666975349187851, -0.05093264952301979, 0.01964370720088482, -0.00520930765196681, -0.01651814393699169, -0.07105295360088348, -0.0982566848397255, 0.038621556013822556, 0.020906660705804825, 0.05580800026655197, 0.07209838926792145, -0.015465841628611088, -0.13905134797096252, 0.08681334555149078, 0.049042005091905594, 0.06415306031703949, -0.07682763040065765, -0.04341135919094086, -0.006269873585551977, -0.007788932882249355, -0.10032148659229279, -0.045899346470832825, 0.020887436345219612, -0.06457358598709106, 0.04794887825846672, 0.0507674440741539, 0.04300066456198692, 0.00013518748164642602, 0.10295817255973816, -0.031130069866776466, -0.01692550629377365, 0.04447605088353157, 0.05612681433558464, -0.010115855373442173, 0.049654580652713776, 0.019263148307800293, 0.09177268296480179, -0.0165670495480299, -0.012286333367228508, 0.03924546390771866, 0.034652676433324814, -0.03238033503293991, -0.03195743262767792, 0.04385761171579361, 0.123805470764637, 0.004345973487943411, -0.06433971226215363, 0.008719174191355705, 0.07774077355861664, 0.012152638286352158, -0.07040280848741531, 0.00004275985702406615, 0.013326741755008698, -0.020407553762197495, 0.0003364523290656507, -0.0065307761542499065, 0.04218318685889244, -0.010785916820168495, -0.14761389791965485, 0.044240549206733704, -0.03351939097046852, 0.00733933737501502, 0.014177374541759491, -0.027259325608611107, -0.05026347190141678, 0.0022536835167557, 0.05928358435630798, -0.06656245142221451, 0.05755830556154251, 0.0321044921875, 0.009975139982998371, 0.023518942296504974, 0.022060086950659752, -0.04159919172525406, -0.006133622955530882, 0.07210848480463028, -0.08072596788406372, 0.012321299873292446, 0.03186981379985809, -0.0007880436605773866, 0.007891942746937275, 0.003203996689990163, -0.03565645590424538, 0.0018623551586642861, 0.004661261569708586, 0.014362527057528496, -0.06782256811857224, 0.07161469757556915, -0.02176547236740589, -0.04687187075614929, 0.02317248471081257, -0.004286920186132193, -0.06717301160097122, 0.01776285283267498, 0.0236966609954834, -0.14418303966522217, -0.029715020209550858, 0.1611737161874771, -0.04196801409125328, 0.025488052517175674, 0.054217007011175156, 3.970999914650157e-33, 0.04926063120365143, -0.06261324137449265, 0.016932491213083267, -0.016698341816663742, 0.03325909003615379, -0.007738057523965836, -0.03630799800157547, -0.0021151406690478325, 0.032297372817993164, -0.0817832201719284, -0.0059037418104708195, -0.04188749939203262, 0.022888634353876114, -0.06327246129512787, 0.04146096855401993, -0.07151900231838226, 0.06493101269006729, -0.03542613983154297, 0.050523750483989716, -0.05678335204720497, 0.045925043523311615, -0.013217281550168991, -0.0230906642973423, 0.015647977590560913, -0.02153906039893627, 0.02397073619067669, -0.01065700314939022, -0.029609978199005127, 0.05996323004364967, -0.04278046637773514, 0.0032462640665471554, -0.024977881461381912, 0.012181752361357212, 0.03411493077874184, -0.17147906124591827, -0.005126208998262882, 0.008726678788661957, 0.03347284719347954, -0.11377214640378952, 0.002542865462601185, -0.04417824000120163, -0.005412973929196596, -0.07183513790369034, -0.045167792588472366, 0.05931456387042999, -0.018253443762660027, -0.007973630912601948, 0.00862960610538721, -0.012811639346182346, 0.01387392170727253, -0.08120843768119812, 0.022314058616757393, 0.02516648732125759, -0.004402208607643843, -0.018218189477920532, 0.03790626302361488, 0.0797640010714531, -0.12455780804157257, -0.09369087219238281, -0.0028546545654535294, 0.07029764354228973, 0.03252528980374336, 0.022810110822319984, 0.05330647900700569, -0.007851473055779934, -0.08106487989425659, -0.004243228584527969, -0.016853442415595055, -0.001541442354209721, 0.01763942837715149, -0.08129996806383133, 0.04819197580218315, -0.003545378800481558, 0.008376559242606163, -0.06301295757293701, -0.079438716173172, -0.019912390038371086, -0.01686985418200493, -0.014861862175166607, 0.025532221421599388, 0.04595387354493141, -0.08452916890382767, -0.0029815579764544964, -0.002888674149289727, -0.0012629518751055002, -0.0014922828413546085, -0.032697949558496475, 0.0038800567854195833, -0.03090186044573784, 0.044337473809719086, 0.067933589220047, -0.009077835828065872, 0.04893654212355614, 0.017262935638427734, -0.04944399371743202, -5.1796347572999863e-33, -0.015519690699875355, -0.011490927077829838, 0.04713556915521622, -0.010602244175970554, 0.08040845394134521, 0.03415988013148308, -0.051534611731767654, 0.13868142664432526, -0.024669267237186432, -0.03025856427848339, -0.05865905061364174, -0.030512431636452675, -0.008083928376436234, -0.012576313689351082, -0.07743504643440247, 0.06655972450971603, -0.028974872082471848, -0.031679537147283554, -0.05151104927062988, 0.01951218768954277, 0.0033894197549670935, 0.014733553864061832, 0.007099902722984552, 0.055087678134441376, -0.027266714721918106, 0.07987774163484573, 0.035939499735832214, -0.006373990792781115, -0.08030282706022263, -0.023009253665804863, 0.10381762683391571, -0.03780734911561012, 0.02624218724668026, 0.04309975355863571, 0.013592883944511414, -0.027659576386213303, 0.016903677955269814, 0.05834639444947243, -0.08274710923433304, -0.041935987770557404, -0.021629758179187775, 0.03942784667015076, -0.03645810857415199, 0.009804712608456612, 0.026539359241724014, 0.009522520005702972, 0.01659434102475643, -0.03322552517056465, -0.030361050739884377, -0.04324640333652496, -0.025805620476603508, -0.01760588027536869, 0.09805727750062943, 0.08188305050134659, -0.004187968093901873, 0.06960213929414749, 0.07003471255302429, 0.03365650400519371, 0.060169585049152374, -0.022051233798265457, 0.05571877583861351, -0.06202422082424164, -0.0072693899273872375, 0.12326238304376602, -0.013419770635664463, -0.07540364563465118, -0.025597579777240753, -0.014187965542078018, -0.007763419765979052, -0.012370647862553596, -0.03751930221915245, -0.0006480431766249239, -0.011565985158085823, 0.014151441864669323, -0.020787708461284637, -0.011307874694466591, -0.032374605536460876, -0.019072405993938446, 0.02687929756939411, 0.07754562050104141, -0.0468934066593647, 0.0060683125630021095, -0.13400152325630188, 0.09627824276685715, 0.03918460011482239, 0.004029831849038601, 0.05365770682692528, 0.0660320296883583, -0.015169353224337101, 0.02068176120519638, -0.033144112676382065, 0.014041612856090069, -0.03642529621720314, 0.06247735023498535, -0.0028707392048090696, -4.804407538472333e-8, 0.025017879903316498, -0.07565294951200485, -0.03963002935051918, 0.0489770844578743, 0.09849511086940765, -0.06268543004989624, 0.06984048336744308, 0.04662467539310455, -0.058582667261362076, 0.005881422199308872, -0.030797041952610016, 0.08127464354038239, -0.06308140605688095, -0.004892594646662474, 0.09610195457935333, -0.08553490042686462, 0.03362354636192322, 0.01559322327375412, 0.0184126328676939, -0.02280300483107567, -0.08413407951593399, -0.05499845743179321, -0.07097641378641129, -0.029087407514452934, -0.024250181391835213, 0.007692406885325909, 0.13154272735118866, 0.025354091078042984, 0.033189043402671814, 0.007323084399104118, -0.14555992186069489, -0.07985199242830276, -0.04658978804945946, 0.0368538498878479, 0.011047816835343838, 0.0696386769413948, -0.01819075271487236, 0.01542208343744278, -0.015998374670743942, 0.05154040828347206, -0.034740135073661804, 0.07250126451253891, 0.048907570540905, 0.014589887112379074, 0.12737590074539185, -0.0051678940653800964, 0.01918957009911537, 0.07304675132036209, -0.01994122564792633, -0.06562017649412155, -0.047466009855270386, -0.07885453850030899, -0.03790539503097534, 0.006883005145937204, -0.0898650512099266, -0.033882271498441696, -0.06040213257074356, -0.030771879479289055, -0.049147866666316986, 0.03850356489419937, 0.009452123194932938, 0.00624138955026865, -0.0042033069767057896, 0.020529460161924362 ]
0.014506
a snapshot: ```shell export ETCDCTL\_API=3 etcdctl --write-out=table snapshot status snapshot.db ``` This should generate an output resembling the example provided below: ```console Deprecated: Use `etcdutl snapshot status` instead. +----------+----------+------------+------------+ | HASH | REVISION | TOTAL KEYS | TOTAL SIZE | +----------+----------+------------+------------+ | fe01cf57 | 10 | 7 | 2.1 MB | +----------+----------+------------+------------+ ``` {{% /tab %}} {{< /tabs >}} ### Volume snapshot If etcd is running on a storage volume that supports backup, such as Amazon Elastic Block Store, back up etcd data by creating a snapshot of the storage volume. ### Snapshot using etcdctl options We can also create the snapshot using various options given by etcdctl. For example: ```shell ETCDCTL\_API=3 etcdctl -h ``` will list various options available from etcdctl. For example, you can create a snapshot by specifying the endpoint, certificates and key as shown below: ```shell ETCDCTL\_API=3 etcdctl --endpoints=https://127.0.0.1:2379 \ --cacert= --cert= --key= \ snapshot save ``` where `trusted-ca-file`, `cert-file` and `key-file` can be obtained from the description of the etcd Pod. ## Scaling out etcd clusters Scaling out etcd clusters increases availability by trading off performance. Scaling does not increase cluster performance nor capability. A general rule is not to scale out or in etcd clusters. Do not configure any auto scaling groups for etcd clusters. It is strongly recommended to always run a static five-member etcd cluster for production Kubernetes clusters at any officially supported scale. A reasonable scaling is to upgrade a three-member cluster to a five-member one, when more reliability is desired. See [etcd reconfiguration documentation](https://etcd.io/docs/current/op-guide/runtime-configuration/#remove-a-member) for information on how to add members into an existing cluster. ## Restoring an etcd cluster {{< caution >}} If any API servers are running in your cluster, you should not attempt to restore instances of etcd. Instead, follow these steps to restore etcd: - stop \*all\* API server instances - restore state in all etcd instances - restart all API server instances The Kubernetes project also recommends restarting Kubernetes components (`kube-scheduler`, `kube-controller-manager`, `kubelet`) to ensure that they don't rely on some stale data. In practice the restore takes a bit of time. During the restoration, critical components will lose leader lock and restart themselves. {{< /caution >}} etcd supports restoring from snapshots that are taken from an etcd process of the [major.minor](https://semver.org/) version. Restoring a version from a different patch version of etcd is also supported. A restore operation is employed to recover the data of a failed cluster. Before starting the restore operation, a snapshot file must be present. It can either be a snapshot file from a previous backup operation, or from a remaining [data directory](https://etcd.io/docs/current/op-guide/configuration/#--data-dir). {{< tabs name="etcd\_restore" >}} {{% tab name="Use etcdutl" %}} When restoring the cluster using [`etcdutl`](https://github.com/etcd-io/etcd/blob/main/etcdutl/README.md), use the `--data-dir` option to specify to which folder the cluster should be restored: ```shell etcdutl --data-dir snapshot restore snapshot.db ``` where `` is a directory that will be created during the restore process. {{% /tab %}} {{% tab name="Use etcdctl (Deprecated)" %}} {{< note >}} The usage of `etcdctl` for restoring has been \*\*deprecated\*\* since etcd v3.5.x and is slated for removal from etcd v3.6. It is recommended to utilize [`etcdutl`](https://github.com/etcd-io/etcd/blob/main/etcdutl/README.md) instead. {{< /note >}} The below example depicts the usage of the `etcdctl` tool for the restore operation: ```shell export ETCDCTL\_API=3 etcdctl --data-dir snapshot restore snapshot.db ``` If `` is the same folder as before, delete it and stop the etcd process before restoring the cluster. Otherwise, change etcd configuration and restart the etcd process after restoration to have it use the new data directory: first change `/etc/kubernetes/manifests/etcd.yaml`'s `volumes.hostPath.path` for `name: etcd-data` to ``, then execute `kubectl -n kube-system delete
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/configure-upgrade-etcd.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/configure-upgrade-etcd.md
[ -0.02256990224123001, 0.07110727578401566, -0.06661000847816467, -0.0105771254748106, -0.028410710394382477, -0.04660503938794136, -0.05004672706127167, 0.03014249913394451, -0.004624990280717611, 0.038690853863954544, 0.023045353591442108, -0.06796307116746902, 0.08975160121917725, -0.10627518594264984, -0.048282623291015625, 0.007000797428190708, -0.04879950359463692, 0.009490028955042362, -0.03287581726908684, -0.07273101806640625, 0.044531792402267456, 0.05116835981607437, -0.01852145977318287, -0.021539906039834023, 0.03933465853333473, -0.010070224292576313, -0.008490722626447678, 0.04778190329670906, 0.0036885312292724848, -0.05865182727575302, -0.05242753028869629, 0.030903223901987076, -0.07509279996156693, 0.0627962276339531, 0.043847013264894485, 0.04470333829522133, 0.027553755789995193, -0.011026004329323769, 0.018476450815796852, -0.025363991037011147, -0.0019290116615593433, -0.0007858180324546993, -0.06555891782045364, -0.04015900567173958, -0.0414859764277935, -0.08655703812837601, -0.15409746766090393, -0.05573313310742378, 0.009127589873969555, 0.018772056326270103, -0.03574807941913605, 0.07870454341173172, -0.032526735216379166, -0.023646200075745583, 0.09748335927724838, 0.050201863050460815, -0.08403144776821136, -0.00508365873247385, -0.055644236505031586, 0.012306529097259045, -0.042779870331287384, -0.011728833429515362, -0.008675523102283478, -0.039682090282440186, 0.0029719381127506495, 0.058387041091918945, 0.0032175900414586067, 0.010325443930923939, 0.04846576973795891, -0.02596687339246273, -0.07654696702957153, -0.016177916899323463, -0.10375542938709259, -0.04666143283247948, -0.06602823734283447, -0.04922608658671379, -0.011445044539868832, 0.05755668506026268, -0.1138361468911171, -0.04837120324373245, -0.039767999202013016, 0.0009227817063219845, -0.0795324444770813, 0.03816429525613785, -0.07035910338163376, 0.06692477315664291, 0.0166024137288332, -0.024066239595413208, 0.015184396877884865, -0.0007276837714016438, -0.08125405758619308, -0.03119518607854843, 0.04428566247224808, -0.007949822582304478, -0.023696770891547203, 0.06190120428800583, 0.051680829375982285, 0.026484480127692223, 0.013130114413797855, 0.07623012363910675, 0.001290951739065349, 0.08814610540866852, 0.011422351002693176, -0.08294197916984558, -0.0031964448280632496, -0.013162427581846714, 0.027136201038956642, 0.024298381060361862, -0.06532295793294907, 0.02089846134185791, 0.040902167558670044, 0.100694939494133, -0.058505088090896606, -0.09823231399059296, 0.012031706050038338, 0.0006064017070457339, -0.02939935028553009, -0.034997157752513885, -0.0005084646982140839, -0.04661891609430313, 0.14411813020706177, 0.0016356495907530189, -0.06483189761638641, 0.10567419230937958, -0.06485714763402939, -0.01957002468407154, 0.10269742459058762, 2.7316538127171566e-33, 0.02862543798983097, -0.06581449508666992, 0.0677238255739212, -0.0029602227732539177, 0.061025772243738174, 0.0930681973695755, 0.04430598020553589, 0.0007529009599238634, 0.00154656742233783, -0.004846435971558094, -0.03203451633453369, 0.02165941521525383, -0.08679579943418503, -0.019623922184109688, -0.014186938293278217, -0.05820894241333008, 0.031878456473350525, 0.03402605652809143, 0.022531943395733833, 0.01411096379160881, 0.007240622770041227, -0.007301415782421827, -0.02119605988264084, 0.0066862888634204865, 0.10224013775587082, 0.01867591217160225, -0.0014035747153684497, -0.019348086789250374, -0.0504610650241375, -0.003983262926340103, 0.08268914371728897, -0.026871735230088234, -0.01088687777519226, -0.11961120367050171, 0.057247310876846313, -0.04035910218954086, 0.014261347241699696, 0.007277723401784897, -0.020247120410203934, 0.050874013453722, -0.02895870804786682, 0.014850066974759102, -0.0964839830994606, -0.07523030042648315, -0.022747308015823364, -0.051928360015153885, -0.03295978158712387, 0.0891866460442543, -0.029689032584428787, 0.008595675230026245, 0.0069908080622553825, 0.050348419696092606, 0.023612432181835175, -0.02606849931180477, 0.010532225482165813, -0.09581823647022247, 0.02645103633403778, -0.024005023762583733, 0.03500576689839363, 0.11304053664207458, -0.07599044591188431, 0.026872696354985237, -0.004847599193453789, 0.06694354116916656, 0.02542528137564659, 0.02839680016040802, -0.036790553480386734, 0.03267921507358551, 0.07745631784200668, 0.011094609275460243, -0.038616880774497986, 0.0070363599807024, 0.02085922658443451, 0.0005880641401745379, 0.05241943895816803, -0.06974707543849945, -0.06715743243694305, 0.0035910732112824917, 0.006894541438668966, -0.020562615245580673, 0.07234293967485428, -0.000031148112611845136, -0.06876301765441895, -0.017622988671064377, 0.03678903356194496, 0.04960710182785988, -0.02407415769994259, -0.03561222553253174, -0.08224458992481232, -0.04805391654372215, -0.06314456462860107, -0.0026686848141252995, 0.05653911083936691, -0.13788507878780365, -0.020644308999180794, -7.049192768067586e-33, 0.07079792022705078, -0.012085165828466415, -0.023913946002721786, 0.01638779230415821, 0.022001808509230614, -0.021086329594254494, 0.06237509846687317, 0.06941431760787964, -0.05027087777853012, 0.035667456686496735, -0.046471837908029556, 0.00538204750046134, -0.005733319092541933, -0.08448813110589981, 0.019118845462799072, 0.06689231097698212, -0.023494629189372063, -0.06438630819320679, -0.02762911655008793, 0.06218534708023071, -0.011135627515614033, 0.023532096296548843, 0.0715562030673027, 0.16040247678756714, 0.03431369736790657, 0.019463736563920975, 0.03133798763155937, 0.007650398649275303, -0.05023568496108055, -0.06556186079978943, 0.062080513685941696, -0.019952449947595596, -0.014813360758125782, 0.05567421764135361, -0.044588714838027954, -0.09875673800706863, 0.0635993480682373, 0.10857542604207993, -0.021774446591734886, 0.06691931933164597, -0.04892684519290924, -0.03766610473394394, -0.05920788273215294, -0.017173953354358673, -0.01633225940167904, 0.01901373825967312, 0.07904460281133652, 0.010351443663239479, -0.009526820853352547, -0.08002116531133652, 0.07419279962778091, -0.026265745982527733, -0.048994261771440506, 0.0639202892780304, 0.035996366292238235, -0.07844772934913635, 0.008088170550763607, -0.029054516926407814, -0.02964594028890133, -0.031840529292821884, 0.014582383446395397, -0.031481701880693436, 0.02510138973593712, 0.025543441995978355, 0.004541047848761082, -0.0861346423625946, -0.046798527240753174, -0.0518086738884449, -0.10592029988765717, -0.0185583233833313, -0.004231563303619623, -0.10053062438964844, 0.026225190609693527, -0.019909147173166275, 0.03751380741596222, 0.012011540122330189, -0.022931775078177452, -0.03279370814561844, 0.0519370473921299, 0.09330133348703384, -0.10877396166324615, -0.023158535361289978, 0.04083464667201042, -0.001598943374119699, -0.05562884360551834, -0.05847954377532005, -0.0034762972500175238, 0.056314561516046524, -0.01192084513604641, 0.049219995737075806, -0.07066213339567184, 0.013680564239621162, -0.11588490754365921, 0.009467307478189468, 0.10697434097528458, -4.8193513180194714e-8, -0.006892368663102388, -0.04253489151597023, -0.067843958735466, 0.04895855486392975, 0.03899376839399338, -0.014686903916299343, 0.02742261253297329, 0.034901391714811325, -0.030664807185530663, -0.10228563845157623, 0.03927875682711601, 0.0160386823117733, -0.08276105672121048, -0.007028741296380758, -0.007235079538077116, 0.010044638067483902, 0.0661155954003334, -0.005248908884823322, -0.008997071534395218, -0.008666482754051685, -0.04457525536417961, 0.012418972328305244, -0.014908446930348873, -0.05685529112815857, -0.014052484184503555, -0.02518473006784916, 0.017245745286345482, 0.09447574615478516, 0.06317967176437378, -0.05525711178779602, 0.037195514887571335, -0.03093813546001911, 0.02790376916527748, -0.09623349457979202, 0.012655943632125854, -0.010121772065758705, 0.06731925904750824, 0.04448459669947624, 0.042731259018182755, -0.00850306823849678, -0.07366400957107544, 0.019658472388982773, -0.011147181503474712, 0.043134190142154694, -0.03362575173377991, -0.048801030963659286, -0.018762048333883286, 0.03679801523685455, 0.007477606181055307, -0.05373667925596237, 0.007748107425868511, -0.09197813272476196, 0.04535185918211937, -0.038683995604515076, -0.06448264420032501, 0.05047108232975006, -0.0011820304207503796, -0.04181230068206787, 0.052211061120033264, 0.02432410977780819, 0.08771448582410812, -0.022263778373599052, 0.0009790604235604405, 0.0763741135597229 ]
-0.039989
the same folder as before, delete it and stop the etcd process before restoring the cluster. Otherwise, change etcd configuration and restart the etcd process after restoration to have it use the new data directory: first change `/etc/kubernetes/manifests/etcd.yaml`'s `volumes.hostPath.path` for `name: etcd-data` to ``, then execute `kubectl -n kube-system delete pod ` or `systemctl restart kubelet.service` (or both). {{% /tab %}} {{< /tabs >}} For more information and examples on restoring a cluster from a snapshot file, see [etcd disaster recovery documentation](https://etcd.io/docs/current/op-guide/recovery/#restoring-a-cluster). If the access URLs of the restored cluster are changed from the previous cluster, the Kubernetes API server must be reconfigured accordingly. In this case, restart Kubernetes API servers with the flag `--etcd-servers=$NEW\_ETCD\_CLUSTER` instead of the flag `--etcd-servers=$OLD\_ETCD\_CLUSTER`. Replace `$NEW\_ETCD\_CLUSTER` and `$OLD\_ETCD\_CLUSTER` with the respective IP addresses. If a load balancer is used in front of an etcd cluster, you might need to update the load balancer instead. If the majority of etcd members have permanently failed, the etcd cluster is considered failed. In this scenario, Kubernetes cannot make any changes to its current state. Although the scheduled pods might continue to run, no new pods can be scheduled. In such cases, recover the etcd cluster and potentially reconfigure Kubernetes API servers to fix the issue. ## Upgrading etcd clusters {{< caution >}} Before you start an upgrade, back up your etcd cluster first. {{< /caution >}} For details on etcd upgrade, refer to the [etcd upgrades](https://etcd.io/docs/latest/upgrades/) documentation. ## Maintaining etcd clusters For more details on etcd maintenance, please refer to the [etcd maintenance](https://etcd.io/docs/latest/op-guide/maintenance/) documentation. ### Cluster defragmentation {{% thirdparty-content single="true" %}} Defragmentation is an expensive operation, so it should be executed as infrequently as possible. On the other hand, it's also necessary to make sure any etcd member will not exceed the storage quota. The Kubernetes project recommends that when you perform defragmentation, you use a tool such as [etcd-defrag](https://github.com/ahrtr/etcd-defrag). You can also run the defragmentation tool as a Kubernetes CronJob, to make sure that defragmentation happens regularly. See [`etcd-defrag-cronjob.yaml`](https://github.com/ahrtr/etcd-defrag/blob/main/doc/etcd-defrag-cronjob.yaml) for details.
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/configure-upgrade-etcd.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/configure-upgrade-etcd.md
[ -0.009695049375295639, 0.010170520283281803, 0.09450901299715042, -0.06785744428634644, -0.022980544716119766, 0.029674610123038292, -0.0710354819893837, -0.09017983078956604, 0.07445038855075836, -0.010360302403569221, 0.017969666048884392, 0.055931344628334045, 0.024856023490428925, -0.030227819457650185, -0.040685366839170456, 0.0060185957700014114, 0.011700116097927094, 0.1186835989356041, -0.041344430297613144, 0.03795551508665085, 0.018826397135853767, 0.05323673412203789, -0.0268273763358593, -0.018878431990742683, 0.0033778895158320665, -0.020003940910100937, 0.001880614785477519, 0.04245762526988983, 0.011234644800424576, -0.03812536969780922, 0.012564282864332199, -0.012097899802029133, -0.016479067504405975, -0.012460589408874512, 0.054200150072574615, 0.09148718416690826, 0.10025198012590408, -0.019685449078679085, -0.07286712527275085, 0.0583161935210228, 0.021648336201906204, 0.009691383689641953, -0.12462581694126129, -0.08567297458648682, -0.017727620899677277, 0.01927577704191208, -0.08866007626056671, -0.037983641028404236, 0.04025532677769661, -0.050206854939460754, 0.07428763061761856, -0.014800727367401123, 0.0305374376475811, -0.024607138708233833, 0.06598005443811417, 0.0686429962515831, 0.014035285450518131, 0.03734631836414337, 0.009930949658155441, -0.027662552893161774, 0.0679880902171135, -0.0035585048608481884, 0.08534633368253708, 0.02525470405817032, -0.001622165204025805, 0.016788648441433907, 0.0017317424062639475, -0.0009096275898627937, 0.025515899062156677, -0.05789841338992119, 0.0803540050983429, 0.028551718220114708, 0.006991535425186157, 0.0040019904263317585, 0.037224240601062775, -0.021010154858231544, -0.003656279295682907, 0.07281232625246048, -0.042553480714559555, -0.03186992183327675, 0.056794747710227966, 0.03688054904341698, 0.09180335700511932, -0.008934909477829933, -0.1499311327934265, -0.011711237952113152, -0.05748904496431351, -0.0396592915058136, 0.05605452507734299, -0.021004877984523773, -0.02676466479897499, -0.05793473497033119, 0.04604469612240791, -0.07556262612342834, 0.047733355313539505, -0.0064370702020823956, 0.014109994284808636, 0.05938192829489708, 0.12953630089759827, -0.033388204872608185, 0.0076445951126515865, 0.046075236052274704, -0.06911757588386536, -0.02508789859712124, 0.013594669289886951, -0.02590317092835903, -0.026444701477885246, 0.019437968730926514, -0.005027612671256065, 0.04538988694548607, 0.015019807033240795, 0.032239701598882675, -0.030581748113036156, 0.06949976831674576, -0.011135301552712917, -0.020579686388373375, -0.02596902661025524, 0.04082471877336502, -0.06893519312143326, -0.022274089977145195, 0.04709542170166969, -0.0830141231417656, 0.06305605918169022, 0.11156247556209564, -0.07247107475996017, 0.06546194851398468, -0.028518658131361008, -4.424731091340463e-34, 0.028887545689940453, -0.05089320242404938, 0.03197138383984566, -0.025259269401431084, 0.006270482204854488, -0.03069126605987549, -0.017652710899710655, 0.0005629342631436884, 0.04579747095704079, -0.0806940346956253, 0.011641241610050201, 0.034311313182115555, -0.01567118428647518, -0.06072952598333359, 0.0024322785902768373, -0.057921070605516434, -0.015077819116413593, 0.01285830233246088, 0.03688175976276398, -0.0706142783164978, 0.024223553016781807, 0.0660567358136177, -0.01832098513841629, 0.04718291386961937, 0.038137536495923996, 0.01737816445529461, 0.0687650665640831, -0.03660832718014717, -0.008017453365027905, -0.05324559658765793, -0.0004506827681325376, -0.000812108744867146, -0.00984167493879795, -0.014501051977276802, -0.1602415144443512, 0.06253977864980698, 0.027921708300709724, 0.04045429453253746, -0.09861353784799576, 0.04752539098262787, 0.03280841186642647, 0.04436369612812996, -0.054172582924366, -0.0423831008374691, 0.10017247498035431, -0.07046033442020416, 0.04670973867177963, 0.009557097218930721, 0.051635827869176865, 0.016526954248547554, -0.06826447695493698, -0.018302733078598976, 0.05677694082260132, -0.07280036807060242, -0.042087290436029434, 0.020872365683317184, 0.040346093475818634, -0.13268370926380157, -0.05298091471195221, -0.01687953807413578, 0.027876710519194603, 0.03358178958296776, 0.06151825562119484, 0.06933153420686722, 0.011638358235359192, -0.015383758582174778, 0.02096087485551834, 0.0008835034677758813, 0.0014159245183691382, -0.005228347145020962, -0.09751474857330322, 0.007485790643841028, -0.06368720531463623, 0.024534082040190697, -0.046005044132471085, -0.09703582525253296, -0.025051768869161606, -0.0005305780214257538, -0.06777991354465485, -0.008734856732189655, 0.08111071586608887, -0.06336386501789093, -0.11709755659103394, 0.010530217550694942, 0.06429329514503479, -0.014016108587384224, -0.009795977734029293, -0.040557026863098145, -0.01040677446871996, -0.014532973058521748, 0.030032213777303696, -0.01273864135146141, 0.023373665288090706, 0.0395563580095768, -0.019367828965187073, -1.975239177339346e-33, 0.0919855609536171, -0.01891372725367546, 0.0001621328410692513, 0.031556952744722366, -0.014154602773487568, 0.04156801104545593, 0.019458254799246788, 0.17666856944561005, -0.06681421399116516, -0.04262974485754967, -0.051129281520843506, -0.018388453871011734, 0.05600428953766823, -0.05528830736875534, -0.08370453864336014, 0.1183544471859932, -0.0058668735437095165, -0.02480962499976158, -0.10289271175861359, 0.025687163695693016, -0.011487205512821674, -0.0360431894659996, 0.03858146816492081, 0.03745013475418091, -0.04162684828042984, 0.06346393376588821, 0.04768240079283714, -0.0572921447455883, -0.04192648082971573, -0.02713170275092125, 0.10468891263008118, -0.03567803278565407, -0.0034250530879944563, 0.07122623175382614, 0.011445755138993263, -0.026047177612781525, -0.016085771843791008, -0.04222859442234039, -0.05349697917699814, -0.02879263460636139, -0.048184748739004135, 0.042881179600954056, -0.0412493534386158, -0.0016945726238191128, -0.022843392565846443, 0.04771393910050392, 0.028274936601519585, -0.03068501502275467, 0.016610654070973396, -0.09279286861419678, 0.0015404567820951343, -0.044014427810907364, 0.002546177012845874, 0.04879336059093475, -0.006356853526085615, 0.062888965010643, 0.045371901243925095, 0.0372137650847435, -0.04091930389404297, -0.031910158693790436, 0.021200191229581833, -0.06174376234412193, -0.015028417110443115, 0.08138352632522583, -0.08523833751678467, -0.05384906753897667, -0.02585093304514885, -0.03091728873550892, -0.10457130521535873, -0.04156573489308357, -0.09807448834180832, 0.009170707315206528, 0.014450387097895145, 0.027798593044281006, 0.009032981470227242, -0.030308345332741737, 0.005378940608352423, -0.0026361814234405756, 0.009625990875065327, 0.07943150401115417, -0.032784100621938705, 0.009472940117120743, -0.11406689882278442, 0.004068453796207905, 0.026731599122285843, 0.041935306042432785, 0.051481056958436966, 0.05835406109690666, 0.013707984238862991, 0.08093026280403137, -0.03221381828188896, 0.007028384134173393, 0.018252287060022354, 0.04516834765672684, 0.052869245409965515, -4.342092196907288e-8, 0.027429530397057533, -0.017986109480261803, -0.0094415582716465, 0.05175677686929703, 0.05538331717252731, -0.08209593594074249, 0.05345914885401726, 0.08228196948766708, -0.06050439178943634, -0.0716203823685646, -0.05598384141921997, 0.14332173764705658, -0.07794668525457382, 0.011037210933864117, 0.000023979007892194204, -0.0682675838470459, 0.09142322093248367, 0.002493848791345954, 0.07304511219263077, 0.036322273313999176, -0.046452879905700684, -0.07234904915094376, 0.0038929814472794533, 0.024251209571957588, 0.06712454557418823, 0.05005226284265518, 0.09403907507658005, -0.03060860186815262, 0.015622861683368683, -0.009337813593447208, -0.08561109006404877, -0.052276547998189926, -0.024796735495328903, 0.018435165286064148, -0.019360048696398735, 0.01665729470551014, -0.0676184743642807, 0.04386257752776146, 0.04593248665332794, 0.03892503306269646, -0.04483592510223389, 0.0335712805390358, 0.022908665239810944, -0.024592911824584007, 0.017427783459424973, -0.06753314286470413, 0.010880531743168831, 0.06950615346431732, -0.04890017956495285, -0.04381497576832771, -0.0824844017624855, -0.04256606474518776, -0.019209392368793488, -0.004734942689538002, -0.01671507954597473, 0.03759598731994629, -0.09305894374847412, -0.024477249011397362, -0.019427670165896416, 0.060537613928318024, 0.02956283651292324, 0.002837853506207466, -0.022960761561989784, -0.06891985982656479 ]
0.040164
This page explains how to configure your DNS {{< glossary\_tooltip text="Pod(s)" term\_id="pod" >}} and customize the DNS resolution process in your cluster. ## {{% heading "prerequisites" %}} {{< include "task-tutorial-prereqs.md" >}} Your cluster must be running the CoreDNS add-on. {{% version-check %}} ## Introduction DNS is a built-in Kubernetes service launched automatically using the \_addon manager\_ [cluster add-on](https://github.com/kubernetes/kubernetes/blob/master/cluster/addons/addon-manager/README.md). {{< note >}} The CoreDNS Service is named `kube-dns` in the `metadata.name` field. The intent is to ensure greater interoperability with workloads that relied on the legacy `kube-dns` Service name to resolve addresses internal to the cluster. Using a Service named `kube-dns` abstracts away the implementation detail of which DNS provider is running behind that common name. {{< /note >}} If you are running CoreDNS as a Deployment, it will typically be exposed as a Kubernetes Service with a static IP address. The kubelet passes DNS resolver information to each container with the `--cluster-dns=` flag. DNS names also need domains. You configure the local domain in the kubelet with the flag `--cluster-domain=`. The DNS server supports forward lookups (A and AAAA records), port lookups (SRV records), reverse IP address lookups (PTR records), and more. For more information, see [DNS for Services and Pods](/docs/concepts/services-networking/dns-pod-service/). If a Pod's `dnsPolicy` is set to `default`, it inherits the name resolution configuration from the node that the Pod runs on. The Pod's DNS resolution should behave the same as the node. But see [Known issues](/docs/tasks/administer-cluster/dns-debugging-resolution/#known-issues). If you don't want this, or if you want a different DNS config for pods, you can use the kubelet's `--resolv-conf` flag. Set this flag to "" to prevent Pods from inheriting DNS. Set it to a valid file path to specify a file other than `/etc/resolv.conf` for DNS inheritance. ## CoreDNS CoreDNS is a general-purpose authoritative DNS server that can serve as cluster DNS, complying with the [DNS specifications](https://github.com/kubernetes/dns/blob/master/docs/specification.md). ### CoreDNS ConfigMap options CoreDNS is a DNS server that is modular and pluggable, with plugins adding new functionalities. The CoreDNS server can be configured by maintaining a [Corefile](https://coredns.io/2017/07/23/corefile-explained/), which is the CoreDNS configuration file. As a cluster administrator, you can modify the {{< glossary\_tooltip text="ConfigMap" term\_id="configmap" >}} for the CoreDNS Corefile to change how DNS service discovery behaves for that cluster. In Kubernetes, CoreDNS is installed with the following default Corefile configuration: ```yaml apiVersion: v1 kind: ConfigMap metadata: name: coredns namespace: kube-system data: Corefile: | .:53 { errors health { lameduck 5s } ready kubernetes cluster.local in-addr.arpa ip6.arpa { pods insecure fallthrough in-addr.arpa ip6.arpa ttl 30 } prometheus :9153 forward . /etc/resolv.conf cache 30 loop reload loadbalance } ``` The Corefile configuration includes the following [plugins](https://coredns.io/plugins/) of CoreDNS: \* [errors](https://coredns.io/plugins/errors/): Errors are logged to stdout. \* [health](https://coredns.io/plugins/health/): Health of CoreDNS is reported to `http://localhost:8080/health`. In this extended syntax `lameduck` will make the process unhealthy then wait for 5 seconds before the process is shut down. \* [ready](https://coredns.io/plugins/ready/): An HTTP endpoint on port 8181 will return 200 OK, when all plugins that are able to signal readiness have done so. \* [kubernetes](https://coredns.io/plugins/kubernetes/): CoreDNS will reply to DNS queries based on IP of the Services and Pods. You can find [more details](https://coredns.io/plugins/kubernetes/) about this plugin on the CoreDNS website. - `ttl` allows you to set a custom TTL for responses. The default is 5 seconds. The minimum TTL allowed is 0 seconds, and the maximum is capped at 3600 seconds. Setting TTL to 0 will prevent records from being cached. - The `pods insecure` option is provided for backward compatibility with `kube-dns`. - You can use the `pods verified` option, which returns an A record only if there exists a pod in the
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/dns-custom-nameservers.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/dns-custom-nameservers.md
[ -0.05804869905114174, -0.05015949159860611, 0.08200579136610031, -0.043363191187381744, -0.11108485609292984, -0.008168376050889492, -0.04025694727897644, -0.059979528188705444, 0.04687478393316269, 0.05780224874615669, -0.045711491256952286, -0.0704943910241127, -0.03372334688901901, -0.010576280765235424, -0.007407159544527531, -0.03254518657922745, 0.062165554612874985, -0.08794976770877838, -0.018500566482543945, -0.06900036334991455, 0.034783415496349335, 0.0732753723859787, 0.037980884313583374, 0.009600215591490269, -0.05995268374681473, -0.046369027346372604, -0.06523303687572479, 0.011319641955196857, 0.03984658792614937, 0.026532284915447235, 0.0024507041089236736, 0.0409255214035511, 0.016940198838710785, 0.07013014703989029, 0.08540405333042145, 0.05039272829890251, 0.0025973408482968807, 0.043251920491456985, -0.10245668143033981, 0.004927474539726973, 0.11072305589914322, -0.03091484308242798, -0.009550475515425205, 0.005225836765021086, 0.00029339297907426953, 0.05344272032380104, -0.006568816024810076, 0.011445565149188042, 0.021663397550582886, -0.01461675763130188, 0.042317479848861694, -0.1297263354063034, 0.047128643840551376, -0.024104151874780655, 0.08267197757959366, 0.08745984733104706, -0.03676779940724373, 0.01695120520889759, 0.04431920498609543, -0.008539595641195774, 0.01136634312570095, -0.015745118260383606, 0.03855374455451965, -0.08021722733974457, 0.0109319556504488, -0.008759516291320324, 0.05274837091565132, 0.044662754982709885, -0.023955831304192543, 0.02180175669491291, 0.07200195640325546, 0.041309647262096405, 0.0030599136371165514, -0.05703224241733551, -0.05254122242331505, 0.02998955175280571, -0.04365430772304535, 0.02737336792051792, -0.01770436391234398, -0.08467352390289307, 0.05231765657663345, 0.104823999106884, 0.10645970702171326, 0.048686400055885315, -0.09883135557174683, -0.07139219343662262, 0.027569584548473358, -0.11495517194271088, 0.04132923483848572, -0.04978518933057785, -0.015285693109035492, -0.1363641321659088, 0.015530846081674099, -0.1240934431552887, 0.017414677888154984, 0.044274259358644485, 0.019242359325289726, -0.0034050217363983393, 0.005621728952974081, -0.020414074882864952, 0.037609778344631195, -0.010596266947686672, -0.008167118765413761, -0.04802290350198746, 0.003881098236888647, 0.012371450662612915, -0.06300733983516693, 0.02128610387444496, 0.06638689339160919, 0.0971132293343544, 0.022089550271630287, 0.08910395950078964, 0.030717337504029274, -0.002640507882460952, -0.05273151770234108, -0.06814698129892349, 0.04585031792521477, -0.014789731241762638, 0.07792738080024719, -0.012573142535984516, -0.013439095579087734, -0.10091596841812134, -0.040978506207466125, -0.03316866233944893, -0.0465722419321537, 0.035402726382017136, -0.05707910284399986, 3.185557731975736e-33, 0.0771227553486824, -0.05076313391327858, 0.011188671924173832, -0.04016067087650299, -0.02973284386098385, -0.0911460742354393, -0.03448869660496712, 0.00911068357527256, -0.0759788453578949, -0.03413848951458931, -0.04795924201607704, 0.07128674536943436, 0.04793808236718178, -0.06955687701702118, -0.023445582017302513, 0.029252590611577034, -0.015525147318840027, 0.037992168217897415, 0.09059642255306244, 0.03780596703290939, 0.00399497477337718, -0.034978289157152176, 0.002257714979350567, -0.013680101372301579, 0.00019210127356927842, 0.0023631236981600523, 0.012697190977633, -0.09327597171068192, 0.025405945256352425, -0.018884534016251564, 0.003956246189773083, -0.058965589851140976, 0.027085427194833755, 0.03392291069030762, -0.11372198909521103, 0.0022706901654601097, 0.019011327996850014, -0.02211342193186283, -0.05445833131670952, -0.062174439430236816, 0.07396653294563293, 0.005127833690494299, -0.06315094232559204, -0.02513495460152626, 0.1049419566988945, 0.05794453248381615, 0.04954957962036133, -0.12523075938224792, 0.11241285502910614, 0.017329098656773567, 0.04293806850910187, -0.11458443850278854, 0.037165891379117966, -0.04057154431939125, 0.04563577473163605, 0.09159272164106369, 0.06684678792953491, -0.06492066383361816, -0.03404230251908302, -0.02164440043270588, -0.07408634573221207, -0.06822699308395386, -0.04876692593097687, 0.003389993915334344, 0.06279690563678741, -0.023457881063222885, 0.022408705204725266, 0.09169384092092514, 0.019530080258846283, -0.03573649749159813, -0.053973931819200516, 0.01927434653043747, -0.006420057266950607, 0.09151168167591095, -0.0035576694644987583, -0.03163386881351471, -0.021272694692015648, -0.009630637243390083, -0.1027749702334404, 0.02713845670223236, 0.02112424559891224, -0.026522282510995865, -0.08522867411375046, 0.09438395500183105, 0.03567968308925629, -0.015556362457573414, 0.0029460994992405176, -0.0025618940126150846, -0.04370507225394249, -0.0015118170995265245, 0.013080507516860962, -0.03501839563250542, -0.0778287798166275, 0.08028718084096909, -0.11117398738861084, -3.986753375661099e-33, 0.08388929814100266, -0.029900258406996727, -0.05059938505291939, 0.0493851900100708, -0.01251679752022028, 0.012460506521165371, 0.0496375598013401, 0.10139188170433044, 0.0054892259649932384, -0.09678371995687485, -0.01260301936417818, -0.04945690929889679, 0.04202660918235779, 0.021571416407823563, -0.03784436360001564, 0.07057569921016693, -0.05866280943155289, -0.0008765511447563767, -0.029624562710523605, 0.03719674050807953, -0.02552824839949608, -0.025730306282639503, -0.015842275694012642, 0.01139876525849104, -0.003197053913027048, 0.012626605108380318, 0.02985173650085926, 0.01097123697400093, -0.03635294735431671, -0.02036522887647152, 0.03126697614789009, -0.020070599392056465, -0.0443614199757576, -0.027577774599194527, 0.004483228083699942, -0.007963881827890873, -0.0007822555489838123, -0.03455960750579834, -0.00646283570677042, -0.023101774975657463, 0.024439861997961998, 0.022517405450344086, -0.06905533373355865, -0.039041828364133835, -0.007049169857054949, 0.008911652490496635, 0.03951350972056389, -0.001514750299975276, -0.03785064443945885, -0.04292390123009682, 0.04569870978593826, -0.08100840449333191, -0.05499072000384331, 0.0562751404941082, -0.024163370952010155, 0.07564031332731247, 0.05045361444354057, 0.018443912267684937, -0.02893730252981186, 0.06953638046979904, 0.05987558141350746, -0.15237188339233398, 0.027052627876400948, 0.07753238826990128, 0.0059577543288469315, -0.0037532595451921225, -0.009665830992162228, 0.0452207513153553, 0.004855392035096884, -0.014515898190438747, -0.046629954129457474, -0.017732396721839905, 0.04996460676193237, 0.025324054062366486, 0.00390517502091825, -0.0076931435614824295, 0.07795431464910507, -0.002263926435261965, 0.0034835797268897295, -0.0026842132210731506, -0.057700105011463165, 0.06627459079027176, -0.052949532866477966, 0.006112541537731886, 0.05446789041161537, 0.09161766618490219, 0.12830998003482819, 0.10154888778924942, 0.02737986110150814, 0.06690944731235504, 0.0008477515075355768, -0.00020719874009955674, -0.0001378373708575964, 0.07940113544464111, -0.09774000942707062, -5.1602366823999546e-8, 0.029169300571084023, 0.07418855279684067, -0.08512893319129944, 0.02152181975543499, 0.038490548729896545, 0.03518712893128395, 0.02350480668246746, 0.016877390444278717, -0.03900561109185219, 0.001313877641223371, -0.013055901974439621, 0.04549654945731163, -0.10414862632751465, 0.051790475845336914, 0.042878977954387665, 0.004791971296072006, 0.022869527339935303, 0.03919106721878052, -0.008662763983011246, -0.04758971184492111, -0.069333016872406, -0.009914372116327286, -0.00631421385332942, -0.04337426275014877, -0.01276261918246746, 0.013957719318568707, 0.06684781610965729, -0.014393825083971024, 0.04027436673641205, 0.02353336103260517, -0.033011388033628464, 0.0013563534012064338, -0.08210644125938416, 0.07971762865781784, -0.013918675482273102, 0.02425539866089821, -0.07792738825082779, 0.05060318857431412, 0.06204066425561905, 0.05474298447370529, 0.0015974420821294188, 0.03729049116373062, -0.07264471054077148, -0.005029070656746626, 0.021458767354488373, 0.07914721220731735, -0.02198849245905876, 0.0656842440366745, -0.0008588938508182764, -0.023651141673326492, -0.055702727288007736, -0.024727288633584976, 0.0009789039613679051, 0.04246991500258446, -0.024962294846773148, -0.00824524462223053, -0.031436461955308914, -0.04311715438961983, 0.02449658140540123, 0.0024785823188722134, 0.011549122631549835, -0.005467983428388834, -0.018078632652759552, 0.057287927716970444 ]
0.120153
the maximum is capped at 3600 seconds. Setting TTL to 0 will prevent records from being cached. - The `pods insecure` option is provided for backward compatibility with `kube-dns`. - You can use the `pods verified` option, which returns an A record only if there exists a pod in the same namespace with a matching IP. - The `pods disabled` option can be used if you don't use pod records. \* [prometheus](https://coredns.io/plugins/metrics/): Metrics of CoreDNS are available at `http://localhost:9153/metrics` in the [Prometheus](https://prometheus.io/) format (also known as OpenMetrics). \* [forward](https://coredns.io/plugins/forward/): Any queries that are not within the Kubernetes cluster domain are forwarded to predefined resolvers (/etc/resolv.conf). \* [cache](https://coredns.io/plugins/cache/): This enables a frontend cache. \* [loop](https://coredns.io/plugins/loop/): Detects simple forwarding loops and halts the CoreDNS process if a loop is found. \* [reload](https://coredns.io/plugins/reload): Allows automatic reload of a changed Corefile. After you edit the ConfigMap configuration, allow two minutes for your changes to take effect. \* [loadbalance](https://coredns.io/plugins/loadbalance): This is a round-robin DNS loadbalancer that randomizes the order of A, AAAA, and MX records in the answer. You can modify the default CoreDNS behavior by modifying the ConfigMap. ### Configuration of Stub-domain and upstream nameserver using CoreDNS CoreDNS has the ability to configure stub-domains and upstream nameservers using the [forward plugin](https://coredns.io/plugins/forward/). #### Example If a cluster operator has a [Consul](https://www.consul.io/) domain server located at "10.150.0.1", and all Consul names have the suffix ".consul.local". To configure it in CoreDNS, the cluster administrator creates the following stanza in the CoreDNS ConfigMap. ``` consul.local:53 { errors cache 30 forward . 10.150.0.1 } ``` To explicitly force all non-cluster DNS lookups to go through a specific nameserver at 172.16.0.1, point the `forward` to the nameserver instead of `/etc/resolv.conf` ``` forward . 172.16.0.1 ``` The final ConfigMap along with the default `Corefile` configuration looks like: ```yaml apiVersion: v1 kind: ConfigMap metadata: name: coredns namespace: kube-system data: Corefile: | .:53 { errors health kubernetes cluster.local in-addr.arpa ip6.arpa { pods insecure fallthrough in-addr.arpa ip6.arpa } prometheus :9153 forward . 172.16.0.1 cache 30 loop reload loadbalance } consul.local:53 { errors cache 30 forward . 10.150.0.1 } ``` {{< note >}} CoreDNS does not support FQDNs for stub-domains and nameservers (eg: "ns.foo.com"). During translation, all FQDN nameservers will be omitted from the CoreDNS config. {{< /note >}} ## {{% heading "whatsnext" %}} - Read [Debugging DNS Resolution](/docs/tasks/administer-cluster/dns-debugging-resolution/)
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/dns-custom-nameservers.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/dns-custom-nameservers.md
[ -0.024203432723879814, -0.0035770023241639137, 0.019448168575763702, 0.005346985068172216, -0.06145944818854332, -0.06758057326078415, -0.04955601319670677, -0.0390300415456295, 0.09116021543741226, 0.044835470616817474, -0.013054396957159042, -0.014317670837044716, -0.008686846122145653, -0.05541197955608368, -0.02846299111843109, -0.05691412091255188, 0.048616573214530945, -0.01988467201590538, -0.025386042892932892, -0.07859953492879868, 0.04972223937511444, 0.06126359850168228, 0.02478238195180893, 0.019409051164984703, -0.047995876520872116, -0.01088041253387928, -0.04626081511378288, -0.0145160723477602, 0.026539791375398636, -0.004973485600203276, -0.065918929874897, -0.01501445472240448, 0.0040997108444571495, 0.07576068490743637, 0.031161753460764885, 0.06184690073132515, 0.014641956426203251, -0.038993798196315765, -0.08129799365997314, -0.02636328898370266, 0.06725185364484787, -0.06122424453496933, -0.053108323365449905, 0.024605026468634605, 0.0077500008046627045, 0.034557729959487915, -0.01152399554848671, -0.007959642447531223, -0.03570353239774704, -0.016567237675189972, 0.016118813306093216, -0.015872765332460403, 0.0630020946264267, 0.057141054421663284, 0.05312563478946686, 0.044121261686086655, -0.02667314186692238, 0.030371887609362602, 0.027124613523483276, 0.02614014782011509, 0.025071624666452408, -0.04989155754446983, -0.006787498947232962, -0.052105747163295746, -0.029340073466300964, -0.01657809130847454, 0.05735049024224281, 0.02737731859087944, 0.06182502210140228, 0.04622940719127655, 0.06532137840986252, 0.02302711270749569, -0.058946650475263596, -0.04607487842440605, -0.01709371618926525, 0.040728673338890076, -0.02429123781621456, 0.0068258619867265224, 0.023485751822590828, -0.09590142220258713, 0.04296816512942314, 0.0414334274828434, 0.1085619181394577, -0.02625834010541439, -0.08581651002168655, -0.023861000314354897, 0.031952448189258575, 0.0018541616154834628, 0.025088705122470856, -0.03934098780155182, 0.01865716278553009, -0.00779774971306324, 0.004509684629738331, -0.12775249779224396, -0.008061992935836315, 0.04125857725739479, -0.0032909782603383064, 0.04229077324271202, 0.026972675696015358, -0.0007859250181354582, 0.05110577866435051, 0.016304422169923782, -0.1019841656088829, 0.077849380671978, 0.01701311208307743, -0.0352940708398819, -0.02256922982633114, -0.004379601217806339, 0.04631926119327545, 0.13204370439052582, 0.025028150528669357, 0.027837885543704033, 0.06608977913856506, 0.03171702101826668, -0.018133053556084633, -0.010977748781442642, -0.05045417696237564, 0.023628585040569305, 0.06764597445726395, 0.018731538206338882, 0.0319087989628315, -0.05923405662178993, 0.008176542818546295, -0.02462097443640232, -0.03685270622372627, 0.09673329442739487, 0.06527410447597504, 2.4365105074417043e-33, 0.09277641773223877, -0.03130103275179863, 0.026687385514378548, -0.08170674741268158, -0.053167663514614105, -0.03742241486907005, -0.04723386839032173, 0.044011007994413376, -0.03702528029680252, 0.019080571830272675, -0.07346951961517334, 0.0527973473072052, 0.009268530644476414, -0.05576198920607567, 0.048410605639219284, 0.08113449066877365, -0.012370077893137932, 0.05428418889641762, 0.11082150787115097, 0.02028205804526806, 0.051567643880844116, -0.11090527474880219, -0.0142102912068367, 0.009242383763194084, 0.014215745963156223, -0.021411772817373276, 0.010002278722822666, -0.051574502140283585, -0.023677757009863853, 0.0029711720999330282, -0.05284625291824341, -0.0493551604449749, 0.026263205334544182, 0.037352900952100754, -0.07689414173364639, 0.04309235140681267, 0.01930813118815422, 0.031916696578264236, -0.09724437445402145, -0.052366744726896286, 0.02529057487845421, 0.040366578847169876, -0.03150477260351181, -0.01781570352613926, -0.011214456520974636, -0.040208231657743454, 0.0146412905305624, -0.061348870396614075, 0.048359476029872894, 0.06084221228957176, 0.008439124561846256, -0.014054059982299805, -0.0064721121452748775, -0.07889392971992493, 0.04862060397863388, 0.05964474752545357, 0.13720576465129852, -0.03827911242842674, -0.03455336391925812, 0.07615134119987488, -0.028411632403731346, -0.08191956579685211, 0.024447286501526833, -0.029782449826598167, 0.03555649518966675, 0.09658970683813095, -0.02644924446940422, 0.07781295478343964, 0.0009853541851043701, 0.0363115519285202, -0.014541198499500751, 0.024308091029524803, 0.01891511119902134, -0.019425442442297935, -0.028803730383515358, -0.05624793469905853, 0.02968715690076351, 0.022232988849282265, -0.10523799806833267, 0.042119160294532776, 0.008897594176232815, -0.02335914969444275, -0.08183015882968903, 0.0947209820151329, 0.006399701815098524, -0.012154057621955872, 0.0316874161362648, 0.03153356537222862, -0.048546452075242996, 0.07233139127492905, -0.03611708804965019, 0.019539209082722664, -0.021429328247904778, 0.014920179732143879, -0.15247628092765808, -1.4797142173605148e-33, 0.023105833679437637, -0.030872808769345284, -0.036514610052108765, 0.07936650514602661, -0.010179899632930756, -0.03071942739188671, 0.0017524079885333776, 0.16469064354896545, -0.028179651126265526, -0.09508468955755234, 0.018996035680174828, -0.07875967025756836, 0.104885533452034, -0.009307561442255974, -0.04247496277093887, 0.059202175587415695, -0.03756914660334587, -0.07236281782388687, -0.059227488934993744, 0.03350319340825081, -0.017116818577051163, -0.04053620249032974, -0.02472231537103653, 0.06514118611812592, -0.007579081691801548, 0.019146041944622993, -0.027612652629613876, -0.010709148831665516, -0.07119917124509811, -0.07708637416362762, 0.044763799756765366, -0.08512183278799057, -0.07593900710344315, -0.013819747604429722, -0.003706337884068489, -0.031784310936927795, -0.0012540315510705113, 0.079632468521595, -0.005276306997984648, 0.027531912550330162, 0.006420525256544352, 0.09073261171579361, -0.09435247629880905, 0.016994014382362366, -0.03443729877471924, -0.02982073463499546, -0.0527198500931263, -0.01418088749051094, -0.03171461075544357, -0.04406603425741196, 0.026996660977602005, -0.02789095789194107, -0.031674131751060486, 0.1018284410238266, 0.020557045936584473, 0.013398636132478714, -0.025174111127853394, 0.04254359379410744, 0.009920097887516022, 0.04090287536382675, 0.09450165927410126, -0.11935551464557648, -0.03375968709588051, 0.09227676689624786, 0.06422695517539978, 0.006513996049761772, 0.020631397143006325, 0.04591960087418556, -0.04957013949751854, 0.06142081692814827, 0.04780459403991699, -0.04990759864449501, 0.016295913606882095, 0.037341777235269547, -0.013619066216051579, 0.006561337038874626, 0.0035048816353082657, -0.03995300084352493, -0.03391045704483986, 0.033951882272958755, -0.08707024902105331, 0.08466648310422897, -0.0693952888250351, -0.016489356756210327, 0.037397004663944244, 0.09306666254997253, 0.05877568572759628, 0.03011244721710682, 0.051382195204496384, 0.07353091239929199, -0.002312938217073679, -0.01435489859431982, -0.10221833735704422, 0.029549188911914825, -0.052895572036504745, -4.5126263614747586e-8, 0.00813035387545824, 0.0008089432958513498, -0.027793822810053825, 0.06487488746643066, 0.03964902088046074, 0.0286303348839283, 0.06151018664240837, 0.049714457243680954, -0.03415897116065025, 0.0014563471777364612, 0.059068113565444946, -0.004860310349613428, -0.07807902991771698, 0.018330786377191544, 0.04599546641111374, -0.012972351163625717, 0.06572194397449493, 0.004394530784338713, -0.03317130729556084, -0.10523134469985962, -0.11886188387870789, 0.04096478223800659, -0.048841506242752075, -0.12503844499588013, -0.03311322629451752, 0.02827225998044014, 0.1504834145307541, 0.012700974941253662, 0.051315877586603165, -0.025573713704943657, -0.08300293982028961, -0.018254416063427925, -0.029860934242606163, 0.001824339502491057, 0.012526060454547405, 0.03365479037165642, -0.10790135711431503, 0.07353682816028595, -0.042004816234111786, 0.092311792075634, -0.024190817028284073, -0.00965906959027052, -0.0604262575507164, 0.030085546895861626, 0.009177875705063343, 0.05872753635048866, 0.010157758370041847, 0.08538644760847092, 0.02959347702562809, 0.02864368073642254, -0.0032237994018942118, -0.09891807287931442, 0.004368550144135952, 0.02992587722837925, -0.049597129225730896, -0.008355686441063881, 0.021221214905381203, -0.0422818660736084, -0.006649446208029985, 0.011613874696195126, 0.05061371996998787, -0.05485023558139801, -0.026080936193466187, 0.021655533462762833 ]
0.199136
{{< feature-state feature\_gate\_name="MemoryManager" >}} The Kubernetes \*Memory Manager\* enables the feature of guaranteed memory (and hugepages) allocation for pods in the `Guaranteed` {{< glossary\_tooltip text="QoS class" term\_id="qos-class" >}}. The Memory Manager employs a hint generation protocol to yield the most suitable NUMA affinity for a pod. The Memory Manager feeds the central manager (\*Topology Manager\*) with these affinity hints. Based on both the hints and Topology Manager policy, the pod is rejected or admitted to the node. Moreover, the Memory Manager ensures that the memory which a pod requests is allocated from a minimum number of NUMA nodes. For background about memory resources for Pods, read [Assign Memory Resources to Containers and Pods](/docs/tasks/configure-pod-container/assign-memory-resource/). ## {{% heading "prerequisites" %}} {{< include "task-tutorial-prereqs.md" >}} {{< version-check >}} If you are running an older version of Kubernetes, check the documentation for the version of Kubernetes you are running. ### Resource alignment prerequisites To align memory resources with other requested resources in a Pod spec: - the CPU Manager should be enabled and proper CPU Manager policy should be configured on a Node. See [control CPU Management Policies](/docs/tasks/administer-cluster/cpu-management-policies/); - the Topology Manager should be enabled and proper Topology Manager policy should be configured on a Node. See [control Topology Management Policies](/docs/tasks/administer-cluster/topology-manager/). ### Windows support {{< feature-state feature\_gate\_name="WindowsCPUAndMemoryAffinity" >}} Windows support can be enabled via the `WindowsCPUAndMemoryAffinity` feature gate and it requires support in the container runtime. Only the [None](#policy-none) and [BestEffort](#policy-best-effort) policies are supported on Windows. ## How does the Memory Manager operate? For Linux nodes, the Memory Manager offers the guaranteed memory (and hugepages) allocation for Pods in Guaranteed QoS class. To immediately put the Memory Manager into operation follow the guidelines in the section [Memory Manager configuration](#memory-manager-configuration), and subsequently, prepare and deploy a `Guaranteed` Pod as illustrated in the section [Placing a Pod in the Guaranteed QoS class](#placing-a-pod-in-the-guaranteed-qos-class). The Memory Manager is a hint provider, and it provides topology hints for the Topology Manager which then aligns the requested resources according to these topology hints. On Linux, it also enforces `cgroups` (specifically, `cpuset.mems`) for Pods. The complete flow diagram concerning pod admission and deployment process is illustrated below: ![Memory Manager in the pod admission and deployment process](/images/docs/memory-manager-diagram.svg) During this process, the Memory Manager updates its internal counters stored in [Node Map and Memory Maps][2] to manage guaranteed memory allocation. The memory manager activates during kubelet startup if a node administrator configures `reservedMemory` for the kubelet (section [Reserved memory configuration](#reserved-memory-flag)). In this case, the kubelet updates its node map to reflect this reservation. When the `Static` policy is configured, you \*\*must\*\* configure reserved memory for the node (for example, with the `reservedMemory` configuration field in the kubelet configuration). An important topic in the context of Memory Manager operation is the management of NUMA groups. Each time pod's memory request is in excess of single NUMA node capacity, the Memory Manager attempts to create a group that comprises several NUMA nodes and that features extended memory capacity. ## Memory Manager configuration Other Managers should already be configured (see [resource alignment prerequisites](#resource-alignment-prerequisites). Set the `memoryManagerPolicy` configuration field within the [kubelet configuration]({{< relref "/docs/reference/config-api/kubelet-config.v1beta1" >}}), to the name of your chosen [policy](#policies). Optionally, some amount of memory can be reserved for system or kubelet processes to increase node stability (section [Reserved memory configuration](#reserved-memory-flag)). ### Policies Kubernetes' memory manager provides three policies. You can select a policy via the `memoryManagerPolicy` configuration field in the kubelet configuration; the values available in Kubernetes {{< skew currentVersion >}} are: \* [`None`](#policy-none) (default) \* [`Static`](#policy-static) (Linux only) \* [`BestEffort`](#policy-best-effort) (Windows only) #### None policy {#policy-none} This is the default policy and
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/memory-manager.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/memory-manager.md
[ 0.026834797114133835, 0.02987411990761757, 0.017832688987255096, 0.0333281010389328, -0.02126353606581688, 0.00014580239076167345, 0.04419687017798424, -0.015904810279607773, 0.06762071698904037, 0.0647849515080452, -0.00522532919421792, -0.01451780553907156, 0.0003206431574653834, -0.03333297744393349, 0.02292672172188759, 0.04437023401260376, 0.0416521281003952, -0.011435151100158691, 0.00395161472260952, -0.041329190135002136, 0.09204648435115814, 0.03348245099186897, 0.026070384308695793, 0.003694431623443961, -0.06878595799207687, -0.0014511585468426347, -0.0460810661315918, -0.024580052122473717, 0.04126209393143654, -0.027763178572058678, -0.0234423466026783, 0.049301572144031525, 0.009249800816178322, 0.04499580338597298, 0.0792202427983284, 0.08711454272270203, -0.09743928164243698, -0.05600476637482643, -0.07599632441997528, -0.00918612815439701, 0.03248896077275276, -0.03302142024040222, -0.07931706309318542, 0.03999766707420349, 0.03262638300657272, 0.10168250650167465, -0.03040412813425064, -0.007394254673272371, -0.020407021045684814, -0.09216269105672836, -0.0016182985855266452, -0.07760652154684067, 0.02658894658088684, 0.04553304240107536, 0.06303916126489639, 0.0802568644285202, -0.021557167172431946, 0.009784388355910778, 0.004547340329736471, 0.07982190698385239, 0.02574591152369976, -0.08553724735975266, 0.00489592831581831, -0.01488270703703165, 0.04283684864640236, -0.0279421154409647, 0.0745556503534317, 0.04555646330118179, 0.02982368692755699, -0.007590374909341335, 0.0947888121008873, -0.031219497323036194, -0.0011588622583076358, -0.0543573796749115, -0.03439972922205925, 0.026207594200968742, -0.024508317932486534, 0.052806317806243896, -0.006909393239766359, -0.09016207605600357, -0.006134705152362585, 0.04499467462301254, 0.11925157159566879, -0.04917874187231064, -0.02251730114221573, 0.006933221593499184, -0.012465874664485455, -0.040179330855607986, 0.0025279487017542124, 0.014784331433475018, 0.010784059762954712, -0.07671768963336945, -0.001608095015399158, -0.10574305057525635, 0.05132610350847244, -0.0026556970551609993, -0.04423677921295166, -0.04329564794898033, -0.05298803374171257, -0.038649123162031174, 0.07867977023124695, 0.04206908866763115, 0.025488000363111496, -0.017749061807990074, 0.05428571626543999, -0.0227982010692358, -0.018759338185191154, -0.008237103000283241, 0.007611652370542288, 0.05944417789578438, 0.03543296456336975, 0.04744964838027954, 0.01304117776453495, 0.050237204879522324, -0.020741567015647888, -0.008756001479923725, -0.0012114751152694225, -0.001786067965440452, 0.04052760824561119, 0.07697803527116776, -0.04377942159771919, -0.09593222290277481, -0.005905698984861374, -0.012061172164976597, -0.11655731499195099, 0.05955886468291283, -0.1133943721652031, 3.762155710811315e-33, 0.03697230666875839, -0.05868254229426384, -0.08404531329870224, -0.020734693855047226, -0.019595015794038773, -0.08792147040367126, -0.006893261801451445, -0.018106665462255478, -0.07606145739555359, -0.017590515315532684, -0.019960524514317513, 0.014995881356298923, -0.031151633709669113, 0.03952716290950775, 0.050323840230703354, -0.041181910783052444, -0.08685682713985443, 0.08579409867525101, 0.059487707912921906, -0.008155482821166515, -0.010641374625265598, 0.0179301630705595, -0.052385419607162476, -0.03131822869181633, 0.08103706687688828, 0.011141144670546055, -0.01512887328863144, -0.08197317272424698, 0.019958799704909325, 0.015323991887271404, -0.06533020734786987, 0.028673697263002396, 0.04693061485886574, -0.011526214890182018, -0.04699529707431793, -0.02972518466413021, -0.038423001766204834, -0.02659521996974945, -0.06884364783763885, -0.12218339741230011, 0.03863884508609772, 0.0276498906314373, 0.028082823380827904, -0.08457284420728683, -0.02708384580910206, -0.043991412967443466, 0.03781382739543915, -0.054018281400203705, 0.04121553525328636, 0.015465869568288326, 0.002408468397334218, -0.05030640587210655, -0.00892386119812727, -0.004482658114284277, 0.06264863908290863, -0.051549170166254044, 0.07165481150150299, 0.004342734348028898, 0.009399107657372952, 0.07158760726451874, -0.05303396284580231, -0.03544524684548378, -0.004921378567814827, 0.009225287474691868, 0.0524006150662899, 0.060346417129039764, -0.005061739590018988, 0.08043359965085983, -0.020960919559001923, 0.047543715685606, -0.041668601334095, 0.02633228339254856, -0.0044704945757985115, 0.05697060748934746, -0.04582332447171211, -0.07880467921495438, 0.04537951946258545, 0.027219301089644432, -0.15857268869876862, 0.030946223065257072, 0.07831449061632156, -0.013413036242127419, 0.010263524949550629, 0.08179512619972229, -0.06683574616909027, -0.05689378082752228, 0.11202313750982285, -0.003831028239801526, -0.02554946579039097, 0.0565476231276989, 0.04888729378581047, -0.01911097951233387, -0.028293689712882042, 0.04190725088119507, -0.17401346564292908, -3.643274293692811e-33, 0.06500725448131561, -0.009199751541018486, -0.03832317143678665, 0.03954904526472092, -0.0396287776529789, -0.0017059077508747578, -0.026597417891025543, -0.024834098294377327, -0.04921235889196396, -0.14099140465259552, -0.039028581231832504, 0.010392584837973118, 0.08486410230398178, 0.05197368189692497, -0.07407189160585403, -0.04363266006112099, -0.053017936646938324, -0.05482197552919388, -0.04671790078282356, 0.01596192829310894, -0.01547176856547594, -0.018399057909846306, 0.0815928727388382, 0.007359927054494619, -0.005314761307090521, 0.008758630603551865, 0.018016602843999863, -0.00038230037898756564, -0.044626157730817795, -0.023224545642733574, -0.002829825272783637, -0.10479705035686493, -0.034742094576358795, -0.008120061829686165, 0.02541099116206169, -0.05662570521235466, 0.013130860403180122, 0.04588283598423004, 0.004201806616038084, 0.04625173285603523, 0.07841753959655762, 0.03574470803141594, -0.035884223878383636, -0.05064581707119942, -0.0631374642252922, 0.018194569274783134, -0.02345983497798443, -0.020483164116740227, -0.03297093138098717, -0.09768358618021011, 0.0282155629247427, -0.005717229098081589, -0.03704063221812248, 0.06328652054071426, -0.05835247039794922, 0.021710382774472237, 0.013798409141600132, 0.03237448260188103, 0.031616538763046265, -0.030027832835912704, 0.04766726493835449, -0.11563853919506073, -0.01180337555706501, -0.03391602635383606, 0.015417038463056087, -0.018079975619912148, -0.01254537794739008, 0.031037461012601852, -0.06703624129295349, 0.04670148342847824, 0.0069822589866817, 0.036885444074869156, 0.06079364940524101, 0.034673161804676056, -0.050176285207271576, -0.022033531218767166, 0.0072986064478755, -0.07528946548700333, 0.09376654028892517, -0.06572781503200531, -0.08707807958126068, 0.1012774109840393, -0.030152957886457443, 0.04754798486828804, 0.03417447954416275, 0.05757693573832512, 0.07265125960111618, 0.07990413159132004, -0.0036334821488708258, 0.028947655111551285, 0.005595332942903042, 0.0029590073972940445, -0.031069280579686165, 0.12108006328344345, -0.07881078869104385, -5.062047492288002e-8, 0.03649694845080376, -0.02162075974047184, 0.013467845506966114, 0.041497841477394104, 0.08910851925611496, -0.05428317189216614, 0.06300794333219528, 0.06497081369161606, -0.008034514263272285, 0.06610269844532013, 0.033791434019804, 0.07608945667743683, -0.11732789874076843, -0.02186071313917637, 0.09948952496051788, 0.02042229287326336, -0.019852112978696823, 0.0435740202665329, 0.013710791245102882, -0.09949599951505661, -0.029376979917287827, -0.017117764800786972, -0.01548018679022789, 0.020964203402400017, 0.0255473293364048, 0.04323418810963631, 0.13644658029079437, 0.07116525620222092, 0.03468572720885277, 0.010627302341163158, -0.04730895906686783, -0.023548344150185585, -0.04690046235918999, 0.057581230998039246, -0.01401589997112751, 0.07232213765382767, -0.09947740286588669, 0.06322085112333298, 0.049641191959381104, 0.053929511457681656, -0.02844185195863247, -0.06109127402305603, -0.025324823334813118, 0.047173187136650085, -0.028450537472963333, 0.06990264356136322, -0.04288091883063316, 0.04044804349541664, -0.021563829854130745, 0.00625108927488327, -0.04192027077078819, -0.0021842997521162033, 0.024708108976483345, 0.09975545108318329, -0.03348500654101372, -0.06477499008178711, 0.03135667368769646, -0.027561955153942108, 0.029451478272676468, 0.021502280607819557, 0.042501676827669144, 0.01075480505824089, 0.005330740474164486, 0.026569241657853127 ]
0.270285
memory manager provides three policies. You can select a policy via the `memoryManagerPolicy` configuration field in the kubelet configuration; the values available in Kubernetes {{< skew currentVersion >}} are: \* [`None`](#policy-none) (default) \* [`Static`](#policy-static) (Linux only) \* [`BestEffort`](#policy-best-effort) (Windows only) #### None policy {#policy-none} This is the default policy and does not affect the memory allocation in any way. It acts the same as if the Memory Manager is not present at all. The `None` policy returns default topology hint. This special hint denotes that Hint Provider (Memory Manager in this case) has no preference for NUMA affinity with any resource. #### Static policy {#policy-static} {{< feature-state feature\_gate\_name="MemoryManager" >}} \*\*This policy is only supported on Linux.\*\* In the case of the `Guaranteed` pod, the `Static` Memory Manager policy returns topology hints relating to the set of NUMA nodes where the memory can be guaranteed, and reserves the memory through updating the internal [NodeMap][2] object. In the case of the `BestEffort` or `Burstable` pod, the `Static` Memory Manager policy sends back the default topology hint as there is no request for the guaranteed memory, and does not reserve the memory in the internal [NodeMap][2] object. This policy is only supported on Linux. #### BestEffort policy {#policy-best-effort} {{< feature-state feature\_gate\_name="WindowsCPUAndMemoryAffinity" >}} \*\*This policy is only supported on Windows.\*\* On Windows, NUMA node assignment works differently than Linux. There is no mechanism to ensure that Memory access only comes from a specific NUMA node. Instead the Windows operating system scheduler selects the most optimal NUMA node based on the CPU(s) assignments. It is possible that Windows might use other NUMA nodes if the Windows scheduler deems them optimal. The policy does track the amount of memory available and requested through the internal \_node map\_. The memory manager makes a best effort at ensuring that enough memory is available on a NUMA node before making a resource assignment. This means that in most cases memory assignment should function as specified. ## Reserved memory configuration {#reserved-memory-flag} As an administrator, you can configure the total amount of reserved memory for a node. This pre-configured value is subsequently utilized to calculate the real amount of [node allocatable](/docs/tasks/administer-cluster/reserve-compute-resources/#node-allocatable) memory available to pods. The Kubernetes scheduler incorporates allocatable memory information to optimise pod [scheduling](/docs/concepts/scheduling-eviction/). . The \_node allocatable\_ mechanism is commonly used by node administrators to reserve K8s node system resources for the kubelet or operating system processes to help assure node stability. The relevant kubelet settings include `kubeReserved`, `systemReserved` and `reservedMemory`. The `reservedMemory` setting allows you to split the total reserved memory and assign it across many NUMA nodes. You specify a comma-separated list of memory reservations, of different memory types, per NUMA node. You can also specify reservations that span multiple NUMA nodes, using a semicolon as separator. The Memory Manager will not use this reserved memory for running container workloads. For example, if you have a NUMA node "NUMA0" with 10GiB of memory available, and you configure `reservedMemory` to reserve `1Gi` (of memory) for NUMA0, the Memory Manager assumes that only 9GiB is available for pods. You can omit this parameter, however, you should be aware that the quantity of reserved memory from all NUMA nodes should be equal to the quantity of \_node allocatable\_ memory. If at least one node allocatable parameter is non-zero, you will need to specify `reservedMemory` for at least one NUMA node. In fact, the `evictionHard` threshold value is equal to `100Mi` by default, so if you use the `Static` policy, specifying `reservedMemory` is obligatory. ### Memory manager reserved memory syntax {#reserved-memory-syntax} Here are some examples of how to set the
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/memory-manager.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/memory-manager.md
[ 0.04354329779744148, 0.019282473251223564, -0.029259206727147102, 0.021984878927469254, -0.03498983755707741, 0.04873554781079292, 0.019171668216586113, -0.004589182790368795, 0.08806265145540237, 0.012610480189323425, 0.008225378580391407, -0.030620258301496506, -0.012346357107162476, -0.023553067818284035, 0.030651859939098358, 0.03177626058459282, 0.03338320553302765, 0.011022052727639675, -0.013121222145855427, -0.051476072520017624, 0.05355783924460411, -0.011665323749184608, 0.009431161917746067, -0.020977187901735306, -0.05448178946971893, -0.04086703434586525, 0.0019553089514374733, -0.0019331845687702298, 0.05236763134598732, -0.08162708580493927, -0.035889651626348495, 0.03390277177095413, -0.02322041429579258, 0.028603166341781616, 0.09073422104120255, 0.06776829063892365, -0.1259808987379074, -0.05957845225930214, -0.08589204400777817, 0.005523666739463806, 0.017648760229349136, -0.0187041275203228, -0.10214599967002869, -0.0024257716722786427, -0.00021169015963096172, 0.1127709448337555, -0.029435012489557266, -0.03176531940698624, -0.05958457663655281, -0.07932775467634201, 0.024961989372968674, -0.04624650999903679, 0.05441082641482353, 0.05381083860993385, 0.05916851386427879, 0.05272463336586952, -0.00509612075984478, -0.01195839699357748, 0.021833859384059906, 0.08395306020975113, 0.018105963245034218, -0.07064607739448547, 0.026002315804362297, -0.023693805560469627, -0.01954542100429535, -0.01953607238829136, 0.07770572602748871, 0.05497179925441742, 0.022415397688746452, 0.004755082074552774, 0.0704519972205162, -0.06581534445285797, -0.03755999356508255, -0.035184625536203384, -0.012747610919177532, 0.013760128989815712, -0.024117914959788322, 0.047000836580991745, 0.03664339333772659, -0.10744714736938477, -0.005752898752689362, 0.05083675682544708, 0.14384855329990387, -0.08629323542118073, 0.004929806105792522, -0.03962824121117592, -0.0580073781311512, -0.004229223821312189, 0.061201125383377075, 0.020573684945702553, 0.010651350021362305, -0.007020801771432161, 0.002391201676800847, -0.06648218631744385, 0.044229134917259216, -0.0033375811763107777, -0.03374838829040527, -0.0074884467758238316, -0.054085031151771545, -0.039653677493333817, 0.09519229829311371, 0.04763828590512276, 0.0091924536973238, 0.04462021216750145, 0.047425527125597, -0.0674673318862915, 0.012358518317341805, 0.01996615156531334, 0.004022866953164339, 0.03708717226982117, 0.028105353936553, 0.05167504400014877, 0.06605176627635956, 0.01713624596595764, -0.009352457709610462, -0.008249708451330662, -0.005672784056514502, -0.021536020562052727, 0.01352630089968443, 0.0447283536195755, -0.04793822020292282, -0.07769111543893814, 0.014022020623087883, 0.03102782741189003, -0.11584210395812988, 0.08305913954973221, -0.10474886000156403, 4.6789384486970025e-33, 0.059279914945364, -0.105531245470047, -0.04874546825885773, -0.061110373586416245, -0.0673360824584961, -0.13649292290210724, -0.05540049448609352, -0.029024088755249977, -0.06393753737211227, -0.026214657351374626, 0.00571071682497859, -0.006672521587461233, -0.045581623911857605, 0.025279058143496513, 0.06965627521276474, -0.009027817286550999, -0.07646835595369339, 0.08291754126548767, 0.07582112401723862, -0.006885271053761244, -0.011630172841250896, 0.0729096531867981, -0.012167723849415779, -0.05307956412434578, 0.08343924582004547, -0.03241157904267311, -0.002840181812644005, -0.06850609183311462, -0.01648659072816372, 0.015188954770565033, -0.06249600276350975, -0.006389728281646967, 0.005097838118672371, 0.01083417795598507, -0.015199492685496807, -0.008732681162655354, -0.11055294424295425, 0.01491633802652359, -0.057566117495298386, -0.07174552977085114, 0.02463737316429615, 0.0603148452937603, 0.05212303623557091, -0.11326140910387039, -0.006174510810524225, -0.056922465562820435, 0.09187902510166168, -0.007864115759730339, 0.031379926949739456, 0.0066552478820085526, -0.014709497801959515, -0.00019354860705789179, 0.008288429118692875, 0.03946325182914734, 0.05197499319911003, -0.012114237062633038, 0.09182565659284592, -0.025192802771925926, -0.0036080970894545317, 0.06543772667646408, -0.04225720837712288, -0.04691706597805023, 0.0022867799270898104, 0.005940293427556753, 0.052180130034685135, 0.03767288848757744, -0.001310198102146387, 0.06396366655826569, -0.1010776236653328, 0.00652574747800827, -0.028984911739826202, 0.015988703817129135, 0.006378832273185253, 0.034333571791648865, -0.05150623992085457, -0.05184287950396538, 0.024715349078178406, 0.021397627890110016, -0.20577746629714966, 0.021473152562975883, 0.10687419027090073, 0.0035883153323084116, 0.007194089237600565, 0.05889544263482094, -0.0711274966597557, -0.05609862133860588, 0.1000891923904419, -0.02409452758729458, -0.012529857456684113, 0.037963006645441055, 0.07045307010412216, -0.03517535701394081, -0.024759110063314438, 0.0573771670460701, -0.13018923997879028, -4.618247308022063e-33, 0.05717038735747337, -0.0007140087545849383, -0.022665562108159065, 0.025012237951159477, -0.041317496448755264, 0.04048331081867218, -0.022191697731614113, -0.0008321941713802516, -0.05102548003196716, -0.13391967117786407, -0.01609266735613346, -0.0008803765522316098, 0.05359121039509773, 0.02082069218158722, -0.05589064210653305, -0.019967149943113327, -0.03118644841015339, 0.009697417728602886, -0.08339112997055054, 0.016321565955877304, -0.015352572314441204, -0.012769447639584541, 0.05517458915710449, -0.0035302876494824886, -0.02929629571735859, 0.04563938453793526, -0.02867814153432846, 0.035814836621284485, -0.05912154167890549, -0.002381144557148218, 0.034036923199892044, -0.06476818025112152, -0.06736583262681961, 0.017358550801873207, 0.005786764435470104, -0.06709086894989014, 0.026438554748892784, 0.05073195695877075, 0.002024250105023384, 0.05656341090798378, 0.05453060567378998, 0.0941888764500618, -0.0051023466512560844, -0.0009232315933331847, -0.034366171807050705, 0.04655389487743378, -0.015472540631890297, -0.07177197933197021, 0.016915637999773026, -0.12286419421434402, -0.041772641241550446, -0.024289902299642563, -0.005739462561905384, 0.05404365062713623, -0.037975065410137177, -0.0011124982265755534, 0.03376901149749756, 0.03645838052034378, 0.012100414372980595, -0.04011765122413635, 0.038694825023412704, -0.11702544242143631, 0.01617477275431156, -0.08415334671735764, -0.022962583228945732, 0.012428097426891327, 0.0029577023815363646, 0.0427418053150177, -0.02424979768693447, 0.04686686396598816, 0.020431777462363243, 0.04398644343018532, 0.01915636844933033, -0.0014829774154350162, -0.06057478114962578, 0.04273945838212967, 0.05575873702764511, -0.025596722960472107, 0.043416861444711685, -0.041570086032152176, -0.06365900486707687, 0.04653453826904297, -0.020083054900169373, -0.0023884361144155264, 0.0031151985749602318, 0.04583066329360008, 0.05199471861124039, 0.019440563395619392, 0.007284513209015131, -0.03653095290064812, -0.02606961503624916, -0.003104709554463625, -0.021469343453645706, 0.1164228543639183, -0.06975878030061722, -5.119166957001653e-8, 0.07165993005037308, -0.10436687618494034, 0.03018088825047016, 0.030756192281842232, 0.05525902658700943, -0.09118153899908066, 0.04213535785675049, 0.02914809063076973, -0.012701019644737244, 0.06891632825136185, 0.04072126746177673, 0.08588145673274994, -0.08883155137300491, -0.06550313532352448, 0.08191629499197006, 0.010734518058598042, -0.012335577048361301, 0.05321764945983887, 0.03163421154022217, -0.08052580058574677, -0.037524692714214325, -0.0063094086945056915, -0.0073354304768145084, 0.03265644609928131, 0.05491412803530693, 0.06436670571565628, 0.11736489832401276, 0.02661692351102829, 0.08282667398452759, 0.03882722929120064, -0.0148336011916399, 0.004033572506159544, -0.032867491245269775, 0.05688943713903427, 0.028863709419965744, 0.03648953139781952, -0.112934909760952, 0.09185606986284256, 0.04017946869134903, 0.04822571948170662, -0.018716875463724136, -0.022265831008553505, -0.03641916811466217, 0.07382712513208389, -0.012436702847480774, 0.06529751420021057, -0.02309095673263073, 0.007222231011837721, 0.000989652005955577, -0.03237960487604141, -0.04165016487240791, 0.030495477840304375, 0.015150143764913082, 0.10905832052230835, -0.019580155611038208, -0.026346517726778984, -0.0035808098036795855, -0.03355787321925163, 0.029004178941249847, 0.021419433876872063, 0.021982567384839058, -0.022357309237122536, -0.02278391271829605, 0.0066364239901304245 ]
0.237992
will need to specify `reservedMemory` for at least one NUMA node. In fact, the `evictionHard` threshold value is equal to `100Mi` by default, so if you use the `Static` policy, specifying `reservedMemory` is obligatory. ### Memory manager reserved memory syntax {#reserved-memory-syntax} Here are some examples of how to set the `reservedMemory` configuration for the kubelet. ```yaml # Example 1 reservedMemory: - numaNode: 0 # NUMA node index limits: memory: "1Gi" # byte quantity - numaNode: 1 limits: memory: "2Gi" # byte quantity ``` ```yaml # Example 2 reservedMemory: - numaNode: 0 limits: "memory": "512Gi" - numaNode: 1 limits: "memory": "512Gi" "hugepages-1Gi": "2Gi" # only relevant on Linux ``` ### Constraints on NUMA memory reservation When you specify values for `reservedMemory`, this must be compatible with the `kubeReserved` and `systemReserved` values that are in effect, along with any `memory.available` setting you make as part of `evictionHard`. ```math \begin{equation\*} \sum\_{ \textnormal{i} = 0}^{ \textnormal{node count}} { \textit{reservedMemory} [ \textnormal{i} ]} = \textit{kubeReserved} + \textit{systemReserved} + \textit{evictionHard} \, \boxed{\textnormal{memory.available}} \end{equation\*}\\\ \text{where i is an index of a NUMA node} ``` If you do not follow the formula above, the Memory Manager will show an error on startup. In other words, the example 1 (above) illustrates that for the conventional memory (`type=memory`), Kubernetes reserves 3GiB in total; that is: ```math \begin{equation\*} \sum\_{ \textnormal{i} = 0}^{ \textnormal{node count}} \textit{reservedMemory}\_{ [ \textnormal{i} ] } = \underbrace{\textit{reservedMemory} [ 0 ] + \textit{reservedMemory} [ 1 ] }\_{\textnormal{type=memory}} = 1 \textnormal{GiB} + 2 \textnormal{GiB} = 3 \textnormal{GiB} \end{equation\*}\\\ \text{where i is an index of a NUMA node} ``` Some examples of kubelet configuration settings relevant to the node allocatable configuration: ```yaml kubeReserved: { cpu: "500m", memory: "50Mi" } # half a CPU, 50MiB of memory systemReserved: { cpu: "500m", memory: "256Mi" } # half a CPU, 256MiB of memory ``` {{< note >}} The default hard eviction threshold is 100MiB, and \*\*not\*\* zero. Remember to increase the quantity of memory that you reserve by setting `reservedMemory` by that hard eviction threshold. Otherwise, the kubelet will not start Memory Manager and display an error. Here is an example of a correct configuration that uses `reservedMemory`: ```yaml # this snippet relies on the default value of evictionHard memoryManagerPolicy: Static kubeReserved: { cpu: "4", memory: "4Gi" } systemReserved: { cpu: "1", memory: "1Gi" } reservedMemory: - numaNode: 0 limits: memory: "3Gi" - numaNode: 1 limits: memory: "2148Mi" # 3GiB minus 100MiB ``` {{< /note >}} ### Configurations to avoid {#reserved-memory-configurations-to-avoid} Avoid the following configurations: 1. duplicates: the same NUMA node or memory type, but with a different value; 1. setting a zero limit for any of memory types; 1. NUMA node IDs that do not exist in the machine hardware; 1. memory type names different than `memory` or `hugepages-` (hugepages of particular `` should also exist). ## Placing a Pod in the Guaranteed QoS class If the selected policy is anything other than `None`, the Memory Manager identifies pods that are in the `Guaranteed` QoS class. The Memory Manager provides specific topology hints to the Topology Manager for each `Guaranteed` pod. For pods in a QoS class other than `Guaranteed`, the Memory Manager provides default topology hints to the Topology Manager. The following excerpts from pod manifests assign a pod to the `Guaranteed` QoS class. A Pod with integer CPU(s) runs in the `Guaranteed` QoS class, when `requests` are equal to `limits`: ```yaml spec: containers: - name: nginx image: nginx resources: limits: memory: "200Mi" cpu: "2" example.com/device: "1" requests: memory: "200Mi" cpu: "2" example.com/device: "1" ``` Also, a pod sharing CPU(s) runs in the `Guaranteed` QoS class, when `requests` are equal to
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/memory-manager.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/memory-manager.md
[ 0.06514438986778259, 0.021315032616257668, -0.018420731648802757, -0.003066999139264226, -0.05474165454506874, 0.030237043276429176, -0.01270468533039093, 0.026799893006682396, 0.05873383209109306, 0.03541982173919678, 0.0003461419546511024, -0.12242085486650467, -0.002250530757009983, -0.03994714096188545, 0.0326840803027153, 0.019273269921541214, -0.020875904709100723, 0.0458352193236351, -0.016383500769734383, -0.06185111030936241, 0.06269436329603195, 0.08055591583251953, 0.01888248696923256, -0.07226071506738663, -0.026292404159903526, -0.04295048490166664, 0.003110933816060424, 0.05924847722053528, 0.07342538237571716, -0.1117587611079216, 0.0330604650080204, 0.012396172620356083, -0.007414392661303282, 0.05767185240983963, 0.11922995746135712, 0.14000047743320465, -0.08923573046922684, -0.11213042587041855, -0.09344121068716049, 0.002480008639395237, 0.05394791439175606, 0.0339178703725338, -0.0816795751452446, 0.005768633913248777, -0.01170703861862421, 0.05297800898551941, -0.07707727700471878, 0.0011440725065767765, 0.002385734347626567, -0.04322555288672447, 0.03183760121464729, -0.06792890280485153, 0.004563663154840469, 0.05316967889666557, 0.05513279512524605, 0.0008918581297621131, -0.044816166162490845, -0.04881800338625908, 0.014174818992614746, 0.08766388893127441, -0.014384105801582336, -0.03689765930175781, 0.042278457432985306, -0.08448571711778641, -0.03335733711719513, 0.0065193623304367065, 0.03924932703375816, -0.0032640898134559393, -0.03139888122677803, 0.0785096287727356, 0.0938374474644661, -0.03392460569739342, -0.038758113980293274, 0.002283953595906496, -0.09031128883361816, -0.01863376796245575, -0.009303539991378784, 0.032471299171447754, -0.028416458517313004, -0.08281210064888, -0.027800407260656357, 0.03589179739356041, 0.07916866987943649, -0.10420265048742294, -0.04050876200199127, -0.03382813185453415, -0.03926588222384453, 0.009022297337651253, 0.03802138566970825, 0.03643801435828209, 0.036322373896837234, 0.0037874907720834017, -0.010534233413636684, -0.03968411311507225, 0.09133343398571014, -0.019393248483538628, -0.009703422896564007, 0.0503183975815773, -0.026822533458471298, -0.03381636366248131, 0.08824313431978226, 0.06233837082982063, -0.03269166499376297, 0.04740185663104057, 0.028554465621709824, -0.04043067991733551, 0.052528996020555496, -0.030270583927631378, -0.0390617735683918, 0.056239187717437744, 0.007934319786727428, 0.08522257208824158, 0.032181426882743835, 0.03197262063622475, -0.011774812825024128, 0.022591523826122284, 0.01446049939841032, -0.031862933188676834, 0.032596055418252945, 0.020384756848216057, -0.017063306644558907, -0.05094599723815918, -0.004155728965997696, 0.030768418684601784, -0.07925873249769211, -0.022651100531220436, -0.07449863851070404, 5.6358378700403774e-33, 0.07330351322889328, -0.06740321218967438, -0.0682469829916954, -0.0076520005241036415, -0.05102749168872833, -0.05680873245000839, -0.0412520132958889, -0.05378497764468193, -0.15636295080184937, -0.05903362110257149, -0.013752391561865807, -0.07181718945503235, -0.08330175280570984, -0.004491177853196859, 0.024989672005176544, -0.006480538286268711, 0.02117309160530567, 0.04435401037335396, 0.060014817863702774, -0.019237175583839417, 0.025935031473636627, 0.022172965109348297, -0.012895828112959862, 0.030006952583789825, 0.011090084910392761, 0.01336818840354681, 0.03528643399477005, -0.11003845185041428, 0.015960324555635452, 0.009301893413066864, -0.05220426246523857, 0.035891253501176834, 0.0269879512488842, 0.0053979274816811085, -0.009024153463542461, -0.007504865061491728, -0.06648761034011841, 0.036876823753118515, -0.1020723506808281, -0.08274978399276733, 0.04366881027817726, 0.06952790170907974, 0.009000543504953384, -0.10278972238302231, -0.00983487069606781, -0.0465058870613575, 0.0702078714966774, -0.03601640462875366, 0.01990034617483616, 0.013101812452077866, -0.02045714482665062, 0.03258943930268288, -0.03145824745297432, -0.02187173068523407, 0.04506327584385872, -0.04069093242287636, 0.08944772183895111, -0.016278928145766258, -0.02549723908305168, 0.028833303600549698, -0.06642070412635803, -0.040146809071302414, 0.07622143626213074, 0.02507644146680832, 0.0786658301949501, 0.03212851285934448, -0.041978348046541214, 0.04691644757986069, -0.08045551180839539, 0.02672373317182064, -0.044107574969530106, 0.0021381156984716654, 0.024022888392210007, 0.05583905056118965, -0.06885244697332382, -0.05935867503285408, 0.03411601856350899, -0.013899262994527817, -0.15751594305038452, -0.019819505512714386, 0.06684800982475281, -0.02691725641489029, -0.0018991754623129964, 0.019978521391749382, -0.007049005478620529, -0.07051068544387817, 0.09372159838676453, 0.0598519928753376, -0.024216100573539734, 0.019149979576468468, 0.04512142390012741, 0.0016377263236790895, -0.03156958892941475, -0.05838346853852272, -0.11866047978401184, -6.45084704171584e-33, 0.002731380285695195, 0.0636482909321785, -0.07452820986509323, 0.09590175747871399, -0.0068076904863119125, -0.02739839069545269, -0.0015284086111932993, 0.026121817529201508, -0.04254106432199478, -0.04896464943885803, -0.054803185164928436, -0.005285382270812988, 0.05700165033340454, -0.003086911514401436, -0.04573538526892662, 0.0002136547991540283, -0.015236292034387589, 0.006136838346719742, -0.03828604519367218, 0.0059538246132433414, -0.04252586513757706, 0.047979533672332764, 0.056596361100673676, -0.004758560098707676, 0.040408991277217865, 0.04715820401906967, -0.06431972235441208, 0.05737343803048134, -0.08996085822582245, -0.03003152646124363, -0.018192457035183907, -0.049934811890125275, -0.09326541423797607, 0.006771665532141924, 0.04524208605289459, -0.13741154968738556, 0.04682943969964981, 0.05075688287615776, -0.037157222628593445, 0.08450618386268616, 0.05291682109236717, 0.08916030079126358, -0.05917162820696831, -0.029379263520240784, -0.07209925353527069, 0.01396532729268074, 0.04905420169234276, -0.04244356229901314, 0.02098562754690647, -0.07770524173974991, -0.013170856982469559, -0.02618679217994213, 0.009479674510657787, 0.061846692115068436, -0.008789834566414356, 0.004766144789755344, 0.0109694330021739, 0.03886260464787483, 0.025710739195346832, -0.06340428441762924, 0.016478635370731354, -0.10838110744953156, 0.03419762849807739, -0.09606105089187622, 0.022371400147676468, -0.0547475591301918, -0.02878730744123459, 0.0032080980017781258, -0.021877072751522064, 0.0704837366938591, -0.01495837327092886, 0.05877286195755005, 0.05634400248527527, 0.02897232584655285, -0.017423931509256363, -0.00704755075275898, 0.0003819685080088675, 0.012026281096041203, 0.06705521047115326, 0.007637621369212866, -0.05995866283774376, 0.12060142308473587, -0.042662765830755234, -0.00033789221197366714, 0.0647449865937233, 0.046331632882356644, 0.0683802142739296, 0.06276629865169525, -0.02718850038945675, 0.009405494667589664, -0.01744804158806801, 0.027832897379994392, -0.0334288515150547, 0.08746619522571564, -0.08607009053230286, -4.8897003779302395e-8, -0.003863361431285739, -0.07522881031036377, -0.09635383635759354, 0.05576127767562866, 0.06809670478105545, -0.12029103189706802, 0.01967577449977398, 0.016206353902816772, -0.0019374577095732093, 0.020861845463514328, 0.0476708710193634, 0.06090836971998215, -0.06436196714639664, -0.019899988546967506, 0.0368209034204483, -0.05820808932185173, 0.007451483979821205, 0.010403859429061413, 0.007748020812869072, -0.05038309469819069, -0.040983896702528, 0.004669882357120514, -0.026819122955203056, 0.0439162440598011, 0.030571017414331436, 0.052438151091337204, 0.11822038888931274, 0.02073192410171032, 0.06255281716585159, -0.004226912744343281, 0.009008476510643959, 0.0022805449552834034, -0.003924126736819744, 0.0018352518090978265, -0.025763122364878654, 0.008942038752138615, -0.05712399631738663, 0.09249338507652283, 0.06349238753318787, 0.04942740499973297, 0.014489386230707169, -0.0337604358792305, -0.04774504899978638, 0.049597807228565216, -0.0507015697658062, 0.05047598481178284, -0.03748314082622528, 0.032305046916007996, 0.013199012726545334, 0.023794492706656456, -0.013447343371808529, -0.04641154780983925, 0.03861139714717865, 0.09725579619407654, 0.040087223052978516, -0.013794703409075737, 0.006931147072464228, 0.013036053627729416, 0.04918656125664711, 0.0045009213499724865, 0.03259095549583435, -0.03652195259928703, -0.02586943469941616, -0.029523340985178947 ]
0.208929
the `Guaranteed` QoS class, when `requests` are equal to `limits`: ```yaml spec: containers: - name: nginx image: nginx resources: limits: memory: "200Mi" cpu: "2" example.com/device: "1" requests: memory: "200Mi" cpu: "2" example.com/device: "1" ``` Also, a pod sharing CPU(s) runs in the `Guaranteed` QoS class, when `requests` are equal to `limits`. ```yaml spec: containers: - name: nginx image: nginx resources: limits: memory: "200Mi" cpu: "300m" example.com/device: "1" requests: memory: "200Mi" cpu: "300m" example.com/device: "1" ``` Notice that both CPU and memory requests must be specified for a Pod to lend it to Guaranteed QoS class. ## {{% heading "whatsnext" %}} - Read [Troubleshooting Topology Management](/docs/tasks/debug/debug-cluster/topology/) - Read the [KEP](https://github.com/kubernetes/enhancements/tree/master/keps/sig-node/1769-memory-manager) (Kubernetes enhancement proposal) for memory manager
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/memory-manager.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/memory-manager.md
[ 0.00032369946711696684, 0.05653037875890732, -0.004025781527161598, 0.013361824676394463, -0.035684600472450256, -0.0655980110168457, 0.03427630290389061, -0.01926509290933609, 0.05898198485374451, 0.015515470877289772, -0.025991316884756088, 0.01943495124578476, -0.001335766981355846, 0.03878103941679001, 0.061552610248327255, -0.050422582775354385, 0.0624738372862339, 0.01492058765143156, -0.06632692366838455, 0.0017671872628852725, 0.11247513443231583, 0.061425160616636276, 0.04628175124526024, 0.016510993242263794, -0.06248196214437485, -0.023309078067541122, -0.07111159712076187, -0.022300666198134422, 0.09321241080760956, -0.006853755563497543, 0.021470509469509125, 0.008802619762718678, -0.04571725055575371, 0.03126237168908119, 0.05431497097015381, 0.15903373062610626, -0.025825101882219315, -0.13821843266487122, -0.011222297325730324, -0.0060022673569619656, 0.025684798136353493, 0.026925716549158096, -0.06852686405181885, 0.01716034486889839, -0.027193227782845497, 0.018798282369971275, -0.014461260288953781, -0.005996969062834978, 0.01707771047949791, -0.10598733276128769, -0.04980934038758278, -0.0758279487490654, 0.013592269271612167, 0.029523644596338272, 0.011173615232110023, 0.03966573253273964, -0.03788129240274429, 0.02574099972844124, -0.013427113182842731, 0.04356110468506813, -0.08107569813728333, -0.10719899833202362, 0.07409223914146423, -0.03384890779852867, 0.05321081727743149, -0.04356392100453377, -0.02410268597304821, 0.025596093386411667, -0.054209500551223755, 0.0776248648762703, 0.07751059532165527, -0.0295967236161232, -0.025238394737243652, -0.00577760161831975, -0.011421811766922474, 0.06074003875255585, -0.08596055209636688, -0.0028272131457924843, -0.07600454241037369, -0.050570741295814514, -0.0023582971189171076, -0.055408138781785965, 0.06973134726285934, -0.0509725883603096, -0.009218771010637283, 0.05786827579140663, 0.06343047320842743, -0.022743333131074905, -0.002335218945518136, -0.04593677818775177, 0.02374388463795185, 0.0002790240105241537, -0.0012646213872358203, -0.033710408955812454, 0.12669382989406586, -0.01031620055437088, -0.048043396323919296, -0.05251479893922806, -0.023222962394356728, -0.018944887444376945, 0.05545283854007721, -0.006913261022418737, 0.07950415462255478, 0.05237690359354019, 0.08179698139429092, -0.016736634075641632, -0.035644639283418655, 0.014541870914399624, -0.008691135793924332, 0.024952324107289314, 0.024089522659778595, 0.02320317178964615, 0.021599501371383667, 0.039720725268125534, -0.05347615107893944, -0.002619185484945774, -0.033519551157951355, -0.014585579745471478, -0.01204064954072237, 0.0702890157699585, 0.008598080836236477, -0.037711311131715775, 0.008415691554546356, -0.003152195131406188, -0.04675645753741264, -0.029772622510790825, -0.04865635931491852, 4.014461614219903e-33, -0.022889792919158936, -0.0723477452993393, -0.0071797543205320835, -0.06328596919775009, 0.02160385437309742, -0.060486868023872375, -0.012089701369404793, 0.02573772892355919, -0.03917018696665764, 0.02643287554383278, -0.03792920336127281, -0.007375144865363836, -0.034255050122737885, 0.04091271013021469, 0.05225985497236252, -0.0062634022906422615, -0.007117989473044872, 0.008223241195082664, 0.10508713871240616, 0.035360369831323624, 0.05984978377819061, -0.07813496887683868, -0.08554014563560486, 0.019287357106804848, 0.011184364557266235, 0.02533753588795662, 0.0385412760078907, -0.062345411628484726, -0.000865100126247853, -0.020195262506604195, -0.016907786950469017, 0.02353505603969097, 0.002726254053413868, -0.015554776415228844, -0.057553425431251526, -0.010094278492033482, 0.020997973158955574, 0.04581663757562637, -0.11797552555799484, -0.08357883989810944, 0.050560157746076584, 0.03795219212770462, 0.002603234490379691, -0.048145342618227005, -0.017898395657539368, -0.10006900131702423, 0.0012329170713201165, -0.08217629045248032, -0.010880108922719955, 0.02706664800643921, -0.0031926208175718784, -0.021079014986753464, -0.03469095751643181, -0.03440944850444794, 0.06264628469944, -0.07054344564676285, 0.04256148636341095, 0.06666761636734009, -0.0319855697453022, 0.033555567264556885, -0.020172039046883583, -0.06328796595335007, 0.002247063908725977, 0.027925172820687294, 0.005041445139795542, 0.08828103542327881, 0.011974707245826721, 0.05131302401423454, -0.013017632998526096, 0.11422161012887955, -0.011060275137424469, 0.015588272362947464, -0.002349883783608675, 0.05024721473455429, -0.04199002683162689, -0.0524403415620327, 0.05753900855779648, 0.004108333494514227, -0.0815790668129921, 0.009300430305302143, 0.03325815498828888, -0.015440906397998333, -0.015002535656094551, 0.07921578735113144, -0.09076657891273499, -0.08310279250144958, 0.041013963520526886, 0.0483756959438324, -0.037992704659700394, 0.07630458474159241, 0.003983607050031424, -0.00005923425851506181, -0.06414790451526642, 0.006857521366328001, -0.15780337154865265, -5.797321773826574e-33, 0.05512513965368271, -0.009234817698597908, -0.0016483394429087639, 0.08358003199100494, 0.020842861384153366, -0.012714258395135403, 0.029737183824181557, -0.008024641312658787, -0.0043351617641747, -0.03592361509799957, -0.05073075369000435, -0.016156544908881187, 0.047492336481809616, 0.021898390725255013, -0.0953337624669075, -0.02747911959886551, -0.08102285861968994, -0.1156749576330185, 0.01577628031373024, 0.031310345977544785, -0.07125207781791687, 0.057994142174720764, 0.1328156590461731, 0.04270246997475624, 0.04380431026220322, 0.033048078417778015, 0.01857835240662098, -0.01237514428794384, -0.044866420328617096, -0.03856348618865013, -0.010591773316264153, -0.15392158925533295, -0.07500778883695602, -0.007045214530080557, -0.009144412353634834, -0.037721339613199234, -0.0140877366065979, 0.09108883887529373, 0.0033568204380571842, 0.02961873449385166, 0.10052364319562912, 0.011322748847305775, -0.026295077055692673, 0.006985074374824762, -0.07253064960241318, -0.07309824973344803, 0.03002507984638214, -0.07524701207876205, 0.01383761502802372, -0.06830114871263504, 0.045217711478471756, 0.02488965354859829, -0.024333085864782333, 0.10411611199378967, 0.01935652270913124, -0.0673365667462349, 0.014400383457541466, 0.03678093105554581, 0.017351379618048668, 0.0011869511799886823, 0.05946129932999611, -0.058259859681129456, -0.06977052241563797, 0.023517321795225143, 0.006007174029946327, -0.034888412803411484, -0.10129362344741821, -0.01272756326943636, 0.05585424229502678, 0.07096046954393387, 0.061543967574834824, 0.057652540504932404, 0.039630044251680374, 0.06171206384897232, -0.06723126024007797, 0.017573999240994453, -0.022446060553193092, -0.04500593617558479, 0.10394097864627838, -0.004821057431399822, -0.09955406934022903, 0.13828562200069427, -0.0915495827794075, 0.06026161089539528, 0.021660905331373215, 0.0666489377617836, 0.017882851883769035, 0.024206053465604782, 0.004189751576632261, 0.01656162180006504, 0.007790359668433666, -0.02877439185976982, -0.04688252508640289, 0.016432659700512886, -0.04832056164741516, -4.9842807214872664e-8, 0.041525810956954956, -0.00997992791235447, 0.014023354277014732, 0.053343236446380615, 0.08830758184194565, -0.10327983647584915, 0.040546029806137085, -0.027191609144210815, 0.017977021634578705, 0.08409363776445389, 0.03376656770706177, 0.017932511866092682, -0.0339992456138134, 0.011890777386724949, 0.01872396096587181, -0.02844938635826111, -0.023883242160081863, 0.06552764773368835, 0.01780877448618412, -0.07353475689888, -0.07061954587697983, -0.0273800790309906, -0.04047336429357529, -0.007364198565483093, 0.01674993522465229, 0.011156604625284672, 0.11274711787700653, 0.04116160422563553, -0.003297339426353574, 0.000015947060092003085, -0.047547969967126846, -0.0493457205593586, -0.04191170260310173, -0.021893911063671112, -0.00027572186081670225, -0.02568497508764267, -0.16414374113082886, 0.06279509514570236, 0.0031852026004344225, -0.010050912387669086, -0.061515480279922485, -0.08771442621946335, 0.008241914212703705, 0.011984298937022686, 0.0017849665600806475, 0.023674599826335907, -0.03387943655252457, 0.05270707234740257, 0.02227865345776081, 0.016487792134284973, 0.028072142973542213, -0.03100898303091526, 0.0074999695643782616, 0.059140030294656754, -0.005461039952933788, -0.0023549089673906565, 0.0714564248919487, -0.06409318745136261, -0.023768018931150436, -0.052573177963495255, 0.110459104180336, -0.002867594826966524, 0.00628250977024436, 0.005514495074748993 ]
0.137973
{{< feature-state feature\_gate\_name="EventedPLEG" >}} This page shows how to migrate nodes to use event based updates for container status. The event-based implementation reduces node resource consumption by the kubelet, compared to the legacy approach that relies on polling. You may know this feature as \_evented Pod lifecycle event generator (PLEG)\_. That's the name used internally within the Kubernetes project for a key implementation detail. The polling based approach is referred to as \_generic PLEG\_. ## {{% heading "prerequisites" %}} \* You need to run a version of Kubernetes that provides this feature. Kubernetes v1.27 includes beta support for event-based container status updates. The feature is beta but is \_disabled\_ by default because it requires support from the container runtime. \* {{< version-check >}} If you are running a different version of Kubernetes, check the documentation for that release. \* The container runtime in use must support container lifecycle events. The kubelet automatically switches back to the legacy generic PLEG mechanism if the container runtime does not announce support for container lifecycle events, even if you have this feature gate enabled. ## Why switch to Evented PLEG? \* The \_Generic PLEG\_ incurs non-negligible overhead due to frequent polling of container statuses. \* This overhead is exacerbated by Kubelet's parallelized polling of container states, thus limiting its scalability and causing poor performance and reliability problems. \* The goal of \_Evented PLEG\_ is to reduce unnecessary work during inactivity by replacing periodic polling. ## Switching to Evented PLEG 1. Start the Kubelet with the [feature gate](/docs/reference/command-line-tools-reference/feature-gates/) `EventedPLEG` enabled. You can manage the kubelet feature gates editing the kubelet [config file](/docs/tasks/administer-cluster/kubelet-config-file/) and restarting the kubelet service. You need to do this on each node where you are using this feature. 2. Make sure the node is [drained](/docs/tasks/administer-cluster/safely-drain-node/) before proceeding. 3. Start the container runtime with the container event generation enabled. {{< tabs name="tab\_with\_code" >}} {{% tab name="Containerd" %}} Version 1.7+ {{% /tab %}} {{% tab name="CRI-O" %}} Version 1.26+ Check if the CRI-O is already configured to emit CRI events by verifying the configuration, ```shell crio config | grep enable\_pod\_events ``` If it is enabled, the output should be similar to the following: ```none enable\_pod\_events = true ``` To enable it, start the CRI-O daemon with the flag `--enable-pod-events=true` or use a dropin config with the following lines: ```toml [crio.runtime] enable\_pod\_events: true ``` {{% /tab %}} {{< /tabs >}} {{< version-check >}} 4. Verify that the kubelet is using event-based container stage change monitoring. To check, look for the term `EventedPLEG` in the kubelet logs. The output should be similar to this: ```console I0314 11:10:13.909915 1105457 feature\_gate.go:249] feature gates: &{map[EventedPLEG:true]} ``` If you have set `--v` to 4 and above, you might see more entries that indicate that the kubelet is using event-based container state monitoring. ```console I0314 11:12:42.009542 1110177 evented.go:238] "Evented PLEG: Generated pod status from the received event" podUID=3b2c6172-b112-447a-ba96-94e7022912dc I0314 11:12:44.623326 1110177 evented.go:238] "Evented PLEG: Generated pod status from the received event" podUID=b3fba5ea-a8c5-4b76-8f43-481e17e8ec40 I0314 11:12:44.714564 1110177 evented.go:238] "Evented PLEG: Generated pod status from the received event" podUID=b3fba5ea-a8c5-4b76-8f43-481e17e8ec40 ``` ## {{% heading "whatsnext" %}} \* Learn more about the design in the Kubernetes Enhancement Proposal (KEP): [Kubelet Evented PLEG for Better Performance](https://github.com/kubernetes/enhancements/blob/5b258a990adabc2ffdc9d84581ea6ed696f7ce6c/keps/sig-node/3386-kubelet-evented-pleg/README.md).
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/switch-to-evented-pleg.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/switch-to-evented-pleg.md
[ 0.03155123442411423, 0.021424174308776855, 0.09517206251621246, 0.0129478108137846, 0.012964044697582722, -0.01409381628036499, -0.014556709676980972, -0.04234766587615013, 0.07048755884170532, 0.03440091758966446, -0.059133030474185944, -0.03836164250969887, -0.059634651988744736, -0.07346421480178833, 0.0507567822933197, -0.006406740285456181, 0.06560854613780975, -0.017133349552750587, -0.07848336547613144, -0.054137587547302246, -0.04766993597149849, -0.02744555100798607, 0.007464202586561441, 0.0038013109005987644, -0.06583165377378464, -0.04501181095838547, -0.007689575664699078, -0.021263882517814636, 0.07708054035902023, 0.03661378473043442, -0.03312772512435913, -0.003952174447476864, -0.012040945701301098, -0.011072086170315742, 0.0812532976269722, 0.062245212495326996, 0.020729385316371918, -0.08813714981079102, -0.08847571164369583, 0.02072039246559143, 0.08195586502552032, -0.04168519005179405, -0.0870242714881897, -0.01685258559882641, -0.009357664734125137, -0.010779988020658493, -0.07331385463476181, -0.04516920447349548, -0.045940566807985306, -0.004181648604571819, 0.03945913538336754, -0.10952414572238922, 0.08565646409988403, -0.007746571209281683, 0.12641333043575287, 0.07661169767379761, 0.047798145562410355, 0.03496042266488075, 0.07975951582193375, -0.0234355628490448, 0.009274864569306374, -0.03464769199490547, -0.011831617914140224, -0.043335992842912674, -0.09295948594808578, 0.0008623126777820289, 0.0049707586877048016, 0.024248553439974785, 0.05305499583482742, -0.022153371945023537, 0.01379481516778469, 0.044480741024017334, -0.029157886281609535, -0.018365850672125816, 0.021394385024905205, -0.021046258509159088, -0.022232849150896072, 0.04702312871813774, -0.017570337280631065, -0.09093701839447021, -0.0076544261537492275, 0.023116109892725945, 0.07393854111433029, -0.09103073924779892, -0.07402074337005615, -0.014672094024717808, -0.056730084121227264, -0.019852720201015472, 0.021021755412220955, 0.011659475043416023, -0.02576039358973503, -0.04716547951102257, 0.0528632327914238, -0.08013085275888443, 0.03414140269160271, 0.07423989474773407, -0.03656325116753578, -0.006056711543351412, 0.06298249214887619, 0.008803236298263073, 0.012739542871713638, 0.028251174837350845, -0.06147905811667442, 0.038906630128622055, 0.05213690921664238, -0.057269010692834854, -0.07878310233354568, 0.011237844824790955, -0.015363103710114956, 0.03894154354929924, -0.015731871128082275, -0.0017477866495028138, 0.01869608461856842, -0.016723986715078354, -0.051531605422496796, -0.022336062043905258, 0.018463872373104095, 0.015369162894785404, 0.044948726892471313, 0.10957589000463486, 0.08754575997591019, -0.0730288177728653, -0.020986830815672874, 0.024620195850729942, -0.024227941408753395, 0.017618028447031975, -0.034380510449409485, 5.763642758649561e-33, 0.028830748051404953, -0.0716341882944107, -0.016751207411289215, -0.03762268275022507, 0.010492034256458282, -0.07544600963592529, 0.0006681799422949553, -0.08797983080148697, -0.033052846789360046, -0.06578638404607773, -0.06651359051465988, 0.02239765040576458, -0.041876811534166336, -0.036671143025159836, 0.04841691628098488, -0.0910494476556778, -0.075289286673069, 0.054828982800245285, 0.09066281467676163, -0.0306223314255476, 0.019621441140770912, -0.04438387602567673, -0.037378549575805664, 0.03631016984581947, 0.09177093207836151, -0.007776640355587006, 0.05386998876929283, -0.012327974662184715, -0.009379182942211628, 0.018350526690483093, 0.009046445600688457, -0.009212110191583633, 0.03212437406182289, -0.013093119487166405, -0.17352043092250824, -0.011668411083519459, -0.050488874316215515, -0.012050201185047626, -0.05793215334415436, -0.05191595479846001, 0.017517562955617905, -0.03179669380187988, -0.053521666675806046, -0.07755756378173828, 0.046345796436071396, -0.051415134221315384, 0.0430104099214077, -0.07203684002161026, 0.07593844830989838, -0.0561346597969532, 0.03496672585606575, -0.0169995054602623, 0.006926191039383411, -0.03628193214535713, 0.015725303441286087, 0.013237599283456802, 0.09498800337314606, -0.029921075329184532, -0.04365704953670502, 0.020263200625777245, -0.030071495100855827, 0.006217393558472395, 0.038679882884025574, 0.021222908049821854, 0.06221899390220642, 0.06625539064407349, -0.022484824061393738, 0.02289886772632599, -0.03951739892363548, 0.014104776084423065, -0.03165435045957565, 0.061149030923843384, -0.0842239186167717, -0.0025270457845181227, -0.01711566187441349, -0.04003957286477089, 0.000017395581380696967, -0.004253593739122152, -0.10569612681865692, 0.051579806953668594, 0.009516844525933266, -0.045864835381507874, -0.05029553547501564, 0.06654027849435806, 0.0865708515048027, -0.053450360894203186, -0.005401297472417355, 0.046314071863889694, -0.012789670377969742, 0.021083993837237358, 0.04850815609097481, -0.04085034504532814, -0.062354620546102524, 0.01178023125976324, -0.09380430728197098, -6.565477577388183e-33, 0.08894690126180649, 0.04410267993807793, 0.002565569244325161, 0.007156834937632084, -0.027072153985500336, -0.015696899965405464, -0.07359655946493149, 0.005886593833565712, -0.02747584879398346, -0.06294188648462296, -0.05502840131521225, -0.031465932726860046, 0.015145113691687584, 0.01098897960036993, -0.09741010516881943, 0.03274945914745331, -0.10943996906280518, -0.05705580115318298, 0.0073789265006780624, 0.0649290531873703, -0.03762269765138626, -0.031639423221349716, -0.026551900431513786, 0.0166843943297863, -0.04318884015083313, -0.051329150795936584, 0.06467118859291077, 0.07207880169153214, 0.013055898249149323, -0.08734476566314697, -0.04204031825065613, -0.0708962231874466, -0.03261273354291916, 0.06081320345401764, 0.06185416132211685, -0.028121499344706535, 0.03368392586708069, 0.011015022173523903, -0.004716807045042515, 0.02506290189921856, 0.07625602185726166, 0.035551536828279495, -0.03598753362894058, -0.025776108726859093, -0.07438696175813675, 0.1325819194316864, 0.004231197293847799, 0.012158130295574665, 0.03801138699054718, -0.11336679011583328, -0.04928332567214966, -0.020137468352913857, 0.004656955599784851, 0.15390615165233612, -0.050027329474687576, 0.035825327038764954, 0.024062063544988632, 0.10286997258663177, -0.054552994668483734, 0.007723939139395952, 0.04348209872841835, -0.07671333104372025, 0.09410426765680313, 0.02843615412712097, 0.07109970599412918, -0.028651582077145576, 0.00614898931235075, 0.024380868300795555, 0.004285695031285286, 0.014867441728711128, 0.011975309811532497, 0.009878233075141907, -0.048311639577150345, 0.029266688972711563, -0.029243703931570053, 0.014762711711227894, 0.02768765389919281, -0.023406583815813065, 0.05471700429916382, 0.00536289531737566, -0.0805300921201706, 0.07252303510904312, -0.056107889860868454, -0.009587395004928112, 0.059777528047561646, 0.09166420996189117, 0.08422823995351791, 0.08394233137369156, 0.07593456655740738, 0.01862681843340397, -0.004336735233664513, 0.02210044674575329, -0.02837156504392624, 0.109377421438694, -0.040149811655282974, -5.9276469954738786e-8, 0.04227016493678093, -0.004457272123545408, -0.03718383237719536, 0.010993875563144684, 0.08606750518083572, -0.015093854628503323, 0.03507998585700989, -0.03181885927915573, -0.07038892060518265, -0.024745650589466095, -0.0857701227068901, 0.046175528317689896, 0.017879681661725044, -0.014024494215846062, 0.08978324383497238, -0.012162856757640839, 0.007329978980123997, 0.03212587162852287, 0.0433940589427948, -0.06232764199376106, -0.03720315918326378, -0.055500395596027374, 0.0557871088385582, 0.042992137372493744, -0.01112279947847128, 0.04364708438515663, 0.04837103933095932, 0.07178995758295059, 0.07150664925575256, -0.01852492056787014, -0.02390379272401333, 0.004910496063530445, -0.06441435217857361, 0.030986808240413666, 0.06466267257928848, 0.050908997654914856, -0.12588471174240112, 0.03757038712501526, 0.10133940726518631, 0.06477902084589005, 0.03723495453596115, -0.028203556314110756, -0.10168161988258362, 0.023603642359375954, -0.025344427675008774, 0.08338670432567596, -0.02953474223613739, 0.0496537908911705, 0.004268723074346781, 0.01619420386850834, -0.004003198817372322, -0.056507475674152374, 0.008264665491878986, 0.03668871521949768, -0.03595307841897011, 0.09702134132385254, 0.017486223950982094, -0.03423885256052017, 0.05540747195482254, 0.004397077485918999, 0.029747655615210533, 0.02424631454050541, -0.011344586499035358, 0.003471784293651581 ]
0.159003
{{< feature-state state="beta" for\_k8s\_version="v1.26" >}} ## {{% heading "prerequisites" %}} You will need to have the following tools installed: - `cosign` ([install guide](https://docs.sigstore.dev/cosign/system\_config/installation/)) - `curl` (often provided by your operating system) - `jq` ([download jq](https://jqlang.github.io/jq/download/)) ## Verifying binary signatures The Kubernetes release process signs all binary artifacts (tarballs, SPDX files, standalone binaries) by using cosign's keyless signing. To verify a particular binary, retrieve it together with its signature and certificate: ```bash URL=https://dl.k8s.io/release/v{{< skew currentPatchVersion >}}/bin/linux/amd64 BINARY=kubectl FILES=( "$BINARY" "$BINARY.sig" "$BINARY.cert" ) for FILE in "${FILES[@]}"; do curl -sSfL --retry 3 --retry-delay 3 "$URL/$FILE" -o "$FILE" done ``` Then verify the blob by using `cosign verify-blob`: ```shell cosign verify-blob "$BINARY" \ --signature "$BINARY".sig \ --certificate "$BINARY".cert \ --certificate-identity krel-staging@k8s-releng-prod.iam.gserviceaccount.com \ --certificate-oidc-issuer https://accounts.google.com ``` {{< note >}} Cosign 2.0 requires the `--certificate-identity` and `--certificate-oidc-issuer` options. To learn more about keyless signing, please refer to [Keyless Signatures](https://docs.sigstore.dev/cosign/signing/overview/). Previous versions of Cosign required that you set `COSIGN\_EXPERIMENTAL=1`. For additional information, please refer to the [sigstore Blog](https://blog.sigstore.dev/cosign-2-0-released/) {{< /note >}} ## Verifying image signatures For a complete list of images that are signed please refer to [Releases](/releases/download/). Pick one image from this list and verify its signature using the `cosign verify` command: ```shell cosign verify registry.k8s.io/kube-apiserver-amd64:v{{< skew currentPatchVersion >}} \ --certificate-identity krel-trust@k8s-releng-prod.iam.gserviceaccount.com \ --certificate-oidc-issuer https://accounts.google.com \ | jq . ``` ### Verifying images for all control plane components To verify all signed control plane images for the latest stable version (v{{< skew currentPatchVersion >}}), please run the following commands: ```shell curl -Ls "https://sbom.k8s.io/$(curl -Ls https://dl.k8s.io/release/stable.txt)/release" \ | grep "SPDXID: SPDXRef-Package-registry.k8s.io" \ | grep -v sha256 | cut -d- -f3- | sed 's/-/\//' | sed 's/-v1/:v1/' \ | sort > images.txt input=images.txt while IFS= read -r image do cosign verify "$image" \ --certificate-identity krel-trust@k8s-releng-prod.iam.gserviceaccount.com \ --certificate-oidc-issuer https://accounts.google.com \ | jq . done < "$input" ``` Once you have verified an image, you can specify the image by its digest in your Pod manifests as per this example: ```console registry-url/image-name@sha256:45b23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5cb2 ``` For more information, please refer to the [Image Pull Policy](/docs/concepts/containers/images/#image-pull-policy) section. ## Verifying Image Signatures with Admission Controller For non-control plane images (for example [conformance image](https://github.com/kubernetes/kubernetes/blob/master/test/conformance/image/README.md)), signatures can also be verified at deploy time using [sigstore policy-controller](https://docs.sigstore.dev/policy-controller/overview) admission controller. Here are some helpful resources to get started with `policy-controller`: - [Installation](https://github.com/sigstore/helm-charts/tree/main/charts/policy-controller) - [Configuration Options](https://github.com/sigstore/policy-controller/tree/main/config) ## Verify the Software Bill Of Materials You can verify the Kubernetes Software Bill of Materials (SBOM) by using the sigstore certificate and signature, or the corresponding SHA files: ```shell # Retrieve the latest available Kubernetes release version VERSION=$(curl -Ls https://dl.k8s.io/release/stable.txt) # Verify the SHA512 sum curl -Ls "https://sbom.k8s.io/$VERSION/release" -o "$VERSION.spdx" echo "$(curl -Ls "https://sbom.k8s.io/$VERSION/release.sha512") $VERSION.spdx" | sha512sum --check # Verify the SHA256 sum echo "$(curl -Ls "https://sbom.k8s.io/$VERSION/release.sha256") $VERSION.spdx" | sha256sum --check # Retrieve sigstore signature and certificate curl -Ls "https://sbom.k8s.io/$VERSION/release.sig" -o "$VERSION.spdx.sig" curl -Ls "https://sbom.k8s.io/$VERSION/release.cert" -o "$VERSION.spdx.cert" # Verify the sigstore signature cosign verify-blob \ --certificate "$VERSION.spdx.cert" \ --signature "$VERSION.spdx.sig" \ --certificate-identity krel-staging@k8s-releng-prod.iam.gserviceaccount.com \ --certificate-oidc-issuer https://accounts.google.com \ "$VERSION.spdx" ```
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/verify-signed-artifacts.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/verify-signed-artifacts.md
[ 0.004346873611211777, 0.08288441598415375, 0.03389689326286316, -0.07283411175012589, -0.0375630147755146, -0.0011605563340708613, -0.016909433528780937, 0.00164466118440032, 0.0006235211621969938, 0.003895936766639352, 0.008128619752824306, -0.10356730967760086, 0.0006700397934764624, -0.012116453610360622, 0.043792974203825, -0.025754600763320923, -0.006117501296103001, 0.0035899500362575054, 0.045892659574747086, -0.09359871596097946, -0.00711067346855998, -0.007033517584204674, -0.0010543992975726724, -0.01818522997200489, -0.05179595202207565, -0.01775376684963703, 0.03344690054655075, 0.025208700448274612, 0.01766088791191578, -0.036799922585487366, -0.00795692391693592, 0.03807321935892105, 0.013864907436072826, -0.019355429336428642, 0.09169842302799225, 0.10330268740653992, 0.10201526433229446, -0.10470908880233765, 0.00007895684393588454, 0.014520382508635521, 0.03439391404390335, -0.0421617329120636, -0.06635472923517227, -0.04147312417626381, 0.06048153340816498, -0.01965862140059471, -0.037757888436317444, -0.0010731467045843601, -0.03849786892533302, -0.013668069615960121, 0.02782624214887619, -0.11718494445085526, 0.06117580458521843, 0.019409390166401863, 0.003286767052486539, 0.007377563044428825, -0.057166170328855515, 0.09511283785104752, 0.08980013430118561, 0.013789361342787743, 0.07704095542430878, 0.004101525526493788, -0.023835517466068268, 0.029762178659439087, -0.06751641631126404, 0.06309902667999268, 0.04170773923397064, -0.04286160692572594, 0.04793500900268555, -0.014857077039778233, 0.01655951514840126, -0.03883184492588043, -0.030788494274020195, -0.0411309190094471, -0.008933366276323795, 0.02003416419029236, -0.037884846329689026, 0.05274676904082298, 0.03685159981250763, -0.10418551415205002, -0.06417547911405563, 0.01586041785776615, 0.023327216506004333, -0.02827593684196472, -0.060895297676324844, 0.022633809596300125, -0.027204008772969246, 0.011520220898091793, 0.06329368054866791, 0.019585009664297104, 0.01878166012465954, -0.08977130055427551, 0.00623688567429781, -0.11989642679691315, 0.08539798855781555, 0.04470905661582947, 0.042451780289411545, 0.08046384155750275, 0.01447142381221056, 0.018239593133330345, -0.03187206760048866, -0.013779996894299984, -0.012494691647589207, 0.051600925624370575, 0.06197356805205345, 0.02509225718677044, 0.010082872584462166, -0.016219833865761757, 0.038459520787000656, 0.030670063570141792, -0.06650669872760773, 0.04147950932383537, -0.00288600055500865, -0.06190161779522896, 0.04154447466135025, 0.07012370228767395, 0.04065262898802757, 0.06844896078109741, 0.057176005095243454, 0.010418030433356762, 0.05851104483008385, -0.10687321424484253, -0.06650204956531525, -0.001771479845046997, -0.015092034824192524, 0.05785612016916275, -0.02397919073700905, 4.1335248656208e-33, 0.08207301050424576, 0.08096522092819214, 0.04795874282717705, -0.028844153508543968, -0.035648152232170105, -0.1440047174692154, -0.006410101894289255, -0.08776180446147919, -0.1449228972196579, 0.01201467402279377, -0.08404896408319473, 0.08069217205047607, -0.0765988826751709, -0.043783433735370636, -0.009693199768662453, 0.02173123136162758, -0.08611800521612167, -0.020642399787902832, 0.08574263006448746, 0.049791764467954636, 0.03734268993139267, -0.07051124423742294, -0.025295380502939224, 0.023213841021060944, 0.012013979256153107, -0.015219886787235737, 0.04625021666288376, 0.0021107273641973734, -0.0352320522069931, -0.0020079605747014284, 0.025776967406272888, -0.0294517632573843, 0.03630443289875984, 0.017712688073515892, -0.13501067459583282, -0.06183597072958946, -0.07856697589159012, 0.000797393498942256, -0.07930555194616318, -0.06519504636526108, 0.12305513024330139, -0.033269427716732025, -0.04033312574028969, -0.02552279271185398, 0.09008751809597015, -0.05130879953503609, -0.005511200986802578, -0.11128643900156021, 0.15413986146450043, 0.01083961222320795, -0.043341975659132004, 0.029695240780711174, -0.001341750961728394, -0.004010322038084269, 0.011231512762606144, 0.014669584110379219, 0.11257939785718918, -0.03791283071041107, -0.06275580823421478, -0.02639429271221161, -0.016339855268597603, 0.02838612161576748, 0.06988199800252914, -0.017142578959465027, 0.0479346364736557, -0.034548692405223846, -0.05654187500476837, 0.01792115345597267, -0.045139145106077194, 0.009572095237672329, -0.0853431448340416, 0.006298914086073637, -0.03537391126155853, 0.03670543059706688, -0.002644467866048217, -0.08035839349031448, 0.01707341894507408, -0.0003117592423222959, -0.019392866641283035, 0.006478650961071253, 0.02878265082836151, -0.028160089626908302, 0.028224680572748184, 0.04640578106045723, 0.06978899240493774, -0.049689315259456635, 0.011251239106059074, 0.015230471268296242, -0.0021258776541799307, 0.02299639768898487, -0.0038100210949778557, 0.01903456822037697, -0.024932311847805977, 0.028223231434822083, -0.1070336401462555, -5.1566858014940736e-33, 0.04560010880231857, 0.00818253867328167, 0.03254738450050354, 0.011762497015297413, -0.08122538775205612, 0.021773971617221832, 0.017641223967075348, -0.00820108875632286, -0.003988149110227823, -0.04291153699159622, 0.021713659167289734, -0.004338268656283617, 0.06670457869768143, -0.010598144493997097, -0.04417791962623596, -0.009404215961694717, -0.059111762791872025, 0.05670217052102089, 0.06935225427150726, 0.014362114481627941, 0.010839906521141529, 0.015931740403175354, 0.01576942391693592, 0.049377378076314926, -0.007806350477039814, -0.024385014548897743, 0.0913199633359909, 0.03242461383342743, -0.06118343397974968, -0.0031315337400883436, 0.05696925148367882, -0.04017055034637451, -0.04558340087532997, 0.0015607656678184867, 0.008556036278605461, -0.1300775408744812, 0.030483676120638847, 0.045078836381435394, 0.03863126039505005, -0.03775026276707649, 0.02356220781803131, -0.003622334450483322, -0.0647583082318306, -0.014341690577566624, -0.008516326546669006, 0.016704853624105453, 0.10795451700687408, 0.02841906249523163, -0.018679866567254066, -0.043268684297800064, 0.01510976068675518, 0.019182955846190453, -0.06997833400964737, 0.04580216109752655, -0.05720120295882225, 0.09599121659994125, -0.027879172936081886, 0.10211600363254547, 0.018182966858148575, 0.008901935070753098, -0.000972538604401052, -0.07265514880418777, 0.058962494134902954, -0.020624758675694466, 0.025939010083675385, -0.04768386855721474, -0.034270018339157104, 0.06232065707445145, 0.02482597529888153, 0.0021721934899687767, -0.050759509205818176, -0.02817319892346859, 0.01177886687219143, 0.00362831586971879, 0.07628107815980911, -0.04563020542263985, -0.05624694377183914, 0.010288167744874954, 0.03779945150017738, 0.008964968845248222, -0.009755406528711319, 0.03856857866048813, -0.027926156297326088, 0.03274969756603241, 0.054544541984796524, 0.02334624156355858, 0.06680033355951309, 0.01983962021768093, 0.04871106892824173, 0.04629966989159584, -0.009904105216264725, 0.025866324082016945, -0.007959817536175251, 0.06405876576900482, -0.00908680446445942, -5.761659238601169e-8, 0.05388185754418373, -0.06343130022287369, -0.0644325390458107, -0.038563650101423264, 0.04850443825125694, 0.04403655603528023, -0.02176031842827797, -0.13411252200603485, -0.0405246801674366, -0.08190647512674332, -0.026573536917567253, 0.035615142434835434, -0.0960000529885292, 0.04402840510010719, -0.024298744276165962, -0.042298443615436554, -0.08500417321920395, 0.10643324255943298, -0.019701333716511726, -0.0346217043697834, -0.010586146265268326, -0.054477836936712265, 0.05967489629983902, 0.03608023375272751, 0.032745104283094406, 0.0338858924806118, 0.07873615622520447, 0.0848625898361206, 0.05249841511249542, -0.02083507739007473, -0.031599532812833786, 0.00434320792555809, -0.02503356896340847, -0.013138959184288979, 0.005376226734369993, 0.018500182777643204, -0.03868903964757919, 0.10287477821111679, 0.10754787921905518, 0.020372940227389336, -0.0412113331258297, 0.019020717591047287, -0.11934012919664383, 0.020596124231815338, -0.06986180692911148, 0.03161056339740753, 0.001590253785252571, 0.04668097943067551, -0.045552708208560944, -0.023223884403705597, 0.04042671248316765, -0.10249066352844238, -0.015046314336359501, 0.05703423172235489, -0.05935533344745636, 0.036606691777706146, -0.02160686068236828, -0.05816556513309479, 0.07568361610174179, -0.03933366760611534, 0.03816717118024826, -0.03721572831273079, 0.07034356147050858, -0.06663057208061218 ]
0.130115
{{< feature-state for\_k8s\_version="v1.11" state="beta" >}} {{< glossary\_definition term\_id="cloud-controller-manager" length="all" prepend="The cloud-controller-manager is">}} ## Background Since cloud providers develop and release at a different pace compared to the Kubernetes project, abstracting the provider-specific code to the `cloud-controller-manager` binary allows cloud vendors to evolve independently from the core Kubernetes code. The Kubernetes project provides skeleton cloud-controller-manager code with Go interfaces to allow you (or your cloud provider) to plug in your own implementations. This means that a cloud provider can implement a cloud-controller-manager by importing packages from Kubernetes core; each cloudprovider will register their own code by calling `cloudprovider.RegisterCloudProvider` to update a global variable of available cloud providers. ## Developing ### Out of tree To build an out-of-tree cloud-controller-manager for your cloud: 1. Create a go package with an implementation that satisfies [cloudprovider.Interface](https://github.com/kubernetes/cloud-provider/blob/master/cloud.go). 2. Use [`main.go` in cloud-controller-manager](https://github.com/kubernetes/kubernetes/blob/master/cmd/cloud-controller-manager/main.go) from Kubernetes core as a template for your `main.go`. As mentioned above, the only difference should be the cloud package that will be imported. 3. Import your cloud package in `main.go`, ensure your package has an `init` block to run [`cloudprovider.RegisterCloudProvider`](https://github.com/kubernetes/cloud-provider/blob/master/plugins.go). Many cloud providers publish their controller manager code as open source. If you are creating a new cloud-controller-manager from scratch, you could take an existing out-of-tree cloud controller manager as your starting point. ### In tree For in-tree cloud providers, you can run the in-tree cloud controller manager as a {{< glossary\_tooltip term\_id="daemonset" >}} in your cluster. See [Cloud Controller Manager Administration](/docs/tasks/administer-cluster/running-cloud-controller/) for more details.
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/developing-cloud-controller-manager.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/developing-cloud-controller-manager.md
[ -0.03122011013329029, -0.02861716039478779, 0.05258884280920029, 0.008661461994051933, -0.021047430112957954, 0.06734944880008698, 0.009069206193089485, -0.02377483621239662, 0.046548280864953995, 0.10192269831895828, 0.03528384864330292, -0.035359933972358704, -0.008055527694523335, -0.03408694267272949, 0.036797862499952316, 0.029883090406656265, 0.07082562893629074, -0.02486143633723259, -0.026471532881259918, -0.05707136541604996, -0.0036006781738251448, 0.027122441679239273, -0.02047085575759411, 0.0363982692360878, -0.10023613274097443, 0.022882703691720963, -0.05722421780228615, -0.0284714475274086, 0.016097381711006165, 0.041685860604047775, -0.05135798081755638, -0.03772062435746193, -0.01663835160434246, 0.06339859217405319, 0.01027620118111372, -0.0032268527429550886, -0.026426931843161583, -0.053132638335227966, -0.12085361778736115, 0.03838362172245979, 0.035973142832517624, -0.06785894185304642, -0.1061747819185257, -0.07348469644784927, 0.053260691463947296, 0.0241809394210577, -0.03134610876441002, -0.01444296259433031, -0.013056769035756588, -0.06124843657016754, 0.06841066479682922, -0.13680125772953033, 0.0212133526802063, -0.03060479462146759, 0.03866161033511162, 0.017326777800917625, -0.040054768323898315, 0.031064610928297043, 0.09478658437728882, 0.0040602777153253555, 0.031728845089673996, -0.015517299994826317, 0.020429767668247223, -0.012359695509076118, -0.014496973715722561, 0.0016047320095822215, 0.03404537960886955, 0.03241806477308273, -0.0013636760413646698, -0.017260925844311714, 0.0394313745200634, -0.03398112580180168, -0.01598229445517063, 0.006406272761523724, -0.0025781274307519197, -0.04235505685210228, -0.04247372969985008, 0.09751348197460175, 0.04033849760890007, -0.05114475265145302, 0.0603698268532753, 0.07897327840328217, 0.0517398938536644, 0.06810314953327179, -0.108393594622612, -0.05408739671111107, -0.028094066306948662, 0.01202434953302145, 0.0748494416475296, -0.03000064566731453, 0.019890915602445602, -0.08277322351932526, 0.08760420233011246, -0.11190372705459595, -0.004781607072800398, 0.02406633272767067, -0.036506760865449905, -0.03979671373963356, 0.029271531850099564, -0.02129100076854229, -0.0775589868426323, -0.024294601753354073, 0.024082506075501442, -0.025315510109066963, 0.042801711708307266, -0.005830804351717234, -0.05781753733754158, 0.012963192537426949, 0.040135059505701065, 0.007935494184494019, -0.02172483317553997, 0.02814243547618389, -0.02944158762693405, -0.020041991025209427, 0.04360884055495262, -0.00007794832345098257, -0.0039449953474104404, 0.0024998271837830544, 0.028649335727095604, 0.0912327989935875, 0.014269473031163216, -0.12806561589241028, 0.010327914729714394, 0.047841574996709824, -0.05276678502559662, 0.08274057507514954, -0.10308127105236053, 3.8466946931285616e-33, 0.057338688522577286, 0.0035276184789836407, 0.02117934264242649, 0.016883743926882744, 0.04109877720475197, -0.0785343199968338, 0.03137785196304321, -0.02497066557407379, -0.043182093650102615, 0.01512475311756134, -0.07442101836204529, 0.04888426139950752, -0.024241631850600243, 0.0240726787596941, 0.05045001208782196, -0.028078312054276466, -0.08227157592773438, 0.021159380674362183, 0.14325746893882751, -0.047557152807712555, 0.011163259856402874, -0.018186679109930992, 0.0355699397623539, -0.03106001764535904, 0.13298484683036804, -0.029758108779788017, 0.028105776757001877, -0.044932108372449875, 0.054353583604097366, -0.020708290860056877, 0.032466985285282135, -0.02846725843846798, 0.001681745401583612, -0.0002575803373474628, -0.1170789897441864, -0.028641948476433754, -0.10903599858283997, -0.016212962567806244, -0.05851348489522934, 0.0384557880461216, -0.01406619418412447, -0.03528044745326042, -0.07850246131420135, -0.04669409990310669, 0.032477300614118576, -0.015314729884266853, 0.038781195878982544, -0.09368641674518585, 0.08027490228414536, 0.012873845174908638, -0.03805755078792572, -0.011091711930930614, 0.013222401030361652, -0.0006724288687109947, 0.05150178074836731, 0.015670448541641235, 0.1143706813454628, -0.06840444356203079, 0.010470866225659847, -0.021663153544068336, -0.04751751199364662, -0.08077829331159592, -0.020458335056900978, -0.011953393928706646, 0.02945675142109394, -0.030637750402092934, -0.038645315915346146, 0.054476018995046616, -0.028992148116230965, -0.043889112770557404, -0.05146355554461479, 0.02149564027786255, -0.014469829387962818, -0.027270907536149025, 0.04890246316790581, -0.09442079812288284, -0.031903158873319626, 0.010044245980679989, -0.11998288333415985, 0.02870204485952854, -0.0031561697833240032, -0.013410872779786587, -0.022007964551448822, 0.10110080242156982, 0.012784015387296677, -0.050112657248973846, 0.04285497963428497, 0.029053375124931335, -0.005344729404896498, 0.015830930322408676, -0.054444920271635056, -0.07431253790855408, 0.014993204735219479, 0.025472396984696388, -0.02049294114112854, -4.956115975859067e-33, 0.0740087702870369, -0.051800355315208435, -0.01212125364691019, 0.026259437203407288, 0.08697214722633362, -0.014126422815024853, 0.009611539542675018, 0.02217700704932213, -0.049367476254701614, -0.05860910192131996, -0.017008058726787567, 0.01684023067355156, 0.03608078137040138, 0.05380536615848541, -0.01149488054215908, 0.008468644693493843, -0.13316720724105835, -0.0733087956905365, 0.0018715900368988514, 0.006234378088265657, -0.0315852090716362, -0.07382342219352722, 0.07180508971214294, -0.024701286107301712, -0.02075524628162384, 0.004063006490468979, 0.027952827513217926, 0.07965949922800064, 0.040543507784605026, 0.012797639705240726, -0.03328375518321991, -0.07831437140703201, -0.022849079221487045, 0.026805812492966652, -0.010077327489852905, -0.03569077327847481, 0.007180927321314812, 0.03806536644697189, -0.02737521007657051, -0.020170170813798904, 0.026240617036819458, -0.0820070281624794, 0.03345726802945137, -0.07386278361082077, 0.00257444242015481, 0.09717999398708344, 0.05657743662595749, 0.030146420001983643, -0.045983534306287766, -0.1239667609333992, -0.02448990009725094, 0.02658925950527191, -0.11865020543336868, 0.07182592153549194, -0.07338087260723114, 0.04862859472632408, 0.08100654929876328, 0.0861155092716217, -0.03119739145040512, 0.014717110432684422, 0.0323990061879158, -0.1270992010831833, 0.11407450586557388, 0.02687850035727024, -0.03097783774137497, 0.003510501701384783, 0.0180605910718441, 0.03910781070590019, -0.022033846005797386, 0.004325514659285545, -0.10719694197177887, -0.11868243664503098, 0.0021702952217310667, 0.013009562157094479, -0.021425101906061172, -0.04867992177605629, -0.005402442067861557, -0.04223344847559929, 0.0650346428155899, -0.03986877575516701, -0.026166390627622604, 0.034217216074466705, -0.010013834573328495, -0.005556129850447178, 0.07922545075416565, 0.040203727781772614, 0.12590400874614716, 0.06426558643579483, 0.051944393664598465, 0.03864511474967003, -0.021664636209607124, 0.020551716908812523, 0.008634806610643864, 0.13287019729614258, -0.035898786038160324, -5.42398410630085e-8, 0.029556144028902054, 0.07464522868394852, -0.007149519398808479, -0.008619535714387894, 0.05815912410616875, -0.042493514716625214, 0.0597572922706604, -0.012355966493487358, -0.040916912257671356, -0.00867162924259901, -0.00885537825524807, 0.036652419716119766, -0.05829935520887375, 0.05366231128573418, 0.07584063708782196, 0.004410099238157272, -0.05624319612979889, 0.035464659333229065, 0.05423545464873314, -0.04120101407170296, -0.028704263269901276, 0.008622108958661556, 0.033197857439517975, -0.004683501087129116, 0.013098260387778282, 0.08232025802135468, 0.01862374134361744, 0.03710322082042694, 0.029821528121829033, 0.026687026023864746, 0.021121332421898842, 0.031383514404296875, -0.04822368547320366, 0.07866477221250534, 0.08217380195856094, 0.009014035575091839, -0.13210028409957886, 0.025937288999557495, 0.09506697952747345, 0.013069365173578262, -0.009856750257313251, 0.022838864475488663, -0.08309444040060043, 0.0014833813766017556, 0.0336044542491436, 0.05517321825027466, 0.03741076588630676, -0.011419683694839478, 0.0029079418163746595, 0.04281160980463028, 0.0020783396903425455, -0.0024390816688537598, -0.028822235763072968, 0.0510791577398777, -0.023846536874771118, -0.01934964209794998, 0.010197841562330723, -0.11303738504648209, 0.047087330371141434, 0.033541951328516006, -0.024010837078094482, -0.052465617656707764, 0.03282877430319786, -0.004280369263142347 ]
0.061161
This page provides hints on diagnosing DNS problems. ## {{% heading "prerequisites" %}} {{< include "task-tutorial-prereqs.md" >}} Your cluster must be configured to use the CoreDNS {{< glossary\_tooltip text="addon" term\_id="addons" >}} or its precursor, kube-dns. {{% version-check %}} ### Create a simple Pod to use as a test environment {{% code\_sample file="admin/dns/dnsutils.yaml" %}} {{< note >}} This example creates a pod in the `default` namespace. DNS name resolution for services depends on the namespace of the pod. For more information, review [DNS for Services and Pods](/docs/concepts/services-networking/dns-pod-service/#what-things-get-dns-names). {{< /note >}} Use that manifest to create a Pod: ```shell kubectl apply -f https://k8s.io/examples/admin/dns/dnsutils.yaml ``` ``` pod/dnsutils created ``` …and verify its status: ```shell kubectl get pods dnsutils ``` ``` NAME READY STATUS RESTARTS AGE dnsutils 1/1 Running 0 ``` Once that Pod is running, you can exec `nslookup` in that environment. If you see something like the following, DNS is working correctly. ```shell kubectl exec -i -t dnsutils -- nslookup kubernetes.default ``` ``` Server: 10.0.0.10 Address 1: 10.0.0.10 Name: kubernetes.default Address 1: 10.0.0.1 ``` If the `nslookup` command fails, check the following: ### Check the local DNS configuration first Take a look inside the resolv.conf file. (See [Customizing DNS Service](/docs/tasks/administer-cluster/dns-custom-nameservers) and [Known issues](#known-issues) below for more information) ```shell kubectl exec -ti dnsutils -- cat /etc/resolv.conf ``` Verify that the search path and name server are set up like the following (note that search path may vary for different cloud providers): ``` search default.svc.cluster.local svc.cluster.local cluster.local google.internal c.gce\_project\_id.internal nameserver 10.0.0.10 options ndots:5 ``` Errors such as the following indicate a problem with the CoreDNS (or kube-dns) add-on or with associated Services: ```shell kubectl exec -i -t dnsutils -- nslookup kubernetes.default ``` ``` Server: 10.0.0.10 Address 1: 10.0.0.10 nslookup: can't resolve 'kubernetes.default' ``` or ```shell kubectl exec -i -t dnsutils -- nslookup kubernetes.default ``` ``` Server: 10.0.0.10 Address 1: 10.0.0.10 kube-dns.kube-system.svc.cluster.local nslookup: can't resolve 'kubernetes.default' ``` ### Check if the DNS pod is running Use the `kubectl get pods` command to verify that the DNS pod is running. ```shell kubectl get pods --namespace=kube-system -l k8s-app=kube-dns ``` ``` NAME READY STATUS RESTARTS AGE ... coredns-7b96bf9f76-5hsxb 1/1 Running 0 1h coredns-7b96bf9f76-mvmmt 1/1 Running 0 1h ... ``` {{< note >}} The value for label `k8s-app` is `kube-dns` for both CoreDNS and kube-dns deployments. {{< /note >}} If you see that no CoreDNS Pod is running or that the Pod has failed/completed, the DNS add-on may not be deployed by default in your current environment and you will have to deploy it manually. ### Check for errors in the DNS pod Use the `kubectl logs` command to see logs for the DNS containers. For CoreDNS: ```shell kubectl logs --namespace=kube-system -l k8s-app=kube-dns ``` Here is an example of a healthy CoreDNS log: ``` .:53 2018/08/15 14:37:17 [INFO] CoreDNS-1.2.2 2018/08/15 14:37:17 [INFO] linux/amd64, go1.10.3, 2e322f6 CoreDNS-1.2.2 linux/amd64, go1.10.3, 2e322f6 2018/08/15 14:37:17 [INFO] plugin/reload: Running configuration MD5 = 24e6c59e83ce706f07bcc82c31b1ea1c ``` See if there are any suspicious or unexpected messages in the logs. ### Is DNS service up? Verify that the DNS service is up by using the `kubectl get service` command. ```shell kubectl get svc --namespace=kube-system ``` ``` NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE ... kube-dns ClusterIP 10.0.0.10 53/UDP,53/TCP 1h ... ``` {{< note >}} The service name is `kube-dns` for both CoreDNS and kube-dns deployments. {{< /note >}} If you have created the Service or in the case it should be created by default but it does not appear, see [debugging Services](/docs/tasks/debug/debug-application/debug-service/) for more information. ### Are DNS endpoints exposed? You can verify that DNS endpoints are exposed by using the `kubectl get endpointslice` command. ```shell kubectl get endpointslice
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/dns-debugging-resolution.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/dns-debugging-resolution.md
[ -0.05325407162308693, -0.04919232055544853, 0.06883932650089264, -0.036013539880514145, -0.11132055521011353, -0.03205607458949089, -0.047005657106637955, -0.05105585232377052, 0.03533278405666351, 0.06402476131916046, -0.028741229325532913, -0.07292710989713669, -0.04680640622973442, -0.00866602174937725, 0.0412711501121521, -0.016658294945955276, 0.02418959140777588, -0.0697425901889801, 0.0034269506577402353, -0.06443201005458832, 0.02599165216088295, 0.09997718036174774, 0.029998652637004852, 0.021973278373479843, -0.06379582732915878, -0.03671587258577347, -0.06643270701169968, -0.0038407708052545786, 0.030336083844304085, 0.0014637314015999436, 0.005872833542525768, 0.02107471413910389, -0.0016433198470622301, 0.05509860813617706, 0.12438298761844635, 0.09424930810928345, 0.040954433381557465, 0.017554111778736115, -0.10096245259046555, -0.01278628222644329, 0.09053637087345123, -0.033441971987485886, 0.013785647228360176, -0.0031718811951577663, 0.010630113072693348, 0.04710469767451286, -0.004551522899419069, 0.016761386767029762, 0.031667519360780716, -0.04129175469279289, 0.014171791262924671, -0.10963721573352814, 0.06926075369119644, -0.03668496012687683, 0.06888850778341293, 0.06122060865163803, -0.044232480227947235, 0.05036976560950279, 0.05749209225177765, -0.014482833445072174, -0.009714107029139996, -0.015283646993339062, 0.023777136579155922, -0.08065280318260193, 0.0047676111571490765, -0.0005033105262555182, 0.016686169430613518, 0.033316537737846375, -0.022375645115971565, 0.03412779048085213, 0.032599061727523804, 0.07513132691383362, 0.01141861081123352, -0.04936179146170616, -0.059998899698257446, 0.02145707607269287, -0.03451743721961975, 0.031208941712975502, -0.006964476779103279, -0.07607217878103256, 0.061694253236055374, 0.08895739167928696, 0.06594279408454895, 0.0770346149802208, -0.10369079560041428, -0.042861875146627426, 0.035117000341415405, -0.10121230036020279, 0.020583823323249817, -0.018575210124254227, 0.026448599994182587, -0.1162194162607193, 0.0029087315779179335, -0.12383431196212769, 0.04390710964798927, 0.053728535771369934, 0.03666821867227554, 0.0035629882477223873, -0.021027013659477234, -0.003699464024975896, 0.034190885722637177, -0.01005620788782835, 0.026592209935188293, -0.027869151905179024, 0.03790592774748802, 0.024799156934022903, -0.07645019143819809, -0.00937581341713667, 0.07350130379199982, 0.09756941348314285, 0.023679232224822044, 0.04836283251643181, 0.003308182815089822, 0.03934960067272186, -0.05302009731531143, -0.08527220785617828, 0.012375032529234886, -0.019743746146559715, 0.026855194941163063, 0.0016558724455535412, 0.023698894307017326, -0.08972997963428497, -0.045116182416677475, -0.015170684084296227, -0.06023070961236954, 0.05909009650349617, -0.01986275240778923, 3.587439414054706e-33, 0.07313799113035202, -0.06892341375350952, 0.006021143868565559, 0.009132672101259232, 0.00860675796866417, -0.10329271107912064, -0.04001135379076004, 0.043424177914857864, -0.07171742618083954, -0.00917974952608347, -0.05671943724155426, 0.06305579096078873, 0.05764282867312431, -0.06574436277151108, -0.028579963371157646, 0.019869329407811165, -0.0047947196289896965, 0.027882486581802368, 0.09142374992370605, 0.029732035472989082, 0.012345422059297562, -0.028830792754888535, -0.0063523841090500355, 0.0002303346700500697, -0.01775365322828293, 0.022450532764196396, 0.016402220353484154, -0.12164474278688431, 0.027371760457754135, -0.03216534107923508, 0.021489547565579414, -0.05598151683807373, 0.0378107875585556, 0.04134972020983696, -0.10476870089769363, 0.007901790551841259, 0.05501221865415573, -0.0008345028618350625, -0.07521121948957443, -0.07228663563728333, 0.040799304842948914, 0.004238220863044262, -0.05902697518467903, -0.012510664761066437, 0.09726835787296295, 0.014331943355500698, 0.06635700911283493, -0.11564034223556519, 0.10388704389333725, 0.056594133377075195, -0.0016564882826060057, -0.10946599394083023, 0.016940969973802567, -0.03295552730560303, 0.055647533386945724, 0.09719132632017136, 0.05908047407865524, -0.04106779769062996, -0.043732646852731705, -0.04277915135025978, -0.058289941400289536, -0.03445291891694069, -0.037881262600421906, -0.020000066608190536, 0.05793503671884537, -0.020273739472031593, 0.00454592052847147, 0.06964250653982162, 0.03582335636019707, 0.008326997049152851, -0.046684201806783676, 0.009846760891377926, 0.00007195627404144034, 0.10285434126853943, 0.0019949127454310656, -0.03818614408373833, -0.021499142050743103, -0.012682432308793068, -0.13004440069198608, 0.004143574740737677, 0.030770158395171165, -0.030899755656719208, -0.07606051862239838, 0.09870017319917679, 0.028299100697040558, 0.02749016508460045, 0.012957855127751827, 0.0047915298491716385, -0.059625402092933655, 0.011360346339643002, -0.00012939840962644666, -0.007901513017714024, -0.06799381226301193, 0.04981083795428276, -0.11745016276836395, -4.427813549769006e-33, 0.07785963267087936, -0.02763817459344864, -0.042165640741586685, 0.02541021816432476, -0.012964525260031223, 0.0006457404233515263, 0.05427424609661102, 0.10084754228591919, 0.003714010352268815, -0.09881561249494553, -0.017119143158197403, -0.049087002873420715, 0.06963267177343369, 0.02892845869064331, -0.037654049694538116, 0.08127929270267487, -0.06574535369873047, -0.033991243690252304, -0.01785869710147381, 0.026045626029372215, -0.04820168390870094, 0.025680996477603912, 0.006143372505903244, 0.017705734819173813, -0.036472029983997345, 0.01150288712233305, 0.04171692579984665, -0.01000176090747118, -0.052210673689842224, -0.024113578721880913, 0.040897756814956665, -0.003900775918737054, -0.040861621499061584, 0.013860895298421383, 0.024329639971256256, -0.024079198017716408, -0.022186389192938805, -0.036494240164756775, 0.011359182186424732, -0.05801153555512428, 0.043016329407691956, 0.004271602723747492, -0.08216680586338043, -0.029843514785170555, -0.02396315149962902, -0.011991629377007484, 0.040933117270469666, 0.019930332899093628, -0.04966910928487778, -0.03840213268995285, 0.04827134311199188, -0.07648895680904388, -0.06982772797346115, 0.05603604018688202, -0.033874984830617905, 0.08582659065723419, 0.04909989610314369, -0.0021452594082802534, -0.03154310584068298, 0.06643404066562653, 0.03758116066455841, -0.1331331431865692, -0.00020918041991535574, 0.05597808212041855, -0.0007245343877002597, -0.017337769269943237, -0.029189761728048325, 0.06684494763612747, 0.05474982038140297, -0.021384716033935547, -0.027518434450030327, -0.009804708883166313, 0.022098738700151443, 0.008923016488552094, 0.017240706831216812, 0.015785928815603256, 0.03471396863460541, -0.005668513476848602, 0.0032876012846827507, 0.027161171659827232, -0.054997704923152924, 0.09816476702690125, -0.08512694388628006, 0.012672091834247112, 0.03501772880554199, 0.08659318089485168, 0.11917638033628464, 0.11258276551961899, 0.006501427851617336, 0.1077212318778038, 0.007748105097562075, 0.008009595796465874, 0.00715800654143095, 0.1028899997472763, -0.08114665746688843, -4.576455125970824e-8, 0.0375528559088707, 0.05783631280064583, -0.0737062469124794, 0.040138427168130875, 0.01714973896741867, 0.028024112805724144, 0.05392833426594734, 0.01659439131617546, -0.08369050174951553, 0.015161514282226562, -0.05420846864581108, 0.05047312751412392, -0.16084937751293182, 0.06769794225692749, -0.005663928110152483, -0.021171603351831436, 0.0009128636447712779, 0.08269915729761124, -0.021805154159665108, -0.06976720690727234, -0.04638459160923958, -0.017157968133687973, 0.00034769534249790013, -0.06216010823845863, -0.03887868672609329, 0.04353730380535126, 0.06093677505850792, -0.035863280296325684, 0.004075966775417328, -0.0011475897626951337, -0.028589321300387383, 0.001995803788304329, -0.08068927377462387, 0.036537542939186096, -0.030489645898342133, 0.00529832299798727, -0.0536346361041069, 0.029529763385653496, 0.05352377891540527, 0.04622546210885048, -0.003668710822239518, 0.02724519558250904, -0.022370656952261925, -0.01685602404177189, -0.01638033613562584, 0.06799304485321045, -0.0012364560971036553, 0.09174191951751709, 0.04611625149846077, -0.012013448402285576, -0.052393872290849686, -0.030478209257125854, -0.0071295686066150665, 0.03389565274119377, -0.04779543727636337, -0.015695562586188316, -0.023787353187799454, -0.04181939736008644, -0.02117079496383667, -0.001885710982605815, 0.007964130491018295, -0.0015725664561614394, -0.01173437386751175, 0.037615735083818436 ]
0.111212
you have created the Service or in the case it should be created by default but it does not appear, see [debugging Services](/docs/tasks/debug/debug-application/debug-service/) for more information. ### Are DNS endpoints exposed? You can verify that DNS endpoints are exposed by using the `kubectl get endpointslice` command. ```shell kubectl get endpointslice -l k8s.io/service-name=kube-dns --namespace=kube-system ``` ``` NAME ADDRESSTYPE PORTS ENDPOINTS AGE kube-dns-zxoja IPv4 53 10.180.3.17,10.180.3.17 1h ``` If you do not see the endpoints, see the endpoints section in the [debugging Services](/docs/tasks/debug/debug-application/debug-service/) documentation. ### Are DNS queries being received/processed? You can verify if queries are being received by CoreDNS by adding the `log` plugin to the CoreDNS configuration (aka Corefile). The CoreDNS Corefile is held in a {{< glossary\_tooltip text="ConfigMap" term\_id="configmap" >}} named `coredns`. To edit it, use the command: ``` kubectl -n kube-system edit configmap coredns ``` Then add `log` in the Corefile section per the example below: ```yaml apiVersion: v1 kind: ConfigMap metadata: name: coredns namespace: kube-system data: Corefile: | .:53 { log errors health kubernetes cluster.local in-addr.arpa ip6.arpa { pods insecure upstream fallthrough in-addr.arpa ip6.arpa } prometheus :9153 forward . /etc/resolv.conf cache 30 loop reload loadbalance } ``` After saving the changes, it may take up to minute or two for Kubernetes to propagate these changes to the CoreDNS pods. Next, make some queries and view the logs per the sections above in this document. If CoreDNS pods are receiving the queries, you should see them in the logs. Here is an example of a query in the log: ``` .:53 2018/08/15 14:37:15 [INFO] CoreDNS-1.2.0 2018/08/15 14:37:15 [INFO] linux/amd64, go1.10.3, 2e322f6 CoreDNS-1.2.0 linux/amd64, go1.10.3, 2e322f6 2018/09/07 15:29:04 [INFO] plugin/reload: Running configuration MD5 = 162475cdf272d8aa601e6fe67a6ad42f 2018/09/07 15:29:04 [INFO] Reloading complete 172.17.0.18:41675 - [07/Sep/2018:15:29:11 +0000] 59925 "A IN kubernetes.default.svc.cluster.local. udp 54 false 512" NOERROR qr,aa,rd,ra 106 0.000066649s ``` ### Does CoreDNS have sufficient permissions? CoreDNS must be able to list {{< glossary\_tooltip text="service" term\_id="service" >}} and {{< glossary\_tooltip text="endpointslice" term\_id="endpoint-slice" >}} related resources to properly resolve service names. Sample error message: ``` 2022-03-18T07:12:15.699431183Z [INFO] 10.96.144.227:52299 - 3686 "A IN serverproxy.contoso.net.cluster.local. udp 52 false 512" SERVFAIL qr,aa,rd 145 0.000091221s ``` First, get the current ClusterRole of `system:coredns`: ```shell kubectl describe clusterrole system:coredns -n kube-system ``` Expected output: ``` PolicyRule: Resources Non-Resource URLs Resource Names Verbs --------- ----------------- -------------- ----- endpoints [] [] [list watch] namespaces [] [] [list watch] pods [] [] [list watch] services [] [] [list watch] endpointslices.discovery.k8s.io [] [] [list watch] ``` If any permissions are missing, edit the ClusterRole to add them: ```shell kubectl edit clusterrole system:coredns -n kube-system ``` Example insertion of EndpointSlices permissions: ``` ... - apiGroups: - discovery.k8s.io resources: - endpointslices verbs: - list - watch ... ``` ### Are you in the right namespace for the service? DNS queries that don't specify a namespace are limited to the pod's namespace. If the namespace of the pod and service differ, the DNS query must include the namespace of the service. This query is limited to the pod's namespace: ```shell kubectl exec -i -t dnsutils -- nslookup ``` This query specifies the namespace: ```shell kubectl exec -i -t dnsutils -- nslookup . ``` To learn more about name resolution, see [DNS for Services and Pods](/docs/concepts/services-networking/dns-pod-service/#what-things-get-dns-names). ## Known issues Some Linux distributions (e.g. Ubuntu) use a local DNS resolver by default (systemd-resolved). Systemd-resolved moves and replaces `/etc/resolv.conf` with a stub file that can cause a fatal forwarding loop when resolving names in upstream servers. This can be fixed manually by using kubelet's `--resolv-conf` flag to point to the correct `resolv.conf` (With `systemd-resolved`, this is `/run/systemd/resolve/resolv.conf`). kubeadm automatically detects `systemd-resolved`, and adjusts the kubelet flags accordingly. Kubernetes
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/dns-debugging-resolution.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/dns-debugging-resolution.md
[ -0.009880867786705494, -0.033238742500543594, 0.021056877449154854, -0.061646439135074615, -0.08660569041967392, -0.04214007779955864, -0.03799193352460861, -0.032053254544734955, 0.09805292636156082, 0.06634435057640076, -0.03629414364695549, -0.09795551002025604, -0.023751987144351006, -0.02316654659807682, 0.021702107042074203, -0.05982019007205963, 0.040905244648456573, -0.10188013315200806, 0.026174137368798256, -0.0668637603521347, 0.0076030949130654335, 0.06159953773021698, -0.07038746029138565, -0.03106190264225006, -0.025888053700327873, -0.024740373715758324, -0.03531378135085106, -0.03196374699473381, -0.013972624205052853, -0.028204957023262978, 0.015451534651219845, 0.0039127301424741745, -0.029585016891360283, 0.06747492402791977, 0.0854276493191719, 0.03233594819903374, 0.0757819414138794, 0.039596594870090485, -0.09135688841342926, 0.03300021216273308, 0.10381254553794861, -0.030111879110336304, 0.012782762758433819, -0.021115228533744812, 0.03342797979712486, 0.010974038392305374, -0.026224596425890923, 0.005896028131246567, 0.018020708113908768, -0.06683304160833359, 0.029033439233899117, -0.027137083932757378, 0.04039803892374039, -0.0033098929561674595, 0.09492330998182297, 0.003702569520100951, -0.06373457610607147, 0.022569408640265465, 0.06774779409170151, 0.03672090917825699, 0.009599249809980392, 0.012040344998240471, 0.030207479372620583, -0.01876702345907688, -0.016765259206295013, -0.056488294154405594, 0.08318377286195755, 0.03759586438536644, 0.010632360354065895, -0.0016818434232845902, 0.06201592832803726, 0.038012243807315826, -0.03891276568174362, -0.10507304221391678, -0.005520402453839779, 0.05884799733757973, -0.030109744518995285, 0.005122134927660227, -0.04367649182677269, -0.12177825719118118, 0.005356978625059128, 0.04228094220161438, 0.051988232880830765, 0.06867697089910507, -0.11346319317817688, -0.04500751197338104, -0.018489651381969452, -0.0968703180551529, -0.003926669247448444, -0.0063102757558226585, 0.012525742873549461, -0.06497456878423691, -0.07327520847320557, -0.11111335456371307, 0.08139786124229431, 0.038778576999902725, -0.020664891228079796, 0.028545815497636795, -0.002629609080031514, -0.014073857106268406, 0.05251527577638626, -0.009356983006000519, -0.015016541816294193, 0.01375031191855669, 0.04272015765309334, 0.0013949425192549825, -0.047973550856113434, 0.025166215375065804, 0.04838979244232178, 0.11241357028484344, -0.02476891502737999, 0.022575654089450836, 0.012695451267063618, 0.020812474191188812, 0.03298204392194748, -0.04750823974609375, 0.039693642407655716, -0.036493416875600815, 0.03172578290104866, 0.009622624143958092, 0.054489925503730774, -0.03653895482420921, -0.08202444761991501, -0.0026203752495348454, -0.06549028307199478, 0.10712911188602448, 0.04312404245138168, 3.5450011292541445e-33, 0.10995376110076904, -0.035646628588438034, 0.08436896651983261, -0.022482911124825478, -0.0421999953687191, -0.09938599169254303, -0.05680408328771591, 0.035176146775484085, -0.0356878899037838, 0.05685519799590111, -0.08495453000068665, 0.06471899151802063, 0.03764749690890312, -0.05361852049827576, 0.007160518784075975, 0.1023179143667221, 0.020369555801153183, -0.04904932901263237, 0.03188496083021164, 0.05663028359413147, 0.009619575925171375, -0.07355456799268723, -0.030862819403409958, 0.023384172469377518, 0.03216930478811264, -0.029460981488227844, -0.03779494762420654, -0.061361800879240036, -0.0490870475769043, -0.028096390888094902, 0.016120266169309616, -0.08699017763137817, 0.0102048609405756, 0.032198380678892136, -0.07008051127195358, -0.0082832220941782, 0.058961257338523865, 0.052655261009931564, -0.125938281416893, -0.0633518397808075, 0.056936655193567276, -0.03197472542524338, -0.10513360798358917, 0.009926995262503624, 0.0531826876103878, 0.005144263617694378, -0.030155956745147705, -0.08235178142786026, 0.04326741024851799, 0.06653348356485367, 0.01121536735445261, -0.037582751363515854, 0.06984128803014755, -0.06040630489587784, 0.10571801662445068, 0.10073340684175491, 0.08811153471469879, -0.02963869273662567, -0.0626266673207283, 0.008592630736529827, -0.04115056246519089, -0.041708867996931076, -0.05272560194134712, -0.027198104187846184, 0.07647041976451874, -0.026538746431469917, 0.011516127735376358, 0.056143295019865036, 0.036610495299100876, -0.021660087630152702, -0.0735846608877182, 0.036563534289598465, 0.0519433468580246, 0.0913844183087349, 0.03507545217871666, -0.05420663580298424, -0.051300160586833954, -0.04429979994893074, -0.064336858689785, 0.02444607764482498, 0.08231353014707565, -0.03320499509572983, -0.02808421663939953, 0.010443253442645073, 0.05493776872754097, 0.021046964451670647, -0.023688841611146927, 0.006992074195295572, 0.004820564761757851, 0.017553264275193214, -0.011608041822910309, 0.02010932005941868, -0.02105364017188549, 0.043644051998853683, -0.088783860206604, -5.308324572750149e-33, -0.04253396391868591, 0.02982039749622345, -0.07513371109962463, 0.012407352216541767, -0.022432884201407433, 0.06519614905118942, 0.013630085624754429, 0.0817638635635376, -0.008899274282157421, -0.06279315054416656, 0.031776055693626404, -0.0630042552947998, 0.06437788903713226, 0.007739845663309097, -0.018711019307374954, 0.0865953266620636, -0.04524952918291092, -0.011684625409543514, -0.020008627325296402, 0.019193027168512344, -0.06777531653642654, 0.07072538882493973, 0.041355691850185394, -0.040150243788957596, -0.04524284228682518, 0.01121142040938139, 0.05104115232825279, -0.017669759690761566, -0.08427833020687103, -0.03740328177809715, 0.07070643454790115, -0.019854431971907616, -0.024510487914085388, 0.0652000904083252, -0.039588820189237595, -0.011147437617182732, -0.018447747454047203, 0.013759239576756954, 0.021734420210123062, -0.0824936032295227, -0.0502944178879261, 0.029032180085778236, -0.014161081984639168, 0.031915582716464996, -0.07654011994600296, 0.0032103233970701694, 0.02584761567413807, 0.01554061658680439, -0.016333211213350296, -0.05566656216979027, 0.020252272486686707, -0.024504153057932854, -0.026646021753549576, 0.12938743829727173, -0.0057800523936748505, 0.10695215314626694, 0.03451237827539444, 0.060091376304626465, 0.019194424152374268, 0.0239272378385067, 0.0278010256588459, -0.1327684372663498, -0.002077404409646988, 0.06418203562498093, 0.05357753112912178, -0.0048528192564845085, -0.01022794097661972, 0.05501894652843475, -0.006739214062690735, -0.06226922944188118, -0.032938238233327866, -0.02726409025490284, -0.026073388755321503, 0.01935686729848385, 0.010044890455901623, 0.037737373262643814, -0.030126938596367836, 0.007768617477267981, -0.05128263682126999, 0.07271570712327957, -0.03291499242186546, -0.003838932141661644, -0.08172998577356339, -0.03583667054772377, 0.022576449438929558, 0.010418693535029888, 0.0821189433336258, 0.05212905630469322, 0.02069077081978321, 0.046907246112823486, -0.01916789449751377, -0.013591321185231209, -0.08761195093393326, 0.058051444590091705, -0.037966039031744, -4.705529121906693e-8, 0.055938977748155594, 0.009631631895899773, -0.07644574344158173, 0.0002738414332270622, 0.02449754811823368, 0.0450945720076561, 0.03903238847851753, 0.023124413564801216, -0.0801713839173317, -0.01633364148437977, -0.04226543381810188, 0.03294225037097931, -0.10749255865812302, 0.01781615987420082, 0.08882062882184982, -0.06283418834209442, 0.06612563878297806, 0.03219085931777954, 0.02328456938266754, -0.08680086582899094, -0.04761996492743492, -0.024537639692425728, -0.03391185402870178, -0.07067973166704178, -0.02960931695997715, 0.04942058399319649, 0.055742695927619934, -0.029517758637666702, 0.09087184816598892, 0.03743172436952591, -0.03830485790967941, 0.026162417605519295, -0.04382050037384033, -0.026917096227407455, -0.0025156340561807156, 0.046262819319963455, -0.06779610365629196, 0.03866083547472954, 0.031837765127420425, 0.050890978425741196, -0.00195375201292336, 0.04239483177661896, -0.0642940029501915, 0.015819018706679344, -0.008846785873174667, 0.0675777867436409, 0.06027987599372864, 0.13727915287017822, 0.00827033445239067, -0.06907656043767929, -0.04377085343003273, -0.048569027334451675, 0.036805231124162674, -0.0029532138723880053, -0.054381053894758224, 0.035715971142053604, 0.013616768643260002, -0.06954559683799744, 0.0074075316078960896, 0.029313530772924423, -0.06015370413661003, 0.026244692504405975, -0.045946553349494934, 0.05127376690506935 ]
0.122184
`/etc/resolv.conf` with a stub file that can cause a fatal forwarding loop when resolving names in upstream servers. This can be fixed manually by using kubelet's `--resolv-conf` flag to point to the correct `resolv.conf` (With `systemd-resolved`, this is `/run/systemd/resolve/resolv.conf`). kubeadm automatically detects `systemd-resolved`, and adjusts the kubelet flags accordingly. Kubernetes installs do not configure the nodes' `resolv.conf` files to use the cluster DNS by default, because that process is inherently distribution-specific. This should probably be implemented eventually. Linux's libc (a.k.a. glibc) has a limit for the DNS `nameserver` records to 3 by default and Kubernetes needs to consume 1 `nameserver` record. This means that if a local installation already uses 3 `nameserver`s, some of those entries will be lost. To work around this limit, the node can run `dnsmasq`, which will provide more `nameserver` entries. You can also use kubelet's `--resolv-conf` flag. If you are using Alpine version 3.17 or earlier as your base image, DNS may not work properly due to a design issue with Alpine. Until musl version 1.24 didn't include TCP fallback to the DNS stub resolver meaning any DNS call above 512 bytes would fail. Please upgrade your images to Alpine version 3.18 or above. ## {{% heading "whatsnext" %}} - See [Autoscaling the DNS Service in a Cluster](/docs/tasks/administer-cluster/dns-horizontal-autoscaling/). - Read [DNS for Services and Pods](/docs/concepts/services-networking/dns-pod-service/)
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/dns-debugging-resolution.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/dns-debugging-resolution.md
[ -0.0191262885928154, -0.03971335291862488, 0.06308503448963165, -0.032713647931814194, -0.0919799953699112, -0.013210819102823734, -0.10352060198783875, -0.01909574121236801, 0.08187054097652435, 0.017474371939897537, -0.07559532672166824, -0.02087312564253807, -0.03176078945398331, -0.07715597748756409, 0.009452811442315578, -0.020509373396635056, 0.002786314580589533, 0.04742695763707161, -0.0021084598265588284, -0.07363121956586838, -0.0043649799190461636, 0.007223333232104778, 0.017368633300065994, -0.01072786282747984, -0.0597238726913929, -0.043793871998786926, -0.03066123276948929, -0.020337428897619247, 0.0324457585811615, -0.04025277495384216, 0.01221918873488903, 0.0472586527466774, -0.04166146740317345, 0.03324318304657936, 0.018581712618470192, 0.08853094279766083, -0.002227580640465021, 0.06407449394464493, -0.10911186039447784, 0.045044541358947754, 0.11055492609739304, 0.017663361504673958, 0.04702237248420715, -0.028066646307706833, 0.046318139880895615, 0.04106556624174118, -0.04382549598813057, 0.046336717903614044, -0.01173047348856926, -0.08308065682649612, 0.025436224415898323, -0.08168750256299973, 0.07757776230573654, 0.03084348700940609, 0.049492981284856796, 0.06526577472686768, -0.0269172266125679, -0.009145998395979404, 0.09549661725759506, 0.040207576006650925, 0.02747572585940361, 0.04050373286008835, 0.006593040656298399, -0.026333723217248917, -0.03145938366651535, 0.051392022520303726, 0.058421943336725235, 0.04069376364350319, -0.008368047885596752, 0.041619863361120224, 0.119319386780262, 0.022574692964553833, 0.019133485853672028, -0.01778775453567505, -0.0023198435083031654, 0.008958041667938232, -0.04337064176797867, 0.012659989297389984, -0.006893720477819443, 0.01098328921943903, 0.04146789759397507, 0.06620734184980392, 0.06567254662513733, -0.06998598575592041, -0.09825503826141357, -0.07913251966238022, -0.04253103956580162, -0.10050305724143982, 0.06353216618299484, -0.02266238071024418, -0.01818832941353321, -0.07030519098043442, 0.033805858343839645, -0.09009776264429092, 0.08234819769859314, 0.06875699758529663, 0.07119622081518173, 0.025087594985961914, 0.027039509266614914, -0.04462849348783493, 0.055901531130075455, 0.027703339233994484, 0.0071524702943861485, 0.021316224709153175, -0.008772371336817741, -0.03452283516526222, -0.028580574318766594, 0.012360787950456142, 0.016211574897170067, 0.04923414811491966, 0.029178863391280174, -0.02612302638590336, 0.05787120386958122, 0.030718831345438957, -0.015420656651258469, -0.07671371847391129, 0.07869663834571838, -0.0813063383102417, 0.042969707399606705, -0.06263583898544312, -0.01648552156984806, -0.01668010652065277, -0.011011680588126183, 0.017396608367562294, -0.008327238261699677, 0.08247929811477661, -0.043129999190568924, 3.0784560539494174e-33, 0.05721879377961159, -0.08295106887817383, 0.006155531387776136, -0.002084681997075677, 0.0025311256758868694, -0.07927388697862625, -0.0750085711479187, -0.010938896797597408, -0.05402155593037605, -0.047933295369148254, -0.0065649328753352165, -0.012706124223768711, 0.038390904664993286, -0.05820932611823082, 0.012737822718918324, 0.05315452069044113, 0.01598283089697361, -0.009619651362299919, 0.06305612623691559, 0.02497447282075882, 0.019441790878772736, -0.05979766696691513, 0.013403480872511864, 0.0474640391767025, -0.06583163887262344, -0.029981764033436775, 0.008174524642527103, -0.051019929349422455, 0.004417691845446825, -0.061369381844997406, 0.02144768461585045, -0.01996886357665062, 0.005116547457873821, 0.050597067922353745, -0.12891574203968048, 0.0679778978228569, 0.011277892626821995, 0.017264286056160927, -0.1272740513086319, 0.009910744614899158, 0.007915972732007504, 0.06490354239940643, -0.061161696910858154, -0.010392758063971996, 0.12612468004226685, -0.04122294485569, 0.03500970080494881, -0.09482599794864655, 0.04380747303366661, 0.011846689507365227, -0.029806705191731453, -0.023923972621560097, 0.023668598383665085, -0.05052776262164116, 0.0747053250670433, 0.12465090304613113, 0.10574421286582947, -0.06761058419942856, -0.0641288086771965, 0.03658227622509003, -0.04529263824224472, -0.09449160844087601, -0.008935592137277126, 0.021259360015392303, 0.04548720270395279, 0.03527671471238136, -0.011679860763251781, 0.05885795131325722, -0.04041627049446106, 0.023290017619729042, -0.042119432240724564, 0.027789749205112457, 0.00721000088378787, 0.029647760093212128, 0.04180729389190674, -0.060315731912851334, -0.01279851421713829, -0.061357781291007996, -0.11384619772434235, -0.020018987357616425, 0.04440311715006828, -0.025398794561624527, -0.07733522355556488, 0.15943056344985962, 0.04702838882803917, -0.004668387118726969, 0.001388635253533721, -0.031022043898701668, -0.03956107795238495, -0.04385599493980408, 0.03671266511082649, 0.036477409303188324, 0.01105431467294693, 0.07384870201349258, -0.04243208095431328, -3.4874390076043e-33, 0.06305941194295883, 0.018465226516127586, -0.037633854895830154, 0.026968860998749733, 0.05279126763343811, 0.05636443570256233, -0.011001220904290676, 0.11876887083053589, 0.017546946182847023, -0.13265742361545563, -0.04344351589679718, -0.08555549383163452, 0.03643658012151718, -0.003902968019247055, -0.01835906133055687, 0.055559225380420685, 0.0324893556535244, -0.014484720304608345, -0.014987688511610031, 0.006516157183796167, -0.004139608703553677, -0.007240045815706253, -0.004724123515188694, -0.005885194521397352, -0.011600183323025703, 0.048705942928791046, -0.007275222800672054, -0.0034990159329026937, -0.09640838205814362, 0.009519889950752258, 0.07801127433776855, -0.05238136649131775, -0.01944875717163086, 0.024094896391034126, -0.010921130888164043, -0.004804456140846014, -0.0442325696349144, -0.010901842266321182, 0.03469804674386978, -0.06148630008101463, 0.005297290626913309, 0.031580690294504166, -0.07454269379377365, -0.02835201285779476, -0.0376838743686676, 0.017396023496985435, 0.03789283335208893, -0.031837258487939835, -0.017655041068792343, -0.09426841139793396, -0.0160513985902071, -0.07112546265125275, -0.0801592618227005, 0.06838760524988174, -0.014869241043925285, 0.07060427218675613, 0.013232499361038208, 0.14494390785694122, 0.056154534220695496, -0.004330249968916178, 0.016571396961808205, -0.12462077289819717, 0.0019076034659519792, 0.020813874900341034, 0.010527032427489758, 0.013005617074668407, -0.03442445024847984, 0.005074917804449797, 0.059113550931215286, 0.042322516441345215, -0.016350310295820236, 0.03476528823375702, -0.026285061612725258, 0.05451304465532303, -0.0053534540347754955, 0.010438338853418827, 0.03553338721394539, 0.02928691916167736, -0.048644889146089554, 0.05802137404680252, -0.08464106172323227, 0.037642739713191986, -0.08738743513822556, 0.0015221865614876151, 0.04867388680577278, 0.007420076988637447, 0.09459327906370163, 0.03805205225944519, 0.05966596305370331, 0.06433077156543732, 0.04330402985215187, -0.0074320826679468155, -0.03355434536933899, 0.07784165441989899, -0.05310839042067528, -5.119090573657559e-8, 0.05487636476755142, -0.006512278225272894, -0.15387901663780212, 0.009740904904901981, 0.028743743896484375, 0.05144201219081879, 0.06480314582586288, 0.018403884023427963, -0.0840323343873024, 0.03979277238249779, -0.002172734821215272, 0.04076078161597252, -0.07607226073741913, 0.06319845467805862, 0.05892632156610489, -0.02771724946796894, 0.0012234185123816133, 0.031628936529159546, -0.04329534247517586, -0.052225831896066666, -0.0873488262295723, -0.04271889105439186, -0.05750547721982002, -0.005678802262991667, -0.03532882779836655, 0.004296330735087395, 0.10288579016923904, -0.039100922644138336, 0.006221489515155554, 0.05496399849653244, -0.08815766870975494, 0.03369591757655144, -0.05788353085517883, 0.07290244847536087, 0.027043191716074944, 0.011935197748243809, -0.10137118399143219, 0.04772648587822914, 0.02345850318670273, 0.0719943419098854, -0.025861771777272224, 0.029729515314102173, -0.007530094124376774, 0.011335387825965881, -0.005509532522410154, 0.015303426422178745, -0.002743393648415804, 0.09659134596586227, 0.05989625304937363, -0.005523840896785259, -0.005678859073668718, -0.020415764302015305, -0.007466810289770365, -0.005077979061752558, -0.008026015013456345, -0.017187019810080528, -0.04903208464384079, -0.03614014387130737, -0.029095064848661423, -0.027624374255537987, -0.030729282647371292, -0.026830459013581276, -0.02180171012878418, -0.018651913851499557 ]
0.074455
{{< feature-state for\_k8s\_version="v1.26" state="stable" >}} Starting from Kubernetes v1.20, the kubelet can dynamically retrieve credentials for a container image registry using exec plugins. The kubelet and the exec plugin communicate through stdio (stdin, stdout, and stderr) using Kubernetes versioned APIs. These plugins allow the kubelet to request credentials for a container registry dynamically as opposed to storing static credentials on disk. For example, the plugin may talk to a local metadata server to retrieve short-lived credentials for an image that is being pulled by the kubelet. You may be interested in using this capability if any of the below are true: \* API calls to a cloud provider service are required to retrieve authentication information for a registry. \* Credentials have short expiration times and requesting new credentials frequently is required. \* Storing registry credentials on disk or in imagePullSecrets is not acceptable. This guide demonstrates how to configure the kubelet's image credential provider plugin mechanism. ## Service Account Token for Image Pulls {{< feature-state feature\_gate\_name="KubeletServiceAccountTokenForCredentialProviders" >}} Starting from Kubernetes v1.33, the kubelet can be configured to send a service account token bound to the pod for which the image pull is being performed to the credential provider plugin. This allows the plugin to exchange the token for credentials to access the image registry. To enable this feature, the `KubeletServiceAccountTokenForCredentialProviders` feature gate must be enabled on the kubelet, and the `tokenAttributes` field must be set in the `CredentialProviderConfig` file for the plugin. The `tokenAttributes` field contains information about the service account token that will be passed to the plugin, including the intended audience for the token and whether the plugin requires the pod to have a service account. Using service account token credentials can enable the following use-cases: \* Avoid needing a kubelet/node-based identity to pull images from a registry. \* Allow workloads to pull images based on their own runtime identity without long-lived/persisted secrets. ## {{% heading "prerequisites" %}} \* You need a Kubernetes cluster with nodes that support kubelet credential provider plugins. This support is available in Kubernetes {{< skew currentVersion >}}; Kubernetes v1.24 and v1.25 included this as a beta feature, enabled by default. \* If you are configuring a credential provider plugin that requires the service account token, you need a Kubernetes cluster with nodes running Kubernetes v1.33 or later and the `KubeletServiceAccountTokenForCredentialProviders` feature gate enabled on the kubelet. \* A working implementation of a credential provider exec plugin. You can build your own plugin or use one provided by cloud providers. {{< version-check >}} ## Installing Plugins on Nodes A credential provider plugin is an executable binary that will be run by the kubelet. Ensure that the plugin binary exists on every node in your cluster and stored in a known directory. The directory will be required later when configuring kubelet flags. ## Configuring the Kubelet In order to use this feature, the kubelet expects two flags to be set: \* `--image-credential-provider-config` - the path to the credential provider plugin config file. \* `--image-credential-provider-bin-dir` - the path to the directory where credential provider plugin binaries are located. ### Configure a kubelet credential provider The configuration file passed into `--image-credential-provider-config` is read by the kubelet to determine which exec plugins should be invoked for which container images. Here's an example configuration file you may end up using if you are using the [ECR-based plugin](https://github.com/kubernetes/cloud-provider-aws/tree/master/cmd/ecr-credential-provider): ```yaml apiVersion: kubelet.config.k8s.io/v1 kind: CredentialProviderConfig # providers is a list of credential provider helper plugins that will be enabled by the kubelet. # Multiple providers may match against a single image, in which case credentials # from all providers will be returned
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/kubelet-credential-provider.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/kubelet-credential-provider.md
[ -0.03831355646252632, 0.036674801260232925, 0.013564636930823326, -0.04223326966166496, -0.09585821628570557, 0.018561866134405136, -0.007624347694218159, 0.04077541455626488, 0.08664211630821228, 0.010099513456225395, -0.02298697642982006, -0.10032269358634949, 0.015665091574192047, -0.00011752380669349805, 0.029699265956878662, -0.0004164364654570818, 0.02891051024198532, 0.059432365000247955, -0.04354279115796089, -0.059477876871824265, -0.06952684372663498, -0.034044165164232254, 0.008150272071361542, -0.0018286083359271288, -0.04427375644445419, -0.03467244282364845, 0.01523734349757433, -0.05545021966099739, 0.040744759142398834, 0.00113403529394418, 0.011515287682414055, -0.05854533612728119, -0.0035813834983855486, 0.01864413358271122, 0.08443588018417358, 0.09589270502328873, 0.026469480246305466, -0.02987665683031082, -0.0900573581457138, -0.016387082636356354, 0.017599929124116898, -0.03869307413697243, -0.11413987725973129, -0.021242495626211166, -0.026550358161330223, 0.029601283371448517, 0.00025443872436881065, -0.022589560598134995, -0.024817604571580887, -0.048309728503227234, 0.006485052406787872, -0.055834587663412094, 0.03737550973892212, 0.03724449872970581, 0.03597274795174599, 0.02291169762611389, -0.021227722987532616, 0.0757237896323204, 0.09855765104293823, 0.045577261596918106, 0.003864744445309043, -0.03966063633561134, 0.004692992195487022, 0.03432483971118927, -0.0691998228430748, 0.04629518836736679, 0.02464308589696884, -0.02553395926952362, 0.051924459636211395, -0.06313250213861465, -0.028876977041363716, -0.017776813358068466, -0.08731511235237122, -0.034236807376146317, -0.008692373521625996, 0.024734793230891228, -0.06829359382390976, -0.012585511431097984, 0.0026228143833577633, -0.13417667150497437, 0.09330631792545319, 0.054310258477926254, 0.08400703966617584, 0.01834428310394287, -0.025802018120884895, -0.04836023971438408, -0.06679171323776245, -0.021070905029773712, 0.05659971013665199, -0.0026252479292452335, 0.05555479973554611, -0.08232645690441132, 0.0019203450065106153, -0.1291848123073578, 0.11110792309045792, 0.03210168704390526, -0.04152672365307808, -0.014408377930521965, 0.028524616733193398, -0.010862831957638264, -0.04745052382349968, 0.018374331295490265, -0.08060623705387115, 0.024823348969221115, 0.1354791671037674, -0.0589333139359951, -0.018002092838287354, -0.034194912761449814, 0.009973484091460705, 0.024570073932409286, -0.041693709790706635, 0.00018657986947800964, -0.025306107476353645, 0.0007672876818105578, 0.03129414841532707, 0.003807562170550227, -0.01297480333596468, -0.023775067180395126, 0.04506215453147888, 0.03776878863573074, 0.07612963020801544, -0.07935276627540588, 0.003219369100406766, -0.0018236705800518394, -0.003125253366306424, 0.0033866839949041605, -0.03668315336108208, 5.654461006635264e-33, 0.011953066103160381, -0.03843125328421593, 0.08583932369947433, 0.001836690935306251, 0.00264535890892148, -0.14894407987594604, -0.005732405465096235, -0.07842836529016495, -0.08369767665863037, -0.024929655715823174, -0.09896253049373627, 0.03439375385642052, -0.04732022434473038, 0.017538391053676605, 0.06080950051546097, 0.029869917780160904, -0.09349651634693146, 0.054651908576488495, 0.10154902935028076, 0.036801595240831375, 0.035751890391111374, -0.030771814286708832, 0.01960679702460766, 0.0037721211556345224, 0.0425194576382637, -0.10173897445201874, 0.05273637920618057, -0.0018272162415087223, 0.02356894500553608, -0.00446777930483222, 0.011259746737778187, 0.0018062873277813196, 0.0305195152759552, 0.03822682425379753, -0.09724435955286026, -0.024975087493658066, -0.03789966180920601, 0.02836286835372448, -0.048901669681072235, 0.031102728098630905, 0.04940462112426758, -0.050439853221178055, -0.020666008815169334, -0.015309269540011883, -0.016284579411149025, -0.06750286370515823, 0.039110489189624786, -0.030038941651582718, 0.08288059383630753, 0.07228974997997284, 0.019410252571105957, -0.004882678389549255, -0.05435588210821152, -0.01945098116993904, 0.04368818178772926, 0.01576067879796028, 0.09137590229511261, -0.08699869364500046, -0.06593243032693863, -0.047177426517009735, -0.05244868993759155, 0.032688453793525696, 0.0379813052713871, 0.046584922820329666, 0.003187619848176837, -0.046103645116090775, -0.00874900072813034, 0.06757524609565735, -0.09323246777057648, -0.0042187524959445, -0.028844943270087242, 0.08466633409261703, -0.0806015208363533, -0.12950649857521057, -0.029824458062648773, -0.0426170639693737, 0.024870511144399643, 0.04237407073378563, -0.12748560309410095, 0.10233424603939056, 0.04679720848798752, -0.06684350967407227, -0.057064224034547806, 0.07249824702739716, -0.0038733130786567926, 0.0013635327341035008, 0.02669830434024334, 0.016876254230737686, -0.0114176906645298, 0.00035716110141947865, 0.058934520930051804, -0.01624879240989685, -0.058071453124284744, 0.04870918393135071, -0.08876590430736542, -6.621619187583456e-33, 0.1096382811665535, -0.0034941586200147867, 0.07918830215930939, 0.017955513671040535, 0.031838349997997284, 0.07546775788068771, 0.02284737303853035, 0.04074009880423546, -0.060656603425741196, -0.06388476490974426, -0.009223449043929577, 0.04485740885138512, -0.021190252155065536, 0.0129556180909276, -0.017130671069025993, 0.015375769697129726, -0.12440703809261322, 0.0002301603672094643, 0.00018128372903447598, 0.024602292105555534, -0.017304066568613052, -0.04710252583026886, -0.019686078652739525, 0.05329282581806183, -0.04726869612932205, 0.03523421660065651, 0.016965076327323914, 0.047910016030073166, -0.06450528651475906, -0.021793249994516373, -0.015801507979631424, -0.05025157704949379, -0.08265949040651321, 0.018330827355384827, 0.01618662104010582, -0.053287260234355927, 0.01631317473948002, 0.04811395704746246, -0.07460782676935196, 0.000946578336879611, 0.04018449783325195, 0.00705405930057168, -0.0209475290030241, 0.007651908788830042, 0.007153092883527279, 0.0008371223229914904, 0.041825536638498306, -0.026776643469929695, 0.02359561249613762, -0.0477474145591259, -0.002216658089309931, 0.01185993105173111, -0.036309804767370224, 0.10877055674791336, -0.06572782248258591, 0.048997662961483, -0.002476818859577179, 0.08341322839260101, -0.016804395243525505, -0.009729435667395592, 0.06583940982818604, -0.14335466921329498, 0.0714290514588356, 0.03602125868201256, -0.033493123948574066, -0.008757106959819794, 0.006502039264887571, 0.041326798498630524, -0.09257572144269943, 0.07236287742853165, 0.016522321850061417, -0.11876139044761658, 0.0030402957927435637, -0.012733758427202702, 0.018691662698984146, -0.024407733231782913, -0.033665768802165985, -0.03320406377315521, 0.04103584960103035, 0.047697942703962326, 0.0003220443904865533, 0.041528087109327316, -0.0492645688354969, -0.022450575605034828, 0.05193527415394783, -0.021268531680107117, 0.03023628145456314, 0.023621294647455215, 0.10259883105754852, 0.02448262833058834, -0.018565386533737183, 0.009127652272582054, -0.02087222971022129, 0.05026417225599289, 0.03296351432800293, -4.7229669064563495e-8, 0.05308963358402252, -0.05144527181982994, -0.009985368698835373, 0.002591147320345044, -0.008306281641125679, -0.03395888954401016, -0.026030266657471657, -0.02478138357400894, -0.05615832284092903, -0.04128275811672211, -0.008667551912367344, -0.008799750357866287, -0.02029269002377987, -0.008285360410809517, 0.0060963756404817104, 0.007163015194237232, 0.006753073539584875, 0.01684645004570484, 0.06284204870462418, -0.05213084816932678, -0.07726826518774033, -0.02137915790081024, 0.07127092778682709, -0.0038443724624812603, -0.05268168821930885, 0.14856275916099548, 0.03578295186161995, 0.05186176300048828, 0.036171890795230865, 0.0184152964502573, 0.06275612115859985, 0.020895274356007576, -0.04007316380739212, 0.03888077288866043, -0.003475865116342902, 0.011119590140879154, -0.14350999891757965, -0.022712361067533493, -0.005280924960970879, 0.036374278366565704, -0.017185639590024948, -0.031773392111063004, -0.059571098536252975, 0.0011600698344409466, 0.01765669696033001, 0.09245812147855759, 0.09529295563697815, 0.07604026049375534, -0.004379484802484512, 0.05337253212928772, 0.020738136023283005, -0.0593966469168663, -0.052540652453899384, 0.1379464715719223, 0.0006033626268617809, -0.010736101306974888, 0.031704310327768326, -0.038885697722435, 0.06581450253725052, 0.08725018054246902, -0.03533819317817688, 0.0008514008950442076, 0.041875310242176056, -0.018309423699975014 ]
0.08625
using if you are using the [ECR-based plugin](https://github.com/kubernetes/cloud-provider-aws/tree/master/cmd/ecr-credential-provider): ```yaml apiVersion: kubelet.config.k8s.io/v1 kind: CredentialProviderConfig # providers is a list of credential provider helper plugins that will be enabled by the kubelet. # Multiple providers may match against a single image, in which case credentials # from all providers will be returned to the kubelet. If multiple providers are called # for a single image, the results are combined. If providers return overlapping # auth keys, the value from the provider earlier in this list is used. providers: # name is the required name of the credential provider. It must match the name of the # provider executable as seen by the kubelet. The executable must be in the kubelet's # bin directory (set by the --image-credential-provider-bin-dir flag). - name: ecr-credential-provider # matchImages is a required list of strings used to match against images in order to # determine if this provider should be invoked. If one of the strings matches the # requested image from the kubelet, the plugin will be invoked and given a chance # to provide credentials. Images are expected to contain the registry domain # and URL path. # # Each entry in matchImages is a pattern which can optionally contain a port and a path. # Globs can be used in the domain, but not in the port or the path. Globs are supported # as subdomains like '\*.k8s.io' or 'k8s.\*.io', and top-level-domains such as 'k8s.\*'. # Matching partial subdomains like 'app\*.k8s.io' is also supported. Each glob can only match # a single subdomain segment, so `\*.io` does \*\*not\*\* match `\*.k8s.io`. # # A match exists between an image and a matchImage when all of the below are true: # - Both contain the same number of domain parts and each part matches. # - The URL path of an matchImages must be a prefix of the target image URL path. # - If the matchImages contains a port, then the port must match in the image as well. # # Example values of matchImages: # - 123456789.dkr.ecr.us-east-1.amazonaws.com # - \*.azurecr.io # - gcr.io # - \*.\*.registry.io # - registry.io:8080/path matchImages: - "\*.dkr.ecr.\*.amazonaws.com" - "\*.dkr.ecr.\*.amazonaws.com.cn" - "\*.dkr.ecr-fips.\*.amazonaws.com" - "\*.dkr.ecr.us-iso-east-1.c2s.ic.gov" - "\*.dkr.ecr.us-isob-east-1.sc2s.sgov.gov" # defaultCacheDuration is the default duration the plugin will cache credentials in-memory # if a cache duration is not provided in the plugin response. This field is required. defaultCacheDuration: "12h" # Required input version of the exec CredentialProviderRequest. The returned CredentialProviderResponse # MUST use the same encoding version as the input. Current supported values are: # - credentialprovider.kubelet.k8s.io/v1 apiVersion: credentialprovider.kubelet.k8s.io/v1 # Arguments to pass to the command when executing it. # +optional # args: # - --example-argument # Env defines additional environment variables to expose to the process. These # are unioned with the host's environment, as well as variables client-go uses # to pass argument to the plugin. # +optional env: - name: AWS\_PROFILE value: example\_profile # tokenAttributes is the configuration for the service account token that will be passed to the plugin. # The credential provider opts in to using service account tokens for image pull by setting this field. # if this field is set without the `KubeletServiceAccountTokenForCredentialProviders` feature gate enabled, # kubelet will fail to start with invalid configuration error. # +optional tokenAttributes: # serviceAccountTokenAudience is the intended audience for the projected service account token. # +required serviceAccountTokenAudience: "" # cacheType indicates the type of cache key use for caching the credentials returned by the plugin # when the service account token is used. # The most conservative option is to set this to "Token", which means the kubelet will cache
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/kubelet-credential-provider.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/kubelet-credential-provider.md
[ -0.022151164710521698, 0.030039921402931213, 0.03911525383591652, -0.03271578997373581, -0.030492011457681656, -0.0006946202483959496, 0.011702473275363445, -0.032786112278699875, 0.15455880761146545, -0.02485589310526848, 0.02446778677403927, -0.10509945452213287, 0.08857249468564987, -0.042469024658203125, 0.03796554356813431, 0.0030255725141614676, -0.04722324758768082, 0.02896762825548649, -0.06333670020103455, -0.13673627376556396, -0.051628004759550095, -0.04312204569578171, 0.013708669692277908, -0.010316337458789349, -0.016352999955415726, -0.06569162011146545, -0.025586768984794617, -0.0031019647140055895, 0.023132089525461197, -0.08306911587715149, 0.031646814197301865, -0.04787641391158104, -0.0057579223066568375, 0.05768325552344322, 0.02050602249801159, 0.08460423350334167, 0.034830767661333084, -0.008203547447919846, -0.04002639278769493, 0.0668434277176857, 0.03991461172699928, -0.005535074044018984, -0.07201941311359406, -0.06643296778202057, 0.016478046774864197, 0.04187452048063278, -0.055495038628578186, 0.011912201531231403, 0.02480943128466606, -0.05242380499839783, 0.051437560468912125, -0.05260363593697548, 0.025690020993351936, 0.05826304852962494, 0.028511928394436836, 0.0561353825032711, -0.0782354548573494, 0.03600794076919556, 0.07554139941930771, 0.018271898850798607, -0.011424942873418331, 0.0027250642888247967, -0.005097356624901295, 0.026707682758569717, -0.023776959627866745, 0.027977580204606056, 0.03680076450109482, -0.04168624058365822, -0.024723228067159653, -0.04816258326172829, 0.04219956323504448, -0.07137318700551987, -0.05547693744301796, -0.005843657068908215, 0.03481081873178482, 0.004186034202575684, -0.08736436069011688, 0.03887516260147095, 0.016308922320604324, -0.09956604242324829, 0.05140402168035507, 0.05906207114458084, 0.060467105358839035, 0.012710134498775005, 0.021626349538564682, -0.09446783363819122, -0.03897615522146225, -0.04757373407483101, 0.013592785224318504, 0.01972866989672184, 0.03998886048793793, -0.0674007385969162, 0.0030697069596499205, -0.06718634814023972, 0.0985935628414154, 0.05877036228775978, -0.03840694949030876, 0.020382540300488472, 0.06589889526367188, -0.019000813364982605, -0.04704241082072258, 0.0169321671128273, -0.03420093655586243, -0.01936645619571209, 0.09414632618427277, -0.03466452658176422, -0.028668085113167763, 0.022687602788209915, 0.07391218841075897, 0.03500142693519592, -0.014949695207178593, -0.012861944735050201, -0.015122116543352604, -0.0055762240663170815, 0.025167414918541908, 0.03332649543881416, -0.05626305565237999, 0.026857392862439156, 0.08343123644590378, -0.003638788126409054, 0.06290765851736069, -0.049957867711782455, 0.024224866181612015, -0.040990691632032394, -0.037945456802845, 0.04316394776105881, -0.06432501971721649, 6.000912619943194e-33, 0.00013335197581909597, -0.0326758474111557, 0.08304405212402344, -0.009432721883058548, -0.022853108122944832, -0.057555191218853, -0.0671144500374794, -0.010822628624737263, -0.07442013174295425, -0.03470316529273987, -0.12469782680273056, 0.040545351803302765, -0.06787721812725067, 0.023070497438311577, -0.006817308720201254, 0.03598317131400108, -0.06080518290400505, 0.0336991511285305, 0.04132859781384468, 0.05763348937034607, 0.01889384165406227, -0.014156301505863667, 0.005809904541820288, 0.04625312238931656, 0.0226176418364048, -0.07975956052541733, 0.048484284430742264, -0.002993002301082015, 0.008897794410586357, -0.015037773177027702, 0.025882797315716743, 0.005307950545102358, 0.011769870296120644, -0.0023505238350480795, -0.08678274601697922, 0.02309550903737545, 0.009924963116645813, 0.028118839487433434, -0.09574605524539948, 0.029332997277379036, -0.007235262542963028, -0.005492746364325285, -0.04642569273710251, -0.06184534355998039, -0.0016527405241504312, -0.02661236561834812, -0.009220341220498085, -0.03620247170329094, 0.11864979565143585, 0.10317382216453552, -0.0633009597659111, -0.020980486646294594, -0.0044915578328073025, -0.020360363647341728, 0.09166190773248672, 0.06948092579841614, 0.07639241963624954, -0.0314040407538414, -0.06774620711803436, -0.03663165494799614, -0.06818583607673645, -0.03685595840215683, -0.0033535209950059652, 0.052070360630750656, 0.03571343421936035, -0.0024900573771446943, 0.0004932409501634538, 0.030298205092549324, -0.08012212067842484, 0.02702324278652668, -0.04968743771314621, 0.11690690368413925, -0.034426476806402206, -0.08798526972532272, -0.006806832738220692, -0.12649957835674286, -0.033660128712654114, 0.0025504326913505793, -0.10974520444869995, 0.1357143521308899, 0.023699549958109856, -0.011989688500761986, -0.01266083400696516, 0.05942402780056, -0.029025446623563766, 0.0386316291987896, 0.04943143203854561, 0.03929882496595383, -0.031235070899128914, 0.040639761835336685, 0.03580735623836517, 0.014141774736344814, -0.050205297768116, 0.03123541921377182, -0.08951328694820404, -5.985735151164155e-33, 0.07096253335475922, -0.0015994979767128825, 0.10237681120634079, 0.007116888649761677, 0.04651525616645813, 0.054256487637758255, 0.020604843273758888, 0.030691932886838913, -0.014108437113463879, -0.017986299470067024, 0.06782057136297226, 0.0037572025321424007, 0.027425186708569527, -0.05813613161444664, -0.0223973598331213, 0.02115735597908497, -0.10893259942531586, 0.014737321063876152, -0.007598642725497484, 0.016498327255249023, -0.03558173030614853, -0.04512404277920723, 0.04770108684897423, 0.009360849857330322, -0.017180828377604485, 0.05827776715159416, 0.0015743363182991743, 0.023772940039634705, -0.009818199090659618, -0.041806139051914215, 0.05978008732199669, -0.058593496680259705, -0.07154878973960876, 0.040245018899440765, -0.01641227863729, -0.0448889285326004, -0.025873638689517975, 0.10553226619958878, -0.049151234328746796, 0.0026159225963056087, 0.036305539309978485, 0.03480884060263634, -0.03529703617095947, -0.02221791259944439, -0.009110474959015846, 0.014001479372382164, 0.05071891471743584, -0.02554868906736374, 0.031290970742702484, -0.037062812596559525, -0.020991066470742226, -0.011841248720884323, -0.06392685323953629, 0.12248144298791885, -0.06702156364917755, 0.028366245329380035, 0.02487950399518013, 0.12363407760858536, 0.0372137613594532, -0.05659386143088341, 0.012097909115254879, -0.10038159042596817, 0.0711444541811943, 0.0969584509730339, -0.05272454768419266, -0.029938239604234695, -0.000631878909189254, 0.014225059188902378, -0.022337812930345535, 0.09637515991926193, -0.06449488550424576, -0.09638569504022598, 0.013823447749018669, -0.04366382583975792, 0.012815402820706367, 0.017288770526647568, -0.06874968856573105, -0.039551991969347, -0.005098908208310604, 0.024523843079805374, 0.0028633340261876583, -0.004484892822802067, -0.04371669143438339, -0.011347156018018723, 0.019732460379600525, 0.012767250649631023, 0.07075544446706772, 0.0283851008862257, 0.09962904453277588, 0.0675443485379219, -0.020662464201450348, 0.012543636374175549, -0.006320836953818798, 0.0529712475836277, -0.03167775645852089, -5.6402669201816025e-8, 0.04593580588698387, -0.06058451905846596, -0.06473162770271301, -0.03618581220507622, 0.023968899622559547, -0.043467745184898376, -0.024250207468867302, -0.005560644436627626, -0.09196248650550842, -0.0566147081553936, 0.0020552529022097588, 0.01203200314193964, -0.06454075872898102, 0.017321743071079254, 0.0524488165974617, -0.04151817783713341, -0.0043075536377727985, 0.0031969689298421144, 0.06246932968497276, -0.07175800949335098, -0.09632597863674164, -0.02142590843141079, 0.020499782636761665, 0.012438284233212471, -0.02366349659860134, 0.18729965388774872, 0.004837329965084791, 0.06021588668227196, 0.044074736535549164, -0.0061161108314991, 0.044269952923059464, 0.011735139414668083, -0.05050434172153473, -0.001734051969833672, -0.005938761401921511, 0.011864347383379936, -0.1499902904033661, -0.000876844220329076, -0.01095643825829029, 0.05342387035489082, 0.006134324241429567, -0.038048308342695236, -0.04294443503022194, 0.02858545444905758, 0.059415899217128754, 0.027305247262120247, 0.05760101601481438, 0.04658704251050949, 0.019960492849349976, 0.015189572237432003, 0.015281175263226032, -0.10615824908018112, -0.017898792400956154, 0.0910014882683754, -0.0393708311021328, -0.0493260957300663, 0.05401773750782013, -0.06456424295902252, 0.09996011853218079, 0.04399649053812027, -0.024656889960169792, -0.0643082782626152, 0.03226839751005173, -0.01913505606353283 ]
0.045103
projected service account token. # +required serviceAccountTokenAudience: "" # cacheType indicates the type of cache key use for caching the credentials returned by the plugin # when the service account token is used. # The most conservative option is to set this to "Token", which means the kubelet will cache # returned credentials on a per-token basis. This should be set if the returned credential's # lifetime is limited to the service account token's lifetime. # If the plugin's credential retrieval logic depends only on the service account and not on # pod-specific claims, then the plugin can set this to "ServiceAccount". In this case, the # kubelet will cache returned credentials on a per-serviceaccount basis. Use this when the # returned credential is valid for all pods using the same service account. # +required cacheType: "" # requireServiceAccount indicates whether the plugin requires the pod to have a service account. # If set to true, kubelet will only invoke the plugin if the pod has a service account. # If set to false, kubelet will invoke the plugin even if the pod does not have a service account # and will not include a token in the CredentialProviderRequest. This is useful for plugins # that are used to pull images for pods without service accounts (e.g., static pods). # +required requireServiceAccount: true # requiredServiceAccountAnnotationKeys is the list of annotation keys that the plugin is interested in # and that are required to be present in the service account. # The keys defined in this list will be extracted from the corresponding service account and passed # to the plugin as part of the CredentialProviderRequest. If any of the keys defined in this list # are not present in the service account, kubelet will not invoke the plugin and will return an error. # This field is optional and may be empty. Plugins may use this field to extract additional information # required to fetch credentials or allow workloads to opt in to using service account tokens for image pull. # If non-empty, requireServiceAccount must be set to true. # The keys defined in this list must be unique and not overlap with the keys defined in the # optionalServiceAccountAnnotationKeys list. # +optional requiredServiceAccountAnnotationKeys: - "example.com/required-annotation-key-1" - "example.com/required-annotation-key-2" # optionalServiceAccountAnnotationKeys is the list of annotation keys that the plugin is interested in # and that are optional to be present in the service account. # The keys defined in this list will be extracted from the corresponding service account and passed # to the plugin as part of the CredentialProviderRequest. The plugin is responsible for validating the # existence of annotations and their values. This field is optional and may be empty. # Plugins may use this field to extract additional information required to fetch credentials. # The keys defined in this list must be unique and not overlap with the keys defined in the # requiredServiceAccountAnnotationKeys list. # +optional optionalServiceAccountAnnotationKeys: - "example.com/optional-annotation-key-1" - "example.com/optional-annotation-key-2" ``` The `providers` field is a list of enabled plugins used by the kubelet. Each entry has a few required fields: \* `name`: the name of the plugin which MUST match the name of the executable binary that exists in the directory passed into `--image-credential-provider-bin-dir`. \* `matchImages`: a list of strings used to match against images in order to determine if this provider should be invoked. More on this below. \* `defaultCacheDuration`: the default duration the kubelet will cache credentials in-memory if a cache duration was not specified by the plugin. \* `apiVersion`: the API version that the kubelet and the exec plugin will use
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/kubelet-credential-provider.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/kubelet-credential-provider.md
[ -0.0582016259431839, -0.03636729344725609, 0.028426066040992737, -0.04123726859688759, -0.09435930848121643, 0.01731286011636257, 0.06910096853971481, -0.012872097082436085, 0.12456522136926651, 0.056837864220142365, -0.04650259017944336, -0.06798098981380463, 0.00631737569347024, 0.002631426090374589, 0.033143751323223114, -0.008145729079842567, 0.055637210607528687, 0.037112753838300705, -0.04156537353992462, -0.07762841135263443, 0.06314128637313843, -0.019230909645557404, 0.008536936715245247, 0.046394601464271545, -0.014203538186848164, -0.07532311975955963, -0.012100601568818092, -0.012365080416202545, -0.000839647778775543, 0.00320365815423429, -0.0035307740326970816, -0.020844079554080963, -0.001985887996852398, -0.002745537320151925, 0.09607673436403275, 0.051012881100177765, -0.01578391157090664, -0.03328721597790718, -0.035099856555461884, 0.010514229536056519, -0.030011657625436783, -0.021806899458169937, -0.11513675004243851, 0.0015333513729274273, 0.007640304509550333, 0.036783263087272644, -0.015900449827313423, -0.02558738738298416, -0.05431671068072319, 0.0033973490353673697, 0.0711401104927063, -0.07229399681091309, 0.05192246660590172, 0.06995391845703125, -0.0003723154659382999, 0.002348646055907011, 0.002619788981974125, 0.07031399011611938, 0.1044684499502182, 0.024755584076046944, -0.029872946441173553, -0.09587214887142181, 0.02570776827633381, -0.002981331432238221, -0.07453551143407822, 0.013244884088635445, 0.00959391612559557, -0.01351469662040472, 0.00517048966139555, 0.021838746964931488, 0.006658041849732399, 0.01639314368367195, -0.04162869602441788, -0.08337206393480301, 0.012190054170787334, 0.06360870599746704, -0.008885707706212997, -0.004966591950505972, 0.024707602337002754, -0.1427803933620453, 0.08246708661317825, 0.08340081572532654, 0.0794612243771553, 0.0032481688540428877, -0.016377365216612816, -0.00892974529415369, -0.00907379575073719, -0.0890628919005394, 0.02167355827987194, 0.018047861754894257, 0.07225745916366577, -0.03248285502195358, 0.025368642061948776, -0.12828569114208221, 0.02220318093895912, -0.01358178909868002, -0.024725040420889854, 0.023228943347930908, 0.04034673422574997, -0.01571747660636902, -0.012919963337481022, 0.029389720410108566, -0.04540830850601196, 0.0058735269121825695, 0.11216168850660324, -0.045948632061481476, -0.020804518833756447, -0.03407705947756767, 0.07620751112699509, 0.07638119906187057, 0.026304064318537712, -0.015850240364670753, 0.020332790911197662, 0.05387403070926666, 0.029126591980457306, 0.08607637137174606, -0.021652618423104286, 0.03716525435447693, 0.07389087229967117, 0.010365022346377373, 0.04208711162209511, -0.0490456223487854, -0.008306009694933891, -0.018139218911528587, -0.08155368268489838, -0.004365819040685892, 0.033503271639347076, 5.209128645246087e-33, -0.009734800085425377, -0.04178774356842041, 0.042546793818473816, 0.005676581524312496, -0.026563197374343872, -0.12730759382247925, -0.02377185970544815, 0.013952297158539295, -0.04839354753494263, 0.01975483074784279, -0.03951488435268402, 0.0564725287258625, -0.04148684814572334, -0.0076442076824605465, -0.0196121446788311, 0.054315004497766495, -0.08544494211673737, 0.0026118112727999687, 0.10461307317018509, 0.009064598940312862, 0.03660426661372185, -0.031356632709503174, -0.005176670383661985, -0.005015248898416758, 0.028454070910811424, -0.039601199328899384, 0.0788320004940033, -0.0503712072968483, -0.09158597886562347, 0.007143144961446524, -0.007189863361418247, -0.004614987410604954, 0.028589770197868347, 0.06049942970275879, -0.12011408805847168, 0.008188341744244099, 0.026279758661985397, 0.005010507069528103, -0.09150039404630661, -0.04810308292508125, 0.02858606167137623, -0.0026452001184225082, -0.00677980063483119, -0.04912307485938072, -0.023864999413490295, -0.08316683024168015, 0.08506539463996887, -0.00871682446449995, 0.14222018420696259, 0.10543572902679443, -0.015596732497215271, 0.0034351793583482504, -0.009917525574564934, -0.02123263292014599, 0.06034407019615173, 0.030135368928313255, 0.09323202073574066, -0.042337533086538315, -0.0215690266340971, -0.05597373843193054, -0.018299894407391548, -0.09732694178819656, 0.014783945865929127, 0.016068149358034134, 0.0145284878090024, 0.07819967716932297, -0.027446765452623367, 0.006061736028641462, -0.011654832400381565, -0.0011506912996992469, -0.032345376908779144, 0.03733393922448158, -0.057004183530807495, -0.06478742510080338, -0.09485375881195068, -0.05402763560414314, 0.040410179644823074, 0.04922882094979286, -0.11755088716745377, 0.09984762221574783, 0.03746667504310608, -0.02944038063287735, -0.07533887028694153, 0.08815470337867737, -0.04244907945394516, 0.0136243412271142, 0.05983569100499153, -0.005417972803115845, -0.047955818474292755, 0.027394974604249, 0.05048215761780739, 0.01707228645682335, -0.029548410326242447, 0.10383208096027374, -0.11611703038215637, -5.084474816181076e-33, 0.037514571100473404, -0.014427469111979008, 0.06434623152017593, 0.03057628683745861, -0.005423123948276043, 0.05820155143737793, -0.022300587967038155, 0.008514819666743279, -0.026550021022558212, 0.00010250908235320821, -0.04192590340971947, -0.05317568778991699, -0.014180183410644531, 0.01980561949312687, -0.0020921751856803894, 0.037822749465703964, -0.1411300003528595, -0.028756557032465935, -0.02884357050061226, 0.06419945508241653, -0.01269427128136158, 0.025250272825360298, 0.032231997698545456, 0.02774614654481411, -0.03006060980260372, 0.03586474433541298, -0.004319972824305296, 0.021277226507663727, -0.012849077582359314, -0.060924265533685684, 0.03631985932588577, -0.08518856763839722, -0.09199982136487961, -0.024244826287031174, -0.000685098406393081, -0.07978653162717819, 0.022693580016493797, 0.09793037176132202, -0.058502428233623505, 0.05911232531070709, 0.02456170879304409, 0.0018381180707365274, -0.025082100182771683, 0.0016493451548740268, -0.004362682346254587, -0.03952624276280403, 0.03568391874432564, -0.041848812252283096, 0.02611595392227173, -0.04251497983932495, 0.03084915317595005, -0.0064562540501356125, -0.06228703260421753, 0.12701375782489777, -0.061589136719703674, 0.04474039748311043, -0.013797630555927753, 0.030111422762274742, -0.003124385606497526, -0.04943063110113144, 0.09101351350545883, -0.13780230283737183, 0.03738363832235336, 0.07437622547149658, -0.02397735044360161, -0.026913855224847794, 0.04342936724424362, 0.005863410420715809, 0.002891673007979989, 0.07188092917203903, 0.030188096687197685, -0.081691212952137, 0.022975651547312737, -0.030535507947206497, -0.013418578542768955, -0.0030652291607111692, -0.019485481083393097, -0.08251740783452988, 0.013726198114454746, 0.06612586230039597, -0.04211762174963951, 0.04434101656079292, -0.070393405854702, -0.0112459110096097, -0.0020143254660069942, -0.028395330533385277, 0.06424755603075027, 0.059261661022901535, 0.05852703005075455, 0.09236986935138702, 0.026680348441004753, 0.004429277032613754, -0.03044765256345272, 0.026025407016277313, -0.054547712206840515, -4.645382745138704e-8, 0.05643727630376816, -0.030521562322974205, 0.016066599637269974, 0.07759489864110947, -0.017428338527679443, -0.07023080438375473, 0.016891298815608025, -0.029588734731078148, -0.0892007052898407, -0.018006933853030205, 0.023062193766236305, 0.03736402094364166, -0.027075141668319702, 0.03253777697682381, -0.0031699384562671185, -0.00945741031318903, 0.021041087806224823, 0.014178366400301456, 0.026444338262081146, -0.040460895746946335, -0.11434593051671982, 0.015048936940729618, 0.05644857510924339, -0.044329628348350525, -0.06071332469582558, 0.11114980280399323, 0.056963905692100525, 0.07753723114728928, 0.04928550869226456, 0.007839596830308437, -0.0427611842751503, 0.026053769513964653, -0.06829971820116043, -0.065828837454319, -0.07258835434913635, 0.04297756031155586, -0.11789295077323914, -0.01990233175456524, -0.04170734062790871, 0.07937368750572205, -0.026255033910274506, -0.03197270259261131, -0.021818317472934723, 0.027624795213341713, -0.03318919241428375, 0.06991277635097504, 0.007541741710156202, 0.035769272595644, 0.02446572668850422, 0.04962365701794624, -0.04372015222907066, -0.08580757677555084, -0.0074743060395121574, 0.0755600705742836, -0.05425552278757095, -0.0331607423722744, 0.028308996930718422, -0.006687911227345467, 0.05190850794315338, 0.01674920879304409, 0.012490073218941689, -0.01413918100297451, 0.02234831638634205, -0.0806632712483406 ]
0.152385
images in order to determine if this provider should be invoked. More on this below. \* `defaultCacheDuration`: the default duration the kubelet will cache credentials in-memory if a cache duration was not specified by the plugin. \* `apiVersion`: the API version that the kubelet and the exec plugin will use when communicating. Each credential provider can also be given optional args and environment variables as well. Consult the plugin implementors to determine what set of arguments and environment variables are required for a given plugin. If you are using the KubeletServiceAccountTokenForCredentialProviders feature gate and configuring the plugin to use the service account token by setting the tokenAttributes field, the following fields are required: \* `serviceAccountTokenAudience`: the intended audience for the projected service account token. This cannot be the empty string. \* `cacheType`: the type of cache key used for caching the credentials returned by the plugin when the service account token is used. The most conservative option is to set this to `Token`, which means the kubelet will cache returned credentials on a per-token basis. This should be set if the returned credential's lifetime is limited to the service account token's lifetime. If the plugin's credential retrieval logic depends only on the service account and not on pod-specific claims, then the plugin can set this to `ServiceAccount`. In this case, the kubelet will cache returned credentials on a per-service account basis. Use this when the returned credential is valid for all pods using the same service account. \* `requireServiceAccount`: whether the plugin requires the pod to have a service account. \* If set to `true`, kubelet will only invoke the plugin if the pod has a service account. \* If set to `false`, kubelet will invoke the plugin even if the pod does not have a service account and will not include a token in the `CredentialProviderRequest`. This is useful for plugins that are used to pull images for pods without service accounts (e.g., static pods). #### Configure image matching The `matchImages` field for each credential provider is used by the kubelet to determine whether a plugin should be invoked for a given image that a Pod is using. Each entry in `matchImages` is an image pattern which can optionally contain a port and a path. Globs can be used in the domain, but not in the port or the path. Globs are supported as subdomains like `\*.k8s.io` or `k8s.\*.io`, and top-level domains such as `k8s.\*`. Matching partial subdomains like `app\*.k8s.io` is also supported. Each glob can only match a single subdomain segment, so `\*.io` does NOT match `\*.k8s.io`. A match exists between an image name and a `matchImage` entry when all of the below are true: \* Both contain the same number of domain parts and each part matches. \* The URL path of match image must be a prefix of the target image URL path. \* If the matchImages contains a port, then the port must match in the image as well. Some example values of `matchImages` patterns are: \* `123456789.dkr.ecr.us-east-1.amazonaws.com` \* `\*.azurecr.io` \* `gcr.io` \* `\*.\*.registry.io` \* `foo.registry.io:8080/path` ## {{% heading "whatsnext" %}} \* Read the details about `CredentialProviderConfig` in the [kubelet configuration API (v1) reference](/docs/reference/config-api/kubelet-config.v1/). \* Read the [kubelet credential provider API reference (v1)](/docs/reference/config-api/kubelet-credentialprovider.v1/).
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/kubelet-credential-provider.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/kubelet-credential-provider.md
[ -0.04323999583721161, -0.022624002769589424, 0.02862667478621006, -0.03506189212203026, -0.10236122459173203, 0.025135591626167297, 0.05413961410522461, -0.015093262307345867, 0.12444893270730972, 0.026967862620949745, -0.037308499217033386, -0.09814834594726562, -0.021304966881871223, 0.007726569194346666, 0.04568147286772728, 0.034681715071201324, 0.06354731321334839, -0.00984466727823019, -0.04776285961270332, -0.08046874403953552, 0.026128306984901428, -0.08570987731218338, -0.013719560578465462, 0.018249299377202988, -0.023229412734508514, -0.06887523829936981, 0.0009217036422342062, -0.04286865517497063, 0.02625117264688015, -0.018990408629179, -0.005721008405089378, -0.03871172294020653, -0.035515401512384415, -0.026872951537370682, 0.07822401821613312, 0.08725960552692413, 0.013265295885503292, -0.016088351607322693, -0.02300828881561756, 0.017118552699685097, 0.01352122612297535, -0.02583356387913227, -0.09719239175319672, -0.005362578667700291, 0.05877236649394035, 0.03461417555809021, 0.00381483300589025, -0.031582899391651154, -0.1064457967877388, -0.033031709492206573, 0.11176424473524094, -0.05040391534566879, 0.013066536746919155, 0.02578214928507805, -0.013140104711055756, -0.02410138212144375, -0.028961636126041412, 0.06780923902988434, 0.10187631100416183, 0.06639277935028076, -0.037083424627780914, -0.05510757118463516, 0.00540556525811553, 0.012795031070709229, -0.1182091236114502, 0.016014236956834793, 0.010215964168310165, -0.06160685792565346, 0.03343242406845093, -0.05821292847394943, -0.05436145141720772, -0.011923626065254211, -0.07160116732120514, -0.037945449352264404, 0.020056596025824547, 0.041386015713214874, 0.01995968073606491, 0.006123739294707775, 0.04228578507900238, -0.19899138808250427, 0.13222277164459229, 0.04151691496372223, 0.07676884531974792, 0.06643303483724594, 0.012124231085181236, -0.016219113022089005, -0.02328532561659813, -0.07251732051372528, 0.03290639817714691, 0.0408921055495739, 0.08443276584148407, -0.03075067140161991, -0.007900501601397991, -0.10140024125576019, 0.05212068557739258, 0.025002827867865562, -0.07375825941562653, 0.0075174057856202126, 0.026394695043563843, 0.013606083579361439, -0.008808048442006111, 0.019541272893548012, -0.017877977341413498, 0.08077842742204666, 0.09682551771402359, -0.051054369658231735, -0.002280009211972356, 0.0015857532853260636, 0.03934352844953537, 0.05477967858314514, 0.01556230615824461, -0.021436743438243866, 0.003824411891400814, -0.0010353911202400923, 0.03904843330383301, 0.04818692058324814, -0.0296490341424942, -0.011393132619559765, 0.05538368970155716, 0.020282253623008728, 0.04345278441905975, -0.03575015068054199, -0.023102374747395515, -0.05564641207456589, -0.06389124691486359, 0.02226298674941063, 0.0635211318731308, 7.315946231731749e-33, -0.02557966858148575, -0.0324246883392334, 0.07753623276948929, 0.013692101463675499, -0.01801534742116928, -0.0962878093123436, -0.03593609854578972, -0.026444200426340103, -0.035571496933698654, 0.001906755962409079, -0.043231379240751266, 0.004151792731136084, -0.0474119633436203, 0.027712680399417877, 0.010423927567899227, 0.06724980473518372, -0.07458042353391647, 0.008542363531887531, 0.07523345947265625, -0.011909976601600647, 0.02603163756430149, -0.0032958753872662783, -0.004656796809285879, -0.01646827720105648, 0.02042365074157715, -0.05222086235880852, 0.056790076196193695, -0.0026684224139899015, -0.07261542975902557, -0.0019919832702726126, 0.02320140041410923, -0.03170810639858246, 0.004961458966135979, 0.0654471293091774, -0.0709218978881836, 0.04149503633379936, -0.00031530536944046617, 0.0030101239681243896, -0.06331982463598251, -0.02094760723412037, 0.025401590391993523, 0.019999191164970398, -0.012376178056001663, -0.019453518092632294, -0.043798431754112244, -0.06995441764593124, 0.05848071351647377, -0.02373485453426838, 0.13373048603534698, 0.08756151050329208, -0.012891558930277824, 0.025846358388662338, 0.01411917619407177, 0.02220265567302704, 0.10982280224561691, 0.06801185756921768, 0.13166682422161102, -0.05974901467561722, -0.04584253951907158, -0.059811271727085114, -0.020486339926719666, -0.07673705369234085, -0.01468526478856802, 0.03790214657783508, 0.006556526757776737, 0.04788541421294212, -0.01588907651603222, 0.006275980267673731, -0.06558018922805786, -0.0496886670589447, -0.032539643347263336, 0.04380205273628235, -0.01629210263490677, -0.051210980862379074, -0.08807636052370071, -0.07476741075515747, 0.039868343621492386, 0.035531990230083466, -0.13634149730205536, 0.11628884077072144, 0.07304208725690842, -0.05967419967055321, -0.022258397191762924, 0.04365998134016991, -0.05954400822520256, -0.02794802561402321, 0.06870926916599274, -0.008051239885389805, 0.01507095992565155, 0.03541207313537598, 0.02744787372648716, 0.013000207021832466, -0.038121145218610764, 0.1346684843301773, -0.09438770264387131, -7.246124806028782e-33, 0.05261160060763359, -0.01260807178914547, 0.06995190680027008, -0.008847886696457863, 0.01547144539654255, 0.08027998358011246, 0.00032889030990190804, 0.03154602274298668, -0.019053557887673378, 0.006468801759183407, 0.019096966832876205, -0.012057539075613022, -0.04094676673412323, 0.007682529743760824, -0.009186048991978168, 0.06401697546243668, -0.1382669359445572, -0.027248714119195938, -0.0026526562869548798, 0.04244771599769592, -0.013825486414134502, 0.03087903931736946, 0.01910361275076866, 0.015443306416273117, -0.005057358182966709, 0.042935170233249664, -0.008510764688253403, 0.025916671380400658, -0.028348790481686592, -0.04993535205721855, 0.018586141988635063, -0.060224998742341995, -0.0737573578953743, 0.0014880240196362138, -0.00789877213537693, -0.05902106314897537, 0.02033371292054653, 0.08478988707065582, -0.05779304727911949, 0.014034210704267025, 0.03401513025164604, 0.02680746279656887, -0.01289034727960825, 0.025556545704603195, 0.026006288826465607, -0.005476427264511585, 0.02833475172519684, -0.03808160871267319, 0.037645187228918076, 0.00202956167049706, -0.024699559435248375, -0.03080713003873825, -0.025362277403473854, 0.12065743654966354, -0.04661840200424194, 0.055497247725725174, 0.0245977770537138, 0.03925998508930206, 0.005106400698423386, -0.07811501622200012, 0.06886369735002518, -0.15170879662036896, 0.05118917301297188, 0.02570977248251438, -0.03799937665462494, -0.004666233900934458, 0.049884408712387085, 0.045933883637189865, 0.0028054872527718544, 0.04138342663645744, -0.01102842204272747, -0.10068416595458984, -0.045928504317998886, -0.06773070245981216, -0.051975008100271225, -0.015653593465685844, 0.0032776680309325457, -0.04044279456138611, 0.01530964020639658, 0.014819197356700897, -0.019458705559372902, -0.004951909184455872, -0.034759096801280975, -0.00298667186871171, -0.011351218447089195, -0.02520761825144291, 0.04105193912982941, 0.04130817577242851, 0.07324034720659256, 0.0452122688293457, -0.003324900520965457, 0.0027918657287955284, -0.04339774698019028, 0.05125996842980385, -0.024484138935804367, -5.316264761745515e-8, 0.03939434513449669, -0.05918024107813835, -0.04564082249999046, 0.005697824526578188, -0.0036095459945499897, -0.08475671708583832, -0.02241731435060501, -0.04604175686836243, -0.05216766521334648, -0.02480403520166874, 0.016671832650899887, 0.07275319844484329, -0.022350279614329338, 0.00771672185510397, 0.014017828740179539, -0.02518012374639511, -0.0336492694914341, 0.0001569565647514537, 0.029979756101965904, -0.02749430015683174, -0.10975781083106995, 0.023984035477042198, 0.04098426178097725, -0.06778156757354736, -0.05232314020395279, 0.10856557637453079, 0.025542262941598892, 0.08269563317298889, 0.042071983218193054, 0.024734042584896088, -0.00312277814373374, 0.06817373633384705, -0.08149956166744232, -0.08970330655574799, -0.06015925854444504, 0.0694471076130867, -0.10361693054437637, -0.02949937991797924, -0.011735064908862114, 0.0839814692735672, 0.0313284657895565, -0.023001136258244514, -0.02923859842121601, 0.023061741143465042, 0.01666618138551712, 0.0826030895113945, 0.036410290747880936, 0.054001335054636, 0.054199859499931335, 0.044310227036476135, -0.05928705260157585, -0.05429305136203766, -0.04288019239902496, 0.0642809122800827, -0.07949811965227127, -0.013623234815895557, 0.010230816900730133, 0.0052666738629341125, 0.05793251469731331, 0.04762433469295502, -0.02265881560742855, -0.016569817438721657, 0.04667344316840172, -0.07090304791927338 ]
0.106135
This page shows how to enable or disable an API version from your cluster's {{< glossary\_tooltip text="control plane" term\_id="control-plane" >}}. Specific API versions can be turned on or off by passing `--runtime-config=api/` as a command line argument to the API server. The values for this argument are a comma-separated list of API versions. Later values override earlier values. The `runtime-config` command line argument also supports 2 special keys: - `api/all`, representing all known APIs - `api/legacy`, representing only legacy APIs. Legacy APIs are any APIs that have been explicitly [deprecated](/docs/reference/using-api/deprecation-policy/). For example, to turn off all API versions except v1, pass `--runtime-config=api/all=false,api/v1=true` to the `kube-apiserver`. ## {{% heading "whatsnext" %}} Read the [full documentation](/docs/reference/command-line-tools-reference/kube-apiserver/) for the `kube-apiserver` component.
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/enable-disable-api.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/enable-disable-api.md
[ -0.01726820319890976, 0.02037830464541912, 0.06436193734407425, -0.020837895572185516, -0.01444584783166647, 0.009271468967199326, -0.07896044850349426, -0.09401602298021317, -0.011417215690016747, 0.03065665066242218, -0.023572593927383423, -0.05507514998316765, -0.059268224984407425, -0.023856250569224358, 0.03928178548812866, 0.00007403353083645925, 0.053034860640764236, -0.058083534240722656, -0.01560554001480341, -0.042454492300748825, 0.010912536643445492, 0.03820344805717468, -0.018251847475767136, 0.055867403745651245, -0.032802339643239975, -0.042330216616392136, -0.057116229087114334, -0.010448645800352097, 0.017068246379494667, 0.04629538953304291, -0.07426842302083969, 0.0837775394320488, -0.08283386379480362, 0.07061626017093658, 0.0567118339240551, -0.019770735874772072, -0.037916772067546844, 0.022319098934531212, 0.003077798755839467, 0.02779536321759224, 0.04803872108459473, 0.013949373736977577, -0.11466560512781143, -0.07891787588596344, -0.029523245990276337, 0.007195138838142157, -0.05261150002479553, -0.018991392105817795, -0.056922897696495056, 0.05067875608801842, 0.030414005741477013, -0.07000274956226349, -0.017985038459300995, -0.05988995358347893, 0.12283831089735031, -0.05775776877999306, -0.07028897106647491, 0.1117437332868576, 0.04000721126794815, -0.006173277273774147, -0.0160398967564106, -0.03118947148323059, 0.02343796193599701, -0.028417175635695457, -0.08152996748685837, 0.03997170925140381, 0.031480614095926285, -0.05577878654003143, 0.026685751974582672, -0.02701292373239994, -0.032029889523983, -0.03737558051943779, 0.011837964877486229, -0.07347307354211807, -0.020613539963960648, 0.08694293349981308, -0.027841825038194656, 0.04240746796131134, 0.014582248404622078, -0.1660245805978775, 0.03233635425567627, 0.0362556129693985, 0.0794609934091568, 0.11631199717521667, -0.0837838426232338, 0.0061662266962230206, -0.004995046649128199, -0.06713047623634338, 0.10795066505670547, -0.03133034706115723, 0.011393495835363865, -0.10235198587179184, 0.10586225241422653, -0.08542745560407639, 0.07119183987379074, 0.0125455092638731, -0.052561987191438675, -0.01776139624416828, 0.0015407747123390436, 0.020432110875844955, 0.0037615925539284945, -0.04745186120271683, 0.052459437400102615, 0.03653194010257721, -0.006240397226065397, -0.0007983666728250682, -0.014129559509456158, -0.033345796167850494, 0.015584957785904408, 0.055791933089494705, -0.0007026148377917707, 0.08984570950269699, 0.01861806958913803, -0.029415953904390335, -0.05823129788041115, -0.040390096604824066, 0.03521047905087471, -0.016800183802843094, 0.03951048105955124, 0.02171897515654564, 0.03974790498614311, -0.07689917832612991, 0.019690366461873055, 0.01821175217628479, -0.09842569380998611, 0.011188726872205734, -0.0017347370740026236, 4.732066752592339e-33, 0.05440123751759529, -0.06816667318344116, 0.02141355350613594, -0.03738420084118843, 0.011220480315387249, -0.0447402186691761, 0.023162763565778732, -0.01519935205578804, -0.0899691954255104, -0.04078834876418114, -0.009440246969461441, 0.11713206022977829, -0.04177979752421379, -0.0499289408326149, 0.08745811879634857, 0.028433701023459435, -0.008225287310779095, 0.013205827213823795, 0.0760480985045433, -0.012677444145083427, 0.041691552847623825, -0.022606628015637398, -0.019645163789391518, -0.026608915999531746, 0.005164916627109051, 0.0036304285749793053, 0.0033120650332421064, -0.0478968620300293, -0.055678386241197586, 0.011782430112361908, -0.005945674609392881, -0.02596668340265751, -0.012054270133376122, 0.005262061022222042, -0.14693139493465424, -0.04056638479232788, -0.0964047983288765, -0.01608046516776085, -0.025137007236480713, -0.00041121913818642497, 0.016333844512701035, 0.028005270287394524, -0.01718708872795105, -0.0785173699259758, 0.10090900957584381, 0.057223182171583176, 0.008283381350338459, -0.09951858222484589, 0.08931827545166016, -0.037337448447942734, 0.006176656112074852, 0.007688065990805626, 0.022068122401833534, -0.03910713642835617, 0.04889431223273277, -0.018238570541143417, 0.08459516614675522, -0.07501338422298431, -0.029892366379499435, -0.04280383512377739, 0.00724188145250082, -0.0357624776661396, -0.027567313984036446, 0.03494548797607422, 0.004182773642241955, 0.0237102210521698, -0.03625375032424927, 0.06330881267786026, -0.05895458161830902, -0.027642445638775826, -0.0501265674829483, 0.018428321927785873, -0.032690662890672684, 0.04490223526954651, 0.004857608582824469, -0.06828156858682632, 0.07715965807437897, 0.03510959818959236, -0.03649767488241196, 0.011584445834159851, -0.0027987731155008078, -0.039834119379520416, -0.03971906006336212, 0.0695904865860939, 0.07048753648996353, -0.0813172310590744, 0.01822569966316223, 0.003977558575570583, 0.044036488980054855, 0.01580122858285904, -0.01510386448353529, -0.07710108906030655, -0.12806300818920135, 0.025010976940393448, -0.10290779918432236, -6.359309092565401e-33, 0.08023137599229813, -0.015454653650522232, -0.0008145376341417432, 0.02723655104637146, -0.06019991263747215, -0.01731683500111103, 0.024301117286086082, 0.11303123831748962, -0.02502502128481865, -0.04043212905526161, 0.057831455022096634, -0.006340594030916691, 0.05139569193124771, 0.0345846451818943, -0.007048229221254587, 0.023445678874850273, -0.13694365322589874, 0.007851938717067242, -0.01904630847275257, 0.059441860765218735, 0.002354638883844018, -0.019761446863412857, 0.02419479750096798, 0.02912330999970436, -0.022664671763777733, -0.014044840820133686, -0.013695037923753262, 0.05109596997499466, -0.0038488213904201984, -0.07761523872613907, 0.01684645004570484, -0.009607856161892414, -0.004190016537904739, -0.050909679383039474, -0.007721484173089266, -0.06292760372161865, 0.024879038333892822, -0.00362177356146276, -0.06138647720217705, -0.0008114170050248504, 0.026939602568745613, -0.02358272485435009, -0.02859533205628395, -0.019095048308372498, 0.044043101370334625, 0.052525851875543594, 0.025878313928842545, -0.02410448156297207, -0.05140819400548935, -0.11733409017324448, 0.03777032718062401, 0.018103476613759995, 0.024731697514653206, 0.02850751020014286, -0.05207674205303192, 0.017030077055096626, 0.07708454132080078, 0.024372123181819916, -0.09155694395303726, 0.0029027981217950583, 0.06961054354906082, -0.08791148662567139, 0.07433415204286575, 0.03327371925115585, 0.02326560765504837, -0.002491907449439168, 0.0115309227257967, 0.06771422922611237, -0.021732894703745842, 0.04680081829428673, -0.04134180396795273, -0.07066211849451065, -0.04737245291471481, -0.023992104455828667, 0.01638604886829853, 0.02801230363547802, 0.000054418946092482656, -0.042733751237392426, 0.06256557255983353, -0.029540950432419777, -0.019757626578211784, 0.05391867086291313, 0.027680138126015663, 0.04484947398304939, 0.051062583923339844, 0.023552989587187767, 0.01793549954891205, 0.1183474063873291, 0.05877404659986496, 0.11413735151290894, -0.029435699805617332, -0.07241596281528473, -0.05046049878001213, 0.12429216504096985, -0.023396968841552734, -5.4033176155598994e-8, 0.02018904685974121, 0.1038014218211174, -0.04598946496844292, 0.03998389467597008, 0.05079461634159088, 0.037046246230602264, -0.018775533884763718, 0.04318535700440407, -0.004703884478658438, -0.031144365668296814, 0.0058122253976762295, 0.06682540476322174, -0.04630354419350624, 0.035768650472164154, 0.012992696836590767, 0.05062902718782425, -0.08838717639446259, 0.011913918890058994, 0.03484951704740524, -0.007414729800075293, -0.08817286789417267, -0.011767523363232613, 0.01887747272849083, -0.05504610762000084, -0.013691015541553497, -0.016347015276551247, 0.04009129852056503, 0.046274784952402115, 0.005567069631069899, -0.029218755662441254, -0.052017681300640106, 0.00713700195774436, -0.028926342725753784, 0.04826241359114647, -0.015183094888925552, -0.03442692384123802, -0.11117314547300339, 0.06764945387840271, 0.08152244240045547, 0.06506618857383728, 0.04257237911224365, 0.015550457872450352, -0.09470880031585693, 0.01679612137377262, 0.07579640299081802, 0.08349375426769257, 0.027820704504847527, 0.032500360161066055, -0.018448829650878906, 0.015839284285902977, -0.07961457967758179, 0.053122084587812424, -0.034981753677129745, 0.10202377289533615, -0.07604056596755981, -0.025871148332953453, -0.06963519752025604, -0.001798792276531458, 0.0007547847926616669, -0.020050883293151855, 0.06313464045524597, -0.010432196781039238, 0.05072775110602379, 0.04343043267726898 ]
0.058902
When using client certificate authentication, you can generate certificates manually through [`easyrsa`](https://github.com/OpenVPN/easy-rsa), [`openssl`](https://github.com/openssl/openssl) or [`cfssl`](https://github.com/cloudflare/cfssl). ### easyrsa \*\*easyrsa\*\* can manually generate certificates for your cluster. 1. Download, unpack, and initialize the patched version of `easyrsa3`. ```shell curl -LO https://dl.k8s.io/easy-rsa/easy-rsa.tar.gz tar xzf easy-rsa.tar.gz cd easy-rsa-master/easyrsa3 ./easyrsa init-pki ``` 1. Generate a new certificate authority (CA). `--batch` sets automatic mode; `--req-cn` specifies the Common Name (CN) for the CA's new root certificate. ```shell ./easyrsa --batch "--req-cn=${MASTER\_IP}@`date +%s`" build-ca nopass ``` 1. Generate server certificate and key. The argument `--subject-alt-name` sets the possible IPs and DNS names the API server will be accessed with. The `MASTER\_CLUSTER\_IP` is usually the first IP from the service CIDR that is specified as the `--service-cluster-ip-range` argument for both the API server and the controller manager component. The argument `--days` is used to set the number of days after which the certificate expires. The sample below also assumes that you are using `cluster.local` as the default DNS domain name. ```shell ./easyrsa --subject-alt-name="IP:${MASTER\_IP},"\ "IP:${MASTER\_CLUSTER\_IP},"\ "DNS:kubernetes,"\ "DNS:kubernetes.default,"\ "DNS:kubernetes.default.svc,"\ "DNS:kubernetes.default.svc.cluster,"\ "DNS:kubernetes.default.svc.cluster.local" \ --days=10000 \ build-server-full server nopass ``` 1. Copy `pki/ca.crt`, `pki/issued/server.crt`, and `pki/private/server.key` to your directory. 1. Fill in and add the following parameters into the API server start parameters: ```shell --client-ca-file=/yourdirectory/ca.crt --tls-cert-file=/yourdirectory/server.crt --tls-private-key-file=/yourdirectory/server.key ``` ### openssl \*\*openssl\*\* can manually generate certificates for your cluster. 1. Generate a ca.key with 2048bit: ```shell openssl genrsa -out ca.key 2048 ``` 1. According to the ca.key generate a ca.crt (use `-days` to set the certificate effective time): ```shell openssl req -x509 -new -nodes -key ca.key -subj "/CN=${MASTER\_IP}" -days 10000 -out ca.crt ``` 1. Generate a server.key with 2048bit: ```shell openssl genrsa -out server.key 2048 ``` 1. Create a config file for generating a Certificate Signing Request (CSR). Be sure to substitute the values marked with angle brackets (e.g. ``) with real values before saving this to a file (e.g. `csr.conf`). Note that the value for `MASTER\_CLUSTER\_IP` is the service cluster IP for the API server as described in previous subsection. The sample below also assumes that you are using `cluster.local` as the default DNS domain name. ```ini [ req ] default\_bits = 2048 prompt = no default\_md = sha256 req\_extensions = req\_ext distinguished\_name = dn [ dn ] C = ST = L = O = OU = CN = [ req\_ext ] subjectAltName = @alt\_names [ alt\_names ] DNS.1 = kubernetes DNS.2 = kubernetes.default DNS.3 = kubernetes.default.svc DNS.4 = kubernetes.default.svc.cluster DNS.5 = kubernetes.default.svc.cluster.local IP.1 = IP.2 = [ v3\_ext ] authorityKeyIdentifier=keyid,issuer:always basicConstraints=CA:FALSE keyUsage=keyEncipherment,dataEncipherment extendedKeyUsage=serverAuth,clientAuth subjectAltName=@alt\_names ``` 1. Generate the certificate signing request based on the config file: ```shell openssl req -new -key server.key -out server.csr -config csr.conf ``` 1. Generate the server certificate using the ca.key, ca.crt and server.csr: ```shell openssl x509 -req -in server.csr -CA ca.crt -CAkey ca.key \ -CAcreateserial -out server.crt -days 10000 \ -extensions v3\_ext -extfile csr.conf -sha256 ``` 1. View the certificate signing request: ```shell openssl req -noout -text -in ./server.csr ``` 1. View the certificate: ```shell openssl x509 -noout -text -in ./server.crt ``` Finally, add the same parameters into the API server start parameters. ### cfssl \*\*cfssl\*\* is another tool for certificate generation. 1. Download, unpack and prepare the command line tools as shown below. Note that you may need to adapt the sample commands based on the hardware architecture and cfssl version you are using. ```shell curl -L https://github.com/cloudflare/cfssl/releases/download/v1.5.0/cfssl\_1.5.0\_linux\_amd64 -o cfssl chmod +x cfssl curl -L https://github.com/cloudflare/cfssl/releases/download/v1.5.0/cfssljson\_1.5.0\_linux\_amd64 -o cfssljson chmod +x cfssljson curl -L https://github.com/cloudflare/cfssl/releases/download/v1.5.0/cfssl-certinfo\_1.5.0\_linux\_amd64 -o cfssl-certinfo chmod +x cfssl-certinfo ``` 1. Create a directory to hold the artifacts and initialize cfssl: ```shell mkdir cert cd cert ../cfssl print-defaults config > config.json ../cfssl print-defaults csr >
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/certificates.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/certificates.md
[ -0.06089754402637482, -0.03205491602420807, -0.05474862456321716, 0.031731825321912766, 0.0035062714014202356, -0.0007061599171720445, -0.06104138866066933, 0.03875657916069031, -0.025829771533608437, -0.0027123161125928164, 0.04423558712005615, -0.05657845363020897, 0.07274279743432999, 0.024008236825466156, 0.029849456623196602, -0.057049769908189774, -0.0686899796128273, 0.04847801849246025, 0.06775008141994476, -0.03981573507189751, -0.05598020553588867, -0.08410302549600601, -0.025384387001395226, 0.02249966561794281, -0.057123731821775436, -0.019143501296639442, 0.015157315880060196, 0.08104679733514786, 0.0075508360750973225, -0.004228850360959768, 0.07702325284481049, -0.00296787079423666, 0.06557608395814896, -0.011705789715051651, 0.061877720057964325, 0.09060576558113098, 0.10741767287254333, 0.09814033657312393, -0.06531884521245956, -0.0130410585552454, 0.07499297708272934, -0.05599275603890419, -0.06380670517683029, -0.0037461163010448217, 0.030899135395884514, 0.005514351651072502, -0.01991291530430317, -0.03839128836989403, -0.03913417458534241, -0.03150109201669693, -0.01127126719802618, -0.04369717091321945, 0.02747083455324173, -0.0004700078861787915, -0.07222498208284378, 0.0250100065022707, -0.04542003944516182, 0.0886770561337471, 0.08325771987438202, -0.017166757956147194, 0.05118691176176071, -0.00922743882983923, -0.005660610273480415, -0.0034016151912510395, -0.050753433257341385, 0.01890457794070244, 0.03693615645170212, -0.011946838349103928, 0.01740412227809429, 0.03728742152452469, 0.017801402136683464, 0.014751101844012737, -0.07043956965208054, 0.013387085869908333, -0.009295985102653503, 0.0135690588504076, -0.0634872242808342, 0.013094975613057613, -0.057029839605093, 0.002304978435859084, -0.007093536667525768, -0.05705484002828598, -0.041069865226745605, 0.06510791182518005, -0.09116864204406738, 0.06465355306863785, 0.0086812824010849, -0.013531803153455257, 0.04284531623125076, -0.009456031024456024, 0.10171294957399368, 0.032189350575208664, 0.02006463147699833, -0.045829713344573975, 0.06766845285892487, 0.043028466403484344, 0.036236751824617386, -0.018311718478798866, 0.0279572494328022, -0.0028924201615154743, -0.027559444308280945, -0.02542405016720295, -0.027389315888285637, -0.06124810129404068, -0.022230003029108047, 0.1099916324019432, -0.04289989918470383, -0.022353189066052437, 0.0162630844861269, 0.025169139727950096, -0.053752750158309937, 0.009243890643119812, -0.01542607881128788, -0.06950327008962631, -0.09544721245765686, 0.12993520498275757, -0.012553263455629349, -0.015112492255866528, -0.03212795406579971, 0.04214271903038025, -0.010065557435154915, -0.05764882266521454, -0.013397308066487312, 0.03306205943226814, -0.01965213008224964, 0.051244985312223434, 0.001884501427412033, 3.656327423774723e-33, 0.06133633852005005, 0.05101388320326805, 0.004231725819408894, -0.013789420947432518, 0.016785601153969765, -0.04389921575784683, 0.08803059905767441, -0.06204359605908394, -0.10583237558603287, -0.06053657457232475, 0.0276071485131979, 0.06145026162266731, -0.028440413996577263, -0.11733846366405487, 0.014626769348978996, -0.03399115428328514, -0.04559461027383804, -0.010472402907907963, 0.03696243092417717, 0.05553735792636871, -0.01432658452540636, -0.031247815117239952, 0.0683780238032341, -0.037201132625341415, 0.004619335290044546, 0.01742827333509922, 0.1087200790643692, -0.04497707262635231, 0.060957491397857666, -0.04463512450456619, 0.08221093565225601, -0.037016477435827255, 0.003137233667075634, 0.01186107937246561, -0.04099339246749878, 0.01443886011838913, 0.03964972123503685, -0.02724107913672924, -0.053073178976774216, -0.038687814027071, 0.04277249425649643, 0.015653908252716064, 0.07872580736875534, 0.020511167123913765, 0.027144191786646843, 0.020791802555322647, -0.035366982221603394, -0.028295129537582397, 0.19131657481193542, 0.011395138688385487, -0.007816249504685402, -0.028622258454561234, -0.056860316544771194, -0.06960448622703552, -0.000304636632790789, -0.02517876587808132, -0.0050803543999791145, 0.009090561419725418, -0.07910874485969543, -0.07725032418966293, -0.01156897284090519, -0.06501388549804688, -0.05433889478445053, -0.05109727010130882, -0.01770455576479435, -0.02233780547976494, -0.012911083176732063, 0.03982129320502281, -0.02211107686161995, -0.03628545626997948, -0.06732526421546936, 0.05045206844806671, 0.008097123354673386, 0.01039211731404066, 0.0025601715315133333, 0.006189844571053982, -0.002204433549195528, 0.061629317700862885, -0.017196135595440865, -0.020200148224830627, -0.050493061542510986, 0.04265226796269417, -0.038875170052051544, 0.10435084253549576, 0.04044176638126373, 0.044283315539360046, 0.01168218906968832, 0.09662283957004547, -0.05102130398154259, -0.06493067741394043, 0.07024690508842468, 0.01855127513408661, 0.10106298327445984, 0.054950956255197525, -0.08665774762630463, -3.394563198945831e-33, -0.02949482575058937, -0.07250872999429703, 0.035133421421051025, 0.09359551966190338, 0.07208816707134247, -0.006032188888639212, -0.07603943347930908, 0.11653725802898407, 0.000415312621043995, 0.05145301669836044, -0.012129893526434898, -0.0751899853348732, 0.09903694689273834, -0.07703586667776108, 0.003253794275224209, -0.04624413326382637, -0.01777138188481331, 0.08738582581281662, 0.009468453004956245, -0.03257614001631737, 0.024798233062028885, 0.008414043113589287, 0.023717788979411125, 0.007120301015675068, 0.04381595179438591, 0.05472433194518089, 0.02201833762228489, 0.04146189987659454, -0.061121705919504166, 0.008684741333127022, 0.028989344835281372, -0.002856646664440632, -0.07140831649303436, 0.034837860614061356, -0.02077389508485794, -0.05968695878982544, -0.026628028601408005, 0.007450305391103029, -0.017718181014060974, -0.03151815012097359, -0.01874910667538643, -0.047946102917194366, -0.0809047669172287, -0.015323596075177193, 0.0245431549847126, 0.018102960661053658, 0.10085649788379669, 0.009322300553321838, -0.05859836935997009, 0.02837161161005497, -0.0036830974277108908, -0.01855539344251156, -0.003714317223057151, 0.03396950289607048, 0.07684335857629776, 0.037068869918584824, 0.015112411230802536, 0.12695707380771637, -0.015523133799433708, -0.0019642962142825127, 0.027680901810526848, -0.079253189265728, 0.0013326568296179175, 0.059599000960588455, -0.05142322555184364, 0.040315695106983185, -0.05876102298498154, 0.020059913396835327, -0.05342702940106392, 0.03771346062421799, -0.06306957453489304, 0.0074147749692201614, 0.003838801058009267, -0.01764024794101715, 0.09435773640871048, 0.012581625021994114, -0.037407562136650085, -0.004648175556212664, 0.030593717470765114, -0.016340060159564018, -0.007996457628905773, 0.04795997962355614, -0.0675174742937088, -0.011309653520584106, 0.08840328454971313, -0.051075976341962814, 0.114937923848629, 0.00691181980073452, 0.04968775436282158, 0.06343972682952881, -0.07230252772569656, 0.05933072790503502, 0.07753394544124603, 0.08764666318893433, 0.06720629334449768, -4.754011229124444e-8, 0.05223517864942551, -0.07582759857177734, -0.1030266061425209, -0.004750921856611967, 0.02138848416507244, 0.04079490527510643, -0.016341188922524452, 0.005086696241050959, -0.09226473420858383, -0.04360070824623108, -0.0078084710985422134, -0.08848303556442261, -0.04847957193851471, 0.0021071636583656073, -0.0298031996935606, 0.04005185887217522, -0.007934251800179482, 0.05353054776787758, -0.011280285194516182, -0.05036987364292145, 0.006592214573174715, -0.03040490485727787, 0.03167010471224785, 0.05962008610367775, -0.014346698299050331, 0.053758278489112854, 0.039679449051618576, 0.017020700499415398, -0.039656396955251694, -0.08025389909744263, -0.09029976278543472, -0.06512416899204254, 0.015218909829854965, 0.00702626071870327, -0.029431844130158424, 0.08640670776367188, -0.11177416145801544, 0.04153529927134514, 0.0332736000418663, 0.06818380206823349, -0.028940578922629356, 0.06453794240951538, -0.06390193104743958, -0.018085090443491936, -0.08251091837882996, 0.0265374593436718, -0.02936357446014881, -0.019392581656575203, 0.02857149951159954, -0.0038908938877284527, 0.007153647020459175, -0.14101199805736542, -0.016969718039035797, -0.07036658376455307, -0.11194746941328049, 0.0693088248372078, -0.0534430667757988, -0.008790919557213783, 0.0899340957403183, -0.02698918990790844, -0.011238179169595242, 0.01121602114289999, 0.05629279464483261, 0.01537091750651598 ]
-0.020122
curl -L https://github.com/cloudflare/cfssl/releases/download/v1.5.0/cfssl\_1.5.0\_linux\_amd64 -o cfssl chmod +x cfssl curl -L https://github.com/cloudflare/cfssl/releases/download/v1.5.0/cfssljson\_1.5.0\_linux\_amd64 -o cfssljson chmod +x cfssljson curl -L https://github.com/cloudflare/cfssl/releases/download/v1.5.0/cfssl-certinfo\_1.5.0\_linux\_amd64 -o cfssl-certinfo chmod +x cfssl-certinfo ``` 1. Create a directory to hold the artifacts and initialize cfssl: ```shell mkdir cert cd cert ../cfssl print-defaults config > config.json ../cfssl print-defaults csr > csr.json ``` 1. Create a JSON config file for generating the CA file, for example, `ca-config.json`: ```json { "signing": { "default": { "expiry": "8760h" }, "profiles": { "kubernetes": { "usages": [ "signing", "key encipherment", "server auth", "client auth" ], "expiry": "8760h" } } } } ``` 1. Create a JSON config file for CA certificate signing request (CSR), for example, `ca-csr.json`. Be sure to replace the values marked with angle brackets with real values you want to use. ```json { "CN": "kubernetes", "key": { "algo": "rsa", "size": 2048 }, "names":[{ "C": "", "ST": "", "L": "", "O": "", "OU": "" }] } ``` 1. Generate CA key (`ca-key.pem`) and certificate (`ca.pem`): ```shell ../cfssl gencert -initca ca-csr.json | ../cfssljson -bare ca ``` 1. Create a JSON config file for generating keys and certificates for the API server, for example, `server-csr.json`. Be sure to replace the values in angle brackets with real values you want to use. The `` is the service cluster IP for the API server as described in previous subsection. The sample below also assumes that you are using `cluster.local` as the default DNS domain name. ```json { "CN": "kubernetes", "hosts": [ "127.0.0.1", "", "", "kubernetes", "kubernetes.default", "kubernetes.default.svc", "kubernetes.default.svc.cluster", "kubernetes.default.svc.cluster.local" ], "key": { "algo": "rsa", "size": 2048 }, "names": [{ "C": "", "ST": "", "L": "", "O": "", "OU": "" }] } ``` 1. Generate the key and certificate for the API server, which are by default saved into file `server-key.pem` and `server.pem` respectively: ```shell ../cfssl gencert -ca=ca.pem -ca-key=ca-key.pem \ --config=ca-config.json -profile=kubernetes \ server-csr.json | ../cfssljson -bare server ``` ## Distributing Self-Signed CA Certificate A client node may refuse to recognize a self-signed CA certificate as valid. For a non-production deployment, or for a deployment that runs behind a company firewall, you can distribute a self-signed CA certificate to all clients and refresh the local list for valid certificates. On each client, perform the following operations: ```shell sudo cp ca.crt /usr/local/share/ca-certificates/kubernetes.crt sudo update-ca-certificates ``` ```none Updating certificates in /etc/ssl/certs... 1 added, 0 removed; done. Running hooks in /etc/ca-certificates/update.d.... done. ``` ## Certificates API You can use the `certificates.k8s.io` API to provision x509 certificates to use for authentication as documented in the [Managing TLS in a cluster](/docs/tasks/tls/managing-tls-in-a-cluster) task page.
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/certificates.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/certificates.md
[ -0.06733948737382889, -0.016067693009972572, -0.10740126669406891, -0.04002511128783226, 0.05815054476261139, -0.09241243451833725, -0.054519541561603546, 0.03098970279097557, 0.04754702001810074, -0.01324386801570654, 0.04695282503962517, -0.04188805818557739, -0.006098899524658918, 0.024140190333127975, -0.013341578654944897, -0.06160328909754753, -0.0907818004488945, 0.009458559565246105, -0.024400196969509125, -0.042483244091272354, -0.013693505898118019, 0.011486396193504333, -0.031471725553274155, -0.04024997353553772, -0.03349830210208893, 0.07742834836244583, -0.09701507538557053, 0.021430738270282745, 0.04529031738638878, 0.0009562356863170862, 0.07699819654226303, 0.04674755781888962, 0.00006826228491263464, 0.004739855881780386, 0.13460606336593628, 0.07762056589126587, 0.09304900467395782, -0.017792867496609688, -0.04372921213507652, -0.04086032509803772, -0.01852285861968994, -0.04576858878135681, 0.010036047548055649, -0.012492970563471317, -0.03574962541460991, -0.03717916086316109, -0.018149035051465034, 0.018176032230257988, 0.02371811307966709, 0.04200712963938713, -0.054961275309324265, -0.05692457780241966, -0.00803931150585413, 0.025790860876441002, 0.009975679218769073, 0.028520410880446434, -0.044905565679073334, 0.041341427713632584, 0.02383222058415413, -0.009270761162042618, -0.006394130177795887, -0.044716645032167435, -0.03744605928659439, 0.03954475000500679, -0.05729573592543602, 0.057600513100624084, -0.03081315942108631, -0.003730397205799818, 0.002772033214569092, 0.03943164274096489, -0.060924842953681946, 0.013513495214283466, -0.010720356367528439, 0.03728823363780975, 0.0747104361653328, 0.11901161074638367, -0.009815196506679058, -0.038004081696271896, -0.033659402281045914, -0.10247106850147247, 0.03893360123038292, -0.02046642079949379, 0.08253908157348633, 0.03730155527591705, -0.046696726232767105, 0.06293794512748718, 0.06652814149856567, 0.028141528367996216, 0.10501707345247269, 0.08709274977445602, 0.030078142881393433, 0.015385809354484081, -0.04625025764107704, -0.013358339667320251, -0.0325646735727787, 0.02443898655474186, 0.023220079019665718, 0.09287496656179428, -0.01594425179064274, 0.029352528974413872, -0.06421428173780441, -0.09364427626132965, 0.04405386000871658, 0.014526484534144402, -0.0073885321617126465, 0.013102978467941284, -0.02020506002008915, 0.05060024932026863, -0.006429965142160654, -0.08213482052087784, -0.06310754269361496, 0.04343705251812935, -0.03290076181292534, -0.1159810870885849, 0.021046357229351997, 0.09161479026079178, 0.00047450134297832847, -0.025755809620022774, -0.06090029329061508, 0.018050668761134148, 0.04919232055544853, -0.05587773025035858, -0.004143864382058382, -0.01586349681019783, -0.0441717728972435, -0.02256610430777073, 0.02150694653391838, 4.79533626665741e-33, 0.06377042829990387, 0.010461179539561272, 0.008114542812108994, 0.0200809258967638, 0.07922876626253128, -0.09206299483776093, 0.0993698388338089, 0.04440120607614517, -0.1321001648902893, 0.029993202537298203, -0.04723644629120827, 0.046538013964891434, -0.12967048585414886, -0.0738038644194603, 0.005318967159837484, -0.10466958582401276, 0.0005310747073963284, -0.01424567960202694, -0.007892723195254803, -0.011674860492348671, 0.02716127038002014, 0.0051470729522407055, 0.04032878205180168, 0.042635705322027206, 0.08482744544744492, -0.005837637931108475, 0.0830928161740303, 0.0450281947851181, 0.0055687204003334045, 0.025764329358935356, 0.07040584832429886, -0.018167922273278236, 0.024524539709091187, -0.00031705497531220317, 0.006062652915716171, 0.026494942605495453, -0.0006697940989397466, 0.009018057957291603, -0.0608992762863636, 0.01247362606227398, 0.09722597897052765, -0.024723351001739502, -0.06124899163842201, 0.048472873866558075, 0.0010948969284072518, -0.09460090100765228, -0.05350939929485321, -0.0663650631904602, 0.09662541002035141, 0.018574636429548264, 0.032715220004320145, 0.08199087530374527, -0.043551262468099594, -0.041077591478824615, 0.07193240523338318, -0.014046669006347656, -0.02207523211836815, -0.08027593791484833, -0.0639694556593895, -0.058286093175411224, 0.01385938934981823, 0.04535506293177605, -0.06775293499231339, -0.03242158517241478, 0.027253173291683197, -0.027136091142892838, -0.009875498712062836, 0.05805499106645584, -0.05043776333332062, -0.0030444134026765823, -0.06465549767017365, 0.023580262437462807, 0.027321171015501022, 0.027777202427387238, 0.05563167482614517, 0.005484429188072681, -0.007943558506667614, 0.046657782047986984, -0.008731083013117313, -0.08105191588401794, -0.030647698789834976, 0.028057990595698357, -0.06417981535196304, 0.02456374280154705, -0.08711141347885132, 0.03933728486299515, 0.009747265838086605, 0.029408296570181847, -0.01988089270889759, -0.08773073554039001, -0.03639797121286392, -0.04343713819980621, 0.1272302269935608, -0.08640722185373306, -0.14002466201782227, -5.4854025111259566e-33, 0.004702053032815456, -0.10586390644311905, -0.01849806122481823, 0.06341680139303207, -0.0007094740867614746, 0.0418284572660923, -0.013268876820802689, 0.020225347951054573, 0.04139770194888115, -0.012548210099339485, -0.025042053312063217, 0.07659316062927246, -0.012269516475498676, -0.0704473927617073, -0.04272162541747093, 0.004179265815764666, -0.04993966594338417, -0.05743904411792755, -0.07647611200809479, -0.024652522057294846, 0.03512907773256302, 0.04214930906891823, 0.10161928087472916, 0.03529486060142517, -0.0469001941382885, 0.047879040241241455, 0.04229407384991646, 0.038207147270441055, -0.02599346451461315, 0.07344289124011993, -0.003627100493758917, 0.042680807411670685, -0.029102738946676254, -0.016031594946980476, 0.008810415863990784, -0.08499979227781296, 0.026076631620526314, 0.1353040188550949, -0.06277690082788467, -0.010715804062783718, -0.000370518711861223, 0.008010322228074074, -0.11824198067188263, -0.03595583140850067, 0.00626822654157877, 0.042872026562690735, 0.04611830785870552, -0.06498835235834122, -0.04268250614404678, 0.028480758890509605, 0.01796187274158001, 0.01789061538875103, -0.005170639604330063, 0.009406010620296001, 0.023508599027991295, 0.06552863866090775, 0.010955775156617165, 0.009606526233255863, -0.05818219482898712, 0.04848387837409973, 0.06137131154537201, -0.05718405544757843, -0.031535953283309937, -0.014074945822358131, 0.10733427107334137, 0.002697196090593934, -0.15866267681121826, 0.02556733414530754, -0.06419103592634201, 0.047429949045181274, -0.023032229393720627, -0.011254662647843361, 0.010816196911036968, -0.030516257509589195, 0.08115179091691971, -0.01859140209853649, -0.00784610491245985, -0.03220236673951149, -0.04004956781864166, 0.09996651113033295, -0.013649104163050652, 0.05829394608736038, 0.009598247706890106, 0.03556552156805992, -0.008273613639175892, -0.04461212456226349, 0.03608530014753342, -0.05331776663661003, 0.025179505348205566, 0.029480040073394775, -0.07535094767808914, 0.0403897762298584, 0.07330787926912308, 0.021403782069683075, 0.09057476371526718, -4.7852719120555776e-8, -0.052772119641304016, -0.004056766629219055, -0.06683459132909775, 0.021853061392903328, 0.03629507124423981, 0.03925096616148949, -0.025101536884903908, -0.04092717170715332, 0.02289530262351036, -0.0783906877040863, -0.024619879201054573, -0.01118595153093338, 0.023131515830755234, -0.00788725446909666, -0.05099644139409065, -0.04564141482114792, -0.04613155499100685, 0.016462715342640877, -0.008957630954682827, -0.08087234944105148, -0.0047538429498672485, 0.014239801093935966, 0.07348597049713135, -0.002050903858616948, 0.001680284272879362, -0.03441105782985687, 0.05090361833572388, -0.000866734771989286, -0.05789455398917198, 0.062136225402355194, -0.1235792487859726, -0.027754679322242737, 0.04704601317644119, -0.06208360195159912, 0.0362810380756855, 0.008660058490931988, -0.10667944699525833, -0.0449882410466671, -0.023009218275547028, 0.012375285848975182, 0.03518686443567276, 0.06760124117136002, -0.00851538497954607, 0.024506444111466408, 0.014771943911910057, -0.003904167329892516, 0.05773727968335152, 0.06917402148246765, -0.0035038439091295004, 0.0360313318669796, 0.027097206562757492, -0.027101658284664154, -0.06257538497447968, 0.06892459094524384, -0.005929333623498678, 0.04950008913874626, 0.022431401535868645, 0.0010845739161595702, 0.03231114521622658, -0.023899056017398834, -0.051202110946178436, 0.002021573716774583, 0.09236006438732147, 0.032563623040914536 ]
0.014084
Kubernetes core components such as the API server, scheduler, and controller-manager run on a control plane node. However, add-ons must run on a regular cluster node. Some of these add-ons are critical to a fully functional cluster, such as metrics-server, DNS, and UI. A cluster may stop working properly if a critical add-on is evicted (either manually or as a side effect of another operation like upgrade) and becomes pending (for example when the cluster is highly utilized and either there are other pending pods that schedule into the space vacated by the evicted critical add-on pod or the amount of resources available on the node changed for some other reason). Note that marking a pod as critical is not meant to prevent evictions entirely; it only prevents the pod from becoming permanently unavailable. A static pod marked as critical can't be evicted. However, non-static pods marked as critical are always rescheduled. ### Marking pod as critical To mark a Pod as critical, set priorityClassName for that Pod to `system-cluster-critical` or `system-node-critical`. `system-node-critical` is the highest available priority, even higher than `system-cluster-critical`.
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/guaranteed-scheduling-critical-addon-pods.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/guaranteed-scheduling-critical-addon-pods.md
[ 0.03493572771549225, -0.053975190967321396, 0.0325733982026577, 0.060967426747083664, 0.053513046354055405, 0.0014907618751749396, -0.04240812361240387, -0.03014054149389267, 0.06909395009279251, 0.1067323237657547, 0.016862893477082253, -0.015117743983864784, -0.018177572637796402, -0.000244979455601424, 0.021718988195061684, -0.0265760887414217, 0.09002874046564102, -0.07141505181789398, -0.03323707357048988, -0.035664211958646774, 0.01350274309515953, 0.008726848289370537, -0.014870540238916874, 0.03079243376851082, -0.08148639649152756, -0.017383022233843803, -0.05889059230685234, 0.028349626809358597, 0.03145512938499451, 0.017292244359850883, -0.095645472407341, -0.026095589622855186, 0.04018278792500496, 0.026118390262126923, 0.04796500504016876, 0.09101668745279312, 0.009968037717044353, -0.041718989610672, -0.06145442649722099, -0.015618986450135708, 0.05349229276180267, -0.054876770824193954, -0.0886603370308876, -0.04937414452433586, -0.03165417164564133, -0.000012285276170587167, -0.05494213476777077, -0.08581306040287018, -0.040861763060092926, -0.03141922876238823, 0.03281577304005623, -0.08348151296377182, 0.07667754590511322, 0.04565340280532837, 0.05704403296113014, 0.10430517792701721, 0.027821218594908714, 0.025566888973116875, 0.059856656938791275, -0.016954513266682625, 0.050517283380031586, -0.013973013497889042, 0.047445256263017654, -0.027636487036943436, 0.08248157799243927, -0.003996334504336119, 0.024938153102993965, 0.012852785177528858, 0.03529147058725357, 0.04358720779418945, 0.10851254314184189, -0.0196037869900465, 0.026204073801636696, -0.04219115525484085, 0.0010845635551959276, 0.06763678789138794, -0.01839633658528328, 0.0057975915260612965, 0.01259031891822815, -0.024961011484265327, -0.03378526493906975, 0.00681868102401495, 0.05380881950259209, -0.028144773095846176, -0.08858879655599594, -0.0008747532265260816, -0.015871942043304443, -0.06520936638116837, 0.04677720367908478, 0.006872652098536491, 0.052608657628297806, 0.017109796404838562, 0.07234840095043182, -0.11169376224279404, 0.07506012171506882, 0.007991151884198189, -0.03253026306629181, -0.03452766314148903, -0.006941615138202906, 0.0012574588181450963, 0.009861394762992859, -0.008687966503202915, -0.029923535883426666, -0.028823286294937134, 0.07619526237249374, -0.05453667417168617, -0.05331945791840553, -0.052757084369659424, 0.031620364636182785, 0.033400941640138626, 0.02146584540605545, 0.04553472623229027, 0.05547667294740677, 0.02848578244447708, -0.011999295093119144, 0.06080358102917671, 0.007216684985905886, -0.024097928777337074, 0.050740063190460205, 0.03363168239593506, 0.047072187066078186, -0.09046151489019394, 0.017051145434379578, 0.008215074427425861, -0.03712502866983414, 0.08674365282058716, 0.022710181772708893, 3.335487260977319e-33, 0.0169540848582983, -0.10083853453397751, 0.01686074398458004, -0.042732082307338715, 0.0065863169729709625, -0.09563650190830231, -0.022455578669905663, -0.005115056410431862, -0.012963260523974895, -0.0872877910733223, -0.0784384086728096, 0.01954047381877899, 0.038541123270988464, -0.036175232380628586, 0.022616347298026085, -0.043119583278894424, 0.029401957988739014, -0.01559925451874733, 0.05684597045183182, -0.024007538333535194, 0.04997820779681206, -0.08959513157606125, -0.04707332327961922, -0.007294651586562395, 0.0035258063580840826, -0.028066106140613556, 0.03891291469335556, -0.08545652031898499, -0.04921146482229233, 0.01892070099711418, -0.0624031201004982, -0.009495818056166172, -0.0070053027011454105, 0.06887196749448776, -0.14434972405433655, 0.030126698315143585, -0.05256269872188568, 0.03169764578342438, -0.09152605384588242, -0.0747804120182991, 0.005665302276611328, -0.016845356673002243, -0.03833427652716637, -0.005501060280948877, 0.14604854583740234, -0.019687721505761147, 0.07520321756601334, -0.08708450198173523, 0.01000258419662714, 0.02065286599099636, -0.00507900258526206, -0.0076691466383636, 0.04032812640070915, -0.03180323541164398, -0.05258048698306084, 0.038109876215457916, 0.12000364065170288, -0.07461889088153839, -0.027575235813856125, 0.010395210236310959, -0.02565503865480423, -0.07578518986701965, -0.01730380766093731, -0.03647305816411972, 0.07850456237792969, 0.0819469690322876, -0.03274666890501976, 0.04089601710438728, 0.004754563327878714, 0.03579426556825638, -0.038319602608680725, 0.04879425838589668, 0.005551509093493223, 0.02157561294734478, -0.03223003074526787, -0.06602171808481216, -0.016535380855202675, -0.026572171598672867, -0.1355462223291397, 0.04027162864804268, 0.036017175763845444, -0.027870753780007362, -0.011811726726591587, 0.07473451644182205, 0.00023064254492055625, -0.08092603087425232, 0.023427974432706833, 0.05366353318095207, -0.052401017397642136, 0.0216221883893013, 0.07094687223434448, -0.019458318129181862, -0.03496965393424034, 0.07404273003339767, -0.06781809777021408, -4.039211280434482e-33, 0.009004217572510242, -0.03495755046606064, -0.06135827675461769, 0.06342979520559311, -0.00607213843613863, 0.0004005131486337632, -0.10173025727272034, 0.029798295348882675, -0.026794416829943657, -0.07509084045886993, -0.050997309386730194, -0.07068325579166412, 0.00862331036478281, 0.008875742554664612, -0.08348888158798218, 0.02412315271794796, -0.1190209835767746, -0.03249683603644371, 0.002232239581644535, 0.056230831891298294, 0.026454124599695206, -0.015482788905501366, 0.02475311979651451, 0.043212298303842545, -0.015260657295584679, 0.03698624670505524, -0.00498502142727375, 0.044930435717105865, -0.06149901822209358, 0.02459140494465828, 0.03271108493208885, -0.11088627576828003, -0.0033280542120337486, 0.09544656425714493, 0.05188458785414696, -0.023065393790602684, -0.03957489877939224, 0.035647738724946976, -0.04603872448205948, 0.011188631877303123, 0.06168146803975105, 0.03404916822910309, -0.033355433493852615, 0.014709467999637127, -0.018578995019197464, 0.03848031908273697, 0.044184472411870956, -0.025414858013391495, -0.0756140649318695, -0.08922772109508514, -0.03560217469930649, -0.03178280219435692, -0.029310138896107674, 0.14608731865882874, -0.0003871256485581398, 0.04478366672992706, -0.02052456885576248, 0.07473862171173096, 0.00041492722812108696, 0.06546472012996674, 0.04163980484008789, -0.08422452211380005, 0.030504541471600533, -0.02097468450665474, -0.009501450695097446, -0.07369966804981232, 0.04049680382013321, -0.028228463605046272, 0.015994563698768616, 0.02589479647576809, 0.032669782638549805, 0.05419391393661499, 0.014495134353637695, 0.021167350932955742, -0.05664614215493202, -0.003587807295843959, 0.04317973181605339, -0.020965151488780975, 0.008584798313677311, -0.04136068373918533, -0.08334419876337051, 0.0378599651157856, -0.07342793792486191, 0.0008612872334197164, 0.00808542501181364, 0.03734339028596878, 0.0673699826002121, 0.08510548621416092, 0.04820039123296738, 0.05879528447985649, 0.0008254660642705858, 0.04086098074913025, -0.04436497762799263, 0.06989298015832901, -0.04428435117006302, -5.5490243511258086e-8, 0.08486904948949814, 0.028383605182170868, -0.00780913233757019, 0.010337844491004944, 0.12080426514148712, -0.04110151529312134, 0.10807045549154282, 0.002115866169333458, -0.059399526566267014, 0.05609044060111046, 0.01620132476091385, 0.004061051178723574, -0.043238259851932526, -0.05832620710134506, 0.02819838933646679, -0.00345617881976068, 0.03333304822444916, 0.061396047472953796, -0.015309595502912998, -0.052000295370817184, -0.11118953675031662, -0.09098170697689056, -0.03302900493144989, -0.0004531123850028962, -0.03167534992098808, 0.039974987506866455, 0.110273577272892, 0.004435326438397169, 0.04473871737718582, 0.021442802622914314, -0.09944327175617218, 0.007007375825196505, -0.004018634557723999, 0.061840981245040894, -0.032555680721998215, 0.0976608470082283, -0.10027419030666351, 0.03351527079939842, -0.03125499188899994, 0.05696415528655052, 0.005138883367180824, -0.017819209024310112, -0.06881137192249298, -0.007390967104583979, 0.056877221912145615, 0.04971747100353241, -0.0701242983341217, 0.07065582275390625, 0.00463442225009203, -0.03127352520823479, -0.00042518143891356885, -0.08113746345043182, -0.03343447670340538, 0.11018391698598862, -0.046861812472343445, -0.0005981227732263505, 0.009810331277549267, -0.044245414435863495, 0.016891272738575935, 0.03978131711483002, 0.027172518894076347, -0.0023708499502390623, -0.025701383128762245, -0.06060413271188736 ]
0.165793
{{< feature-state state="stable" for\_k8s\_version="v1.27" >}} An increasing number of systems leverage a combination of CPUs and hardware accelerators to support latency-critical execution and high-throughput parallel computation. These include workloads in fields such as telecommunications, scientific computing, machine learning, financial services and data analytics. Such hybrid systems comprise a high performance environment. In order to extract the best performance, optimizations related to CPU isolation, memory and device locality are required. However, in Kubernetes, these optimizations are handled by a disjoint set of components. \_Topology Manager\_ is a kubelet component that aims to coordinate the set of components that are responsible for these optimizations. ## {{% heading "prerequisites" %}} {{< include "task-tutorial-prereqs.md" >}} {{< version-check >}} ## How topology manager works Prior to the introduction of Topology Manager, the CPU and Device Manager in Kubernetes make resource allocation decisions independently of each other. This can result in undesirable allocations on multiple-socketed systems, and performance/latency sensitive applications will suffer due to these undesirable allocations. Undesirable in this case meaning, for example, CPUs and devices being allocated from different NUMA Nodes, thus incurring additional latency. The Topology Manager is a kubelet component, which acts as a source of truth so that other kubelet components can make topology aligned resource allocation choices. The Topology Manager provides an interface for components, called \*Hint Providers\*, to send and receive topology information. The Topology Manager has a set of node level policies which are explained below. The Topology Manager receives topology information from the \*Hint Providers\* as a bitmask denoting NUMA Nodes available and a preferred allocation indication. The Topology Manager policies perform a set of operations on the hints provided and converge on the hint determined by the policy to give the optimal result. If an undesirable hint is stored, the preferred field for the hint will be set to false. In the current policies preferred is the narrowest preferred mask. The selected hint is stored as part of the Topology Manager. Depending on the policy configured, the pod can be accepted or rejected from the node based on the selected hint. The hint is then stored in the Topology Manager for use by the \*Hint Providers\* when making the resource allocation decisions. The flow can be seen in the following diagram. ![topology\_manager\_flow](/images/docs/topology-manager-flow.png) ## Windows Support {{< feature-state feature\_gate\_name="WindowsCPUAndMemoryAffinity" >}} The Topology Manager support can be enabled on Windows by using the `WindowsCPUAndMemoryAffinity` feature gate and it requires support in the container runtime. ## Topology manager scopes and policies The Topology Manager currently: - aligns Pods of all QoS classes. - aligns the requested resources that Hint Provider provides topology hints for. If these conditions are met, the Topology Manager will align the requested resources. In order to customize how this alignment is carried out, the Topology Manager provides two distinct options: `scope` and `policy`. The `scope` defines the granularity at which you would like resource alignment to be performed, for example, at the `pod` or `container` level. And the `policy` defines the actual policy used to carry out the alignment, for example, `best-effort`, `restricted`, and `single-numa-node`. Details on the various `scopes` and `policies` available today can be found below. {{< note >}} To align CPU resources with other requested resources in a Pod spec, the CPU Manager should be enabled and proper CPU Manager policy should be configured on a Node. See [Control CPU Management Policies on the Node](/docs/tasks/administer-cluster/cpu-management-policies/). {{< /note >}} {{< note >}} To align memory (and hugepages) resources with other requested resources in a Pod spec, the Memory Manager should be enabled and proper Memory Manager policy should be configured on a Node.
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/topology-manager.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/topology-manager.md
[ 0.02435855008661747, 0.03214030712842941, 0.004740927368402481, 0.01047180313616991, -0.014824624173343182, -0.011401884257793427, 0.01064241211861372, -0.00547351548448205, 0.045095011591911316, -0.00769606651738286, -0.044616010040044785, -0.017899101600050926, 0.024031104519963264, -0.04527946561574936, 0.010442557744681835, 0.007569683250039816, 0.09322773665189743, -0.03794976696372032, -0.08791085332632065, -0.04607069119811058, 0.021492986008524895, -0.039004430174827576, -0.011264116503298283, -0.01874026097357273, -0.021651707589626312, 0.017339814454317093, -0.009296460077166557, -0.009640992619097233, 0.039349548518657684, -0.041785333305597305, 0.015623797662556171, -0.016586530953645706, -0.028546029701828957, 0.03300148621201515, 0.030951010063290596, 0.10123542696237564, -0.03692808002233505, -0.05661585554480553, -0.0714288279414177, 0.014109691604971886, -0.0021063254680484533, 0.010847382247447968, -0.053424399346113205, -0.023213058710098267, -0.0018106052884832025, 0.06818217039108276, -0.06493162363767624, -0.06981489807367325, -0.05549968034029007, -0.14423029124736786, -0.027845442295074463, -0.0767722874879837, 0.02350950799882412, 0.0653027594089508, 0.059088803827762604, 0.07730141282081604, 0.033347152173519135, 0.03204990550875664, 0.028114037588238716, -0.004782576579600573, 0.010338149033486843, -0.0652916431427002, 0.021480079740285873, -0.004107180517166853, 0.05365821719169617, -0.03996692970395088, 0.034321486949920654, 0.024955812841653824, 0.04299870505928993, 0.0033962030429393053, 0.04694347456097603, -0.012791700661182404, -0.05587528273463249, -0.0066625685431063175, 0.03273333981633186, 0.003953805658966303, -0.016307059675455093, 0.06011445075273514, 0.050892334431409836, -0.1341627836227417, 0.03289332613348961, 0.034718066453933716, -0.020392730832099915, -0.061124175786972046, 0.02679634466767311, -0.06723964959383011, -0.08226051926612854, -0.09519201517105103, 0.028833817690610886, -0.0385650172829628, 0.02489386312663555, -0.008402899838984013, 0.08452313393354416, -0.07213851809501648, 0.07600756734609604, 0.01865030825138092, -0.014693235047161579, 0.020441552624106407, 0.03840892016887665, 0.029847871512174606, 0.020807234570384026, -0.0004055110039189458, 0.08721889555454254, 0.0862041488289833, 0.008450631983578205, -0.062243081629276276, -0.036567434668540955, 0.05049145221710205, -0.027292387560009956, -0.07740745693445206, 0.036379922181367874, 0.04616022855043411, -0.007083842530846596, 0.026682035997509956, 0.01622963882982731, -0.023450396955013275, 0.06035997346043587, -0.012969662435352802, 0.12528705596923828, 0.12776780128479004, -0.06317728757858276, -0.1204095408320427, 0.034454334527254105, -0.00556052615866065, -0.016113795340061188, 0.04476262256503105, -0.09067989885807037, 5.6530213933974914e-33, 0.002623638603836298, -0.06464177370071411, -0.04231582581996918, -0.055978212505578995, -0.0270331222563982, -0.0834038034081459, -0.021747110411524773, -0.01685446687042713, -0.028501763939857483, -0.0019229219760745764, -0.0896238386631012, 0.03120887279510498, -0.009483716450631618, 0.05889797583222389, 0.13375799357891083, -0.06477243453264236, -0.04347333312034607, 0.0945439338684082, 0.02306090109050274, -0.03123466856777668, 0.07568807154893875, -0.002099470002576709, -0.05642568692564964, 0.017029615119099617, 0.04783806577324867, -0.023043092340230942, 0.05717267468571663, -0.06356696039438248, -0.0955563560128212, 0.02272799052298069, -0.048905786126852036, 0.03913835808634758, -0.018840007483959198, 0.08352436870336533, -0.05804333835840225, 0.04542066529393196, -0.05833590030670166, -0.03439513221383095, -0.031221462413668633, -0.026167316362261772, -0.023625776171684265, 0.0004227417230140418, 0.03074664995074272, -0.10596616566181183, -0.0011024260893464088, -0.04712916165590286, 0.0130426911637187, -0.004579554777592421, 0.028507674112915993, -0.008525058627128601, -0.0038825569208711386, 0.03344184160232544, 0.10404288023710251, -0.0007405594806186855, 0.08052781969308853, 0.002324890112504363, 0.13451345264911652, -0.0631268322467804, 0.0666085034608841, 0.11555919796228409, -0.1040184497833252, -0.014307784847915173, -0.045721717178821564, 0.02445005066692829, 0.05054370313882828, 0.006221935618668795, 0.018826307728886604, 0.05340755730867386, -0.0005641866009682417, 0.011042225174605846, -0.07510705292224884, 0.02899419330060482, 0.020799679681658745, -0.02425847202539444, 0.029307451099157333, -0.054457321763038635, -0.013456782326102257, -0.0054432712495327, -0.20829765498638153, 0.01761588454246521, -0.008983563631772995, 0.0651017352938652, -0.0508401058614254, 0.04825003445148468, -0.02284686081111431, -0.069187693297863, 0.024403391405940056, 0.0020477459765970707, -0.025286024436354637, 0.035737548023462296, -0.013139300048351288, -0.002257141750305891, -0.006341826170682907, 0.049118053168058395, -0.10393857210874557, -5.247315681258503e-33, 0.02980703115463257, -0.016963940113782883, 0.014603988267481327, 0.002972498768940568, 0.04996556043624878, 0.020859967917203903, 0.007289998233318329, -0.07559103518724442, -0.08188196271657944, -0.08305191993713379, -0.05785202980041504, -0.04297124221920967, 0.08931364119052887, -0.015356716699898243, -0.056178685277700424, 0.06564365327358246, -0.0973479151725769, -0.0510476678609848, 0.039795730262994766, 0.014638914726674557, -0.004918116144835949, 0.0388139933347702, -0.010602663271129131, -0.010418042540550232, -0.015561518259346485, 0.010575720109045506, -0.009186798706650734, 0.00856238417327404, -0.004117482341825962, 0.013925840146839619, -0.021755406633019447, -0.08525282144546509, -0.06880941241979599, 0.05492912232875824, 0.014244341291487217, -0.025850679725408554, -0.04375027120113373, 0.0032059522345662117, -0.00967864878475666, 0.012501548044383526, 0.05026666074991226, 0.060991398990154266, -0.026585329324007034, 0.03569836542010307, -0.00702992919832468, 0.07078076899051666, -0.04089505970478058, -0.04672016203403473, -0.04003001004457474, -0.1030179038643837, 0.014101061969995499, -0.01279841735959053, -0.013591809198260307, 0.06032600253820419, -0.05005843937397003, 0.018845435231924057, 0.03893668204545975, 0.0799059346318245, 0.03127674013376236, -0.027428435161709785, 0.07895463705062866, -0.14114822447299957, 0.06789937615394592, 0.04157187417149544, 0.007661799434572458, -0.01292065717279911, -0.018127430230379105, 0.008485632948577404, -0.030591940507292747, -0.0004412956186570227, -0.03987227380275726, -0.03243597596883774, 0.05375191196799278, 0.015532673336565495, -0.05081871151924133, 0.022342657670378685, 0.05251624062657356, 0.015807442367076874, 0.07377752661705017, -0.0035438411869108677, -0.08417423069477081, 0.017166009172797203, -0.036897432059049606, -0.006872620899230242, 0.00426626717671752, 0.01981198415160179, 0.04094191640615463, 0.09326311200857162, 0.022339189425110817, -0.05024147778749466, 0.007944910787045956, -0.005998601205646992, -0.019902044907212257, 0.10855431109666824, -0.0415656752884388, -5.6417718496959424e-8, 0.07358741760253906, -0.0782068744301796, -0.028171155601739883, -0.0026304421480745077, 0.007637998089194298, -0.07092781364917755, 0.014243556186556816, 0.017194751650094986, 0.0003941532922908664, 0.028670480474829674, 0.07910111546516418, 0.03429528325796127, -0.04759244620800018, -0.016760867089033127, 0.06571309268474579, 0.03553244471549988, -0.03963230177760124, 0.0422232523560524, -0.01771744154393673, -0.07586149126291275, 0.016282040625810623, 0.01660251058638096, 0.0008149241330102086, 0.043414872139692307, 0.045308955013751984, 0.03375410661101341, 0.07663717120885849, 0.07993841171264648, 0.06806512922048569, 0.036212265491485596, -0.05772095546126366, 0.04102844372391701, -0.04866083711385727, 0.05279601737856865, 0.04126911237835884, 0.09874569624662399, -0.08456489443778992, 0.06562651693820953, 0.044392772018909454, 0.03789602965116501, -0.01824093982577324, -0.09015585482120514, -0.06899172067642212, 0.06251141428947449, 0.043226588517427444, 0.05562911555171013, -0.05271435156464577, 0.06746944785118103, -0.003771106945350766, 0.019735926762223244, -0.06467532366514206, -0.021879609674215317, -0.0264220479875803, 0.09128380566835403, -0.0434989407658577, -0.023765243589878082, 0.03395380079746246, -0.11710745841264725, 0.049855899065732956, 0.0008200057782232761, 0.006467805709689856, -0.008487407118082047, 0.0022617813665419817, -0.014254337176680565 ]
0.188953
be configured on a Node. See [Control CPU Management Policies on the Node](/docs/tasks/administer-cluster/cpu-management-policies/). {{< /note >}} {{< note >}} To align memory (and hugepages) resources with other requested resources in a Pod spec, the Memory Manager should be enabled and proper Memory Manager policy should be configured on a Node. Refer to [Memory Manager](/docs/tasks/administer-cluster/memory-manager/) documentation. {{< /note >}} ## Topology manager scopes The Topology Manager can deal with the alignment of resources in a couple of distinct scopes: \* `container` (default) \* `pod` Either option can be selected at a time of the kubelet startup, by setting the `topologyManagerScope` in the [kubelet configuration file](/docs/tasks/administer-cluster/kubelet-config-file/). ### `container` scope The `container` scope is used by default. You can also explicitly set the `topologyManagerScope` to `container` in the [kubelet configuration file](/docs/tasks/administer-cluster/kubelet-config-file/). Within this scope, the Topology Manager performs a number of sequential resource alignments, i.e., for each container (in a pod) a separate alignment is computed. In other words, there is no notion of grouping the containers to a specific set of NUMA nodes, for this particular scope. In effect, the Topology Manager performs an arbitrary alignment of individual containers to NUMA nodes. The notion of grouping the containers was endorsed and implemented on purpose in the following scope, for example the `pod` scope. ### `pod` scope To select the `pod` scope, set `topologyManagerScope` in the [kubelet configuration file](/docs/tasks/administer-cluster/kubelet-config-file/) to `pod`. This scope allows for grouping all containers in a pod to a common set of NUMA nodes. That is, the Topology Manager treats a pod as a whole and attempts to allocate the entire pod (all containers) to either a single NUMA node or a common set of NUMA nodes. The following examples illustrate the alignments produced by the Topology Manager on different occasions: \* all containers can be and are allocated to a single NUMA node; \* all containers can be and are allocated to a shared set of NUMA nodes. The total amount of particular resource demanded for the entire pod is calculated according to [effective requests/limits](/docs/concepts/workloads/pods/init-containers/#resource-sharing-within-containers) formula, and thus, this total value is equal to the maximum of: \* the sum of all app container requests, \* the maximum of init container requests, for a resource. Using the `pod` scope in tandem with `single-numa-node` Topology Manager policy is specifically valuable for workloads that are latency sensitive or for high-throughput applications that perform IPC. By combining both options, you are able to place all containers in a pod onto a single NUMA node; hence, the inter-NUMA communication overhead can be eliminated for that pod. In the case of `single-numa-node` policy, a pod is accepted only if a suitable set of NUMA nodes is present among possible allocations. Reconsider the example above: \* a set containing only a single NUMA node - it leads to pod being admitted, \* whereas a set containing more NUMA nodes - it results in pod rejection (because instead of one NUMA node, two or more NUMA nodes are required to satisfy the allocation). To recap, the Topology Manager first computes a set of NUMA nodes and then tests it against the Topology Manager policy, which either leads to the rejection or admission of the pod. ## Topology manager policies The Topology Manager supports four allocation policies. You can set a policy via a kubelet flag, `--topology-manager-policy`. There are four supported policies: \* `none` (default) \* `best-effort` \* `restricted` \* `single-numa-node` {{< note >}} If the Topology Manager is configured with the \*\*pod\*\* scope, the container, which is considered by the policy, is reflecting requirements of the entire pod, and thus each container from the pod
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/topology-manager.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/topology-manager.md
[ 0.03905341401696205, 0.011976392939686775, -0.04904494062066078, 0.03573238477110863, -0.08604470640420914, 0.002096910495311022, -0.03941949084401131, 0.004538748878985643, 0.05726810544729233, 0.01344604603946209, -0.01544490922242403, -0.01658281497657299, -0.015087367966771126, -0.04976498708128929, 0.017978904768824577, -0.04563139006495476, -0.00041676725959405303, 0.06788560003042221, -0.018024299293756485, -0.028871873393654823, 0.032813042402267456, -0.012349659577012062, 0.044245395809412, 0.0352347195148468, -0.05515710264444351, 0.004100059159100056, -0.04311447963118553, -0.016098087653517723, 0.05212589353322983, -0.11004748940467834, -0.01169349905103445, 0.011355366557836533, -0.006860546767711639, 0.03548252210021019, 0.09499061852693558, 0.1489098072052002, -0.06757664680480957, -0.0856509730219841, -0.058724544942379, -0.03440171480178833, 0.05713929608464241, 0.0014297064626589417, -0.07417979091405869, -0.007046251092106104, -0.0274108424782753, 0.07031127065420151, -0.03984185308218002, -0.014818190596997738, -0.009910733439028263, -0.075135238468647, -0.009461384266614914, -0.09491489827632904, 0.04203145205974579, 0.042176902294158936, 0.04535423591732979, 0.1244465708732605, 0.05817781761288643, -0.004372866824269295, 0.06709268689155579, 0.027749981731176376, 0.04454358294606209, -0.03923000022768974, 0.025624344125390053, -0.010856203734874725, 0.016539502888917923, 0.0034738651011139154, 0.043225403875112534, 0.06743026524782181, -0.008802780881524086, 0.00047841566265560687, 0.08584968745708466, -0.028980636969208717, -0.026355229318141937, -0.015670645982027054, 0.0022559217177331448, -0.0024467315524816513, -0.06062836945056915, 0.0052940985187888145, -0.019448265433311462, -0.0699097216129303, -0.0004562096728477627, 0.05780927836894989, 0.12498943507671356, -0.037284448742866516, -0.045939505100250244, -0.031306762248277664, -0.018780814483761787, -0.000524151255376637, 0.0175248384475708, -0.02459796890616417, 0.03176449239253998, -0.0586150661110878, -0.012787660583853722, -0.08314399421215057, 0.04434426128864288, 0.0012639171909540892, -0.02067902311682701, 0.020041128620505333, 0.013838612474501133, -0.026241859421133995, 0.08880028873682022, 0.04412426799535751, 0.025344368070364, 0.08461169898509979, 0.0585235059261322, -0.07520414143800735, -0.02347823604941368, 0.04700574278831482, -0.0164071973413229, -0.01818176917731762, 0.06056786701083183, 0.026464534923434258, -0.023527134209871292, 0.0697534903883934, -0.02317691408097744, -0.02383628487586975, 0.06503374874591827, -0.01863826811313629, 0.019937843084335327, 0.05307798460125923, -0.002297084778547287, -0.04235823452472687, -0.04692236706614494, -0.015666916966438293, -0.06851067394018173, 0.033479154109954834, -0.08215340226888657, 2.655163660625181e-33, 0.02738419733941555, -0.10932376235723495, 0.018456604331731796, -0.007887776009738445, -0.010654807090759277, -0.09646796435117722, -0.10444024205207825, -0.023837050423026085, -0.039067141711711884, -0.019553249701857567, -0.04665507376194, 0.0070226965472102165, -0.024832554161548615, 0.008429260924458504, -0.003135699313133955, -0.0725109875202179, -0.08489426970481873, 0.1046023815870285, 0.06613890826702118, -0.01671934500336647, 0.04511716961860657, -0.007336109410971403, -0.07384604215621948, 0.00028972781728953123, 0.03804159164428711, -0.0016117177437990904, 0.006824738811701536, -0.08009979128837585, -0.07194199413061142, 0.011339586228132248, -0.028647353872656822, 0.03486628830432892, -0.008025907911360264, 0.04498867318034172, -0.058069027960300446, 0.0074546681717038155, -0.034179460257291794, 0.0011636050185188651, -0.07315569370985031, -0.05176951363682747, -0.014862969517707825, 0.0727214366197586, 0.007911533117294312, -0.10264230519533157, 0.00635115522891283, -0.01369909755885601, 0.08112512528896332, -0.0459243506193161, 0.0877009853720665, 0.007536495104432106, 0.03134344518184662, -0.02816665545105934, 0.04067624360322952, 0.037620268762111664, 0.04409913718700409, 0.001460643601603806, 0.11328642070293427, -0.02728870138525963, 0.025606390088796616, 0.11176931858062744, -0.040956828743219376, -0.029545122757554054, -0.016293156892061234, 0.025958513841032982, 0.056044451892375946, 0.060516223311424255, 0.007153581827878952, 0.09277595579624176, -0.04753735288977623, 0.007715390529483557, -0.07308986037969589, -0.010339873842895031, 0.026789186522364616, 0.07655602693557739, -0.052563853561878204, -0.025430673733353615, 0.016258563846349716, -0.013072502799332142, -0.25984063744544983, 0.028527336195111275, 0.08984510600566864, -0.011818704195320606, 0.016388628631830215, -0.0020316792652010918, -0.03850637748837471, -0.08105757087469101, 0.06714626401662827, 0.02390844188630581, -0.015573231503367424, 0.08864720910787582, 0.032498497515916824, 0.02249935083091259, 0.03870246186852455, 0.0621219240128994, -0.14414770901203156, -3.0337854319082474e-33, 0.061651282012462616, -0.02192179299890995, 0.05777818709611893, 0.010996933095157146, -0.01974182389676571, 0.056260619312524796, 0.010511486791074276, 0.004039749503135681, -0.0704045370221138, -0.062134407460689545, -0.03235509991645813, -0.04437755048274994, 0.012518338859081268, 0.0018730377778410912, -0.09180411696434021, 0.032142523676157, -0.032319579273462296, 0.010132999159395695, -0.017835604026913643, 0.03510916605591774, -0.05234541743993759, -0.030234454199671745, 0.03404928743839264, -0.03268840163946152, 0.050384897738695145, 0.033428702503442764, 0.03553100302815437, 0.007920964621007442, -0.022196995094418526, 0.007484434172511101, 0.012033856473863125, -0.1081048995256424, -0.05304371565580368, 0.03605595603585243, -0.012876767665147781, -0.04923864081501961, -0.06437879800796509, 0.05271937698125839, 0.011128725484013557, 0.010585922747850418, 0.05214080214500427, 0.08597449958324432, -0.06609975546598434, -0.009003342129290104, 0.014362882822751999, 0.0073073506355285645, -0.03227885439991951, -0.06052454560995102, -0.0708358958363533, -0.09687785804271698, -0.03903578221797943, -0.014363430440425873, 0.002856204751878977, 0.03854595497250557, -0.04120970144867897, 0.010548586025834084, 0.034435003995895386, 0.06440925598144531, -0.05013411492109299, -0.07888596504926682, 0.08565402030944824, -0.12630228698253632, 0.04203026741743088, -0.03531976416707039, -0.016176458448171616, -0.014605377800762653, 0.045100174844264984, 0.009741603396832943, -0.05945228785276413, 0.06680452823638916, -0.0176859088242054, 0.010019870474934578, 0.03845423460006714, 0.06817833334207535, -0.036025270819664, 0.018084438517689705, 0.04245816171169281, -0.04771410673856735, 0.0705152377486229, -0.027340086176991463, -0.05349070206284523, 0.06677373498678207, -0.01840880513191223, 0.006496694404631853, -0.003837940050289035, 0.08244047313928604, 0.05526834353804588, 0.08951820433139801, 0.02551618590950966, -0.00993901677429676, -0.03822004422545433, -0.03973466902971268, 0.00507811363786459, 0.07177088409662247, -0.06565238535404205, -5.0411447460874115e-8, 0.03907698392868042, -0.07362459599971771, 0.011445118114352226, 0.060405172407627106, 0.007265145890414715, -0.0987716019153595, 0.044635333120822906, 0.051406774669885635, 0.009996551088988781, 0.054873064160346985, 0.01773226261138916, 0.04889512434601784, -0.045563679188489914, -0.03684169799089432, 0.07173225283622742, 0.004632519092410803, -0.015653444454073906, 0.05933722108602524, 0.009926999919116497, -0.05817081779241562, -0.059521276503801346, 0.0008350001880899072, 0.04474005848169327, 0.07122747600078583, 0.07939845323562622, 0.04203127324581146, 0.04193523898720741, 0.07691255956888199, 0.022126251831650734, -0.016141021624207497, -0.04290718957781792, -0.0048470692709088326, -0.07729047536849976, 0.03673047944903374, -0.0012560425093397498, 0.03091610036790371, -0.11860120296478271, 0.09474088251590729, 0.04376468062400818, 0.043231502175331116, -0.010997333563864231, -0.06966634094715118, -0.03746803104877472, 0.043411076068878174, -0.0020191872026771307, 0.06424583494663239, -0.046960629522800446, 0.09420497715473175, 0.014707193709909916, -0.007165445946156979, -0.02765658125281334, -0.01592743583023548, 0.03318177908658981, 0.050969719886779785, -0.01003664918243885, 0.015246016904711723, -0.009593942202627659, -0.07772380113601685, 0.008301268331706524, -0.006232519168406725, 0.0028976465109735727, -0.02146879769861698, -0.033936936408281326, -0.029323622584342957 ]
0.189413
`--topology-manager-policy`. There are four supported policies: \* `none` (default) \* `best-effort` \* `restricted` \* `single-numa-node` {{< note >}} If the Topology Manager is configured with the \*\*pod\*\* scope, the container, which is considered by the policy, is reflecting requirements of the entire pod, and thus each container from the pod will result with \*\*the same\*\* topology alignment decision. {{< /note >}} ### `none` policy {#policy-none} This is the default policy and does not perform any topology alignment. ### `best-effort` policy {#policy-best-effort} For each container in a Pod, the kubelet, with `best-effort` topology management policy, calls each Hint Provider to discover their resource availability. Using this information, the Topology Manager stores the preferred NUMA Node affinity for that container. If the affinity is not preferred, the Topology Manager will store this and admit the pod to the node anyway. The \*Hint Providers\* can then use this information when making the resource allocation decision. ### `restricted` policy {#policy-restricted} For each container in a Pod, the kubelet, with `restricted` topology management policy, calls each Hint Provider to discover their resource availability. Using this information, the Topology Manager stores the preferred NUMA Node affinity for that container. If the affinity is not preferred, the Topology Manager will reject this pod from the node. This will result in a pod entering a `Terminated` state with a pod admission failure. Once the pod is in a `Terminated` state, the Kubernetes scheduler will \*\*not\*\* attempt to reschedule the pod. It is recommended to use a ReplicaSet or Deployment to trigger a redeployment of the pod. An external control loop could be also implemented to trigger a redeployment of pods that have the `Topology Affinity` error. If the pod is admitted, the \*Hint Providers\* can then use this information when making the resource allocation decision. ### `single-numa-node` policy {#policy-single-numa-node} For each container in a Pod, the kubelet, with `single-numa-node` topology management policy, calls each Hint Provider to discover their resource availability. Using this information, the Topology Manager determines if a single NUMA Node affinity is possible. If it is, Topology Manager will store this and the \*Hint Providers\* can then use this information when making the resource allocation decision. If, however, this is not possible then the Topology Manager will reject the pod from the node. This will result in a pod in a `Terminated` state with a pod admission failure. Once the pod is in a `Terminated` state, the Kubernetes scheduler will \*\*not\*\* attempt to reschedule the pod. It is recommended to use a Deployment with replicas to trigger a redeployment of the Pod. An external control loop could be also implemented to trigger a redeployment of pods that have the `Topology Affinity` error. ## Topology manager policy options Support for the Topology Manager policy options requires `TopologyManagerPolicyOptions` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/) to be enabled (it is enabled by default). You can toggle groups of options on and off based upon their maturity level using the following feature gates: \* `TopologyManagerPolicyBetaOptions` default enabled. Enable to show beta-level options. \* `TopologyManagerPolicyAlphaOptions` default disabled. Enable to show alpha-level options. You will still have to enable each option using the `TopologyManagerPolicyOptions` kubelet option. ### `prefer-closest-numa-nodes` {#policy-option-prefer-closest-numa-nodes} The `prefer-closest-numa-nodes` option is GA since Kubernetes 1.32. In Kubernetes {{< skew currentVersion >}} this policy option is visible by default provided that the `TopologyManagerPolicyOptions` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/) is enabled. The Topology Manager is not aware by default of NUMA distances, and does not take them into account when making Pod admission decisions. This limitation surfaces in multi-socket, as well as single-socket multi NUMA systems, and can cause significant performance degradation in latency-critical execution and high-throughput applications
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/topology-manager.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/topology-manager.md
[ -0.020329739898443222, -0.023561622947454453, 0.00801595114171505, -0.010255647823214531, 0.011382022872567177, 0.009945976547896862, 0.028601298108696938, -0.03706774488091469, 0.022067371755838394, 0.02557407319545746, -0.0001753010874381289, -0.055969610810279846, 0.012625264003872871, -0.029051169753074646, 0.04759591445326805, -0.0059814234264194965, -0.015381859615445137, -0.011451207101345062, 0.00036301021464169025, -0.017498351633548737, -0.0033239969052374363, 0.0024597267620265484, 0.019464634358882904, -0.0283705685287714, -0.04267683997750282, 0.04782668128609657, -0.04740181565284729, 0.007130173034965992, 0.03721423074603081, -0.07096977531909943, -0.02122533693909645, 0.03376428037881851, -0.02185654640197754, 0.0029722778126597404, 0.10575409233570099, 0.09949035942554474, -0.09253396093845367, -0.05172044411301613, -0.11096799373626709, -0.03347896412014961, 0.0529678538441658, -0.0025502778589725494, -0.04109294340014458, -0.0005474161589518189, -0.05551416426897049, 0.08516142517328262, -0.09745246917009354, -0.017933964729309082, -0.06948830932378769, -0.0727355033159256, -0.04162459447979927, -0.05574769899249077, 0.016174551099538803, -0.013337030075490475, 0.12288308888673782, 0.12902012467384338, 0.007098989095538855, 0.005290130618959665, 0.040956590324640274, -0.01164727471768856, 0.11542485654354095, -0.06861723214387894, -0.016313405707478523, -0.013405068777501583, 0.07082178443670273, -0.03727841004729271, 0.0029381103813648224, 0.07175704091787338, 0.022546423599123955, 0.050044454634189606, 0.028435183688998222, -0.007769944611936808, -0.05731067433953285, 0.0037434278056025505, 0.01372695155441761, 0.05429830402135849, -0.009810683317482471, 0.04641265049576759, -0.002413820708170533, -0.06506139039993286, -0.023356594145298004, 0.052496425807476044, 0.10002479702234268, 0.010103214532136917, -0.056077517569065094, -0.07068829983472824, -0.08966460078954697, -0.07106636464595795, 0.05904807150363922, 0.028523636981844902, 0.01030959002673626, -0.04256589710712433, -0.028482727706432343, -0.04873594641685486, 0.059130650013685226, -0.008936628699302673, -0.05348949879407883, 0.011696954257786274, -0.05025643855333328, 0.028146060183644295, 0.029708132147789, 0.007851341739296913, 0.008237450383603573, -0.041559915989637375, 0.06390611827373505, -0.04577840119600296, -0.042645443230867386, -0.018564913421869278, 0.026901131495833397, 0.002777638379484415, 0.037619706243276596, -0.04759928211569786, 0.008211547508835793, 0.028803115710616112, -0.06869178265333176, 0.014370137825608253, 0.016350219026207924, -0.010367135517299175, 0.06710907071828842, 0.08519970625638962, -0.040812376886606216, -0.06452342122793198, 0.04115059971809387, -0.025550665333867073, -0.0608518086373806, 0.04227272421121597, -0.06419523805379868, 1.5863553403736012e-33, 0.02297656424343586, -0.04666508734226227, -0.0299607515335083, -0.03539054095745087, 0.002575836842879653, -0.08421532809734344, -0.058109115809202194, -0.02702767215669155, -0.0526670441031456, 0.0001497687480878085, -0.036354199051856995, 0.06304404139518738, -0.09214624017477036, 0.03322333097457886, 0.054228343069553375, -0.06964271515607834, -0.02083830162882805, 0.09821565449237823, -0.032795511186122894, -0.0079239746555686, 0.04420771077275276, 0.07888384908437729, -0.03687621280550957, -0.06228039786219597, 0.037732500582933426, -0.028620358556509018, -0.01513517927378416, -0.11918114870786667, -0.034733109176158905, 0.02073359489440918, -0.048008933663368225, 0.04422203451395035, 0.04037979617714882, 0.06824658811092377, 0.00852777250111103, 0.015218852087855339, -0.030571091920137405, -0.052353814244270325, -0.13735462725162506, -0.09493537247180939, -0.012377596460282803, 0.07557452470064163, 0.03720329701900482, -0.015606378205120564, 0.03882806375622749, -0.007146613206714392, 0.02334456332027912, -0.009313905611634254, 0.044615909457206726, -0.03816704824566841, 0.059512846171855927, 0.029537320137023926, -0.002428517211228609, -0.02161720208823681, -0.0166653860360384, -0.06748198717832565, 0.07600212097167969, 0.04364696890115738, 0.009577056393027306, 0.12085579335689545, -0.022077107802033424, -0.054829031229019165, -0.014044913463294506, 0.03909062594175339, 0.052466679364442825, 0.0858151987195015, -0.028078611940145493, 0.02688395045697689, 0.0659630298614502, 0.053570449352264404, -0.08962812274694443, 0.09339941293001175, -0.008440236561000347, 0.016516920179128647, -0.02157149836421013, -0.05633385851979256, 0.02765393629670143, -0.0072802891954779625, -0.1064939796924591, -0.020918434485793114, 0.005837080534547567, 0.07180031388998032, -0.00788924377411604, 0.021013040095567703, -0.05951846390962601, -0.11573650687932968, 0.0817989930510521, 0.028467895463109016, 0.01952388510107994, 0.06729834526777267, 0.03146648406982422, 0.03996603563427925, -0.006561261136084795, 0.06000044569373131, -0.11770771443843842, -2.4013110637903002e-33, 0.033076561987400055, -0.026680178940296173, 0.07210148870944977, 0.016415346413850784, -0.03886790946125984, 0.02767629362642765, 0.003550837282091379, -0.11680329591035843, 0.03338511660695076, -0.05105673149228096, -0.008926513604819775, 0.005317948758602142, 0.09854277968406677, -0.0002224362106062472, -0.01630406640470028, -0.014421799220144749, -0.06480464339256287, -0.06228722259402275, -0.04360703378915787, 0.019616223871707916, 0.0032178745605051517, -0.0458994023501873, -0.06059516221284866, 0.042831458151340485, 0.03908133506774902, 0.024952486157417297, 0.017043862491846085, -0.013507546856999397, 0.015071402303874493, 0.02129790559411049, 0.017078692093491554, -0.0671016126871109, -0.11584386229515076, 0.027880661189556122, 0.013274864293634892, -0.022010643035173416, -0.06435789167881012, 0.13797055184841156, -0.05488603189587593, 0.01265986543148756, 0.033500246703624725, 0.041928429156541824, -0.09132277965545654, 0.007352764718234539, -0.00953365582972765, 0.01413645502179861, -0.005100346636027098, -0.0440705232322216, -0.10994977504014969, -0.07183101773262024, 0.05702541768550873, -0.06483004242181778, 0.006059612147510052, 0.0054683140479028225, -0.04842207208275795, 0.0641922652721405, -0.0034544935915619135, 0.044387321919202805, -0.044214945286512375, -0.009490531869232655, 0.09901104867458344, -0.09534137696027756, 0.019043022766709328, 0.02827594429254532, 0.0255378820002079, -0.024388976395130157, 0.022290535271167755, -0.03848562389612198, -0.05092235654592514, 0.003187352791428566, -0.009701353497803211, 0.037910208106040955, 0.014703476801514626, 0.01740388385951519, 0.01854272186756134, 0.013555042445659637, 0.07145275920629501, -0.07452232390642166, 0.06917798519134521, -0.0308765210211277, -0.13166189193725586, 0.07395873218774796, -0.011706020683050156, 0.019542455673217773, 0.028879012912511826, 0.0626043900847435, 0.07526196539402008, 0.13521172106266022, 0.03802431747317314, 0.0661739781498909, -0.020893549546599388, -0.03622213006019592, -0.006533886771649122, 0.06265424937009811, -0.11215894669294357, -5.2501430758411516e-8, -0.016375113278627396, -0.07741832733154297, -0.005464434158056974, 0.046035509556531906, 0.0046176668256521225, -0.043314673006534576, 0.07798460870981216, 0.015828799456357956, 0.008692086674273014, 0.0615924708545208, -0.0033069232013076544, 0.11385834962129593, -0.08471471816301346, -0.06314761936664581, 0.006942569278180599, -0.010261286050081253, -0.024447862058877945, 0.044721804559230804, -0.03689752146601677, -0.004852982237935066, -0.0935717523097992, 0.02445494569838047, -0.0514526441693306, 0.034856125712394714, -0.05024952441453934, 0.027368897572159767, 0.05692124739289284, 0.10020968317985535, 0.0698971077799797, 0.05791568383574486, 0.007479300256818533, -0.041521020233631134, -0.005001284647732973, 0.051303353160619736, -0.08364468812942505, 0.06392644345760345, -0.05673392117023468, 0.08699943870306015, 0.025459889322519302, 0.0741216391324997, 0.007598853670060635, -0.040600284934043884, -0.01718367263674736, 0.027360888198018074, -0.025181785225868225, 0.03783133253455162, -0.00889437273144722, 0.045457012951374054, 0.005289856344461441, 0.005310305394232273, -0.05596359074115753, 0.004193177446722984, -0.024822305887937546, 0.054069261997938156, -0.004155514761805534, 0.0010666686575859785, 0.02123231627047062, -0.03171178326010704, 0.03404797986149788, 0.006241410970687866, 0.017672324553132057, -0.0673370212316513, 0.0317656509578228, 0.013615639880299568 ]
0.164469
gate](/docs/reference/command-line-tools-reference/feature-gates/) is enabled. The Topology Manager is not aware by default of NUMA distances, and does not take them into account when making Pod admission decisions. This limitation surfaces in multi-socket, as well as single-socket multi NUMA systems, and can cause significant performance degradation in latency-critical execution and high-throughput applications if the Topology Manager decides to align resources on non-adjacent NUMA nodes. If you specify the `prefer-closest-numa-nodes` policy option, the `best-effort` and `restricted` policies favor sets of NUMA nodes with shorter distance between them when making admission decisions. You can enable this option by adding `prefer-closest-numa-nodes=true` to the Topology Manager policy options. By default (without this option), the Topology Manager aligns resources on either a single NUMA node or, in the case where more than one NUMA node is required, using the minimum number of NUMA nodes. ### `max-allowable-numa-nodes` {#policy-option-max-allowable-numa-nodes} The `max-allowable-numa-nodes` option is GA since Kubernetes 1.35. In Kubernetes {{< skew currentVersion >}}, this policy option is visible by default provided that the `TopologyManagerPolicyOptions` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/) is enabled. The time to admit a pod is tied to the number of NUMA nodes on the physical machine. By default, Kubernetes does not run a kubelet with the Topology Manager enabled, on any (Kubernetes) node where more than 8 NUMA nodes are detected. {{< note >}} If you select the `max-allowable-numa-nodes` policy option, nodes with more than 8 NUMA nodes can be allowed to run with the Topology Manager enabled. The Kubernetes project only has limited data on the impact of using the Topology Manager on (Kubernetes) nodes with more than 8 NUMA nodes. Because of that lack of data, using this policy option with Kubernetes {{< skew currentVersion >}} is \*\*not\*\* recommended and is at your own risk. {{< /note >}} You can enable this option by adding `max-allowable-numa-nodes=true` to the Topology Manager policy options. Setting a value of `max-allowable-numa-nodes` does not (in and of itself) affect the latency of pod admission, but binding a Pod to a (Kubernetes) node with many NUMA does have an impact. Future, potential improvements to Kubernetes may improve Pod admission performance and the high latency that happens as the number of NUMA nodes increases. ## Pod interactions with topology manager policies Consider the containers in the following Pod manifest: ```yaml spec: containers: - name: nginx image: nginx ``` This pod runs in the `BestEffort` QoS class because no resource `requests` or `limits` are specified. ```yaml spec: containers: - name: nginx image: nginx resources: limits: memory: "200Mi" requests: memory: "100Mi" ``` This pod runs in the `Burstable` QoS class because requests are less than limits. If the selected policy is anything other than `none`, the Topology Manager would consider these Pod specifications. The Topology Manager would consult the Hint Providers to get topology hints. In the case of the `static`, the CPU Manager policy would return default topology hint, because these Pods do not explicitly request CPU resources. ```yaml spec: containers: - name: nginx image: nginx resources: limits: memory: "200Mi" cpu: "2" example.com/device: "1" requests: memory: "200Mi" cpu: "2" example.com/device: "1" ``` This pod with integer CPU request runs in the `Guaranteed` QoS class because `requests` are equal to `limits`. ```yaml spec: containers: - name: nginx image: nginx resources: limits: memory: "200Mi" cpu: "300m" example.com/device: "1" requests: memory: "200Mi" cpu: "300m" example.com/device: "1" ``` This pod with sharing CPU request runs in the `Guaranteed` QoS class because `requests` are equal to `limits`. ```yaml spec: containers: - name: nginx image: nginx resources: limits: example.com/deviceA: "1" example.com/deviceB: "1" requests: example.com/deviceA: "1" example.com/deviceB: "1" ``` This pod runs in the `BestEffort` QoS class because there are no CPU
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/topology-manager.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/topology-manager.md
[ 0.06477776914834976, -0.07024098932743073, -0.049147576093673706, -0.012889699079096317, -0.00807251874357462, -0.0425899513065815, -0.06263206154108047, -0.004251805134117603, 0.024839557707309723, 0.053891927003860474, -0.03337961807847023, -0.017933428287506104, -0.00042066205060109496, -0.008452855981886387, 0.0255594365298748, -0.00046972031123004854, 0.0064431289210915565, -0.07350564002990723, 0.05195169895887375, -0.07342666387557983, -0.003891032887622714, 0.04252675175666809, 0.025974435731768608, -0.05023544281721115, -0.038611508905887604, -0.019755905494093895, -0.007724242750555277, 0.00879066064953804, -0.004938310943543911, -0.03980645164847374, -0.024114185944199562, 0.036599449813365936, -0.016141997650265694, -0.03187675401568413, 0.06589695066213608, 0.043045662343502045, -0.0968475267291069, 0.0021830459591001272, -0.10396226495504379, -0.04863748326897621, 0.08472761511802673, -0.03666159510612488, 0.017760012298822403, 0.012691402807831764, -0.03263738751411438, 0.039907895028591156, -0.1275046467781067, -0.07809536159038544, 0.0392674021422863, -0.07580415159463882, -0.04291657730937004, -0.02269015647470951, 0.027127213776111603, 0.027348605915904045, 0.09684201329946518, 0.09171805530786514, -0.002011912176385522, 0.0026434953324496746, 0.00026518633239902556, 0.051928725093603134, 0.08678900450468063, -0.08152070641517639, -0.035543907433748245, -0.03740020841360092, 0.07159937173128128, -0.013571865856647491, 0.04374181851744652, 0.02617810294032097, -0.03367917239665985, 0.04288673400878906, 0.10721293091773987, -0.025333737954497337, -0.05642419308423996, -0.034405048936605453, 0.018479550257325172, 0.05968686565756798, 0.022137699648737907, 0.06966309994459152, 0.025516262277960777, -0.07587233930826187, -0.051905557513237, 0.0706716775894165, 0.050769686698913574, -0.0010289675556123257, -0.03624049946665764, -0.0064439792186021805, -0.10029230266809464, -0.07291221618652344, 0.01940668188035488, 0.027741052210330963, 0.0471043586730957, -0.0044264523312449455, -0.0722791999578476, -0.027567913755774498, 0.032267678529024124, -0.06632739305496216, -0.06029697507619858, 0.008438114076852798, -0.05882931128144264, -0.009852704592049122, 0.054735202342271805, 0.007635047659277916, -0.06688805669546127, -0.027509933337569237, 0.024120846763253212, 0.012719777412712574, 0.038305800408124924, -0.04287771135568619, 0.01141094509512186, 0.07644501328468323, 0.05361012741923332, -0.01041992474347353, -0.013251470401883125, 0.0629320815205574, -0.09521889686584473, 0.036352649331092834, 0.035395924001932144, -0.014005152508616447, 0.05590302497148514, 0.075640007853508, -0.10617248713970184, -0.07412347942590714, 0.014544142410159111, -0.04940975829958916, -0.062140025198459625, 0.014463681727647781, -0.05628207325935364, 3.7087871652580294e-33, -0.007399583701044321, -0.060440149158239365, -0.0912206843495369, -0.022304965183138847, 0.010435541160404682, -0.02562205120921135, -0.05643672123551369, -0.02794710546731949, -0.04424437880516052, 0.016495848074555397, -0.03942927345633507, 0.06396032869815826, -0.04194509983062744, -0.04779650643467903, 0.05383340269327164, -0.060103222727775574, 0.01828264258801937, 0.08026566356420517, -0.03236372023820877, -0.009721181355416775, 0.012633866630494595, -0.004122135229408741, -0.05293017998337746, -0.027970949187874794, 0.042096223682165146, 0.016173312440514565, -0.05215715616941452, -0.08469945192337036, -0.005866400431841612, 0.03330545872449875, -0.08789525181055069, 0.0648057609796524, 0.0880599394440651, 0.007328637409955263, 0.04164878651499748, 0.016878094524145126, -0.030622823163866997, 0.009069022722542286, -0.08159638941287994, -0.08854766190052032, -0.04879451170563698, 0.04076426848769188, 0.04458160698413849, -0.02204863727092743, -0.0161651112139225, 0.06661524623632431, 0.012084380723536015, -0.05063921585679054, 0.011620864272117615, -0.006231900304555893, -0.01127801463007927, 0.03534075617790222, -0.012051776982843876, -0.020222436636686325, 0.055685386061668396, -0.12638969719409943, 0.06061301752924919, 0.037148792296648026, 0.06291017681360245, 0.09814095497131348, -0.035175684839487076, -0.07032399624586105, -0.0028642837423831224, 0.02669294737279415, 0.09395121783018112, 0.032286886125802994, -0.04034798964858055, 0.018040969967842102, 0.0402052104473114, 0.0748899057507515, -0.06542865186929703, 0.09340762346982956, -0.017959099262952805, -0.0074236770160496235, -0.025039192289114, -0.09030992537736893, 0.0697602778673172, 0.042481206357479095, -0.06191486120223999, -0.019556308165192604, 0.014142085798084736, 0.10167954862117767, -0.035436734557151794, -0.015385442413389683, 0.023543136194348335, -0.02164887823164463, 0.050527866929769516, 0.05861680209636688, -0.027985282242298126, 0.050050120800733566, 0.07963693141937256, 0.056247223168611526, 0.03761827573180199, 0.04815235733985901, -0.0964701846241951, -3.473986944127078e-33, -0.016032803803682327, 0.005595287773758173, 0.009452037513256073, 0.007376878522336483, 0.0018072964157909155, 0.01303794700652361, 0.010885990224778652, -0.03155907243490219, 0.0089439507573843, -0.06510650366544724, 0.023528823629021645, 0.013979214243590832, 0.09866204857826233, -0.04073920473456383, -0.026369746774435043, -0.035700924694538116, -0.008120057173073292, -0.08036582171916962, -0.005799601785838604, 0.004259995650500059, 0.05171014741063118, -0.005871064029633999, -0.025418521836400032, -0.007417319342494011, -0.005947226658463478, 0.0430709607899189, -0.01075876783579588, 0.001410547993145883, -0.02664605900645256, 0.017128344625234604, -0.009807578288018703, -0.03397984057664871, -0.09704217314720154, 0.022283993661403656, 0.04048645496368408, 0.006189682986587286, 0.00003464513793005608, 0.12567831575870514, -0.015773341059684753, 0.07282653450965881, 0.05264582857489586, 0.009364730678498745, -0.049110956490039825, -0.02706536091864109, -0.026092305779457092, 0.045789267867803574, -0.029913119971752167, -0.04880903661251068, -0.13339339196681976, -0.07195673137903214, 0.014043278992176056, -0.027815254405140877, 0.009891564957797527, 0.06776057183742523, -0.014803396537899971, 0.05404597148299217, -0.02595803514122963, 0.04043786972761154, 0.03730367496609688, -0.004774266853928566, 0.10102436691522598, -0.1242642030119896, 0.020922593772411346, 0.04198310151696205, 0.0011073470814153552, 0.02754906751215458, 0.012318410910665989, 0.02351856604218483, -0.07791313529014587, 0.047554951161146164, -0.08598542958498001, 0.053458504378795624, 0.05942229554057121, 0.026854604482650757, -0.06372881680727005, -0.028184443712234497, 0.055656224489212036, -0.06644267588853836, 0.042196113616228104, -0.013016635552048683, -0.12250351160764694, 0.11781583726406097, -0.050582483410835266, -0.008248239755630493, 0.050721779465675354, 0.04330792278051376, 0.11909417808055878, 0.096187524497509, 0.06573724746704102, 0.03740034997463226, -0.0005750771961174905, -0.03454797714948654, -0.02043008804321289, 0.012735379859805107, -0.12304476648569107, -5.689167892342084e-8, -0.018359730020165443, -0.09623221307992935, -0.02190368063747883, 0.05622951313853264, 0.041191015392541885, -0.014289329759776592, 0.05062965303659439, 0.06715644896030426, -0.003702409565448761, 0.10609495639801025, 0.02298917807638645, 0.09461633861064911, -0.06439673155546188, -0.02814868837594986, 0.07207336276769638, 0.031119786202907562, -0.004379496909677982, 0.0008301708148792386, 0.009979712776839733, -0.029783304780721664, -0.06390975415706635, -0.004454862792044878, -0.016432782635092735, 0.06878715008497238, -0.08046020567417145, 0.014620915986597538, 0.02693456970155239, 0.0480336956679821, 0.03289732709527016, -0.015037833712995052, -0.051563046872615814, 0.00037082243943586946, 0.048676472157239914, 0.05361615866422653, -0.06508243829011917, 0.0473300963640213, -0.01583886332809925, 0.13285470008850098, -0.003028098726645112, 0.050190504640340805, -0.05402832850813866, -0.07437605410814285, -0.02720169723033905, 0.03353578597307205, -0.06318458169698715, 0.05142505094408989, -0.0057601616717875, 0.11026561260223389, 0.01182697992771864, 0.031806182116270065, -0.039240818470716476, 0.0005957116954959929, 0.023572182282805443, 0.008761529810726643, 0.03750042989850044, -0.06710727512836456, 0.016446130350232124, -0.04555879160761833, 0.0017609414644539356, 0.01658889651298523, 0.0023930524475872517, -0.0707864835858345, -0.016826026141643524, 0.015508340671658516 ]
0.195637
pod with sharing CPU request runs in the `Guaranteed` QoS class because `requests` are equal to `limits`. ```yaml spec: containers: - name: nginx image: nginx resources: limits: example.com/deviceA: "1" example.com/deviceB: "1" requests: example.com/deviceA: "1" example.com/deviceB: "1" ``` This pod runs in the `BestEffort` QoS class because there are no CPU and memory requests. The Topology Manager would consider the above pods. The Topology Manager would consult the Hint Providers, which are CPU and Device Manager to get topology hints for the pods. In the case of the `Guaranteed` pod with integer CPU request, the `static` CPU Manager policy would return topology hints relating to the exclusive CPU and the Device Manager would send back hints for the requested device. In the case of the `Guaranteed` pod with sharing CPU request, the `static` CPU Manager policy would return default topology hint as there is no exclusive CPU request and the Device Manager would send back hints for the requested device. In the above two cases of the `Guaranteed` pod, the `none` CPU Manager policy would return default topology hint. In the case of the `BestEffort` pod, the `static` CPU Manager policy would send back the default topology hint as there is no CPU request and the Device Manager would send back the hints for each of the requested devices. Using this information the Topology Manager calculates the optimal hint for the pod and stores this information, which will be used by the Hint Providers when they are making their resource assignments. ## Known limitations 1. The maximum number of NUMA nodes that Topology Manager allows is 8. With more than 8 NUMA nodes, there will be a state explosion when trying to enumerate the possible NUMA affinities and generating their hints. See [`max-allowable-numa-nodes`](#policy-option-max-allowable-numa-nodes) (beta) for more options. 1. The scheduler is not topology-aware, so it is possible to be scheduled on a node and then fail on the node due to the Topology Manager.
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/topology-manager.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/topology-manager.md
[ -0.02740810438990593, -0.0009419982088729739, 0.0035753578413277864, 0.02244124934077263, 0.01224702037870884, -0.07716312259435654, 0.014352758415043354, -0.01253005675971508, 0.05854025483131409, -0.005780019331723452, 0.026536207646131516, 0.011490842327475548, -0.0017378430347889662, -0.03334124758839607, 0.05526081472635269, -0.07433353364467621, 0.06687619537115097, -0.030759744346141815, -0.0181596502661705, -0.03871283680200577, 0.0660972148180008, 0.007514726836234331, 0.009934973903000355, -0.004255964886397123, -0.023332539945840836, -0.007627017330378294, -0.055269256234169006, 0.030517524108290672, 0.0872635766863823, -0.02714281901717186, -0.04071914404630661, 0.0041915131732821465, -0.016166409477591515, 0.002010987140238285, 0.05715896189212799, 0.07996925711631775, -0.016662070527672768, -0.1002379059791565, -0.0711941197514534, -0.0032599340192973614, 0.058682896196842194, -0.025137538090348244, -0.025300731882452965, 0.006289687938988209, -0.037395112216472626, 0.04491876810789108, -0.03654586896300316, -0.026264002546668053, -0.0360155813395977, -0.12682665884494781, -0.048547130078077316, -0.11689293384552002, 0.0063732462003827095, 0.06994878500699997, 0.026118813082575798, 0.07848207652568817, -0.03174065053462982, 0.014440556988120079, 0.018236923962831497, 0.040817126631736755, 0.009656050242483616, -0.10786158591508865, 0.02822740003466606, -0.006245875731110573, 0.13374623656272888, -0.06693106889724731, -0.006586333736777306, 0.022042972967028618, 0.028950443491339684, 0.005157850682735443, 0.0874948501586914, -0.044411856681108475, -0.021692929789423943, -0.05973481014370918, -0.02358200214803219, 0.04064517468214035, -0.08113747090101242, 0.023763420060276985, -0.04859806224703789, -0.052605897188186646, 0.029837340116500854, 0.009803859516978264, 0.06810689717531204, -0.02328663505613804, -0.01620570756494999, -0.0013748155906796455, 0.008337652310729027, -0.012900900095701218, -0.009121323004364967, -0.006380915176123381, 0.02872782200574875, 0.04336082190275192, -0.01805236004292965, -0.06720209121704102, 0.07514122873544693, 0.021292446181178093, -0.05048146843910217, 0.0009655958274379373, 0.0032532084733247757, 0.02017131634056568, 0.023277847096323967, -0.04010545462369919, 0.040721017867326736, 0.004448701627552509, 0.040896277874708176, -0.008825672790408134, -0.05435152351856232, 0.019637789577245712, 0.03264890983700752, 0.001390117802657187, 0.023646023124456406, -0.014691936783492565, 0.007989105768501759, 0.04949769750237465, -0.07059121876955032, -0.0040886844508349895, -0.009649879299104214, 0.021306436508893967, 0.03432156518101692, 0.062870092689991, -0.04464270919561386, -0.03654942661523819, 0.08736438304185867, -0.06347312033176422, -0.08622920513153076, 0.04298779368400574, -0.048430245369672775, 2.6870272717141423e-33, 0.02208092249929905, -0.05817180499434471, -0.002684490755200386, -0.09983926266431808, 0.0026203312445431948, -0.06986359506845474, -0.035880573093891144, 0.025323055684566498, 0.025179000571370125, 0.06074964627623558, -0.03435013070702553, 0.0307084321975708, -0.034940145909786224, 0.07635605335235596, 0.07936368882656097, -0.032567091286182404, -0.022899899631738663, 0.023566177114844322, 0.06374695152044296, 0.048926666378974915, 0.07959909737110138, 0.02075878158211708, -0.08230262994766235, 0.04192698374390602, 0.048827894032001495, 0.026729794219136238, 0.023144377395510674, -0.08969715982675552, -0.049911823123693466, 0.00901847705245018, -0.05131395161151886, 0.04315856099128723, -0.013849186711013317, -0.002233517589047551, -0.06135469675064087, 0.02099822461605072, -0.015311102382838726, -0.00494662020355463, -0.11334718763828278, -0.07987881451845169, 0.0616874024271965, 0.01078366581350565, -0.008519364520907402, -0.03662619739770889, -0.013408174738287926, -0.05583824962377548, -0.05563271790742874, -0.08766676485538483, 0.031419653445482254, 0.005389595869928598, 0.02773991972208023, -0.024527912959456444, 0.014023379422724247, -0.024955978617072105, 0.05652039498090744, -0.02670894004404545, 0.05006549879908562, 0.03593290597200394, 0.009291373193264008, 0.10280274599790573, 0.03935932740569115, -0.04806411638855934, -0.012324743904173374, 0.021545635536313057, -0.04235708713531494, 0.10857859998941422, 0.02960882894694805, -0.038599640130996704, 0.01111165713518858, 0.0877101719379425, -0.0727783739566803, 0.0706702321767807, -0.0028732921928167343, -0.00045053521171212196, -0.011175272986292839, -0.028044212609529495, -0.024014398455619812, 0.0036057201214134693, -0.11458870023488998, -0.03151087462902069, 0.04269688203930855, 0.02562076970934868, -0.0021964635234326124, 0.08530489355325699, -0.0808509811758995, -0.041983503848314285, 0.03591982647776604, 0.03994791954755783, -0.029966013506054878, 0.07532794028520584, 0.02093755453824997, 0.048968344926834106, -0.027562227100133896, 0.08363189548254013, -0.1381651759147644, -3.130065582409293e-33, 0.05135098099708557, -0.040902409702539444, 0.02588268555700779, 0.042984601110219955, -0.029755711555480957, 0.018457943573594093, -0.005456382408738136, -0.04024738073348999, 0.010262710973620415, -0.04210640490055084, -0.008347575552761555, -0.006695279851555824, 0.0699193999171257, 0.04307784140110016, -0.04825145751237869, -0.02903062291443348, -0.09078524261713028, -0.14075030386447906, 0.003030674532055855, 0.05483488366007805, -0.013593575917184353, 0.005048029124736786, 0.08576346933841705, 0.015135352499783039, 0.04513876512646675, 0.03127415478229523, 0.01678197830915451, -0.019059758633375168, -0.00685839494690299, -0.04872918874025345, 0.002437027171254158, -0.1613607108592987, -0.05768266320228577, 0.028813861310482025, -0.019358208402991295, 0.026229893788695335, -0.08666692674160004, 0.09561779350042343, 0.010015616193413734, 0.011592013761401176, 0.06055689975619316, 0.020146315917372704, -0.02400360070168972, 0.03320712223649025, -0.05874636024236679, -0.04916460067033768, -0.03448764979839325, -0.05189073830842972, -0.023321527987718582, -0.09940090030431747, 0.05092310532927513, 0.022326473146677017, 0.000982179888524115, 0.095205157995224, -0.02294079214334488, 0.007032121066004038, 0.026584090664982796, 0.0383017435669899, -0.027935856953263283, 0.008772733621299267, 0.12543945014476776, -0.10460358113050461, -0.03149803727865219, 0.0491643063724041, -0.0433538556098938, -0.006903029512614012, -0.0617997869849205, -0.020089715719223022, -0.012099185958504677, 0.0634424239397049, 0.041217148303985596, 0.005590412300080061, 0.050278592854738235, 0.0357539989054203, -0.03172004222869873, 0.07047038525342941, 0.03109622374176979, -0.06560476869344711, 0.07626637816429138, -0.06342397630214691, -0.13456253707408905, 0.11635545641183853, -0.07210084795951843, 0.008404439315199852, 0.03750426694750786, 0.04542345926165581, 0.0644063651561737, 0.019191483035683632, 0.06240583211183548, 0.008099550381302834, 0.03127450495958328, -0.023497292771935463, -0.05831348896026611, 0.04038763418793678, -0.07014483958482742, -4.895749228239765e-8, 0.06471171975135803, -0.041716065257787704, 0.040742456912994385, 0.039600856602191925, 0.08352760225534439, -0.06316379457712173, 0.0863947942852974, -0.02837221696972847, 0.03565295413136482, 0.0701783150434494, 0.02570512890815735, 0.015440311282873154, -0.08283133804798126, -0.014864040538668633, 0.04016867280006409, 0.077452152967453, -0.0239553265273571, 0.0699802115559578, -0.004054207820445299, -0.08972189575433731, -0.10512953251600266, 0.006273151841014624, -0.05425768345594406, -0.02001548372209072, -0.03928842395544052, 0.035311076790094376, 0.10024867206811905, 0.05939432606101036, 0.006540400441735983, 0.03664484992623329, -0.061837706714868546, -0.027174102142453194, -0.03341778367757797, -0.0038404797669500113, -0.05098332092165947, 0.07318029552698135, -0.17490263283252716, 0.04187602177262306, 0.01415987778455019, -0.020501207560300827, -0.0204439926892519, -0.10783106833696365, 0.00368753750808537, -0.01802365481853485, 0.009623751044273376, 0.03399615362286568, 0.012980891391634941, 0.0353706069290638, -0.021265879273414612, 0.06282854080200195, -0.03490485996007919, -0.04028961807489395, -0.005233759991824627, 0.08605483174324036, -0.007137591019272804, 0.003128007287159562, 0.05625004693865776, -0.0733129233121872, -0.015814781188964844, -0.010704140178859234, 0.05249614268541336, -0.03264148533344269, 0.02444077469408512, 0.027450770139694214 ]
0.195915
This page shows how to change the default Storage Class that is used to provision volumes for PersistentVolumeClaims that have no special requirements. ## {{% heading "prerequisites" %}} {{< include "task-tutorial-prereqs.md" >}} {{< version-check >}} ## Why change the default storage class? Depending on the installation method, your Kubernetes cluster may be deployed with an existing StorageClass that is marked as default. This default StorageClass is then used to dynamically provision storage for PersistentVolumeClaims that do not require any specific storage class. See [PersistentVolumeClaim documentation](/docs/concepts/storage/persistent-volumes/#persistentvolumeclaims) for details. The pre-installed default StorageClass may not fit well with your expected workload; for example, it might provision storage that is too expensive. If this is the case, you can either change the default StorageClass or disable it completely to avoid dynamic provisioning of storage. Deleting the default StorageClass may not work, as it may be re-created automatically by the addon manager running in your cluster. Please consult the docs for your installation for details about addon manager and how to disable individual addons. ## Changing the default StorageClass 1. List the StorageClasses in your cluster: ```bash kubectl get storageclass ``` The output is similar to this: ```bash NAME PROVISIONER AGE standard (default) kubernetes.io/gce-pd 1d gold kubernetes.io/gce-pd 1d ``` The default StorageClass is marked by `(default)`. 1. Mark the default StorageClass as non-default: The default StorageClass has an annotation `storageclass.kubernetes.io/is-default-class` set to `true`. Any other value or absence of the annotation is interpreted as `false`. To mark a StorageClass as non-default, you need to change its value to `false`: ```bash kubectl patch storageclass standard -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"false"}}}' ``` where `standard` is the name of your chosen StorageClass. 1. Mark a StorageClass as default: Similar to the previous step, you need to add/set the annotation `storageclass.kubernetes.io/is-default-class=true`. ```bash kubectl patch storageclass gold -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}' ``` Please note you can have multiple `StorageClass` marked as default. If more than one `StorageClass` is marked as default, a `PersistentVolumeClaim` without an explicitly defined `storageClassName` will be created using the most recently created default `StorageClass`. When a `PersistentVolumeClaim` is created with a specified `volumeName`, it remains in a pending state if the static volume's `storageClassName` does not match the `StorageClass` on the `PersistentVolumeClaim`. 1. Verify that your chosen StorageClass is default: ```bash kubectl get storageclass ``` The output is similar to this: ```bash NAME PROVISIONER AGE standard kubernetes.io/gce-pd 1d gold (default) kubernetes.io/gce-pd 1d ``` ## {{% heading "whatsnext" %}} \* Learn more about [PersistentVolumes](/docs/concepts/storage/persistent-volumes/).
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/change-default-storage-class.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/change-default-storage-class.md
[ 0.018519330769777298, 0.01854567788541317, 0.045730214565992355, 0.02297486551105976, -0.054386407136917114, 0.020661110058426857, -0.042985670268535614, -0.02984154410660267, 0.02099362574517727, 0.05331552028656006, -0.016839785501360893, -0.0031770593486726284, -0.008587745949625969, 0.048352718353271484, -0.04186414182186127, -0.030182398855686188, 0.06622114777565002, -0.07324366271495819, -0.01192646473646164, 0.013059779070317745, 0.01463346742093563, -0.014124537818133831, 0.01990993693470955, 0.018076438456773758, 0.008419043384492397, -0.04992443695664406, 0.0034379262942820787, -0.0014596155378967524, 0.044474855065345764, -0.02359629236161709, 0.0044799791648983955, 0.01743454672396183, 0.007952018640935421, 0.021245814859867096, 0.09329936653375626, 0.07200588285923004, -0.013980761170387268, -0.00557756656780839, -0.07699078321456909, -0.004375118762254715, 0.04493312910199165, -0.02848753333091736, -0.09114675223827362, 0.0013403627090156078, -0.033443089574575424, 0.04301469027996063, -0.007280782330781221, -0.08080825954675674, 0.007879287004470825, -0.03885902091860771, 0.03533222898840904, -0.06390289962291718, 0.04705483838915825, 0.045200277119874954, 0.002976037794724107, 0.06407375633716583, -0.001922202529385686, 0.10188082605600357, 0.0780782550573349, -0.024214787408709526, 0.02374340407550335, -0.05373012274503708, 0.10118751227855682, -0.0724482387304306, -0.07136542350053787, 0.0897151455283165, 0.03644683212041855, 0.011713875457644463, 0.04892677813768387, 0.028472380712628365, 0.06475009769201279, 0.11862152814865112, -0.020146742463111877, 0.007031576242297888, 0.021835412830114365, 0.031325723975896835, -0.0044305105693638325, 0.07435590773820877, 0.025666426867246628, -0.0075610605999827385, 0.02365776151418686, -0.010850162245333195, 0.024913206696510315, -0.04905737563967705, -0.056872181594371796, -0.01786503940820694, -0.09492816030979156, -0.09767577052116394, 0.05086968094110489, -0.09208744019269943, 0.003047175006940961, -0.08727053552865982, -0.019006185233592987, -0.08089060336351395, -0.02555546723306179, -0.0025846008211374283, -0.07719171047210693, -0.00619961554184556, 0.06372114270925522, -0.050637900829315186, 0.009234164841473103, -0.026780949905514717, 0.08339503407478333, 0.06551220268011093, 0.018964940682053566, -0.09943309426307678, 0.0027122055180370808, 0.03795168921351433, -0.022917475551366806, 0.06449325382709503, 0.03952137380838394, 0.06388384103775024, -0.024643829092383385, 0.0039834314957261086, 0.024039210751652718, 0.07917067408561707, 0.00532585708424449, 0.019262099638581276, -0.034546345472335815, 0.059286970645189285, 0.0318308025598526, -0.051041364669799805, 0.005334735382348299, -0.028681540861725807, -0.016078198328614235, -0.03656958043575287, -0.08567873388528824, 5.478237873057695e-33, 0.05628485977649689, -0.06805089116096497, 0.06772134453058243, -0.021173659712076187, 0.0016705187736079097, -0.1422913372516632, 0.03543337062001228, 0.030122343450784683, -0.019102025777101517, -0.0863652229309082, -0.02526824362576008, 0.07141037285327911, -0.023297924548387527, 0.024312889203429222, 0.039079394191503525, -0.022645218297839165, -0.06487789005041122, 0.02254635840654373, 0.14332111179828644, -0.09510350972414017, -0.007857618853449821, 0.058126725256443024, -0.005639113485813141, -0.07165396213531494, 0.012240982614457607, 0.0126617681235075, 0.10811673849821091, -0.08643172681331635, -0.021809376776218414, 0.016567207872867584, -0.0983385220170021, -0.01660909317433834, 0.023275554180145264, 0.02340732328593731, -0.12025628238916397, 0.029515281319618225, -0.06438290327787399, 0.05417560786008835, -0.08588656783103943, -0.06459221988916397, 0.08208916336297989, 0.014091240242123604, 0.0591006837785244, -0.018925100564956665, 0.05215825140476227, -0.035515379160642624, 0.0676000565290451, -0.059078581631183624, 0.07603119313716888, 0.04928206652402878, -0.03143249452114105, -0.06401766091585159, 0.005775056313723326, 0.010153770446777344, -0.007272413931787014, 0.005435811821371317, 0.11240288615226746, -0.09189407527446747, 0.000363288214430213, -0.09076761454343796, -0.036411792039871216, -0.035340581089258194, 0.0003780842525884509, 0.07132715731859207, 0.011113102547824383, -0.0460740327835083, 0.00877317227423191, -0.003038028720766306, 0.0015384837752208114, -0.0592060461640358, -0.025691550225019455, -0.05235994979739189, -0.06894733756780624, -0.004218718968331814, -0.012283416464924812, -0.06714503467082977, 0.03278913348913193, 0.010374508798122406, -0.09130184352397919, -0.0009158952161669731, 0.03496205434203148, -0.04246676340699196, -0.0394887812435627, 0.09905507415533066, -0.020584886893630028, -0.05834968388080597, 0.07369230687618256, 0.026734216138720512, 0.02233886532485485, 0.032793592661619186, 0.07548967748880386, -0.0230787992477417, -0.020342467352747917, 0.059557363390922546, -0.0670105442404747, -5.652006427493953e-33, 0.10390182584524155, 0.017499497160315514, -0.03927232325077057, 0.03729613870382309, 0.03970222547650337, 0.08783728629350662, 0.019889045506715775, 0.04119934141635895, -0.049678679555654526, -0.0844101533293724, -0.03168083354830742, -0.08175711333751678, -0.013452124781906605, -0.00878977496176958, -0.11689312011003494, -0.0009645743994042277, -0.07050155848264694, -0.005517312791198492, 0.04529912397265434, 0.05712132900953293, -0.011418372392654419, -0.00960050243884325, 0.029314378276467323, 0.006558562628924847, 0.0221079271286726, -0.01594560407102108, 0.03347140550613403, 0.07947803288698196, -0.05490761622786522, 0.00045436996151693165, -0.06719913333654404, -0.03138928487896919, -0.015733502805233, -0.0513395331799984, 0.021831093356013298, -0.05332690104842186, -0.005498580168932676, -0.003571326145902276, -0.04459742456674576, -0.005326140206307173, 0.024746539071202278, -0.009268177673220634, -0.05964090675115585, -0.02499310113489628, -0.014204280450940132, 0.012042772024869919, 0.08418013900518417, -0.10143162310123444, 0.05846554785966873, -0.038687918335199356, -0.025718163698911667, -0.030311262235045433, -0.031116612255573273, 0.038991983979940414, -0.013321416452527046, 0.061705175787210464, 0.025419002398848534, 0.026269933208823204, -0.01220930740237236, 0.02318371832370758, 0.08964748680591583, -0.05867654085159302, 0.020965708419680595, -0.03847542405128479, -0.03452102839946747, -0.05928816646337509, 0.021681049838662148, 0.03307495638728142, -0.11758211255073547, 0.04899490624666214, -0.1062513142824173, 0.004906127229332924, 0.05902674049139023, 0.005148706026375294, -0.007393314503133297, -0.050803013145923615, 0.0011364067904651165, 0.010212776251137257, 0.09471924602985382, -0.01317665446549654, -0.015460794791579247, 0.01628907211124897, -0.1006142720580101, -0.019592033699154854, 0.02532317116856575, -0.011427223682403564, 0.0626446008682251, 0.08746613562107086, -0.015478190965950489, 0.10143417865037918, -0.034057971090078354, 0.044246312230825424, -0.02917870692908764, 0.07901903986930847, -0.04479393735527992, -5.7021011912183894e-8, 0.02468513324856758, 0.023003235459327698, -0.03637846186757088, 0.05351914465427399, 0.05972438305616379, -0.12173131108283997, 0.038292355835437775, 0.09919853508472443, -0.016770759597420692, -0.003952835686504841, 0.01672777347266674, 0.06910717487335205, -0.007640492636710405, -0.05947369337081909, -0.06738325953483582, 0.03525611758232117, -0.041003309190273285, -0.009515728801488876, -0.018434995785355568, -0.06778061389923096, -0.00925521645694971, -0.02533428557217121, -0.008481709286570549, -0.04252723604440689, 0.07670798897743225, 0.048434458673000336, 0.09715786576271057, 0.04405111074447632, 0.04372330754995346, 0.027262451127171516, -0.04550933837890625, 0.013068226166069508, -0.019935956224799156, 0.057920970022678375, -0.0443909615278244, 0.02400684729218483, -0.0826355516910553, 0.08256690949201584, 0.02900167927145958, 0.03591657429933548, -0.040708452463150024, 0.004279308952391148, -0.1052033081650734, -0.019583197310566902, -0.000383886625058949, 0.04681297764182091, -0.06098701432347298, 0.09676039218902588, -0.04693210870027542, 0.03786052390933037, -0.07803451269865036, -0.0075320592150092125, -0.023460105061531067, 0.093944251537323, 0.019096294417977333, 0.03400946781039238, 0.007164428010582924, -0.00619087228551507, -0.001783388783223927, 0.027756506577134132, 0.07287059724330902, 0.028775271028280258, 0.00861787423491478, 0.018716106191277504 ]
0.025743
{{< feature-state for\_k8s\_version="v1.21" state="stable" >}} This document describes how to configure and use kernel parameters within a Kubernetes cluster using the {{< glossary\_tooltip term\_id="sysctl" >}} interface. {{< note >}} Starting from Kubernetes version 1.23, the kubelet supports the use of either `/` or `.` as separators for sysctl names. Starting from Kubernetes version 1.25, setting Sysctls for a Pod supports setting sysctls with slashes. For example, you can represent the same sysctl name as `kernel.shm\_rmid\_forced` using a period as the separator, or as `kernel/shm\_rmid\_forced` using a slash as a separator. For more sysctl parameter conversion method details, please refer to the page [sysctl.d(5)](https://man7.org/linux/man-pages/man5/sysctl.d.5.html) from the Linux man-pages project. {{< /note >}} ## {{% heading "prerequisites" %}} {{< note >}} `sysctl` is a Linux-specific command-line tool used to configure various kernel parameters and it is not available on non-Linux operating systems. {{< /note >}} {{< include "task-tutorial-prereqs.md" >}} For some steps, you also need to be able to reconfigure the command line options for the kubelets running on your cluster. ## Listing all Sysctl Parameters In Linux, the sysctl interface allows an administrator to modify kernel parameters at runtime. Parameters are available via the `/proc/sys/` virtual process file system. The parameters cover various subsystems such as: - kernel (common prefix: `kernel.`) - networking (common prefix: `net.`) - virtual memory (common prefix: `vm.`) - MDADM (common prefix: `dev.`) - More subsystems are described in [Kernel docs](https://www.kernel.org/doc/Documentation/sysctl/README). To get a list of all parameters, you can run ```shell sudo sysctl -a ``` ## Safe and Unsafe Sysctls Kubernetes classes sysctls as either \_safe\_ or \_unsafe\_. In addition to proper namespacing, a \_safe\_ sysctl must be properly \_isolated\_ between pods on the same node. This means that setting a \_safe\_ sysctl for one pod - must not have any influence on any other pod on the node - must not allow to harm the node's health - must not allow to gain CPU or memory resources outside of the resource limits of a pod. By far, most of the \_namespaced\_ sysctls are not necessarily considered \_safe\_. The following sysctls are supported in the \_safe\_ set: - `kernel.shm\_rmid\_forced`; - `net.ipv4.ip\_local\_port\_range`; - `net.ipv4.tcp\_syncookies`; - `net.ipv4.ping\_group\_range` (since Kubernetes 1.18); - `net.ipv4.ip\_unprivileged\_port\_start` (since Kubernetes 1.22); - `net.ipv4.ip\_local\_reserved\_ports` (since Kubernetes 1.27, needs kernel 3.16+); - `net.ipv4.tcp\_keepalive\_time` (since Kubernetes 1.29, needs kernel 4.5+); - `net.ipv4.tcp\_fin\_timeout` (since Kubernetes 1.29, needs kernel 4.6+); - `net.ipv4.tcp\_keepalive\_intvl` (since Kubernetes 1.29, needs kernel 4.5+); - `net.ipv4.tcp\_keepalive\_probes` (since Kubernetes 1.29, needs kernel 4.5+). - `net.ipv4.tcp\_rmem` (since Kubernetes 1.32, needs kernel 4.15+). - `net.ipv4.tcp\_wmem` (since Kubernetes 1.32, needs kernel 4.15+). {{< note >}} There are some exceptions to the set of safe sysctls: - The `net.\*` sysctls are not allowed with host networking enabled. - The `net.ipv4.tcp\_syncookies` sysctl is not namespaced on Linux kernel version 4.5 or lower. {{< /note >}} This list will be extended in future Kubernetes versions when the kubelet supports better isolation mechanisms. ### Enabling Unsafe Sysctls All \_safe\_ sysctls are enabled by default. All \_unsafe\_ sysctls are disabled by default and must be allowed manually by the cluster admin on a per-node basis. Pods with disabled unsafe sysctls will be scheduled, but will fail to launch. With the warning above in mind, the cluster admin can allow certain \_unsafe\_ sysctls for very special situations such as high-performance or real-time application tuning. \_Unsafe\_ sysctls are enabled on a node-by-node basis with a flag of the kubelet; for example: ```shell kubelet --allowed-unsafe-sysctls \ 'kernel.msg\*,net.core.somaxconn' ... ``` For {{< glossary\_tooltip term\_id="minikube" >}}, this can be done via the `extra-config` flag: ```shell minikube start --extra-config="kubelet.allowed-unsafe-sysctls=kernel.msg\*,net.core.somaxconn"... ``` Only \_namespaced\_ sysctls can be enabled this way. ## Setting
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/sysctl-cluster.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/sysctl-cluster.md
[ -0.004733098670840263, 0.017716053873300552, 0.07696417719125748, -0.03386986628174782, -0.0624641515314579, 0.0012251987354829907, 0.0032624551095068455, 0.014218210242688656, 0.06035228446125984, 0.01418346632272005, 0.010719500482082367, -0.10477814823389053, -0.01713571697473526, -0.025103092193603516, 0.013817761093378067, -0.0009776427177712321, -0.0080665722489357, 0.050939541310071945, 0.0005767589318566024, -0.006286224350333214, 0.09074856340885162, 0.08723161369562149, 0.03461311757564545, 0.009585188701748848, 0.009130474179983139, -0.07142219692468643, -0.005653873085975647, 0.004858355037868023, 0.05095285549759865, -0.006165016908198595, -0.017100470140576363, 0.030482031404972076, -0.04997522383928299, 0.04982289671897888, 0.08555535972118378, 0.06105794012546539, 0.008026906289160252, -0.0116942273452878, -0.04914454370737076, 0.004153682850301266, 0.03368622064590454, -0.07247137278318405, -0.09584182500839233, -0.005263053346425295, -0.034252118319272995, 0.03502059727907181, -0.03134259209036827, -0.012126685120165348, -0.016845442354679108, 0.018029868602752686, 0.007987722754478455, -0.09842073917388916, 0.04236433655023575, 0.024000300094485283, 0.09765520691871643, 0.015043498948216438, -0.09275379031896591, 0.03035878948867321, 0.09425199776887894, 0.027847716584801674, -0.010878887958824635, -0.017977280542254448, 0.022400375455617905, -0.03149610385298729, -0.008453816175460815, 0.005129160825163126, 0.07083044201135635, -0.007133103907108307, -0.019111793488264084, 0.005399442743510008, 0.001594324829056859, -0.039957135915756226, -0.014166459441184998, -0.01337110809981823, 0.0000902142928680405, 0.06628955155611038, -0.04759792238473892, 0.0600750558078289, -0.03299815580248833, -0.11654053628444672, 0.04469794034957886, 0.06583410501480103, 0.05561363697052002, 0.036245860159397125, -0.023617982864379883, -0.056570298969745636, -0.015924029052257538, -0.04841787368059158, 0.07902377843856812, 0.022608481347560883, 0.02339985966682434, -0.0810796469449997, 0.06649647653102875, -0.1400599330663681, 0.07794013619422913, 0.01578175276517868, 0.0073391143232584, 0.02558126673102379, 0.008403642103075981, 0.0019170799059793353, -0.01339662540704012, 0.020420758053660393, -0.015542469918727875, 0.021950503811240196, 0.06286192685365677, -0.011706355959177017, -0.05660777539014816, -0.052238427102565765, -0.019459865987300873, 0.007224267348647118, -0.013345989398658276, 0.09235037863254547, -0.028965337201952934, -0.0051651704125106335, 0.012314104475080967, -0.08144626766443253, 0.0005252603441476822, -0.02686118148267269, 0.12400940805673599, 0.04719411954283714, -0.019421646371483803, -0.10450806468725204, -0.08628185093402863, 0.0545111745595932, -0.05157971382141113, 0.08004949241876602, -0.05181477218866348, 2.598904317323834e-33, 0.06531769782304764, -0.012492611072957516, -0.016408445313572884, -0.029430976137518883, -0.05420149490237236, -0.07367566227912903, -0.06472692638635635, -0.04495087265968323, -0.057140566408634186, -0.0026116089429706335, -0.0942525565624237, -0.049120042473077774, 0.017654642462730408, -0.0425642691552639, 0.007488479372113943, 0.02136000618338585, -0.04043297469615936, 0.03557967767119408, 0.025170037522912025, -0.02947244979441166, 0.018181461840867996, 0.020366903394460678, -0.03754078224301338, -0.007569614332169294, 0.04267772287130356, -0.020171118900179863, 0.030075373128056526, -0.09318608790636063, -0.004297103267163038, -0.004523039795458317, -0.008122359402477741, -0.05165719613432884, 0.05106379836797714, 0.012734590098261833, -0.11857607960700989, 0.0003114309802185744, -0.02156638354063034, 0.0023951283656060696, -0.032677680253982544, -0.017381301149725914, 0.023234816268086433, 0.018273135647177696, -0.036965858191251755, 0.0022926239762455225, 0.05139937251806259, 0.040445659309625626, 0.017543448135256767, -0.05643109977245331, 0.041215457022190094, -0.030506914481520653, -0.0367886908352375, 0.012979352846741676, 0.052584458142519, -0.0513748899102211, 0.06623108685016632, 0.0035157515667378902, 0.0926232859492302, -0.04791146144270897, -0.06810476630926132, 0.002408171771094203, -0.08540215343236923, 0.04123130068182945, 0.028460800647735596, -0.009336991235613823, 0.006134822964668274, 0.035647355020046234, -0.04243431240320206, 0.04238481447100639, -0.02399999462068081, -0.015005490742623806, -0.06097985804080963, 0.023414844647049904, -0.04432515799999237, 0.051502928137779236, -0.026163706555962563, -0.04740641266107559, -0.04000132530927658, -0.013457190245389938, -0.11418255418539047, 0.018132653087377548, -0.019882725551724434, 0.011072942987084389, -0.04545297101140022, 0.11498073488473892, 0.08905371278524399, -0.07119743525981903, -0.002447041915729642, -0.0426245778799057, -0.029847050085663795, -0.058016337454319, 0.025470798835158348, -0.06281013041734695, -0.1289198100566864, 0.027301328256726265, -0.12929244339466095, -3.991079929556094e-33, 0.11819031834602356, 0.06502438336610794, 0.008327321149408817, 0.040189556777477264, -0.0787779837846756, -0.0034682760015130043, 0.04958588629961014, 0.07213310897350311, -0.0036634195130318403, -0.07867366075515747, 0.00617232033982873, 0.01230741385370493, 0.023321062326431274, -0.014462827704846859, 0.028378386050462723, 0.021409325301647186, -0.15114475786685944, -0.007052314933389425, -0.011647462844848633, 0.018601534888148308, -0.08103472739458084, -0.050176952034235, 0.010020225308835506, 0.05048390105366707, 0.029182899743318558, -0.04860302805900574, 0.09012100100517273, 0.07084261626005173, -0.061926379799842834, -0.06210855394601822, 0.021856583654880524, -0.07042934000492096, -0.010547960177063942, 0.029455795884132385, 0.010833843611180782, -0.06299551576375961, -0.022631950676441193, -0.02986687794327736, -0.00933072343468666, 0.04740067198872566, 0.02447120100259781, 0.056897956877946854, 0.0027401354163885117, -0.01963970810174942, -0.06965131312608719, 0.03384857997298241, 0.04386047646403313, -0.04723299667239189, -0.011544638313353062, -0.1542067974805832, 0.06608863919973373, -0.015568327158689499, -0.025149915367364883, 0.05777391791343689, -0.05669228732585907, 0.01282765343785286, -0.005067600402981043, 0.05838041752576828, -0.04393794387578964, -0.009126381948590279, 0.02221306413412094, -0.10442078113555908, 0.09497570991516113, -0.001853282912634313, 0.003908414393663406, -0.07129289954900742, -0.03823619335889816, -0.024128640070557594, -0.0008717539603821933, -0.008682753890752792, -0.009701166301965714, -0.01492465939372778, 0.03195216879248619, 0.022441089153289795, 0.02564135193824768, -0.016698095947504044, 0.042909689247608185, 0.012127220630645752, 0.0791049599647522, -0.02372681349515915, -0.056474924087524414, 0.059453319758176804, -0.03467637673020363, 0.05729605630040169, 0.03334740921854973, 0.04723750799894333, 0.061934199184179306, 0.1672920435667038, 0.04494761675596237, 0.03190683200955391, 0.013064554892480373, 0.019785257056355476, -0.01047334261238575, 0.1611493080854416, -0.04150831326842308, -4.8874166935775065e-8, 0.051410824060440063, 0.06450942903757095, -0.03771262243390083, 0.03270311653614044, 0.0262746624648571, 0.05941231921315193, -0.02060454711318016, -0.023596247658133507, -0.0515160895884037, 0.041090890765190125, -0.05284006521105766, 0.07277047634124756, -0.05029083043336868, -0.004501293879002333, 0.016187496483325958, -0.016271080821752548, -0.022650161758065224, 0.12333469837903976, -0.003013830166310072, 0.02188923768699169, -0.03592671826481819, -0.007824021391570568, -0.038675788789987564, 0.018196679651737213, 0.03658164665102959, 0.020097799599170685, 0.03938532620668411, 0.02946333959698677, 0.025103574618697166, 0.0020460193045437336, -0.015168724581599236, 0.022057009860873222, -0.07751701027154922, 0.060684315860271454, 0.013425400480628014, 0.041930124163627625, -0.1632702350616455, 0.0695490837097168, 0.12570632994174957, 0.11650104075670242, 0.005448806565254927, -0.06022016704082489, -0.0961882472038269, 0.014000950381159782, -0.03871307894587517, 0.06233629584312439, -0.0106357978656888, 0.08532740920782089, -0.030176838859915733, 0.028157901018857956, 0.02138102613389492, -0.0033823668491095304, -0.02101256139576435, 0.048463646322488785, -0.0465296246111393, -0.03449162095785141, -0.020589975640177727, -0.03494957089424133, -0.009897601790726185, -0.019428210332989693, 0.04954792559146881, -0.01603522337973118, -0.004578897729516029, -0.003894844325259328 ]
0.118178
sysctls are enabled on a node-by-node basis with a flag of the kubelet; for example: ```shell kubelet --allowed-unsafe-sysctls \ 'kernel.msg\*,net.core.somaxconn' ... ``` For {{< glossary\_tooltip term\_id="minikube" >}}, this can be done via the `extra-config` flag: ```shell minikube start --extra-config="kubelet.allowed-unsafe-sysctls=kernel.msg\*,net.core.somaxconn"... ``` Only \_namespaced\_ sysctls can be enabled this way. ## Setting Sysctls for a Pod A number of sysctls are \_namespaced\_ in today's Linux kernels. This means that they can be set independently for each pod on a node. Only namespaced sysctls are configurable via the pod securityContext within Kubernetes. The following sysctls are known to be namespaced. This list could change in future versions of the Linux kernel. - `kernel.shm\*`, - `kernel.msg\*`, - `kernel.sem`, - `fs.mqueue.\*`, - Those `net.\*` that can be set in container networking namespace. However, there are exceptions (e.g., `net.netfilter.nf\_conntrack\_max` and `net.netfilter.nf\_conntrack\_expect\_max` can be set in container networking namespace but are unnamespaced before Linux 5.12.2). Sysctls with no namespace are called \_node-level\_ sysctls. If you need to set them, you must manually configure them on each node's operating system, or by using a DaemonSet with privileged containers. Use the pod securityContext to configure namespaced sysctls. The securityContext applies to all containers in the same pod. This example uses the pod securityContext to set a safe sysctl `kernel.shm\_rmid\_forced` and two unsafe sysctls `net.core.somaxconn` and `kernel.msgmax`. There is no distinction between \_safe\_ and \_unsafe\_ sysctls in the specification. {{< warning >}} Only modify sysctl parameters after you understand their effects, to avoid destabilizing your operating system. {{< /warning >}} ```yaml apiVersion: v1 kind: Pod metadata: name: sysctl-example spec: securityContext: sysctls: - name: kernel.shm\_rmid\_forced value: "0" - name: net.core.somaxconn value: "1024" - name: kernel.msgmax value: "65536" ... ``` {{< warning >}} Due to their nature of being \_unsafe\_, the use of \_unsafe\_ sysctls is at-your-own-risk and can lead to severe problems like wrong behavior of containers, resource shortage or complete breakage of a node. {{< /warning >}} It is good practice to consider nodes with special sysctl settings as \_tainted\_ within a cluster, and only schedule pods onto them which need those sysctl settings. It is suggested to use the Kubernetes [\_taints and toleration\_ feature](/docs/reference/generated/kubectl/kubectl-commands/#taint) to implement this. A pod with the \_unsafe\_ sysctls will fail to launch on any node which has not enabled those two \_unsafe\_ sysctls explicitly. As with \_node-level\_ sysctls it is recommended to use [\_taints and toleration\_ feature](/docs/reference/generated/kubectl/kubectl-commands/#taint) or [taints on nodes](/docs/concepts/scheduling-eviction/taint-and-toleration/) to schedule those pods onto the right nodes.
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/sysctl-cluster.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/sysctl-cluster.md
[ 0.04376188665628433, -0.004833062645047903, 0.013737686909735203, -0.030532779172062874, 0.00881335511803627, -0.00183587777428329, 0.026805367320775986, 0.010199894197285175, 0.05308986082673073, 0.02854171022772789, 0.022312341257929802, -0.07817911356687546, 0.017062082886695862, -0.0401499979197979, -0.00860247015953064, -0.03931911289691925, 0.02671227976679802, 0.04684401676058769, -0.01766989380121231, -0.02566211298108101, 0.025955790653824806, 0.0032116936054080725, 0.023520594462752342, -0.01564074493944645, -0.030535852536559105, -0.07705546170473099, -0.07090786099433899, 0.009670429863035679, 0.03757571429014206, -0.022760767489671707, -0.04574970528483391, 0.02932131662964821, -0.040814198553562164, 0.07511081546545029, 0.08828026801347733, 0.08014003187417984, -0.014133523218333721, -0.03376619517803192, -0.05305923521518707, -0.013003772124648094, -0.005676862318068743, -0.03175833821296692, -0.12502911686897278, -0.01888357289135456, -0.08200782537460327, 0.0020942247938364744, -0.06097085773944855, -0.09349993616342545, -0.0252381619066, -0.05407780781388283, 0.008746824227273464, -0.05950382724404335, 0.06572316586971283, 0.023859698325395584, 0.0868082344532013, 0.009857251308858395, -0.06422144919633865, 0.02178729884326458, 0.12255384027957916, 0.0538342110812664, 0.009344213642179966, -0.013107444159686565, 0.014496627263724804, -0.016800902783870697, -0.0099997753277421, 0.011101480573415756, 0.033717457205057144, 0.0005016442737542093, 0.014197677373886108, 0.006877915468066931, 0.053852420300245285, -0.030200349166989326, -0.03295862674713135, 0.010104320012032986, 0.03146340325474739, 0.020619502291083336, -0.055383384227752686, 0.03499393165111542, -0.0940231904387474, -0.13245026767253876, 0.007183572743088007, 0.09427278488874435, 0.10090236365795135, 0.012811949476599693, -0.05579457804560661, -0.004797293804585934, -0.05231117829680443, 0.005090581253170967, 0.0729241892695427, 0.042639486491680145, 0.01936478540301323, -0.0688583254814148, 0.035986028611660004, -0.08426807075738907, 0.07021786272525787, -0.025598693639039993, 0.013106176629662514, 0.011389467865228653, 0.010955404490232468, -0.013131474144756794, 0.0025671771727502346, -0.04659675061702728, 0.010550672188401222, 0.028145620599389076, 0.1004147157073021, -0.0339079387485981, -0.04932105541229248, -0.09902831166982651, -0.0164202731102705, 0.019468698650598526, -0.03700181096792221, 0.0886697918176651, 0.009285906329751015, 0.005548490677028894, -0.001428396557457745, -0.019324637949466705, 0.04492944851517677, -0.019228382036089897, 0.09181875735521317, 0.0422036238014698, 0.03193563595414162, -0.041839540004730225, 0.019174806773662567, 0.042039014399051666, -0.01617501489818096, 0.057049185037612915, -0.025325756520032883, 3.59199188327025e-33, 0.0934545248746872, -0.04280180111527443, 0.01810762844979763, -0.04680347442626953, -0.02899859845638275, -0.06824593245983124, -0.06544532626867294, -0.0544457770884037, -0.05428314208984375, 0.004595914389938116, -0.0836067870259285, 0.027906572446227074, -0.007177382241934538, -0.03527195751667023, 0.08824515342712402, 0.026451485231518745, -0.03758688271045685, 0.03666333481669426, 0.09575741738080978, -0.004375571850687265, 0.025828486308455467, -0.03663504868745804, -0.024564044550061226, -0.0206986702978611, 0.0348116010427475, -0.02312980219721794, 0.03367217257618904, -0.0875774696469307, 0.012225387617945671, 0.0222010537981987, -0.04206278920173645, -0.01104955654591322, 0.014221570454537868, 0.06793858110904694, -0.09320243448019028, 0.002140368102118373, -0.03347532078623772, 0.014609331265091896, -0.05533435940742493, -0.025158774107694626, 0.04661227762699127, 0.014553811401128769, -0.016370374709367752, -0.052171919494867325, 0.0648176521062851, 0.05297613888978958, 0.006343950983136892, -0.029259512200951576, 0.023563193157315254, -0.0340777188539505, -0.05283203348517418, 0.00034090731060132384, 0.015239883214235306, -0.029020080342888832, 0.05779210105538368, 0.051456209272146225, 0.07566896826028824, -0.069944828748703, -0.06957309693098068, 0.04618321731686592, -0.054515138268470764, -0.03509770706295967, -0.004015683196485043, 0.0035684274043887854, 0.06577352434396744, 0.04327188432216644, -0.05153699964284897, 0.021006012335419655, -0.010430303402245045, 0.011472268030047417, -0.11166945099830627, 0.053721874952316284, 0.008620993234217167, 0.038337722420692444, -0.006426360923796892, -0.028145838528871536, -0.02058008871972561, -0.006878598593175411, -0.12884752452373505, 0.013329788111150265, -0.007644474506378174, 0.014850709587335587, -0.017656521871685982, 0.08799412101507187, 0.04745198413729668, -0.056732792407274246, -0.008535783737897873, 0.005072366911917925, -0.06846174597740173, 0.007189278025180101, 0.010536051355302334, -0.057227786630392075, -0.09095553308725357, -0.010060099884867668, -0.2089281976222992, -5.3394200717492445e-33, 0.05300799012184143, -0.003329433035105467, 0.007724722381681204, 0.043073058128356934, -0.03796492516994476, 0.031964849680662155, 0.009953444823622704, 0.047994352877140045, -0.05206131562590599, -0.05439230427145958, 0.0026437395717948675, -0.035355083644390106, 0.05032286047935486, -0.013972376473248005, -0.03202425688505173, 0.044500384479761124, -0.10492630302906036, 0.0007986222626641393, 0.0023355784360319376, -0.0035217078402638435, -0.045726578682661057, -0.009159610606729984, 0.00027781646349467337, 0.05715547502040863, 0.02089131996035576, -0.025482501834630966, -0.0019391097594052553, 0.06563492119312286, -0.10249362140893936, -0.055019546300172806, 0.06949743628501892, -0.028436904773116112, -0.054311949759721756, 0.003932418767362833, 0.0003465618647169322, -0.04793686792254448, -0.06838282197713852, 0.01217353530228138, -0.05857006460428238, 0.0739792212843895, 0.026719946414232254, 0.054899584501981735, -0.04748716577887535, -0.07309791445732117, -0.04508186876773834, 0.005847801920026541, 0.023698346689343452, -0.059491366147994995, -0.025271618738770485, -0.1440131664276123, 0.021236350759863853, -0.056528665125370026, 0.03182251751422882, 0.04617002233862877, -0.029865875840187073, 0.03554152324795723, 0.040651511400938034, 0.05197567492723465, 0.008311965502798557, -0.04812001809477806, 0.08944562077522278, -0.14429804682731628, 0.0313120111823082, 0.03432102128863335, 0.006519411690533161, -0.027982981875538826, -0.009629807434976101, 0.012347906827926636, 0.016024483367800713, -0.006526507902890444, 0.037382572889328, -0.04655182734131813, 0.04447716847062111, -0.005580349359661341, 0.003207395551726222, 0.014906510710716248, 0.036773715168237686, -0.05875392630696297, 0.049865733832120895, -0.007643702439963818, -0.06116413325071335, 0.06657245755195618, -0.029796864837408066, 0.03966682031750679, 0.06475957483053207, 0.0108584463596344, 0.0367920882999897, 0.13820333778858185, 0.06760840117931366, 0.04729894921183586, -0.03899199143052101, 0.029589585959911346, 0.010859429836273193, 0.11435709148645401, -0.04497581347823143, -4.903625949737034e-8, 0.06526722013950348, 0.03905487060546875, -0.1054074689745903, 0.06281349062919617, 0.07087910920381546, 0.037603192031383514, 0.030210668221116066, -0.009190465323626995, -0.08875435590744019, 0.03345010429620743, -0.047716524451971054, 0.07951090484857559, -0.04600672796368599, 0.020932907238602638, 0.04074098914861679, 0.004844949580729008, -0.00887813325971365, 0.0648442730307579, 0.015071358531713486, -0.05167066678404808, -0.05833730846643448, 0.018638981506228447, -0.05469914898276329, 0.04133192449808121, -0.018059438094496727, 0.06471113860607147, 0.07056459039449692, 0.009930843487381935, 0.06922536343336105, 0.06993654370307922, -0.06455212831497192, -0.020223213359713554, -0.11694463342428207, 0.05716398358345032, -0.009385823272168636, 0.06392204016447067, -0.18189670145511627, 0.07920903712511063, 0.05249831825494766, 0.08652959764003754, -0.009248468093574047, -0.06326676160097122, -0.07256632298231125, 0.028950808569788933, -0.037476107478141785, 0.06179210543632507, -0.04659109562635422, 0.0860840231180191, 0.018776269629597664, 0.03237241134047508, -0.004172191489487886, 0.0061268191784620285, -0.013472053222358227, 0.07412826269865036, -0.05419352650642395, 0.0016519714845344424, -0.014010896906256676, -0.050622645765542984, -0.009908813051879406, -0.013929840177297592, -0.05070977285504341, -0.01721135713160038, 0.046232517808675766, 0.04340479150414467 ]
0.122518
This page provides an overview of the steps you should follow to upgrade a Kubernetes cluster. The Kubernetes project recommends upgrading to the latest patch releases promptly, and to ensure that you are running a supported minor release of Kubernetes. Following this recommendation helps you to stay secure. The way that you upgrade a cluster depends on how you initially deployed it and on any subsequent changes. At a high level, the steps you perform are: - Upgrade the {{< glossary\_tooltip text="control plane" term\_id="control-plane" >}} - Upgrade the nodes in your cluster - Upgrade clients such as {{< glossary\_tooltip text="kubectl" term\_id="kubectl" >}} - Adjust manifests and other resources based on the API changes that accompany the new Kubernetes version ## {{% heading "prerequisites" %}} You must have an existing cluster. This page is about upgrading from Kubernetes {{< skew currentVersionAddMinor -1 >}} to Kubernetes {{< skew currentVersion >}}. If your cluster is not currently running Kubernetes {{< skew currentVersionAddMinor -1 >}} then please check the documentation for the version of Kubernetes that you plan to upgrade to. {{< note >}} On Linux nodes, the kubelet defaults to supporting only cgroups v2. For Kubernetes {{< skew currentVersion >}} the `FailCgroupV1` kubelet configuration option is set to `true` by default. To learn more, refer to the [Kubernetes cgroup v1 deprecation documentation](/docs/concepts/architecture/cgroups/#deprecation-of-cgroup-v1). {{}} ## Upgrade approaches ### kubeadm {#upgrade-kubeadm} If your cluster was deployed using the `kubeadm` tool, refer to [Upgrading kubeadm clusters](/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade/) for detailed information on how to upgrade the cluster. Once you have upgraded the cluster, remember to [install the latest version of `kubectl`](/docs/tasks/tools/). ### Manual deployments {{< caution >}} These steps do not account for third-party extensions such as network and storage plugins. {{< /caution >}} You should manually update the control plane following this sequence: - etcd (all instances) - kube-apiserver (all control plane hosts) - kube-controller-manager - kube-scheduler - cloud controller manager, if you use one At this point you should [install the latest version of `kubectl`](/docs/tasks/tools/). For each node in your cluster, [drain](/docs/tasks/administer-cluster/safely-drain-node/) that node and then either replace it with a new node that uses the {{< skew currentVersion >}} kubelet, or upgrade the kubelet on that node and bring the node back into service. {{< caution >}} Draining nodes before upgrading kubelet ensures that pods are re-admitted and containers are re-created, which may be necessary to resolve some security issues or other important bugs. {{}} ### Other deployments {#upgrade-other} Refer to the documentation for your cluster deployment tool to learn the recommended set up steps for maintenance. ## Post-upgrade tasks ### Switch your cluster's storage API version The objects that are serialized into etcd for a cluster's internal representation of the Kubernetes resources active in the cluster are written using a particular version of the API. When the supported API changes, these objects may need to be rewritten in the newer API. Failure to do this will eventually result in resources that are no longer decodable or usable by the Kubernetes API server. For each affected object, fetch it using the latest supported API and then write it back also using the latest supported API. ### Update manifests Upgrading to a new Kubernetes version can provide new APIs. You can use `kubectl convert` command to convert manifests between different API versions. For example: ```shell kubectl convert -f pod.yaml --output-version v1 ``` The `kubectl` tool replaces the contents of `pod.yaml` with a manifest that sets `kind` to Pod (unchanged), but with a revised `apiVersion`. ### Device Plugins If your cluster is running device plugins and the node needs to be upgraded to a Kubernetes release with
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/cluster-upgrade.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/cluster-upgrade.md
[ 0.020815404132008553, -0.05054672062397003, 0.06673697382211685, -0.03535613417625427, -0.00537942536175251, 0.03927134722471237, -0.000930792884901166, -0.07521244883537292, -0.005036536604166031, 0.07933656871318817, 0.007221186999231577, -0.07667254656553268, -0.023563532158732414, -0.052862003445625305, 0.052777186036109924, 0.026507768779993057, 0.025628434494137764, -0.02222733572125435, -0.03147391602396965, -0.0517963208258152, -0.01957046240568161, -0.007112686987966299, 0.033716101199388504, -0.0010291741928085685, -0.05680398643016815, 0.009132682345807552, -0.04798663407564163, -0.03245028480887413, -0.013978752307593822, 0.02719966694712639, -0.0757976621389389, 0.0294182226061821, -0.02787596918642521, 0.04386857524514198, 0.05457577109336853, 0.006299247033894062, 0.030155356973409653, 0.07365971803665161, 0.0004490819410420954, 0.0728602409362793, 0.04665364697575569, -0.04935520887374878, -0.09049513936042786, -0.02914656326174736, -0.016686657443642616, 0.02600288577377796, -0.03531632944941521, -0.03136824071407318, -0.007477981504052877, -0.004965109750628471, 0.044628191739320755, -0.10577981919050217, -0.029389606788754463, 0.0027221008203923702, -0.018642932176589966, 0.05212769657373428, -0.013383487239480019, 0.056508619338274, 0.0723070353269577, -0.042488131672143936, 0.04405458644032478, -0.01453959010541439, 0.01709097810089588, -0.023966437205672264, -0.0504884272813797, -0.022370506078004837, 0.05794272944331169, -0.018434027209877968, 0.044713541865348816, -0.013220665045082569, 0.009326410479843616, -0.021343447268009186, 0.007041378878057003, -0.06380821764469147, 0.005277462303638458, 0.03754660487174988, -0.0012691591400653124, 0.037316374480724335, 0.046974457800388336, -0.046003468334674835, 0.037465400993824005, 0.049103621393442154, 0.07907378673553467, 0.0006723195547237992, -0.09840667992830276, -0.04050616919994354, -0.011655913665890694, -0.0655764490365982, 0.02441326342523098, 0.00006640118226641789, 0.00858004204928875, -0.05127537623047829, 0.07065160572528839, -0.09009140729904175, 0.06460665911436081, 0.06606163084506989, -0.10336471349000931, -0.060442280024290085, 0.04679964482784271, -0.0016197199001908302, 0.0495794303715229, -0.04877505823969841, 0.000627368048299104, -0.028414735570549965, -0.06512264907360077, 0.0288559440523386, -0.04582842066884041, 0.012498877942562103, 0.01507237832993269, 0.03217976912856102, 0.015302223153412342, 0.13111470639705658, -0.02796047553420067, -0.03425060212612152, -0.04214991256594658, -0.020251818001270294, 0.00889463908970356, -0.03830970451235771, 0.02300119958817959, 0.09448717534542084, 0.0492403618991375, -0.07706024497747421, 0.03977443277835846, 0.048649340867996216, -0.08119592815637589, 0.03691020980477333, -0.06425406038761139, 2.2715822215366063e-33, 0.01919466443359852, 0.023190485313534737, -0.02511417493224144, -0.018063241615891457, -0.0552351251244545, -0.0639355257153511, -0.012370597571134567, -0.047372154891490936, -0.04412354901432991, -0.05293404683470726, -0.03774435445666313, 0.028787624090909958, -0.010535321198403835, -0.03772636130452156, 0.07164014130830765, 0.003002858255058527, -0.021317193284630775, 0.04680490866303444, 0.09542100876569748, 0.006335524842143059, 0.05960427597165108, -0.053514059633016586, -0.001160111976787448, -0.012053062207996845, 0.039822813123464584, -0.011129654012620449, 0.047151755541563034, -0.028241300955414772, -0.03655440732836723, 0.0015002104919403791, -0.03642518073320389, 0.001333960797637701, 0.045573897659778595, 0.005622359924018383, -0.18366169929504395, -0.004349501803517342, -0.04280215501785278, -0.0581132136285305, 0.00121128442697227, -0.06866294145584106, -0.0012859062990173697, -0.024245044216513634, -0.004544144030660391, -0.03885376453399658, 0.17929042875766754, 0.09239345788955688, 0.027474241331219673, -0.07178835570812225, 0.11342953145503998, -0.056973591446876526, -0.024731909856200218, -0.07418380677700043, -0.002615799428895116, -0.0007592986803501844, -0.028855999931693077, 0.04389743134379387, 0.1134549081325531, -0.07964105159044266, -0.003778905374929309, -0.03343268111348152, -0.021063288673758507, -0.07550600916147232, -0.005597519688308239, -0.022950420156121254, 0.023953670635819435, -0.0038376220036298037, 0.011347995139658451, 0.09133028239011765, -0.010018699802458286, -0.040720175951719284, -0.0638045072555542, -0.0011800223728641868, -0.022121485322713852, 0.08341513574123383, 0.014045465737581253, -0.05382835865020752, -0.04408617317676544, 0.0481652170419693, -0.03434218093752861, 0.06860870122909546, 0.027733732014894485, -0.04181663319468498, -0.06861401349306107, 0.07534721493721008, 0.09003007411956787, -0.03778987005352974, 0.01007139589637518, 0.010540904477238655, 0.011290847323834896, 0.051817066967487335, 0.024781987071037292, -0.10593816637992859, -0.07384543865919113, 0.04870646819472313, -0.07886442542076111, -4.424442085034054e-33, 0.09429360926151276, 0.007477101869881153, -0.05227338895201683, 0.0511779710650444, -0.04414421319961548, 0.01154149230569601, -0.036177489906549454, 0.10210151970386505, -0.017294274643063545, -0.09084735810756683, -0.02962346188724041, 0.02606959082186222, 0.048908334225416183, -0.007714756298810244, -0.11164343357086182, -0.011284934356808662, -0.08702869713306427, 0.016576986759901047, 0.013558010570704937, 0.04602331668138504, 0.003503404324874282, -0.07194177806377411, 0.009663145989179611, 0.03539705649018288, -0.01801264099776745, -0.02478833869099617, -0.002630259608849883, 0.07397027313709259, -0.020000599324703217, 0.03588774800300598, -0.004726797807961702, -0.027500130236148834, -0.010698681697249413, 0.008670865558087826, 0.03981861472129822, -0.03488965332508087, 0.09105657041072845, -0.1102563887834549, -0.024009091779589653, 0.008388638496398926, 0.013732505962252617, 0.013670072890818119, -0.033102259039878845, -0.08448906987905502, 0.036206576973199844, 0.03353385999798775, 0.04224938899278641, -0.024476103484630585, -0.032964203506708145, -0.11609062552452087, 0.02338249236345291, 0.008410916663706303, -0.014256763271987438, 0.02488553524017334, -0.053527165204286575, 0.06206655129790306, 0.048898737877607346, 0.04217958077788353, -0.06225108355283737, -0.0021559111773967743, -0.03237226977944374, -0.03450201824307442, 0.04219707474112511, 0.004898278508335352, 0.003149019554257393, -0.005860947538167238, 0.0052522923797369, 0.051993370056152344, -0.04256149008870125, 0.0414174422621727, -0.09980100393295288, -0.02731194719672203, 0.02332364395260811, 0.000014300968359748367, -0.015152749605476856, -0.08439584076404572, 0.12277000397443771, -0.031910739839076996, 0.06812730431556702, -0.06843706220388412, -0.0013929951237514615, 0.026399558410048485, -0.053504277020692825, 0.025050371885299683, 0.08320562541484833, 0.0598677359521389, 0.08798731118440628, 0.05537159740924835, 0.05290284752845764, 0.03588953614234924, -0.06760553270578384, -0.0030991339590400457, -0.043230969458818436, 0.07797317206859589, -0.023470593616366386, -5.2658680971262584e-8, 0.0358814038336277, 0.15458610653877258, -0.05811816081404686, 0.04088416323065758, 0.0733383446931839, 0.03637964278459549, -0.04559187591075897, 0.008230922743678093, -0.01671311818063259, -0.05853551998734474, -0.015296239405870438, 0.08670849353075027, -0.010333286598324776, 0.04465433210134506, 0.016859788447618484, 0.05440015718340874, -0.05747859179973602, -0.01274257991462946, 0.05632532015442848, -0.06219993531703949, -0.07825645059347153, 0.002047243295237422, 0.027434933930635452, 0.042825616896152496, 0.004493421874940395, -0.004017320461571217, 0.048873476684093475, 0.023372597992420197, 0.008939945138990879, -0.018528444692492485, -0.04881281778216362, -0.04594818502664566, -0.06594814360141754, 0.09754166007041931, 0.02048848569393158, 0.02135428786277771, -0.1297357678413391, 0.07904483377933502, 0.11705516278743744, 0.11525844037532806, 0.043453291058540344, 0.024794304743409157, -0.055933721363544464, 0.011405517347157001, -0.013492950238287449, 0.06506726890802383, -0.04151926189661026, -0.01689404435455799, -0.02181069925427437, -0.014971409924328327, 0.001533075119368732, -0.00834403745830059, -0.07854028046131134, 0.08120615035295486, -0.06640015542507172, -0.012963932007551193, -0.05976271256804466, 0.009844571352005005, 0.08818355947732925, -0.003384651616215706, 0.009010706096887589, -0.009281191974878311, -0.033548809587955475, -0.03188982233405113 ]
0.044604
convert -f pod.yaml --output-version v1 ``` The `kubectl` tool replaces the contents of `pod.yaml` with a manifest that sets `kind` to Pod (unchanged), but with a revised `apiVersion`. ### Device Plugins If your cluster is running device plugins and the node needs to be upgraded to a Kubernetes release with a newer device plugin API version, device plugins must be upgraded to support both version before the node is upgraded in order to guarantee that device allocations continue to complete successfully during the upgrade. Refer to [API compatibility](/docs/concepts/extend-kubernetes/compute-storage-net/device-plugins/#api-compatibility) and [Kubelet Device Manager API Versions](/docs/reference/node/device-plugin-api-versions/) for more details.
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/cluster-upgrade.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/cluster-upgrade.md
[ 0.05045248195528984, -0.014168365858495235, 0.07347962260246277, -0.014651809819042683, 0.026905611157417297, -0.0039359587244689465, -0.08764907717704773, -0.046148769557476044, 0.029669953510165215, 0.03947894647717476, 0.016909455880522728, -0.037698086351156235, -0.05136679857969284, -0.01523842103779316, 0.07230353355407715, -0.002161221345886588, 0.01583266258239746, 0.02147349901497364, -0.0071410988457500935, 0.016950955614447594, 0.028036855161190033, 0.019244011491537094, 0.031071772798895836, -0.0019973749294877052, -0.03066200204193592, -0.08802708238363266, -0.016681523993611336, -0.008903708308935165, 0.00022396120766643435, -0.046133484691381454, -0.07681421935558319, 0.047403734177351, 0.0073402016423642635, 0.01665542833507061, 0.06587416678667068, 0.028305882588028908, 0.03554108366370201, -0.05691487714648247, -0.06705448031425476, -0.024024376645684242, 0.06001725047826767, -0.061422523111104965, -0.043439578264951706, -0.025028511881828308, -0.04219669848680496, 0.00782373733818531, -0.07754438370466232, -0.02500797063112259, -0.032724130898714066, -0.03412486985325813, 0.07170965522527695, -0.05835144594311714, 0.01923668012022972, 0.0423278845846653, 0.07266741245985031, 0.012238742783665657, -0.029818912968039513, 0.10150380432605743, 0.07487557828426361, 0.052429959177970886, -0.022499442100524902, -0.026895293965935707, 0.03985046222805977, -0.06661757826805115, -0.07516924291849136, -0.019064070656895638, 0.030084053054451942, -0.06716403365135193, -0.016722379252314568, -0.03356979042291641, 0.01403708104044199, -0.023840265348553658, -0.0048911962658166885, -0.024238938465714455, -0.016521504148840904, 0.034947991371154785, 0.016394689679145813, 0.07478820532560349, 0.002636800054460764, -0.08388212323188782, -0.011334587819874287, 0.036212194710969925, 0.06382175534963608, 0.005108965560793877, -0.06375858932733536, -0.022330479696393013, -0.05179127678275108, -0.036177266389131546, -0.010711438953876495, 0.0020421012304723263, -0.004215272143483162, -0.018555788323283195, 0.03856784105300903, -0.06202271580696106, -0.009240320883691311, 0.013420267961919308, -0.06944029033184052, 0.011046204715967178, 0.0425308458507061, 0.02126437798142433, 0.03929896652698517, 0.0530162937939167, -0.01885049231350422, -0.014203274622559547, 0.04581452161073685, -0.023776259273290634, -0.05043494701385498, -0.018944093957543373, -0.004700040910393, 0.009787471033632755, 0.07969910651445389, 0.03299703449010849, -0.02988704852759838, 0.0002276629238622263, -0.043064434081315994, -0.009049610234797001, -0.043633103370666504, 0.036581866443157196, 0.014265617355704308, 0.0192241407930851, -0.014654639177024364, -0.07127121835947037, 0.03552627190947533, 0.02325594797730446, -0.08999995142221451, 0.026642415672540665, -0.04870816692709923, 7.988977359004973e-34, 0.0191972553730011, -0.09970004856586456, 0.024531658738851547, 0.01795925758779049, -0.003148784162476659, -0.08182185143232346, -0.019356466829776764, 0.024833278730511665, -0.05783743038773537, -0.0703691691160202, -0.09447439759969711, 0.027433166280388832, -0.061231471598148346, -0.015094945207238197, 0.08829881995916367, -0.05514069274067879, -0.11248927563428879, 0.028659649193286896, 0.07428579777479172, 0.006660203915089369, 0.08377048373222351, -0.029489843174815178, -0.02702474407851696, -0.0027925942558795214, 0.008129917085170746, -0.001345962518826127, 0.05565912649035454, -0.07728565484285355, 0.029980989173054695, 0.00033046992029994726, -0.05075562745332718, -0.010463173501193523, 0.0802878886461258, -0.02649652026593685, -0.14031344652175903, 0.0009247656562365592, -0.03180982917547226, 0.010077903978526592, -0.10087934136390686, -0.03465106338262558, 0.01661105453968048, 0.035237472504377365, -0.024642236530780792, -0.08264626562595367, 0.08988801389932632, 0.00892163347452879, 0.035739317536354065, -0.07728645205497742, 0.09281597286462784, -0.016436293721199036, -0.03201078996062279, -0.01913205347955227, 0.038611046969890594, -0.07291398197412491, 0.05422736331820488, -0.05842859670519829, 0.10803645104169846, -0.04390881955623627, 0.019175946712493896, -0.040517937391996384, 0.03560797870159149, -0.004586478695273399, 0.041703905910253525, 0.0021900292485952377, -0.01234772615134716, 0.07417965680360794, 0.01014900952577591, 0.010246391408145428, -0.06560051441192627, 0.0452992245554924, -0.032243307679891586, 0.07978443801403046, -0.06606783717870712, -0.0038536638021469116, 0.015932632610201836, -0.04105767980217934, 0.013175787404179573, -0.01671222411096096, -0.07097234576940536, 0.01977805234491825, -0.013219556771218777, -0.016530796885490417, -0.052174314856529236, 0.05973121523857117, -0.02494446188211441, -0.09028348326683044, 0.008066259324550629, 0.02018488384783268, 0.03453505411744118, 0.06675152480602264, 0.0596354641020298, -0.02357737347483635, -0.07931715995073318, 0.01853153295814991, -0.09431412070989609, -2.3502409770348567e-33, 0.044368989765644073, 0.012773838825523853, 0.008242960087954998, 0.01397298090159893, -0.03515798971056938, -0.04758242145180702, -0.03557426482439041, 0.05311749503016472, 0.0018696078332141042, -0.046807367354631424, -0.004429431166499853, -0.024434581398963928, 0.049333490431308746, -0.018367595970630646, -0.055768463760614395, -0.0011286494554951787, -0.16231940686702728, -0.0861760675907135, 0.0014111963100731373, 0.04169213026762009, -0.01824262924492359, 0.025898588821291924, 0.12845037877559662, 0.03405696526169777, 0.028720570728182793, -0.003806742839515209, 0.03737858310341835, 0.09967978298664093, -0.035569220781326294, -0.07308301329612732, 0.04975910112261772, -0.11681197583675385, -0.048511605709791183, 0.03584624081850052, 0.022209009155631065, -0.03348173201084137, 0.01779201626777649, -0.008063577115535736, 0.011232885532081127, -0.027911018580198288, -0.028625814244151115, -0.008137287572026253, -0.023201974108815193, -0.0004950083675794303, 0.005646358244121075, 0.007309937383979559, 0.04299553111195564, -0.011150650680065155, 0.0907694473862648, -0.14733019471168518, 0.03782518208026886, 0.08223171532154083, -0.08604788780212402, 0.08096613734960556, -0.0858202874660492, 0.02494489587843418, 0.09002872556447983, 0.08555438369512558, -0.10880906134843826, 0.02426518313586712, 0.024840204045176506, -0.13094866275787354, 0.09205986559391022, -0.004279532935470343, -0.05579680949449539, -0.040333617478609085, 0.030642934143543243, 0.054191600531339645, 0.004833895713090897, 0.1028837338089943, -0.00936609972268343, -0.002833025762811303, 0.02141803875565529, 0.011593634262681007, -0.020615871995687485, -0.015488567762076855, 0.027609212324023247, -0.0037370589561760426, 0.07611820846796036, -0.05107971280813217, -0.07695294171571732, 0.09592624008655548, -0.026201156899333, 0.019766852259635925, 0.0641806498169899, 0.018595177680253983, 0.11921117454767227, 0.05929236114025116, 0.05052712559700012, 0.07616178691387177, -0.017366377636790276, 0.004674307070672512, -0.09766757488250732, 0.09780976176261902, -0.08983694016933441, -4.5846970664342734e-8, 0.07956792414188385, 0.024020681157708168, -0.08429723978042603, 0.06527558714151382, 0.05698069930076599, -0.018222106620669365, 0.017433205619454384, -0.006876240950077772, -0.002862723544239998, 0.021138129755854607, -0.004278184380382299, 0.06877104192972183, -0.020336749032139778, 0.03519706055521965, 0.08726150542497635, 0.017054272815585136, -0.035023029893636703, 0.07772546261548996, 0.041412580758333206, -0.04985032603144646, -0.05942417308688164, -0.023856841027736664, -0.03020595759153366, -0.023923516273498535, 0.01979953423142433, 0.0338541679084301, -0.018204735592007637, 0.04762519523501396, -0.0020243925973773003, -0.032228004187345505, -0.0012194261653348804, 0.034921810030937195, -0.06576883792877197, 0.06381555646657944, 0.05109367147088051, 0.03552185371518135, -0.09566778689622879, 0.12372928112745285, 0.04464530199766159, 0.08840826898813248, 0.010966021567583084, -0.05999472364783287, -0.08747337758541107, 0.032003890722990036, 0.00422239862382412, 0.011387170292437077, 0.023222973570227623, 0.0621722936630249, -0.03300737589597702, 0.10308917611837387, 0.010847209952771664, -0.027422310784459114, -0.03444830700755119, 0.0008594363462179899, -0.0577370785176754, -0.008071066811680794, -0.07092154026031494, -0.037758272141218185, -0.00227955705486238, 0.019054964184761047, 0.0466991625726223, -0.007041404955089092, 0.10558713227510452, 0.023615114390850067 ]
0.09244
This document covers topics related to protecting a cluster from accidental or malicious access and provides recommendations on overall security. ## {{% heading "prerequisites" %}} \* {{< include "task-tutorial-prereqs.md" >}} {{< version-check >}} ## Controlling access to the Kubernetes API As Kubernetes is entirely API-driven, controlling and limiting who can access the cluster and what actions they are allowed to perform is the first line of defense. ### Use Transport Layer Security (TLS) for all API traffic Kubernetes expects that all API communication in the cluster is encrypted by default with TLS, and the majority of installation methods will allow the necessary certificates to be created and distributed to the cluster components. Note that some components and installation methods may enable local ports over HTTP and administrators should familiarize themselves with the settings of each component to identify potentially unsecured traffic. ### API Authentication Choose an authentication mechanism for the API servers to use that matches the common access patterns when you install a cluster. For instance, small, single-user clusters may wish to use a simple certificate or static Bearer token approach. Larger clusters may wish to integrate an existing OIDC or LDAP server that allow users to be subdivided into groups. All API clients must be authenticated, even those that are part of the infrastructure like nodes, proxies, the scheduler, and volume plugins. These clients are typically [service accounts](/docs/reference/access-authn-authz/service-accounts-admin/) or use x509 client certificates, and they are created automatically at cluster startup or are setup as part of the cluster installation. Consult the [authentication reference document](/docs/reference/access-authn-authz/authentication/) for more information. ### API Authorization Once authenticated, every API call is also expected to pass an authorization check. Kubernetes ships an integrated [Role-Based Access Control (RBAC)](/docs/reference/access-authn-authz/rbac/) component that matches an incoming user or group to a set of permissions bundled into roles. These permissions combine verbs (get, create, delete) with resources (pods, services, nodes) and can be namespace-scoped or cluster-scoped. A set of out-of-the-box roles are provided that offer reasonable default separation of responsibility depending on what actions a client might want to perform. It is recommended that you use the [Node](/docs/reference/access-authn-authz/node/) and [RBAC](/docs/reference/access-authn-authz/rbac/) authorizers together, in combination with the [NodeRestriction](/docs/reference/access-authn-authz/admission-controllers/#noderestriction) admission plugin. As with authentication, simple and broad roles may be appropriate for smaller clusters, but as more users interact with the cluster, it may become necessary to separate teams into separate {{< glossary\_tooltip text="namespaces" term\_id="namespace" >}} with more limited roles. With authorization, it is important to understand how updates on one object may cause actions in other places. For instance, a user may not be able to create pods directly, but allowing them to create a deployment, which creates pods on their behalf, will let them create those pods indirectly. Likewise, deleting a node from the API will result in the pods scheduled to that node being terminated and recreated on other nodes. The out-of-the box roles represent a balance between flexibility and common use cases, but more limited roles should be carefully reviewed to prevent accidental escalation. You can make roles specific to your use case if the out-of-box ones don't meet your needs. Consult the [authorization reference section](/docs/reference/access-authn-authz/authorization/) for more information. ## Controlling access to the Kubelet Kubelets expose HTTPS endpoints which grant powerful control over the node and containers. By default Kubelets allow unauthenticated access to this API. Production clusters should enable Kubelet authentication and authorization. Consult the [Kubelet authentication/authorization reference](/docs/reference/access-authn-authz/kubelet-authn-authz/) for more information. ## Controlling the capabilities of a workload or user at runtime Authorization in Kubernetes is intentionally high level, focused on coarse actions on resources. More powerful controls exist as \*\*policies\*\* to limit by
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/securing-a-cluster.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/securing-a-cluster.md
[ -0.002235591411590576, 0.06734972447156906, 0.0591774508357048, -0.015994854271411896, 0.002918334910646081, 0.06001715734601021, 0.02500198222696781, -0.018040848895907402, 0.08349514752626419, 0.03384464979171753, -0.035224102437496185, -0.027536263689398766, 0.039731964468955994, -0.0011979932896792889, 0.006441354285925627, -0.013933663256466389, 0.08462712168693542, -0.02851446531713009, -0.0024866401217877865, -0.1164807453751564, -0.010217801667749882, -0.050257306545972824, -0.02173471450805664, 0.04731501638889313, -0.10181716829538345, -0.03323819488286972, -0.00960657186806202, 0.017422255128622055, -0.011132689192891121, 0.046205323189496994, -0.08158225566148758, -0.06693318486213684, 0.02216384932398796, 0.05385684221982956, -0.08304181694984436, 0.031149638816714287, 0.06620875746011734, 0.007585877552628517, -0.05293622612953186, 0.017369747161865234, 0.007546179462224245, -0.09341547638177872, -0.12617842853069305, -0.04641968384385109, -0.055485017597675323, -0.010297396220266819, -0.011774537153542042, -0.0962628498673439, -0.08094936609268188, -0.02224460430443287, 0.023050988093018532, -0.01687859557569027, 0.03704659268260002, 0.0306076742708683, -0.04522504284977913, -0.04009987786412239, -0.029628654941916466, 0.033817108720541, 0.0658997967839241, -0.010664768517017365, 0.028005586937069893, -0.06748250126838684, 0.01630554161965847, 0.00560494139790535, -0.05287111923098564, 0.012138335965573788, -0.0264364555478096, 0.027951277792453766, 0.08653842657804489, 0.016830317676067352, 0.06280244886875153, 0.003077819012105465, 0.0005747007089667022, -0.017031462863087654, 0.004501632880419493, 0.015861233696341515, -0.07603839039802551, -0.009486917406320572, 0.008822890929877758, -0.02486233040690422, 0.035100892186164856, 0.05968707427382469, 0.045978643000125885, -0.018499234691262245, -0.11170630902051926, 0.05107332393527031, -0.025935577228665352, -0.06378999352455139, 0.09381084144115448, -0.021003475412726402, 0.010263078846037388, -0.05466020107269287, 0.0384545736014843, -0.0626155361533165, 0.12377023696899414, -0.0006147614913061261, -0.057018984109163284, -0.10319230705499649, 0.026416879147291183, -0.028305659070611, 0.03580700606107712, -0.08147981762886047, -0.021741250529885292, -0.01962931454181671, 0.027563156560063362, 0.04032199829816818, -0.028186094015836716, -0.06328202784061432, 0.06833342462778091, 0.11575330793857574, -0.009420457296073437, 0.07353771477937698, -0.028336936607956886, 0.021588167175650597, -0.02094453200697899, 0.0564369298517704, 0.05154493823647499, -0.029624508693814278, 0.03823979198932648, 0.05620153620839119, 0.030138550326228142, -0.046104609966278076, 0.0767967477440834, 0.035137418657541275, 0.03241756930947304, -0.006548618897795677, -0.06974633038043976, 6.475516260035785e-33, 0.04234543815255165, -0.0028625023551285267, 0.0205826573073864, -0.032965775579214096, 0.012135164812207222, -0.07983800023794174, 0.017038894817233086, -0.012738077901303768, -0.027390023693442345, -0.04707145318388939, -0.040770020335912704, 0.05756158381700516, 0.04063541814684868, -0.048677120357751846, 0.07647725194692612, 0.06179124116897583, -0.02830149047076702, 0.03381229564547539, 0.10460568964481354, 0.005249415058642626, -0.001959707122296095, -0.09360409528017044, 0.03313152492046356, 0.038159020245075226, -0.04503481090068817, -0.03108876384794712, 0.010113424621522427, -0.0611819364130497, 0.03358927369117737, 0.04351578652858734, -0.10516244918107986, -0.019254550337791443, 0.025571445003151894, 0.039152029901742935, -0.07360917329788208, 0.10304425656795502, -0.05719896778464317, 0.02273305505514145, 0.001374431187286973, -0.05483856797218323, 0.013525625690817833, -0.005990742240101099, 0.0301036573946476, -0.04650872200727463, 0.10512382537126541, 0.023038474842905998, -0.032806847244501114, -0.03915076330304146, 0.05883442610502243, 0.018421297892928123, -0.05991193652153015, -0.053850315511226654, 0.04880392178893089, -0.04441320151090622, 0.03132876753807068, 0.020607078447937965, 0.10044803470373154, -0.051456425338983536, -0.03848647326231003, 0.040220364928245544, -0.06375252455472946, -0.07277961075305939, -0.03026539832353592, 0.018161999061703682, -0.043821047991514206, -0.03972086310386658, 0.03604722023010254, 0.06287077814340591, -0.04807012155652046, -0.0018759608501568437, -0.0732758417725563, 0.05548200383782387, 0.015326590277254581, 0.013581284321844578, -0.08603180199861526, -0.01790500245988369, 0.006744481157511473, 0.053594231605529785, -0.0063594006933271885, 0.017409298568964005, -0.0018452085787430406, -0.05602964013814926, -0.010908463038504124, 0.09050306677818298, -0.049350861459970474, -0.02481699362397194, 0.01913873478770256, 0.033472441136837006, -0.011269145645201206, 0.03341709449887276, 0.05795816332101822, -0.02591538242995739, 0.025081681087613106, 0.06266479939222336, -0.10588687658309937, -7.195305981190827e-33, 0.05507616326212883, -0.004906271584331989, 0.01518623623996973, -0.009323151782155037, 0.009522843174636364, 0.029928140342235565, -0.0604189857840538, 0.06726299226284027, 0.0064641511999070644, -0.04012861102819443, -0.045535098761320114, -0.04982868209481239, 0.05641129985451698, -0.006965798791497946, -0.07717423141002655, -0.03358052670955658, -0.011668535880744457, 0.06983518600463867, -0.015790259465575218, -0.026050640270113945, -0.04830421879887581, -0.039314694702625275, 0.01477799378335476, 0.015829764306545258, -0.007860604673624039, 0.029993271455168724, -0.06905155628919601, 0.023765243589878082, -0.056104470044374466, 0.04210914671421051, -0.01875145733356476, -0.08666076511144638, 0.04481128603219986, -0.0016808160580694675, -0.018114162608981133, -0.06764780730009079, 0.024248408153653145, 0.029008915647864342, 0.031895384192466736, -0.08123078942298889, 0.03492677956819534, 0.015038267709314823, -0.004837324842810631, -0.044447850435972214, -0.04290737211704254, 0.024555297568440437, 0.050966985523700714, -0.011408640071749687, -0.08328618854284286, -0.07110770791769028, -0.026842007413506508, -0.029313893988728523, -0.007202649023383856, 0.022186513990163803, -0.0740932747721672, 0.07064276188611984, 0.03367696702480316, 0.1251487284898758, 0.0038178691174834967, 0.07659146934747696, 0.07580096274614334, -0.08166922628879547, 0.018019843846559525, 0.08486131578683853, -0.008909300900995731, -0.028569720685482025, -0.026440376415848732, 0.07245534658432007, -0.039419420063495636, 0.08728642016649246, -0.03289436548948288, -0.012936204671859741, 0.021865099668502808, 0.03262409195303917, 0.0012665747199207544, -0.09439406543970108, 0.030451565980911255, -0.02125162072479725, 0.005690265446901321, 0.0047586532309651375, 0.010091861709952354, -0.011750787496566772, -0.10869818925857544, 0.010908645577728748, 0.12747271358966827, 0.0031290140468627214, 0.10473161935806274, -0.04642971605062485, 0.030510688200592995, 0.057577576488256454, -0.07007915526628494, 0.04951935634016991, -0.07201281934976578, 0.09370621293783188, 0.020191622897982597, -5.478810649606203e-8, 0.06979981809854507, -0.005903521087020636, -0.09053429961204529, 0.04325549304485321, -0.005441800691187382, 0.06091620773077011, -0.0229185838252306, 0.0003079315647482872, -0.055593378841876984, 0.04206490516662598, 0.04544158652424812, 0.012194451875984669, -0.06594652682542801, -0.046337004750967026, -0.030857838690280914, 0.0549432598054409, -0.08358262479305267, -0.018746497109532356, -0.020938588306307793, -0.09159563481807709, -0.025487825274467468, -0.03926321119070053, -0.03919725492596626, 0.0048094033263623714, 0.008418341167271137, 0.03746376931667328, 0.05290292948484421, 0.021466374397277832, 0.004081260412931442, 0.0563337542116642, -0.13621923327445984, -0.051181159913539886, -0.06264841556549072, 0.10956646502017975, -0.03847300261259079, 0.09094592928886414, -0.12887759506702423, 0.019844528287649155, 0.052730485796928406, 0.10232044011354446, -0.03724174201488495, 0.027408592402935028, -0.02291042171418667, 0.009702872484922409, 0.028192194178700447, 0.09762244671583176, 0.002345704473555088, 0.041701510548591614, -0.0007457083556801081, 0.04702229052782059, 0.0010456076124683022, -0.0048885652795434, -0.0212226752191782, 0.1150989830493927, -0.04275854304432869, 0.0332113653421402, -0.05083579570055008, -0.03411649167537689, 0.07684588432312012, 0.0037924586795270443, 0.03281591087579727, 0.053793761879205704, 0.06775114685297012, -0.020088890567421913 ]
0.17471
API. Production clusters should enable Kubelet authentication and authorization. Consult the [Kubelet authentication/authorization reference](/docs/reference/access-authn-authz/kubelet-authn-authz/) for more information. ## Controlling the capabilities of a workload or user at runtime Authorization in Kubernetes is intentionally high level, focused on coarse actions on resources. More powerful controls exist as \*\*policies\*\* to limit by use case how those objects act on the cluster, themselves, and other resources. ### Limiting resource usage on a cluster [Resource quota](/docs/concepts/policy/resource-quotas/) limits the number or capacity of resources granted to a namespace. This is most often used to limit the amount of CPU, memory, or persistent disk a namespace can allocate, but can also control how many pods, services, or volumes exist in each namespace. [Limit ranges](/docs/tasks/administer-cluster/manage-resources/memory-default-namespace/) restrict the maximum or minimum size of some of the resources above, to prevent users from requesting unreasonably high or low values for commonly reserved resources like memory, or to provide default limits when none are specified. ### Controlling what privileges containers run with A pod definition contains a [security context](/docs/tasks/configure-pod-container/security-context/) that allows it to request access to run as a specific Linux user on a node (like root), access to run privileged or access the host network, and other controls that would otherwise allow it to run unfettered on a hosting node. You can configure [Pod security admission](/docs/concepts/security/pod-security-admission/) to enforce use of a particular [Pod Security Standard](/docs/concepts/security/pod-security-standards/) in a {{< glossary\_tooltip text="namespace" term\_id="namespace" >}}, or to detect breaches. Generally, most application workloads need limited access to host resources so they can successfully run as a root process (uid 0) without access to host information. However, considering the privileges associated with the root user, you should write application containers to run as a non-root user. Similarly, administrators who wish to prevent client applications from escaping their containers should apply the \*\*Baseline\*\* or \*\*Restricted\*\* Pod Security Standard. ### Preventing containers from loading unwanted kernel modules The Linux kernel automatically loads kernel modules from disk if needed in certain circumstances, such as when a piece of hardware is attached or a filesystem is mounted. Of particular relevance to Kubernetes, even unprivileged processes can cause certain network-protocol-related kernel modules to be loaded, just by creating a socket of the appropriate type. This may allow an attacker to exploit a security hole in a kernel module that the administrator assumed was not in use. To prevent specific modules from being automatically loaded, you can uninstall them from the node, or add rules to block them. On most Linux distributions, you can do that by creating a file such as `/etc/modprobe.d/kubernetes-blacklist.conf` with contents like: ``` # DCCP is unlikely to be needed, has had multiple serious # vulnerabilities, and is not well-maintained. blacklist dccp # SCTP is not used in most Kubernetes clusters, and has also had # vulnerabilities in the past. blacklist sctp ``` To block module loading more generically, you can use a Linux Security Module (such as SELinux) to completely deny the `module\_request` permission to containers, preventing the kernel from loading modules for containers under any circumstances. (Pods would still be able to use modules that had been loaded manually, or modules that were loaded by the kernel on behalf of some more-privileged process.) ### Restricting network access The [network policies](/docs/tasks/administer-cluster/declare-network-policy/) for a namespace allows application authors to restrict which pods in other namespaces may access pods and ports within their namespaces. Many of the supported [Kubernetes networking providers](/docs/concepts/cluster-administration/networking/) now respect network policy. Quota and limit ranges can also be used to control whether users may request node ports or load-balanced services, which on many clusters can control whether those users applications are visible
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/securing-a-cluster.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/securing-a-cluster.md
[ 0.013822834007441998, 0.026214804500341415, -0.0036689857952296734, -0.0058732288889586926, -0.05136287212371826, 0.006047828588634729, 0.004514340311288834, -0.01057590264827013, 0.10306409746408463, 0.03096243180334568, -0.06150190159678459, -0.04930797964334488, 0.009463423863053322, -0.02644788660109043, -0.008731357753276825, 0.005707566160708666, 0.07143305987119675, 0.012560603208839893, -0.08871475607156754, -0.0673588439822197, 0.08621944487094879, -0.038225166499614716, -0.008621483109891415, 0.04846083000302315, -0.05441293120384216, -0.04737157002091408, -0.02339153364300728, -0.037321172654628754, 0.02999216318130493, -0.04223276302218437, -0.05700333043932915, -0.04297177121043205, 0.030394425615668297, 0.04821509122848511, 0.032746877521276474, 0.061985913664102554, 0.00891304761171341, -0.03946448117494583, -0.1061994731426239, 0.00951381679624319, -0.007062241435050964, 0.0036359347868710756, -0.14002199470996857, 0.0021725925616919994, -0.046485353261232376, 0.04722258821129799, -0.03529636561870575, -0.06524243205785751, -0.02976272813975811, 0.0006712308386340737, 0.05974511429667473, -0.02572561986744404, 0.07382864505052567, 0.019168268889188766, 0.035293690860271454, -0.034660160541534424, -0.00480244355276227, -0.016278836876153946, 0.09045331925153732, 0.005673727951943874, 0.01885046251118183, -0.07143518328666687, 0.014443786814808846, -0.02655719593167305, -0.015059378929436207, 0.0028203052934259176, -0.0018669046694412827, 0.022504907101392746, -0.01748068816959858, -0.011872848495841026, 0.05898647382855415, -0.012500761076807976, -0.08293471485376358, 0.00025458470918238163, 0.015469265170395374, -0.023050863295793533, -0.09575588256120682, 0.009879634715616703, 0.04121272638440132, -0.10789825022220612, -0.00012957875151187181, 0.0635349228978157, 0.05992068350315094, -0.03225700929760933, -0.09768096357584, 0.026985153555870056, -0.04336704686284065, 0.02492634765803814, 0.06613428145647049, 0.0031456532888114452, 0.04349668323993683, -0.0032378381583839655, 0.030709849670529366, -0.08072676509618759, 0.0700339749455452, -0.010342746041715145, -0.053709376603364944, -0.02609889954328537, 0.003716395702213049, -0.02163691259920597, 0.022612180560827255, 0.004945006221532822, 0.006831541657447815, 0.006744492799043655, 0.02888212911784649, -0.04297085851430893, -0.010798958130180836, -0.0010388947557657957, 0.027665631845593452, 0.06987222284078598, 0.012065782211720943, 0.06762570142745972, -0.037169381976127625, 0.030696241185069084, 0.021672118455171585, 0.046809811145067215, 0.04506983235478401, -0.053583838045597076, 0.04331878200173378, 0.06654120981693268, 0.052212316542863846, -0.0735926702618599, 0.01415526308119297, 0.0005554657545872033, -0.02171860821545124, 0.0009772179182618856, -0.09823783487081528, 4.459392470819878e-33, 0.020397135987877846, -0.048203494399785995, 0.038472872227430344, -0.03259265422821045, 0.0026692738756537437, -0.09907621145248413, -0.0636192038655281, -0.015433856286108494, -0.093678317964077, -0.09266055375337601, -0.03634268045425415, 0.07926824688911438, 0.03725675493478775, -0.03542369231581688, 0.09486877918243408, 0.011786764487624168, 0.011873812414705753, 0.08660555630922318, 0.14570456743240356, 0.049595627933740616, 0.03678473085165024, -0.07579278200864792, -0.028639528900384903, 0.10155753791332245, 0.005116082727909088, -0.04602283984422684, 0.026312466710805893, -0.04646522179245949, 0.02650420367717743, 0.02541707083582878, -0.03247996047139168, 0.022170796990394592, 0.00801823753863573, 0.027257494628429413, -0.09770611673593521, 0.05313894525170326, -0.06500856578350067, 0.022385792806744576, -0.027785250917077065, -0.03654401749372482, -0.024623000994324684, -0.00194329465739429, 0.004589852876961231, -0.04848993569612503, -0.012547147460281849, -0.01597650721669197, 0.042988456785678864, -0.05410069227218628, 0.0021720214281231165, 0.0955095887184143, -0.026454154402017593, -0.0031062019988894463, 0.05597492679953575, 0.028006892651319504, 0.07431180030107498, -0.0038746814243495464, 0.07701119035482407, -0.06378542631864548, -0.03591054305434227, 0.02515435963869095, -0.0506909005343914, -0.0608164481818676, 0.004412961192429066, 0.10355968028306961, 0.00828484445810318, 0.001465263543650508, -0.016535505652427673, 0.09783395379781723, -0.025706075131893158, 0.03288469463586807, -0.07084529846906662, -0.008510462008416653, 0.003994660452008247, 0.030213497579097748, -0.0897052139043808, -0.050729814916849136, 0.043880902230739594, 0.03741321712732315, -0.17026245594024658, 0.04654828459024429, 0.0031833024695515633, -0.05265028774738312, -0.014341314323246479, 0.025030767545104027, -0.059316765516996384, -0.05878385528922081, 0.00414330093190074, 0.05860545486211777, -0.046664461493492126, 0.0037076319567859173, 0.04861457273364067, -0.036872293800115585, -0.04024183377623558, 0.05606710538268089, -0.12368949502706528, -4.9933501267633475e-33, 0.10411720722913742, -0.004883578047156334, 0.01699596643447876, -0.012354282662272453, 0.03749383985996246, 0.05919904634356499, -0.045226577669382095, 0.09527315944433212, -0.04414907097816467, -0.08313696086406708, -0.034144386649131775, -0.05164433643221855, 0.056431666016578674, 0.014136693440377712, -0.08190323412418365, -0.026830468326807022, -0.024620575830340385, 0.039066437631845474, -0.0014070604229345918, -0.0059789265505969524, -0.06550440937280655, -0.020181389525532722, 0.04794326424598694, -0.007522827014327049, -0.00490561593323946, 0.04525342583656311, -0.1022399440407753, 0.013067794032394886, -0.03938794508576393, -0.022556746378540993, -0.00602137902751565, -0.11540668457746506, -0.042531486600637436, 0.00047370983520522714, -0.00261008832603693, -0.09952620416879654, 0.00843328982591629, 0.1284712702035904, 0.00018793420167639852, 0.0015042107552289963, 0.06385599076747894, 0.023640336468815804, 0.030428968369960785, -0.018674880266189575, -0.02458990179002285, 0.014893813990056515, -0.020839102566242218, -0.09767705947160721, -0.03360261768102646, -0.10523344576358795, 0.023631833493709564, -0.03419299051165581, 0.030817855149507523, 0.07400177419185638, -0.033368781208992004, 0.02755521424114704, 0.06963597238063812, 0.07831960171461105, 0.027087217196822166, -0.009650145657360554, 0.05947733670473099, -0.08274958282709122, 0.0048418776132166386, 0.10164926946163177, -0.048258498311042786, -0.06333852559328079, 0.022887172177433968, 0.07431451231241226, -0.02227645367383957, 0.0847112238407135, -0.013214540667831898, -0.012815140187740326, 0.051401764154434204, 0.09414767473936081, -0.06942688673734665, -0.0252517219632864, 0.029208267107605934, -0.09457778930664062, 0.01569494605064392, 0.03716961666941643, -0.037884797900915146, 0.04160107299685478, -0.02863469533622265, 0.03723403438925743, 0.06272582709789276, 0.010373474098742008, 0.03660637512803078, 0.024210037663578987, 0.04711964726448059, 0.07989822328090668, -0.05390066280961037, -0.0030794295016676188, -0.0691138356924057, 0.08112816512584686, -0.06405986845493317, -5.0259508554972854e-8, 0.09344420582056046, -0.03771805018186569, -0.003526671789586544, 0.015275517478585243, 0.028799982741475105, -0.05091587454080582, 0.020018165931105614, 0.019838033244013786, -0.0202315766364336, 0.06751648336648941, 0.06410005688667297, 0.05931728705763817, -0.042404405772686005, -0.034348662942647934, 0.014691210351884365, 0.01557545829564333, 0.00044691425864584744, 0.001133285230025649, 0.027210693806409836, -0.058208346366882324, -0.09375471621751785, -0.04849867895245552, -0.0387318916618824, -0.00522260507568717, 0.022715091705322266, 0.04087148979306221, 0.07109048962593079, 0.0685744658112526, 0.00855478085577488, -0.014876801520586014, -0.039626896381378174, 0.01688164472579956, -0.06761613488197327, 0.010670933872461319, -0.03477548062801361, 0.03297918289899826, -0.16703464090824127, 0.004985221661627293, 0.017169808968901634, 0.08090252429246902, -0.024496685713529587, -0.015239885076880455, 0.038930296897888184, 0.026379236951470375, 0.05600128695368767, 0.0954694151878357, -0.05046865716576576, 0.07456449419260025, 0.018239930272102356, -0.011723094619810581, -0.011677689850330353, 0.0023734893184155226, -0.014549274928867817, 0.12638317048549652, -0.06510601937770844, 0.04312071576714516, -0.022492319345474243, -0.009986083023250103, 0.04602709040045738, -0.0196080319583416, 0.056646376848220825, 0.050565265119075775, 0.023151220753788948, -0.00465846061706543 ]
0.237202
may access pods and ports within their namespaces. Many of the supported [Kubernetes networking providers](/docs/concepts/cluster-administration/networking/) now respect network policy. Quota and limit ranges can also be used to control whether users may request node ports or load-balanced services, which on many clusters can control whether those users applications are visible outside of the cluster. Additional protections may be available that control network rules on a per-plugin or per- environment basis, such as per-node firewalls, physically separating cluster nodes to prevent cross talk, or advanced networking policy. ### Restricting cloud metadata API access Cloud platforms (AWS, Azure, GCE, etc.) often expose metadata services locally to instances. By default these APIs are accessible by pods running on an instance and can contain cloud credentials for that node, or provisioning data such as kubelet credentials. These credentials can be used to escalate within the cluster or to other cloud services under the same account. When running Kubernetes on a cloud platform, limit permissions given to instance credentials, use [network policies](/docs/tasks/administer-cluster/declare-network-policy/) to restrict pod access to the metadata API, and avoid using provisioning data to deliver secrets. ### Controlling which nodes pods may access By default, there are no restrictions on which nodes may run a pod. Kubernetes offers a [rich set of policies for controlling placement of pods onto nodes](/docs/concepts/scheduling-eviction/assign-pod-node/) and the [taint-based pod placement and eviction](/docs/concepts/scheduling-eviction/taint-and-toleration/) that are available to end users. For many clusters use of these policies to separate workloads can be a convention that authors adopt or enforce via tooling. As an administrator, a beta admission plugin `PodNodeSelector` can be used to force pods within a namespace to default or require a specific node selector, and if end users cannot alter namespaces, this can strongly limit the placement of all of the pods in a specific workload. ## Protecting cluster components from compromise This section describes some common patterns for protecting clusters from compromise. ### Restrict access to etcd Write access to the etcd backend for the API is equivalent to gaining root on the entire cluster, and read access can be used to escalate fairly quickly. Administrators should always use strong credentials from the API servers to their etcd server, such as mutual auth via TLS client certificates, and it is often recommended to isolate the etcd servers behind a firewall that only the API servers may access. {{< caution >}} Allowing other components within the cluster to access the master etcd instance with read or write access to the full keyspace is equivalent to granting cluster-admin access. Using separate etcd instances for non-master components or using etcd ACLs to restrict read and write access to a subset of the keyspace is strongly recommended. {{< /caution >}} ### Enable audit logging The [audit logger](/docs/tasks/debug/debug-cluster/audit/) is a beta feature that records actions taken by the API for later analysis in the event of a compromise. It is recommended to enable audit logging and archive the audit file on a secure server. ### Restrict access to alpha or beta features Alpha and beta Kubernetes features are in active development and may have limitations or bugs that result in security vulnerabilities. Always assess the value an alpha or beta feature may provide against the possible risk to your security posture. When in doubt, disable features you do not use. ### Rotate infrastructure credentials frequently The shorter the lifetime of a secret or credential the harder it is for an attacker to make use of that credential. Set short lifetimes on certificates and automate their rotation. Use an authentication provider that can control how long issued tokens are available and use short
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/securing-a-cluster.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/securing-a-cluster.md
[ 0.04246020317077637, -0.010716832242906094, 0.009350698441267014, -0.07082238048315048, 0.0015320433303713799, 0.010911346413195133, 0.014758630655705929, -0.031220391392707825, 0.11007875204086304, 0.059990350157022476, -0.0394519604742527, -0.02664710208773613, 0.006299847736954689, -0.03527412191033363, 0.06886454671621323, -0.007110160309821367, 0.09606293588876724, -0.03934180736541748, -0.05166597664356232, -0.03564852476119995, 0.027754036709666252, -0.005604631267488003, -0.04491475597023964, 0.03526792675256729, -0.08726219087839127, 0.0115304971113801, -0.05412457138299942, -0.0034161393996328115, 0.016246387735009193, 0.03903386741876602, -0.05661937966942787, -0.08502171188592911, -0.010853885672986507, 0.04813427850604057, 0.0020929169841110706, 0.02518157660961151, 0.0052210367284715176, -0.0439402237534523, -0.11793781071901321, 0.036503151059150696, 0.01950939930975437, -0.04863419011235237, -0.10188903659582138, -0.015754034742712975, -0.021353812888264656, 0.002859443658962846, -0.005893430206924677, -0.08912643045186996, -0.019632382318377495, -0.002436914248391986, 0.008045199327170849, -0.03831319138407707, 0.04322698339819908, 0.07439389824867249, 0.01065252348780632, -0.05499275401234627, 0.005717247724533081, 0.05477844551205635, 0.10928626358509064, 0.007749342359602451, -0.008362136781215668, -0.12921060621738434, 0.02914188802242279, -0.0036787407007068396, -0.04089772701263428, 0.008990272879600525, -0.03740034997463226, 0.023176398128271103, 0.003978868015110493, -0.017820166423916817, 0.1004929319024086, 0.026725562289357185, -0.06926065683364868, -0.020170783624053, 0.026136012747883797, 0.0679735466837883, -0.044803086668252945, 0.030085310339927673, 0.07161769270896912, -0.06898166239261627, 0.03526981920003891, 0.09090501070022583, 0.06256747245788574, 0.007489227224141359, -0.15243321657180786, -0.016797110438346863, -0.04104018956422806, -0.02052181214094162, 0.05077572911977768, -0.0034530949778854847, 0.015936873853206635, -0.02717728726565838, 0.029899973422288895, -0.053609009832143784, 0.030884703621268272, -0.06079844757914543, -0.030160386115312576, -0.031428012996912, 0.003939636517316103, -0.011082160286605358, 0.029746204614639282, -0.007880955934524536, -0.04881289601325989, 0.019905928522348404, 0.05239464342594147, -0.02979391999542713, -0.031704675406217575, -0.04673553258180618, 0.04338234290480614, 0.10981881618499756, -0.02859104797244072, 0.066485196352005, -0.04971768334507942, 0.044144973158836365, 0.021724823862314224, 0.024166105315089226, 0.012484710663557053, -0.05789710953831673, 0.02326885797083378, 0.057349056005477905, -0.018901316449046135, -0.09697776287794113, 0.06843867152929306, -0.013992681168019772, -0.008506586775183678, 0.046196501702070236, -0.09506440162658691, 2.9302594607603362e-33, 0.02846454083919525, -0.07767978310585022, 0.05031178891658783, -0.07849499583244324, 0.07909940928220749, -0.05612925440073013, -0.03080442175269127, -0.024373915046453476, -0.044229213148355484, -0.03995356336236, -0.04797139763832092, 0.10232693701982498, 0.038396064192056656, -0.0593729093670845, 0.10662084817886353, 0.07197979092597961, -0.03406209498643875, 0.03699604421854019, 0.11853446066379547, 0.02307940647006035, 0.017771359533071518, -0.13595616817474365, 0.01868334598839283, 0.049093689769506454, -0.005372072570025921, -0.05850500613451004, -0.013410618528723717, -0.0974612608551979, 0.07384735345840454, 0.040731318295001984, -0.046515557914972305, 0.03150537610054016, 0.07018068432807922, 0.05639468505978584, -0.0754246935248375, 0.024884089827537537, -0.04470070078969002, 0.03384909778833389, -0.04833272844552994, 0.021088946610689163, 0.014892658218741417, -0.05763410031795502, 0.033566638827323914, -0.03992325812578201, -0.011900272220373154, -0.02824549563229084, 0.02858159691095352, -0.09056907147169113, -0.010636379942297935, 0.09751281887292862, -0.06589005142450333, -0.04780595749616623, -0.012839455157518387, -0.0040627955459058285, 0.09103308618068695, 0.031515177339315414, 0.03178530931472778, -0.03368956223130226, -0.06677711755037308, -0.016670167446136475, -0.053441371768713, -0.04327280819416046, 0.04114926606416702, 0.0797409787774086, -0.033835042268037796, 0.017091944813728333, -0.009645906277000904, 0.08840437233448029, 0.00093356694560498, 0.03449897840619087, -0.06476926058530807, 0.033344823867082596, 0.008773105219006538, 0.005384284071624279, -0.07225313037633896, -0.038342371582984924, 0.004135011695325375, 0.0331864170730114, -0.08941032737493515, 0.061359792947769165, -0.0204475000500679, -0.01660984568297863, -0.03679504618048668, 0.09045221656560898, -0.10259777307510376, -0.03818326070904732, -0.01471359096467495, 0.02951820380985737, -0.03950124979019165, 0.04316231980919838, 0.04275289550423622, -0.04046870023012161, 0.0007419890025630593, 0.010003465227782726, -0.1524396538734436, -5.964097973585363e-33, 0.037433452904224396, -0.0165837574750185, 0.00031838376889936626, -0.04721418395638466, 0.038444649428129196, 0.03650151193141937, -0.002436811802908778, 0.058448854833841324, -0.0370870940387249, -0.03001972660422325, -0.050271254032850266, -0.0030115563422441483, 0.042889900505542755, 0.02023385651409626, -0.08149030804634094, -0.043088335543870926, -0.0336458794772625, -0.024234505370259285, 0.0026123574934899807, -0.011454613879323006, -0.07524619251489639, -0.052089542150497437, 0.07359802722930908, 0.025635598227381706, -0.017946645617485046, -0.00212244875729084, -0.06366956233978271, -0.04276677221059799, -0.005097107496112585, -0.03546766936779022, -0.026603680104017258, -0.0462995320558548, -0.0458570271730423, -0.007132089231163263, -0.0030372324399650097, -0.07097502797842026, -0.023999013006687164, 0.07602863758802414, 0.0010225179139524698, -0.0023118655662983656, 0.009476258419454098, -0.01259139645844698, 0.002679660450667143, -0.02821977436542511, -0.055309854447841644, 0.0397016741335392, -0.01743367500603199, -0.023239150643348694, -0.06036573275923729, -0.09193155169487, -0.02206026390194893, 0.0020885197445750237, -0.008000737987458706, 0.13969919085502625, -0.06431856006383896, 0.06133369728922844, 0.027745945379137993, 0.0831361636519432, -0.007165316957980394, 0.050687212496995926, 0.12965843081474304, -0.11328397691249847, -0.062247924506664276, 0.06272196024656296, -0.03198326379060745, -0.013738514855504036, -0.02198563516139984, 0.02983587421476841, -0.017613621428608894, 0.07612909376621246, 0.017791150137782097, -0.06402848660945892, 0.06101740896701813, 0.049157775938510895, -0.023295607417821884, -0.0028330108616501093, -0.002036224352195859, -0.10405706614255905, -0.018535247072577477, 0.03368397057056427, -0.00725440913811326, 0.09877292811870575, -0.08017069101333618, -0.020291965454816818, 0.06597553938627243, -0.008463452570140362, 0.07155594229698181, 0.012121758423745632, 0.009733482263982296, 0.056347500532865524, -0.05020079389214516, -0.016052868217229843, -0.09799234569072723, 0.07543135434389114, -0.06217576190829277, -4.973541933850356e-8, 0.06455343961715698, 0.014371391385793686, -0.0019461397314444184, 0.04333776235580444, -0.02657770924270153, 0.017919810488820076, 0.039826422929763794, -0.008419102057814598, -0.019629372283816338, 0.06399781256914139, 0.033669959753751755, 0.04106386378407478, -0.06399233639240265, -0.00547274574637413, 0.020328190177679062, 0.01624106988310814, 0.040435727685689926, -0.041914839297533035, 0.04018295928835869, -0.04498988017439842, -0.10359565913677216, -0.060180120170116425, -0.04137502238154411, 0.005784622859209776, -0.02032840996980667, 0.06921438872814178, 0.04098625108599663, 0.01969735696911812, 0.012077131308615208, 0.05347387120127678, -0.05832459032535553, -0.005285136867314577, -0.03343886882066727, 0.052427150309085846, -0.05144251137971878, 0.011000018566846848, -0.12113863229751587, -0.013137263245880604, -0.009347612038254738, 0.07821930944919586, -0.03824172541499138, -0.03765525668859482, 0.01731923036277294, -0.01133680995553732, 0.0052871908992528915, 0.11252053827047348, 0.039639223366975784, 0.09640012681484222, 0.012857172638177872, 0.06844060122966766, -0.0014658846193924546, -0.04175890237092972, 0.020433425903320312, 0.08418206125497818, 0.008748644962906837, 0.026279527693986893, -0.026558276265859604, -0.049193017184734344, -0.004255945328623056, 0.029788732528686523, -0.02413873001933098, 0.06371896713972092, 0.040684979408979416, -0.00576286343857646 ]
0.142015
infrastructure credentials frequently The shorter the lifetime of a secret or credential the harder it is for an attacker to make use of that credential. Set short lifetimes on certificates and automate their rotation. Use an authentication provider that can control how long issued tokens are available and use short lifetimes where possible. If you use service-account tokens in external integrations, plan to rotate those tokens frequently. For example, once the bootstrap phase is complete, a bootstrap token used for setting up nodes should be revoked or its authorization removed. ### Review third party integrations before enabling them Many third party integrations to Kubernetes may alter the security profile of your cluster. When enabling an integration, always review the permissions that an extension requests before granting it access. For example, many security integrations may request access to view all secrets on your cluster which is effectively making that component a cluster admin. When in doubt, restrict the integration to functioning in a single namespace if possible. Components that create pods may also be unexpectedly powerful if they can do so inside namespaces like the `kube-system` namespace, because those pods can gain access to service account secrets or run with elevated permissions if those service accounts are granted access to permissive [PodSecurityPolicies](/docs/concepts/security/pod-security-policy/). If you use [Pod Security admission](/docs/concepts/security/pod-security-admission/) and allow any component to create Pods within a namespace that permits privileged Pods, those Pods may be able to escape their containers and use this widened access to elevate their privileges. You should not allow untrusted components to create Pods in any system namespace (those with names that start with `kube-`) nor in any namespace where that access grant allows the possibility of privilege escalation. ### Encrypt secrets at rest In general, the etcd database will contain any information accessible via the Kubernetes API and may grant an attacker significant visibility into the state of your cluster. Always encrypt your backups using a well reviewed backup and encryption solution, and consider using full disk encryption where possible. Kubernetes supports optional [encryption at rest](/docs/tasks/administer-cluster/encrypt-data/) for information in the Kubernetes API. This lets you ensure that when Kubernetes stores data for objects (for example, `Secret` or `ConfigMap` objects), the API server writes an encrypted representation of the object. That encryption means that even someone who has access to etcd backup data is unable to view the content of those objects. In Kubernetes {{< skew currentVersion >}} you can also encrypt custom resources; encryption-at-rest for extension APIs defined in CustomResourceDefinitions was added to Kubernetes as part of the v1.26 release. ### Receiving alerts for security updates and reporting vulnerabilities Join the [kubernetes-announce](https://groups.google.com/forum/#!forum/kubernetes-announce) group for emails about security announcements. See the [security reporting](/docs/reference/issues-security/security/) page for more on how to report vulnerabilities. ## What's next - [Security Checklist](/docs/concepts/security/security-checklist/) for additional information on Kubernetes security guidance. - [Seccomp Node Reference](/docs/reference/node/seccomp/)
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/securing-a-cluster.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/securing-a-cluster.md
[ -0.02404441311955452, -0.022897060960531235, 0.04862334206700325, -0.038556262850761414, -0.02492775022983551, -0.0015259720385074615, -0.015001537278294563, 0.01246477011591196, 0.11144554615020752, -0.004910603165626526, -0.031758956611156464, -0.0020322392228990793, 0.06413175910711288, -0.011414386332035065, 0.061282720416784286, 0.006980518810451031, 0.0630214512348175, 0.028710149228572845, -0.06541936844587326, -0.03248225897550583, -0.05593911558389664, -0.09494158625602722, -0.09462796896696091, 0.058857448399066925, -0.04172922670841217, -0.021519910544157028, -0.005562809761613607, -0.015819337218999863, 0.0012704295804724097, -0.01610909216105938, -0.03399920091032982, -0.016348520293831825, -0.022880686447024345, -0.012017915956676006, -0.017277376726269722, 0.027018748223781586, 0.055784549564123154, 0.0023701481986790895, -0.08692046999931335, -0.033088862895965576, 0.043752919882535934, -0.07631851732730865, -0.1046602800488472, -0.0029272944666445255, -0.014451625756919384, -0.0023770625703036785, 0.013313081115484238, -0.08877498656511307, -0.00441916985437274, -0.028685418888926506, 0.06071700528264046, -0.05666752904653549, 0.07284848392009735, 0.05610746517777443, -0.08546175062656403, -0.00014040096721146256, 0.014241400174796581, 0.06826236844062805, 0.11327225714921951, -0.005663991440087557, 0.05241357535123825, -0.021564070135354996, 0.04013626277446747, 0.021842557936906815, -0.021141361445188522, -0.00006429116911021993, 0.041466936469078064, -0.025416823104023933, 0.021741412580013275, 0.04342729225754738, 0.05843315273523331, -0.00155573058873415, -0.05956524610519409, -0.045187242329120636, 0.05202201008796692, 0.06051646173000336, -0.05955682694911957, -0.02527947723865509, 0.05875535309314728, -0.06569836288690567, 0.07680966705083847, 0.12997516989707947, 0.036417946219444275, 0.02410268783569336, -0.04366837441921234, -0.006432350724935532, -0.04682314768433571, -0.031736865639686584, -0.011562216095626354, -0.014461318030953407, 0.026534130796790123, -0.029965147376060486, 0.08351610600948334, -0.12092818319797516, 0.11997522413730621, 0.02665487676858902, -0.036415111273527145, -0.05511629581451416, 0.012860345654189587, -0.0232255682349205, -0.035953354090452194, -0.027324264869093895, -0.009529593400657177, 0.00935039110481739, 0.04512824863195419, -0.01758028380572796, -0.045965615659952164, -0.05548536777496338, 0.09286751598119736, 0.09470615535974503, 0.015005797147750854, 0.020899206399917603, -0.00999265443533659, 0.04907243698835373, 0.009121976792812347, 0.08279094845056534, 0.015128963626921177, -0.03390941396355629, 0.07005332410335541, 0.038352880626916885, 0.026333652436733246, -0.050734203308820724, 0.03247398883104324, -0.008973540738224983, 0.01386898010969162, 0.06592191010713577, -0.05119917169213295, 6.852505379868154e-33, -0.06695972383022308, 0.0005124844610691071, 0.034899383783340454, 0.0030273653101176023, 0.013120565563440323, -0.11639945954084396, -0.006072385236620903, -0.07244899123907089, -0.035287193953990936, -0.050866708159446716, -0.06756694614887238, 0.12389358133077621, 0.05681471526622772, -0.03589679300785065, 0.08890562504529953, 0.0251710694283247, -0.02199026383459568, 0.049512166529893875, 0.1354571133852005, -0.005948727484792471, 0.06781318783760071, -0.09607009589672089, 0.01945434883236885, 0.07600502669811249, 0.059940092265605927, -0.06627125293016434, 0.03112080693244934, -0.02778000570833683, -0.011311907321214676, 0.017743775621056557, -0.02157415822148323, -0.021104760468006134, 0.03606850653886795, 0.04844462126493454, -0.08042076975107193, 0.0072641195729374886, -0.00035833712900057435, -0.023447951301932335, -0.07953926175832748, -0.03338371217250824, -0.03836257755756378, -0.007595659699290991, 0.01123743411153555, -0.018290122970938683, 0.07810980081558228, -0.0494430735707283, 0.09702908992767334, -0.0022044964134693146, 0.055676523596048355, 0.00415179505944252, -0.035642676055431366, 0.004781560506671667, 0.015232503414154053, -0.00930442102253437, 0.032507237046957016, 0.04153772443532944, 0.08241616189479828, -0.1009168028831482, -0.08136063069105148, -0.04355047643184662, -0.09260206669569016, -0.061075128614902496, -0.01377309300005436, 0.06666455417871475, 0.007690735626965761, -0.01068890281021595, 0.032871659845113754, 0.06140844523906708, -0.008368037641048431, -0.019624458625912666, -0.031527720391750336, 0.006302901543676853, -0.10291405767202377, -0.09302360564470291, -0.03929572552442551, -0.0817156583070755, 0.0172843299806118, 0.08908580243587494, -0.0721747949719429, 0.08202112466096878, 0.02770446427166462, -0.05790296941995621, -0.02617816813290119, 0.15160426497459412, 0.04437815770506859, -0.032491352409124374, 0.016236433759331703, -0.012369245290756226, -0.05190826952457428, 0.04321609437465668, 0.08489762991666794, 0.020041201263666153, 0.041662607342004776, 0.08898941427469254, -0.1141897588968277, -7.359720906672401e-33, 0.057109564542770386, -0.0312877893447876, 0.06319039314985275, 0.021076541393995285, 0.01708199828863144, 0.06066673994064331, -0.06459787487983704, 0.030521852895617485, -0.03639776259660721, -0.07327012717723846, -0.026187198236584663, -0.008852487429976463, 0.038111958652734756, -0.040523461997509, -0.033161502331495285, -0.01706046238541603, -0.008219432085752487, -0.008541202172636986, -0.016381504014134407, -0.028514571487903595, 0.02312217652797699, -0.027258554473519325, 0.03159549832344055, -0.006001087371259928, -0.020046599209308624, 0.027417205274105072, -0.10066134482622147, -0.018504073843359947, -0.06743748486042023, 0.015117889270186424, -0.03065747395157814, -0.024914490059018135, -0.010385917499661446, -0.02223975397646427, -0.018411528319120407, -0.05532526969909668, -0.058940187096595764, 0.029415752738714218, -0.01341349445283413, -0.03836163878440857, -0.0011297387536615133, 0.039778102189302444, -0.005350877996534109, -0.0564594566822052, -0.06802813708782196, -0.014039621688425541, 0.001801209757104516, -0.02385213039815426, -0.041263397783041, -0.009330902248620987, -0.04573918879032135, -0.008780342526733875, -0.008748450316488743, 0.07125777006149292, -0.04720744118094444, 0.05758244916796684, 0.01715104468166828, 0.11878353357315063, -0.016854310408234596, 0.02056869864463806, 0.08951513469219208, -0.038113534450531006, 0.016864245757460594, 0.1050163209438324, -0.01854366436600685, 0.0007248070905916393, 0.02020947076380253, 0.031235937029123306, -0.03916330263018608, 0.03444045037031174, 0.05632433295249939, -0.04459260031580925, -0.011435423046350479, 0.019306112080812454, -0.041611842811107635, -0.05924607813358307, 0.03353973478078842, -0.06726303696632385, -0.028076695278286934, -0.01976916380226612, -0.029806258156895638, -0.000733225024305284, -0.08654480427503586, -0.019640082493424416, 0.00961826927959919, -0.010020089335739613, 0.041950564831495285, 0.033846430480480194, 0.10474509745836258, 0.0825861245393753, -0.026569755747914314, -0.001613555010408163, -0.07952169328927994, 0.11395752429962158, 0.009939750656485558, -6.148219711121783e-8, 0.06083724647760391, 0.02424977906048298, -0.051419008523225784, 0.01107630506157875, -0.020256586372852325, -0.046834658831357956, -0.04620382934808731, 0.03176553547382355, -0.02528262883424759, 0.07079174369573593, 0.054719459265470505, -0.00390394008718431, -0.05122997611761093, -0.03400621935725212, 0.0089079225435853, 0.015062736347317696, 0.014082280918955803, -0.04101896658539772, -0.023021133616566658, -0.09530194848775864, -0.07972396910190582, -0.029732290655374527, -0.018094660714268684, -0.022227926179766655, -0.0420684814453125, 0.07492636889219284, 0.055921345949172974, 0.016002347692847252, 0.029844991862773895, 0.047614023089408875, -0.11778497695922852, 0.01102010253816843, -0.07491731643676758, 0.08444483578205109, -0.0863279402256012, 0.046302780508995056, -0.07949943840503693, -0.004360785707831383, -0.009491375647485256, 0.06259983777999878, -0.05234554782509804, 0.05860571563243866, 0.0020916133653372526, -0.004430834669619799, -0.051284223794937134, 0.06285875290632248, -0.02133694477379322, 0.10938236117362976, 0.024022888392210007, 0.006821898743510246, -0.03910015523433685, -0.038139864802360535, -0.03867194801568985, 0.12511201202869415, 0.019292939454317093, 0.006555050611495972, -0.0288458913564682, -0.008485346101224422, 0.05785767734050751, 0.0337500236928463, -0.0633021891117096, -0.04139159619808197, 0.030120359733700752, -0.0606272891163826 ]
0.141883
All of the APIs in Kubernetes that let you write persistent API resource data support at-rest encryption. For example, you can enable at-rest encryption for {{< glossary\_tooltip text="Secrets" term\_id="secret" >}}. This at-rest encryption is additional to any system-level encryption for the etcd cluster or for the filesystem(s) on hosts where you are running the kube-apiserver. This page shows how to switch from encryption of API data at rest, so that API data are stored unencrypted. You might want to do this to improve performance; usually, though, if it was a good idea to encrypt some data, it's also a good idea to leave them encrypted. {{< note >}} This task covers encryption for resource data stored using the {{< glossary\_tooltip text="Kubernetes API" term\_id="kubernetes-api" >}}. For example, you can encrypt Secret objects, including the key-value data they contain. If you wanted to manage encryption for data in filesystems that are mounted into containers, you instead need to either: - use a storage integration that provides encrypted {{< glossary\_tooltip text="volumes" term\_id="volume" >}} - encrypt the data within your own application {{< /note >}} ## {{% heading "prerequisites" %}} \* {{< include "task-tutorial-prereqs.md" >}} \* This task assumes that you are running the Kubernetes API server as a {{< glossary\_tooltip text="static pod" term\_id="static-pod" >}} on each control plane node. \* Your cluster's control plane \*\*must\*\* use etcd v3.x (major version 3, any minor version). \* To encrypt a custom resource, your cluster must be running Kubernetes v1.26 or newer. \* You should have some API data that are already encrypted. {{< version-check >}} ## Determine whether encryption at rest is already enabled By default, the API server uses an `identity` provider that stores plain-text representations of resources. \*\*The default `identity` provider does not provide any confidentiality protection.\*\* The `kube-apiserver` process accepts an argument `--encryption-provider-config` that specifies a path to a configuration file. The contents of that file, if you specify one, control how Kubernetes API data is encrypted in etcd. If it is not specified, you do not have encryption at rest enabled. The format of that configuration file is YAML, representing a configuration API kind named [`EncryptionConfiguration`](/docs/reference/config-api/apiserver-config.v1/). You can see an example configuration in [Encryption at rest configuration](/docs/tasks/administer-cluster/encrypt-data/#understanding-the-encryption-at-rest-configuration). If `--encryption-provider-config` is set, check which resources (such as `secrets`) are configured for encryption, and what provider is used. Make sure that the preferred provider for that resource type is \*\*not\*\* `identity`; you only set `identity` (\_no encryption\_) as default when you want to disable encryption at rest. Verify that the first-listed provider for a resource is something \*\*other\*\* than `identity`, which means that any new information written to resources of that type will be encrypted as configured. If you do see `identity` as the first-listed provider for any resource, this means that those resources are being written out to etcd without encryption. ## Decrypt all data {#decrypting-all-data} This example shows how to stop encrypting the Secret API at rest. If you are encrypting other API kinds, adjust the steps to match. ### Locate the encryption configuration file First, find the API server configuration files. On each control plane node, static Pod manifest for the kube-apiserver specifies a command line argument, `--encryption-provider-config`. You are likely to find that this file is mounted into the static Pod using a [`hostPath`](/docs/concepts/storage/volumes/#hostpath) volume mount. Once you locate the volume you can find the file on the node filesystem and inspect it. ### Configure the API server to decrypt objects To disable encryption at rest, place the `identity` provider as the first entry in your encryption configuration file. For example, if your existing EncryptionConfiguration file reads: ```yaml ---
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/decrypt-data.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/decrypt-data.md
[ -0.04032835736870766, 0.08601973950862885, 0.025456704199314117, 0.01484718732535839, -0.011492817662656307, 0.008512920700013638, -0.024239206686615944, -0.034966085106134415, 0.11622118204832077, 0.03523928299546242, -0.07850729674100876, -0.021842513233423233, 0.023531928658485413, -0.01131236832588911, 0.04369762912392616, 0.0163382887840271, 0.044315408915281296, 0.034352321177721024, -0.07233037799596786, -0.09404860436916351, 0.0679721012711525, -0.02935619466006756, 0.06448708474636078, -0.009409192018210888, -0.011647483333945274, -0.0029684947803616524, 0.05222295597195625, -0.0068650273606181145, -0.03291189298033714, 0.026501750573515892, -0.019204413518309593, -0.09187055379152298, -0.05152546614408493, 0.050253044813871384, -0.06810872256755829, 0.027672426775097847, 0.03636636212468147, -0.0460348054766655, -0.05764484032988548, 0.04375767335295677, -0.007133414037525654, -0.035810668021440506, -0.15629975497722626, -0.023781584575772285, -0.04630432650446892, 0.014353428967297077, 0.0414302721619606, -0.0542229525744915, -0.03391129896044731, -0.01787923090159893, 0.046297404915094376, -0.03329053148627281, -0.02062598243355751, 0.02686445601284504, -0.06781306862831116, -0.04982822388410568, -0.07858043164014816, 0.04823443666100502, 0.065633125603199, -0.0042107319459319115, 0.07356611639261246, 0.00841322261840105, 0.06213293969631195, 0.0566757470369339, -0.03316061198711395, 0.04925120249390602, 0.0512659065425396, 0.05833934247493744, 0.05594926327466965, -0.005585564766079187, 0.07349971681833267, -0.002699123229831457, -0.011587720364332199, -0.008716913871467113, 0.010472015477716923, -0.03844984620809555, -0.06754212826490402, 0.000245673640165478, 0.024979475885629654, -0.04038837179541588, 0.06673171371221542, 0.013395934365689754, 0.07996442914009094, 0.011446584947407246, -0.09564744681119919, -0.013955177739262581, 0.03524770587682724, -0.022034846246242523, -0.013744114898145199, -0.0382019467651844, 0.047493431717157364, -0.05396062880754471, 0.03685159981250763, -0.06480905413627625, 0.09541992098093033, 0.012663007713854313, -0.036811914294958115, -0.04998902231454849, -0.018021825700998306, -0.08442619442939758, -0.010486305691301823, -0.010638154111802578, -0.019264787435531616, 0.017263172194361687, 0.09151920676231384, 0.009916067123413086, 0.006570145953446627, -0.024596236646175385, -0.053314149379730225, 0.13382746279239655, 0.02580423094332218, 0.10270565748214722, -0.04453495144844055, 0.05185766890645027, 0.0102682551369071, 0.04260930418968201, -0.08705096691846848, -0.020153716206550598, 0.032520048320293427, 0.1325908601284027, 0.038740936666727066, -0.04340352863073349, -0.00967684481292963, 0.09310929477214813, -0.045125726610422134, 0.02495088055729866, -0.014205104671418667, 5.365705962143554e-33, 0.056536830961704254, -0.055701158940792084, 0.02981109917163849, -0.049143388867378235, -0.06338127702474594, -0.07181297242641449, 0.036684174090623856, 0.016732092946767807, -0.031002283096313477, 0.0037362503353506327, -0.05755767971277237, 0.0036355929914861917, 0.015110732987523079, -0.054338596761226654, 0.022878041490912437, 0.04092736542224884, -0.01787707582116127, -0.014966915361583233, 0.10752173513174057, 0.018575921654701233, 0.061910904943943024, -0.007835928350687027, 0.06770768761634827, 0.02974933758378029, 0.02592839114367962, -0.04703531414270401, 0.04177979752421379, -0.05083727464079857, -0.02357609011232853, 0.0018872272921726108, -0.052754420787096024, -0.0846104547381401, 0.04325393959879875, -0.011865191161632538, -0.09478385001420975, 0.03627338632941246, -0.006121632643043995, 0.009388884529471397, -0.013638678938150406, -0.009675667621195316, 0.09134867042303085, -0.0011326546082273126, 0.023264680057764053, -0.09350234270095825, 0.044825050979852676, 0.03448408469557762, -0.00497483741492033, -0.0256528127938509, 0.005459108389914036, 0.08134415745735168, -0.032346103340387344, 0.025588911026716232, -0.05038722604513168, -0.07428575307130814, 0.0143145602196455, -0.012523661367595196, 0.12309642136096954, -0.05818278715014458, -0.07561173290014267, -0.031171416863799095, -0.13035951554775238, -0.09611605107784271, 0.02104589343070984, -0.004852750804275274, -0.02739744819700718, -0.014215346425771713, -0.012843298725783825, 0.008273898623883724, -0.07337045669555664, -0.019419590011239052, -0.07203163206577301, -0.0021528173238039017, 0.06063273549079895, -0.012487499043345451, 0.020738597959280014, -0.0066856760531663895, -0.023712463676929474, 0.02152109704911709, -0.01731892302632332, -0.019592205062508583, 0.08402883261442184, 0.007507327012717724, -0.011054830625653267, 0.07037641853094101, -0.04165606200695038, 0.0033103819005191326, -0.014230526983737946, -0.019574841484427452, -0.02044140174984932, 0.06206529214978218, 0.06172122433781624, -0.016636667773127556, -0.021355198696255684, -0.057400111109018326, -0.07857369631528854, -5.6806980405456176e-33, 0.09627057611942291, -0.05289718136191368, -0.008609938435256481, 0.062202759087085724, 0.040594618767499924, 0.11207157373428345, 0.006486076395958662, 0.0978415384888649, 0.005278586409986019, -0.054528381675481796, -0.04453469440340996, -0.041757941246032715, 0.04610566049814224, 0.006035912781953812, 0.023380441591143608, 0.01910066418349743, -0.07668592780828476, 0.032465800642967224, 0.032947588711977005, -0.003725019982084632, -0.0715096965432167, -0.02244703099131584, 0.01628483645617962, 0.024165937677025795, 0.07927673310041428, 0.00020279682939872146, -0.056623369455337524, 0.04454435408115387, -0.0024727857671678066, -0.03522007167339325, -0.017023274675011635, -0.06018831580877304, 0.013597923330962658, -0.07938364148139954, -0.05859239399433136, -0.09662218391895294, 0.05095839127898216, 0.015815092250704765, -0.04063969478011131, -0.011291151866316795, 0.01813526265323162, -0.027107782661914825, -0.028985118493437767, -0.05194757506251335, -0.012928166426718235, -0.0440177246928215, -0.03283748775720596, -0.04621950164437294, -0.0278673954308033, -0.04496106877923012, 0.0288897305727005, -0.01343688927590847, -0.06362278759479523, -0.0069943866692483425, -0.00720056751742959, 0.027795547619462013, -0.01752348616719246, 0.052053991705179214, -0.06491193175315857, 0.028149252757430077, 0.011428263038396835, -0.02187957987189293, 0.09529659152030945, 0.08716196566820145, 0.00970443245023489, 0.006153712514787912, -0.044766128063201904, -0.019375838339328766, -0.048677947372198105, 0.0696679949760437, -0.004772884305566549, -0.11688955128192902, 0.032746296375989914, 0.047300513833761215, 0.014136414043605328, -0.06220267713069916, 0.050370797514915466, -0.08710578829050064, 0.047377265989780426, 0.058520831167697906, -0.0026450585573911667, -0.009398549795150757, -0.06722919642925262, 0.1078772246837616, 0.07961304485797882, 0.011886557564139366, 0.031834714114665985, 0.016015376895666122, 0.012703635729849339, 0.07393442094326019, -0.05957707390189171, -0.002410653978586197, -0.044544003903865814, 0.1068282201886177, 0.09700392931699753, -4.869098901849611e-8, 0.03286958485841751, 0.05805238336324692, -0.037738531827926636, 0.09365207701921463, -0.03540521487593651, -0.029429472982883453, 0.013019371777772903, -0.024364646524190903, -0.03175375238060951, -0.03242345526814461, 0.060058727860450745, -0.0050004697404801846, -0.042465537786483765, -0.002467820420861244, 0.022450191900134087, 0.03139636665582657, 0.04038269445300102, -0.055425260215997696, 0.023717164993286133, -0.08360080420970917, -0.022539548575878143, 0.00409081531688571, -0.10197228193283081, -0.02301507443189621, 0.1125156506896019, 0.09340610355138779, 0.047521889209747314, 0.037085939198732376, 0.0186587106436491, 0.07908759266138077, -0.13331246376037598, -0.13182179629802704, 0.005808669608086348, 0.06648816913366318, 0.00732287485152483, -0.013332761824131012, -0.07113046199083328, 0.024286586791276932, 0.06422894448041916, 0.07183455675840378, 0.043245673179626465, -0.002288381103426218, -0.030363373458385468, 0.0289597287774086, 0.051299769431352615, 0.07673478126525879, 0.03699159994721413, 0.06749964505434036, -0.06334233283996582, 0.0275675468146801, -0.07543770968914032, -0.043202485889196396, -0.043648283928632736, 0.04592162370681763, -0.06409277766942978, 0.03845435008406639, -0.01968134567141533, -0.03137870132923126, 0.06004822626709938, -0.02770175412297249, 0.003776982892304659, -0.009554647840559483, -0.030667763203382492, -0.04701997712254524 ]
0.018915
the volume you can find the file on the node filesystem and inspect it. ### Configure the API server to decrypt objects To disable encryption at rest, place the `identity` provider as the first entry in your encryption configuration file. For example, if your existing EncryptionConfiguration file reads: ```yaml --- apiVersion: apiserver.config.k8s.io/v1 kind: EncryptionConfiguration resources: - resources: - secrets providers: - aescbc: keys: # Do not use this (invalid) example key for encryption - name: example secret: 2KfZgdiq2K0g2YrYpyDYs9mF2LPZhQ== ``` then change it to: ```yaml --- apiVersion: apiserver.config.k8s.io/v1 kind: EncryptionConfiguration resources: - resources: - secrets providers: - identity: {} # add this line - aescbc: keys: - name: example secret: 2KfZgdiq2K0g2YrYpyDYs9mF2LPZhQ== ``` and restart the kube-apiserver Pod on this node. ### Reconfigure other control plane hosts {#api-server-config-update-more-1} If you have multiple API servers in your cluster, you should deploy the changes in turn to each API server. Make sure that you use the same encryption configuration on each control plane host. ### Force decryption Then run the following command to force decryption of all Secrets: ```shell # If you are decrypting a different kind of object, change "secrets" to match. kubectl get secrets --all-namespaces -o json | kubectl replace -f - ``` Once you have replaced \*\*all\*\* existing encrypted resources with backing data that don't use encryption, you can remove the encryption settings from the `kube-apiserver`. The command line options to remove are: - `--encryption-provider-config` - `--encryption-provider-config-automatic-reload` Restart the kube-apiserver Pod again to apply the new configuration. ### Reconfigure other control plane hosts {#api-server-config-update-more-2} If you have multiple API servers in your cluster, you should again deploy the changes in turn to each API server. Make sure that you use the same encryption configuration on each control plane host. ## {{% heading "whatsnext" %}} \* Learn more about the [EncryptionConfiguration configuration API (v1)](/docs/reference/config-api/apiserver-config.v1/).
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/decrypt-data.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/decrypt-data.md
[ -0.04782826453447342, 0.07563009113073349, -0.0012802563142031431, 0.0044949850998818874, 0.03247463330626488, -0.00706472946330905, -0.043042540550231934, -0.02274700440466404, 0.06816903501749039, 0.04575737938284874, -0.00363327469676733, -0.01689239963889122, 0.023973286151885986, 0.012188243679702282, 0.02690303698182106, -0.03317352011799812, -0.04632105678319931, 0.015835272148251534, -0.01197129487991333, -0.0500670000910759, 0.06747119873762131, -0.023187965154647827, 0.028080148622393608, -0.04724420979619026, 0.007741577923297882, -0.001613473054021597, -0.005496152210980654, 0.09975539147853851, -0.03255213424563408, -0.042082637548446655, 0.016718782484531403, -0.0111533896997571, -0.007403360214084387, 0.06235191226005554, -0.009830249473452568, 0.05925832688808441, 0.05704547092318535, -0.10102030634880066, 0.035379182547330856, 0.012143480591475964, 0.026899877935647964, -0.006715856958180666, -0.12639884650707245, -0.02405090257525444, -0.03922341391444206, 0.0070610130205750465, 0.019196581095457077, -0.04966132715344429, -0.058716531842947006, -0.010822759941220284, 0.01834089867770672, -0.041440483182668686, -0.04534006118774414, 0.011208109557628632, -0.0454438179731369, -0.020024498924613, -0.08416298776865005, 0.08462806791067123, 0.05434124544262886, -0.013526544906198978, 0.06835068762302399, 0.04947829246520996, 0.07058508694171906, 0.001281118718907237, -0.07090484350919724, 0.12459132820367813, 0.008410957641899586, -0.02398713305592537, 0.050235647708177567, -0.011955641210079193, 0.056811027228832245, -0.02498536743223667, -0.018999671563506126, 0.005279102362692356, -0.014271672815084457, -0.0061880056746304035, -0.031206579878926277, 0.002326363231986761, -0.03450659662485123, -0.04784136265516281, 0.023362712934613228, -0.02817286178469658, 0.04673362895846367, 0.08043736964464188, -0.09046908468008041, 0.043990690261125565, -0.029462391510605812, -0.07656674087047577, 0.012985765002667904, 0.024750977754592896, 0.05293526500463486, -0.09962198883295059, -0.02484283223748207, -0.05745023861527443, 0.12954381108283997, 0.022906620055437088, -0.07851452380418777, -0.0012872681254521012, -0.07536587119102478, -0.03020239621400833, -0.0659395083785057, -0.009916421957314014, 0.02255219779908657, -0.030705148354172707, 0.0771440863609314, 0.03808442875742912, -0.0072404989041388035, -0.024564584717154503, -0.08720196783542633, 0.08876783400774002, 0.030761227011680603, 0.05221891775727272, -0.018647976219654083, 0.030604710802435875, 0.03823157399892807, 0.09913507103919983, -0.03708783909678459, 0.06789722293615341, -0.026363376528024673, 0.08002832531929016, 0.055161479860544205, 0.009117440320551395, 0.0009373739012517035, 0.061272867023944855, -0.08574618399143219, 0.011584528721868992, -0.005833945237100124, 8.159781463625251e-33, 0.026023300364613533, -0.027618417516350746, 0.01829700358211994, -0.01192941889166832, 0.015276502817869186, -0.052502840757369995, 0.0801980048418045, 0.0055098081938922405, -0.044264357537031174, 0.004266665782779455, -0.027847813442349434, -0.004953643307089806, -0.01092507317662239, -0.07278089970350266, -0.05439263582229614, 0.006465102545917034, 0.013766533695161343, -0.03805144131183624, 0.039187222719192505, 0.022990761324763298, 0.08192769438028336, 0.016861384734511375, 0.06946149468421936, -0.011798132210969925, -0.030160706490278244, 0.00790916383266449, 0.04002928361296654, -0.06729531288146973, 0.015333498828113079, -0.013012219220399857, -0.0360996387898922, -0.028806528076529503, 0.010365567170083523, -0.00877746194601059, -0.020829416811466217, -0.03451964631676674, 0.015305222943425179, 0.02364118956029415, -0.10823546350002289, -0.021210411563515663, 0.0779304951429367, 0.029053835198283195, -0.005169926676899195, -0.025164440274238586, -0.009760734625160694, -0.00422658259049058, -0.026393642649054527, -0.052274592220783234, 0.1252555102109909, 0.0025736181996762753, -0.0608973391354084, 0.004436668008565903, -0.049047164618968964, -0.09702319651842117, 0.056867167353630066, -0.05206361413002014, 0.0783422663807869, -0.009388688020408154, -0.0811886116862297, -0.0826515257358551, -0.033965643495321274, -0.08359257131814957, 0.010769346728920937, -0.028896847739815712, 0.023510782048106194, -0.0047678276896476746, -0.10657992213964462, -0.03552153334021568, -0.06365753710269928, 0.028594037517905235, -0.08588831126689911, 0.006682866252958775, 0.055850934237241745, 0.026502463966608047, -0.0011233207769691944, -0.07540496438741684, -0.05476735159754753, 0.02373000606894493, -0.01524200290441513, -0.0060010128654539585, 0.0296877883374691, 0.05215201899409294, 0.026151662692427635, 0.06996902823448181, -0.0344349667429924, -0.028530608862638474, 0.032506123185157776, 0.029052359983325005, 0.029094655066728592, -0.00792453158646822, 0.03906602784991264, 0.007007802836596966, -0.01043003797531128, -0.1127152070403099, -0.08696401864290237, -9.35151379953621e-33, 0.024086572229862213, -0.08262550830841064, -0.018044665455818176, 0.012712606228888035, 0.01678318716585636, 0.05754140764474869, 0.020796818658709526, 0.09632399678230286, 0.05160948261618614, 0.05909696966409683, 0.028513483703136444, -0.03638560324907303, 0.12336934357881546, -0.06337948888540268, 0.05770372971892357, 0.01962573640048504, -0.07549014687538147, 0.029695143923163414, 0.053565818816423416, 0.016529817134141922, -0.03996511921286583, 0.023882383480668068, 0.06013348326086998, 0.04097394272685051, 0.08149012178182602, -0.030873140320181847, -0.01910248026251793, 0.11848849803209305, -0.018579022958874702, -0.07437091320753098, 0.018101919442415237, -0.022477593272924423, -0.039597492665052414, -0.053105615079402924, -0.0871867910027504, -0.08711110800504684, -0.03876914829015732, 0.032112110406160355, -0.07971308380365372, -0.06715401262044907, 0.015033582225441933, -0.06752348691225052, -0.07556997239589691, -0.0015979243908077478, 0.006312557961791754, -0.035105787217617035, 0.08605442196130753, -0.0012840403942391276, -0.03723505139350891, -0.049789994955062866, 0.02248157374560833, 0.01929081790149212, -0.06024237722158432, 0.0321420319378376, 0.027415046468377113, 0.04718482494354248, 0.030166883021593094, 0.057207249104976654, -0.017298510298132896, -0.00019112564041279256, 0.06847521662712097, -0.006521828472614288, 0.03542870283126831, 0.05222534015774727, 0.027538074180483818, -0.037807438522577286, -0.05938214808702469, -0.0038755128625780344, 0.02187388390302658, 0.0458371676504612, -0.002741188043728471, -0.06581579148769379, 0.009178363718092442, -0.016513988375663757, 0.08499816060066223, -0.067030169069767, -0.0607093945145607, -0.045128386467695236, 0.0261954665184021, 0.019116941839456558, -0.034833960235118866, -0.000994794419966638, -0.09332215040922165, 0.11396663635969162, 0.11979176104068756, -0.01846294105052948, 0.06561477482318878, 0.11163059622049332, -0.02259127050638199, 0.11212312430143356, -0.08094748854637146, -0.06291450560092926, -0.08974503725767136, 0.1005438044667244, 0.08949289470911026, -4.8309111377875524e-8, -0.025387268513441086, -0.003866643412038684, -0.07167910039424896, 0.043891243636608124, 0.042384084314107895, 0.005918221548199654, 0.013166388496756554, 0.018657460808753967, -0.08423055708408356, -0.06977996230125427, 0.032602038234472275, 0.028926633298397064, -0.02317745052278042, 0.006150964181870222, -0.029470572248101234, -0.004119824152439833, -0.016574617475271225, 0.04830337315797806, 0.01133918110281229, -0.11036380380392075, -0.01594906486570835, -0.031497854739427567, -0.07830658555030823, -0.024289000779390335, 0.073204405605793, 0.1300363540649414, 0.021436231210827827, 0.006497869733721018, -0.026691392064094543, 0.027418609708547592, -0.09488514065742493, -0.09817755222320557, 0.05556858703494072, -0.03691554814577103, -0.062326427549123764, 0.046256761997938156, -0.046492449939250946, 0.043090857565402985, 0.032073188573122025, 0.03350770100951195, -0.0014159911079332232, 0.00954135600477457, -0.02180321514606476, 0.04582659527659416, -0.0020288110245019197, 0.04767167940735817, 0.08868622034788132, 0.08515459299087524, -0.01915915496647358, 0.05208183825016022, -0.02046758495271206, -0.0785229429602623, -0.050366248935461044, 0.01108196098357439, -0.053503941744565964, 0.028667090460658073, -0.022086376324295998, -0.06947469711303711, -0.018237615004181862, 0.002582008484750986, 0.027329176664352417, -0.03485611826181412, 0.05529269576072693, -0.08690944314002991 ]
-0.003178
This example demonstrates how to limit the amount of storage consumed in a namespace. The following resources are used in the demonstration: [ResourceQuota](/docs/concepts/policy/resource-quotas/), [LimitRange](/docs/tasks/administer-cluster/manage-resources/memory-default-namespace/), and [PersistentVolumeClaim](/docs/concepts/storage/persistent-volumes/). ## {{% heading "prerequisites" %}} \* {{< include "task-tutorial-prereqs.md" >}} {{< version-check >}} ## Scenario: Limiting Storage Consumption The cluster-admin is operating a cluster on behalf of a user population and the admin wants to control how much storage a single namespace can consume in order to control cost. The admin would like to limit: 1. The number of persistent volume claims in a namespace 2. The amount of storage each claim can request 3. The amount of cumulative storage the namespace can have ## LimitRange to limit requests for storage Adding a `LimitRange` to a namespace enforces storage request sizes to a minimum and maximum. Storage is requested via `PersistentVolumeClaim`. The admission controller that enforces limit ranges will reject any PVC that is above or below the values set by the admin. In this example, a PVC requesting 10Gi of storage would be rejected because it exceeds the 2Gi max. ```yaml apiVersion: v1 kind: LimitRange metadata: name: storagelimits spec: limits: - type: PersistentVolumeClaim max: storage: 2Gi min: storage: 1Gi ``` Minimum storage requests are used when the underlying storage provider requires certain minimums. For example, AWS EBS volumes have a 1Gi minimum requirement. ## ResourceQuota to limit PVC count and cumulative storage capacity Admins can limit the number of PVCs in a namespace as well as the cumulative capacity of those PVCs. New PVCs that exceed either maximum value will be rejected. In this example, a 6th PVC in the namespace would be rejected because it exceeds the maximum count of 5. Alternatively, a 5Gi maximum quota when combined with the 2Gi max limit above, cannot have 3 PVCs where each has 2Gi. That would be 6Gi requested for a namespace capped at 5Gi. ```yaml apiVersion: v1 kind: ResourceQuota metadata: name: storagequota spec: hard: persistentvolumeclaims: "5" requests.storage: "5Gi" ``` ## Summary A limit range can put a ceiling on how much storage is requested while a resource quota can effectively cap the storage consumed by a namespace through claim counts and cumulative storage capacity. The allows a cluster-admin to plan their cluster's storage budget without risk of any one project going over their allotment.
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/limit-storage-consumption.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/limit-storage-consumption.md
[ -0.07293333113193512, 0.027497518807649612, -0.047356341034173965, 0.03375834599137306, -0.006502008065581322, -0.04280872642993927, 0.07252830266952515, 0.004156145267188549, -0.007742965128272772, 0.09302414208650589, -0.04077880457043648, -0.040067389607429504, 0.12150629609823227, 0.04109029844403267, -0.015755554661154747, 0.04421639069914818, 0.037530697882175446, -0.04460575804114342, -0.05174699425697327, 0.015075542032718658, 0.16111961007118225, 0.02309403568506241, -0.003573658410459757, 0.031839411705732346, -0.008300449699163437, -0.041805390268564224, -0.08430469036102295, -0.01032148115336895, 0.025330880656838417, -0.04427602142095566, 0.08039998263120651, 0.005850769113749266, -0.01932751014828682, -0.016323687508702278, 0.115081287920475, 0.05391666293144226, -0.05709144100546837, -0.05489646643400192, -0.05478697642683983, -0.0176704004406929, 0.013404535129666328, 0.09583883732557297, -0.031959909945726395, -0.007974060252308846, -0.08797216415405273, 0.02017674408853054, -0.03223318234086037, -0.01227935403585434, -0.03563055768609047, 0.0008536505629308522, -0.03671674057841301, -0.06457807868719101, 0.036500006914138794, -0.020818185061216354, 0.004560309462249279, -0.003919494803994894, -0.01897958666086197, -0.00173999706748873, -0.06605897843837738, -0.037484895437955856, -0.013307712972164154, -0.06108876317739487, 0.0005652946420013905, -0.07351405918598175, -0.010995122604072094, 0.06797637045383453, -0.021144729107618332, 0.05881231278181076, 0.03605394810438156, 0.11318664252758026, -0.035786982625722885, 0.09760190546512604, -0.06563304364681244, -0.028751304373145103, 0.024128902703523636, 0.013873067684471607, -0.046781327575445175, 0.06586860120296478, 0.01805056817829609, -0.12183025479316711, -0.06054355576634407, -0.0032194037921726704, -0.030888108536601067, -0.07190776616334915, -0.0454135462641716, -0.013260023668408394, -0.06872524321079254, -0.010155905969440937, 0.08766110986471176, -0.07320903241634369, 0.03934788331389427, 0.0024531770031899214, 0.08566274493932724, 0.022767744958400726, 0.03072359226644039, 0.019073231145739555, -0.06390737742185593, -0.003730267286300659, 0.03117300756275654, 0.009984010830521584, 0.006014910526573658, 0.006461186800152063, 0.06619129329919815, -0.02905031107366085, 0.0279947891831398, -0.0873727947473526, 0.014262853190302849, 0.06542150676250458, -0.036278463900089264, 0.06407304108142853, 0.038283638656139374, 0.03028266876935959, -0.02620098553597927, 0.0106472447514534, 0.019040152430534363, 0.02702913247048855, 0.12896622717380524, -0.041446179151535034, 0.012858124449849129, -0.042940206825733185, 0.08207280188798904, -0.007358256261795759, 0.011785600334405899, -0.04371212050318718, 0.020219460129737854, -0.03368517756462097, -0.050558146089315414, 1.8476763670980346e-33, 0.0038929737638682127, -0.06522553414106369, 0.008605176582932472, 0.028499530628323555, 0.0446479357779026, -0.0037177216727286577, 0.005672164727002382, 0.11896497756242752, -0.03429367020726204, -0.04184240102767944, 0.034453049302101135, 0.07296216487884521, -0.02073151245713234, -0.06226477026939392, 0.06975589692592621, -0.09893682599067688, 0.06076163053512573, 0.1455366611480713, 0.05570265278220177, -0.02681512013077736, 0.011719685047864914, -0.005389509256929159, -0.07586433738470078, -0.00218608183786273, 0.020685363560914993, -0.037759944796562195, 0.06499789655208588, -0.0577043853700161, 0.02353265881538391, -0.005661610048264265, -0.028050873428583145, 0.021070195361971855, -0.011030565947294235, 0.004354328848421574, 0.029006972908973694, 0.045554786920547485, -0.002982709091156721, 0.03574685379862785, -0.04434581845998764, -0.055468492209911346, -0.014793342910706997, 0.005650655832141638, 0.04224514216184616, 0.057222653180360794, -0.05891888588666916, -0.08170323073863983, 0.014484524726867676, -0.0019501906353980303, 0.00318841147236526, 0.04067258536815643, 0.040693700313568115, 0.003530446905642748, -0.017380712553858757, 0.04241912439465523, 0.007209288887679577, -0.07852679491043091, -0.07169807702302933, 0.037553608417510986, 0.058400314301252365, 0.017367368564009666, -0.02174065262079239, -0.056353859603405, 0.03737368434667587, 0.08265029639005661, 0.04457922279834747, -0.0005965605960227549, -0.01018145028501749, 0.005314956419169903, 0.09498226642608643, 0.014941339381039143, -0.02803007699549198, -0.056493110954761505, 0.012762408703565598, 0.03786679729819298, -0.06930836290121078, -0.06403601914644241, 0.02164900116622448, -0.010235420428216457, -0.07886534184217453, -0.05090104416012764, -0.033433761447668076, -0.06445218622684479, -0.014933654107153416, 0.021188033744692802, -0.015244990587234497, -0.06894352287054062, 0.03355168551206589, 0.021131249144673347, -0.032440610229969025, -0.06557027250528336, 0.0375431627035141, -0.059240810573101044, 0.011207111179828644, -0.018671980127692223, -0.018330438062548637, -2.183595918364581e-33, 0.08942359685897827, 0.01851801946759224, 0.014510211534798145, 0.0020857236813753843, 0.016368823125958443, 0.003590293461456895, -0.026817776262760162, -0.0035856072790920734, -0.006742172408849001, -0.10788248479366302, -0.09607575088739395, -0.009740367531776428, 0.008543713018298149, 0.01716599613428116, -0.08591537922620773, -0.0034137992188334465, -0.01322306040674448, -0.08259083330631256, 0.02900322712957859, 0.0673634484410286, -0.09150904417037964, 0.018505724146962166, -0.01535163726657629, 0.06088419631123543, -0.02146965265274048, 0.04847317934036255, -0.08209381252527237, 0.01713728904724121, 0.05200990289449692, 0.048694878816604614, -0.08811935782432556, -0.03646744415163994, -0.07476653903722763, -0.0830594003200531, 0.022957244887948036, -0.14483000338077545, 0.01768205314874649, 0.1044619232416153, -0.002023672917857766, 0.06514106690883636, 0.12703053653240204, -0.07040837407112122, -0.020823393017053604, -0.021969253197312355, 0.02901793085038662, -0.05043172091245651, 0.04035571217536926, -0.09646602720022202, 0.00623663142323494, -0.04306035116314888, 0.019402019679546356, -0.09274165332317352, -0.04220057651400566, 0.03741183876991272, -0.013881090097129345, -0.030882397666573524, 0.041649118065834045, 0.0004978720098733902, -0.012763386592268944, -0.04426773265004158, 0.07350592315196991, 0.02972562052309513, -0.038401272147893906, -0.0336051769554615, -0.03552801534533501, -0.06501056998968124, -0.06248747557401657, -0.035824622958898544, -0.06015671044588089, 0.04776258021593094, -0.015772676095366478, 0.0002777556946966797, 0.07435016334056854, 0.03506575897336006, 0.027454553171992302, 0.008354868739843369, 0.055941611528396606, -0.10950291901826859, 0.05248621106147766, 0.06206146627664566, -0.1118585467338562, 0.05026792362332344, -0.0075112213380634785, 0.018045248463749886, -0.035771261900663376, 0.010576236993074417, -0.010815476067364216, 0.039290424436330795, -0.04386051744222641, 0.09204529970884323, -0.03467942029237747, -0.05282771959900856, -0.038474421948194504, 0.0301689300686121, -0.05951140820980072, -5.142594261542399e-8, -0.002703959122300148, 0.05417880415916443, 0.005904599092900753, 0.04109160229563713, 0.043232474476099014, -0.016212711110711098, 0.01120908372104168, 0.046415459364652634, 0.027033744379878044, 0.05069183185696602, 0.12841901183128357, 0.03197477012872696, -0.006428923457860947, -0.07339134812355042, -0.12832216918468475, 0.02431291900575161, -0.01214983593672514, -0.02791433595120907, -0.04572119191288948, -0.01281360350549221, -0.05480581521987915, -0.002180225681513548, -0.03868154436349869, -0.0233151912689209, 0.05591721087694168, -0.01597370021045208, 0.06802060455083847, 0.10701503604650497, 0.01096720527857542, 0.0017326552188023925, -0.02167295664548874, 0.0137708755210042, 0.014790007844567299, 0.04488793760538101, -0.01713034324347973, -0.0317317433655262, -0.026098646223545074, 0.05221373587846756, 0.030823001638054848, 0.03211984038352966, -0.02730097621679306, 0.012175202369689941, 0.021765705198049545, 0.039422448724508286, 0.060654085129499435, 0.02431403659284115, -0.08215359598398209, 0.05441589280962944, -0.023854998871684074, -0.022471189498901367, -0.0642450749874115, 0.01339720282703638, 0.010285289958119392, 0.15629708766937256, -0.01677733287215233, 0.0027734008617699146, 0.020841635763645172, 0.08584745228290558, -0.045077599585056305, 0.0429079607129097, 0.09666058421134949, 0.01975226029753685, 0.014074891805648804, 0.06809084862470627 ]
0.071671
This page shows how to change the reclaim policy of a Kubernetes PersistentVolume. ## {{% heading "prerequisites" %}} {{< include "task-tutorial-prereqs.md" >}} {{< version-check >}} ## Why change reclaim policy of a PersistentVolume PersistentVolumes can have various reclaim policies, including "Retain", "Recycle", and "Delete". For dynamically provisioned PersistentVolumes, the default reclaim policy is "Delete". This means that a dynamically provisioned volume is automatically deleted when a user deletes the corresponding PersistentVolumeClaim. This automatic behavior might be inappropriate if the volume contains precious data. In that case, it is more appropriate to use the "Retain" policy. With the "Retain" policy, if a user deletes a PersistentVolumeClaim, the corresponding PersistentVolume will not be deleted. Instead, it is moved to the Released phase, where all of its data can be manually recovered. ## Changing the reclaim policy of a PersistentVolume 1. List the PersistentVolumes in your cluster: ```shell kubectl get pv ``` The output is similar to this: ```none NAME CAPACITY ACCESSMODES RECLAIMPOLICY STATUS CLAIM STORAGECLASS REASON AGE pvc-b6efd8da-b7b5-11e6-9d58-0ed433a7dd94 4Gi RWO Delete Bound default/claim1 manual 10s pvc-b95650f8-b7b5-11e6-9d58-0ed433a7dd94 4Gi RWO Delete Bound default/claim2 manual 6s pvc-bb3ca71d-b7b5-11e6-9d58-0ed433a7dd94 4Gi RWO Delete Bound default/claim3 manual 3s ``` This list also includes the name of the claims that are bound to each volume for easier identification of dynamically provisioned volumes. 1. Choose one of your PersistentVolumes and change its reclaim policy: ```shell kubectl patch pv -p '{"spec":{"persistentVolumeReclaimPolicy":"Retain"}}' ``` where `` is the name of your chosen PersistentVolume. {{< note >}} On Windows, you must \_double\_ quote any JSONPath template that contains spaces (not single quote as shown above for bash). This in turn means that you must use a single quote or escaped double quote around any literals in the template. For example: ```cmd kubectl patch pv -p "{\"spec\":{\"persistentVolumeReclaimPolicy\":\"Retain\"}}" ``` {{< /note >}} 1. Verify that your chosen PersistentVolume has the right policy: ```shell kubectl get pv ``` The output is similar to this: ```none NAME CAPACITY ACCESSMODES RECLAIMPOLICY STATUS CLAIM STORAGECLASS REASON AGE pvc-b6efd8da-b7b5-11e6-9d58-0ed433a7dd94 4Gi RWO Delete Bound default/claim1 manual 40s pvc-b95650f8-b7b5-11e6-9d58-0ed433a7dd94 4Gi RWO Delete Bound default/claim2 manual 36s pvc-bb3ca71d-b7b5-11e6-9d58-0ed433a7dd94 4Gi RWO Retain Bound default/claim3 manual 33s ``` In the preceding output, you can see that the volume bound to claim `default/claim3` has reclaim policy `Retain`. It will not be automatically deleted when a user deletes claim `default/claim3`. ## {{% heading "whatsnext" %}} \* Learn more about [PersistentVolumes](/docs/concepts/storage/persistent-volumes/). \* Learn more about [PersistentVolumeClaims](/docs/concepts/storage/persistent-volumes/#persistentvolumeclaims). ### References {#reference} \* {{< api-reference page="config-and-storage-resources/persistent-volume-v1" >}} \* Pay attention to the `.spec.persistentVolumeReclaimPolicy` [field](/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-v1/#PersistentVolumeSpec) of PersistentVolume. \* {{< api-reference page="config-and-storage-resources/persistent-volume-claim-v1" >}}
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/change-pv-reclaim-policy.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/change-pv-reclaim-policy.md
[ -0.009404502809047699, 0.024188024923205376, 0.06676997989416122, 0.0022730042692273855, 0.01730327680706978, 0.032499875873327255, 0.04254469648003578, -0.0803220272064209, 0.06643907725811005, 0.03286253660917282, 0.010176576673984528, 0.020639091730117798, 0.05317150428891182, 0.00805055070668459, -0.013993925414979458, -0.009298959746956825, -0.004257148131728172, -0.0410524345934391, -0.09485112130641937, -0.02177766151726246, 0.018349813297390938, 0.006624274421483278, -0.008633885532617569, 0.04688114672899246, 0.048915304243564606, -0.004686560016125441, 0.019758326932787895, -0.0003101084439549595, 0.03258347138762474, -0.003065885975956917, 0.003624536329880357, 0.01926763728260994, -0.027567634359002113, -0.05046289414167404, 0.08037203550338745, 0.06689547747373581, -0.07719822227954865, -0.04411185905337334, -0.09391394257545471, -0.020461702719330788, 0.018282730132341385, -0.02600470371544361, -0.12709592282772064, -0.01237116102129221, -0.036073893308639526, 0.058844927698373795, -0.05635958909988403, -0.07747641205787659, -0.03259889781475067, 0.005854989867657423, 0.06498809158802032, -0.07078740000724792, 0.07668017596006393, 0.08544939011335373, 0.031857091933488846, 0.08131667226552963, 0.009616420604288578, 0.0676112025976181, 0.033244289457798004, -0.0032752370461821556, 0.020115485414862633, -0.04401051625609398, -0.004209352657198906, -0.04216160625219345, -0.02333468571305275, 0.05672648176550865, 0.015893949195742607, -0.009409509599208832, 0.042345691472291946, 0.0423724427819252, 0.031020699068903923, 0.08455471694469452, -0.022750485688447952, -0.03135228529572487, 0.028117554262280464, 0.03718483820557594, -0.022600866854190826, 0.03352122753858566, -0.024458756670355797, -0.05356398969888687, 0.015591543167829514, -0.0005322726210579276, -0.013831038028001785, -0.05460366606712341, -0.10435836762189865, -0.07636827975511551, -0.06733372062444687, -0.07730595767498016, 0.08320345729589462, -0.019109688699245453, 0.028241334483027458, -0.05993829295039177, 0.09693221002817154, -0.06431438028812408, 0.04739346727728844, -0.05774334445595741, -0.03394349291920662, -0.0017385550308972597, 0.05345163866877556, -0.004421232733875513, -0.013994590379297733, -0.04536362364888191, -0.020784826949238777, 0.06813953816890717, 0.015197306871414185, -0.11873956024646759, -0.015642894431948662, 0.03891179338097572, -0.014462431892752647, 0.1008976399898529, -0.0020063738338649273, 0.06953123211860657, 0.0581895112991333, 0.04153360053896904, 0.06348478049039841, 0.058912262320518494, -0.01733158901333809, 0.027473339810967445, -0.01905406080186367, 0.010640226304531097, 0.035771384835243225, -0.08534112572669983, 0.06793725490570068, -0.01734861545264721, -0.007100156042724848, 0.014103945344686508, -0.05202412232756615, 4.3541144620762644e-33, 0.027904868125915527, -0.060023147612810135, -0.02471471205353737, -0.035056889057159424, 0.04543290287256241, -0.09834057092666626, 0.024203239008784294, 0.0287766270339489, -0.007990955375134945, -0.09310451149940491, -0.03153352439403534, 0.13608399033546448, -0.0579565092921257, 0.007207407616078854, -0.00810926128178835, -0.0785912498831749, -0.005925723817199469, 0.1622483730316162, 0.07964350283145905, -0.03191298991441727, 0.036782875657081604, 0.0971730649471283, -0.006116474978625774, -0.018674254417419434, 0.04884430021047592, -0.03697619587182999, 0.0736599937081337, -0.01718195341527462, -0.0547381229698658, 0.03750667721033096, -0.0876876711845398, 0.04954903572797775, -0.02285119891166687, 0.000015702185919508338, -0.11613620817661285, 0.05541369691491127, -0.06150280684232712, 0.013102693483233452, -0.050879862159490585, -0.03945913538336754, 0.1200505942106247, -0.022965207695961, 0.043533578515052795, -0.04400929808616638, -0.016251299530267715, -0.11761761456727982, 0.051544252783060074, -0.032981473952531815, 0.07376111298799515, 0.02512824907898903, 0.04754863306879997, 0.00371806463226676, -0.007892563007771969, -0.06965948641300201, -0.006727580912411213, -0.04597688466310501, 0.023591499775648117, -0.060245487838983536, 0.016012713313102722, -0.06510613113641739, 0.03580308333039284, 0.056207362562417984, 0.022135956212878227, 0.055562958121299744, 0.014358983375132084, 0.01725282520055771, -0.005337129347026348, 0.023621588945388794, -0.0059165977872908115, -0.10300220549106598, -0.06731263548135757, -0.007733124773949385, -0.05642446503043175, -0.05520959198474884, -0.02630075439810753, -0.07938848435878754, 0.03367098048329353, -0.008455555886030197, -0.05628110095858574, -0.011093506589531898, -0.021174175664782524, -0.04980574548244476, -0.06682608276605606, 0.054791614413261414, 0.013573888689279556, -0.04056687653064728, 0.04093070700764656, -0.056918151676654816, -0.03771721571683884, 0.003873772220686078, 0.01547221653163433, -0.08056967705488205, -0.03849721699953079, 0.05978763476014137, 0.008837364614009857, -5.115193422303939e-33, 0.10382954776287079, 0.018356679007411003, -0.00827392190694809, 0.016545044258236885, 0.04324661195278168, 0.052915845066308975, -0.04543847218155861, 0.07878109067678452, -0.058963581919670105, -0.13587164878845215, -0.08576270937919617, -0.028321897611021996, -0.07863538712263107, 0.008451657369732857, -0.05391525849699974, -0.012390880845487118, -0.049305886030197144, -0.060104209929704666, -0.03750747814774513, 0.06252239644527435, -0.018758919090032578, -0.010252203792333603, -0.035818520933389664, 0.05379995331168175, -0.027580056339502335, -0.037698447704315186, -0.016947558149695396, 0.06074002385139465, 0.01049343403428793, -0.007616267539560795, -0.04567538946866989, -0.10334141552448273, -0.07192003726959229, -0.059059713035821915, 0.0237090066075325, -0.07449887692928314, 0.005865899845957756, -0.002040344290435314, -0.035515498369932175, 0.01408911682665348, 0.04459318518638611, -0.003199322847649455, -0.06279648840427399, 0.02056017518043518, -0.010390525683760643, 0.03869827836751938, 0.11092419177293777, -0.047498997300863266, 0.05774590000510216, -0.010237528942525387, 0.02813269942998886, -0.04080791026353836, -0.030906587839126587, 0.05149463191628456, -0.050930820405483246, 0.03851797431707382, 0.0755995512008667, 0.0437418594956398, -0.041699934750795364, -0.03253823146224022, 0.06829817593097687, -0.024699997156858444, 0.01939256675541401, 0.013281667605042458, -0.010480514727532864, -0.014928660355508327, 0.028650552034378052, 0.030298685654997826, -0.05474327877163887, 0.022294599562883377, -0.043197549879550934, -0.006023448426276445, 0.02442377246916294, -0.0322064571082592, 0.06553300470113754, -0.035105299204587936, -0.04771028459072113, -0.05253373831510544, 0.0054969326592981815, 0.016249163076281548, -0.013557929545640945, 0.021340249106287956, -0.0898088663816452, -0.016003908589482307, 0.02612578682601452, -0.03091241605579853, -0.008361714892089367, 0.043690551072359085, 0.03767799586057663, 0.12983065843582153, -0.037435539066791534, -0.016207801178097725, -0.03464101627469063, 0.06505155563354492, -0.07134245336055756, -5.377607692480524e-8, 0.028747323900461197, 0.06440842151641846, 0.0058520822785794735, 0.10576753318309784, 0.08017653971910477, -0.09079671651124954, 0.011753766797482967, 0.06298810988664627, -0.028019865974783897, -0.045146141201257706, 0.004037284757941961, 0.0593114048242569, -0.06064499542117119, -0.05468564108014107, -0.06415589898824692, -0.015813283622264862, 0.028283674269914627, 0.014610658399760723, -0.00986725278198719, -0.0018600767944008112, -0.0423625148832798, 0.005901529919356108, 0.02566717378795147, -0.014771679416298866, 0.042735423892736435, 0.08154996484518051, 0.08482471853494644, 0.07448649406433105, 0.05547581985592842, 0.07320629805326462, 0.013913864269852638, 0.011308657936751842, -0.0030755011830478907, 0.09154313057661057, -0.06498826295137405, 0.0030660517513751984, -0.03733033686876297, 0.04857341945171356, 0.03603103756904602, 0.005915773566812277, -0.010413545183837414, 0.04906918480992317, -0.06404492259025574, 0.022315267473459244, -0.006762926001101732, 0.05079792067408562, -0.07027268409729004, 0.03909749165177345, -0.02330927550792694, 0.003801819635555148, -0.12223531305789948, -0.033832844346761703, -0.04135739803314209, 0.15484307706356049, 0.02707953192293644, 0.010509002953767776, 0.02980070188641548, 0.027436604723334312, 0.04607844352722168, 0.06523951888084412, 0.04803374037146568, 0.03231269121170044, 0.02801770158112049, -0.06661223620176315 ]
0.057984
{{< glossary\_definition term\_id="cloud-controller-manager" length="all" prepend="The cloud-controller-manager is">}} ## Background As part of the [cloud provider extraction effort](/blog/2019/04/17/the-future-of-cloud-providers-in-kubernetes/), all cloud specific controllers must be moved out of the `kube-controller-manager`. All existing clusters that run cloud controllers in the `kube-controller-manager` must migrate to instead run the controllers in a cloud provider specific `cloud-controller-manager`. Leader Migration provides a mechanism in which HA clusters can safely migrate "cloud specific" controllers between the `kube-controller-manager` and the `cloud-controller-manager` via a shared resource lock between the two components while upgrading the replicated control plane. For a single-node control plane, or if unavailability of controller managers can be tolerated during the upgrade, Leader Migration is not needed and this guide can be ignored. Leader Migration can be enabled by setting `--enable-leader-migration` on `kube-controller-manager` or `cloud-controller-manager`. Leader Migration only applies during the upgrade and can be safely disabled or left enabled after the upgrade is complete. This guide walks you through the manual process of upgrading the control plane from `kube-controller-manager` with built-in cloud provider to running both `kube-controller-manager` and `cloud-controller-manager`. If you use a tool to deploy and manage the cluster, please refer to the documentation of the tool and the cloud provider for specific instructions of the migration. ## {{% heading "prerequisites" %}} It is assumed that the control plane is running Kubernetes version N and to be upgraded to version N + 1. Although it is possible to migrate within the same version, ideally the migration should be performed as part of an upgrade so that changes of configuration can be aligned to each release. The exact versions of N and N + 1 depend on each cloud provider. For example, if a cloud provider builds a `cloud-controller-manager` to work with Kubernetes 1.24, then N can be 1.23 and N + 1 can be 1.24. The control plane nodes should run `kube-controller-manager` with Leader Election enabled, which is the default. As of version N, an in-tree cloud provider must be set with `--cloud-provider` flag and `cloud-controller-manager` should not yet be deployed. The out-of-tree cloud provider must have built a `cloud-controller-manager` with Leader Migration implementation. If the cloud provider imports `k8s.io/cloud-provider` and `k8s.io/controller-manager` of version v0.21.0 or later, Leader Migration will be available. However, for version before v0.22.0, Leader Migration is alpha and requires feature gate `ControllerManagerLeaderMigration` to be enabled in `cloud-controller-manager`. This guide assumes that kubelet of each control plane node starts `kube-controller-manager` and `cloud-controller-manager` as static pods defined by their manifests. If the components run in a different setting, please adjust the steps accordingly. For authorization, this guide assumes that the cluster uses RBAC. If another authorization mode grants permissions to `kube-controller-manager` and `cloud-controller-manager` components, please grant the needed access in a way that matches the mode. ### Grant access to Migration Lease The default permissions of the controller manager allow only accesses to their main Lease. In order for the migration to work, accesses to another Lease are required. You can grant `kube-controller-manager` full access to the leases API by modifying the `system::leader-locking-kube-controller-manager` role. This task guide assumes that the name of the migration lease is `cloud-provider-extraction-migration`. ```shell kubectl patch -n kube-system role 'system::leader-locking-kube-controller-manager' -p '{"rules": [ {"apiGroups":[ "coordination.k8s.io"], "resources": ["leases"], "resourceNames": ["cloud-provider-extraction-migration"], "verbs": ["create", "list", "get", "update"] } ]}' --type=merge` ``` Do the same to the `system::leader-locking-cloud-controller-manager` role. ```shell kubectl patch -n kube-system role 'system::leader-locking-cloud-controller-manager' -p '{"rules": [ {"apiGroups":[ "coordination.k8s.io"], "resources": ["leases"], "resourceNames": ["cloud-provider-extraction-migration"], "verbs": ["create", "list", "get", "update"] } ]}' --type=merge` ``` ### Initial Leader Migration configuration Leader Migration optionally takes a configuration file representing the state of controller-to-manager assignment. At this moment, with in-tree cloud provider, `kube-controller-manager` runs `route`, `service`, and
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/controller-manager-leader-migration.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/controller-manager-leader-migration.md
[ -0.009510877542197704, -0.04526398330926895, -0.014154122211039066, 0.019717196002602577, 0.06885073333978653, 0.041523221880197525, -0.021695340052247047, -0.07392869889736176, 0.032579533755779266, 0.10457198321819305, 0.06975400447845459, 0.003135015955194831, 0.03242068737745285, -0.10361355543136597, 0.04776345565915108, 0.025056352838873863, 0.03237557411193848, -0.03393254056572914, -0.054635681211948395, -0.05408409237861633, -0.044205375015735626, -0.03899627551436424, -0.04620075970888138, 0.003109850687906146, -0.061812981963157654, -0.029943054541945457, -0.07446075975894928, -0.020588722079992294, -0.004133053123950958, -0.06774181872606277, -0.0739414319396019, -0.021353047341108322, -0.003912617918103933, 0.021721433848142624, 0.04326706379652023, 0.052367452532052994, -0.022841161116957664, -0.061495594680309296, -0.07356368005275726, -0.04256270453333855, 0.11842097342014313, -0.0328473262488842, -0.09893791377544403, -0.04395635426044464, -0.008694238029420376, 0.05098600313067436, -0.04747641459107399, -0.0426483079791069, -0.029105380177497864, -0.049897123128175735, 0.026985229924321175, -0.0667540654540062, -0.00656875828281045, 0.04827524349093437, -0.039761997759342194, 0.07555171847343445, 0.01584484800696373, 0.007058860268443823, 0.14948256313800812, -0.029570791870355606, -0.0057417480275034904, 0.040903303772211075, 0.03825486823916435, -0.06148134544491768, -0.027700150385499, -0.06630421429872513, 0.06730646640062332, 0.011314256116747856, -0.007622025907039642, 0.039766255766153336, 0.07190964370965958, -0.047607146203517914, -0.0401446670293808, -0.021397745236754417, 0.058427173644304276, -0.024251965805888176, -0.043846648186445236, 0.04854247346520424, 0.07752696424722672, -0.01420983113348484, 0.03834450617432594, 0.04605201631784439, 0.04510654881596565, 0.034613996744155884, -0.10147739946842194, 0.00309911766089499, -0.06161947175860405, -0.045584216713905334, 0.02911321446299553, -0.025783995166420937, -0.006765096914023161, -0.040645770728588104, 0.09137815982103348, -0.036120347678661346, -0.027614960446953773, -0.048101961612701416, -0.061800483614206314, 0.039595670998096466, 0.04946132376790047, -0.03393968939781189, 0.012301896698772907, 0.009980362839996815, 0.06340916454792023, 0.0033315864857286215, -0.026521999388933182, -0.03088461235165596, -0.03130949288606644, -0.003237644676119089, 0.046689633280038834, -0.006327420938760042, -0.006302798632532358, 0.0866459384560585, -0.012207495979964733, 0.01900707557797432, 0.04784803465008736, 0.012297497130930424, 0.019446829333901405, -0.03645479679107666, -0.04378719627857208, 0.032702427357435226, 0.027356291189789772, -0.10845357924699783, 0.10402792692184448, -0.005341269075870514, -0.030587852001190186, 0.052745506167411804, -0.11105085909366608, 1.6269855679258043e-33, 0.037276897579431534, -0.027067456394433975, 0.0327269583940506, 0.009983099065721035, 0.0511951707303524, -0.01687629334628582, -0.023701682686805725, -0.04224581643939018, -0.03137456625699997, -0.010871637612581253, -0.06579923629760742, -0.022807864472270012, -0.02911887690424919, -0.020120467990636826, 0.028094569221138954, -0.08002603054046631, 0.03435492143034935, 0.0343671590089798, 0.0858127623796463, -0.055251482874155045, 0.0389958955347538, 0.03264608979225159, -0.022137293592095375, -0.008727597072720528, 0.053566932678222656, 0.009330210275948048, 0.004295621998608112, -0.08574499934911728, 0.06535812467336655, 0.014325316064059734, -0.01186919305473566, -0.02099289931356907, -0.005420524161309004, 0.052683115005493164, -0.12243170291185379, 0.020279204472899437, -0.061392225325107574, -0.0235326886177063, -0.08692602813243866, 0.0038286184426397085, -0.062412649393081665, -0.021145451813936234, -0.059527598321437836, -0.036472138017416, 0.06112358346581459, -0.007286235690116882, 0.11362414807081223, -0.07944511622190475, 0.0815858393907547, 0.0171261727809906, -0.11582749336957932, -0.02371310442686081, 0.07175339013338089, -0.04531910642981529, 0.060738418251276016, -0.02418426424264908, 0.1361694484949112, -0.01428372785449028, 0.014623371884226799, -0.01970648393034935, -0.01494178082793951, -0.09711496531963348, -0.0718071237206459, 0.07604037970304489, 0.057091500610113144, 0.01187800895422697, -0.021942058578133583, -0.0072578066028654575, -0.0020008189603686333, 0.007611832581460476, -0.0438305102288723, 0.011112598702311516, -0.017221935093402863, 0.016443677246570587, 0.02683568000793457, -0.12163717299699783, -0.06938781589269638, 0.049992501735687256, -0.06787329912185669, 0.04033013805747032, 0.001589150750078261, -0.01713862456381321, -0.06441404670476913, 0.057404886931180954, 0.012197175994515419, -0.07444347441196442, 0.03383371978998184, 0.011448903940618038, -0.031568970531225204, 0.05457322299480438, 0.016279760748147964, -0.10299626737833023, 0.05337904021143913, 0.028146499767899513, -0.04209228977560997, -2.050403041195808e-33, 0.0353408008813858, -0.0293562188744545, 0.022217003628611565, 0.046906765550374985, 0.05475408583879471, 0.028173664584755898, 0.025495488196611404, 0.08492561429738998, -0.03624994307756424, -0.098830945789814, 0.0066491467878222466, -0.01970157027244568, 0.01024318765848875, 0.0006059378501959145, -0.039450716227293015, 0.01955990307033062, -0.07243458181619644, -0.05834531411528587, -0.034755006432533264, 0.023039424791932106, -0.017752425745129585, -0.06197229027748108, 0.050568677484989166, 0.04928993806242943, 0.002064929809421301, 0.017303606495261192, 0.010258504189550877, 0.057761237025260925, 0.033812906593084335, 0.018360449001193047, -0.017096413299441338, -0.07394354790449142, 0.008038724772632122, 0.059912070631980896, -0.05582234263420105, -0.010523669421672821, -0.002331465482711792, 0.08098948001861572, -0.07992101460695267, 0.0005847891443409026, 0.00027057970874011517, -0.08795958757400513, 0.031772445887327194, -0.06642010807991028, 0.01675197295844555, 0.12102843821048737, 0.045658357441425323, -0.014386484399437904, -0.07005588710308075, -0.05022758990526199, -0.02010251022875309, 0.05237588658928871, -0.05080435052514076, 0.03458898141980171, -0.026032529771327972, 0.04416884854435921, 0.07664397358894348, 0.1290677934885025, -0.07385072112083435, -0.04613201320171356, 0.09187249094247818, -0.07594619691371918, 0.04954442381858826, 0.056452009826898575, -0.0025416912976652384, 0.00970524363219738, 0.08426904678344727, 0.0222788006067276, 0.02644500322639942, 0.015303871594369411, -0.05627937242388725, -0.010425751097500324, 0.035696785897016525, 0.015075178816914558, -0.012025506235659122, -0.08243364095687866, -0.0031487438827753067, -0.04754256457090378, 0.04853549227118492, -0.05468031018972397, -0.05988754704594612, -0.038362111896276474, -0.03509773686528206, -0.010614211671054363, 0.033831071108579636, 0.00988280214369297, 0.14128758013248444, 0.04928509145975113, 0.03800550848245621, 0.030749592930078506, -0.07960639148950577, -0.05703907459974289, -0.017431555315852165, 0.06542075425386429, -0.08570430427789688, -5.351557774702087e-8, 0.01247361209243536, 0.08564654737710953, -0.03414249047636986, -0.011216522194445133, 0.0995541661977768, 0.010501251555979252, 0.04748016968369484, -0.020502330735325813, -0.002394085517153144, 0.10905027389526367, -0.029517799615859985, 0.07128390669822693, -0.02545955404639244, -0.023338355123996735, 0.07932979613542557, -0.031159931793808937, 0.006788301281630993, 0.010553971864283085, 0.06482237577438354, -0.07355690747499466, -0.08738883584737778, 0.03407861292362213, -0.010405180975794792, 0.04887529835104942, 0.03385797142982483, 0.08185192197561264, 0.0037450212985277176, 0.008251991122961044, 0.07011926919221878, 0.03463386371731758, -0.027543693780899048, -0.015783492475748062, -0.023085173219442368, 0.10410365462303162, 0.03576195612549782, 0.044204231351614, -0.09431853890419006, 0.02693801186978817, 0.03722148388624191, 0.017490962520241737, 0.021673979237675667, 0.08506415039300919, -0.0663292333483696, 0.02499323897063732, 0.0360565260052681, 0.08271375298500061, 0.00596997095271945, -0.0066298567689955235, -0.02018824964761734, 0.008527135476469994, 0.001921681803651154, -0.04234330728650093, -0.03918212652206421, 0.0418643094599247, -0.026990797370672226, 0.015236243605613708, 0.028307117521762848, -0.03845251724123955, 0.09215360879898071, 0.029968280345201492, 0.061018072068691254, -0.008164120838046074, 0.006539276801049709, -0.019520984962582588 ]
0.035936
role 'system::leader-locking-cloud-controller-manager' -p '{"rules": [ {"apiGroups":[ "coordination.k8s.io"], "resources": ["leases"], "resourceNames": ["cloud-provider-extraction-migration"], "verbs": ["create", "list", "get", "update"] } ]}' --type=merge` ``` ### Initial Leader Migration configuration Leader Migration optionally takes a configuration file representing the state of controller-to-manager assignment. At this moment, with in-tree cloud provider, `kube-controller-manager` runs `route`, `service`, and `cloud-node-lifecycle`. The following example configuration shows the assignment. Leader Migration can be enabled without a configuration. Please see [Default Configuration](#default-configuration) for details. ```yaml kind: LeaderMigrationConfiguration apiVersion: controllermanager.config.k8s.io/v1 leaderName: cloud-provider-extraction-migration resourceLock: leases controllerLeaders: - name: route component: kube-controller-manager - name: service component: kube-controller-manager - name: cloud-node-lifecycle component: kube-controller-manager ``` Alternatively, because the controllers can run under either controller managers, setting `component` to `\*` for both sides makes the configuration file consistent between both parties of the migration. ```yaml # wildcard version kind: LeaderMigrationConfiguration apiVersion: controllermanager.config.k8s.io/v1 leaderName: cloud-provider-extraction-migration resourceLock: leases controllerLeaders: - name: route component: \* - name: service component: \* - name: cloud-node-lifecycle component: \* ``` On each control plane node, save the content to `/etc/leadermigration.conf`, and update the manifest of `kube-controller-manager` so that the file is mounted inside the container at the same location. Also, update the same manifest to add the following arguments: - `--enable-leader-migration` to enable Leader Migration on the controller manager - `--leader-migration-config=/etc/leadermigration.conf` to set configuration file Restart `kube-controller-manager` on each node. At this moment, `kube-controller-manager` has leader migration enabled and is ready for the migration. ### Deploy Cloud Controller Manager In version N + 1, the desired state of controller-to-manager assignment can be represented by a new configuration file, shown as follows. Please note `component` field of each `controllerLeaders` changing from `kube-controller-manager` to `cloud-controller-manager`. Alternatively, use the wildcard version mentioned above, which has the same effect. ```yaml kind: LeaderMigrationConfiguration apiVersion: controllermanager.config.k8s.io/v1 leaderName: cloud-provider-extraction-migration resourceLock: leases controllerLeaders: - name: route component: cloud-controller-manager - name: service component: cloud-controller-manager - name: cloud-node-lifecycle component: cloud-controller-manager ``` When creating control plane nodes of version N + 1, the content should be deployed to `/etc/leadermigration.conf`. The manifest of `cloud-controller-manager` should be updated to mount the configuration file in the same manner as `kube-controller-manager` of version N. Similarly, add `--enable-leader-migration` and `--leader-migration-config=/etc/leadermigration.conf` to the arguments of `cloud-controller-manager`. Create a new control plane node of version N + 1 with the updated `cloud-controller-manager` manifest, and with the `--cloud-provider` flag set to `external` for `kube-controller-manager`. `kube-controller-manager` of version N + 1 MUST NOT have Leader Migration enabled because, with an external cloud provider, it does not run the migrated controllers anymore, and thus it is not involved in the migration. Please refer to [Cloud Controller Manager Administration](/docs/tasks/administer-cluster/running-cloud-controller/) for more detail on how to deploy `cloud-controller-manager`. ### Upgrade Control Plane The control plane now contains nodes of both version N and N + 1. The nodes of version N run `kube-controller-manager` only, and these of version N + 1 run both `kube-controller-manager` and `cloud-controller-manager`. The migrated controllers, as specified in the configuration, are running under either `kube-controller-manager` of version N or `cloud-controller-manager` of version N + 1 depending on which controller manager holds the migration lease. No controller will ever be running under both controller managers at any time. In a rolling manner, create a new control plane node of version N + 1 and bring down one of version N until the control plane contains only nodes of version N + 1. If a rollback from version N + 1 to N is required, add nodes of version N with Leader Migration enabled for `kube-controller-manager` back to the control plane, replacing one of version N + 1 each time until there are only nodes of version N. ### (Optional) Disable Leader Migration {#disable-leader-migration} Now that
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/controller-manager-leader-migration.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/controller-manager-leader-migration.md
[ -0.03699204698204994, -0.024703584611415863, 0.018990064039826393, 0.03251512348651886, 0.037571437656879425, 0.018763141706585884, -0.012666151858866215, -0.07820788025856018, 0.03635020926594734, 0.11952377110719681, 0.050766535103321075, -0.027191024273633957, 0.04350549727678299, -0.03901071473956108, 0.054255153983831406, 0.04094378650188446, -0.04499053955078125, -0.010681082494556904, -0.03464547172188759, -0.12044644355773926, -0.029595721513032913, -0.03884267061948776, -0.022521626204252243, -0.004438299685716629, -0.08089357614517212, -0.04956081882119179, -0.08237627893686295, -0.007444596383720636, -0.03178578242659569, -0.05404440313577652, -0.07028792798519135, 0.0018785499269142747, -0.0382012277841568, 0.03841479495167732, 0.015438590198755264, 0.10136101394891739, 0.04130161553621292, -0.10721267014741898, -0.03307110071182251, -0.006860801018774509, 0.11940277367830276, 0.023373045027256012, -0.06987281888723373, -0.11705218255519867, 0.022383762523531914, 0.042579758912324905, -0.040854550898075104, -0.05464234575629234, -0.06249237060546875, -0.02775457873940468, 0.0507916659116745, -0.06892942637205124, 0.012976842001080513, 0.01157127320766449, 0.029114089906215668, 0.08586285263299942, -0.007854442112147808, 0.00754421204328537, 0.08990634232759476, -0.050440941005945206, 0.008241888135671616, 0.01852993667125702, 0.027319442480802536, -0.01519191823899746, -0.041992586106061935, -0.03229091688990593, 0.0241896603256464, 0.002727515995502472, 0.010821286588907242, 0.036421678960323334, 0.06602034717798233, -0.03449265658855438, -0.06964243203401566, -0.0001370426034554839, 0.026811961084604263, -0.005139502231031656, -0.0362786240875721, 0.09535625576972961, 0.013670508749783039, -0.06290798634290695, 0.042207270860672, 0.031915049999952316, -0.023067118600010872, 0.041996441781520844, -0.08147493004798889, -0.030463796108961105, -0.047349680215120316, -0.05074962228536606, 0.03813980147242546, 0.04640453681349754, 0.006883392576128244, -0.06512916833162308, 0.018159642815589905, -0.06096358969807625, -0.030497252941131592, 0.02081020176410675, -0.05028928071260452, 0.04754368215799332, -0.020028812810778618, -0.02517513372004032, -0.023163143545389175, -0.0006565361400134861, 0.02814098261296749, 0.028820721432566643, 0.017541170120239258, -0.05075828731060028, -0.023375192657113075, 0.016575798392295837, -0.02843688800930977, 0.05103220418095589, 0.024680951610207558, 0.03088524006307125, 0.004098368808627129, 0.03727739304304123, 0.011061864905059338, 0.003795333905145526, -0.012416061945259571, 0.0028486554510891438, 0.000002714970605666167, 0.06425867974758148, 0.050237976014614105, -0.08522333949804306, 0.0277169831097126, 0.026878828182816505, -0.05681578069925308, 0.09270959347486496, -0.0336274728178978, -1.3336513760069164e-34, 0.07951104640960693, -0.05453766882419586, 0.04085022211074829, 0.029337584972381592, 0.05848283693194389, -0.03603846952319145, -0.03032548911869526, -0.04542171210050583, -0.0385780893266201, -0.004574911668896675, -0.0920795351266861, -0.012806185521185398, -0.010192804038524628, -0.041397448629140854, -0.006672595627605915, -0.024991579353809357, 0.001302075106650591, 0.022125842049717903, 0.08300602436065674, -0.051906101405620575, 0.07661223411560059, 0.04648314043879509, -0.061317238956689835, -0.007185577414929867, 0.09048644453287125, 0.01712428778409958, -0.0363578163087368, -0.1431693285703659, 0.05769592896103859, 0.016669876873493195, -0.002063994761556387, -0.0026087560690939426, -0.02266593649983406, 0.04015602916479111, -0.11766647547483444, 0.0084547009319067, -0.023875107988715172, -0.0004522929375525564, -0.10751257836818695, 0.009183473885059357, -0.04371585696935654, -0.04938054457306862, -0.045753419399261475, -0.03029024600982666, 0.012361027300357819, -0.06039801239967346, 0.07658550888299942, -0.01637197844684124, 0.11377335339784622, 0.05114400386810303, -0.11276500672101974, -0.006787456572055817, 0.054496102035045624, -0.07885432243347168, 0.06799080967903137, 0.010698621161282063, 0.12892316281795502, 0.012280775234103203, -0.0426626056432724, -0.037847116589546204, 0.010042161680758, -0.03473219648003578, -0.035945504903793335, 0.05162849649786949, 0.052265290170907974, -0.01642482355237007, -0.057441726326942444, -0.0005275400471873581, 0.0029325548093765974, -0.05337540805339813, -0.06817259639501572, 0.030862677842378616, -0.03900051489472389, 0.03693687915802002, 0.02066301740705967, -0.09710847586393356, -0.00468847993761301, 0.037401337176561356, -0.101444311439991, 0.03790349140763283, 0.012348235584795475, -0.056580498814582825, 0.009067344479262829, 0.05072636157274246, 0.05179983377456665, -0.09839948266744614, 0.02466345950961113, 0.044463369995355606, 0.004744863603264093, 0.020780470222234726, -0.00043151143472641706, -0.03086298517882824, 0.028368087485432625, 0.07020807266235352, -0.048220667988061905, -2.391897374421129e-33, 0.0696745365858078, -0.04740798845887184, 0.09035967290401459, 0.00941457785665989, 0.07476828247308731, 0.02789722941815853, -0.001861162600107491, 0.021973097696900368, 0.009623270481824875, -0.04744074121117592, -0.009761136025190353, 0.036494165658950806, 0.018878843635320663, 0.006093330681324005, -0.005639285314828157, -0.026865452527999878, -0.10632351785898209, -0.008516035042703152, -0.036777153611183167, 0.016702916473150253, -0.050990648567676544, 0.030109746381640434, 0.051490820944309235, 0.07766972482204437, 0.01757623441517353, -0.012154610827565193, -0.00880513060837984, 0.03195013478398323, -0.017939124256372452, 0.0378890186548233, 0.03680465742945671, -0.0800773873925209, -0.033397361636161804, 0.04382765665650368, -0.05893139913678169, -0.026812436059117317, -0.06527426093816757, 0.06104210391640663, -0.07002276927232742, 0.10381478816270828, -0.0158840361982584, -0.007757971994578838, 0.03933881223201752, -0.05523648113012314, -0.0031866985373198986, 0.06840980052947998, 0.09113074094057083, -0.06116741523146629, -0.07276531308889389, -0.02913248911499977, -0.01656799018383026, 0.08772896975278854, -0.04061540216207504, 0.06647347658872604, 0.03817841038107872, 0.07295529544353485, 0.03258882462978363, 0.06116199493408203, -0.0228041410446167, -0.043433282524347305, 0.06294422596693039, -0.06807050108909607, 0.06962861120700836, 0.018504757434129715, -0.04064179211854935, -0.010791925713419914, 0.04446778818964958, 0.010704454965889454, 0.020816637203097343, -0.019950417801737785, -0.03617715835571289, -0.08163493871688843, 0.0016837180592119694, 0.04137090593576431, 0.00526336720213294, -0.07480474561452866, -0.04572416841983795, -0.03107772022485733, 0.0021511397790163755, -0.04303685948252678, -0.10128725320100784, -0.044275492429733276, -0.07654755562543869, 0.023865923285484314, -0.010780693963170052, -0.04306706413626671, 0.10482574999332428, 0.056719549000263214, 0.046533189713954926, 0.0903104841709137, -0.025434792041778564, -0.1005311980843544, -0.04132179543375969, 0.04572901129722595, -0.12780976295471191, -4.816548226926898e-8, -0.004536024294793606, 0.09112820029258728, -0.055696237832307816, 0.03648051992058754, 0.09715740382671356, 0.007487377617508173, 0.08454399555921555, -0.02538980171084404, 0.008390367962419987, 0.0841938778758049, -0.00599330710247159, 0.0744229406118393, -0.06821060180664062, -0.021210158243775368, 0.02155609056353569, -0.04842372611165047, -0.0063809300772845745, 0.020401256158947945, 0.039842188358306885, -0.07212718576192856, -0.0876070037484169, 0.0067147682420909405, -0.011104593984782696, 0.0020836121402680874, 0.04730232432484627, 0.10014608502388, -0.026594216004014015, 0.02586941234767437, 0.0623907670378685, 0.08701533824205399, -0.06467022001743317, -0.021463871002197266, -0.048921432346105576, 0.09536399692296982, -0.029717685654759407, 0.04021346569061279, -0.07987786829471588, 0.057157017290592194, 0.02178795076906681, -0.002863943576812744, 0.027987711131572723, 0.08362890779972076, -0.04355799779295921, 0.044498056173324585, 0.013169386424124241, 0.10972969233989716, 0.03144068643450737, 0.05160186067223549, -0.00039476374513469636, -0.0021907042246311903, -0.022145356982946396, -0.04867938533425331, -0.039237625896930695, 0.0412583127617836, 0.010727585293352604, 0.040211692452430725, 0.038813311606645584, -0.07428131252527237, 0.06559154391288757, -0.012367947027087212, 0.010463183745741844, -0.032491013407707214, 0.005743762943893671, -0.050526801496744156 ]
0.024674
from version N + 1 to N is required, add nodes of version N with Leader Migration enabled for `kube-controller-manager` back to the control plane, replacing one of version N + 1 each time until there are only nodes of version N. ### (Optional) Disable Leader Migration {#disable-leader-migration} Now that the control plane has been upgraded to run both `kube-controller-manager` and `cloud-controller-manager` of version N + 1, Leader Migration has finished its job and can be safely disabled to save one Lease resource. It is safe to re-enable Leader Migration for the rollback in the future. In a rolling manager, update manifest of `cloud-controller-manager` to unset both `--enable-leader-migration` and `--leader-migration-config=` flag, also remove the mount of `/etc/leadermigration.conf`, and finally remove `/etc/leadermigration.conf`. To re-enable Leader Migration, recreate the configuration file and add its mount and the flags that enable Leader Migration back to `cloud-controller-manager`. ### Default Configuration Starting Kubernetes 1.22, Leader Migration provides a default configuration suitable for the default controller-to-manager assignment. The default configuration can be enabled by setting `--enable-leader-migration` but without `--leader-migration-config=`. For `kube-controller-manager` and `cloud-controller-manager`, if there are no flags that enable any in-tree cloud provider or change ownership of controllers, the default configuration can be used to avoid manual creation of the configuration file. ### Special case: migrating the Node IPAM controller {#node-ipam-controller-migration} If your cloud provider provides an implementation of Node IPAM controller, you should switch to the implementation in `cloud-controller-manager`. Disable Node IPAM controller in `kube-controller-manager` of version N + 1 by adding `--controllers=\*,-nodeipam` to its flags. Then add `nodeipam` to the list of migrated controllers. ```yaml # wildcard version, with nodeipam kind: LeaderMigrationConfiguration apiVersion: controllermanager.config.k8s.io/v1 leaderName: cloud-provider-extraction-migration resourceLock: leases controllerLeaders: - name: route component: \* - name: service component: \* - name: cloud-node-lifecycle component: \* - name: nodeipam - component: \* ``` ## {{% heading "whatsnext" %}} - Read the [Controller Manager Leader Migration](https://github.com/kubernetes/enhancements/tree/master/keps/sig-cloud-provider/2436-controller-manager-leader-migration) enhancement proposal.
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/controller-manager-leader-migration.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/controller-manager-leader-migration.md
[ -0.0047185407020151615, -0.04065132886171341, 0.041860975325107574, -0.01582242175936699, 0.005709108896553516, 0.05994299426674843, -0.07206972688436508, -0.11433017998933792, 0.05729277431964874, 0.08686450123786926, 0.059799838811159134, 0.030428659170866013, 0.001345923519693315, -0.05087904632091522, -0.007090146187692881, 0.022194676101207733, -0.03137959539890289, 0.014217952266335487, -0.038804542273283005, -0.05158800631761551, -0.13074947893619537, -0.03368323668837547, -0.010761864483356476, -0.02043258398771286, -0.04148012772202492, -0.02952437475323677, -0.0693463683128357, 0.0173772145062685, -0.005356276873499155, -0.05277508497238159, -0.057542141526937485, -0.018929528072476387, -0.0121003407984972, 0.013267138041555882, 0.0648619681596756, 0.0014976776437833905, -0.009084660559892654, -0.030714111402630806, -0.01859387941658497, 0.029181361198425293, 0.09529080241918564, -0.017218289896845818, -0.022912751883268356, -0.10073310136795044, 0.04181802645325661, 0.06091651692986488, -0.059303753077983856, -0.053199075162410736, 0.0024802563712000847, -0.03889550268650055, 0.11481902003288269, -0.04596170037984848, 0.027468431740999222, 0.006854155100882053, 0.031224729493260384, 0.03223069757223129, 0.007010255940258503, 0.016119077801704407, 0.09351272135972977, -0.010138511657714844, 0.04455258324742317, 0.030901044607162476, 0.062728151679039, -0.06546715646982193, -0.024448025971651077, -0.03680575266480446, 0.056325819343328476, -0.04623236879706383, -0.01458451896905899, 0.08216259628534317, 0.04726671054959297, -0.012119964696466923, -0.06486549973487854, -0.0401986800134182, 0.02366858348250389, 0.028628285974264145, -0.019216999411582947, 0.07256953418254852, 0.019254136830568314, -0.08183440566062927, 0.04821113124489784, 0.019947580993175507, -0.007668754085898399, -0.0010708342306315899, -0.13309893012046814, -0.07109880447387695, -0.041447874158620834, -0.08027943223714828, 0.0745166689157486, 0.01181937288492918, -0.0006582773639820516, -0.024701107293367386, 0.11424604803323746, 0.006848522927612066, -0.07088788598775864, 0.003355808788910508, -0.04636912792921066, 0.07699666172266006, 0.001217582612298429, -0.01953921467065811, -0.018863501027226448, 0.028802091255784035, 0.03530058637261391, 0.00286123831756413, 0.014087952673435211, -0.003128571668639779, 0.06126842275261879, -0.017454540356993675, -0.03024984523653984, -0.022023674100637436, 0.011159452609717846, 0.06990253180265427, -0.018233785405755043, 0.02546732872724533, 0.05657312646508217, -0.037650156766176224, -0.04267551377415657, -0.01039564236998558, -0.05063578113913536, 0.05761095508933067, 0.09658972173929214, -0.09489570558071136, 0.05254514515399933, 0.01187170296907425, -0.08616931736469269, 0.04817422479391098, -0.030798455700278282, 7.79711004865689e-34, 0.04118216782808304, -0.04514851048588753, 0.04349060356616974, 0.04776148125529289, 0.0936640202999115, -0.04376266896724701, -0.018415391445159912, -0.029215527698397636, -0.051824457943439484, -0.014379790052771568, -0.05187303200364113, 0.004133123904466629, -0.05630254000425339, -0.04439232870936394, 0.002392070135101676, -0.037694934755563736, -0.004046071786433458, -0.008992435410618782, 0.13767199218273163, -0.0414951927959919, 0.10601530224084854, -0.01857052743434906, -0.02795029804110527, -0.030326401814818382, 0.070098876953125, 0.014045925810933113, 0.02516394853591919, -0.07893063873052597, 0.021605845540761948, -0.010849242098629475, -0.0014142037834972143, -0.010537557303905487, -0.02853080816566944, -0.01205088384449482, -0.15472443401813507, -0.023064900189638138, 0.012048868462443352, 0.052279748022556305, -0.10379231721162796, 0.017258960753679276, -0.07539490610361099, -0.022136790677905083, -0.061098482459783554, -0.0516929067671299, 0.08096971362829208, 0.00795168336480856, 0.10168714821338654, -0.07708079367876053, 0.09126028418540955, 0.03154043108224869, -0.08893248438835144, 0.006213565822690725, 0.02016124501824379, -0.04445331171154976, 0.037490759044885635, -0.0092072244733572, 0.1320425420999527, -0.04289179667830467, -0.037981633096933365, -0.05555341765284538, 0.016259601339697838, -0.012853117659687996, -0.05428513139486313, -0.010083083063364029, 0.031812116503715515, -0.02656044065952301, -0.014529014937579632, 0.0336068719625473, -0.01940736547112465, -0.05518989637494087, -0.04705538973212242, 0.00261364015750587, -0.06361863017082214, -0.006480658892542124, 0.053610075265169144, -0.1007789596915245, -0.02992638200521469, 0.06505632400512695, -0.059194013476371765, 0.026936190202832222, 0.0005467316950671375, -0.054445333778858185, -0.007919076830148697, -0.03672632575035095, 0.025224216282367706, -0.03557946905493736, 0.025275997817516327, -0.0038598421961069107, 0.03782470151782036, 0.0723876953125, 0.03677615895867348, -0.04986565560102463, 0.04910457879304886, 0.042237989604473114, -0.03760918602347374, -2.661548247989077e-33, 0.047245871275663376, -0.018890375271439552, 0.010604686103761196, 0.010260334238409996, 0.03234243765473366, 0.014235492795705795, -0.05056857690215111, 0.09943191707134247, -0.06340155750513077, -0.0850583165884018, -0.0037464036140590906, 0.028683921322226524, 0.0464741550385952, 0.020409438759088516, 0.010550867766141891, 0.009858299978077412, -0.10473965108394623, -0.01819925382733345, -0.03242113068699837, 0.024593809619545937, -0.02490893006324768, 0.038072824478149414, -0.017925284802913666, 0.047980666160583496, -0.03825996443629265, 0.03685480356216431, -0.015279852785170078, 0.11950162053108215, 0.04163438081741333, 0.032470472157001495, 0.03279167413711548, -0.0872843787074089, 0.0014684454072266817, 0.07179499417543411, -0.009010151959955692, -0.007424600422382355, -0.005750092677772045, 0.02557055838406086, -0.09858794510364532, 0.0880831852555275, 0.011677608825266361, -0.052936580032110214, 0.043083030730485916, -0.07453877478837967, -0.0005839297664351761, 0.08021017909049988, 0.03744207322597504, -0.06178385391831398, -0.03085099346935749, -0.05849830433726311, -0.012192999944090843, 0.09434947371482849, -0.057204872369766235, 0.029163818806409836, 0.02092229388654232, 0.08369017392396927, 0.05929344892501831, 0.13036343455314636, -0.04603811353445053, 0.0017934752395376563, 0.061868008226156235, -0.0641922727227211, 0.11282079666852951, -0.0038105600979179144, -0.013533401302993298, -0.010737959295511246, 0.04761715605854988, 0.02883004955947399, 0.04051995277404785, 0.0486890934407711, -0.08590085059404373, -0.0074548800475895405, 0.01372695341706276, -0.007395326159894466, -0.007653953041881323, -0.05967804789543152, -0.02410520240664482, -0.025045344606041908, 0.029602935537695885, -0.06594379991292953, -0.07496750354766846, -0.025011276826262474, -0.059988997876644135, -0.048842161893844604, 0.005715848878026009, -0.015137754380702972, 0.1312132626771927, 0.02385253645479679, 0.061133403331041336, 0.044774848967790604, -0.009954273700714111, -0.09452438354492188, -0.0630704015493393, 0.025445606559515, -0.08987343311309814, -4.705686507122664e-8, -0.02482757903635502, 0.0742274671792984, -0.03577127680182457, 0.03699290752410889, 0.12495262920856476, -0.011468347162008286, 0.05290133133530617, -0.02153773047029972, -0.027551492676138878, 0.024164263159036636, -0.017271146178245544, 0.07442038506269455, -0.03209374472498894, 0.022002466022968292, 0.028439978137612343, -0.027228983119130135, -0.02243005484342575, -0.005336397793143988, 0.06335780024528503, -0.06820081174373627, -0.1238853707909584, 0.04199828580021858, -0.0045551094226539135, -0.04009312018752098, 0.021219663321971893, 0.07154111564159393, -0.012246948666870594, 0.007319295778870583, 0.06577996164560318, 0.03322283551096916, -0.03537110611796379, -0.007717539556324482, -0.03799691051244736, 0.07257173210382462, 0.050807636231184006, 0.037400681525468826, -0.056210920214653015, 0.03893371298909187, 0.03818114846944809, 0.01773819327354431, 0.027203181758522987, 0.06430552899837494, -0.10473579168319702, 0.03086385875940323, 0.01358502171933651, 0.08643952012062073, -0.02341807261109352, 0.00564819248393178, -0.04462621733546257, -0.0012113383272662759, -0.03994948789477348, -0.06634600460529327, -0.016128603368997574, 0.055574364960193634, 0.006424108054488897, 0.018032558262348175, -0.03481634706258774, 0.0009472978999838233, 0.028724275529384613, 0.04434848204255104, -0.03136428818106651, -0.06401239335536957, -0.02464904636144638, -0.027416786178946495 ]
-0.037698
{{< feature-state for\_k8s\_version="v1.26" state="stable" >}} Kubernetes keeps many aspects of how pods execute on nodes abstracted from the user. This is by design. However, some workloads require stronger guarantees in terms of latency and/or performance in order to operate acceptably. The kubelet provides methods to enable more complex workload placement policies while keeping the abstraction free from explicit placement directives. For detailed information on resource management, please refer to the [Resource Management for Pods and Containers](/docs/concepts/configuration/manage-resources-containers) documentation. For detailed information on how the kubelet implements resource management, please refer to the [Node ResourceManagers](/docs/concepts/policy/node-resource-managers) documentation. ## {{% heading "prerequisites" %}} {{< include "task-tutorial-prereqs.md" >}} {{< version-check >}} If you are running an older version of Kubernetes, please look at the documentation for the version you are actually running. ## Configuring CPU management policies By default, the kubelet uses [CFS quota](https://en.wikipedia.org/wiki/Completely\_Fair\_Scheduler) to enforce pod CPU limits. When the node runs many CPU-bound pods, the workload can move to different CPU cores depending on whether the pod is throttled and which CPU cores are available at scheduling time. Many workloads are not sensitive to this migration and thus work fine without any intervention. However, in workloads where CPU cache affinity and scheduling latency significantly affect workload performance, the kubelet allows alternative CPU management policies to determine some placement preferences on the node. ## Windows Support {{< feature-state feature\_gate\_name="WindowsCPUAndMemoryAffinity" >}} CPU Manager support can be enabled on Windows by using the `WindowsCPUAndMemoryAffinity` feature gate and it requires support in the container runtime. Once the feature gate is enabled, follow the steps below to configure the [CPU manager policy](#configuration). ## Configuration The CPU Manager policy is set with the `--cpu-manager-policy` kubelet flag or the `cpuManagerPolicy` field in [KubeletConfiguration](/docs/reference/config-api/kubelet-config.v1beta1/). There are two supported policies: \* [`none`](#none-policy): the default policy. \* [`static`](#static-policy): allows pods with certain resource characteristics to be granted increased CPU affinity and exclusivity on the node. The CPU manager periodically writes resource updates through the CRI in order to reconcile in-memory CPU assignments with cgroupfs. The reconcile frequency is set through a new Kubelet configuration value `--cpu-manager-reconcile-period`. If not specified, it defaults to the same duration as `--node-status-update-frequency`. The behavior of the static policy can be fine-tuned using the `--cpu-manager-policy-options` flag. The flag takes a comma-separated list of `key=value` policy options. If you disable the `CPUManagerPolicyOptions` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/) then you cannot fine-tune CPU manager policies. In that case, the CPU manager operates only using its default settings. In addition to the top-level `CPUManagerPolicyOptions` feature gate, the policy options are split into two groups: alpha quality (hidden by default) and beta quality (visible by default). The groups are guarded respectively by the `CPUManagerPolicyAlphaOptions` and `CPUManagerPolicyBetaOptions` feature gates. Diverging from the Kubernetes standard, these feature gates guard groups of options, because it would have been too cumbersome to add a feature gate for each individual option. ## Changing the CPU Manager Policy Since the CPU manager policy can only be applied when kubelet spawns new pods, simply changing from "none" to "static" won't apply to existing pods. So in order to properly change the CPU manager policy on a node, perform the following steps: 1. [Drain](/docs/tasks/administer-cluster/safely-drain-node) the node. 2. Stop kubelet. 3. Remove the old CPU manager state file. The path to this file is `/var/lib/kubelet/cpu\_manager\_state` by default. This clears the state maintained by the CPUManager so that the cpu-sets set up by the new policy won’t conflict with it. 4. Edit the kubelet configuration to change the CPU manager policy to the desired value. 5. Start kubelet. Repeat this process for every node that needs its CPU manager policy changed. Skipping this process will result
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/cpu-management-policies.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/cpu-management-policies.md
[ 0.06060231849551201, 0.07244869321584702, 0.07950196415185928, 0.041988831013441086, -0.04589449614286423, -0.01999996416270733, -0.0244385227560997, -0.02161325328052044, 0.0573740117251873, 0.014358052052557468, -0.06837315112352371, -0.01862317882478237, -0.004981428384780884, -0.04302119091153145, 0.044938355684280396, -0.05727692320942879, 0.10320248454809189, -0.0193477850407362, -0.06313955038785934, -0.0660029873251915, 0.025384053587913513, -0.05921117961406708, 0.05024447292089462, 0.0029194368980824947, -0.019420461729168892, -0.037599559873342514, -0.05123251676559448, -0.029547618702054024, 0.06501737982034683, -0.03498449921607971, -0.04367027059197426, -0.01387831848114729, -0.003711494617164135, 0.046040646731853485, 0.023588504642248154, 0.10310176759958267, 0.005947343073785305, -0.07794056832790375, -0.07278704643249512, 0.04434612765908241, 0.007328773383051157, -0.0027537639252841473, -0.1182040274143219, 0.007501017767935991, -0.023933544754981995, 0.03251658007502556, -0.020556490868330002, -0.05296050384640694, -0.009672342799603939, -0.06505083292722702, 0.01825488917529583, -0.1138068288564682, 0.12041915208101273, 0.036197222769260406, 0.061619117856025696, 0.06814737617969513, 0.030201759189367294, 0.04583972692489624, 0.0778842568397522, 0.022216029465198517, 0.03652011230587959, -0.07736831903457642, 0.02298883907496929, -0.03205764666199684, 0.05637376010417938, -0.021952811628580093, 0.024593250826001167, 0.028953934088349342, 0.01768837869167328, -0.028636803850531578, 0.08450432121753693, 0.012439028359949589, -0.0422343909740448, -0.00040596816688776016, 0.014840397983789444, -0.027330785989761353, -0.022240035235881805, 0.0547049455344677, -0.009384841658174992, -0.06846489757299423, 0.03290528059005737, 0.031204333528876305, 0.07267139106988907, -0.04049329832196236, -0.06868413835763931, -0.03363446146249771, -0.027721330523490906, -0.04607854411005974, 0.03689805045723915, -0.015897903591394424, 0.08465618640184402, -0.03756185248494148, -0.03992859274148941, -0.10853317379951477, 0.08322203159332275, -0.010502899065613747, -0.015025533735752106, 0.02072731964290142, -0.016011592000722885, -0.023622605949640274, 0.05542812496423721, -0.011419353075325489, 0.021666496992111206, 0.05442139133810997, 0.11307629942893982, -0.06580800563097, -0.04215779900550842, 0.024897022172808647, -0.03367231786251068, 0.02272971160709858, 0.02390315569937229, 0.014791253954172134, -0.01654367707669735, 0.028887391090393066, -0.04737461730837822, -0.011072259396314621, 0.022790225222706795, -0.021129664033651352, 0.02117191255092621, 0.09359504282474518, 0.068814218044281, -0.07648751139640808, 0.011017338372766972, 0.0007861904450692236, -0.046992216259241104, -0.016851995140314102, -0.07613296806812286, 5.939206513364716e-33, 0.03827643766999245, -0.12304370850324631, -0.0034861662425100803, 0.012158418074250221, -0.005505377426743507, -0.1318971812725067, -0.03602800890803337, -0.01738952286541462, -0.03657443821430206, -0.07323715090751648, -0.058795638382434845, 0.03843983635306358, -0.05337190628051758, 0.027761150151491165, 0.03371562063694, -0.0480821467936039, -0.066414475440979, 0.07197733223438263, 0.0782427191734314, 0.012590395286679268, 0.05641358718276024, -0.11517412215471268, -0.06229948624968529, -0.00008197299757739529, 0.06289615482091904, 0.00507338996976614, 0.024266166612505913, -0.0720788836479187, -0.048460837453603745, 0.021895665675401688, -0.046777550131082535, 0.02811955288052559, 0.010805121622979641, 0.06289725005626678, -0.12532931566238403, 0.023317411541938782, -0.04889172315597534, 0.021562520414590836, -0.016251113265752792, -0.035959817469120026, 0.0036536636762320995, 0.031801413744688034, 0.01853734813630581, -0.07903681695461273, 0.03716585785150528, -0.04507628083229065, 0.03435724601149559, -0.06706223636865616, 0.061991579830646515, 0.07354766130447388, 0.005724081303924322, -0.004371325019747019, 0.01846502348780632, -0.004569332581013441, 0.07224129885435104, 0.009970012120902538, 0.11322934180498123, -0.0291593074798584, -0.03007381409406662, 0.05022817850112915, -0.06151077151298523, -0.01650945283472538, -0.04091501608490944, 0.02020285464823246, 0.050271160900592804, 0.02853797748684883, -0.045988112688064575, 0.08718854933977127, 0.011286287568509579, 0.018445424735546112, -0.08924797922372818, 0.02724491059780121, 0.03665999695658684, 0.01516236737370491, -0.025668807327747345, -0.06094199791550636, -0.016854500398039818, -0.05831097811460495, -0.19807277619838715, 0.05533008277416229, 0.024470653384923935, -0.008131447248160839, -0.025829317048192024, 0.05663987994194031, 0.010501419194042683, -0.0621911846101284, 0.04441925510764122, 0.026887686923146248, -0.0316784642636776, 0.017972465604543686, 0.03445000573992729, 0.004508216865360737, -0.04461732879281044, 0.03974778950214386, -0.0925283432006836, -6.302166842803991e-33, 0.1263485848903656, -0.008506431244313717, 0.031793903559446335, -0.005820195656269789, 0.03411000967025757, 0.03802071511745453, -0.04137584939599037, 0.00433266069740057, -0.011302830651402473, -0.056439951062202454, -0.12191236764192581, -0.05165524035692215, 0.013936332426965237, 0.05410425364971161, -0.09433944523334503, 0.053016189485788345, -0.10286153852939606, -0.00937596708536148, 0.017964443191885948, 0.012844078242778778, -0.05764003470540047, 0.0006114398711360991, 0.024610484018921852, 0.028658941388130188, -0.0046830130741000175, -0.049187954515218735, -0.008794163353741169, -0.011809051968157291, -0.03426175191998482, -0.040079109370708466, -0.03185907378792763, -0.14090964198112488, -0.02841130644083023, 0.019750073552131653, 0.04211374372243881, -0.040293965488672256, -0.05578894168138504, 0.10896167904138565, 0.013376920484006405, 0.01861989125609398, 0.0813290998339653, 0.014832898043096066, -0.04183376580476761, -0.04538769647479057, -0.03844393789768219, 0.05730393901467323, -0.016457876190543175, -0.058124929666519165, -0.042964305728673935, -0.08877953141927719, 0.030631018802523613, -0.0061337510123848915, -0.025360075756907463, 0.08036119490861893, -0.008465456776320934, -0.008610009215772152, 0.024517199024558067, 0.0689082071185112, 0.0242303553968668, -0.00013370202213991433, 0.02692767046391964, -0.05104302987456322, 0.06571681797504425, 0.0006106364890001714, -0.029041970148682594, -0.032271068543195724, -0.023021474480628967, 0.046273376792669296, -0.0008332459256052971, 0.0399029441177845, -0.06003850698471069, -0.02977026253938675, 0.024737665429711342, 0.049530789256095886, -0.036267224699258804, 0.0033570153173059225, 0.03770459070801735, -0.028013234958052635, 0.06387502700090408, 0.015376722440123558, -0.0635012537240982, 0.08141020685434341, -0.08084524422883987, 0.009848611429333687, 0.036780279129743576, 0.08197443932294846, 0.09356483817100525, 0.040405578911304474, 0.0044296011328697205, 0.07034694403409958, 0.026846284046769142, 0.002354004653170705, -0.05334039032459259, 0.10865210741758347, -0.03840528428554535, -6.095636706504592e-8, 0.07916481792926788, -0.01321589294821024, -0.005069538485258818, 0.033435218036174774, 0.04382072016596794, -0.060338959097862244, 0.05652769282460213, 0.0480976328253746, -0.033159445971250534, 0.04446382075548172, 0.011749915778636932, 0.07317888736724854, -0.017350148409605026, -0.03858263045549393, 0.06299065798521042, -0.017285946756601334, -0.017111841589212418, 0.040064286440610886, -0.016313645988702774, -0.06818941235542297, -0.012388615868985653, -0.017989637330174446, 0.020703783258795738, 0.01551728043705225, 0.02384607121348381, 0.07065626978874207, 0.05049930885434151, 0.0426090769469738, 0.03195834904909134, 0.0048425872810184956, -0.030718639492988586, 0.02517343871295452, -0.08324555307626724, 0.06034988909959793, 0.032913077622652054, 0.04024014621973038, -0.18441921472549438, 0.054295435547828674, 0.04944680631160736, 0.05646347627043724, 0.0016139510553330183, -0.06063712015748024, -0.022974228486418724, 0.020015809684991837, 0.0032147131860256195, 0.06198079138994217, -0.050945766270160675, 0.07926678657531738, 0.012810387648642063, -0.013137390837073326, -0.016067495569586754, -0.03741104155778885, -0.03355007246136665, 0.0769684910774231, 0.007371421903371811, 0.058209411799907684, 0.021821102127432823, -0.05437339097261429, 0.05716407671570778, -0.011532445438206196, -0.0036513342056423426, 0.03893063962459564, 0.006784745026379824, -0.017828620970249176 ]
0.167547
so that the cpu-sets set up by the new policy won’t conflict with it. 4. Edit the kubelet configuration to change the CPU manager policy to the desired value. 5. Start kubelet. Repeat this process for every node that needs its CPU manager policy changed. Skipping this process will result in kubelet crashlooping with the following error: ``` could not restore state from checkpoint: configured policy "static" differs from state checkpoint policy "none", please drain this node and delete the CPU manager checkpoint file "/var/lib/kubelet/cpu\_manager\_state" before restarting Kubelet ``` {{< note >}} if the set of online CPUs changes on the node, the node must be drained and CPU manager manually reset by deleting the state file `cpu\_manager\_state` in the kubelet root directory. {{< /note >}} ### `none` policy configuration This policy has no extra configuration items. ### `static` policy configuration This policy manages a shared pool of CPUs that initially contains all CPUs in the node. The amount of exclusively allocatable CPUs is equal to the total number of CPUs in the node minus any CPU reservations by the kubelet `--kube-reserved` or `--system-reserved` options. From 1.17, the CPU reservation list can be specified explicitly by kubelet `--reserved-cpus` option. The explicit CPU list specified by `--reserved-cpus` takes precedence over the CPU reservation specified by `--kube-reserved` and `--system-reserved`. CPUs reserved by these options are taken, in integer quantity, from the initial shared pool in ascending order by physical core ID. This shared pool is the set of CPUs on which any containers in `BestEffort` and `Burstable` pods run. Containers in `Guaranteed` pods with fractional CPU `requests` also run on CPUs in the shared pool. Only containers that are both part of a `Guaranteed` pod and have integer CPU `requests` are assigned exclusive CPUs. {{< note >}} The kubelet requires a CPU reservation greater than zero be made using either `--kube-reserved` and/or `--system-reserved` or `--reserved-cpus` when the static policy is enabled. This is because zero CPU reservation would allow the shared pool to become empty. {{< /note >}} ### Static policy options {#cpu-policy-static--options} You can toggle groups of options on and off based upon their maturity level using the following feature gates: \* `CPUManagerPolicyBetaOptions` default enabled. Disable to hide beta-level options. \* `CPUManagerPolicyAlphaOptions` default disabled. Enable to show alpha-level options. You will still have to enable each option using the `CPUManagerPolicyOptions` kubelet option. The following policy options exist for the static `CPUManager` policy: \* `full-pcpus-only` (GA, visible by default) (1.33 or higher) \* `distribute-cpus-across-numa` (beta, visible by default) (1.33 or higher) \* `align-by-socket` (alpha, hidden by default) (1.25 or higher) \* `distribute-cpus-across-cores` (alpha, hidden by default) (1.31 or higher) \* `strict-cpu-reservation` (GA, visible by default) (1.35 or higher) \* `prefer-align-cpus-by-uncorecache` (beta, visible by default) (1.34 or higher) The `full-pcpus-only` option can be enabled by adding `full-pcpus-only=true` to the CPUManager policy options. Likewise, the `distribute-cpus-across-numa` option can be enabled by adding `distribute-cpus-across-numa=true` to the CPUManager policy options. When both are set, they are "additive" in the sense that CPUs will be distributed across NUMA nodes in chunks of full-pcpus rather than individual cores. The `align-by-socket` policy option can be enabled by adding `align-by-socket=true` to the `CPUManager` policy options. It is also additive to the `full-pcpus-only` and `distribute-cpus-across-numa` policy options. The `distribute-cpus-across-cores` option can be enabled by adding `distribute-cpus-across-cores=true` to the `CPUManager` policy options. It cannot be used with `full-pcpus-only` or `distribute-cpus-across-numa` policy options together at this moment. The `strict-cpu-reservation` option can be enabled by adding `strict-cpu-reservation=true` to the CPUManager policy options followed by removing the `/var/lib/kubelet/cpu\_manager\_state` file and restart kubelet. The `prefer-align-cpus-by-uncorecache` option can be enabled by adding the `prefer-align-cpus-by-uncorecache` to the `CPUManager`
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/cpu-management-policies.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/cpu-management-policies.md
[ 0.016055278480052948, 0.0129310954362154, 0.04981614276766777, -0.007633393630385399, -0.031259022653102875, 0.018590321764349937, -0.0013733021914958954, -0.020145615562796593, -0.006474616006016731, -0.00016771342779975384, -0.028143757954239845, -0.059682607650756836, -0.01910174824297428, -0.07008926570415497, 0.014927519485354424, 0.008502081036567688, 0.03134746477007866, 0.017397906631231308, -0.0688944011926651, -0.03903058543801308, -0.03171340376138687, -0.06107297167181969, 0.00408876733854413, 0.03520229831337929, 0.00027838977985084057, -0.04288163781166077, 0.012728331610560417, 0.01726565696299076, 0.005922915879637003, -0.07611797004938126, -0.023612549528479576, -0.048979975283145905, -0.030474908649921417, 0.0008071225602179766, 0.0910106897354126, 0.08525244891643524, -0.0521882064640522, -0.06658188253641129, -0.07701137661933899, 0.017338022589683533, 0.048106465488672256, 0.009897834621369839, -0.09046387672424316, 0.010340344160795212, 0.010926630347967148, 0.051880594342947006, -0.01314535178244114, -0.025559881702065468, 0.015767203643918037, -0.07998178154230118, 0.029775600880384445, -0.0856151282787323, 0.09527957439422607, -0.0013515253085643053, 0.09063101559877396, 0.0948832631111145, 0.09394201636314392, -0.0071594431065022945, 0.05902542173862457, 0.031236613169312477, -0.02809908241033554, -0.03265496343374252, 0.024554038420319557, -0.02593100070953369, 0.05384032428264618, 0.05281444266438484, 0.0005173895042389631, 0.011745668016374111, 0.006741644814610481, 0.06330753862857819, 0.06680604070425034, -0.03776417672634125, -0.04729133099317551, 0.0071201808750629425, -0.013672837056219578, -0.01871367357671261, -0.09814884513616562, 0.0028445536736398935, -0.023554503917694092, -0.06633499264717102, 0.006296718958765268, -0.020360605791211128, 0.08091118186712265, -0.08899521082639694, -0.06718103587627411, -0.06408403068780899, -0.08384136110544205, -0.06342169642448425, 0.11929291486740112, 0.020136527717113495, 0.028431551530957222, 0.035386551171541214, 0.08354516327381134, -0.09100048989057541, 0.057497814297676086, 0.028780534863471985, 0.011689881794154644, 0.013341784477233887, 0.020539961755275726, -0.03953014314174652, 0.02750793844461441, -0.002501547569409013, 0.007181036286056042, 0.09891483187675476, 0.03287998214364052, -0.0646330863237381, 0.01615714095532894, 0.028966866433620453, -0.015666130930185318, -0.09033889323472977, 0.039415910840034485, 0.035658691078424454, 0.05398944392800331, 0.03168230503797531, 0.023725613951683044, 0.02271254174411297, 0.0059609850868582726, -0.0039515420794487, 0.00856654904782772, 0.07600448280572891, 0.01703581027686596, -0.041542548686265945, 0.020755326375365257, 0.000055255888582905754, -0.04572811722755432, 0.03037186525762081, -0.026160765439271927, 2.449111623211527e-33, 0.06418109685182571, -0.05472981929779053, 0.04167189076542854, -0.0476827546954155, 0.01925203949213028, -0.10280390828847885, -0.08513470739126205, -0.07387149333953857, -0.04558485001325607, -0.05965128168463707, 0.004980404395610094, -0.050725240260362625, 0.0005433542537502944, 0.040945667773485184, 0.06496084481477737, -0.04303110018372536, -0.008191578090190887, 0.06738866120576859, 0.10672791302204132, -0.0004637918609660119, 0.09690575301647186, -0.01928785629570484, -0.07352893054485321, 0.027173545211553574, 0.0014021155657246709, 0.06180186942219734, 0.04812612384557724, -0.007628969848155975, -0.03039766475558281, 0.010058925487101078, -0.048691727221012115, 0.05456169322133064, -0.03531046584248543, 0.060458146035671234, -0.12826164066791534, 0.029579848051071167, -0.06800638884305954, 0.05723338946700096, -0.05085887014865875, -0.0354931578040123, -0.010242107324302197, 0.024668319150805473, -0.019598621875047684, -0.06169229373335838, 0.041122812777757645, -0.05401889979839325, -0.008223953656852245, -0.04783696308732033, 0.059054601937532425, 0.020970894023776054, -0.046489156782627106, 0.016696691513061523, 0.08206483721733093, -0.032965101301670074, 0.024091936647892, 0.060703009366989136, 0.09390287846326828, -0.03797277808189392, -0.004784826189279556, 0.06703365594148636, 0.05475493147969246, 0.01189576368778944, -0.013704797253012657, 0.04073667898774147, 0.04950568079948425, 0.04968469962477684, -0.055778954178094864, 0.02572651207447052, -0.07023312151432037, 0.0008848747238516808, -0.09249921143054962, 0.05620596185326576, 0.03188934549689293, -0.02148369885981083, -0.0032488456927239895, -0.009542134590446949, -0.03615887463092804, -0.05079972743988037, -0.2602044343948364, -0.01385823730379343, 0.03994469344615936, -0.07801152020692825, -0.02767045423388481, -0.04331711679697037, 0.042738623917102814, -0.061045896261930466, 0.0012308921432122588, 0.0695226639509201, -0.02377944253385067, 0.06564163416624069, 0.01634093001484871, -0.07897460460662842, -0.015067966654896736, 0.07848180830478668, -0.11766034364700317, -3.4985286947783546e-33, 0.0559920109808445, -0.017188530415296555, 0.04018779844045639, 0.03516002371907234, 0.028625071048736572, 0.02740895375609398, -0.001978218322619796, 0.030563557520508766, -0.04566432908177376, -0.041654907166957855, -0.06278779357671738, -0.05250681936740875, -0.015079705975949764, 0.016393568366765976, -0.029394889250397682, 0.041969992220401764, -0.10554390400648117, 0.028571784496307373, -0.005435111466795206, 0.03558174520730972, 0.0075716557912528515, -0.040932100266218185, -0.045045096427202225, 0.05078107863664627, 0.006993118207901716, 0.026321088895201683, -0.007424048613756895, 0.04200926423072815, 0.015246556140482426, 0.010677989572286606, 0.012448333203792572, -0.08868791908025742, -0.03171001374721527, 0.09670314192771912, 0.018999505788087845, -0.036473099142313004, -0.01295399945229292, 0.019449470564723015, -0.032144151628017426, 0.055795345455408096, 0.07231958210468292, 0.04224488139152527, -0.023430589586496353, -0.011740083806216717, 0.030827097594738007, 0.05673680827021599, -0.0025975380558520555, -0.033472780138254166, -0.022826068103313446, -0.12415970861911774, -0.028471510857343674, -0.050494275987148285, 0.04486847296357155, 0.10008639097213745, -0.040262412279844284, -0.014648061245679855, 0.08994901925325394, 0.08758923411369324, -0.018833206966519356, -0.07119569182395935, -0.009378348477184772, -0.12103541940450668, 0.040454354137182236, 0.0376552939414978, -0.013161606155335903, -0.05708739161491394, 0.027830570936203003, 0.04887751117348671, 0.0037631243467330933, 0.02300203964114189, -0.017674332484602928, 0.028426742181181908, 0.017405571416020393, 0.021535301581025124, -0.0393407829105854, 0.057218365371227264, 0.01674836501479149, 0.00876482855528593, -0.013412919826805592, 0.010205309838056564, -0.054467007517814636, -0.014117315411567688, -0.04928569495677948, -0.013736200518906116, 0.06348082423210144, 0.006591296289116144, 0.03688766807317734, 0.05218895524740219, 0.04709414392709732, -0.019857143983244896, -0.03647385910153389, -0.05237765610218048, -0.008737713098526001, 0.06504151970148087, -0.06483994424343109, -4.5234845202912766e-8, 0.09999352693557739, -0.06837856024503708, -0.0505220927298069, 0.08002333343029022, 0.11766298115253448, -0.060709789395332336, 0.020173849537968636, -0.04108657315373421, -0.06256864964962006, -0.018087314441800117, -0.014343404211103916, 0.08946624398231506, -0.0092305364087224, 0.0014314352301880717, 0.01872534491121769, -0.06145677715539932, -0.03709103912115097, 0.06367315351963043, 0.06375010311603546, -0.0023441098164767027, -0.06827607750892639, -0.027055446058511734, -0.01571268029510975, 0.049602095037698746, 0.01810825802385807, 0.09398548305034637, 0.10421651601791382, 0.011137369088828564, 0.06538765877485275, 0.06510553508996964, -0.052067533135414124, 0.0009039261494763196, -0.03569284453988075, 0.013650103472173214, -0.021850306540727615, 0.027902409434318542, -0.1103191077709198, 0.027371598407626152, 0.09476550668478012, -0.002961853751912713, -0.0037980189081281424, -0.04092166945338249, -0.06745709478855133, -0.002016838174313307, 0.019420674070715904, 0.0015769179444760084, -0.047945909202098846, 0.03887227922677994, 0.06212197616696358, -0.03144203871488571, -0.07039390504360199, -0.022845346480607986, -0.04299170523881912, 0.08901724964380264, -0.0008793926681391895, 0.04244261607527733, -0.0317922979593277, -0.05266708880662918, 0.006363780237734318, 0.00911212619394064, 0.05268191173672676, -0.02888684719800949, 0.0005742472712881863, -0.07291731238365173 ]
0.121815
It cannot be used with `full-pcpus-only` or `distribute-cpus-across-numa` policy options together at this moment. The `strict-cpu-reservation` option can be enabled by adding `strict-cpu-reservation=true` to the CPUManager policy options followed by removing the `/var/lib/kubelet/cpu\_manager\_state` file and restart kubelet. The `prefer-align-cpus-by-uncorecache` option can be enabled by adding the `prefer-align-cpus-by-uncorecache` to the `CPUManager` policy options. If incompatible options are used, the kubelet will fail to start with the error explained in the logs. For mode detail about the behavior of the individual options you can configure, please refer to the [Node ResourceManagers](/docs/concepts/policy/node-resource-managers) documentation.
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/cpu-management-policies.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/cpu-management-policies.md
[ -0.002260733861476183, 0.03543418273329735, 0.021996617317199707, 0.020622078329324722, -0.04897734522819519, -0.005470837466418743, -0.0311140064150095, -0.01809167116880417, 0.029227901250123978, 0.00040501728653907776, -0.0009260382503271103, -0.08842485398054123, -0.03634046018123627, -0.06893900036811829, 0.00824243575334549, -0.011595738120377064, 0.05083109438419342, 0.03382508456707001, 0.007628532126545906, -0.012102837674319744, -0.05436381325125694, -0.027263689786195755, 0.0005536001990549266, 0.041026804596185684, 0.01121299248188734, -0.08498331159353256, -0.018457071855664253, 0.019131582230329514, 0.040297966450452805, -0.08462857455015182, -0.009469556622207165, -0.021062389016151428, 0.010213423520326614, 0.06616085022687912, 0.08809027820825577, 0.08679571002721786, -0.055391423404216766, -0.11719977855682373, -0.11776753515005112, 0.0019215315114706755, 0.06290105730295181, -0.019145086407661438, -0.09061567485332489, 0.031740397214889526, 0.008643018081784248, 0.06996893137693405, -0.04549512267112732, -0.040503066033124924, -0.011412554420530796, -0.042462561279535294, -0.0010354918194934726, -0.0834130048751831, 0.10178340971469879, -0.006756945047527552, 0.06589589267969131, 0.08694954216480255, 0.004563468974083662, -0.0016832697438076138, 0.1014697253704071, 0.006631891708821058, -0.01319862063974142, -0.06070690602064133, 0.020413799211382866, -0.026575427502393723, 0.013561820611357689, 0.011300922371447086, -0.003109161276370287, 0.018236465752124786, -0.007562730927020311, 0.09170882403850555, 0.1259743720293045, -0.04968264698982239, -0.04988715052604675, 0.00694485567510128, 0.007685549091547728, 0.025154009461402893, -0.05979170650243759, -0.024653097614645958, 0.026214780285954475, -0.09174162894487381, -0.028763866052031517, -0.025641439482569695, 0.06346110254526138, -0.08921075612306595, -0.022749081254005432, -0.05418677255511284, -0.08113641291856766, 0.01184062846004963, 0.028044428676366806, -0.0306953527033329, 0.017090782523155212, 0.028342533856630325, 0.038871653378009796, -0.069492869079113, 0.07893577963113785, -0.01891026832163334, -0.03911884129047394, 0.037391647696495056, -0.005324649624526501, -0.0289644543081522, 0.030464742332696915, 0.02709038369357586, -0.039965372532606125, 0.05446244403719902, 0.02090037800371647, -0.06231049820780754, -0.009310923516750336, 0.022767914459109306, -0.027486389502882957, -0.0469089075922966, 0.00529015576466918, 0.047098610550165176, 0.003266260726377368, -0.013943588361144066, -0.00416057463735342, 0.02208867110311985, 0.06689983606338501, 0.007665048353374004, 0.04404156282544136, 0.04444877430796623, -0.02759488858282566, -0.048883818089962006, -0.05426762253046036, -0.002634129486978054, -0.0620550736784935, 0.01371222548186779, -0.05317104980349541, -3.1225239596293026e-34, 0.0641700029373169, -0.06137583404779434, 0.05120339244604111, -0.07515016943216324, -0.021586205810308456, -0.10746508091688156, -0.08573613315820694, -0.06685762852430344, -0.07765868306159973, -0.011044366285204887, -0.00045949668856337667, -0.026370884850621223, -0.018955925479531288, 0.047471385449171066, 0.05124913156032562, -0.028983119875192642, 0.003425654023885727, 0.10055185854434967, 0.09199012815952301, -0.004485776647925377, 0.0929432213306427, 0.007281954865902662, -0.06915333122015, 0.0004190127656329423, 0.009527410380542278, 0.027717040851712227, -0.007331524044275284, -0.03985941782593727, 0.0016835152637213469, 0.010827113874256611, -0.04185768589377403, 0.0448213554918766, -0.00838075764477253, 0.05777374282479286, -0.10332853347063065, 0.01181033905595541, -0.058474067598581314, 0.05862918123602867, -0.06340339779853821, 0.003795526921749115, -0.0019618866499513388, 0.03254428133368492, 0.0012527835788205266, -0.12566687166690826, 0.027356751263141632, 0.020154885947704315, 0.0004010876000393182, -0.03579218313097954, 0.0718727707862854, 0.05812700092792511, -0.021945621818304062, 0.04601648449897766, 0.04110558331012726, 0.0005512711359187961, 0.06350098550319672, -0.0032132610213011503, 0.12172228842973709, 0.01589677669107914, 0.01676718145608902, 0.03534529358148575, -0.02880966290831566, -0.03545130416750908, -0.005245304200798273, -0.030394073575735092, 0.003813938470557332, 0.04739987850189209, -0.0457204207777977, 0.038803618401288986, -0.09691358357667923, 0.011948729865252972, -0.06463537365198135, 0.053896624594926834, -0.018183860927820206, -0.02068491280078888, -0.036887701600790024, -0.030228354036808014, -0.024377433583140373, -0.03694391995668411, -0.19724693894386292, 0.002584136324003339, 0.053193289786577225, -0.03283250704407692, -0.0009346142178401351, -0.012601988390088081, 0.013781910762190819, -0.05659126862883568, 0.0194954052567482, 0.0730857104063034, 0.003666054690256715, 0.08230073004961014, 0.03247296065092087, -0.019473455846309662, -0.028975429013371468, 0.052198149263858795, -0.1443883627653122, -1.1266304281910474e-33, 0.03639236092567444, -0.005015239585191011, 0.008103613741695881, 0.06915441900491714, -0.004970564506947994, 0.027126526460051537, 0.02837582677602768, -0.03617976978421211, -0.0006228444981388748, -0.015340130776166916, -0.005603536032140255, -0.08395105600357056, 0.004655852913856506, -0.007973670959472656, -0.03628883510828018, 0.04452698677778244, -0.10652410238981247, 0.0340924933552742, 0.001225328422151506, 0.02026091143488884, -0.007794312201440334, -0.004188693128526211, 0.001815065392293036, 0.04034421592950821, 0.08626684546470642, 0.02152068167924881, 0.01609962433576584, 0.01540986355394125, 0.0010905596427619457, -0.0633261650800705, -0.01096432562917471, -0.05192646384239197, -0.05778563767671585, 0.028196237981319427, 0.05735791102051735, -0.03944272920489311, -0.020128965377807617, 0.11666055023670197, 0.00023845573014114052, 0.08111421763896942, 0.001095186802558601, 0.06514076143503189, -0.024636199697852135, -0.003023747354745865, 0.013263670727610588, 0.02394462376832962, 0.07029411196708679, -0.09260959178209305, -0.0308055616915226, -0.08924082666635513, -0.004287589807063341, -0.05279691889882088, 0.08194631338119507, 0.11016769707202911, -0.023951932787895203, -0.010695474222302437, 0.04006708785891533, 0.0719495564699173, 0.018355395644903183, -0.10795938223600388, 0.050383854657411575, -0.16716746985912323, 0.01617555506527424, -0.03278099745512009, 0.015721166506409645, -0.017498375847935677, 0.025319159030914307, 0.03571905195713043, 0.016398532316088676, 0.006889138370752335, -0.029677007347345352, -0.017702734097838402, 0.0379500575363636, 0.053547102957963943, -0.05959134176373482, 0.066239133477211, 0.057253748178482056, 0.005919869989156723, 0.04156365990638733, 0.011427738703787327, -0.08629019558429718, 0.011629823595285416, 0.030568445101380348, -0.0022886779624968767, 0.053547557443380356, -0.007383785676211119, 0.07710646837949753, 0.05764656886458397, 0.004734118469059467, -0.034717343747615814, -0.04945212975144386, -0.03811626508831978, 0.03346153721213341, 0.06596868485212326, -0.09006775915622711, -4.490841476467722e-8, 0.07852697372436523, -0.10519733279943466, -0.09732694178819656, 0.054354723542928696, 0.08665812015533447, -0.08168050646781921, 0.012405132874846458, -0.049683015793561935, -0.03557096794247627, 0.07081249356269836, 0.0020001751836389303, 0.061554718762636185, 0.010075964033603668, -0.037270013242959976, 0.07713788747787476, -0.021389465779066086, -0.03927520662546158, 0.06594175100326538, 0.04541337490081787, -0.017495274543762207, -0.08603417873382568, 0.041577182710170746, -0.020113296806812286, 0.009081043303012848, -0.016481854021549225, 0.10698913782835007, 0.03559713065624237, 0.023939384147524834, 0.09077145159244537, 0.028617918491363525, -0.0753697082400322, 0.04265029355883598, -0.03349563479423523, -0.018076453357934952, 0.029893921688199043, 0.05873199552297592, -0.08412762731313705, 0.10226964205503464, 0.07028711587190628, 0.018478749319911003, -0.023633448407053947, -0.03408840298652649, -0.07797472178936005, 0.024484839290380478, 0.0036775246262550354, 0.03247031196951866, -0.03556167706847191, 0.06457338482141495, 0.011508422903716564, -0.012326976284384727, -0.017176557332277298, -0.00039395730709657073, -0.019502734765410423, 0.05756228417158127, -0.02636987529695034, 0.046256452798843384, -0.02791169099509716, -0.0925636813044548, 0.01288587972521782, -0.048584409058094025, 0.06394633650779724, -0.04994305968284607, 0.004073734860867262, -0.023899678140878677 ]
0.129683
{{< feature-state state="beta" for\_k8s\_version="v1.11" >}} Since cloud providers develop and release at a different pace compared to the Kubernetes project, abstracting the provider-specific code to the `{{< glossary\_tooltip text="cloud-controller-manager" term\_id="cloud-controller-manager" >}}` binary allows cloud vendors to evolve independently from the core Kubernetes code. The `cloud-controller-manager` can be linked to any cloud provider that satisfies [cloudprovider.Interface](https://github.com/kubernetes/cloud-provider/blob/master/cloud.go). For backwards compatibility, the [cloud-controller-manager](https://github.com/kubernetes/kubernetes/tree/master/cmd/cloud-controller-manager) provided in the core Kubernetes project uses the same cloud libraries as `kube-controller-manager`. Cloud providers already supported in Kubernetes core are expected to use the in-tree cloud-controller-manager to transition out of Kubernetes core. ## Administration ### Requirements Every cloud has their own set of requirements for running their own cloud provider integration, it should not be too different from the requirements when running `kube-controller-manager`. As a general rule of thumb you'll need: \* cloud authentication/authorization: your cloud may require a token or IAM rules to allow access to their APIs \* kubernetes authentication/authorization: cloud-controller-manager may need RBAC rules set to speak to the kubernetes apiserver \* high availability: like kube-controller-manager, you may want a high available setup for cloud controller manager using leader election (on by default). ### Running cloud-controller-manager Successfully running cloud-controller-manager requires some changes to your cluster configuration. \* `kubelet`, `kube-apiserver`, and `kube-controller-manager` must be set according to the user's usage of external CCM. If the user has an external CCM (not the internal cloud controller loops in the Kubernetes Controller Manager), then `--cloud-provider=external` must be specified. Otherwise, it should not be specified. Keep in mind that setting up your cluster to use cloud controller manager will change your cluster behaviour in a few ways: \* Components that specify `--cloud-provider=external` will add a taint `node.cloudprovider.kubernetes.io/uninitialized` with an effect `NoSchedule` during initialization. This marks the node as needing a second initialization from an external controller before it can be scheduled work. Note that in the event that cloud controller manager is not available, new nodes in the cluster will be left unschedulable. The taint is important since the scheduler may require cloud specific information about nodes such as their region or type (high cpu, gpu, high memory, spot instance, etc). \* cloud information about nodes in the cluster will no longer be retrieved using local metadata, but instead all API calls to retrieve node information will go through cloud controller manager. This may mean you can restrict access to your cloud API on the kubelets for better security. For larger clusters you may want to consider if cloud controller manager will hit rate limits since it is now responsible for almost all API calls to your cloud from within the cluster. The cloud controller manager can implement: \* Node controller - responsible for updating kubernetes nodes using cloud APIs and deleting kubernetes nodes that were deleted on your cloud. \* Service controller - responsible for loadbalancers on your cloud against services of type LoadBalancer. \* Route controller - responsible for setting up network routes on your cloud \* any other features you would like to implement if you are running an out-of-tree provider. ## Examples If you are using a cloud that is currently supported in Kubernetes core and would like to adopt cloud controller manager, see the [cloud controller manager in kubernetes core](https://github.com/kubernetes/kubernetes/tree/master/cmd/cloud-controller-manager). For cloud controller managers not in Kubernetes core, you can find the respective projects in repositories maintained by cloud vendors or by SIGs. For providers already in Kubernetes core, you can run the in-tree cloud controller manager as a DaemonSet in your cluster, use the following as a guideline: {{% code\_sample file="admin/cloud/ccm-example.yaml" %}} ## Limitations Running cloud controller manager comes with a few possible limitations.
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/running-cloud-controller.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/running-cloud-controller.md
[ -0.0742407739162445, -0.0200987309217453, 0.05074277147650719, 0.010872913524508476, 0.013868868350982666, 0.0901472195982933, 0.01735755242407322, -0.019390298053622246, 0.03489192575216293, 0.08871546387672424, 0.05512858182191849, -0.017986848950386047, -0.004626000765711069, 0.0014095460064709187, 0.039198730140924454, 0.0405908040702343, 0.10877975076436996, -0.052038997411727905, -0.0023957248777151108, -0.015725141391158104, -0.0016683648573234677, 0.005521973595023155, -0.012588698416948318, 0.03187985718250275, -0.09617948532104492, 0.014361688867211342, -0.06211763992905617, -0.032867275178432465, -0.0064996387809515, 0.021310998126864433, -0.053516045212745667, -0.018927128985524178, -0.04084616154432297, 0.03672152757644653, 0.0020542056299746037, -0.0024978616274893284, -0.010491842404007912, -0.04992208629846573, -0.09865632653236389, 0.0173585657030344, 0.057682450860738754, -0.0629071369767189, -0.07807475328445435, -0.08174281567335129, 0.06832921504974365, 0.044764336198568344, -0.0076970593072474, -0.015744715929031372, -0.031215429306030273, -0.03375576436519623, 0.062176115810871124, -0.0954267606139183, 0.0373261459171772, -0.014474227093160152, 0.032200880348682404, 0.031242532655596733, -0.058408237993717194, 0.046433623880147934, 0.0996330976486206, 0.033078305423259735, 0.011094699613749981, -0.012278261594474316, 0.01774752326309681, -0.0044555626809597015, 0.004635827615857124, -0.007932931184768677, 0.04484783485531807, 0.017668195068836212, -0.03246788680553436, -0.030204925686120987, 0.05121057480573654, -0.06586235016584396, -0.013477103784680367, 0.00008550939674023539, 0.02151080034673214, -0.03432406112551689, -0.039136841893196106, 0.0948498472571373, 0.042356155812740326, -0.06643727421760559, 0.04704469069838524, 0.07806403189897537, 0.07801452279090881, 0.0722346380352974, -0.10120964050292969, -0.03154916688799858, -0.04895118623971939, -0.008207225240767002, 0.0627792477607727, -0.022875282913446426, 0.037870991975069046, -0.06970297545194626, 0.06668245792388916, -0.07899605482816696, 0.018149787560105324, 0.002528401557356119, -0.04895713925361633, -0.005659964866936207, 0.0018874747911468148, -0.026028696447610855, -0.07737063616514206, -0.023655850440263748, 0.017739448696374893, 0.015541487373411655, 0.07242166250944138, -0.0046792966313660145, -0.06422040611505508, 0.021965425461530685, 0.03161006420850754, -0.0019099347991868854, 0.0034439577721059322, 0.011119603179395199, -0.04105500504374504, -0.02624460868537426, 0.04131919518113136, -0.00722375838086009, -0.021997060626745224, 0.00373759213835001, 0.04150854051113129, 0.07072035223245621, -0.028428884223103523, -0.12180375307798386, -0.0033624086063355207, 0.020028971135616302, -0.07149024307727814, 0.08897789567708969, -0.09867680817842484, 2.460866750390742e-33, 0.059236831963062286, -0.01489621214568615, 0.01899879239499569, -0.0038909658323973417, 0.0318022221326828, -0.07428005337715149, 0.025394082069396973, -0.016523068770766258, -0.011357414536178112, 0.011892743408679962, -0.061106208711862564, 0.0370476134121418, -0.01935480162501335, 0.017362892627716064, 0.03429011255502701, -0.015711495652794838, -0.072141133248806, 0.043342094868421555, 0.1019936054944992, -0.04793820157647133, 0.009680934250354767, 0.030087441205978394, 0.029039710760116577, -0.04973097890615463, 0.1163163110613823, -0.007465020287781954, 0.033155329525470734, -0.05761759728193283, 0.08189404755830765, -0.0086065623909235, 0.030582861974835396, -0.015303853899240494, 0.032676808536052704, -0.021216988563537598, -0.08727538585662842, -0.025823617354035378, -0.1015278697013855, -0.0348375029861927, -0.1002289354801178, 0.036761850118637085, -0.015563685446977615, -0.018540237098932266, -0.07283224165439606, -0.03062586858868599, 0.022740142419934273, -0.01903725229203701, 0.05691106244921684, -0.1082264631986618, 0.08963406831026077, 0.013110930100083351, -0.07094927132129669, -0.020568761974573135, 0.015173888765275478, -0.015511306934058666, 0.08754190057516098, 0.011079586111009121, 0.10924161225557327, -0.03500301390886307, 0.0036669843830168247, -0.04250720143318176, -0.05924239009618759, -0.06898689270019531, -0.009627015329897404, -0.0466739721596241, 0.02483522891998291, -0.015552044846117496, -0.055845726281404495, 0.03287487104535103, -0.04193763807415962, -0.043146416544914246, -0.04778481274843216, 0.024040160700678825, -0.012941689230501652, 0.016775038093328476, 0.07220226526260376, -0.12423798441886902, -0.04954659566283226, 0.016897855326533318, -0.08737779408693314, 0.04077376052737236, -0.003494077827781439, -0.009413664229214191, -0.009397615678608418, 0.09566047787666321, -0.024360712617635727, -0.047912657260894775, 0.06177545711398125, 0.01358790323138237, 0.03372248634696007, 0.003962819930166006, -0.028090322390198708, -0.056780070066452026, 0.023193778470158577, 0.05370379611849785, -0.036105867475271225, -3.374561060540636e-33, 0.0674547627568245, -0.05597377568483353, -0.018713222816586494, 0.040677353739738464, 0.06329020857810974, 0.0007601184770464897, 0.03617219254374504, 0.030879881232976913, -0.02151002362370491, -0.060712527483701706, 0.036088842898607254, 0.03561294823884964, 0.041000768542289734, 0.041368063539266586, -0.012527880258858204, 0.02937261015176773, -0.14782392978668213, -0.07579828798770905, 0.008689695969223976, -0.028637386858463287, -0.010034256614744663, -0.10320407152175903, 0.07557196170091629, -0.03439433500170708, -0.012258173897862434, -0.0007978436769917607, 0.0445035956799984, 0.07095203548669815, 0.0462854765355587, -0.01571555994451046, -0.018981337547302246, -0.052047330886125565, -0.035358697175979614, 0.03665701299905777, -0.02858097292482853, -0.02449563890695572, -0.03149021416902542, 0.03604496642947197, -0.05493300408124924, -0.05127943679690361, 0.03158532455563545, -0.06643298268318176, 0.0721890926361084, -0.053558044135570526, 0.019046539440751076, 0.09063216298818588, 0.05882708728313446, 0.00566124077886343, -0.010354933328926563, -0.10820590704679489, -0.029099898412823677, 0.011001323349773884, -0.08811019361019135, 0.0654166117310524, -0.07977744191884995, 0.0519084632396698, 0.08606939762830734, 0.0953003540635109, -0.049042996019124985, 0.01811588928103447, 0.06600452959537506, -0.10048909485340118, 0.09365715831518173, 0.04972907528281212, -0.040705326944589615, 0.029660142958164215, 0.010380862280726433, 0.047802846878767014, 0.00411419989541173, -0.008968490175902843, -0.07322075963020325, -0.12180541455745697, 0.02845947816967964, -0.005994128063321114, -0.01641509309411049, -0.044383175671100616, 0.01841714419424534, -0.032957762479782104, 0.04921858757734299, -0.06331996619701385, -0.03189178183674812, 0.02614918351173401, -0.025202147662639618, 0.010572661645710468, 0.06791704893112183, 0.047726016491651535, 0.12345657497644424, 0.03587167337536812, 0.03861230984330177, 0.03356948122382164, -0.02683422714471817, -0.021071776747703552, -0.027865905314683914, 0.13691113889217377, -0.04140113666653633, -5.4031985996516596e-8, 0.03923622891306877, 0.07687342911958694, -0.03240238502621651, -0.061493001878261566, 0.06533890962600708, -0.03628278523683548, 0.04530632123351097, -0.03922448307275772, -0.03789648786187172, 0.021925806999206543, -0.007490522228181362, 0.02615177072584629, -0.0806344598531723, 0.01677274890244007, 0.10139279067516327, -0.0142423240467906, -0.06321007013320923, 0.031239785254001617, 0.05135304480791092, -0.03705235943198204, -0.028116445988416672, 0.01080240122973919, 0.011957675218582153, -0.02810063026845455, -0.00924227200448513, 0.11830102652311325, 0.008250650018453598, 0.040233105421066284, 0.024648932740092278, 0.023754164576530457, -0.019395455718040466, 0.051013071089982986, -0.05007661506533623, 0.050044141709804535, 0.07772623747587204, 0.03453073650598526, -0.13965147733688354, 0.014709696173667908, 0.09801627695560455, 0.0015784282004460692, 0.0014339861227199435, 0.012073803693056107, -0.07657398283481598, -0.0012206074316054583, 0.04135365039110184, 0.0797959715127945, 0.074211984872818, 0.010297048836946487, -0.030151834711432457, 0.04345523938536644, -0.023309236392378807, -0.012646794319152832, -0.02799060568213463, 0.034105390310287476, -0.01689731515944004, -0.021998140960931778, 0.01902169920504093, -0.130862295627594, 0.02236010693013668, 0.009904736652970314, 0.010617803782224655, -0.06282781809568405, 0.05843251198530197, 0.023125728592276573 ]
0.058626
repositories maintained by cloud vendors or by SIGs. For providers already in Kubernetes core, you can run the in-tree cloud controller manager as a DaemonSet in your cluster, use the following as a guideline: {{% code\_sample file="admin/cloud/ccm-example.yaml" %}} ## Limitations Running cloud controller manager comes with a few possible limitations. Although these limitations are being addressed in upcoming releases, it's important that you are aware of these limitations for production workloads. ### Support for Volumes Cloud controller manager does not implement any of the volume controllers found in `kube-controller-manager` as the volume integrations also require coordination with kubelets. As we evolve CSI (container storage interface) and add stronger support for flex volume plugins, necessary support will be added to cloud controller manager so that clouds can fully integrate with volumes. Learn more about out-of-tree CSI volume plugins [here](https://github.com/kubernetes/features/issues/178). ### Scalability The cloud-controller-manager queries your cloud provider's APIs to retrieve information for all nodes. For very large clusters, consider possible bottlenecks such as resource requirements and API rate limiting. ### Chicken and Egg The goal of the cloud controller manager project is to decouple development of cloud features from the core Kubernetes project. Unfortunately, many aspects of the Kubernetes project has assumptions that cloud provider features are tightly integrated into the project. As a result, adopting this new architecture can create several situations where a request is being made for information from a cloud provider, but the cloud controller manager may not be able to return that information without the original request being complete. A good example of this is the TLS bootstrapping feature in the Kubelet. TLS bootstrapping assumes that the Kubelet has the ability to ask the cloud provider (or a local metadata service) for all its address types (private, public, etc) but cloud controller manager cannot set a node's address types without being initialized in the first place which requires that the kubelet has TLS certificates to communicate with the apiserver. As this initiative evolves, changes will be made to address these issues in upcoming releases. ## {{% heading "whatsnext" %}} To build and develop your own cloud controller manager, read [Developing Cloud Controller Manager](/docs/tasks/administer-cluster/developing-cloud-controller-manager/).
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/running-cloud-controller.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/running-cloud-controller.md
[ 0.0001351832615910098, -0.08446823805570602, -0.0151866739615798, 0.02256479114294052, -0.02918313816189766, 0.04194274917244911, -0.05897001549601555, 0.004608749877661467, 0.07909296452999115, 0.06695162504911423, -0.015115776099264622, -0.053794316947460175, 0.035110101103782654, -0.028362629935145378, 0.00329289841465652, -0.005162798799574375, 0.0767819881439209, 0.0441739596426487, -0.033139411360025406, -0.053699444979429245, -0.03604436293244362, 0.005382189527153969, 0.005120506975799799, -0.00611471850425005, -0.11968672275543213, -0.01186381746083498, -0.05911056697368622, -0.012140222825109959, 0.007562700659036636, -0.0362250879406929, -0.013299619778990746, -0.03905879333615303, 0.02088218182325363, 0.06346683949232101, 0.0030044715385884047, 0.030375156551599503, 0.027134420350193977, -0.08120392262935638, -0.11442351341247559, -0.007750116288661957, 0.051735009998083115, -0.03424292057752609, -0.06710271537303925, -0.059138957411050797, -0.00996343046426773, -0.013314136303961277, -0.02758358046412468, -0.013625796884298325, -0.04282161220908165, -0.02150631509721279, 0.05684300512075424, -0.12396975606679916, 0.0552164725959301, 0.09226533025503159, -0.03074759617447853, 0.025754939764738083, 0.01672849804162979, 0.04616283252835274, 0.1281803846359253, -0.05214865505695343, 0.019063705578446388, -0.026641173288226128, 0.06902916729450226, -0.06835097074508667, -0.05215277522802353, 0.0054215737618505955, 0.05521604046225548, 0.08376964926719666, 0.0007526480476371944, -0.03867831826210022, 0.10991845279932022, -0.009129473008215427, -0.042710572481155396, 0.025153325870633125, -0.035264551639556885, 0.013513554818928242, -0.03506944328546524, 0.022060872986912727, 0.019628601148724556, 0.016104649752378464, 0.0223013237118721, 0.0736636146903038, 0.0535091906785965, 0.01595543511211872, -0.10919319838285446, -0.06428263336420059, -0.08352535218000412, 0.040089499205350876, 0.0009374294895678759, -0.038711726665496826, 0.06186135858297348, -0.012490719556808472, 0.026462597772479057, -0.08489804714918137, 0.001865800586529076, -0.02954140491783619, -0.017415471374988556, -0.026741966605186462, 0.07107794284820557, -0.04770231619477272, -0.021745070815086365, 0.04502275958657265, -0.029269635677337646, -0.0575556606054306, 0.055448759347200394, -0.0193630401045084, -0.036864228546619415, 0.03230491653084755, 0.022607898339629173, 0.04555404186248779, 0.019373765215277672, 0.06400884687900543, -0.04044955223798752, 0.0005227352376095951, 0.06762812286615372, 0.03865186497569084, 0.02984246239066124, -0.02102404646575451, -0.04032671079039574, 0.0361521914601326, 0.012415004894137383, -0.09467906504869461, -0.029703190550208092, 0.024129904806613922, 0.023187238723039627, 0.06637116521596909, -0.11792037636041641, 5.4508646503888746e-33, 0.037090059369802475, -0.03687764331698418, 0.05980652943253517, -0.014497676864266396, 0.06436847150325775, -0.07372266054153442, 0.028003357350826263, -0.037962302565574646, -0.049329742789268494, -0.09974382817745209, -0.0772319883108139, 0.10324061661958694, -0.035840682685375214, -0.028307143598794937, 0.021677814424037933, -0.05712093785405159, -0.07403671741485596, 0.04007076099514961, 0.0662161335349083, -0.06793976575136185, -0.00868739653378725, -0.018500765785574913, 0.030940676108002663, 0.023520732298493385, 0.0476188100874424, -0.017474548891186714, 0.08970631659030914, -0.05332168564200401, 0.06925055384635925, 0.006329671014100313, -0.060074079781770706, 0.016969218850135803, 0.007814298383891582, -0.0026031804736703634, -0.07496445626020432, 0.007591063156723976, -0.11454286426305771, 0.008892287500202656, -0.1206267923116684, 0.012636673636734486, -0.032636772841215134, -0.01048358902335167, 0.01825951226055622, -0.0914737731218338, -0.018650569021701813, 0.017651621252298355, 0.07804732769727707, -0.0685151219367981, 0.1114601343870163, 0.010775153525173664, -0.004110661800950766, 0.020703516900539398, 0.0283603984862566, -0.02367573045194149, 0.07709567248821259, 0.06196834519505501, 0.07311493158340454, -0.08878844976425171, -0.004216007888317108, -0.02116038091480732, -0.03877744823694229, -0.07527438551187515, 0.015156077221035957, 0.03283974528312683, -0.07228878885507584, -0.00019075114687439054, -0.03434909135103226, 0.04480113089084625, 0.018643125891685486, -0.014834371395409107, -0.025852931663393974, 0.06195567920804024, -0.04342814162373543, -0.016220344230532646, 0.05391030013561249, -0.07460971921682358, -0.0008593078819103539, 0.017229529097676277, -0.11106041818857193, 0.013185281306505203, -0.03651071712374687, -0.02944338321685791, -0.02651682123541832, 0.14660581946372986, 0.03818043693900108, -0.04134906828403473, 0.05100308358669281, 0.101907879114151, -0.022433340549468994, -0.01946103572845459, -0.011191298253834248, -0.08050928264856339, 0.04736242815852165, -0.0019483186770230532, -0.07137974351644516, -5.185367496312153e-33, 0.10269615054130554, -0.0565265528857708, -0.015404723584651947, 0.04913414269685745, 0.049914803355932236, 0.04408347234129906, -0.03247295692563057, 0.0550617091357708, -0.009800574742257595, -0.07800842076539993, -0.040913574397563934, -0.024224862456321716, 0.019010761752724648, 0.026637908071279526, -0.06571899354457855, 0.010236085392534733, -0.06971302628517151, -0.09777219593524933, 0.016381006687879562, -0.006889723241329193, -0.03086097724735737, -0.10809139907360077, 0.0763222724199295, 0.0015971099492162466, -0.02378048188984394, 0.010186390019953251, -0.02462584525346756, 0.01697668991982937, -0.04366152361035347, 0.010600096546113491, -0.03741949051618576, -0.03326914831995964, 0.00872447993606329, -0.015255317091941833, -0.031429473310709, -0.04735211655497551, 0.02586388774216175, 0.039919041097164154, -0.04446285590529442, -0.03695408254861832, -0.06674845516681671, -0.03976387158036232, -0.010928720235824585, -0.0411192961037159, -0.02803194895386696, 0.041365768760442734, 0.08209206163883209, -0.01836620457470417, -0.030524967238307, -0.04182568937540054, -0.09042047709226608, 0.006026923190802336, -0.07738426327705383, 0.07885507494211197, -0.017436038702726364, 0.009974476881325245, -0.003976223524659872, 0.1229618713259697, -0.0827283188700676, 0.008567915298044682, -0.00040749789332039654, -0.07146365940570831, 0.07046151161193848, -0.027045181021094322, -0.050243355333805084, 0.0026884276885539293, 0.03972508758306503, -0.0020170165225863457, -0.037568677216768265, 0.05960838869214058, 0.0026545398868620396, -0.022332029417157173, 0.09534528851509094, 0.030394285917282104, -0.01776854693889618, -0.048279739916324615, -0.014307395555078983, -0.07885949313640594, 0.02813376672565937, -0.02337351255118847, -0.014949316158890724, 0.043354153633117676, -0.03848440945148468, 0.029906293377280235, 0.05687316134572029, 0.027797581627964973, 0.11868266761302948, 0.042781151831150055, 0.026620404794812202, 0.05665687471628189, -0.03218334913253784, 0.008963966742157936, 0.017918745055794716, 0.09438806772232056, -0.0024685401003807783, -5.17826954649081e-8, 0.020412011072039604, 0.059038836508989334, -0.04837793484330177, 0.0030748986173421144, -0.007764071691781282, -0.0587521530687809, 0.029268642887473106, 0.0990636944770813, -0.05713937059044838, 0.0650542750954628, 0.06856505572795868, -0.0065300739370286465, -0.02264130488038063, -0.036888670176267624, 0.03006480261683464, 0.03511922433972359, 0.025420475751161575, 0.05296386033296585, 0.03336481750011444, -0.06007573381066322, -0.016662700101733208, 0.02711346000432968, 0.024773262441158295, 0.025634048506617546, 0.06435204297304153, 0.10877369344234467, 0.01644197106361389, -0.00556370010599494, 0.015613483265042305, -0.021830182522535324, 0.0007049219566397369, -0.004350888077169657, -0.05645572394132614, 0.09486796706914902, 0.05575772374868393, 0.009607955813407898, -0.10144001245498657, 0.05068076774477959, 0.06807693094015121, 0.02706127054989338, 0.03038143925368786, -0.03094218485057354, -0.04931023344397545, -0.012574669905006886, 0.05630139634013176, 0.11197249591350555, -0.009821307845413685, 0.08754865825176239, -0.007949776947498322, 0.07867802679538727, 0.0030681986827403307, -0.027258889749646187, -0.02196926437318325, 0.10017223656177521, 0.025825385004281998, 0.06287383288145065, -0.01431167684495449, -0.05950776860117912, 0.07813702523708344, 0.06898611783981323, 0.023886140435934067, -0.014845007099211216, 0.006486704107373953, -0.02484496682882309 ]
0.080168
This page shows how to access clusters using the Kubernetes API. ## {{% heading "prerequisites" %}} {{< include "task-tutorial-prereqs.md" >}} {{< version-check >}} ## Accessing the Kubernetes API ### Accessing for the first time with kubectl When accessing the Kubernetes API for the first time, use the Kubernetes command-line tool, `kubectl`. To access a cluster, you need to know the location of the cluster and have credentials to access it. Typically, this is automatically set-up when you work through a [Getting started guide](/docs/setup/), or someone else set up the cluster and provided you with credentials and a location. Check the location and credentials that kubectl knows about with this command: ```shell kubectl config view ``` Many of the [examples](https://github.com/kubernetes/examples/tree/master/) provide an introduction to using kubectl. Complete documentation is found in the [kubectl manual](/docs/reference/kubectl/). ### Directly accessing the REST API kubectl handles locating and authenticating to the API server. If you want to directly access the REST API with an http client like `curl` or `wget`, or a browser, there are multiple ways you can locate and authenticate against the API server: 1. Run kubectl in proxy mode (recommended). This method is recommended, since it uses the stored API server location and verifies the identity of the API server using a self-signed certificate. No man-in-the-middle (MITM) attack is possible using this method. 1. Alternatively, you can provide the location and credentials directly to the http client. This works with client code that is confused by proxies. To protect against man in the middle attacks, you'll need to import a root cert into your browser. Using the Go or Python client libraries provides accessing kubectl in proxy mode. #### Using kubectl proxy The following command runs kubectl in a mode where it acts as a reverse proxy. It handles locating the API server and authenticating. Run it like this: ```shell kubectl proxy --port=8080 & ``` See [kubectl proxy](/docs/reference/generated/kubectl/kubectl-commands/#proxy) for more details. Then you can explore the API with curl, wget, or a browser, like so: ```shell curl http://localhost:8080/api/ ``` The output is similar to this: ```json { "versions": [ "v1" ], "serverAddressByClientCIDRs": [ { "clientCIDR": "0.0.0.0/0", "serverAddress": "10.0.1.149:443" } ] } ``` #### Without kubectl proxy It is possible to avoid using kubectl proxy by passing an authentication token directly to the API server, like this: Using `grep/cut` approach: ```shell # Check all possible clusters, as your .KUBECONFIG may have multiple contexts: kubectl config view -o jsonpath='{"Cluster name\tServer\n"}{range .clusters[\*]}{.name}{"\t"}{.cluster.server}{"\n"}{end}' # Select name of cluster you want to interact with from above output: export CLUSTER\_NAME="some\_server\_name" # Point to the API server referring the cluster name APISERVER=$(kubectl config view -o jsonpath="{.clusters[?(@.name==\"$CLUSTER\_NAME\")].cluster.server}") # Create a secret to hold a token for the default service account kubectl apply -f - </dev/null; do echo "waiting for token..." >&2 sleep 1 done # Get the token value TOKEN=$(kubectl get secret default-token -o jsonpath='{.data.token}' | base64 --decode) # Explore the API with TOKEN curl -X GET $APISERVER/api --header "Authorization: Bearer $TOKEN" --insecure ``` The output is similar to this: ```json { "kind": "APIVersions", "versions": [ "v1" ], "serverAddressByClientCIDRs": [ { "clientCIDR": "0.0.0.0/0", "serverAddress": "10.0.1.149:443" } ] } ``` The above example uses the `--insecure` flag. This leaves it subject to MITM attacks. When kubectl accesses the cluster it uses a stored root certificate and client certificates to access the server. (These are installed in the `~/.kube` directory). Since cluster certificates are typically self-signed, it may take special configuration to get your http client to use root certificate. On some clusters, the API server does not require authentication; it may serve on localhost, or be protected by a firewall. There
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/access-cluster-api.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/access-cluster-api.md
[ 0.043871037662029266, -0.04821746051311493, -0.012956660240888596, 0.016901196911931038, -0.03658605366945267, 0.06091535463929176, -0.042363930493593216, 0.005586604587733746, 0.04545331001281738, 0.04931674897670746, -0.05497448518872261, -0.06417480111122131, 0.012257897295057774, -0.058426786214113235, 0.016162680462002754, -0.02745613269507885, 0.10325181484222412, -0.061594706028699875, 0.035666413605213165, -0.10820052027702332, -0.018190452829003334, -0.024042632430791855, -0.024628372862935066, -0.028399745002388954, -0.08183063566684723, -0.0309919286519289, -0.016581960022449493, -0.00862791109830141, -0.004173165187239647, 0.05828764662146568, -0.06490936875343323, -0.03234073519706726, 0.058027029037475586, 0.02505071461200714, 0.006948627531528473, 0.08205726742744446, 0.07250761985778809, 0.011084121651947498, -0.06654419004917145, -0.016644418239593506, 0.028788264840841293, -0.010950612835586071, -0.09892042726278305, -0.05919961631298065, -0.0004244873998686671, -0.0342424139380455, -0.06569645553827286, -0.03492828831076622, 0.009777088649570942, -0.06268385797739029, -0.017148058861494064, -0.09998109936714172, 0.06860765069723129, 0.006016855128109455, -0.007088122423738241, 0.08292293548583984, -0.006629598326981068, 0.056337665766477585, 0.07829383760690689, -0.061725180596113205, 0.010463985614478588, -0.032531365752220154, 0.028477540239691734, -0.04291466623544693, -0.08797604590654373, 0.021134426817297935, 0.008895078673958778, 0.02685248851776123, 0.07461738586425781, -0.06899706274271011, 0.014696933329105377, 0.005324116442352533, -0.032125409692525864, -0.04390602931380272, -0.008818188682198524, 0.028312446549534798, 0.004832327365875244, 0.06206195056438446, 0.030615076422691345, -0.017548546195030212, -0.03412830829620361, 0.08889082819223404, 0.053263477981090546, 0.05856438726186752, -0.11795853823423386, 0.05000358074903488, -0.023960022255778313, 0.0025524813681840897, 0.07973599433898926, -0.026827974244952202, 0.013262812048196793, -0.09936980903148651, -0.06135587394237518, -0.10150463134050369, 0.09427530318498611, 0.020534520968794823, -0.045818231999874115, -0.005003839265555143, 0.07882604748010635, -0.021676670759916306, 0.03055739589035511, -0.04575515538454056, -0.015882913023233414, -0.00891521479934454, -0.005268219858407974, 0.01864367350935936, -0.048934634774923325, -0.015357935801148415, 0.07296519726514816, 0.08251626789569855, -0.03050372004508972, 0.07375425845384598, -0.03467633202672005, 0.037215087562799454, -0.0026105158030986786, 0.012229290790855885, 0.05989620089530945, -0.037382811307907104, 0.0558122955262661, 0.05327655375003815, 0.05138489231467247, -0.07727809995412827, 0.03995107486844063, -0.010386967100203037, 0.018070422112941742, 0.0024012106005102396, -0.07082236558198929, 3.396089872233962e-33, 0.0437830425798893, -0.03844264894723892, 0.10454457253217697, 0.014663049951195717, -0.004681758116930723, -0.10695502907037735, -0.0017779137706384063, -0.010704493150115013, -0.021833496168255806, -0.027102727442979813, -0.04717486724257469, 0.10155367106199265, 0.035948820412158966, -0.06490132212638855, -0.06164788454771042, 0.0061641959473490715, -0.04475197196006775, 0.0010540075600147247, 0.061561185866594315, -0.0190335251390934, -0.05212774872779846, -0.06927768886089325, 0.028904883190989494, 0.07377917319536209, 0.004674767144024372, 0.013610197231173515, 0.030156878754496574, -0.054746970534324646, 0.028390448540449142, 0.029489150270819664, -0.02390548214316368, -0.0615403838455677, -0.012369515374302864, -0.02835228107869625, -0.1404389590024948, 0.05230091139674187, -0.0030251559801399708, 0.033780958503484726, -0.050246357917785645, -0.037708792835474014, -0.008409205824136734, -0.049222543835639954, 0.04564007371664047, -0.0584363117814064, 0.04740084335207939, 0.0015819619875401258, 0.015031745657324791, -0.02461937442421913, 0.13894474506378174, 0.03774389997124672, -0.07548129558563232, -0.10050277411937714, 0.04159839451313019, -0.03221608325839043, 0.04337596520781517, 0.07757001370191574, 0.10832120478153229, -0.09406882524490356, -0.040097467601299286, -0.02540038712322712, -0.03728611767292023, -0.02591588720679283, 0.004373844247311354, 0.04246162623167038, -0.00871124304831028, -0.035788506269454956, -0.06463037431240082, 0.0548519566655159, 0.011869105510413647, 0.024549052119255066, -0.07864072173833847, 0.027345921844244003, -0.023373592644929886, 0.04887080192565918, -0.015447837300598621, -0.010492205619812012, 0.023251211270689964, 0.0029195386450737715, -0.062117356806993484, 0.08839893341064453, 0.02808873914182186, -0.04803933948278427, -0.06706318259239197, 0.09399972856044769, 0.005095516797155142, -0.021755144000053406, -0.010620842687785625, 0.004219940863549709, 0.036567553877830505, -0.012500444427132607, 0.034969620406627655, -0.04533762484788895, -0.016306640580296516, 0.07469812035560608, -0.06710195541381836, -6.277668071164916e-33, 0.13352280855178833, -0.00485810125246644, 0.025207389146089554, -0.03811723738908768, 0.030576782301068306, 0.04857398197054863, -0.024016709998250008, 0.034803230315446854, -0.029568104073405266, -0.08475837111473083, -0.06095806136727333, -0.01245447713881731, 0.015950124710798264, -0.0014782738871872425, -0.06645962595939636, 0.040232136845588684, -0.0054929498583078384, 0.005371390376240015, -0.0038849753327667713, 0.034605592489242554, -0.07652363926172256, -0.08673625439405441, 0.0513492114841938, -0.03884442523121834, -0.052980564534664154, -0.0038746832869946957, 0.05199873074889183, 0.00425757234916091, -0.09269735962152481, 0.0021166424266994, -0.009644629433751106, -0.07118991017341614, 0.007296897005289793, 0.0487283430993557, -0.010769322514533997, -0.04088195413351059, -0.03647204861044884, -0.030034128576517105, 0.015811476856470108, -0.10406526923179626, 0.028229353949427605, 0.010674267075955868, -0.055457137525081635, -0.06935880333185196, -0.03973077982664108, 0.03429000824689865, 0.06390481442213058, -0.005093400366604328, -0.0683397427201271, -0.06694463640451431, -0.015977030619978905, -0.027621347457170486, -0.014899959787726402, 0.0460582934319973, -0.058992233127355576, 0.09891986846923828, 0.006402343977242708, 0.09903670102357864, 0.0011776095489040017, 0.03503924608230591, 0.008772947825491428, -0.11629720777273178, 0.020239481702446938, 0.09037564694881439, -0.07471133023500443, -0.05826885998249054, -0.03702646866440773, 0.03462719917297363, -0.08341870456933975, 0.048226360231637955, -0.12437544763088226, 0.02881452813744545, 0.06108669936656952, 0.06385701149702072, 0.01776977628469467, -0.0321420319378376, -0.0468449704349041, 0.029309913516044617, -0.007487136404961348, 0.0142212500795722, 0.05670233070850372, 0.02329004555940628, -0.11998356878757477, -0.03382646664977074, 0.06384558230638504, 0.06973403692245483, 0.09658832103013992, 0.03269070014357567, 0.051518529653549194, 0.013882213272154331, -0.04075591638684273, 0.025416603311896324, -0.003933554049581289, 0.10067865252494812, -0.027770234271883965, -5.919447687574575e-8, 0.02505946345627308, 0.03877750039100647, -0.0375945158302784, 0.02123555727303028, 0.02737191691994667, 0.06829164922237396, -0.009177147410809994, 0.03242398425936699, -0.07824736833572388, 0.051374614238739014, -0.030099645256996155, 0.013767078518867493, -0.03811503201723099, -0.003583010518923402, -0.025015221908688545, 0.02854236401617527, 0.005641976837068796, 0.00869290716946125, 0.06796939671039581, -0.04829327389597893, -0.03779895603656769, -0.07650452107191086, 0.03191780298948288, 0.005843824706971645, 0.06275777518749237, 0.06017687916755676, 0.014910494908690453, 0.017417239025235176, -0.01921059750020504, -0.03303035348653793, -0.058021511882543564, 0.023482775315642357, -0.08531061559915543, 0.06499405205249786, -0.015266462229192257, 0.03262581303715706, -0.10728421062231064, 0.05218833312392235, 0.04637105017900467, 0.03729332983493805, 0.0053826081566512585, 0.0746193453669548, -0.030667301267385483, -0.026576247066259384, -0.025251541286706924, 0.09753331542015076, 0.009762953035533428, 0.07095460593700409, -0.016284413635730743, -0.033598218113183975, -0.033564288169145584, -0.048146802932024, -0.01902024634182453, 0.07052627950906754, -0.049149345606565475, 0.07371043413877487, -0.04649699479341507, -0.06272425502538681, 0.02306537888944149, -0.00582638056948781, -0.018134452402591705, 0.10832689702510834, -0.002898777136579156, -0.0022980179637670517 ]
0.118607
server. (These are installed in the `~/.kube` directory). Since cluster certificates are typically self-signed, it may take special configuration to get your http client to use root certificate. On some clusters, the API server does not require authentication; it may serve on localhost, or be protected by a firewall. There is not a standard for this. [Controlling Access to the Kubernetes API](/docs/concepts/security/controlling-access) describes how you can configure this as a cluster administrator. ### Programmatic access to the API Kubernetes officially supports client libraries for [Go](#go-client), [Python](#python-client), [Java](#java-client), [dotnet](#dotnet-client), [JavaScript](#javascript-client), and [Haskell](#haskell-client). There are other client libraries that are provided and maintained by their authors, not the Kubernetes team. See [client libraries](/docs/reference/using-api/client-libraries/) for accessing the API from other languages and how they authenticate. #### Go client \* To get the library, run the following command: `go get k8s.io/client-go@kubernetes-` See [https://github.com/kubernetes/client-go/releases](https://github.com/kubernetes/client-go/releases) to see which versions are supported. \* Write an application atop of the client-go clients. {{< note >}} `client-go` defines its own API objects, so if needed, import API definitions from client-go rather than from the main repository. For example, `import "k8s.io/client-go/kubernetes"` is correct. {{< /note >}} The Go client can use the same [kubeconfig file](/docs/concepts/configuration/organize-cluster-access-kubeconfig/) as the kubectl CLI does to locate and authenticate to the API server. See this [example](https://git.k8s.io/client-go/examples/out-of-cluster-client-configuration/main.go): ```golang package main import ( "context" "fmt" "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go/kubernetes" "k8s.io/client-go/tools/clientcmd" ) func main() { // uses the current context in kubeconfig // path-to-kubeconfig -- for example, /root/.kube/config config, \_ := clientcmd.BuildConfigFromFlags("", "") // creates the clientset clientset, \_ := kubernetes.NewForConfig(config) // access the API to list pods pods, \_ := clientset.CoreV1().Pods("").List(context.TODO(), v1.ListOptions{}) fmt.Printf("There are %d pods in the cluster\n", len(pods.Items)) } ``` If the application is deployed as a Pod in the cluster, see [Accessing the API from within a Pod](/docs/tasks/access-application-cluster/access-cluster/#accessing-the-api-from-a-pod). #### Python client To use [Python client](https://github.com/kubernetes-client/python), run the following command: `pip install kubernetes`. See [Python Client Library page](https://github.com/kubernetes-client/python) for more installation options. The Python client can use the same [kubeconfig file](/docs/concepts/configuration/organize-cluster-access-kubeconfig/) as the kubectl CLI does to locate and authenticate to the API server. See this [example](https://github.com/kubernetes-client/python/blob/master/examples/out\_of\_cluster\_config.py): ```python from kubernetes import client, config config.load\_kube\_config() v1=client.CoreV1Api() print("Listing pods with their IPs:") ret = v1.list\_pod\_for\_all\_namespaces(watch=False) for i in ret.items: print("%s\t%s\t%s" % (i.status.pod\_ip, i.metadata.namespace, i.metadata.name)) ``` #### Java client To install the [Java Client](https://github.com/kubernetes-client/java), run: ```shell # Clone java library git clone --recursive https://github.com/kubernetes-client/java # Installing project artifacts, POM etc: cd java mvn install ``` See [https://github.com/kubernetes-client/java/releases](https://github.com/kubernetes-client/java/releases) to see which versions are supported. The Java client can use the same [kubeconfig file](/docs/concepts/configuration/organize-cluster-access-kubeconfig/) as the kubectl CLI does to locate and authenticate to the API server. See this [example](https://github.com/kubernetes-client/java/blob/master/examples/examples-release-15/src/main/java/io/kubernetes/client/examples/KubeConfigFileClientExample.java): ```java package io.kubernetes.client.examples; import io.kubernetes.client.ApiClient; import io.kubernetes.client.ApiException; import io.kubernetes.client.Configuration; import io.kubernetes.client.apis.CoreV1Api; import io.kubernetes.client.models.V1Pod; import io.kubernetes.client.models.V1PodList; import io.kubernetes.client.util.ClientBuilder; import io.kubernetes.client.util.KubeConfig; import java.io.FileReader; import java.io.IOException; /\*\* \* A simple example of how to use the Java API from an application outside a kubernetes cluster \* \* Easiest way to run this: mvn exec:java \* -Dexec.mainClass="io.kubernetes.client.examples.KubeConfigFileClientExample" \* \*/ public class KubeConfigFileClientExample { public static void main(String[] args) throws IOException, ApiException { // file path to your KubeConfig String kubeConfigPath = "~/.kube/config"; // loading the out-of-cluster config, a kubeconfig from file-system ApiClient client = ClientBuilder.kubeconfig(KubeConfig.loadKubeConfig(new FileReader(kubeConfigPath))).build(); // set the global default api-client to the in-cluster one from above Configuration.setDefaultApiClient(client); // the CoreV1Api loads default api-client from global configuration. CoreV1Api api = new CoreV1Api(); // invokes the CoreV1Api client V1PodList list = api.listPodForAllNamespaces(null, null, null, null, null, null, null, null, null); System.out.println("Listing all pods: "); for (V1Pod item : list.getItems()) { System.out.println(item.getMetadata().getName()); } } } ``` #### dotnet client To use [dotnet client](https://github.com/kubernetes-client/csharp), run the following command: `dotnet add package KubernetesClient --version 1.6.1`. See [dotnet Client Library
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/access-cluster-api.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/access-cluster-api.md
[ -0.0006525571225211024, 0.0036556110717356205, -0.024625927209854126, -0.05004693940281868, -0.062236569821834564, 0.01173098012804985, -0.002022744854912162, 0.015861881896853447, 0.09069862216711044, -0.018682487308979034, -0.042334165424108505, -0.03480503708124161, 0.04100094735622406, 0.04255608469247818, 0.05917137861251831, -0.04235128313302994, 0.041066113859415054, 0.006033855956047773, 0.030148275196552277, -0.1380378156900406, -0.06272881478071213, -0.02344680018723011, -0.031088225543498993, 0.03635255619883537, -0.07587363570928574, -0.014250201173126698, 0.009318569675087929, -0.003216122044250369, -0.003538632532581687, 0.0689719095826149, -0.04586831480264664, -0.07760700583457947, 0.01773814857006073, 0.03748282790184021, -0.05357426777482033, 0.08347174525260925, 0.07548291236162186, 0.00704326992854476, -0.08118536323308945, 0.06386768072843552, 0.03546784445643425, -0.03428008407354355, -0.07146700471639633, -0.05240825191140175, -0.03226838260889053, 0.01687646470963955, -0.030672438442707062, -0.07026059180498123, -0.06910741329193115, -0.011760625056922436, -0.0006078369915485382, -0.04127661511301994, 0.00739937974140048, 0.037568967789411545, -0.04697077348828316, -0.00591928418725729, -0.026171308010816574, 0.05473046377301216, 0.07752208411693573, 0.003883190220221877, 0.01960650086402893, -0.02308235876262188, 0.040512580424547195, 0.050765782594680786, -0.09336531162261963, 0.012177974916994572, -0.004307095427066088, 0.007760237902402878, 0.036798447370529175, -0.09307724237442017, 0.0632743239402771, -0.035738181322813034, 0.0020384385716170073, -0.028345948085188866, -0.0031683980487287045, -0.06375081837177277, -0.050258804112672806, 0.04356212913990021, 0.054374899715185165, -0.011974801309406757, 0.01785450242459774, 0.040641263127326965, 0.0530671551823616, 0.08319739997386932, -0.12304436415433884, 0.025709299370646477, -0.03188988193869591, 0.010101720690727234, 0.0846189558506012, 0.010361559689044952, 0.03032330796122551, -0.06277547031641006, -0.028507772833108902, -0.10988342761993408, 0.0562334768474102, 0.015382494777441025, 0.0062755863182246685, -0.01771027222275734, 0.02412848174571991, -0.012720441445708275, -0.023917702957987785, -0.07888533920049667, -0.03471093624830246, -0.04372122511267662, 0.02079900912940502, 0.027641206979751587, -0.06581363081932068, -0.017843198031187057, 0.10841749608516693, 0.0899137333035469, -0.04481951892375946, 0.027749650180339813, -0.05194602906703949, 0.020972535014152527, -0.02151053212583065, 0.05688847228884697, 0.04398225620388985, -0.02911137044429779, 0.03978196904063225, 0.0540575347840786, 0.004876121412962675, -0.08808302134275436, 0.02741803415119648, 0.05940491706132889, -0.003650650614872575, 0.03433321788907051, -0.02163667045533657, 2.5521031576895467e-34, 0.07215965539216995, -0.018932543694972992, 0.07913999259471893, -0.03162875771522522, 0.03729047253727913, -0.07815039157867432, 0.04496309161186218, -0.0747351348400116, -0.09075624495744705, -0.08879661560058594, -0.0243085864931345, 0.12063838541507721, 0.03708047419786453, -0.0787210762500763, 0.05859857797622681, 0.07163356244564056, -0.04326756298542023, -0.013753288425505161, 0.11589560657739639, 0.011149214580655098, 0.02947908453643322, -0.04942614957690239, 0.06738237291574478, 0.11489497870206833, -0.01567448116838932, -0.051460180431604385, 0.026562441140413284, -0.045592013746500015, 0.0005873220507055521, 0.01644599437713623, -0.030082084238529205, -0.07112977653741837, 0.012813950888812542, 0.005242075305432081, -0.05084999278187752, 0.02159198746085167, -0.018993623554706573, -0.020794320851564407, -0.039384372532367706, -0.024723989889025688, -0.031092947348952293, -0.022935563698410988, 0.037710562348365784, -0.01675093173980713, 0.0448850654065609, -0.013732418417930603, 0.00662196846678853, -0.0473187230527401, 0.06426785886287689, 0.0790642499923706, -0.11122190207242966, -0.06131014600396156, 0.07703614979982376, 0.01324171107262373, 0.044605739414691925, 0.04932638630270958, 0.10162046551704407, 0.0037148846313357353, -0.10674070566892624, -0.04649385064840317, -0.015169533900916576, -0.03819533810019493, 0.0013744786847382784, -0.007720825262367725, 0.0015396332601085305, -0.012182069942355156, -0.037204839289188385, 0.08677249401807785, -0.0008745084051042795, -0.007878956384956837, -0.04611897096037865, 0.04067385196685791, -0.024811245501041412, 0.05948061868548393, -0.08382242918014526, -0.0012704270193353295, 0.0045651961117982864, 0.059670496731996536, -0.023322464898228645, 0.02090402878820896, -0.0010776285780593753, -0.052327100187540054, -0.03445622697472572, 0.1524762362241745, -0.008293891325592995, -0.006068830378353596, 0.020727243274450302, 0.049016714096069336, 0.014035331085324287, -0.01005400251597166, 0.007733271922916174, -0.018485581502318382, 0.059043556451797485, 0.08983743190765381, -0.08216788619756699, -2.3758505908354587e-33, 0.07456959038972855, -0.05794025585055351, 0.004576264880597591, 0.018199848011136055, 0.03371367231011391, -0.002068830421194434, -0.02771955542266369, 0.06068423017859459, -0.026706859469413757, -0.010379268787801266, -0.005716376937925816, -0.04821494594216347, 0.07498038560152054, 0.021944116801023483, -0.05080872029066086, -0.008170566521584988, -0.009502663277089596, 0.07331008464097977, -0.007403312250971794, -0.05444080010056496, -0.06243009865283966, -0.05119302123785019, 0.04471094161272049, -0.015100234188139439, -0.012353988364338875, 0.016496865078806877, -0.040812622755765915, 0.00484872329980135, -0.09677748382091522, -0.006564322859048843, 0.009956598281860352, -0.050585705786943436, -0.010478927753865719, 0.0121437544003129, 0.007852237671613693, -0.053610909730196, -0.004146925173699856, 0.02867773175239563, 0.033587951213121414, -0.06279453635215759, 0.02884179912507534, -0.030465997755527496, -0.010652752593159676, 0.022324318066239357, 0.018422754481434822, 0.06378921121358871, -0.020442543551325798, -0.002495360793545842, -0.051681604236364365, -0.07147470116615295, -0.03891745209693909, -0.013592599891126156, -0.0004160201351623982, 0.03053426742553711, -0.0623859167098999, 0.07451469451189041, 0.057184696197509766, 0.12188732624053955, 0.010890216566622257, 0.01951528526842594, 0.047257449477910995, -0.15082506835460663, 0.0035741692408919334, 0.09990093111991882, -0.09711204469203949, -0.004950107540935278, -0.026246756315231323, 0.07077719271183014, -0.053327128291130066, 0.056616198271512985, -0.07373832166194916, -0.08889595419168472, 0.001148263574577868, 0.04244985058903694, -0.017960594967007637, -0.042630117386579514, 0.03590792790055275, -0.01626632735133171, 0.025523195043206215, 0.005131212063133717, 0.01627514511346817, 0.017153576016426086, -0.03948032483458519, 0.0008303195936605334, 0.10208137333393097, -0.027926374226808548, 0.08454961329698563, -0.004986850079149008, 0.03912433981895447, 0.04567349702119827, -0.03287842124700546, 0.0847252607345581, -0.02341056987643242, 0.053968433290719986, 0.030913643538951874, -5.1809998069529684e-8, 0.04901111498475075, -0.0002151440130546689, -0.0778503343462944, 0.011680576018989086, 0.00751765351742506, 0.059431612491607666, -0.013751272112131119, -0.03979114070534706, -0.04289987310767174, 0.038845326751470566, 0.0009035642724484205, -0.03604714944958687, -0.07778572291135788, -0.04268723726272583, 0.004538736306130886, 0.05099692940711975, -0.0337948352098465, 0.00789417140185833, 0.052918002009391785, -0.04385143518447876, -0.04483553022146225, -0.12640781700611115, 0.02964322827756405, 0.027297604829072952, -0.026344897225499153, 0.057753246277570724, 0.05519687384366989, 0.03167673200368881, 0.0222354456782341, -0.021572964265942574, -0.13407473266124725, -0.017668774351477623, -0.045682407915592194, 0.06688929349184036, -0.010715666227042675, 0.0668138787150383, -0.14817261695861816, -0.005969868041574955, 0.012741487473249435, 0.10092765092849731, -0.007717431057244539, 0.053267791867256165, -0.047429896891117096, 0.0055120461620390415, 0.027200739830732346, 0.09724505990743637, 0.0424187146127224, 0.059060238301754, 0.033739589154720306, 0.014475547708570957, -0.003709204262122512, -0.04979819059371948, -0.016470957547426224, 0.0392044298350811, -0.09036410599946976, 0.057271264493465424, -0.08084771037101746, -0.09067153930664062, 0.049002550542354584, -0.014224108308553696, -0.022410864010453224, 0.05350537970662117, 0.06620331108570099, -0.03371710330247879 ]
0.149777
CoreV1Api client V1PodList list = api.listPodForAllNamespaces(null, null, null, null, null, null, null, null, null); System.out.println("Listing all pods: "); for (V1Pod item : list.getItems()) { System.out.println(item.getMetadata().getName()); } } } ``` #### dotnet client To use [dotnet client](https://github.com/kubernetes-client/csharp), run the following command: `dotnet add package KubernetesClient --version 1.6.1`. See [dotnet Client Library page](https://github.com/kubernetes-client/csharp) for more installation options. See [https://github.com/kubernetes-client/csharp/releases](https://github.com/kubernetes-client/csharp/releases) to see which versions are supported. The dotnet client can use the same [kubeconfig file](/docs/concepts/configuration/organize-cluster-access-kubeconfig/) as the kubectl CLI does to locate and authenticate to the API server. See this [example](https://github.com/kubernetes-client/csharp/blob/master/examples/simple/PodList.cs): ```csharp using System; using k8s; namespace simple { internal class PodList { private static void Main(string[] args) { var config = KubernetesClientConfiguration.BuildDefaultConfig(); IKubernetes client = new Kubernetes(config); Console.WriteLine("Starting Request!"); var list = client.ListNamespacedPod("default"); foreach (var item in list.Items) { Console.WriteLine(item.Metadata.Name); } if (list.Items.Count == 0) { Console.WriteLine("Empty!"); } } } } ``` #### JavaScript client To install [JavaScript client](https://github.com/kubernetes-client/javascript), run the following command: `npm install @kubernetes/client-node`. See [https://github.com/kubernetes-client/javascript/releases](https://github.com/kubernetes-client/javascript/releases) to see which versions are supported. The JavaScript client can use the same [kubeconfig file](/docs/concepts/configuration/organize-cluster-access-kubeconfig/) as the kubectl CLI does to locate and authenticate to the API server. See this [example](https://github.com/kubernetes-client/javascript/blob/master/examples/example.js): ```javascript const k8s = require('@kubernetes/client-node'); const kc = new k8s.KubeConfig(); kc.loadFromDefault(); const k8sApi = kc.makeApiClient(k8s.CoreV1Api); k8sApi.listNamespacedPod({ namespace: 'default' }).then((res) => { console.log(res); }); ``` #### Haskell client See [https://github.com/kubernetes-client/haskell/releases](https://github.com/kubernetes-client/haskell/releases) to see which versions are supported. The [Haskell client](https://github.com/kubernetes-client/haskell) can use the same [kubeconfig file](/docs/concepts/configuration/organize-cluster-access-kubeconfig/) as the kubectl CLI does to locate and authenticate to the API server. See this [example](https://github.com/kubernetes-client/haskell/blob/master/kubernetes-client/example/App.hs): ```haskell exampleWithKubeConfig :: IO () exampleWithKubeConfig = do oidcCache <- atomically $ newTVar $ Map.fromList [] (mgr, kcfg) <- mkKubeClientConfig oidcCache $ KubeConfigFile "/path/to/kubeconfig" dispatchMime mgr kcfg (CoreV1.listPodForAllNamespaces (Accept MimeJSON)) >>= print ``` ## {{% heading "whatsnext" %}} \* [Accessing the Kubernetes API from a Pod](/docs/tasks/run-application/access-api-from-pod/)
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/access-cluster-api.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/access-cluster-api.md
[ 0.00874705333262682, -0.007707175333052874, 0.061082325875759125, -0.031289923936128616, 0.01303744688630104, 0.03590760380029678, -0.03913700953125954, 0.02481318823993206, -0.01334574818611145, 0.057567205280065536, -0.017694009467959404, -0.09785909205675125, -0.01587846130132675, -0.004563550464808941, 0.04500942304730415, 0.028645692393183708, 0.078734390437603, 0.006371719762682915, 0.10331859439611435, 0.005156036000698805, 0.003958173096179962, 0.08554597944021225, 0.0018794474890455604, -0.030263951048254967, 0.01450070645660162, -0.035148948431015015, -0.05838111788034439, -0.07223699241876602, -0.05847349017858505, 0.040538862347602844, -0.04327690973877907, 0.004463736899197102, 0.03756638988852501, 0.10670969635248184, 0.15291206538677216, 0.003988758195191622, 0.03795020654797554, 0.019912613555788994, -0.045860521495342255, 0.002348211593925953, 0.038104232400655746, -0.003781075356528163, -0.07729560881853104, -0.08273022621870041, 0.006315095350146294, -0.008780019357800484, -0.04490393027663231, -0.0576443187892437, 0.04861749708652496, 0.0412573367357254, -0.019782790914177895, -0.080430768430233, 0.0785919725894928, -0.036907512694597244, 0.06933155655860901, 0.014801417477428913, -0.07546988874673843, 0.15653717517852783, 0.040362004190683365, 0.03794299066066742, 0.05602073296904564, -0.111856609582901, 0.021141862496733665, -0.05991503596305847, -0.06566551327705383, -0.032536525279283524, 0.06360897421836853, 0.008327462710440159, 0.0017151838401332498, -0.08535388112068176, 0.02276303619146347, 0.061182137578725815, -0.044900503009557724, -0.10387377440929413, -0.047765158116817474, 0.04750940203666687, 0.0511225201189518, 0.020260971039533615, 0.0034041879698634148, -0.08066244423389435, -0.0062634884379804134, 0.08265292644500732, 0.033532578498125076, -0.009860999882221222, -0.062489718198776245, 0.060382504016160965, -0.009526227600872517, -0.03286236897110939, -0.054886192083358765, -0.002449041698127985, -0.024892134591937065, -0.07810033857822418, -0.02011731266975403, -0.1338004618883133, 0.07480581104755402, 0.02655210718512535, -0.001079903799109161, 0.0235959030687809, -0.001972776837646961, 0.018179792910814285, -0.051629725843667984, -0.03829197958111763, -0.032309699803590775, -0.028524911031126976, 0.049876779317855835, -0.054218877106904984, 0.0015874404925853014, -0.07428167760372162, -0.004564647562801838, 0.038981903344392776, 0.0017472200561314821, 0.044429879635572433, -0.019555073231458664, -0.03367088362574577, 0.01688462495803833, 0.02566106989979744, -0.009673741646111012, 0.05254796892404556, 0.09172572195529938, 0.0173041932284832, 0.01699981838464737, -0.12824423611164093, 0.029456494376063347, 0.020305894315242767, -0.10302982479333878, 0.05679207667708397, 0.032525669783353806, 4.566820164857557e-33, 0.03791850805282593, -0.04667390510439873, 0.06059008836746216, -0.008062419481575489, 0.014359500259160995, -0.14190715551376343, 0.059595320373773575, -0.0012803587596863508, -0.0355599969625473, -0.08323166519403458, -0.09274391829967499, 0.035516295582056046, 0.03082718886435032, -0.030336372554302216, -0.04475165531039238, -0.010469522327184677, -0.09225458651781082, 0.02505531907081604, 0.08783213794231415, -0.029502470046281815, -0.015803836286067963, -0.05784972384572029, 0.0005058973911218345, -0.02721196413040161, -0.03526335209608078, -0.0792524442076683, 0.005180578213185072, -0.0692216157913208, -0.007746526040136814, 0.025638248771429062, -0.037609636783599854, 0.015485605224967003, 0.03807749226689339, -0.01797383278608322, -0.13071900606155396, -0.03356117755174637, -0.059533823281526566, 0.01811685599386692, -0.10803230851888657, -0.04560890793800354, 0.0076917908154428005, 0.03543071076273918, -0.04871291667222977, -0.0517968125641346, 0.028812367469072342, -0.0516822449862957, -0.02608843706548214, -0.06233413517475128, 0.05788450315594673, 0.04092919081449509, -0.05274384096264839, -0.007105736527591944, -0.019185826182365417, -0.05115818604826927, 0.047668274492025375, -0.041043996810913086, 0.10250391811132431, -0.015311958268284798, -0.02498891018331051, -0.02860143780708313, -0.003204713109880686, -0.009858477860689163, 0.04317440092563629, -0.08277717232704163, 0.0648638904094696, 0.07065954059362411, -0.03142331913113594, 0.022354906424880028, 0.0011017817305400968, 0.006473605055361986, -0.009027110412716866, 0.05730250105261803, -0.04818618670105934, -0.01720239780843258, 0.02057272009551525, -0.033554088324308395, 0.031055664643645287, -0.012186168693006039, -0.07643889635801315, -0.002538354368880391, 0.01070044282823801, -0.0030417111702263355, 0.020617453381419182, 0.08581462502479553, -0.026537442579865456, 0.022330353036522865, 0.05260179191827774, 0.008182868361473083, 0.02143418788909912, 0.0059289345517754555, 0.0341745987534523, 0.017230788245797157, -0.028331073001027107, 0.016511911526322365, -0.11904783546924591, -4.528888064182476e-33, 0.07505231350660324, 0.03886568546295166, -0.017999447882175446, -0.04546923562884331, -0.031247057020664215, 0.04124044254422188, -0.008771409280598164, 0.0034965563099831343, -0.077422596514225, -0.0386405810713768, 0.016494810581207275, -0.051340918987989426, 0.006797330919653177, 0.025993729010224342, -0.020857250317931175, 0.024215003475546837, -0.04252978041768074, -0.033565953373909, 0.018785489723086357, -0.005785171873867512, -0.011275246739387512, 0.008643947541713715, 0.0635024681687355, 0.019640905782580376, -0.021704088896512985, -0.0694049596786499, 0.03507758677005768, 0.02745836228132248, 0.003191507887095213, -0.07416503876447678, 0.05105837062001228, -0.025831058621406555, -0.012807886116206646, 0.06515159457921982, 0.032491300255060196, -0.01675909012556076, 0.020424794405698776, 0.0559656023979187, -0.0027290733996778727, 0.02443286031484604, 0.019128043204545975, -0.02521936595439911, -0.06384192407131195, -0.06276707351207733, 0.017201300710439682, -0.14355763792991638, 0.06583718210458755, 0.03337356075644493, 0.02168850600719452, -0.03175885230302811, 0.04274655133485794, -0.018237054347991943, -0.06541356444358826, 0.05242619663476944, 0.013018679805099964, 0.11249716579914093, 0.08559619635343552, 0.027626901865005493, 0.0064574843272566795, -0.03189702704548836, -0.034699440002441406, -0.12739981710910797, 0.026597434654831886, 0.05833393707871437, 0.05683693662285805, 0.016918037086725235, -0.04157589375972748, 0.05391006916761398, -0.06909625232219696, -0.00038708493229933083, 0.00876638200134039, -0.042988039553165436, 0.06573723256587982, 0.008115488104522228, -0.022991636767983437, -0.004404841922223568, 0.003567627165466547, 0.043265972286462784, 0.08494985103607178, -0.00985770020633936, -0.05937156081199646, 0.08774634450674057, 0.0008953262586146593, -0.014045730233192444, 0.03817591816186905, 0.028962690383195877, 0.11134500801563263, 0.027649369090795517, 0.023880910128355026, 0.055162496864795685, -0.01122603565454483, 0.016934117302298546, 0.03356160596013069, 0.1153077632188797, 0.007243134081363678, -5.5348785110709287e-8, 0.07567361742258072, -0.0028470936231315136, -0.059114933013916016, 0.07271638512611389, 0.03518843650817871, 0.03563308343291283, 0.026194656267762184, -0.009187179617583752, -0.007219182793051004, 0.009168184362351894, -0.08536086231470108, 0.0236759502440691, -0.02901501953601837, 0.033565670251846313, 0.09684883803129196, 0.03413115814328194, -0.00008119528501993045, 0.07167515158653259, 0.019766753539443016, 0.013442561961710453, -0.07970287650823593, -0.06473637372255325, -0.00601927749812603, -0.08309730887413025, -0.03244999051094055, 0.010105742141604424, 0.023153401911258698, 0.020257774740457535, 0.0671585351228714, -0.06952665746212006, -0.08544214069843292, 0.044099342077970505, -0.0674201101064682, -0.05718276649713516, 0.044123582541942596, 0.07269832491874695, -0.12456424534320831, 0.0677659809589386, 0.011040366254746914, 0.08391524106264114, -0.03518539294600487, -0.000809990509878844, -0.027592850849032402, -0.01321033202111721, 0.05145173892378807, 0.054739728569984436, 0.02024799771606922, 0.0301220566034317, -0.023383531719446182, 0.0024433089420199394, -0.0519266314804554, -0.007541459519416094, 0.04037227854132652, 0.053892582654953, -0.07757079601287842, 0.04557714983820915, -0.042022377252578735, -0.09599718451499939, 0.050678551197052, 0.01231191772967577, 0.008848175406455994, 0.049134280532598495, 0.02133549563586712, 0.09137335419654846 ]
0.114725
To avoid CNI plugin-related errors, verify that you are using or upgrading to a container runtime that has been tested to work correctly with your version of Kubernetes. ## About the "Incompatible CNI versions" and "Failed to destroy network for sandbox" errors Service issues exist for pod CNI network setup and tear down in containerd v1.6.0-v1.6.3 when the CNI plugins have not been upgraded and/or the CNI config version is not declared in the CNI config files. The containerd team reports, "these issues are resolved in containerd v1.6.4." With containerd v1.6.0-v1.6.3, if you do not upgrade the CNI plugins and/or declare the CNI config version, you might encounter the following "Incompatible CNI versions" or "Failed to destroy network for sandbox" error conditions. ### Incompatible CNI versions error If the version of your CNI plugin does not correctly match the plugin version in the config because the config version is later than the plugin version, the containerd log will likely show an error message on startup of a pod similar to: ``` incompatible CNI versions; config is \"1.0.0\", plugin supports [\"0.1.0\" \"0.2.0\" \"0.3.0\" \"0.3.1\" \"0.4.0\"]" ``` To fix this issue, [update your CNI plugins and CNI config files](#updating-your-cni-plugins-and-cni-config-files). ### Failed to destroy network for sandbox error If the version of the plugin is missing in the CNI plugin config, the pod may run. However, stopping the pod generates an error similar to: ``` ERROR[2022-04-26T00:43:24.518165483Z] StopPodSandbox for "b" failed error="failed to destroy network for sandbox \"bbc85f891eaf060c5a879e27bba9b6b06450210161dfdecfbb2732959fb6500a\": invalid version \"\": the version is empty" ``` This error leaves the pod in the not-ready state with a network namespace still attached. To recover from this problem, [edit the CNI config file](#updating-your-cni-plugins-and-cni-config-files) to add the missing version information. The next attempt to stop the pod should be successful. ### Updating your CNI plugins and CNI config files If you're using containerd v1.6.0-v1.6.3 and encountered "Incompatible CNI versions" or "Failed to destroy network for sandbox" errors, consider updating your CNI plugins and editing the CNI config files. Here's an overview of the typical steps for each node: 1. [Safely drain and cordon the node](/docs/tasks/administer-cluster/safely-drain-node/). 1. After stopping your container runtime and kubelet services, perform the following upgrade operations: - If you're running CNI plugins, upgrade them to the latest version. - If you're using non-CNI plugins, replace them with CNI plugins. Use the latest version of the plugins. - Update the plugin configuration file to specify or match a version of the CNI specification that the plugin supports, as shown in the following ["An example containerd configuration file"](#an-example-containerd-configuration-file) section. - For `containerd`, ensure that you have installed the latest version (v1.0.0 or later) of the CNI loopback plugin. - Upgrade node components (for example, the kubelet) to Kubernetes v1.24 - Upgrade to or install the most current version of the container runtime. 1. Bring the node back into your cluster by restarting your container runtime and kubelet. Uncordon the node (`kubectl uncordon `). ## An example containerd configuration file The following example shows a configuration for `containerd` runtime v1.6.x, which supports a recent version of the CNI specification (v1.0.0). Please see the documentation from your plugin and networking provider for further instructions on configuring your system. On Kubernetes, containerd runtime adds a loopback interface, `lo`, to pods as a default behavior. The containerd runtime configures the loopback interface via a CNI plugin, `loopback`. The `loopback` plugin is distributed as part of the `containerd` release packages that have the `cni` designation. `containerd` v1.6.0 and later includes a CNI v1.0.0-compatible loopback plugin as well as other default CNI plugins. The configuration for the loopback plugin is done internally
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/migrating-from-dockershim/troubleshooting-cni-plugin-related-errors.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/migrating-from-dockershim/troubleshooting-cni-plugin-related-errors.md
[ 0.01896597631275654, -0.00842868722975254, 0.0956464633345604, -0.05589204654097557, 0.01340081449598074, 0.023188484832644463, -0.06295917928218842, -0.07111620157957077, 0.021761436015367508, 0.052936092019081116, -0.023961681872606277, -0.06633143872022629, -0.022842729464173317, 0.03564209118485451, -0.007584556471556425, 0.006086943671107292, 0.006383367348462343, 0.006947966758161783, -0.050969868898391724, 0.0756545439362526, -0.07382482290267944, 0.05984925106167793, -0.013254835270345211, -0.01868714950978756, -0.05906858295202255, -0.05105845630168915, -0.02814001403748989, -0.03822214901447296, -0.0035153974313288927, 0.05864091217517853, -0.020431771874427795, 0.04561268165707588, -0.09999994933605194, -0.02360105700790882, 0.1266077607870102, 0.04032488539814949, 0.007963772863149643, -0.03894650191068649, -0.006628689356148243, 0.016210399568080902, 0.060450002551078796, -0.023176785558462143, -0.03902105242013931, -0.04331866279244423, 0.04205338656902313, -0.04671246185898781, -0.022209350019693375, -0.08016319572925568, 0.07433946430683136, -0.05672048404812813, 0.0023955097422003746, -0.03721710667014122, 0.07978419959545135, -0.0017959303222596645, 0.08327670395374298, 0.050773799419403076, -0.040140483528375626, 0.056415487080812454, 0.061734799295663834, 0.03420426324009895, 0.028472663834691048, -0.006604778580367565, 0.09093694388866425, -0.08105648308992386, 0.024405622854828835, -0.011125653050839901, -0.020975416526198387, -0.05031665414571762, -0.04031173512339592, 0.045450564473867416, 0.02045649290084839, 0.0029414580203592777, -0.06419610232114792, 0.0018581870244815946, -0.01966540515422821, 0.06311698257923126, -0.0003682503302115947, -0.0415554977953434, -0.005924553144723177, -0.05217853561043739, -0.014125184156000614, 0.0070051271468400955, 0.07602354139089584, -0.019709942862391472, -0.10350783914327621, 0.004458979237824678, -0.02215307578444481, -0.05634146183729172, 0.026534365490078926, 0.02301924303174019, 0.018230143934488297, -0.014437218196690083, 0.04967788979411125, -0.0844281017780304, 0.10174059122800827, -0.04517447575926781, -0.04499533399939537, 0.013834741897881031, 0.06062113866209984, -0.03814751282334328, 0.05176027491688728, 0.039350029081106186, -0.02809138596057892, 0.01314534805715084, 0.07387763261795044, -0.04653875157237053, 0.000616707606241107, -0.0212701503187418, 0.0012765389401465654, 0.042402613908052444, -0.008411727845668793, -0.0017036889912560582, -0.0036175374407321215, 0.012276904657483101, 0.014996744692325592, 0.027818629518151283, -0.01697966456413269, -0.0005979507113806903, 0.05077352374792099, 0.03819199651479721, 0.024687306955456734, -0.08576388657093048, -0.010552572086453438, 0.07720811665058136, -0.037247613072395325, 0.03789341822266579, 0.009156650863587856, 6.379055928291277e-33, 0.013430215418338776, -0.06970173865556717, 0.034413401037454605, 0.05777611583471298, 0.11038750410079956, -0.06905224919319153, -0.02671433426439762, -0.042896755039691925, -0.044188570231199265, -0.018934132531285286, -0.1098255142569542, -0.009947113692760468, -0.050479184836149216, -0.038342930376529694, 0.02146807499229908, 0.005603025201708078, -0.09471196681261063, -0.0807403102517128, 0.052707504481077194, -0.020714201033115387, 0.07917357236146927, -0.09452137351036072, 0.04031681269407272, -0.0032722631003707647, 0.05717632174491882, -0.039262302219867706, 0.019445862621068954, -0.04773370176553726, 0.0325823612511158, -0.029185745865106583, 0.016815951094031334, -0.03272678703069687, 0.0428016260266304, -0.02194463089108467, -0.11761713773012161, -0.01418019738048315, 0.0016578480135649443, 0.0728384479880333, -0.16086901724338531, 0.02337353304028511, -0.04539495334029198, 0.027195196598768234, -0.08905442804098129, -0.030223380774259567, 0.1005772277712822, -0.017315516248345375, 0.049697622656822205, -0.0675441175699234, 0.07271406054496765, 0.006095072720199823, -0.07207510620355606, -0.06362412124872208, -0.00523767713457346, -0.04544518515467644, 0.05753498896956444, -0.07653111219406128, 0.11796526610851288, -0.03381450101733208, -0.0647844448685646, 0.005888942629098892, -0.026899106800556183, -0.04831191152334213, -0.03317141905426979, 0.008471302688121796, 0.07218369841575623, 0.06670510023832321, -0.01414683647453785, 0.10601045191287994, -0.024624476209282875, -0.025261368602514267, -0.07670563459396362, 0.02031196840107441, -0.002619186881929636, 0.0017647973727434874, 0.04608272761106491, -0.11681660264730453, -0.03141667693853378, -0.030007412657141685, -0.062231793999671936, 0.0057569690980017185, -0.005455600097775459, -0.02748429775238037, -0.0023607651237398386, 0.06768538802862167, -0.027982162311673164, 0.002360148821026087, 0.022192422300577164, 0.08357170224189758, 0.019580954685807228, 0.09286195039749146, 0.10454227030277252, 0.0474715530872345, -0.009677037596702576, 0.03141636401414871, -0.10338229686021805, -7.126298585325804e-33, -0.04881539195775986, 0.05988381803035736, -0.02758912928402424, -0.02820523828268051, 0.029277663677930832, -0.034178972244262695, -0.041430018842220306, 0.04350334033370018, 0.037707120180130005, -0.14474187791347504, -0.002173644257709384, -0.06517931073904037, 0.02899705432355404, 0.048056405037641525, -0.13535478711128235, 0.024318039417266846, -0.14008206129074097, -0.08921802043914795, 0.013300266116857529, 0.06895474344491959, 0.0420982651412487, -0.022933924570679665, -0.008165835402905941, -0.013905223459005356, -0.049010343849658966, 0.052416276186704636, 0.037560928612947464, 0.015206502750515938, -0.00792607944458723, -0.0176946260035038, 0.03235677257180214, -0.014363125897943974, 0.010220630094408989, 0.07252126932144165, 0.040614254772663116, -0.015830520540475845, 0.007430541329085827, 0.020692957565188408, -0.025477269664406776, -0.07318071275949478, 0.0017003747634589672, 0.002088499953970313, -0.03828047215938568, -0.010059145279228687, -0.020962068811058998, -0.04168376699090004, -0.03026062808930874, -0.0330306738615036, -0.05347830057144165, -0.025874657556414604, -0.031779032200574875, -0.018263423815369606, -0.012211481109261513, 0.06079057604074478, -0.03244835510849953, 0.05641213431954384, 0.05676398053765297, 0.07865073531866074, -0.010254637338221073, 0.016679007560014725, 0.06269269436597824, -0.020668694749474525, -0.004176255781203508, 0.045524436980485916, 0.04122648760676384, 0.02035653404891491, 0.016620269045233727, 0.1258227676153183, 0.0434994138777256, 0.03509756177663803, -0.006068464368581772, 0.024857856333255768, 0.04717327654361725, 0.03828761354088783, -0.028632277622818947, -0.027015019208192825, -0.012311231344938278, 0.07171560823917389, 0.04883302375674248, 0.018723923712968826, -0.03997771814465523, 0.07995851337909698, -0.08031211793422699, -0.0035851802676916122, 0.01422949880361557, 0.11012659966945648, 0.12011509388685226, 0.046517618000507355, -0.0020503976847976446, 0.060108721256256104, 0.009284467436373234, -0.02815861999988556, -0.04299546033143997, 0.10635282844305038, -0.07024247199296951, -5.1015515367680564e-8, 0.04185086488723755, -0.04869954660534859, -0.11600931733846664, -0.026537589728832245, 0.1163780689239502, -0.0034490549005568027, 0.08663124591112137, 0.019953586161136627, -0.06326287239789963, 0.0018872454529628158, -0.06373144686222076, 0.12408386170864105, -0.03987792879343033, 0.006371151190251112, 0.024984966963529587, -0.031249521300196648, -0.10585072636604309, 0.025819668546319008, 0.06578834354877472, -0.06247628852725029, -0.0738360658288002, -0.05245816707611084, -0.055394914001226425, 0.01700025424361229, -0.04930732399225235, 0.02460150048136711, 0.044535841792821884, 0.01385683286935091, -0.00850357674062252, 0.007818001322448254, -0.06813745200634003, 0.009521208703517914, -0.02016172930598259, 0.010038523003458977, -0.004931510426104069, 0.057931043207645416, -0.024196233600378036, 0.004215026739984751, -0.010893887840211391, 0.0018984026974067092, -0.002114233560860157, -0.030298927798867226, -0.03772004321217537, -0.09503403306007385, 0.04503899812698364, 0.017478471621870995, -0.000349929032381624, 0.08418375253677368, 0.07222803682088852, 0.015290399082005024, 0.022903043776750565, -0.017364002764225006, 0.00021458610717672855, 0.04092272371053696, -0.021035069599747658, 0.055921632796525955, -0.04536064341664314, -0.0066794175654649734, 0.0024426693562418222, -0.04881841689348221, 0.008901846595108509, -0.0057391817681491375, 0.03426574170589447, 0.0020684748888015747 ]
0.058795
loopback interface via a CNI plugin, `loopback`. The `loopback` plugin is distributed as part of the `containerd` release packages that have the `cni` designation. `containerd` v1.6.0 and later includes a CNI v1.0.0-compatible loopback plugin as well as other default CNI plugins. The configuration for the loopback plugin is done internally by containerd, and is set to use CNI v1.0.0. This also means that the version of the `loopback` plugin must be v1.0.0 or later when this newer version `containerd` is started. The following bash command generates an example CNI config. Here, the 1.0.0 value for the config version is assigned to the `cniVersion` field for use when `containerd` invokes the CNI bridge plugin. ```bash cat << EOF | tee /etc/cni/net.d/10-containerd-net.conflist { "cniVersion": "1.0.0", "name": "containerd-net", "plugins": [ { "type": "bridge", "bridge": "cni0", "isGateway": true, "ipMasq": true, "promiscMode": true, "ipam": { "type": "host-local", "ranges": [ [{ "subnet": "10.88.0.0/16" }], [{ "subnet": "2001:db8:4860::/64" }] ], "routes": [ { "dst": "0.0.0.0/0" }, { "dst": "::/0" } ] } }, { "type": "portmap", "capabilities": {"portMappings": true}, "externalSetMarkChain": "KUBE-MARK-MASQ" } ] } EOF ``` Update the IP address ranges in the preceding example with ones that are based on your use case and network addressing plan.
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/migrating-from-dockershim/troubleshooting-cni-plugin-related-errors.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/migrating-from-dockershim/troubleshooting-cni-plugin-related-errors.md
[ -0.024785151705145836, 0.04020453616976738, -0.04485124349594116, -0.04030028358101845, 0.00845507811754942, -0.039512984454631805, -0.01828102394938469, 0.006866436451673508, -0.024842990562319756, -0.056328438222408295, 0.046232856810092926, 0.000361348211299628, 0.0043870676308870316, -0.01817011460661888, -0.04438737779855728, 0.005424565635621548, -0.015732305124402046, -0.00023625808535143733, -0.039603669196367264, 0.03531445935368538, -0.07601228356361389, 0.06536993384361267, -0.0009251792216673493, -0.05507165938615799, -0.08169060945510864, -0.04267390817403793, -0.05235365405678749, -0.029319649562239647, 0.04479772970080376, 0.05440752953290939, -0.003282981226220727, 0.06500070542097092, -0.13704578578472137, -0.0395863801240921, 0.09770872443914413, 0.03491741791367531, 0.05818209424614906, 0.004005153197795153, -0.023777730762958527, 0.06057286262512207, 0.11021088063716888, 0.032961588352918625, 0.02916705422103405, -0.11946253478527069, 0.012763810344040394, -0.06768594682216644, -0.10266650468111038, -0.06074219569563866, -0.013182581402361393, -0.02396831102669239, 0.044150449335575104, 0.024895118549466133, 0.021756982430815697, 0.003987024072557688, 0.03554438427090645, 0.08831916004419327, -0.028880316764116287, 0.07534286379814148, -0.018931414932012558, 0.03418656811118126, 0.0012487882049754262, -0.005810433533042669, 0.030379096046090126, 0.008696535602211952, 0.060556381940841675, -0.043812546879053116, -0.06371361762285233, -0.07490718364715576, -0.010381701402366161, -0.017115794122219086, -0.03840737044811249, -0.034963831305503845, -0.06773489713668823, -0.029057180508971214, -0.0008687946246936917, 0.06279665976762772, 0.07233317941427231, -0.001576089533045888, -0.05257812514901161, -0.08160345256328583, -0.04368951544165611, 0.011745346710085869, 0.03262265771627426, -0.0005756956525146961, -0.048768289387226105, 0.05540255829691887, 0.007532417308539152, 0.0012614367296919227, 0.023465389385819435, 0.027578357607126236, -0.01574842445552349, -0.058943599462509155, -0.02169916220009327, -0.0007058418123051524, 0.01119401678442955, -0.010748992674052715, 0.05076787248253822, 0.06670256704092026, -0.012408730573952198, 0.0127059705555439, 0.015144706703722477, 0.016603289172053337, 0.021643903106451035, 0.048879094421863556, 0.073300302028656, -0.052584268152713776, 0.1062222421169281, -0.06838899850845337, -0.02455468848347664, -0.010828524827957153, -0.00658856425434351, 0.005205398891121149, 0.06620712578296661, -0.03810195252299309, -0.05455305054783821, 0.025735514238476753, 0.034967437386512756, 0.008700776845216751, 0.061131641268730164, -0.0573660209774971, 0.02596122771501541, 0.0025332747027277946, 0.04436248540878296, 0.003426207462325692, -0.04365554079413414, 0.021291745826601982, -0.002182267839089036, 4.6199727133238795e-33, 0.011737596243619919, -0.13141101598739624, 0.02321871556341648, 0.04448935389518738, 0.12160366773605347, -0.024783872067928314, 0.00994715467095375, -0.0495191253721714, -0.05632062256336212, 0.010440598241984844, -0.05788767710328102, 0.01931142434477806, -0.09251667559146881, -0.00973245408385992, -0.018931716680526733, -0.04305961728096008, -0.07911542057991028, -0.034627243876457214, 0.06481371819972992, 0.025380128994584084, 0.09289030730724335, -0.03627130761742592, 0.020354138687253, -0.007957135327160358, 0.09023638814687729, -0.00849829986691475, -0.010371261276304722, 0.048766568303108215, 0.012390363030135632, -0.0037260574754327536, 0.056204017251729965, 0.004256111104041338, 0.007095742970705032, -0.06671485304832458, -0.0046197655610740185, -0.0036739876959472895, -0.013168809935450554, 0.015379599295556545, -0.07367989420890808, 0.09850963950157166, -0.013401309959590435, 0.011997826397418976, -0.08484607934951782, -0.06215701252222061, 0.04373444616794586, -0.04815573990345001, 0.004820191767066717, -0.07226624339818954, 0.028804969042539597, -0.043979573994874954, -0.03629865497350693, 0.0012073481921106577, -0.018904807046055794, -0.0694577619433403, 0.029456859454512596, -0.12087448686361313, 0.006806400138884783, -0.018446777015924454, -0.01494548749178648, 0.08108174800872803, -0.03029860183596611, 0.04206671193242073, -0.053522445261478424, 0.025375083088874817, 0.01570853590965271, 0.102064348757267, -0.009714665822684765, 0.000032785854273242876, -0.02839847467839718, -0.04730809107422829, -0.07781745493412018, 0.053620412945747375, -0.10232802480459213, 0.045668113976716995, 0.10496104508638382, -0.006041830405592918, -0.049264516681432724, -0.04762492701411247, 0.059006594121456146, -0.055860161781311035, -0.031095027923583984, 0.015825243666768074, -0.07511166483163834, 0.07665780931711197, 0.03683508560061455, -0.04190212860703468, -0.026904314756393433, 0.003256817115470767, 0.04862174391746521, -0.0017523553688079119, 0.08257405459880829, 0.021560976281762123, 0.08644454181194305, -0.045809391885995865, -0.06512467563152313, -5.389504947301905e-33, -0.027426157146692276, 0.02040920965373516, -0.08923044800758362, -0.012994696386158466, -0.05842167139053345, 0.001144359353929758, -0.041445840150117874, -0.04194840043783188, 0.025486109778285027, -0.11231482774019241, -0.0025482107885181904, 0.04456491395831108, 0.027921197935938835, 0.06022217497229576, -0.04784122109413147, 0.043515242636203766, -0.1389840841293335, -0.1134544089436531, -0.013952299021184444, 0.030704161152243614, 0.05622353032231331, 0.016545860096812248, 0.00011127215839223936, -0.0060335262678563595, -0.09624289721250534, 0.014555421657860279, 0.008417248725891113, 0.028832899406552315, 0.03436312451958656, -0.11161129176616669, 0.006512446794658899, 0.038353271782398224, -0.05194147303700447, 0.059310585260391235, -0.060443174093961716, 0.044039592146873474, -0.04209905490279198, 0.02849597856402397, 0.011006700806319714, -0.07512873411178589, 0.00937906838953495, -0.01479991152882576, -0.0532752126455307, 0.05140213295817375, -0.03617037460207939, 0.009351474232971668, -0.030833527445793152, -0.06890078634023666, -0.04675239697098732, 0.000974992464762181, -0.0549977570772171, -0.025528090074658394, 0.07207225263118744, 0.05405251309275627, -0.014325197786092758, 0.035932764410972595, 0.08306843787431717, 0.05318322405219078, -0.06386657804250717, 0.018303150311112404, 0.1348782628774643, -0.02104886993765831, 0.032542116940021515, 0.0047043366357684135, 0.02448199689388275, 0.051577772945165634, -0.042965732514858246, 0.05188550055027008, 0.011600601486861706, 0.007576183415949345, 0.07399818301200867, -0.01827092655003071, 0.06205465644598007, 0.010074258781969547, 0.01445678249001503, 0.027552012354135513, 0.008903756737709045, -0.04466625303030014, 0.08696404844522476, 0.017815351486206055, -0.09880141913890839, 0.07448199391365051, -0.02822187729179859, -0.020127277821302414, 0.00818472821265459, 0.02150459587574005, 0.02288351021707058, 0.04781905934214592, 0.014755773358047009, 0.05237852409482002, 0.07074850052595139, -0.007473425939679146, -0.10485095530748367, 0.12382008880376816, -0.05093960091471672, -5.2775792624970563e-8, 0.03953724727034569, -0.0540318563580513, -0.14326420426368713, 0.003971070982515812, 0.03679994121193886, -0.002487646881490946, 0.05498797073960304, -0.03837832435965538, 0.010491874068975449, -0.03513133525848389, 0.002629223046824336, 0.02585665136575699, 0.0391995906829834, 0.04437557980418205, 0.06950077414512634, 0.08654911071062088, -0.0957992821931839, -0.007225336506962776, 0.043559860438108444, -0.01193175371736288, -0.11071866005659103, 0.020221669226884842, -0.07648873329162598, 0.058748651295900345, -0.036457356065511703, -0.0002601814630907029, 0.026219729334115982, 0.07858916372060776, -0.07064295560121536, 0.019197694957256317, 0.02814197726547718, 0.07227174192667007, -0.06360085308551788, 0.05981864407658577, -0.00354263698682189, 0.05917644500732422, 0.00021087686764076352, 0.021685659885406494, 0.07892923802137375, -0.031592175364494324, 0.02352290228009224, -0.02554907277226448, -0.008424839936196804, -0.054401516914367676, 0.03432875871658325, -0.0022313103545457125, -0.01884431578218937, 0.043344564735889435, 0.05914667621254921, -0.015545128844678402, -0.04024213179945946, -0.014418457634747028, 0.1044037863612175, 0.014102534390985966, 0.06633377820253372, 0.07380282878875732, -0.04632946848869324, 0.003980196081101894, 0.015134771354496479, 0.03580985218286514, -0.12054169923067093, -0.04153195023536682, 0.08769910782575607, 0.039671480655670166 ]
0.030673
This task outlines the steps needed to update your container runtime to containerd from Docker. It is applicable for cluster operators running Kubernetes 1.23 or earlier. This also covers an example scenario for migrating from dockershim to containerd. Alternative container runtimes can be picked from this [page](/docs/setup/production-environment/container-runtimes/). ## {{% heading "prerequisites" %}} {{% thirdparty-content %}} Install containerd. For more information see [containerd's installation documentation](https://containerd.io/docs/getting-started/) and for specific prerequisite follow [the containerd guide](/docs/setup/production-environment/container-runtimes/#containerd). ## Drain the node ```shell kubectl drain --ignore-daemonsets ``` Replace `` with the name of your node you are draining. ## Stop the Docker daemon ```shell systemctl stop kubelet systemctl disable docker.service --now ``` ## Install Containerd Follow the [guide](/docs/setup/production-environment/container-runtimes/#containerd) for detailed steps to install containerd. {{< tabs name="tab-cri-containerd-installation" >}} {{% tab name="Linux" %}} 1. Install the `containerd.io` package from the official Docker repositories. Instructions for setting up the Docker repository for your respective Linux distribution and installing the `containerd.io` package can be found at [Getting started with containerd](https://github.com/containerd/containerd/blob/main/docs/getting-started.md). 1. Configure containerd: ```shell sudo mkdir -p /etc/containerd containerd config default | sudo tee /etc/containerd/config.toml ``` 1. Restart containerd: ```shell sudo systemctl restart containerd ``` {{% /tab %}} {{% tab name="Windows (PowerShell)" %}} Start a Powershell session, set `$Version` to the desired version (ex: `$Version="1.4.3"`), and then run the following commands: 1. Download containerd: ```powershell curl.exe -L https://github.com/containerd/containerd/releases/download/v$Version/containerd-$Version-windows-amd64.tar.gz -o containerd-windows-amd64.tar.gz tar.exe xvf .\containerd-windows-amd64.tar.gz ``` 2. Extract and configure: ```powershell Copy-Item -Path ".\bin\" -Destination "$Env:ProgramFiles\containerd" -Recurse -Force cd $Env:ProgramFiles\containerd\ .\containerd.exe config default | Out-File config.toml -Encoding ascii # Review the configuration. Depending on setup you may want to adjust: # - the sandbox\_image (Kubernetes pause image) # - cni bin\_dir and conf\_dir locations Get-Content config.toml # (Optional - but highly recommended) Exclude containerd from Windows Defender Scans Add-MpPreference -ExclusionProcess "$Env:ProgramFiles\containerd\containerd.exe" ``` 3. Start containerd: ```powershell .\containerd.exe --register-service Start-Service containerd ``` {{% /tab %}} {{< /tabs >}} ## Configure the kubelet to use containerd as its container runtime Edit the file `/var/lib/kubelet/kubeadm-flags.env` and add the containerd runtime to the flags; `--container-runtime-endpoint=unix:///run/containerd/containerd.sock`. Users using kubeadm should be aware that the kubeadm tool stores the host's CRI socket in the `/var/lib/kubelet/instance-config.yaml` file on each node. You can create this `/var/lib/kubelet/instance-config.yaml` file on the node. The `/var/lib/kubelet/instance-config.yaml` file allows setting the `containerRuntimeEndpoint` parameter. You can set this parameter's value to the path of your chosen CRI socket (for example `unix:///run/containerd/containerd.sock`). ## Restart the kubelet ```shell systemctl start kubelet ``` ## Verify that the node is healthy Run `kubectl get nodes -o wide` and containerd appears as the runtime for the node we just changed. ## Remove Docker Engine {{% thirdparty-content %}} If the node appears healthy, remove Docker. {{< tabs name="tab-remove-docker-engine" >}} {{% tab name="CentOS" %}} ```shell sudo yum remove docker-ce docker-ce-cli ``` {{% /tab %}} {{% tab name="Debian" %}} ```shell sudo apt-get purge docker-ce docker-ce-cli ``` {{% /tab %}} {{% tab name="Fedora" %}} ```shell sudo dnf remove docker-ce docker-ce-cli ``` {{% /tab %}} {{% tab name="Ubuntu" %}} ```shell sudo apt-get purge docker-ce docker-ce-cli ``` {{% /tab %}} {{< /tabs >}} The preceding commands don't remove images, containers, volumes, or customized configuration files on your host. To delete them, follow Docker's instructions to [Uninstall Docker Engine](https://docs.docker.com/engine/install/ubuntu/#uninstall-docker-engine). {{< caution >}} Docker's instructions for uninstalling Docker Engine create a risk of deleting containerd. Be careful when executing commands. {{< /caution >}} ## Uncordon the node ```shell kubectl uncordon ``` Replace `` with the name of your node you previously drained.
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/migrating-from-dockershim/change-runtime-containerd.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/migrating-from-dockershim/change-runtime-containerd.md
[ 0.027512630447745323, 0.01612081192433834, 0.08525066077709198, -0.015018508769571781, -0.014767694287002087, -0.023224879056215286, -0.06927524507045746, -0.03605012595653534, 0.015231099911034107, 0.06358214467763901, -0.09136505424976349, -0.08300908654928207, -0.06135256215929985, -0.043135885149240494, -0.007583131082355976, -0.03457654267549515, 0.062485381960868835, 0.10024511069059372, -0.028152521699666977, -0.005316493567079306, -0.058477312326431274, 0.02829640358686447, 0.018581807613372803, -0.02673620544373989, -0.06858917325735092, 0.04400619864463806, 0.005089424084872007, -0.10011342912912369, -0.0032783234491944313, 0.01505606435239315, -0.053742095828056335, 0.0011342469369992614, 0.024748630821704865, -0.027667837217450142, 0.06730134785175323, 0.10121794790029526, 0.05689419060945511, 0.016581350937485695, -0.06854381412267685, 0.018289146944880486, 0.0835576131939888, -0.037299998104572296, -0.0715072974562645, -0.02787424623966217, 0.0042880261316895485, -0.023448823019862175, -0.08140969276428223, -0.0852411687374115, -0.014792589470744133, -0.011304671876132488, 0.044683363288640976, -0.03238849714398384, 0.05288926139473915, 0.01336710061877966, -0.04296909645199776, 0.06829807907342911, 0.05246374383568764, 0.0675322562456131, 0.06263567507266998, -0.02943023294210434, 0.02195209264755249, 0.017147526144981384, 0.11206493526697159, -0.03580550476908684, -0.0009746298310346901, -0.04069925844669342, 0.014520899392664433, -0.029786918312311172, 0.04106871783733368, -0.015390589833259583, 0.047937531024217606, 0.03613174334168434, -0.03309638053178787, -0.11155496537685394, -0.05010664463043213, -0.000054263298807200044, 0.03490742668509483, 0.015827147290110588, -0.056799642741680145, 0.0358661524951458, 0.030897146090865135, 0.019750112667679787, 0.06563445925712585, -0.08721500635147095, -0.14086779952049255, 0.0019148299470543861, -0.03430773317813873, -0.038585320115089417, 0.06232006102800369, -0.01895974762737751, -0.022806920111179352, -0.04772167280316353, 0.024965427815914154, -0.08829750120639801, 0.09232078492641449, -0.0017379943747073412, -0.052077289670705795, 0.04000436142086983, 0.047707654535770416, -0.0075330911204218864, 0.027808386832475662, 0.001318337512202561, -0.03347411006689072, 0.031056750565767288, 0.06475012749433517, -0.02178173139691353, 0.0020481448154896498, 0.024893563240766525, -0.02270554192364216, -0.03548583760857582, 0.06568769365549088, 0.03026598133146763, -0.012314336374402046, 0.032510679215192795, -0.02474108152091503, -0.011767636984586716, 0.024711811915040016, -0.06937378644943237, 0.00974197592586279, 0.0494682677090168, 0.08548764139413834, -0.05780104920268059, 0.024848230183124542, 0.03307122737169266, -0.007053523790091276, 0.07547355443239212, -0.027877850458025932, 2.826924691115426e-33, 0.03552794083952904, -0.09880626201629639, 0.08526099473237991, 0.026456331834197044, 0.06730745732784271, -0.031565021723508835, -0.022029230371117592, -0.061143916100263596, -0.014322825707495213, -0.06534699350595474, -0.0707184448838234, -0.012585249729454517, -0.027667971327900887, -0.04939432069659233, -0.022541675716638565, -0.10193964093923569, -0.061550322920084, -0.023914868012070656, 0.1302013248205185, -0.07429956644773483, 0.09220222383737564, -0.06410375982522964, -0.052620597183704376, -0.020615888759493828, 0.016099441796541214, -0.04841110110282898, 0.030278077349066734, -0.08977524936199188, 0.030690083280205727, -0.019381335005164146, 0.006010541692376137, -0.030146988108754158, 0.018252648413181305, -0.011730512604117393, -0.13301058113574982, -0.017910951748490334, -0.006951283197849989, 0.05086258426308632, -0.0776025727391243, -0.022129423916339874, -0.008372609503567219, -0.02618268132209778, 0.025059450417757034, -0.05944433435797691, 0.10903780162334442, -0.05309734493494034, 0.016519028693437576, -0.06836122274398804, 0.04812289774417877, 0.004965107422322035, -0.011752888560295105, -0.09011126309633255, -0.043616194278001785, -0.03669578209519386, -0.03311926871538162, 0.003296559676527977, 0.06197115406394005, -0.10126380622386932, -0.03882439434528351, 0.003467544447630644, -0.04275824502110481, 0.029386188834905624, -0.02076191082596779, 0.024963684380054474, 0.029527824372053146, 0.007869514636695385, -0.0011199600994586945, 0.08972029387950897, -0.054694220423698425, 0.010839289985597134, -0.07326646894216537, 0.021333832293748856, -0.006188349798321724, 0.11060746759176254, 0.014920470304787159, -0.02010944113135338, 0.040100496262311935, -0.004318766295909882, -0.11777610331773758, 0.03350226953625679, 0.03449198603630066, -0.026533804833889008, -0.0565602108836174, 0.06585928052663803, 0.061058901250362396, -0.027876682579517365, -0.033815667033195496, 0.003611144609749317, 0.03726464509963989, 0.04999382793903351, 0.07089675962924957, 0.007772136013954878, -0.061968330293893814, 0.024717560037970543, -0.1048436090350151, -5.613301071941222e-33, 0.052497610449790955, -0.010179410688579082, -0.033314622938632965, 0.05321295186877251, 0.02847505547106266, -0.02115652896463871, 0.0046500274911522865, 0.06965750455856323, 0.009544755332171917, -0.08598212897777557, -0.09736578166484833, 0.020779799669981003, 0.00018892320804297924, 0.028056669980287552, -0.1362871378660202, 0.043473925441503525, -0.03426660597324371, -0.05472702533006668, -0.022006182000041008, 0.05736885219812393, -0.01465077418833971, -0.032661814242601395, 0.022783344611525536, 0.016140300780534744, -0.049385204911231995, 0.010457915253937244, 0.10939457267522812, 0.047502584755420685, -0.07007864862680435, 0.010135756805539131, 0.0010164398699998856, -0.03982432186603546, 0.02314278855919838, 0.09491460770368576, -0.0060020145028829575, -0.0034533862490206957, -0.027461662888526917, -0.002187981503084302, -0.04767448827624321, -0.03579800948500633, -0.003784884698688984, -0.02672824263572693, -0.038188815116882324, -0.02274821698665619, -0.033856675028800964, 0.036135416477918625, -0.015470543876290321, -0.0759623572230339, -0.02922842837870121, -0.03417089954018593, -0.0391576774418354, 0.0035617691464722157, 0.00833785068243742, 0.1156630739569664, 0.004202341660857201, -0.009383772499859333, 0.052965354174375534, 0.09215506911277771, -0.04390137642621994, 0.03129090741276741, 0.0835237130522728, -0.01570797525346279, 0.09735484421253204, 0.0009131391998380423, 0.06149623915553093, -0.04990539327263832, -0.02697002701461315, 0.03931891918182373, -0.033871714025735855, 0.020970942452549934, -0.04339888319373131, 0.020687468349933624, -0.030754156410694122, 0.10351242125034332, 0.01909828744828701, -0.08609449863433838, 0.028318306431174278, 0.011003910563886166, 0.07342454046010971, -0.003089083591476083, -0.0029147330205887556, 0.032522834837436676, -0.05327165126800537, -0.03554341569542885, 0.029832685366272926, 0.031228531152009964, 0.13265517354011536, 0.0436137355864048, 0.06279025971889496, 0.02499501220881939, -0.00012239110947120935, -0.029354432597756386, -0.08509697765111923, 0.038224220275878906, -0.03157053887844086, -5.9071364688634276e-8, 0.00874135922640562, -0.004916423000395298, -0.010659947991371155, 0.047994907945394516, 0.08461519330739975, -0.016414005309343338, 0.04639759287238121, 0.06913474947214127, -0.047233182936906815, -0.03362743556499481, -0.09528103470802307, 0.06811404228210449, 0.006245561875402927, -0.009665325284004211, 0.08529149740934372, 0.02159867435693741, -0.03760991245508194, -0.007120038848370314, 0.03749704733490944, -0.07593128830194473, -0.13204239308834076, -0.019597381353378296, -0.018410848453640938, 0.008893662132322788, 0.01757047511637211, 0.01517343521118164, 0.09121613949537277, -0.02351991832256317, 0.063819020986557, -0.046586304903030396, -0.02444913610816002, -0.012932204641401768, -0.07602791488170624, 0.09350137412548065, 0.02524535171687603, 0.016256581991910934, -0.1022750660777092, 0.030176222324371338, 0.008194392547011375, 0.10560784488916397, -0.06590572744607925, 0.07955553382635117, -0.03581423684954643, -0.042243607342243195, -0.02139291726052761, 0.01668909750878811, -0.049575239419937134, 0.06998716294765472, -0.01684163510799408, 0.03750673681497574, 0.08369889110326767, -0.026664771139621735, -0.007379139307886362, 0.03699425235390663, 0.020149486139416695, 0.06500860303640366, -0.009292923845350742, -0.04266688972711563, -0.011459846049547195, 0.017255282029509544, 0.030821846798062325, 0.011768680065870285, -0.002879431238397956, -0.021109547466039658 ]
0.035019
kubectl uncordon ``` Replace `` with the name of your node you previously drained.
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/migrating-from-dockershim/change-runtime-containerd.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/migrating-from-dockershim/change-runtime-containerd.md
[ -0.017705421894788742, 0.07138345390558243, 0.06932791322469711, 0.02285509929060936, -0.029818695038557053, -0.03617836534976959, -0.032750360667705536, -0.048224207013845444, 0.11723248660564423, 0.0009192319121211767, -0.02065226063132286, -0.08988797664642334, -0.026456622406840324, -0.10034812241792679, -0.019348377361893654, 0.021956736221909523, -0.07069545239210129, 0.11828658729791641, 0.032395318150520325, -0.11395328491926193, 0.019288131967186928, 0.07580671459436417, 0.006917466409504414, -0.0647539272904396, 0.05181631073355675, 0.01024115551263094, -0.03878220170736313, 0.0016818690346553922, 0.01971970684826374, -0.13863027095794678, -0.025405172258615494, 0.0411040224134922, -0.004618653561919928, -0.020696835592389107, 0.06173253431916237, 0.10842624306678772, -0.08252914994955063, -0.04137340933084488, -0.009394795633852482, -0.01749059557914734, 0.08608825504779816, -0.0363825224339962, -0.04039110243320465, -0.013940360397100449, -0.036166030913591385, 0.028468748554587364, -0.10055418312549591, -0.03416396304965019, 0.03959664702415466, -0.007881944999098778, 0.0956122949719429, -0.11769407987594604, -0.014730744995176792, 0.08988361805677414, 0.05138245224952698, 0.047937992960214615, 0.008103826083242893, -0.02056780830025673, 0.07940006256103516, 0.024998469278216362, 0.05492657050490379, 0.04849693924188614, 0.04274986684322357, 0.018982740119099617, -0.018195249140262604, 0.010093186050653458, -0.03335491567850113, -0.009111663326621056, 0.035447701811790466, 0.05532686412334442, 0.06352826207876205, 0.016117384657263756, -0.01929781585931778, -0.07046597450971603, -0.0058497772552073, 0.01730588637292385, -0.05213933065533638, 0.06496589630842209, -0.05754483491182327, -0.014368168078362942, -0.028996778652071953, 0.05425100773572922, 0.00799515563994646, -0.06765379756689072, -0.04702926054596901, 0.04933375120162964, -0.02438114583492279, -0.08711660653352737, 0.06033407896757126, 0.028970148414373398, -0.07997134327888489, -0.052450139075517654, 0.0610317662358284, -0.09471183270215988, -0.03689313679933548, 0.003074157517403364, 0.04292257875204086, 0.06194179505109787, 0.01573820784687996, -0.01663062535226345, 0.004201526287943125, 0.0563904345035553, -0.03790934383869171, -0.016510365530848503, 0.0421878844499588, -0.0628262609243393, -0.056972432881593704, 0.01640542782843113, 0.023717395961284637, -0.018362460657954216, -0.05205480009317398, 0.07181838154792786, -0.0007566596614196897, 0.01643150858581066, 0.02238812856376171, -0.04315514117479324, 0.04722039774060249, -0.024443624541163445, 0.00939915794879198, 0.06882058829069138, 0.04553598165512085, -0.08733933418989182, -0.08240029215812683, 0.03756343200802803, -0.0865987241268158, 0.026560718193650246, 0.05914636701345444, -1.56492203759628e-33, 0.08330266177654266, -0.07980474829673767, 0.03789348900318146, -0.044029515236616135, 0.010714840143918991, -0.06948349624872208, -0.0940612405538559, -0.02131924405694008, -0.0864863321185112, -0.04336320236325264, -0.04445844143629074, -0.029151301831007004, -0.03341073915362358, -0.039842188358306885, -0.09306799620389938, -0.052277565002441406, -0.015973733738064766, 0.009542488493025303, 0.08710293471813202, -0.05557864159345627, 0.08126197755336761, 0.03405333310365677, -0.08036435395479202, 0.012572424486279488, 0.024499759078025818, -0.024063512682914734, 0.02083343081176281, -0.07471325993537903, 0.012731342576444149, 0.00760413333773613, 0.010673949494957924, -0.04059184715151787, 0.024180343374609947, 0.01830471120774746, -0.10119310021400452, -0.0012114271521568298, 0.07809090614318848, 0.03344331309199333, -0.12904368340969086, -0.04869164898991585, 0.014926028437912464, 0.021326415240764618, -0.022342652082443237, -0.034116022288799286, 0.06249033659696579, -0.04679645597934723, 0.05635375156998634, -0.025836950168013573, 0.03280609846115112, -0.016667485237121582, -0.035157568752765656, 0.041064538061618805, 0.03270992264151573, 0.05042872950434685, -0.0150597607716918, 0.04775170981884003, 0.12665671110153198, -0.004442625213414431, -0.07422735542058945, 0.00581333227455616, 0.015205206349492073, 0.09695639461278915, -0.032647907733917236, 0.026897136121988297, 0.030737731605768204, 0.00095458107534796, 0.014833413995802402, 0.03581487014889717, -0.03765973448753357, -0.02715509571135044, -0.07923570275306702, 0.035541560500860214, -0.004553842358291149, 0.07461737096309662, -0.008349821902811527, -0.05907491594552994, -0.06525848060846329, -0.010366858914494514, -0.11787070333957672, 0.0725075900554657, 0.009562612511217594, -0.06531278043985367, -0.06943637132644653, 0.02884702757000923, 0.047350380569696426, 0.03763126954436302, 0.015041759237647057, -0.06333731859922409, -0.03346585854887962, 0.018600154668092728, 0.03770710900425911, 0.06100813299417496, -0.07175509631633759, -0.040391143411397934, -0.03543689101934433, -6.926453984603957e-34, 0.10894162952899933, -0.021365800872445107, 0.05540672689676285, 0.048704177141189575, 0.036065857857465744, -0.056947894394397736, 0.0019902223721146584, 0.09347578138113022, -0.031754132360219955, 0.010533429682254791, -0.060938239097595215, -0.008505504578351974, -0.06303595006465912, -0.022282209247350693, 0.016598451882600784, 0.04372931271791458, -0.10364668071269989, -0.0035382905043661594, -0.11450602114200592, 0.05322001874446869, -0.07120539247989655, 0.06528975814580917, 0.020443221554160118, -0.004036951344460249, 0.021649552509188652, 0.010572758503258228, 0.08241323381662369, 0.075534388422966, -0.09781143814325333, -0.0522201731801033, 0.0026163868606090546, -0.049414653331041336, -0.0484754852950573, 0.04415387660264969, -0.03250889107584953, -0.029630068689584732, 0.004192295949906111, 0.033181045204401016, -0.018908442929387093, 0.004566563293337822, 0.007791492622345686, 0.06248393654823303, -0.06178147718310356, -0.005381314549595118, -0.026351070031523705, 0.013835933059453964, 0.006925865542143583, -0.009965239092707634, 0.054280031472444534, -0.04198823869228363, 0.011148963123559952, -0.005739984568208456, -0.07750742137432098, 0.0806531012058258, 0.038603898137807846, -0.00494740903377533, 0.040801916271448135, 0.07513530552387238, -0.05081062763929367, -0.03834977373480797, 0.005346090067178011, -0.05744333937764168, 0.09367947280406952, -0.0017397182527929544, 0.05411241203546524, -0.06699276715517044, 0.0026373318396508694, 0.05054115131497383, 0.012775360606610775, -0.05781649053096771, 0.022180385887622833, 0.04737604036927223, -0.030033741146326065, -0.004866949748247862, 0.056920137256383896, -0.013920939527451992, -0.022289151325821877, 0.029036665335297585, -0.0375131256878376, 0.008118320256471634, -0.03565622493624687, 0.0229705348610878, -0.029163435101509094, 0.007404075004160404, 0.06402871012687683, -0.012244077399373055, 0.04050378128886223, 0.06247153505682945, 0.00903977733105421, 0.04951661825180054, -0.01792609877884388, 0.042471013963222504, -0.04356953501701355, 0.0654144361615181, -0.03803125023841858, -2.0418546853306907e-8, -0.040166713297367096, -0.004397318698465824, -0.0029508566949516535, 0.04995671659708023, 0.09114021807909012, -0.08216813206672668, 0.05085910111665726, 0.08469122648239136, -0.042722977697849274, -0.05724457651376724, -0.021835526451468468, 0.09040475636720657, 0.022329056635499, 0.026125364005565643, 0.018476353958249092, -0.07829876244068146, 0.05846806988120079, 0.06054101884365082, 0.02695845626294613, -0.03179783746600151, -0.09991300106048584, 0.006821022368967533, -0.03676287829875946, 0.03939579054713249, 0.023802176117897034, 0.0075063263066112995, 0.03301630914211273, 0.0019886496011167765, 0.052894655615091324, -0.010759621858596802, 0.01768343523144722, 0.005351172760128975, -0.05052366480231285, 0.06538065522909164, 0.043670594692230225, 0.051469478756189346, -0.030275192111730576, 0.023044422268867493, -0.037855640053749084, 0.16117744147777557, -0.01589599996805191, 0.02357800491154194, -0.04403570666909218, 0.03609643876552582, -0.08239978551864624, 0.020752621814608574, -0.021575599908828735, 0.0579461045563221, 0.02734675444662571, -0.04353706166148186, 0.01984851248562336, -0.08327066898345947, -0.04287295415997505, 0.013054036535322666, -0.016421644017100334, 0.014322593808174133, 0.1043548434972763, -0.01843409612774849, -0.02964683249592781, 0.02058453857898712, 0.003920815885066986, -0.017132144421339035, 0.009271242655813694, -0.006394986528903246 ]
0.1187
{{% thirdparty-content %}} Kubernetes' support for direct integration with Docker Engine is deprecated and has been removed. Most apps do not have a direct dependency on runtime hosting containers. However, there are still a lot of telemetry and monitoring agents that have a dependency on Docker to collect containers metadata, logs, and metrics. This document aggregates information on how to detect these dependencies as well as links on how to migrate these agents to use generic tools or alternative runtimes. ## Telemetry and security agents Within a Kubernetes cluster there are a few different ways to run telemetry or security agents. Some agents have a direct dependency on Docker Engine when they run as DaemonSets or directly on nodes. ### Why do some telemetry agents communicate with Docker Engine? Historically, Kubernetes was written to work specifically with Docker Engine. Kubernetes took care of networking and scheduling, relying on Docker Engine for launching and running containers (within Pods) on a node. Some information that is relevant to telemetry, such as a pod name, is only available from Kubernetes components. Other data, such as container metrics, is not the responsibility of the container runtime. Early telemetry agents needed to query the container runtime \*and\* Kubernetes to report an accurate picture. Over time, Kubernetes gained the ability to support multiple runtimes, and now supports any runtime that is compatible with the [container runtime interface](/docs/concepts/architecture/cri/). Some telemetry agents rely specifically on Docker Engine tooling. For example, an agent might run a command such as [`docker ps`](https://docs.docker.com/engine/reference/commandline/ps/) or [`docker top`](https://docs.docker.com/engine/reference/commandline/top/) to list containers and processes or [`docker logs`](https://docs.docker.com/engine/reference/commandline/logs/) to receive streamed logs. If nodes in your existing cluster use Docker Engine, and you switch to a different container runtime, these commands will not work any longer. ### Identify DaemonSets that depend on Docker Engine {#identify-docker-dependency} If a pod wants to make calls to the `dockerd` running on the node, the pod must either: - mount the filesystem containing the Docker daemon's privileged socket, as a {{< glossary\_tooltip text="volume" term\_id="volume" >}}; or - mount the specific path of the Docker daemon's privileged socket directly, also as a volume. For example: on COS images, Docker exposes its Unix domain socket at `/var/run/docker.sock` This means that the pod spec will include a `hostPath` volume mount of `/var/run/docker.sock`. Here's a sample shell script to find Pods that have a mount directly mapping the Docker socket. This script outputs the namespace and name of the pod. You can remove the `grep '/var/run/docker.sock'` to review other mounts. ```bash kubectl get pods --all-namespaces \ -o=jsonpath='{range .items[\*]}{"\n"}{.metadata.namespace}{":\t"}{.metadata.name}{":\t"}{range .spec.volumes[\*]}{.hostPath.path}{", "}{end}{end}' \ | sort \ | grep '/var/run/docker.sock' ``` {{< note >}} There are alternative ways for a pod to access Docker on the host. For instance, the parent directory `/var/run` may be mounted instead of the full path (like in [this example](https://gist.github.com/itaysk/7bc3e56d69c4d72a549286d98fd557dd)). The script above only detects the most common uses. {{< /note >}} ### Detecting Docker dependency from node agents If your cluster nodes are customized and install additional security and telemetry agents on the node, check with the agent vendor to verify whether it has any dependency on Docker. ### Telemetry and security agent vendors This section is intended to aggregate information about various telemetry and security agents that may have a dependency on container runtimes. We keep the work in progress version of migration instructions for various telemetry and security agent vendors in [Google doc](https://docs.google.com/document/d/1ZFi4uKit63ga5sxEiZblfb-c23lFhvy6RXVPikS8wf0/edit#). Please contact the vendor to get up to date instructions for migrating from dockershim. ## Migration from dockershim ### [Aqua](https://www.aquasec.com) No changes are needed: everything should work seamlessly on the runtime switch. ### [Datadog](https://www.datadoghq.com/product/) How to
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/migrating-from-dockershim/migrating-telemetry-and-security-agents.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/migrating-from-dockershim/migrating-telemetry-and-security-agents.md
[ -0.009024899452924728, -0.008719452656805515, 0.033066507428884506, -0.0568806529045105, 0.04729875922203064, -0.06272465735673904, 0.007089425344020128, -0.014719230122864246, 0.08238586038351059, 0.007948069833219051, -0.024418611079454422, -0.07613653689622879, -0.006690419279038906, -0.006824512500315905, 0.037168607115745544, -0.062076929956674576, 0.15407311916351318, -0.03023546375334263, -0.06540270894765854, -0.028369314968585968, -0.06582862883806229, 0.05233557149767876, -0.010780060663819313, -0.024339450523257256, -0.06375689804553986, 0.015411656349897385, -0.059605490416288376, -0.040691595524549484, -0.012793646194040775, 0.06082136556506157, -0.030504655092954636, 0.03992382809519768, 0.02294270694255829, 0.04197336733341217, 0.025611158460378647, 0.06701704859733582, 0.04132252186536789, -0.03289555013179779, -0.08338908851146698, 0.021802708506584167, 0.05225222930312157, -0.04982800781726837, -0.1078493520617485, -0.010822237469255924, -0.048874206840991974, -0.07068026065826416, -0.04779716581106186, -0.10093916952610016, -0.053489986807107925, -0.002024513203650713, -0.054360490292310715, -0.04481521621346474, 0.08287159353494644, 0.08785631507635117, -0.005619292613118887, 0.0644642636179924, -0.01983378827571869, 0.10175492614507675, 0.021813249215483665, 0.026307854801416397, 0.012456887401640415, 0.012826334685087204, -0.03671686351299286, -0.031167740002274513, 0.02670358307659626, -0.03784055635333061, -0.015180744230747223, 0.028676291927695274, 0.07260888069868088, -0.10268191993236542, -0.012911984696984291, -0.0023387183900922537, 0.0006996016018092632, -0.08571498095989227, -0.062127985060214996, 0.0008781646029092371, 0.015621304512023926, 0.04382891580462456, -0.02492542751133442, -0.09671077132225037, -0.011916892603039742, -0.0028552748262882233, 0.050397004932165146, 0.011428401805460453, -0.08314351737499237, 0.02105739712715149, -0.04185561090707779, -0.02896582894027233, 0.023707063868641853, -0.05024826154112816, 0.0038623239379376173, -0.05110137537121773, 0.07384544610977173, -0.0967695489525795, 0.1360885500907898, 0.015723999589681625, -0.0631367415189743, -0.05817558243870735, 0.07279346138238907, 0.006813941989094019, -0.023149771615862846, -0.043163809925317764, -0.012011026032269001, 0.01001843623816967, 0.027084697037935257, -0.030511638149619102, -0.05686014145612717, -0.018194055184721947, 0.06945477426052094, 0.051338400691747665, 0.006154769100248814, 0.002675627591088414, 0.02297930233180523, -0.010691789910197258, 0.03898492828011513, -0.06325163692235947, -0.013262515887618065, -0.07000725716352463, 0.1388700157403946, 0.04461931064724922, 0.04916665703058243, -0.07885023206472397, 0.07507972419261932, -0.0027979433070868254, 0.06571595370769501, 0.09215791523456573, -0.02759004570543766, 7.533787375458196e-33, 0.03841220960021019, -0.046044208109378815, 0.07809819281101227, -0.00048583862371742725, 0.04371766000986099, -0.06064256653189659, -0.038056809455156326, -0.01858050562441349, 0.005935006309300661, -0.011809461750090122, -0.11219897121191025, 0.10337710380554199, 0.017255520448088646, -0.04554811120033264, 0.07594972848892212, -0.003977313172072172, -0.10325605422258377, 0.037958212196826935, 0.0794028639793396, 0.018892262130975723, 0.03486659377813339, -0.03275727853178978, 0.016808470711112022, 0.051708854734897614, 0.10461276769638062, -0.05495423451066017, 0.004225228447467089, -0.08501376211643219, 0.030407899990677834, 0.030801691114902496, -0.006455365568399429, -0.00019622422405518591, 0.02186211757361889, 0.017886877059936523, -0.07501323521137238, 0.012028150260448456, -0.08783447742462158, -0.010008112527430058, -0.09070911258459091, 0.021434364840388298, 0.026117835193872452, -0.04020339250564575, 0.040058866143226624, -0.055715691298246384, 0.029350528493523598, -0.08981886506080627, 0.02754075638949871, -0.05550074204802513, 0.06132889539003372, 0.010366992093622684, 0.0055732447654008865, -0.035592932254076004, 0.06554315984249115, -0.004479367285966873, 0.038421664386987686, -0.008002548478543758, 0.05518658086657524, -0.04593392089009285, -0.012836137786507607, 0.020343957468867302, -0.1353992223739624, -0.024148494005203247, 0.01734917052090168, 0.026996081694960594, 0.05737408250570297, 0.016135022044181824, 0.013689271174371243, 0.120884470641613, -0.03989719599485397, 0.06925144046545029, -0.07679787278175354, 0.04859835281968117, -0.015104995109140873, 0.05377432703971863, 0.037975091487169266, -0.020657112821936607, -0.029463035985827446, -0.024727515876293182, -0.055382370948791504, 0.00242229294963181, -0.023460570722818375, -0.012822438962757587, 0.009199388325214386, 0.08397267758846283, -0.018755784258246422, -0.08086001127958298, -0.0041661858558654785, -0.01595885306596756, -0.011672783643007278, 0.04782812297344208, 0.010277011431753635, 0.0006077851285226643, -0.11591064184904099, 0.06390906125307083, -0.10583449900150299, -9.08720242538588e-33, 0.011250407434999943, -0.011797932907938957, -0.07447787374258041, 0.0018685588147491217, 0.00928586907684803, -0.0006190089043229818, -0.013677254319190979, -0.026803739368915558, 0.006900657434016466, -0.07143397629261017, -0.08486578613519669, -0.025079937651753426, 0.047321826219558716, 0.030343836173415184, -0.09733313322067261, 0.05045510083436966, -0.03491930291056633, -0.09387270361185074, -0.020719662308692932, -0.02990243397653103, 0.07045453786849976, -0.019215326756238937, 0.018991712480783463, -0.007291409187018871, -0.03207215666770935, -0.03857190161943436, 0.017295576632022858, 0.009617660194635391, -0.03048889897763729, -0.020786602050065994, -0.0073529696092009544, -0.0388508141040802, 0.02742741070687771, 0.03970109671354294, 0.00865459255874157, 0.03696749359369278, -0.007580028381198645, 0.05261753872036934, 0.006877032108604908, -0.05996505171060562, 0.043558526784181595, -0.023333771154284477, 0.014110101386904716, -0.045535147190093994, -0.12125800549983978, 0.05776809900999069, -0.021601224318146706, 0.00968610867857933, -0.040505364537239075, -0.08037743717432022, -0.023158418014645576, -0.029476821422576904, -0.014725073240697384, 0.07961133867502213, -0.06088106706738472, 0.03929730877280235, 0.05152438208460808, 0.09546101838350296, -0.03862277790904045, 0.06918018311262131, 0.13508859276771545, -0.09148503839969635, 0.06501049548387527, 0.0515923798084259, 0.037938494235277176, -0.005817575380206108, -0.00022044085199013352, 0.039994657039642334, -0.028859836980700493, 0.0004389416135381907, 0.04642891511321068, -0.0577586330473423, 0.024843119084835052, 0.04677477478981018, -0.06002142280340195, 0.0035534226335585117, 0.018000707030296326, -0.07121334224939346, 0.0006339153042063117, -0.011403361335396767, -0.013869798742234707, 0.02901945449411869, -0.006435954477638006, -0.04744343087077141, 0.02547546476125717, 0.0594845712184906, 0.09174040704965591, 0.004530678503215313, 0.06014183163642883, -0.03494217246770859, -0.01577181927859783, 0.01747935637831688, -0.06871307641267776, 0.10716282576322556, -0.02135595493018627, -5.7808705378192826e-8, 0.0795171856880188, 0.012749784626066685, -0.03572425618767738, -0.005255829077214003, 0.00603900384157896, -0.0011839517392218113, 0.0757303461432457, 0.0740722045302391, -0.04630523920059204, -0.001730396063067019, -0.052337583154439926, -0.03635368123650551, -0.05999987572431564, -0.00614345446228981, 0.11804534494876862, 0.014481117017567158, -0.027299830690026283, -0.031349729746580124, -0.014745471067726612, -0.08437838405370712, -0.06006033718585968, -0.03638267144560814, -0.02984835021197796, -0.011840814724564552, -0.028150858357548714, 0.07929789274930954, 0.02066546492278576, 0.011529743671417236, 0.0563817135989666, -0.008953533135354519, -0.0013430898543447256, 0.0072213695384562016, -0.05508416146039963, 0.042205777019262314, -0.002450502011924982, 0.08449964225292206, -0.10259480029344559, -0.020291145890951157, 0.0026260348968207836, -0.005775442346930504, -0.038917068392038345, -0.0059368181973695755, -0.08154015243053436, -0.011667359620332718, 0.06206781417131424, 0.031006012111902237, -0.025979463011026382, 0.020457031205296516, 0.03091636672616005, -0.0287905465811491, 0.05278800427913666, -0.008048037067055702, -0.000941686739679426, 0.09592865407466888, 0.028958741575479507, 0.02778054215013981, 0.04674935340881348, -0.0831257626414299, 0.10692942887544632, 0.021767431870102882, -0.020226402208209038, 0.04589730128645897, 0.07179338485002518, -0.015258921310305595 ]
0.198305
version of migration instructions for various telemetry and security agent vendors in [Google doc](https://docs.google.com/document/d/1ZFi4uKit63ga5sxEiZblfb-c23lFhvy6RXVPikS8wf0/edit#). Please contact the vendor to get up to date instructions for migrating from dockershim. ## Migration from dockershim ### [Aqua](https://www.aquasec.com) No changes are needed: everything should work seamlessly on the runtime switch. ### [Datadog](https://www.datadoghq.com/product/) How to migrate: [Docker deprecation in Kubernetes](https://docs.datadoghq.com/agent/guide/docker-deprecation/) The pod that accesses Docker Engine may have a name containing any of: - `datadog-agent` - `datadog` - `dd-agent` ### [Dynatrace](https://www.dynatrace.com/) How to migrate: [Migrating from Docker-only to generic container metrics in Dynatrace](https://community.dynatrace.com/t5/Best-practices/Migrating-from-Docker-only-to-generic-container-metrics-in/m-p/167030#M49) Containerd support announcement: [Get automated full-stack visibility into containerd-based Kubernetes environments](https://www.dynatrace.com/news/blog/get-automated-full-stack-visibility-into-containerd-based-kubernetes-environments/) CRI-O support announcement: [Get automated full-stack visibility into your CRI-O Kubernetes containers (Beta)](https://www.dynatrace.com/news/blog/get-automated-full-stack-visibility-into-your-cri-o-kubernetes-containers-beta/) The pod accessing Docker may have name containing: - `dynatrace-oneagent` ### [Falco](https://falco.org) How to migrate: [Migrate Falco from dockershim](https://falco.org/docs/getting-started/deployment/#docker-deprecation-in-kubernetes) Falco supports any CRI-compatible runtime (containerd is used in the default configuration); the documentation explains all details. The pod accessing Docker may have name containing: - `falco` ### [Prisma Cloud Compute](https://docs.paloaltonetworks.com/prisma/prisma-cloud.html) Check [documentation for Prisma Cloud](https://docs.paloaltonetworks.com/prisma/prisma-cloud/prisma-cloud-admin-compute/install/install\_kubernetes.html), under the "Install Prisma Cloud on a CRI (non-Docker) cluster" section. The pod accessing Docker may be named like: - `twistlock-defender-ds` ### [SignalFx (Splunk)](https://www.splunk.com/en\_us/investor-relations/acquisitions/signalfx.html) The SignalFx Smart Agent (deprecated) uses several different monitors for Kubernetes including `kubernetes-cluster`, `kubelet-stats/kubelet-metrics`, and `docker-container-stats`. The `kubelet-stats` monitor was previously deprecated by the vendor, in favor of `kubelet-metrics`. The `docker-container-stats` monitor is the one affected by dockershim removal. Do not use the `docker-container-stats` with container runtimes other than Docker Engine. How to migrate from dockershim-dependent agent: 1. Remove `docker-container-stats` from the list of [configured monitors](https://github.com/signalfx/signalfx-agent/blob/main/docs/monitor-config.md). Note, keeping this monitor enabled with non-dockershim runtime will result in incorrect metrics being reported when docker is installed on node and no metrics when docker is not installed. 2. [Enable and configure `kubelet-metrics`](https://github.com/signalfx/signalfx-agent/blob/main/docs/monitors/kubelet-metrics.md) monitor. {{< note >}} The set of collected metrics will change. Review your alerting rules and dashboards. {{< /note >}} The Pod accessing Docker may be named something like: - `signalfx-agent` ### Yahoo Kubectl Flame Flame does not support container runtimes other than Docker. See [https://github.com/yahoo/kubectl-flame/issues/51](https://github.com/yahoo/kubectl-flame/issues/51)
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/migrating-from-dockershim/migrating-telemetry-and-security-agents.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/migrating-from-dockershim/migrating-telemetry-and-security-agents.md
[ -0.048304878175258636, 0.005181971937417984, 0.04068409278988838, -0.10642262548208237, 0.006663371343165636, -0.07411342859268188, -0.03367976099252701, -0.009305262006819248, -0.039656758308410645, 0.011665618978440762, 0.035402875393629074, -0.05180168151855469, 0.030163588002324104, -0.03220012038946152, 0.023718977347016335, 0.035456668585538864, 0.043841466307640076, 0.001572698587551713, -0.04546850174665451, -0.016896741464734077, -0.06357832252979279, 0.038503497838974, -0.031425461173057556, -0.03913717716932297, -0.08081309497356415, 0.013639410026371479, -0.03646082431077957, -0.023755421862006187, -0.036528050899505615, 0.017342040315270424, -0.011151237413287163, 0.025058049708604813, -0.03332406282424927, 0.01796589605510235, 0.11159040033817291, 0.08525223284959793, 0.025631964206695557, 0.014662149362266064, -0.025997186079621315, 0.07293661683797836, 0.09716703742742538, -0.060769353061914444, -0.09670440107584, -0.01868908852338791, -0.07463623583316803, -0.004572578240185976, -0.04882756620645523, -0.0944877490401268, -0.003238673321902752, 0.02804696373641491, -0.07088371366262436, -0.014669864438474178, 0.04781373590230942, 0.046155814081430435, -0.012479490600526333, 0.0332961268723011, -0.012296071276068687, 0.0832875594496727, 0.05379349738359451, -0.0064758118242025375, 0.061975035816431046, 0.07548531889915466, -0.010139836929738522, 0.012749179266393185, -0.04236050322651863, -0.05585000291466713, 0.016196416690945625, -0.004110629204660654, 0.09670302271842957, -0.049562614411115646, -0.038923781365156174, -0.028751831501722336, -0.03252387046813965, -0.06267010420560837, -0.06634277105331421, 0.03798286244273186, -0.00747557170689106, 0.02129228599369526, 0.038109391927719116, -0.07303047180175781, 0.0017597218975424767, -0.008023537695407867, 0.03701748698949814, -0.008479312993586063, -0.04890823736786842, 0.05156264081597328, -0.026504036039114, 0.008166604675352573, 0.06505181640386581, -0.057732027024030685, 0.09253714233636856, -0.08377356082201004, 0.045157935470342636, -0.030263254418969154, 0.0884038433432579, 0.03364758938550949, -0.08268117159605026, -0.013711760751903057, 0.04640183970332146, 0.004210674669593573, -0.060655657202005386, -0.0728776827454567, -0.06281939893960953, 0.013234715908765793, 0.005729646421968937, -0.0523470975458622, 0.009046892635524273, -0.00021452551300171763, 0.01834757998585701, 0.0519278384745121, 0.030375923961400986, 0.03235481306910515, 0.009030120447278023, -0.004383229184895754, 0.00965320784598589, -0.007854430004954338, -0.13493378460407257, -0.061947815120220184, 0.022425683215260506, -0.016409458592534065, 0.10800528526306152, -0.06076327711343765, 0.04993738606572151, 0.03087543696165085, 0.009514722973108292, 0.09388980269432068, -0.015517398715019226, 3.2525939707512234e-33, 0.07545236498117447, -0.027793357148766518, 0.06220202520489693, -0.0013585415435954928, 0.07756490260362625, -0.04301399365067482, 0.019363190978765488, 0.00042165713966824114, 0.00167094764765352, 0.024411696940660477, -0.11884454637765884, 0.039074935019016266, -0.0667305588722229, -0.06175548583269119, 0.011882193386554718, -0.03260071948170662, -0.03131936490535736, -0.0019326010951772332, 0.11087878048419952, 0.03736550360918045, 0.09453944861888885, -0.008153989911079407, -0.012816808186471462, 0.037837039679288864, 0.09975705295801163, 0.026767803356051445, -0.0255544725805521, -0.14570829272270203, 0.08577685803174973, 0.03880161792039871, -0.06199111044406891, -0.05191003903746605, -0.004955747630447149, 0.059189848601818085, -0.08156242966651917, -0.00850987620651722, -0.0970490351319313, -0.01767330802977085, -0.08378323167562485, 0.01000119186937809, 0.05477311462163925, -0.05146639794111252, -0.00883284118026495, -0.028920356184244156, 0.08892932534217834, -0.06937219947576523, 0.034709323197603226, -0.06736694276332855, 0.0891345962882042, -0.002534715458750725, 0.0035289921797811985, -0.04820016771554947, -0.018906380981206894, -0.08351358026266098, -0.02409696765244007, -0.07161625474691391, 0.04562461003661156, -0.021623563021421432, -0.006219165865331888, 0.037466973066329956, -0.08083559572696686, 0.058664124459028244, 0.02421567402780056, -0.015291448682546616, 0.12203780561685562, -0.05987006798386574, -0.024412481114268303, 0.07158403843641281, -0.07529833912849426, 0.0215783528983593, -0.07630864530801773, 0.012533948756754398, 0.027039483189582825, 0.06685968488454819, 0.039392415434122086, -0.07406901568174362, -0.008953907527029514, -0.03773552551865578, -0.010237381793558598, -0.08111555129289627, 0.006980861537158489, 0.07085896283388138, -0.022974524646997452, 0.04437090456485748, -0.0005441239336505532, -0.06691326200962067, 0.023466549813747406, -0.024501049891114235, -0.05402633175253868, 0.10888513922691345, -0.013214945793151855, -0.021293822675943375, -0.07098213583230972, 0.04330563545227051, -0.05609656497836113, -6.301992722703276e-33, -0.03408077731728554, -0.0850910022854805, 0.004564063157886267, 0.046924006193876266, -0.008359306491911411, -0.01095519121736288, 0.061825431883335114, 0.1212354376912117, 0.07903329282999039, -0.03282969817519188, -0.05106673389673233, 0.00658201240003109, 0.067337766289711, -0.03833062946796417, -0.06799840182065964, 0.03061489388346672, -0.08468028157949448, -0.04965967684984207, -0.029887067154049873, -0.006562419235706329, 0.030639812350273132, 0.07462391257286072, 0.0023299665190279484, 0.05789932608604431, -0.023084737360477448, -0.02233000099658966, 0.1273142546415329, 0.04361126944422722, 0.05399006977677345, -0.04388229921460152, -0.001123060705140233, -0.0047356500290334225, -0.01452217623591423, 0.08204362541437149, -0.027761831879615784, 0.05255282670259476, 0.042048968374729156, 0.05046182870864868, -0.05542454496026039, -0.02494114451110363, 0.049090102314949036, -0.09323792904615402, -0.039237745106220245, -0.07495032250881195, -0.07010945677757263, 0.06785357743501663, -0.012137820944190025, 0.013077427633106709, 0.0066991220228374004, -0.10030415654182434, 0.039695851504802704, 0.009785792790353298, 0.020782120525836945, 0.057419151067733765, -0.03913947939872742, 0.03832295536994934, 0.079206682741642, 0.03126513957977295, -0.049583714455366135, 0.029228704050183296, 0.09783043712377548, -0.04930892959237099, 0.08648805320262909, 0.06987176090478897, 0.003053522203117609, 0.004676328506320715, -0.0015335899079218507, 0.040496498346328735, -0.04582623392343521, -0.03224312514066696, 0.05789767578244209, -0.08194442838430405, -0.0343899205327034, 0.0007806365611031651, 0.02947990410029888, -0.10992606729269028, -0.03325950354337692, -0.06336874514818192, 0.044375184923410416, 0.028679754585027695, -0.000864603032823652, 0.062162525951862335, -0.0026645867619663477, -0.027052083984017372, 0.07658451050519943, 0.011603454127907753, 0.08370629698038101, 0.06843031197786331, 0.08206469565629959, -0.025402281433343887, -0.07369507104158401, -0.06977515667676926, -0.08462492376565933, 0.03314797207713127, 0.008263403549790382, -5.239156664060829e-8, 0.08214416354894638, 0.019588537514209747, 0.02411014586687088, 0.03224044293165207, 0.03610851243138313, -0.025008680298924446, 0.004890763200819492, 0.03763115406036377, -0.024981297552585602, 0.0026541573461145163, 0.009331447072327137, 0.025651199743151665, -0.05470676347613335, 0.007207455579191446, 0.014188073575496674, 0.028107814490795135, -0.0068926624953746796, -0.016294654458761215, 0.0006185728125274181, -0.06706211715936661, -0.1021999940276146, -0.0075155580416321754, 0.007979772984981537, -0.07263036072254181, -0.033336251974105835, 0.06417656689882278, 0.0010315526742488146, 0.0010044161463156343, 0.06860831379890442, 0.00905053224414587, -0.04703298211097717, -0.014610301703214645, -0.0049597714096307755, 0.041291672736406326, -0.020101305097341537, 0.001349095837213099, -0.05639762803912163, 0.0015759265515953302, 0.028622545301914215, -0.017307713627815247, -0.0728086307644844, -0.01576881855726242, -0.07955896109342575, -0.0227948185056448, 0.0034950796980410814, -0.012057507410645485, -0.00862087868154049, 0.02598429098725319, 0.03218289464712143, 0.04791654646396637, 0.03917922079563141, -0.04743633046746254, -0.02469952404499054, 0.042945150285959244, 0.025131259113550186, 0.011248723603785038, -0.02546536549925804, -0.11309435218572617, 0.05395762622356415, 0.00024760328233242035, -0.010269229300320148, 0.013509531505405903, 0.0602240115404129, 0.011029370129108429 ]
0.00131
The `dockershim` component of Kubernetes allows the use of Docker as a Kubernetes's {{< glossary\_tooltip text="container runtime" term\_id="container-runtime" >}}. Kubernetes' built-in `dockershim` component was removed in release v1.24. This page explains how your cluster could be using Docker as a container runtime, provides details on the role that `dockershim` plays when in use, and shows steps you can take to check whether any workloads could be affected by `dockershim` removal. ## Finding if your app has a dependencies on Docker {#find-docker-dependencies} If you are using Docker for building your application containers, you can still run these containers on any container runtime. This use of Docker does not count as a dependency on Docker as a container runtime. When alternative container runtime is used, executing Docker commands may either not work or yield unexpected output. This is how you can find whether you have a dependency on Docker: 1. Make sure no privileged Pods execute Docker commands (like `docker ps`), restart the Docker service (commands such as `systemctl restart docker.service`), or modify Docker-specific files such as `/etc/docker/daemon.json`. 1. Check for any private registries or image mirror settings in the Docker configuration file (like `/etc/docker/daemon.json`). Those typically need to be reconfigured for another container runtime. 1. Check that scripts and apps running on nodes outside of your Kubernetes infrastructure do not execute Docker commands. It might be: - SSH to nodes to troubleshoot; - Node startup scripts; - Monitoring and security agents installed on nodes directly. 1. Third-party tools that perform above mentioned privileged operations. See [Migrating telemetry and security agents from dockershim](/docs/tasks/administer-cluster/migrating-from-dockershim/migrating-telemetry-and-security-agents) for more information. 1. Make sure there are no indirect dependencies on dockershim behavior. This is an edge case and unlikely to affect your application. Some tooling may be configured to react to Docker-specific behaviors, for example, raise alert on specific metrics or search for a specific log message as part of troubleshooting instructions. If you have such tooling configured, test the behavior on a test cluster before migration. ## Dependency on Docker explained {#role-of-dockershim} A [container runtime](/docs/concepts/containers/#container-runtimes) is software that can execute the containers that make up a Kubernetes pod. Kubernetes is responsible for orchestration and scheduling of Pods; on each node, the {{< glossary\_tooltip text="kubelet" term\_id="kubelet" >}} uses the container runtime interface as an abstraction so that you can use any compatible container runtime. In its earliest releases, Kubernetes offered compatibility with one container runtime: Docker. Later in the Kubernetes project's history, cluster operators wanted to adopt additional container runtimes. The CRI was designed to allow this kind of flexibility - and the kubelet began supporting CRI. However, because Docker existed before the CRI specification was invented, the Kubernetes project created an adapter component, `dockershim`. The dockershim adapter allows the kubelet to interact with Docker as if Docker were a CRI compatible runtime. You can read about it in [Kubernetes Containerd integration goes GA](/blog/2018/05/24/kubernetes-containerd-integration-goes-ga/) blog post. ![Dockershim vs. CRI with Containerd](/images/blog/2018-05-24-kubernetes-containerd-integration-goes-ga/cri-containerd.png) Switching to Containerd as a container runtime eliminates the middleman. All the same containers can be run by container runtimes like Containerd as before. But now, since containers schedule directly with the container runtime, they are not visible to Docker. So any Docker tooling or fancy UI you might have used before to check on these containers is no longer available. You cannot get container information using `docker ps` or `docker inspect` commands. As you cannot list containers, you cannot get logs, stop containers, or execute something inside a container using `docker exec`. {{< note >}} If you're running workloads via Kubernetes, the best way to stop a container is through the Kubernetes API rather than
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/migrating-from-dockershim/check-if-dockershim-removal-affects-you.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/migrating-from-dockershim/check-if-dockershim-removal-affects-you.md
[ 0.010330354794859886, 0.025216490030288696, 0.0754939466714859, 0.03878236189484596, 0.06935962289571762, -0.009256890043616295, -0.01559020858258009, -0.05569162964820862, 0.058243971318006516, -0.0030220085754990578, -0.010666940361261368, -0.03448803722858429, -0.009140146896243095, -0.001706751063466072, 0.028120430186390877, -0.055977676063776016, 0.07714542746543884, -0.033423081040382385, -0.031683549284935, 0.009570641443133354, -0.10233411192893982, 0.0031859404407441616, -0.025477014482021332, 0.03366084769368172, -0.04977421835064888, 0.020447323098778725, -0.04167145863175392, -0.042458973824977875, -0.009838026016950607, 0.02711864747107029, -0.02043866738677025, 0.06393119692802429, 0.0775025263428688, 0.007602225057780743, 0.09167411923408508, 0.07094687968492508, 0.01970740035176277, -0.006278324872255325, -0.08647278696298599, -0.012813620269298553, 0.03616424649953842, -0.05243189260363579, -0.07062410563230515, -0.054406337440013885, -0.0031605015974491835, -0.028015118092298508, -0.07179788500070572, -0.09731145203113556, -0.08349736779928207, 0.03694116696715355, 0.006290252786129713, -0.02575211599469185, 0.05365440621972084, 0.01621951535344124, 0.026142388582229614, 0.048738744109869, -0.027881963178515434, 0.07315920293331146, 0.05050867050886154, -0.011974544264376163, 0.008783526718616486, -0.006356855388730764, 0.03307102993130684, -0.06694334745407104, -0.004108586814254522, -0.010583731345832348, 0.0367390401661396, -0.04296564310789108, 0.07979834079742432, -0.030943285673856735, 0.07887948304414749, 0.0028067422099411488, 0.00928967073559761, -0.08285616338253021, -0.048065755516290665, 0.05127670615911484, 0.010622662492096424, -0.013824994675815105, -0.01400923915207386, -0.034908562898635864, -0.004161405377089977, -0.025139320641756058, 0.03765134885907173, -0.012666551396250725, -0.1427319049835205, -0.014153504744172096, -0.025158312171697617, -0.09594028443098068, 0.1277795135974884, -0.08782681822776794, -0.0177605040371418, -0.019706811755895615, 0.03827274218201637, -0.06106922775506973, 0.15211528539657593, -0.060469355434179306, -0.0706251859664917, 0.026644516736268997, 0.005561512894928455, 0.02255154401063919, 0.005766657646745443, -0.02339627593755722, 0.0034803396556526423, -0.027141224592924118, 0.004572894424200058, -0.005978683941066265, -0.05542328953742981, -0.04940081015229225, 0.02249792031943798, 0.022313138470053673, 0.0397113598883152, 0.03876350075006485, 0.017531167715787888, 0.03939717262983322, -0.004060977138578892, -0.025957318022847176, 0.027162250131368637, -0.08521531522274017, -0.0027713573072105646, 0.0714719295501709, 0.03882753476500511, -0.05780625343322754, 0.07261550426483154, -0.009820420295000076, -0.05468590557575226, 0.02590295858681202, -0.07744304835796356, 7.184406944506796e-33, -0.03855068236589432, -0.13889038562774658, 0.07121804356575012, -0.027229715138673782, 0.12475240230560303, -0.07624362409114838, 0.006717462558299303, -0.02837141789495945, -0.01987621933221817, -0.06312935054302216, -0.06899967789649963, 0.05973774939775467, 0.009821848943829536, -0.0163711067289114, 0.06184801459312439, -0.008322830311954021, -0.020495332777500153, -0.008441830053925514, 0.04735994338989258, -0.04821239039301872, 0.03894813358783722, -0.01885889284312725, -0.04898735508322716, -0.0329832062125206, -0.034353360533714294, -0.04456630349159241, 0.043328892439603806, -0.1322571337223053, 0.018503624945878983, 0.011125301010906696, -0.007079353090375662, 0.01301086787134409, -0.026067394763231277, 0.00442786468192935, -0.09963352233171463, 0.023775754496455193, -0.04625261574983597, 0.03837890923023224, -0.08911342918872833, 0.010566039010882378, 0.014461196959018707, -0.006249652709811926, 0.0368780642747879, -0.042766671627759933, 0.09101449698209763, -0.07791026681661606, 0.0599643848836422, -0.07163988798856735, 0.06194736808538437, 0.03175768256187439, 0.017097443342208862, -0.0680241510272026, 0.033467285335063934, 0.013079007156193256, 0.016159655526280403, -0.0010597178479656577, 0.06405827403068542, -0.06645522266626358, -0.004691512789577246, 0.0022039783652871847, -0.09223273396492004, -0.03030477650463581, -0.029169267043471336, -0.032852377742528915, 0.038269974291324615, 0.04329457879066467, 0.01658402383327484, 0.12153848260641098, -0.08674433082342148, 0.04846201092004776, -0.02411680296063423, 0.02732248045504093, 0.011203620582818985, 0.08097175508737564, 0.029183655977249146, -0.021789928898215294, 0.02996198832988739, 0.0037117162719368935, -0.09187906235456467, 0.02822578325867653, 0.018556054681539536, -0.028897259384393692, -0.010486135259270668, 0.09455326944589615, -0.01253261137753725, -0.08501958847045898, 0.03938274458050728, -0.002079880563542247, 0.017519762739539146, 0.046134524047374725, 0.07780694961547852, -0.01875133253633976, -0.09521602094173431, 0.02629021368920803, -0.11630077660083771, -8.921723677516811e-33, 0.005088431295007467, 0.07549881935119629, -0.05302569642663002, -0.001588101964443922, 0.012165454216301441, 0.015236305072903633, 0.018139392137527466, 0.04436148330569267, 0.0019298349507153034, -0.10192690789699554, -0.03569348528981209, -0.0038907688576728106, 0.06595251709222794, 0.046624019742012024, -0.11025788635015488, 0.08442272990942001, -0.04982106015086174, -0.03916360065340996, 0.004564422182738781, 0.03922261297702789, 0.04097500815987587, -0.06273259222507477, 0.05513691529631615, 0.029778454452753067, -0.08351568877696991, -0.019523540511727333, 0.08452832698822021, -0.026441797614097595, -0.03184587508440018, 0.003696449799463153, 0.04494968056678772, -0.010003892704844475, 0.018148230388760567, 0.04220949113368988, 0.0752827599644661, -0.028007246553897858, -0.05608302354812622, -0.009675211273133755, -0.06436338275671005, -0.1451338678598404, -0.020759059116244316, 0.018263356760144234, -0.004939436912536621, 0.016053300350904465, -0.023399582132697105, 0.013292700983583927, 0.015263330191373825, -0.021126465871930122, 0.0024849369656294584, -0.05834338814020157, -0.060893140733242035, -0.017937080934643745, -0.01327541284263134, 0.042338743805885315, -0.06448537111282349, 0.012473424896597862, 0.06301483511924744, 0.0726904347538948, -0.06387727707624435, 0.054981425404548645, 0.11613136529922485, -0.06365826725959778, 0.014614520594477654, 0.0202946774661541, 0.07384894788265228, -0.04738591983914375, -0.0036118419375270605, 0.05072767660021782, -0.033188026398420334, 0.027722828090190887, 0.009422448463737965, 0.05380471423268318, 0.018872670829296112, 0.053863465785980225, -0.038203880190849304, 0.009719327092170715, 0.012222490273416042, 0.011181335896253586, 0.04789363592863083, -0.0476255938410759, 0.027453642338514328, -0.0007125943666324019, 0.002153037115931511, -0.1329103410243988, 0.02340184897184372, 0.028769774362444878, 0.08941326290369034, 0.06206909939646721, 0.05607493221759796, 0.033246371895074844, 0.028898825868964195, -0.03432406857609749, -0.04277244582772255, 0.1298249065876007, -0.02761387825012207, -5.8180095408033594e-8, 0.06483281403779984, 0.003858009120449424, -0.05865561589598656, -0.024052636697888374, 0.034586723893880844, -0.03618903458118439, 0.052157044410705566, 0.11011229455471039, -0.05675940215587616, -0.022105518728494644, -0.03613085299730301, 0.008761828765273094, -0.09827864915132523, 0.016246609389781952, 0.10057416558265686, 0.006154468283057213, -0.026669912040233612, 0.0071280174888670444, 0.00450743967667222, -0.0985521450638771, -0.08842892199754715, -0.03375024348497391, -0.01930079236626625, -0.023418501019477844, -0.02624569460749626, 0.02463364228606224, 0.052100881934165955, 0.025708405300974846, 0.016506291925907135, -0.08307988941669464, -0.006909247953444719, 0.01994227059185505, -0.06929027289152145, 0.07450747489929199, 0.022853638976812363, 0.04981689900159836, -0.12335485219955444, 0.04438330978155136, 0.047661371529102325, 0.05906051769852638, -0.03940265625715256, 0.04907054081559181, -0.06818673759698868, -0.03233909234404564, 0.02119806408882141, 0.033507511019706726, 0.00043327308958396316, 0.029510116204619408, -0.02158755622804165, 0.0172729529440403, 0.047186147421598434, 0.028058594092726707, -0.06714291125535965, 0.04352842643857002, -0.019822025671601295, 0.041048526763916016, -0.054159991443157196, 0.007439206354320049, 0.040161702781915665, -0.05212482810020447, 0.053350236266851425, -0.0059026917442679405, 0.004637258127331734, 0.011708189733326435 ]
0.073702
using `docker ps` or `docker inspect` commands. As you cannot list containers, you cannot get logs, stop containers, or execute something inside a container using `docker exec`. {{< note >}} If you're running workloads via Kubernetes, the best way to stop a container is through the Kubernetes API rather than directly through the container runtime (this advice applies for all container runtimes, not only Docker). {{< /note >}} You can still pull images or build them using `docker build` command. But images built or pulled by Docker would not be visible to container runtime and Kubernetes. They needed to be pushed to some registry to allow them to be used by Kubernetes. ## Known issues ### Some filesystem metrics are missing and the metrics format is different The Kubelet `/metrics/cadvisor` endpoint provides Prometheus metrics, as documented in [Metrics for Kubernetes system components](/docs/concepts/cluster-administration/system-metrics/). If you install a metrics collector that depends on that endpoint, you might see the following issues: - The metrics format on the Docker node is `k8s\_\_\_\_\_` but the format on other runtime is different. For example, on containerd node it is ``. - Some filesystem metrics are missing, as follows: ``` container\_fs\_inodes\_free container\_fs\_inodes\_total container\_fs\_io\_current container\_fs\_io\_time\_seconds\_total container\_fs\_io\_time\_weighted\_seconds\_total container\_fs\_limit\_bytes container\_fs\_read\_seconds\_total container\_fs\_reads\_merged\_total container\_fs\_sector\_reads\_total container\_fs\_sector\_writes\_total container\_fs\_usage\_bytes container\_fs\_write\_seconds\_total container\_fs\_writes\_merged\_total ``` #### Workaround You can mitigate this issue by using [cAdvisor](https://github.com/google/cadvisor) as a standalone daemonset. 1. Find the latest [cAdvisor release](https://github.com/google/cadvisor/releases) with the name pattern `vX.Y.Z-containerd-cri` (for example, `v0.42.0-containerd-cri`). 2. Follow the steps in [cAdvisor Kubernetes Daemonset](https://github.com/google/cadvisor/tree/master/deploy/kubernetes) to create the daemonset. 3. Point the installed metrics collector to use the cAdvisor `/metrics` endpoint which provides the full set of [Prometheus container metrics](https://github.com/google/cadvisor/blob/master/docs/storage/prometheus.md). Alternatives: - Use alternative third party metrics collection solution. - Collect metrics from the Kubelet summary API that is served at `/stats/summary`. ## {{% heading "whatsnext" %}} - Read [Migrating from dockershim](/docs/tasks/administer-cluster/migrating-from-dockershim/) to understand your next steps - Read the [dockershim deprecation FAQ](/blog/2020/12/02/dockershim-faq/) article for more information.
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/migrating-from-dockershim/check-if-dockershim-removal-affects-you.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/migrating-from-dockershim/check-if-dockershim-removal-affects-you.md
[ 0.016639208421111107, 0.08372858166694641, 0.02506357990205288, -0.008013172075152397, 0.0748719647526741, -0.015372417867183685, -0.00851812306791544, -0.002621408784762025, 0.0713188648223877, 0.0461357906460762, -0.02992020733654499, -0.09145550429821014, -0.02139938995242119, 0.020382871851325035, -0.047847289592027664, -0.10043014585971832, 0.04597329720854759, 0.04812370985746384, -0.001554226386360824, 0.003166241804137826, -0.05382755026221275, 0.032025501132011414, 0.02033844031393528, -0.026195621117949486, -0.07436463981866837, 0.07533740997314453, -0.04622826725244522, -0.08924023061990738, -0.025447793304920197, -0.0044633992947638035, -0.06633272767066956, -0.04311419278383255, 0.035729747265577316, 0.012456320226192474, 0.10119244456291199, 0.07826284319162369, 0.06458881497383118, -0.010530075058341026, -0.05150887370109558, -0.034906648099422455, 0.021370291709899902, -0.06987345218658447, -0.04389989748597145, -0.05682836100459099, -0.00026820795028470457, -0.024426521733403206, -0.028825972229242325, -0.14663252234458923, -0.04180743172764778, 0.011657066643238068, -0.017821669578552246, -0.014757872559130192, 0.034757811576128006, 0.01803595758974552, 0.0565715953707695, 0.02152552828192711, 0.013981147669255733, 0.04980595037341118, 0.06674190610647202, 0.023457229137420654, -0.020489109680056572, 0.007269298657774925, -0.06594341993331909, -0.025620179250836372, 0.033212367445230484, 0.012115191668272018, 0.0268819872289896, -0.00843223836272955, 0.10276403278112411, -0.03893458843231201, 0.04043947532773018, -0.007592527195811272, 0.0035582506097853184, -0.06459823995828629, -0.03458511084318161, 0.03410882502794266, 0.00989436823874712, 0.02261149324476719, -0.043556831777095795, -0.09665889292955399, 0.02479800209403038, 0.021481337025761604, 0.058720607310533524, -0.02536296471953392, -0.12059804797172546, 0.04654435068368912, -0.024608593434095383, -0.00018268638814333826, 0.13871639966964722, -0.09692910313606262, -0.001399914501234889, -0.06792944669723511, -0.03301868215203285, -0.04764765501022339, 0.12430977821350098, -0.04109782725572586, -0.06411585211753845, -0.008602390065789223, 0.07288625836372375, 0.006758549716323614, 0.03857680410146713, 0.007599289994686842, 0.009253717958927155, -0.025944499298930168, 0.06367336958646774, 0.008703735657036304, -0.05489208549261093, -0.0032199108973145485, -0.009716656059026718, 0.03543464466929436, 0.01953798346221447, 0.0004414045833982527, -0.06580980867147446, 0.048623938113451004, 0.05576576292514801, -0.07357963174581528, 0.0018209851114079356, -0.05839584767818451, -0.011917680501937866, 0.032121364027261734, 0.09077141433954239, -0.024346988648176193, 0.07675155997276306, -0.011060935445129871, -0.02810593880712986, 0.03692277893424034, -0.03253721818327904, 2.6979016964852024e-33, 0.03889618068933487, -0.11889565736055374, 0.14438830316066742, -0.024372156709432602, 0.07627781480550766, -0.013682279735803604, -0.01919248327612877, -0.038759179413318634, 0.04701916128396988, 0.030812516808509827, -0.08302970230579376, 0.07780544459819794, -0.03392800688743591, 0.051372647285461426, 0.08194775134325027, 0.04930727928876877, -0.014290977269411087, 0.013127380050718784, 0.026141924783587456, -0.02213261090219021, 0.028479812666773796, -0.1081983670592308, -0.04420831799507141, 0.033003535121679306, 0.07153359800577164, -0.07760215550661087, 0.03695822134613991, -0.04425526782870293, 0.006006129551678896, -0.004396740347146988, -0.009135945700109005, -0.031835444271564484, 0.06373915821313858, 0.06976296007633209, -0.056307222694158554, 0.006165341939777136, -0.032806914299726486, 0.06198664382100105, -0.06984774768352509, -0.02229614555835724, 0.0034616386983543634, -0.03773971647024155, -0.025641579180955887, -0.005986360367387533, 0.011209610849618912, -0.08608589321374893, 0.03189462795853615, -0.07721632719039917, 0.02671915851533413, 0.023362429812550545, 0.06271190196275711, -0.05507761612534523, -0.018927009776234627, -0.028430895879864693, 0.014020017348229885, -0.011838115751743317, 0.04639974609017372, -0.08286785334348679, -0.036008983850479126, -0.013290408998727798, -0.06358766555786133, 0.035047780722379684, 0.039357129484415054, -0.004030357114970684, -0.06416598707437515, -0.004084831569343805, -0.021519310772418976, 0.12362214922904968, -0.05513511598110199, 0.06521091610193253, -0.06943456083536148, 0.02195238508284092, -0.0012986476067453623, 0.006214206572622061, 0.06067821756005287, 0.016122527420520782, 0.014507777988910675, 0.0200100839138031, -0.11214659363031387, 0.10126811265945435, 0.016586219891905785, -0.0035791199188679457, -0.03365444764494896, 0.050121404230594635, -0.011503328569233418, -0.04972521588206291, 0.026178650557994843, 0.029471848160028458, 0.014487382024526596, 0.04980350658297539, -0.00009847223554970697, 0.011670160107314587, -0.13249430060386658, 0.039382096379995346, -0.1731378138065338, -5.8055366426288984e-33, 0.021548612043261528, 0.06815951317548752, -0.0377037413418293, -0.0648491382598877, -0.028475377708673477, 0.003213224932551384, 0.037430863827466965, 0.00966038927435875, 0.015813414007425308, -0.12409602105617523, 0.008122099563479424, 0.011033391579985619, -0.0355784110724926, 0.021872447803616524, -0.11459996551275253, 0.035669490694999695, -0.03505821153521538, -0.047345954924821854, -0.039761919528245926, -0.0014040993992239237, 0.025312988087534904, -0.02582021988928318, 0.018497349694371223, 0.03197284787893295, -0.10884184390306473, 0.019914016127586365, 0.05966148525476456, -0.06106795743107796, -0.042999595403671265, 0.018136486411094666, 0.08328322321176529, -0.07177937775850296, 0.030242852866649628, 0.09220865368843079, 0.06293497234582901, -0.052681997418403625, -0.018124444410204887, 0.0468321293592453, -0.0374416820704937, -0.031226616352796555, -0.0011830643052235246, 0.04761752486228943, -0.03861325979232788, 0.04858694225549698, -0.05295494198799133, -0.030155545100569725, 0.04398242011666298, -0.05566495284438133, 0.008293413557112217, -0.07047852128744125, -0.02118270844221115, -0.0053274789825081825, -0.04337761551141739, 0.0524890162050724, -0.053359244018793106, -0.04263587296009064, -0.01457294449210167, 0.06460366398096085, -0.026636332273483276, 0.005693404469639063, 0.09519454091787338, -0.07364407181739807, 0.003473691875115037, 0.023595135658979416, 0.006454517133533955, -0.05063169449567795, -0.010592170059680939, -0.011885695159435272, -0.10770995169878006, 0.04692475497722626, 0.025767937302589417, -0.02857419289648533, -0.027325503528118134, 0.043674036860466, -0.051878973841667175, -0.025694137439131737, -0.01957358978688717, -0.05365560203790665, 0.07231365889310837, -0.02183663100004196, 0.02957884594798088, -0.00024357957590837032, 0.011366688646376133, -0.05222610384225845, 0.03726312518119812, 0.05180569365620613, 0.044942207634449005, -0.011371379718184471, 0.09483689814805984, -0.00021607284725178033, 0.0242055281996727, -0.053141407668590546, -0.043514225631952286, 0.10260099917650223, 0.03929590433835983, -5.474097974911274e-8, 0.05241909995675087, 0.009640233591198921, -0.01394343189895153, -0.01543720904737711, -0.022694019600749016, 0.008994810283184052, 0.04882235452532768, 0.12510275840759277, -0.02609977498650551, -0.026027502492070198, -0.041209056973457336, -0.03505917266011238, -0.10044516623020172, -0.00909753330051899, 0.033695802092552185, -0.00035896076587960124, 0.059648267924785614, 0.060184039175510406, 0.021805405616760254, -0.09243207424879074, -0.09448371082544327, -0.023292845115065575, -0.03222556784749031, -0.04704611375927925, -0.07057919353246689, 0.03443630784749985, 0.052849940955638885, -0.015341154299676418, 0.018894320353865623, -0.029178528115153313, 0.08746252954006195, 0.005173953250050545, -0.03965039551258087, 0.046369194984436035, 0.07024125009775162, 0.010836848057806492, -0.10806284844875336, 0.009838924743235111, 0.008776861242949963, 0.03558453544974327, -0.06254864484071732, -0.0373421236872673, -0.04054650664329529, -0.010604392737150192, 0.005106139462441206, 0.049999333918094635, -0.012650643475353718, 0.05419326201081276, -0.06508047133684158, 0.016032105311751366, 0.06804468482732773, -0.01436862163245678, -0.022128501906991005, 0.10087122768163681, 0.02694942057132721, -0.0029699397273361683, 0.03047560341656208, -0.03147592395544052, 0.03361285850405693, 0.0601780004799366, 0.02942938543856144, -0.02402428910136223, 0.009308724664151669, 0.04222484678030014 ]
0.08618
This page outlines steps to find out what [container runtime](/docs/setup/production-environment/container-runtimes/) the nodes in your cluster use. Depending on the way you run your cluster, the container runtime for the nodes may have been pre-configured or you need to configure it. If you're using a managed Kubernetes service, there might be vendor-specific ways to check what container runtime is configured for the nodes. The method described on this page should work whenever the execution of `kubectl` is allowed. ## {{% heading "prerequisites" %}} Install and configure `kubectl`. See [Install Tools](/docs/tasks/tools/#kubectl) section for details. ## Find out the container runtime used on a Node Use `kubectl` to fetch and show node information: ```shell kubectl get nodes -o wide ``` The output is similar to the following. The column `CONTAINER-RUNTIME` outputs the runtime and its version. For Docker Engine, the output is similar to this: ```none NAME STATUS VERSION CONTAINER-RUNTIME node-1 Ready v1.16.15 docker://19.3.1 node-2 Ready v1.16.15 docker://19.3.1 node-3 Ready v1.16.15 docker://19.3.1 ``` If your runtime shows as Docker Engine, you still might not be affected by the removal of dockershim in Kubernetes v1.24. [Check the runtime endpoint](#which-endpoint) to see if you use dockershim. If you don't use dockershim, you aren't affected. For containerd, the output is similar to this: ```none NAME STATUS VERSION CONTAINER-RUNTIME node-1 Ready v1.19.6 containerd://1.4.1 node-2 Ready v1.19.6 containerd://1.4.1 node-3 Ready v1.19.6 containerd://1.4.1 ``` Find out more information about container runtimes on [Container Runtimes](/docs/setup/production-environment/container-runtimes/) page. ## Find out what container runtime endpoint you use {#which-endpoint} The container runtime talks to the kubelet over a Unix socket using the [CRI protocol](/docs/concepts/architecture/cri/), which is based on the gRPC framework. The kubelet acts as a client, and the runtime acts as the server. In some cases, you might find it useful to know which socket your nodes use. For example, with the removal of dockershim in Kubernetes v1.24 and later, you might want to know whether you use Docker Engine with dockershim. {{}} If you currently use Docker Engine in your nodes with `cri-dockerd`, you aren't affected by the dockershim removal. {{}} You can check which socket you use by checking the kubelet configuration on your nodes. 1. Read the starting commands for the kubelet process: ``` tr \\0 ' ' < /proc/"$(pgrep kubelet)"/cmdline ``` If you don't have `tr` or `pgrep`, check the command line for the kubelet process manually. 1. In the output, look for the `--container-runtime` flag and the `--container-runtime-endpoint` flag. \* If your nodes use Kubernetes v1.23 and earlier and these flags aren't present or if the `--container-runtime` flag is not `remote`, you use the dockershim socket with Docker Engine. The `--container-runtime` command line argument is not available in Kubernetes v1.27 and later. \* If the `--container-runtime-endpoint` flag is present, check the socket name to find out which runtime you use. For example, `unix:///run/containerd/containerd.sock` is the containerd endpoint. If you want to change the Container Runtime on a Node from Docker Engine to containerd, you can find out more information on [migrating from Docker Engine to containerd](/docs/tasks/administer-cluster/migrating-from-dockershim/change-runtime-containerd/), or, if you want to continue using Docker Engine in Kubernetes v1.24 and later, migrate to a CRI-compatible adapter like [`cri-dockerd`](https://github.com/Mirantis/cri-dockerd).
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/migrating-from-dockershim/find-out-runtime-you-use.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/migrating-from-dockershim/find-out-runtime-you-use.md
[ 0.08969666063785553, -0.012417253106832504, 0.04055137187242508, -0.015753397718071938, 0.029032425954937935, 0.0001189211689052172, -0.10293829441070557, -0.0655742809176445, 0.03870769590139389, 0.012354536913335323, -0.05401201173663139, -0.08530320227146149, -0.06456716358661652, -0.06681443005800247, -0.005474593956023455, -0.07088955491781235, 0.0973760113120079, -0.026877539232373238, -0.00999362487345934, -0.04206468537449837, -0.011684829369187355, -0.011590300127863884, 0.010820679366588593, -0.019177496433258057, -0.08864439278841019, -0.0034436483401805162, -0.043162114918231964, -0.016401780769228935, -0.011994799599051476, -0.01915811002254486, -0.042331937700510025, 0.008078696206212044, 0.0659201368689537, 0.042360469698905945, 0.06500142812728882, 0.10913071781396866, 0.01029994711279869, -0.02933482639491558, -0.06549667567014694, 0.00225190632045269, 0.050311993807554245, -0.03590244799852371, -0.041169676929712296, -0.011742996983230114, 0.018895218148827553, -0.014649349264800549, -0.09466706216335297, -0.044329531490802765, -0.06353505700826645, -0.016757003962993622, 0.007854673080146313, -0.035726748406887054, 0.0330435112118721, -0.0319247730076313, 0.0159782562404871, 0.05578020215034485, -0.0078032654710114, 0.07848592847585678, 0.0907321646809578, 0.03589816391468048, -0.008100987412035465, -0.04618110880255699, 0.022668998688459396, -0.057701293379068375, -0.05642377585172653, 0.025743765756487846, 0.004531451500952244, -0.07390501350164413, 0.04721268638968468, -0.058355364948511124, 0.0668875128030777, 0.023189233615994453, 0.009756335988640785, -0.05023931711912155, -0.07670214772224426, 0.03398992121219635, 0.03447016701102257, 0.054115597158670425, -0.05952626094222069, -0.021167978644371033, -0.04366559535264969, 0.032702118158340454, 0.019018055871129036, -0.016244612634181976, -0.11945293843746185, 0.026902880519628525, -0.03385728970170021, -0.05524009093642235, 0.072045236825943, -0.008679394610226154, -0.020248588174581528, -0.059966593980789185, -0.042315054684877396, -0.11288956552743912, 0.11422884464263916, 0.0016023395583033562, -0.034729547798633575, 0.03772107884287834, 0.10077463090419769, -0.017636962234973907, 0.03736141696572304, -0.04494315758347511, 0.003933590836822987, 0.015617133118212223, 0.02972143329679966, -0.0008259539026767015, -0.037933655083179474, -0.0158698670566082, 0.04465156048536301, 0.038075678050518036, 0.040919315069913864, 0.05674660950899124, -0.016878493130207062, 0.02141912281513214, -0.011519317515194416, -0.05522208288311958, 0.04348030313849449, -0.09526757150888443, 0.012710151262581348, 0.051376644521951675, 0.06528380513191223, -0.07267210632562637, 0.03812108933925629, -0.014976514503359795, -0.07114588469266891, 0.012041310779750347, -0.042304228991270065, 2.8154665599307857e-33, 0.03734731301665306, -0.12029055505990982, 0.13642749190330505, 0.0005230748793110251, 0.03832255303859711, -0.04199495539069176, -0.03517943620681763, -0.05044759064912796, -0.046204399317502975, -0.03497031703591347, -0.06730328500270844, 0.04186640679836273, -0.022507984191179276, -0.04721829667687416, -0.0012122822226956487, -0.025862112641334534, -0.03180250525474548, -0.01900474727153778, 0.05995325744152069, -0.023998653516173363, 0.07276865094900131, -0.10888509452342987, -0.06145327165722847, 0.012385759502649307, -0.0036607645452022552, -0.0391787551343441, 0.04068470373749733, -0.08233247697353363, -0.009881514124572277, 0.007145856972783804, 0.029327934607863426, -0.04921392351388931, 0.022635353729128838, 0.04205971211194992, -0.1082075983285904, 0.007681376300752163, -0.030891597270965576, 0.07721951603889465, -0.07584503293037415, -0.025114458054304123, 0.0428597629070282, -0.01169989537447691, 0.05260014533996582, -0.08428686112165451, 0.06611715257167816, -0.02966305986046791, 0.009400001727044582, -0.06417040526866913, 0.08207736909389496, 0.023139264434576035, 0.012539831921458244, -0.08364184200763702, 0.07256103307008743, -0.023670446127653122, 0.050753068178892136, 0.06326021254062653, 0.10124624520540237, -0.05768241733312607, -0.049805887043476105, 0.03053504042327404, -0.039730705320835114, -0.012077916413545609, -0.033647920936346054, -0.0016072554280981421, -0.009532878175377846, 0.008788314647972584, -0.01144128292798996, 0.06818954646587372, -0.0021230666898190975, 0.02922932803630829, -0.05302231013774872, 0.01371094211935997, 0.017133254557847977, 0.09229891747236252, 0.02090855874121189, -0.001952023827470839, 0.018914565443992615, -0.0150751369073987, -0.09346690028905869, 0.091402068734169, -0.020723508670926094, -0.026518119499087334, -0.03389265388250351, 0.05921170860528946, 0.0377887599170208, -0.07341433316469193, -0.03723100945353508, 0.061122167855501175, 0.044443100690841675, 0.05642487481236458, 0.07404891401529312, -0.011172664351761341, -0.042477186769247055, 0.056207239627838135, -0.08750353008508682, -4.484309277637464e-33, 0.08497359603643417, 0.015621192753314972, 0.009953766129910946, 0.021596338599920273, 0.033771902322769165, -0.027684051543474197, -0.06637636572122574, 0.02587711624801159, -0.017317168414592743, -0.04809095710515976, -0.012417017482221127, -0.014888832345604897, 0.03209676966071129, 0.05126158893108368, -0.10930175334215164, 0.052821818739175797, -0.02422858029603958, -0.013728578574955463, 0.02662820555269718, 0.07876227796077728, -0.04978399723768234, -0.05297232046723366, 0.06974183768033981, -0.013465129770338535, 0.0025853170081973076, -0.023220060393214226, 0.06882364302873611, 0.037063755095005035, -0.07637017220258713, -0.024163590744137764, -0.005244612228125334, -0.04641486704349518, 0.022308504208922386, 0.09279212355613708, 0.03802187740802765, -0.06120441481471062, -0.027021199464797974, -0.0012785160215571523, 0.029870647937059402, -0.06444479525089264, -0.016508907079696655, 0.000086290376202669, -0.09832625836133957, -0.020823223516345024, -0.07646077871322632, 0.043778132647275925, 0.05157521739602089, -0.02663351781666279, 0.01818831078708172, -0.07654011249542236, -0.05897246673703194, 0.002229063306003809, 0.014555497094988823, 0.08158887922763824, -0.0296713225543499, 0.017809994518756866, -0.0011978528928011656, 0.13904502987861633, -0.046023689210414886, 0.04091447591781616, 0.06445910036563873, -0.09099885821342468, 0.08114033192396164, 0.035569146275520325, 0.02485525794327259, -0.02722059190273285, -0.037724122405052185, 0.04462272301316261, -0.08086331933736801, 0.07719818502664566, -0.06370535492897034, 0.0462677888572216, -0.01945585012435913, 0.07362004369497299, -0.034360699355602264, -0.04079602658748627, -0.028835078701376915, 0.01330020371824503, 0.049256425350904465, 0.02605828456580639, 0.008798238821327686, 0.03930676355957985, -0.09479741007089615, -0.020137712359428406, 0.005401718430221081, 0.06377546489238739, 0.10536277294158936, 0.07015687227249146, 0.04748598113656044, 0.08109287917613983, 0.03606254979968071, -0.00985548086464405, -0.12021449208259583, 0.10528825968503952, -0.038584351539611816, -5.9381470407515735e-8, 0.04742581769824028, -0.01235806941986084, -0.04274114966392517, -0.017274796962738037, 0.08918755501508713, 0.045412059873342514, 0.07924932986497879, 0.0021214731968939304, -0.056171685457229614, -0.01030388567596674, -0.022962849587202072, 0.026846596971154213, -0.008601534180343151, -0.035193804651498795, 0.08516529947519302, -0.040357805788517, -0.051601286977529526, 0.026637228205800056, 0.04444979503750801, -0.03464742377400398, -0.065161794424057, -0.06282676756381989, 0.007848614826798439, 0.03764485940337181, -0.02216305397450924, -0.00006666032277280465, 0.04126817733049393, 0.01535396371036768, 0.033810317516326904, -0.01425349060446024, -0.010099121369421482, 0.01947123184800148, -0.08716319501399994, 0.013962804339826107, -0.0050523774698376656, 0.054514121264219284, -0.11873036623001099, 0.08156219869852066, 0.0831708312034607, 0.10032804310321808, 0.013307908549904823, 0.04737851768732071, -0.051916785538196564, -0.023892655968666077, -0.004577926825731993, 0.08581255376338959, -0.014009248465299606, 0.05683605745434761, -0.011457529850304127, -0.019264306873083115, 0.03056061454117298, -0.033411458134651184, -0.018011944368481636, 0.032021842896938324, -0.020406313240528107, 0.08375265449285507, -0.0030813454650342464, -0.04813038557767868, 0.0332559198141098, -0.004607080947607756, -0.027336640283465385, 0.06095827370882034, 0.027692001312971115, 0.004785961005836725 ]
0.08262
This section presents information you need to know when migrating from dockershim to other container runtimes. Since the announcement of [dockershim deprecation](/blog/2020/12/08/kubernetes-1-20-release-announcement/#dockershim-deprecation) in Kubernetes 1.20, there were questions on how this will affect various workloads and Kubernetes installations. Our [Dockershim Removal FAQ](/blog/2022/02/17/dockershim-faq/) is there to help you to understand the problem better. Dockershim was removed from Kubernetes with the release of v1.24. If you use Docker Engine via dockershim as your container runtime and wish to upgrade to v1.24, it is recommended that you either migrate to another runtime or find an alternative means to obtain Docker Engine support. Check out the [container runtimes](/docs/setup/production-environment/container-runtimes/) section to know your options. The version of Kubernetes with dockershim (1.23) is out of support and the v1.24 will run out of support [soon](/releases/#release-v1-24). Make sure to [report issues](https://github.com/kubernetes/kubernetes/issues) you encountered with the migration so the issues can be fixed in a timely manner and your cluster would be ready for dockershim removal. After v1.24 running out of support, you will need to contact your Kubernetes provider for support or upgrade multiple versions at a time if there are critical issues affecting your cluster. Your cluster might have more than one kind of node, although this is not a common configuration. These tasks will help you to migrate: \* [Check whether Dockershim removal affects you](/docs/tasks/administer-cluster/migrating-from-dockershim/check-if-dockershim-removal-affects-you/) \* [Migrating telemetry and security agents from dockershim](/docs/tasks/administer-cluster/migrating-from-dockershim/migrating-telemetry-and-security-agents/) ## {{% heading "whatsnext" %}} \* Check out [container runtimes](/docs/setup/production-environment/container-runtimes/) to understand your options for an alternative. \* If you find a defect or other technical concern relating to migrating away from dockershim, you can [report an issue](https://github.com/kubernetes/kubernetes/issues/new/choose) to the Kubernetes project.
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/migrating-from-dockershim/_index.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/migrating-from-dockershim/_index.md
[ -0.0038998995441943407, 0.02639792487025261, 0.07410454005002975, -0.028538988903164864, 0.04297719895839691, -0.018012376502156258, -0.0403362475335598, 0.00006222096271812916, 0.011758877895772457, -0.005914532579481602, -0.05047517642378807, -0.0355890728533268, -0.021310584619641304, -0.032050032168626785, 0.02435697801411152, -0.04097113013267517, 0.03777923807501793, -0.019071832299232483, -0.05574546754360199, 0.024856260046362877, -0.0837230235338211, -0.010657940059900284, -0.035363055765628815, -0.030649984255433083, -0.009865816682577133, -0.016036204993724823, -0.11298242211341858, -0.06411447376012802, -0.031229820102453232, 0.019204190000891685, 0.009905848652124405, 0.05294705554842949, 0.01157590001821518, -0.004946844652295113, 0.05421045050024986, 0.012059287168085575, -0.019528312608599663, 0.01080368272960186, -0.021552560850977898, 0.04074139893054962, 0.040633995085954666, -0.042729638516902924, -0.0565033033490181, -0.042470186948776245, -0.03900270536541939, -0.006840613204985857, -0.03058839961886406, -0.08523471653461456, -0.02350100688636303, 0.08276090025901794, -0.02228899672627449, -0.0454753078520298, 0.015107294544577599, -0.009706658311188221, 0.039263203740119934, 0.09276818484067917, -0.016411708667874336, 0.09358540922403336, -0.007262153550982475, -0.0015698681818321347, 0.0031062013003975153, -0.02407637983560562, 0.03333311527967453, -0.07237866520881653, -0.0544978491961956, -0.08134700357913971, 0.08816903084516525, -0.030036509037017822, 0.049195073544979095, -0.014880346134305, 0.0551147423684597, 0.009218336082994938, -0.06280370056629181, -0.08469758182764053, -0.06683726608753204, 0.04253997653722763, 0.034605517983436584, 0.041402287781238556, 0.007017394527792931, -0.07444220781326294, 0.036522988229990005, -0.06480186432600021, 0.024797169491648674, -0.10389154404401779, -0.14682559669017792, -0.013065273873507977, -0.0026158178225159645, -0.0790519192814827, 0.12389031052589417, -0.05349581316113472, 0.04294164106249809, -0.09463027119636536, 0.003230856265872717, 0.00896703451871872, 0.12807096540927887, -0.051762208342552185, -0.06483675539493561, 0.0794784277677536, 0.027814388275146484, -0.004412669688463211, -0.006047442089766264, -0.015794698148965836, 0.031767670065164566, 0.010860741138458252, 0.006299412343651056, 0.016695301979780197, 0.004687989596277475, -0.021624872460961342, -0.04203931614756584, -0.019845588132739067, 0.08139683306217194, 0.03971019387245178, 0.025339465588331223, 0.014259579591453075, 0.04830022156238556, 0.006639622151851654, -0.07643263041973114, -0.06298378854990005, 0.04326651990413666, 0.08129450678825378, 0.023041678592562675, -0.017974048852920532, 0.059632379561662674, -0.011519157327711582, -0.07596791535615921, 0.032357774674892426, -0.08891789615154266, 2.893538853950571e-33, -0.0783410370349884, -0.08725664764642715, 0.07598895579576492, -0.0004906198009848595, 0.09912282973527908, -0.04106389731168747, -0.0031132835429161787, -0.017085012048482895, -0.02568100392818451, -0.06780429929494858, -0.06971654295921326, -0.03176049888134003, -0.03161085397005081, -0.030892862007021904, 0.027654122561216354, -0.014464273117482662, -0.046377815306186676, -0.020048042759299278, 0.09961610287427902, -0.015974367037415504, 0.0943584144115448, -0.033728305250406265, -0.0671912133693695, -0.04635968804359436, 0.005321301054209471, -0.07888668775558472, 0.06437449902296066, -0.08142955601215363, -0.003679602639749646, 0.006662837695330381, -0.05940277874469757, -0.015937762334942818, 0.008491472341120243, 0.02629021741449833, -0.1010306179523468, -0.009427915327250957, -0.031776413321495056, 0.064285509288311, -0.07579153776168823, -0.022452935576438904, 0.02346375584602356, 0.025271199643611908, -0.025173114612698555, -0.053659018129110336, 0.0882335901260376, -0.04688652977347374, 0.08990424126386642, -0.03026679717004299, 0.07604273408651352, 0.0750391036272049, -0.026925211772322655, -0.04835037887096405, -0.01446765847504139, -0.014400159940123558, 0.007243541069328785, -0.055688098073005676, 0.052153103053569794, -0.09120875597000122, -0.02726692333817482, 0.0033286267425864935, -0.062288377434015274, -0.0323832631111145, 0.03814655542373657, -0.07212807238101959, 0.07872071862220764, 0.019542884081602097, -0.022935310378670692, 0.10281393676996231, -0.06366271525621414, 0.05748956650495529, -0.03453217074275017, 0.020930876955389977, -0.011493195779621601, 0.033640943467617035, 0.06756328046321869, -0.04490402340888977, 0.033288199454545975, -0.0004986104322597384, -0.01888461224734783, -0.006322338245809078, 0.003995735198259354, 0.10089012235403061, -0.03441211208701134, 0.05543697252869606, -0.0043943957425653934, -0.08164263516664505, 0.026978623121976852, 0.02098875306546688, 0.06412839144468307, 0.08182356506586075, 0.06049193814396858, -0.07437411695718765, -0.09272849559783936, 0.062442973256111145, -0.09034617245197296, -5.677764814798331e-33, 0.023114589974284172, 0.052084099501371384, -0.03629079461097717, 0.022024409845471382, 0.02273613214492798, 0.012341958470642567, 0.06280388683080673, 0.061917468905448914, 0.029229603707790375, -0.10083597898483276, -0.04114134982228279, 0.05131923407316208, 0.05271853134036064, 0.005430883727967739, -0.13396480679512024, -0.012788472697138786, -0.03705546259880066, -0.05990104749798775, 0.004278689622879028, 0.005662462208420038, 0.06094367802143097, 0.02185092680156231, -0.03803858533501625, 0.07800433784723282, -0.09014172106981277, -0.018590126186609268, 0.05461737513542175, 0.02138512395322323, -0.016746042296290398, 0.05068817362189293, 0.052388280630111694, -0.040023863315582275, 0.06291741877794266, 0.06114322319626808, 0.07304646819829941, 0.01174779050052166, -0.015917720273137093, 0.03055206686258316, -0.03408975526690483, -0.036513518542051315, -0.03114939108490944, -0.023273130878806114, 0.07105796039104462, -0.017983073368668556, -0.034118447452783585, 0.04335452988743782, -0.004631861578673124, -0.03795449063181877, 0.018370671197772026, -0.07110688090324402, -0.022712653502821922, 0.010633093304932117, -0.008139590732753277, 0.05289384722709656, -0.027713004499673843, -0.011049083434045315, 0.044928137212991714, 0.07041970640420914, -0.09569911658763885, 0.06498763710260391, 0.10497763752937317, -0.043505482375621796, 0.055324628949165344, -0.01934903673827648, 0.041129354387521744, 0.018297092989087105, -0.0383836068212986, 0.027612565085291862, -0.00019625471031758934, 0.04842221736907959, -0.03665938228368759, 0.0007597478688694537, -0.011656769551336765, 0.027384955435991287, -0.005073153879493475, -0.07721390575170517, 0.03990338742733002, 0.04545946046710014, 0.07014147937297821, -0.08418472856283188, -0.011938913725316525, 0.0022226853761821985, -0.01354449987411499, -0.12002364546060562, 0.03530123084783554, 0.010252568870782852, 0.10956297814846039, -0.0018266388215124607, 0.05337268114089966, 0.00838496908545494, -0.0038527045398950577, -0.06127003952860832, -0.07681067287921906, 0.08971874415874481, 0.008606045506894588, -5.551697412897738e-8, 0.049271196126937866, 0.03660370782017708, -0.04588981717824936, 0.03454737737774849, 0.05645716190338135, -0.03577492758631706, 0.000823148584458977, 0.10120119899511337, -0.0027405910659581423, 0.023037275299429893, -0.08354475349187851, 0.05132514610886574, -0.00696703651919961, 0.038375124335289, 0.09634270519018173, 0.020554058253765106, -0.07491564005613327, -0.006663814187049866, 0.005927883088588715, -0.09761174768209457, -0.06684479862451553, -0.010707841254770756, 0.019350526854395866, -0.07068875432014465, -0.04315342754125595, 0.03660591319203377, 0.05005843564867973, -0.010986309498548508, 0.06680439412593842, -0.03285863623023033, 0.007651620544493198, -0.000837801315356046, -0.05653531849384308, 0.060302916914224625, 0.08134303241968155, 0.020746581256389618, -0.09545981138944626, 0.05812893807888031, 0.029233504086732864, 0.01984894648194313, -0.0358930341899395, -0.039911676198244095, -0.06885980814695358, -0.02495841309428215, 0.030180763453245163, -0.029747167602181435, -0.03208281844854355, 0.05031377449631691, -0.07713566720485687, 0.03364202380180359, 0.04823946952819824, 0.00815882533788681, -0.0467451773583889, 0.03561178594827652, 0.048583172261714935, 0.06085478514432907, -0.0701427236199379, 0.02048049308359623, 0.05573632940649986, -0.0018228248227387667, 0.06250152736902237, 0.0061292629688978195, 0.0012343998532742262, 0.05126120150089264 ]
0.003408
This page shows how to set minimum and maximum values for memory used by containers running in a {{< glossary\_tooltip text="namespace" term\_id="namespace" >}}. You specify minimum and maximum memory values in a [LimitRange](/docs/reference/kubernetes-api/policy-resources/limit-range-v1/) object. If a Pod does not meet the constraints imposed by the LimitRange, it cannot be created in the namespace. ## {{% heading "prerequisites" %}} {{< include "task-tutorial-prereqs.md" >}} You must have access to create namespaces in your cluster. Each node in your cluster must have at least 1 GiB of memory available for Pods. ## Create a namespace Create a namespace so that the resources you create in this exercise are isolated from the rest of your cluster. ```shell kubectl create namespace constraints-mem-example ``` ## Create a LimitRange and a Pod Here's an example manifest for a LimitRange: {{% code\_sample file="admin/resource/memory-constraints.yaml" %}} Create the LimitRange: ```shell kubectl apply -f https://k8s.io/examples/admin/resource/memory-constraints.yaml --namespace=constraints-mem-example ``` View detailed information about the LimitRange: ```shell kubectl get limitrange mem-min-max-demo-lr --namespace=constraints-mem-example --output=yaml ``` The output shows the minimum and maximum memory constraints as expected. But notice that even though you didn't specify default values in the configuration file for the LimitRange, they were created automatically. ``` limits: - default: memory: 1Gi defaultRequest: memory: 1Gi max: memory: 1Gi min: memory: 500Mi type: Container ``` Now whenever you define a Pod within the constraints-mem-example namespace, Kubernetes performs these steps: \* If any container in that Pod does not specify its own memory request and limit, the control plane assigns the default memory request and limit to that container. \* Verify that every container in that Pod requests at least 500 MiB of memory. \* Verify that every container in that Pod requests no more than 1024 MiB (1 GiB) of memory. Here's a manifest for a Pod that has one container. Within the Pod spec, the sole container specifies a memory request of 600 MiB and a memory limit of 800 MiB. These satisfy the minimum and maximum memory constraints imposed by the LimitRange. {{% code\_sample file="admin/resource/memory-constraints-pod.yaml" %}} Create the Pod: ```shell kubectl apply -f https://k8s.io/examples/admin/resource/memory-constraints-pod.yaml --namespace=constraints-mem-example ``` Verify that the Pod is running and that its container is healthy: ```shell kubectl get pod constraints-mem-demo --namespace=constraints-mem-example ``` View detailed information about the Pod: ```shell kubectl get pod constraints-mem-demo --output=yaml --namespace=constraints-mem-example ``` The output shows that the container within that Pod has a memory request of 600 MiB and a memory limit of 800 MiB. These satisfy the constraints imposed by the LimitRange for this namespace: ```yaml resources: limits: memory: 800Mi requests: memory: 600Mi ``` Delete your Pod: ```shell kubectl delete pod constraints-mem-demo --namespace=constraints-mem-example ``` ## Attempt to create a Pod that exceeds the maximum memory constraint Here's a manifest for a Pod that has one container. The container specifies a memory request of 800 MiB and a memory limit of 1.5 GiB. {{% code\_sample file="admin/resource/memory-constraints-pod-2.yaml" %}} Attempt to create the Pod: ```shell kubectl apply -f https://k8s.io/examples/admin/resource/memory-constraints-pod-2.yaml --namespace=constraints-mem-example ``` The output shows that the Pod does not get created, because it defines a container that requests more memory than is allowed: ``` Error from server (Forbidden): error when creating "examples/admin/resource/memory-constraints-pod-2.yaml": pods "constraints-mem-demo-2" is forbidden: maximum memory usage per Container is 1Gi, but limit is 1536Mi. ``` ## Attempt to create a Pod that does not meet the minimum memory request Here's a manifest for a Pod that has one container. That container specifies a memory request of 100 MiB and a memory limit of 800 MiB. {{% code\_sample file="admin/resource/memory-constraints-pod-3.yaml" %}} Attempt to create the Pod: ```shell kubectl apply -f https://k8s.io/examples/admin/resource/memory-constraints-pod-3.yaml --namespace=constraints-mem-example ``` The output shows that the Pod does not get created, because it defines a
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/manage-resources/memory-constraint-namespace.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/manage-resources/memory-constraint-namespace.md
[ 0.05089200660586357, 0.026311038061976433, 0.0012512606335803866, 0.003095915075391531, -0.08542205393314362, 0.007773236371576786, 0.03758981451392174, -0.004678767640143633, 0.022133203223347664, 0.06706368178129196, -0.04283008351922035, -0.09847252070903778, 0.037553250789642334, -0.04109959304332733, 0.016583003103733063, 0.04573430120944977, 0.05917603150010109, -0.05235510692000389, -0.04853984713554382, -0.06898453831672668, 0.10227785259485245, 0.03148854523897171, 0.023584553971886635, 0.013657382689416409, -0.10146285593509674, -0.014242339879274368, -0.05163942277431488, 0.0032032562885433435, 0.0703066885471344, -0.006553257815539837, 0.03051169030368328, -0.005117193795740604, -0.010272961109876633, 0.061258427798748016, 0.1315368264913559, 0.13185589015483856, -0.0810939371585846, -0.05103364959359169, -0.07348260283470154, 0.0033283259253948927, 0.012309111654758453, 0.04830643907189369, -0.09825275093317032, 0.020120078697800636, 0.002586088143289089, 0.042543474584817886, -0.05058402568101883, -0.056596457958221436, 0.01337055116891861, -0.037813033908605576, -0.02585606649518013, -0.04714213311672211, 0.047003138810396194, -0.01678016223013401, 0.07868362963199615, 0.013806517235934734, -0.03342951089143753, 0.048719894140958786, 0.04460249841213226, -0.012312236241996288, -0.016596047207713127, -0.06309589743614197, 0.022425007075071335, -0.10071087628602982, -0.04018604755401611, 0.022471290081739426, 0.03901546075940132, 0.061244819313287735, -0.013453246094286442, 0.060051921755075455, 0.02681673690676689, -0.009365377016365528, -0.03219884634017944, -0.01801469549536705, 0.011004656553268433, 0.06348960846662521, -0.06716947257518768, 0.050359662622213364, -0.021919304504990578, -0.07187589257955551, -0.02325919270515442, 0.05835769325494766, 0.06280037760734558, -0.042718492448329926, -0.05927824229001999, 0.0077245826832950115, 0.019668234512209892, -0.03514396771788597, 0.0740102231502533, -0.03530627489089966, 0.026315519586205482, -0.09018166363239288, 0.007121738977730274, -0.06981005519628525, 0.08803574740886688, -0.015215453691780567, -0.018337145447731018, -0.02338397689163685, -0.015461234375834465, -0.024741962552070618, 0.03759729489684105, -0.004984602797776461, 0.02039092592895031, 0.06167341768741608, 0.006497964728623629, -0.03737683594226837, -0.04467841237783432, 0.0015643523074686527, -0.00021850477787666023, 0.0746205747127533, 0.02953883819282055, 0.08749037981033325, -0.0011726600350812078, 0.014688619412481785, 0.048518575727939606, -0.014823068864643574, 0.038808535784482956, -0.06055286526679993, 0.047453515231609344, 0.07485782355070114, 0.029148656874895096, -0.0699867233633995, -0.002700836630538106, -0.002480363240465522, -0.07093392312526703, -0.005780570209026337, -0.05387015640735626, 3.5630919873132995e-33, 0.024283163249492645, -0.0926249772310257, 0.021145667880773544, 0.0003930852690245956, 0.00370213040150702, -0.07630408555269241, -0.04997933283448219, 0.05612257868051529, -0.08746868371963501, -0.022465592250227928, -0.004661934450268745, 0.06379266828298569, -0.04099981486797333, -0.04444814473390579, 0.03684283047914505, -0.029282068833708763, -0.025936109945178032, 0.07881302386522293, 0.1060933917760849, -0.015911057591438293, -0.010585627518594265, -0.10161244869232178, -0.039092615246772766, -0.04510568082332611, 0.026226283982396126, -0.0014694896526634693, 0.04617419093847275, -0.11333373934030533, 0.016993945464491844, 0.0008095624507404864, -0.09642297774553299, -0.009247076697647572, 0.027306877076625824, 0.010243367403745651, -0.10550318658351898, 0.003641102695837617, -0.03257569670677185, 0.051183585077524185, -0.0523889884352684, -0.07057361304759979, 0.035044342279434204, 0.015388740226626396, 0.0784178376197815, -0.058966878801584244, 0.0381876565515995, -0.028801441192626953, 0.10635039955377579, -0.05453599616885185, 0.01559879258275032, 0.03928421065211296, 0.011074098758399487, -0.046484000980854034, -0.02437133714556694, -0.02803671732544899, 0.031613294035196304, -0.005961510818451643, 0.05704312399029732, -0.02015005238354206, 0.008409503847360611, 0.019225681200623512, -0.09860184043645859, -0.03992637246847153, 0.008426865562796593, 0.08339793235063553, 0.1162998303771019, 0.01840018667280674, -0.059843987226486206, 0.1077277734875679, 0.01423217449337244, 0.02626638300716877, -0.05344657972455025, -0.05314308777451515, 0.007577310781925917, 0.057112228125333786, 0.013119169510900974, -0.05319478362798691, 0.0840313732624054, 0.002301169326528907, -0.1601991504430771, -0.011485864408314228, 0.050538070499897, -0.032128117978572845, -0.012880658730864525, 0.0011491684708744287, -0.03554162383079529, -0.07016314566135406, 0.03271273896098137, 0.003014775924384594, -0.07069551199674606, 0.03600085526704788, -0.007591527421027422, -0.06466248631477356, -0.05271156504750252, 0.03206717222929001, -0.11734993010759354, -4.7216577501158075e-33, 0.1263183206319809, 0.01245311088860035, -0.0081675685942173, 0.007225031964480877, 0.06755847483873367, 0.008201561868190765, 0.039430491626262665, 0.05914671719074249, -0.05382095277309418, -0.10387912392616272, -0.07826121151447296, -0.04603996127843857, 0.077835313975811, 0.08419862389564514, -0.09655401855707169, 0.005031274631619453, -0.06360616534948349, 0.004407159052789211, 0.021745434030890465, 0.031015310436487198, -0.05646838620305061, -0.010447193868458271, 0.05390206351876259, 0.018419174477458, -0.004480094648897648, 0.01976892538368702, 0.00838380865752697, 0.0254804827272892, 0.009840069338679314, 0.027996093034744263, -0.031005539000034332, -0.05952746793627739, -0.03807276859879494, -0.0054137688130140305, 0.023599032312631607, -0.11728029698133469, -0.011484210379421711, 0.029108356684446335, -0.016474993899464607, 0.04968375712633133, 0.08052533864974976, 0.018987134099006653, -0.08006024360656738, -0.08701696246862411, -0.03810642287135124, 0.0013358870055526495, 0.012347620911896229, -0.05323251709342003, -0.018647953867912292, -0.10922468453645706, -0.022568831220269203, -0.0607333779335022, -0.08139529079198837, 0.02790290117263794, -0.04272378236055374, -0.004118477925658226, 0.041720159351825714, 0.0047750696539878845, 0.02291843481361866, -0.051139988005161285, 0.038453713059425354, -0.058434464037418365, 0.03482256084680557, -0.01421912107616663, 0.0444401353597641, -0.05629844591021538, -0.02693461999297142, 0.00036028141039423645, -0.055767107754945755, 0.04761272296309471, -0.03492593765258789, 0.027635376900434494, 0.06567978113889694, 0.05335604399442673, -0.008724822662770748, 0.003363103838637471, 0.024238698184490204, -0.03661241754889488, 0.10585150122642517, -0.008838591165840626, -0.03421301767230034, 0.0955461636185646, -0.02276810072362423, 0.0446225069463253, -0.013272861018776894, 0.07732721418142319, 0.0412951223552227, 0.11466394364833832, 0.014947371557354927, 0.07246910780668259, 0.003354057902470231, -0.012110347859561443, 0.007403777912259102, 0.11901743710041046, -0.07116211950778961, -5.229669852724328e-8, 0.03414721414446831, 0.04143858700990677, 0.003314922098070383, 0.07696153968572617, 0.04715514928102493, -0.07422949373722076, 0.022913459688425064, 0.07436566799879074, 0.011204912327229977, 0.0408887080848217, 0.03337432071566582, 0.04527464509010315, -0.05666481703519821, 0.04079776629805565, -0.01642773672938347, 0.010603540576994419, -0.010038614273071289, -0.007111222017556429, 0.024707354605197906, -0.07401573657989502, -0.0448094978928566, -0.04433605074882507, 0.0384717620909214, -0.03023245930671692, 0.03424543887376785, -0.02306244894862175, 0.09196849912405014, 0.07060506194829941, 0.023508429527282715, -0.0005189527873881161, -0.04790371656417847, -0.028594136238098145, -0.08257493376731873, 0.053213316947221756, -0.02819628268480301, -0.035081829875707626, -0.10949251800775528, 0.07012270390987396, 0.023776771500706673, 0.030017852783203125, -0.04544771462678909, -0.006892199162393808, -0.04825599491596222, -0.00791353639215231, -0.008319437503814697, 0.09402758628129959, -0.08051567524671555, 0.0705496147274971, 0.008247330784797668, 0.014611154794692993, -0.06029902398586273, 0.006888426840305328, 0.016519315540790558, 0.07295887172222137, -0.01480725035071373, 0.0007706510368734598, 0.008046695031225681, 0.016290774568915367, -0.011660230346024036, -0.040006984025239944, 0.016253013163805008, 0.01438379380851984, -0.010873543098568916, 0.023230906575918198 ]
0.095933
that has one container. That container specifies a memory request of 100 MiB and a memory limit of 800 MiB. {{% code\_sample file="admin/resource/memory-constraints-pod-3.yaml" %}} Attempt to create the Pod: ```shell kubectl apply -f https://k8s.io/examples/admin/resource/memory-constraints-pod-3.yaml --namespace=constraints-mem-example ``` The output shows that the Pod does not get created, because it defines a container that requests less memory than the enforced minimum: ``` Error from server (Forbidden): error when creating "examples/admin/resource/memory-constraints-pod-3.yaml": pods "constraints-mem-demo-3" is forbidden: minimum memory usage per Container is 500Mi, but request is 100Mi. ``` ## Create a Pod that does not specify any memory request or limit Here's a manifest for a Pod that has one container. The container does not specify a memory request, and it does not specify a memory limit. {{% code\_sample file="admin/resource/memory-constraints-pod-4.yaml" %}} Create the Pod: ```shell kubectl apply -f https://k8s.io/examples/admin/resource/memory-constraints-pod-4.yaml --namespace=constraints-mem-example ``` View detailed information about the Pod: ```shell kubectl get pod constraints-mem-demo-4 --namespace=constraints-mem-example --output=yaml ``` The output shows that the Pod's only container has a memory request of 1 GiB and a memory limit of 1 GiB. How did that container get those values? ``` resources: limits: memory: 1Gi requests: memory: 1Gi ``` Because your Pod did not define any memory request and limit for that container, the cluster applied a [default memory request and limit](/docs/tasks/administer-cluster/manage-resources/memory-default-namespace/) from the LimitRange. This means that the definition of that Pod shows those values. You can check it using `kubectl describe`: ```shell # Look for the "Requests:" section of the output kubectl describe pod constraints-mem-demo-4 --namespace=constraints-mem-example ``` At this point, your Pod might be running or it might not be running. Recall that a prerequisite for this task is that your Nodes have at least 1 GiB of memory. If each of your Nodes has only 1 GiB of memory, then there is not enough allocatable memory on any Node to accommodate a memory request of 1 GiB. If you happen to be using Nodes with 2 GiB of memory, then you probably have enough space to accommodate the 1 GiB request. Delete your Pod: ```shell kubectl delete pod constraints-mem-demo-4 --namespace=constraints-mem-example ``` ## Enforcement of minimum and maximum memory constraints The maximum and minimum memory constraints imposed on a namespace by a LimitRange are enforced only when a Pod is created or updated. If you change the LimitRange, it does not affect Pods that were created previously. ## Motivation for minimum and maximum memory constraints As a cluster administrator, you might want to impose restrictions on the amount of memory that Pods can use. For example: \* Each Node in a cluster has 2 GiB of memory. You do not want to accept any Pod that requests more than 2 GiB of memory, because no Node in the cluster can support the request. \* A cluster is shared by your production and development departments. You want to allow production workloads to consume up to 8 GiB of memory, but you want development workloads to be limited to 512 MiB. You create separate namespaces for production and development, and you apply memory constraints to each namespace. ## Clean up Delete your namespace: ```shell kubectl delete namespace constraints-mem-example ``` ## {{% heading "whatsnext" %}} ### For cluster administrators \* [Configure Default Memory Requests and Limits for a Namespace](/docs/tasks/administer-cluster/manage-resources/memory-default-namespace/) \* [Configure Default CPU Requests and Limits for a Namespace](/docs/tasks/administer-cluster/manage-resources/cpu-default-namespace/) \* [Configure Minimum and Maximum CPU Constraints for a Namespace](/docs/tasks/administer-cluster/manage-resources/cpu-constraint-namespace/) \* [Configure Memory and CPU Quotas for a Namespace](/docs/tasks/administer-cluster/manage-resources/quota-memory-cpu-namespace/) \* [Configure a Pod Quota for a Namespace](/docs/tasks/administer-cluster/manage-resources/quota-pod-namespace/) \* [Configure Quotas for API Objects](/docs/tasks/administer-cluster/quota-api-object/) ### For app developers \* [Assign Memory Resources to Containers and Pods](/docs/tasks/configure-pod-container/assign-memory-resource/) \* [Assign CPU Resources to Containers and
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/manage-resources/memory-constraint-namespace.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/manage-resources/memory-constraint-namespace.md
[ 0.06046475097537041, 0.04424527660012245, -0.01877567358314991, 0.011665569618344307, -0.01024292316287756, -0.07748215645551682, -0.01386863924562931, 0.03448929637670517, 0.045866914093494415, 0.06145302951335907, -0.005836064461618662, -0.036554303020238876, -0.015571645461022854, -0.01853364333510399, 0.056594524532556534, 0.0037997495383024216, 0.06844712793827057, -0.008717226795852184, -0.03529992327094078, 0.011049298569560051, 0.09806656092405319, 0.00849936157464981, 0.032731425017118454, 0.011021344922482967, -0.09064119309186935, -0.013486924581229687, -0.04119161143898964, -0.013705682940781116, 0.05168681964278221, -0.05988650768995285, 0.02445964887738228, 0.02530711144208908, 0.009935599751770496, 0.010187816806137562, 0.1701168417930603, 0.1362631916999817, -0.029810365289449692, -0.11153901368379593, -0.06660658866167068, -0.011980738490819931, -0.0041582356207072735, 0.04129040613770485, -0.10245905071496964, 0.050881143659353256, -0.009167504496872425, 0.019862161949276924, -0.05144045129418373, -0.05840427055954933, 0.007547822780907154, -0.0676431655883789, -0.05347750708460808, 0.008029792457818985, 0.034706782549619675, 0.019272038713097572, 0.05283891782164574, -0.05123322457075119, -0.05914632976055145, 0.07911168783903122, 0.04112265259027481, 0.056900497525930405, -0.017743369564414024, -0.04941776022315025, 0.03854107856750488, -0.062272898852825165, -0.012137805111706257, -0.028470199555158615, -0.027663232758641243, 0.008857088163495064, -0.02656739577651024, 0.023299386724829674, 0.04849306493997574, -0.028184939175844193, -0.047660600394010544, 0.029287587851285934, -0.017221182584762573, -0.03544534370303154, -0.021222911775112152, 0.05647224560379982, -0.01532275602221489, -0.00004762817479786463, -0.04970499500632286, -0.002966406289488077, 0.03885162994265556, -0.0918775424361229, -0.09248562157154083, 0.016118241474032402, -0.010136278346180916, -0.01637377217411995, 0.023729830980300903, 0.0013385218335315585, 0.016919534653425217, -0.0060139065608382225, -0.0016542836092412472, -0.047499656677246094, 0.07580086588859558, -0.014846029691398144, -0.01634983904659748, 0.013048812747001648, -0.053907010704278946, 0.000788445002399385, 0.06051640585064888, 0.041025854647159576, 0.03394166752696037, 0.03355053812265396, 0.0764579027891159, -0.05113843455910683, -0.029425261542201042, 0.01654559187591076, 0.0030084082391113043, 0.08132269233465195, 0.012111883610486984, 0.008737729862332344, -0.006940880790352821, 0.022054435685276985, 0.012238915078341961, -0.02077089063823223, -0.023194244131445885, -0.0213771965354681, 0.01249400433152914, 0.09453022480010986, 0.0509803481400013, -0.04547403007745743, -0.00208816840313375, 0.010626421310007572, -0.092060886323452, 0.004293171688914299, -0.04926064983010292, 5.712199085095747e-34, 0.032412055879831314, -0.11073405295610428, -0.014185002073645592, 0.013394230045378208, 0.06150764971971512, -0.07247830927371979, -0.04303327202796936, 0.04820210114121437, -0.09938183426856995, 0.005055309738963842, -0.0306495800614357, -0.0153525834903121, -0.023885777220129967, 0.008509808219969273, 0.05727392062544823, -0.06022046506404877, -0.07943995296955109, 0.043111491948366165, 0.09214598685503006, -0.0013545391848310828, 0.008702610619366169, -0.05991330370306969, -0.04199957847595215, -0.013722998090088367, -0.02587142027914524, -0.009817934595048428, 0.054167695343494415, -0.11707978695631027, 0.04992395639419556, 0.01642000861465931, -0.05200376734137535, -0.03980507329106331, 0.04620605707168579, 0.011689350008964539, -0.03745153173804283, -0.03701387345790863, 0.005076351575553417, 0.01013276632875204, -0.1255820393562317, -0.08107423782348633, 0.051672499626874924, 0.0197159331291914, 0.02760608308017254, -0.05561414361000061, -0.005435358267277479, -0.07575923949480057, 0.08646499365568161, -0.06248105317354202, -0.026214182376861572, 0.06407886743545532, -0.010770720429718494, -0.013894866220653057, -0.005743603687733412, 0.004799391608685255, 0.05595237761735916, -0.007699442561715841, 0.06196565553545952, -0.004048670642077923, 0.01010893378406763, 0.04378945380449295, -0.06591387838125229, -0.0024267996195703745, 0.005776642356067896, 0.038632456213235855, 0.074972964823246, 0.03562860190868378, -0.03564278036355972, 0.10529296100139618, -0.003615705296397209, 0.09810559451580048, -0.05199240893125534, -0.0306474007666111, 0.014414945617318153, 0.04249265789985657, -0.055345989763736725, -0.0804009884595871, 0.08906089514493942, 0.020525261759757996, -0.15045592188835144, -0.0008829697617329657, 0.017127349972724915, -0.019154861569404602, -0.008369705639779568, 0.03422921895980835, -0.08672203868627548, -0.04967036470770836, 0.03469563648104668, 0.06730762124061584, -0.023504938930273056, 0.021543515846133232, -0.010021722875535488, -0.02271472103893757, -0.0671294778585434, -0.037708934396505356, -0.14173470437526703, -2.5590021615851715e-33, 0.0572216622531414, -0.021042317152023315, -0.038360968232154846, 0.01135934516787529, 0.06198923662304878, 0.0016728301998227835, 0.02804611437022686, 0.041008658707141876, -0.03630274906754494, -0.0963326171040535, -0.07001413404941559, -0.03117804415524006, 0.10037199407815933, 0.04867039993405342, -0.12213226407766342, 0.021639302372932434, -0.06389375776052475, -0.06795384734869003, 0.009179657325148582, 0.026298554614186287, -0.09998802095651627, 0.06956864893436432, 0.1316150426864624, 0.05372920632362366, -0.05326012149453163, 0.01994303986430168, 0.004410999361425638, 0.015979841351509094, -0.035558879375457764, -0.0176838431507349, 0.018899256363511086, -0.08152291178703308, -0.030194884166121483, 0.05770476534962654, -0.009180895052850246, -0.082620769739151, -0.014170180074870586, 0.055643480271101, -0.03438996523618698, -0.030660312622785568, 0.07740101963281631, 0.02934134192764759, -0.036599889397621155, -0.013152540661394596, -0.06560822576284409, -0.017648441717028618, 0.02699708566069603, -0.014234975911676884, 0.055884748697280884, -0.11048553138971329, -0.038473598659038544, -0.0329233780503273, -0.048977985978126526, 0.048032455146312714, -0.02206375263631344, -0.03321143612265587, 0.0009507241775281727, 0.05512993782758713, 0.04043477028608322, -0.002007970819249749, 0.08377432078123093, -0.03669276833534241, 0.0041376217268407345, -0.04933448135852814, 0.04419388622045517, -0.028615163639187813, -0.00976210180670023, 0.01720820926129818, -0.019599197432398796, 0.055124953389167786, 0.07642439007759094, 0.050605468451976776, 0.037599965929985046, 0.060773815959692, -0.0030637152958661318, 0.001474821474403143, -0.028874829411506653, -0.024547003209590912, 0.08035685122013092, -0.007416075095534325, -0.05698249861598015, 0.13497526943683624, -0.05875846743583679, 0.053977496922016144, 0.04925930127501488, 0.024388570338487625, -0.00009713473991723731, 0.0719740018248558, -0.007209272589534521, 0.0784863606095314, 0.031223103404045105, 0.0023162744473665953, -0.06377416104078293, 0.10408207029104233, 0.006368415430188179, -4.16040144557428e-8, 0.061899229884147644, -0.014956091530621052, 0.0043125939555466175, 0.046522535383701324, 0.0646602138876915, -0.03941282629966736, 0.053317438811063766, 0.012449408881366253, -0.015411301515996456, 0.02787451632320881, 0.006316624581813812, 0.02433270588517189, -0.13593024015426636, 0.028136586770415306, 0.014156960882246494, -0.03584250435233116, -0.04507828876376152, 0.06905701011419296, 0.024544568732380867, -0.08269450813531876, -0.07946831732988358, -0.06264033168554306, 0.027335382997989655, -0.02664504572749138, 0.03265766426920891, 0.05300942063331604, 0.10227423161268234, 0.059065140783786774, 0.0023473044857382774, -0.043058305978775024, -0.019394945353269577, -0.008044876158237457, -0.06443943083286285, -0.013374269008636475, 0.010053819045424461, -0.03353019431233406, -0.1713649183511734, 0.06984350830316544, -0.017205413430929184, -0.022702720016241074, -0.05989883095026016, -0.02124430611729622, -0.0010989566799253225, 0.009513619355857372, -0.01385424192994833, 0.06753679364919662, -0.0519927442073822, 0.044385913759469986, 0.004682877566665411, 0.015219256281852722, 0.0519656166434288, -0.016837360337376595, 0.02204047329723835, 0.07799099385738373, -0.02825409732758999, 0.01713445968925953, 0.000587792950682342, -0.02096407860517502, -0.02299988642334938, -0.018351158127188683, 0.09679638594388962, 0.05706742778420448, 0.023139163851737976, 0.016071699559688568 ]
0.163328
Minimum and Maximum CPU Constraints for a Namespace](/docs/tasks/administer-cluster/manage-resources/cpu-constraint-namespace/) \* [Configure Memory and CPU Quotas for a Namespace](/docs/tasks/administer-cluster/manage-resources/quota-memory-cpu-namespace/) \* [Configure a Pod Quota for a Namespace](/docs/tasks/administer-cluster/manage-resources/quota-pod-namespace/) \* [Configure Quotas for API Objects](/docs/tasks/administer-cluster/quota-api-object/) ### For app developers \* [Assign Memory Resources to Containers and Pods](/docs/tasks/configure-pod-container/assign-memory-resource/) \* [Assign CPU Resources to Containers and Pods](/docs/tasks/configure-pod-container/assign-cpu-resource/) \* [Assign Pod-level CPU and memory resources](/docs/tasks/configure-pod-container/assign-pod-level-resources/) \* [Configure Quality of Service for Pods](/docs/tasks/configure-pod-container/quality-service-pod/)
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/manage-resources/memory-constraint-namespace.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/manage-resources/memory-constraint-namespace.md
[ 0.03093535639345646, 0.00005042653720011003, -0.05927031859755516, 0.03763611614704132, -0.041985366493463516, -0.042712148278951645, -0.003323065349832177, 0.01364988461136818, -0.02635881118476391, 0.02850138023495674, -0.015639089047908783, -0.07559166848659515, -0.006083199288696051, -0.013563728891313076, 0.001262365491129458, 0.027860090136528015, 0.05811377987265587, 0.008942716754972935, -0.06256905943155289, -0.031136205419898033, 0.1382651925086975, -0.023858098313212395, 0.02404758706688881, -0.0012134561548009515, -0.011684971861541271, 0.008292402140796185, -0.09647907316684723, -0.04695016145706177, 0.007851796224713326, -0.011857044883072376, 0.005153096280992031, -0.04652002826333046, 0.06266167014837265, 0.031022951006889343, 0.1283320188522339, 0.10862688720226288, 0.01635081321001053, -0.13147835433483124, -0.0252858716994524, -0.005345605313777924, -0.01836046390235424, 0.021328771486878395, -0.07338109612464905, 0.027891865000128746, -0.05025796219706535, 0.030199885368347168, -0.03680354356765747, -0.01800837181508541, -0.03280635550618172, -0.011572610586881638, -0.020399106666445732, -0.04459426924586296, 0.030200503766536713, 0.001304151606746018, 0.02241845242679119, 0.05551665276288986, 0.021802807226777077, 0.043683551251888275, 0.05691266804933548, 0.038720328360795975, 0.006066061556339264, -0.04951529949903488, -0.0012160514015704393, -0.032175213098526, 0.05131911486387253, -0.037626590579748154, -0.0021425827872008085, -0.01574753224849701, 0.0023584915325045586, 0.026466181501746178, 0.026400446891784668, 0.012028860859572887, -0.05496647208929062, -0.03534780070185661, -0.04619400203227997, 0.007929664105176926, -0.013314648531377316, 0.040325336158275604, -0.023037487640976906, -0.09981480240821838, -0.02883671037852764, 0.027832213789224625, 0.00013701686111744493, -0.04998094588518143, -0.04555605724453926, 0.03303160145878792, 0.018266350030899048, 0.0035860221832990646, 0.03697753697633743, -0.012366090901196003, 0.04326167330145836, -0.03240326792001724, 0.02468746155500412, -0.05526449531316757, 0.09354724735021591, 0.010829724371433258, -0.07805131375789642, -0.010541120544075966, -0.012207395397126675, 0.013485175557434559, -0.01810232736170292, -0.021806981414556503, 0.03841856122016907, 0.026511693373322487, 0.04738381877541542, -0.00042098062112927437, -0.02918890118598938, 0.015182125382125378, -0.03824404999613762, 0.05826464295387268, 0.03728518262505531, 0.05605151131749153, -0.0061431522481143475, 0.03211430087685585, 0.011146741919219494, 0.051739949733018875, 0.02005366049706936, -0.07975360006093979, 0.053410131484270096, 0.06987930834293365, 0.03506132960319519, -0.06527847796678543, 0.021086683496832848, -0.023501181975007057, -0.04775288701057434, -0.025568228214979172, -0.09686385840177536, 2.079736951707601e-33, -0.0007224844302982092, -0.07258491218090057, 0.04585598409175873, 0.018420899286866188, 0.040389496833086014, -0.02897956781089306, -0.02468501776456833, 0.059420567005872726, -0.04882318526506424, -0.026208410039544106, -0.0015608561225235462, 0.002386396052315831, -0.027445605024695396, -0.045120757073163986, 0.004893150180578232, -0.09048129618167877, 0.027616441249847412, 0.07713665813207626, 0.09756644815206528, -0.006341336760669947, 0.039134420454502106, -0.039176806807518005, -0.13400426506996155, 0.03343958035111427, 0.028941545635461807, 0.04648582264780998, 0.04218470677733421, -0.15065927803516388, 0.0163761917501688, 0.025977034121751785, 0.0018153396667912602, -0.005294529255479574, 0.005641047842800617, 0.04043091833591461, -0.056190792471170425, 0.003299482399597764, -0.005671188235282898, 0.07215733081102371, -0.0884673073887825, -0.034234654158353806, -0.007508811540901661, 0.049399398267269135, 0.020305901765823364, -0.0784604400396347, -0.03205517679452896, -0.03206563740968704, 0.06348040699958801, -0.08507140725851059, -0.002435686532407999, 0.05569007620215416, -0.005426413379609585, -0.03447620943188667, 0.03528409078717232, 0.02119261771440506, 0.07979213446378708, -0.04207080602645874, 0.007202278356999159, 0.01857909932732582, 0.031412575393915176, 0.061160821467638016, -0.07671429216861725, -0.04078848287463188, -0.005673260893672705, 0.037936948239803314, 0.05167042464017868, 0.08265559375286102, -0.04346011206507683, 0.03671342879533768, 0.04248245432972908, 0.09105037897825241, -0.06854839622974396, -0.009647895582020283, 0.027894867584109306, 0.08561395853757858, -0.04974879324436188, -0.02096128650009632, 0.04716344550251961, -0.012288181111216545, -0.20349891483783722, -0.00033949807402677834, -0.01156429573893547, 0.02970312163233757, -0.016675662249326706, 0.014372971840202808, -0.07928518205881119, -0.07996352016925812, 0.007522950414568186, 0.040528737008571625, -0.041744597256183624, 0.07097410410642624, 0.043813858181238174, -0.022528769448399544, -0.05390819162130356, -0.028250515460968018, -0.13093872368335724, -2.4585220065028363e-33, 0.0539587065577507, -0.004000513814389706, -0.011580808088183403, 0.02250402607023716, 0.010223660618066788, -0.01106584258377552, 0.007489538751542568, 0.022389810532331467, 0.005490813869982958, -0.034574251621961594, -0.10830260068178177, -0.07624209672212601, 0.07485929876565933, 0.033477723598480225, -0.08309020102024078, 0.037866588681936264, -0.0645466074347496, -0.05121887847781181, 0.055615123361349106, 0.0315563790500164, -0.0667838379740715, 0.08499102294445038, 0.07185579091310501, 0.036466777324676514, 0.052568353712558746, 0.03374871239066124, -0.05920438468456268, 0.003689558245241642, 0.021137408912181854, -0.022522926330566406, -0.04404957965016365, -0.08299606293439865, -0.07834722101688385, 0.03836267441511154, -0.002686194609850645, -0.08056306838989258, -0.053194809705019, 0.1297208070755005, -0.0010704268934205174, 0.03549156337976456, 0.11648903787136078, -0.022267084568738937, -0.05603339150547981, -0.023948095738887787, -0.020326124504208565, -0.03217194974422455, 0.0062867882661521435, -0.05137572064995766, -0.04756501317024231, -0.09969629347324371, -0.028459329158067703, -0.06518147885799408, -0.08106480538845062, 0.06288307160139084, 0.015658419579267502, -0.005568159744143486, 0.09684383124113083, 0.0335085429251194, 0.0203446876257658, -0.023528406396508217, 0.07091619819402695, -0.05649283528327942, -0.02031891793012619, 0.04069500043988228, 0.003519761608913541, -0.09591147303581238, -0.03309975191950798, 0.01665024273097515, -0.04350254312157631, 0.06338123232126236, 0.013180075213313103, 0.046095117926597595, 0.08089577406644821, 0.07522085309028625, -0.04575498402118683, 0.0051331897266209126, 0.03892996907234192, -0.041264161467552185, 0.05829598382115364, 0.01882513239979744, -0.11896214634180069, 0.1272277981042862, 0.004828813951462507, 0.04218282550573349, -0.01675928384065628, 0.058461446315050125, 0.09481196850538254, 0.08406796306371689, -0.004485760349780321, 0.05546953156590462, -0.05441877618432045, -0.018321530893445015, 0.0036377611104398966, 0.05623482167720795, -0.039755284786224365, -4.111379681148719e-8, 0.07093990594148636, -0.05430172383785248, -0.002900011371821165, 0.07379700988531113, 0.053620148450136185, -0.029245611280202866, 0.04050338268280029, 0.09088408201932907, 0.020275529474020004, 0.07555054128170013, 0.07606328278779984, 0.040710609406232834, -0.04975307732820511, 0.02381001226603985, -0.003069759113714099, -0.005046187900006771, 0.004337071441113949, 0.05704823508858681, -0.008092900738120079, -0.08341274410486221, -0.09128279238939285, -0.0145624540746212, -0.043042782694101334, -0.011654285714030266, 0.006747621577233076, -0.010188455693423748, 0.11850719898939133, 0.062311261892318726, 0.002974456176161766, 0.004790761042386293, -0.07947666198015213, 0.030543426051735878, -0.07464046776294708, -0.046666961163282394, -0.03617551177740097, -0.017064809799194336, -0.10998672246932983, 0.06983307749032974, -0.028096335008740425, 0.036167342215776443, -0.034788645803928375, -0.01607535406947136, -0.019450513646006584, -0.0001066723998519592, 0.06731285154819489, 0.08095651865005493, -0.08409880846738815, 0.08107525110244751, 0.014683637768030167, 0.025057995691895485, -0.026358768343925476, 0.011408117599785328, 0.024378476664423943, 0.047180384397506714, -0.03375307470560074, 0.026892412453889847, 0.005902713630348444, -0.012335505336523056, -0.019724000245332718, -0.038912273943424225, 0.0707932561635971, 0.039092566817998886, 0.003960705362260342, -0.026659803465008736 ]
0.176993
This page shows how to configure default CPU requests and limits for a {{< glossary\_tooltip text="namespace" term\_id="namespace" >}}. A Kubernetes cluster can be divided into namespaces. If you create a Pod within a namespace that has a default CPU [limit](/docs/concepts/configuration/manage-resources-containers/#requests-and-limits), and any container in that Pod does not specify its own CPU limit, then the {{< glossary\_tooltip text="control plane" term\_id="control-plane" >}} assigns the default CPU limit to that container. Kubernetes assigns a default CPU [request](/docs/concepts/configuration/manage-resources-containers/#requests-and-limits), but only under certain conditions that are explained later in this page. ## {{% heading "prerequisites" %}} {{< include "task-tutorial-prereqs.md" >}} You must have access to create namespaces in your cluster. If you're not already familiar with what Kubernetes means by 1.0 CPU, read [meaning of CPU](/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu). ## Create a namespace Create a namespace so that the resources you create in this exercise are isolated from the rest of your cluster. ```shell kubectl create namespace default-cpu-example ``` ## Create a LimitRange and a Pod Here's a manifest for an example {{< glossary\_tooltip text="LimitRange" term\_id="limitrange" >}}. The manifest specifies a default CPU request and a default CPU limit. {{% code\_sample file="admin/resource/cpu-defaults.yaml" %}} Create the LimitRange in the default-cpu-example namespace: ```shell kubectl apply -f https://k8s.io/examples/admin/resource/cpu-defaults.yaml --namespace=default-cpu-example ``` Now if you create a Pod in the default-cpu-example namespace, and any container in that Pod does not specify its own values for CPU request and CPU limit, then the control plane applies default values: a CPU request of 0.5 and a default CPU limit of 1. Here's a manifest for a Pod that has one container. The container does not specify a CPU request and limit. {{% code\_sample file="admin/resource/cpu-defaults-pod.yaml" %}} Create the Pod. ```shell kubectl apply -f https://k8s.io/examples/admin/resource/cpu-defaults-pod.yaml --namespace=default-cpu-example ``` View the Pod's specification: ```shell kubectl get pod default-cpu-demo --output=yaml --namespace=default-cpu-example ``` The output shows that the Pod's only container has a CPU request of 500m `cpu` (which you can read as “500 millicpu”), and a CPU limit of 1 `cpu`. These are the default values specified by the LimitRange. ```shell containers: - image: nginx imagePullPolicy: Always name: default-cpu-demo-ctr resources: limits: cpu: "1" requests: cpu: 500m ``` ## What if you specify a container's limit, but not its request? Here's a manifest for a Pod that has one container. The container specifies a CPU limit, but not a request: {{% code\_sample file="admin/resource/cpu-defaults-pod-2.yaml" %}} Create the Pod: ```shell kubectl apply -f https://k8s.io/examples/admin/resource/cpu-defaults-pod-2.yaml --namespace=default-cpu-example ``` View the [specification](/docs/concepts/overview/working-with-objects/#object-spec-and-status) of the Pod that you created: ``` kubectl get pod default-cpu-demo-2 --output=yaml --namespace=default-cpu-example ``` The output shows that the container's CPU request is set to match its CPU limit. Notice that the container was not assigned the default CPU request value of 0.5 `cpu`: ``` resources: limits: cpu: "1" requests: cpu: "1" ``` ## What if you specify a container's request, but not its limit? Here's an example manifest for a Pod that has one container. The container specifies a CPU request, but not a limit: {{% code\_sample file="admin/resource/cpu-defaults-pod-3.yaml" %}} Create the Pod: ```shell kubectl apply -f https://k8s.io/examples/admin/resource/cpu-defaults-pod-3.yaml --namespace=default-cpu-example ``` View the specification of the Pod that you created: ``` kubectl get pod default-cpu-demo-3 --output=yaml --namespace=default-cpu-example ``` The output shows that the container's CPU request is set to the value you specified at the time you created the Pod (in other words: it matches the manifest). However, the same container's CPU limit is set to 1 `cpu`, which is the default CPU limit for that namespace. ``` resources: limits: cpu: "1" requests: cpu: 750m ``` ## Motivation for default CPU limits and requests If your namespace has a CPU {{< glossary\_tooltip text="resource quota" term\_id="resource-quota" >}} configured, it is helpful to have a default
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/manage-resources/cpu-default-namespace.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/manage-resources/cpu-default-namespace.md
[ -0.0025988477282226086, -0.023398177698254585, 0.021036721765995026, 0.04135049507021904, -0.07543662190437317, -0.03186282142996788, 0.024699920788407326, -0.060539089143276215, 0.03736747428774834, 0.04553092643618584, -0.03196202218532562, -0.08468905091285706, -0.05446330085396767, -0.04146482050418854, -0.0011035145726054907, -0.009235450997948647, 0.11330333352088928, -0.07091063261032104, -0.05144936963915825, -0.07052619755268097, 0.11835245043039322, 0.035419438034296036, 0.05399147421121597, 0.024761894717812538, -0.03283990919589996, -0.010747312568128109, -0.10173018276691437, -0.006284778937697411, 0.0648568868637085, -0.0051552532240748405, -0.002801385475322604, -0.014864541590213776, 0.0021301598753780127, 0.07182636111974716, 0.10659194737672806, 0.05273635312914848, -0.02251763455569744, -0.046748511493206024, -0.05552962049841881, 0.03588379546999931, 0.024708136916160583, -0.01523427851498127, -0.07669980078935623, 0.008630658499896526, -0.04146672785282135, 0.042981669306755066, -0.02314683422446251, -0.05908726900815964, -0.0028572124429047108, 0.005113513674587011, -0.02495412342250347, -0.10145014524459839, 0.03912331908941269, -0.012172339484095573, 0.042643021792173386, 0.017378637567162514, -0.00008994792733574286, 0.0204447153955698, 0.058468788862228394, -0.006619641091674566, -0.038613054901361465, -0.05588625371456146, 0.013049502857029438, -0.044121090322732925, 0.06559063494205475, 0.024526571854948997, 0.0226939395070076, 0.006343360524624586, -0.02357221581041813, 0.03881731629371643, 0.08336042612791061, -0.022354811429977417, 0.0018839096883311868, -0.033915963023900986, -0.007090392988175154, 0.04024740681052208, -0.11554041504859924, 0.03858337178826332, 0.00491312425583601, -0.09722137451171875, 0.023389650508761406, 0.06968765705823898, 0.07418429106473923, -0.016130786389112473, -0.0561843067407608, -0.015918930992484093, 0.006643941625952721, -0.00431217672303319, 0.06759485602378845, -0.02964167110621929, 0.034661225974559784, -0.053281743079423904, 0.025450449436903, -0.07904966920614243, 0.08624649047851562, 0.03140430152416229, -0.05962229147553444, -0.05880521237850189, -0.0017787262331694365, -0.043697185814380646, 0.007221979089081287, -0.06500671803951263, 0.07900997251272202, 0.03616444393992424, -0.0011411490850150585, -0.01510109193623066, -0.056301526725292206, 0.029107341542840004, 0.005090802442282438, 0.04083183407783508, 0.011710850521922112, 0.11302588135004044, 0.01660529151558876, -0.0016493973089382052, -0.007975517772138119, -0.05822303891181946, 0.05362800881266594, -0.05206286162137985, 0.051110539585351944, 0.07258802652359009, -0.009093976579606533, -0.0724523738026619, -0.013624095357954502, -0.037675924599170685, -0.051888640969991684, 0.01919550634920597, -0.09028627723455429, 1.7229307025368657e-33, 0.05122118443250656, -0.050906211137771606, 0.017664946615695953, -0.047537874430418015, -0.031270187348127365, -0.0719674825668335, -0.043279919773340225, 0.02870584838092327, -0.0656854584813118, 0.014756509102880955, -0.01510609406977892, 0.05571085214614868, 0.01590612903237343, -0.004029319155961275, 0.005767499096691608, 0.00654008099809289, 0.026447590440511703, 0.0601864792406559, 0.10890335589647293, -0.03441949561238289, 0.046144306659698486, -0.044792868196964264, -0.07546184211969376, -0.004585740156471729, 0.02846124768257141, 0.040623702108860016, 0.013230121694505215, -0.10511697083711624, -0.039474453777074814, 0.007921169511973858, -0.034177351742982864, -0.009316133335232735, 0.0225705374032259, 0.008727801963686943, -0.1280985027551651, 0.018073376268148422, -0.006026577670127153, 0.01560786459594965, -0.02640228532254696, -0.014846527948975563, 0.04859844222664833, -0.0017190816579386592, 0.005924949888139963, -0.03276244178414345, 0.0023198011331260204, 0.05457432195544243, 0.021104464307427406, -0.12341673672199249, 0.03283987194299698, 0.04377507418394089, 0.022043738514184952, -0.05778121203184128, 0.030743371695280075, 0.03357499837875366, 0.07200991362333298, 0.03236550837755203, 0.05627217888832092, -0.018250981345772743, 0.024615606293082237, 0.03629342094063759, -0.08151024580001831, -0.04580313712358475, -0.04270432889461517, 0.009080213494598866, 0.05428967997431755, 0.02335115149617195, -0.012835361063480377, 0.09267248213291168, -0.00794093869626522, 0.022748226299881935, -0.0779639482498169, -0.008700689300894737, 0.01599189266562462, 0.0722099170088768, 0.020604925230145454, -0.03516237437725067, -0.0012567449593916535, -0.03840209171175957, -0.138039693236351, -0.012219361029565334, -0.015364556573331356, -0.01727045141160488, -0.028711704537272453, 0.021179283037781715, -0.006028378382325172, -0.08019720762968063, -0.00347334542311728, 0.03521784394979477, -0.029593560844659805, 0.025767140090465546, 0.014686479233205318, -0.06857705116271973, -0.08461961895227432, 0.0337478332221508, -0.1484665423631668, -2.691228561992378e-33, 0.09865208715200424, -0.06147565320134163, -0.06277419626712799, 0.05407780036330223, 0.0424683503806591, 0.02450753003358841, 0.06360633671283722, 0.03246103599667549, -0.006193165201693773, -0.06804404407739639, -0.002155660418793559, -0.055514682084321976, 0.04869186505675316, 0.06694477051496506, -0.036297157406806946, -0.012560266070067883, -0.10385259240865707, 0.014748294837772846, 0.07600957155227661, 0.023867057636380196, -0.03137015178799629, -0.04584997892379761, 0.039923883974552155, 0.012289149686694145, 0.041151002049446106, -0.0020537946838885546, 0.00987020879983902, 0.020360363647341728, 0.04395503178238869, -0.029370000585913658, -0.037352077662944794, -0.02630976215004921, -0.035718679428100586, 0.0225888229906559, 0.03300067409873009, -0.05769839882850647, -0.008310212753713131, 0.01202752348035574, -0.03363059461116791, 0.05374015495181084, 0.05703002214431763, 0.00036414701025933027, -0.04965580627322197, -0.037785377353429794, -0.02288026362657547, -0.0018053015228360891, 0.010334029793739319, -0.09279748797416687, -0.013236296363174915, -0.12229996919631958, 0.03246268630027771, -0.05518387630581856, -0.004022140987217426, 0.10754068195819855, -0.019575778394937515, 0.022136077284812927, 0.07359778136014938, -0.015243773348629475, -0.012796350754797459, -0.028630049899220467, 0.08707026392221451, -0.10168959945440292, 0.012849451042711735, 0.022379232570528984, 0.020270008593797684, -0.05895145982503891, -0.0036286001559346914, 0.02559715323150158, -0.010738847777247429, 0.038615938276052475, -0.07927312701940536, -0.008488536812365055, 0.12700943648815155, 0.03998918831348419, -0.03770523518323898, 0.00687868008390069, 0.08010873198509216, -0.061210744082927704, 0.0670047253370285, -0.044077083468437195, -0.011864000000059605, 0.07775428146123886, -0.014233378693461418, 0.008794281631708145, 0.05135666951537132, 0.06446779519319534, 0.04349767789244652, 0.11179327964782715, 0.015174167230725288, 0.028788937255740166, -0.006241390947252512, -0.05000167340040207, -0.0010630215983837843, 0.15870621800422668, -0.07311306893825531, -4.900020655895787e-8, 0.030821921303868294, 0.09838717430830002, -0.002207699231803417, 0.04371310770511627, 0.06684988737106323, 0.012696092016994953, 0.04891187325119972, 0.007669465616345406, -0.021005505695939064, 0.01893637888133526, 0.05533307418227196, 0.04371779412031174, -0.0022848984226584435, 0.030171409249305725, 0.028863118961453438, 0.02155567705631256, -0.046782996505498886, -0.015404323115944862, 0.04242744669318199, -0.10585872083902359, -0.09178934246301651, -0.008255760185420513, -0.037661414593458176, -0.00933468621224165, -0.014531336724758148, 0.02769104391336441, 0.0989435538649559, 0.04521063342690468, 0.00637855613604188, 0.019420458003878593, -0.10723817348480225, 0.021164046600461006, -0.1010669618844986, 0.04559594765305519, -0.004982258193194866, -0.013714028522372246, -0.15937396883964539, 0.0548897385597229, 0.07512886822223663, 0.055664557963609695, -0.028301354497671127, -0.034947097301483154, -0.08664661645889282, -0.031267210841178894, 0.04139353707432747, 0.10380102694034576, -0.043298736214637756, 0.08064877241849899, 0.011975160799920559, 0.004329531453549862, -0.04345281794667244, 0.004136663395911455, -0.02066376805305481, 0.11433432251214981, -0.04476476460695267, 0.013208902440965176, 0.004076594486832619, 0.0002585530746728182, -0.04546418786048889, -0.05513952299952507, 0.05941629037261009, 0.004941046237945557, 0.00583388889208436, 0.023240385577082634 ]
0.095631
set to 1 `cpu`, which is the default CPU limit for that namespace. ``` resources: limits: cpu: "1" requests: cpu: 750m ``` ## Motivation for default CPU limits and requests If your namespace has a CPU {{< glossary\_tooltip text="resource quota" term\_id="resource-quota" >}} configured, it is helpful to have a default value in place for CPU limit. Here are two of the restrictions that a CPU resource quota imposes on a namespace: \* For every Pod that runs in the namespace, each of its containers must have a CPU limit. \* CPU limits apply a resource reservation on the node where the Pod in question is scheduled. The total amount of CPU that is reserved for use by all Pods in the namespace must not exceed a specified limit. When you add a LimitRange: If any Pod in that namespace that includes a container does not specify its own CPU limit, the control plane applies the default CPU limit to that container, and the Pod can be allowed to run in a namespace that is restricted by a CPU ResourceQuota. ## Clean up Delete your namespace: ```shell kubectl delete namespace default-cpu-example ``` ## {{% heading "whatsnext" %}} ### For cluster administrators \* [Configure Default Memory Requests and Limits for a Namespace](/docs/tasks/administer-cluster/manage-resources/memory-default-namespace/) \* [Configure Minimum and Maximum Memory Constraints for a Namespace](/docs/tasks/administer-cluster/manage-resources/memory-constraint-namespace/) \* [Configure Minimum and Maximum CPU Constraints for a Namespace](/docs/tasks/administer-cluster/manage-resources/cpu-constraint-namespace/) \* [Configure Memory and CPU Quotas for a Namespace](/docs/tasks/administer-cluster/manage-resources/quota-memory-cpu-namespace/) \* [Configure a Pod Quota for a Namespace](/docs/tasks/administer-cluster/manage-resources/quota-pod-namespace/) \* [Configure Quotas for API Objects](/docs/tasks/administer-cluster/quota-api-object/) ### For app developers \* [Assign Memory Resources to Containers and Pods](/docs/tasks/configure-pod-container/assign-memory-resource/) \* [Assign CPU Resources to Containers and Pods](/docs/tasks/configure-pod-container/assign-cpu-resource/) \* [Assign Pod-level CPU and memory resources](/docs/tasks/configure-pod-container/assign-pod-level-resources/) \* [Configure Quality of Service for Pods](/docs/tasks/configure-pod-container/quality-service-pod/)
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/manage-resources/cpu-default-namespace.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/manage-resources/cpu-default-namespace.md
[ -0.01046032551676035, -0.023050574585795403, -0.006937171798199415, 0.03312202915549278, -0.017552416771650314, -0.05503258481621742, 0.027120044454932213, -0.051578935235738754, 0.027198143303394318, 0.035471849143505096, -0.021971408277750015, -0.07116317003965378, -0.03159426525235176, -0.05685483291745186, -0.00913317408412695, -0.017581548541784286, 0.10845698416233063, -0.06469929963350296, -0.0818498432636261, -0.04506853595376015, 0.1527109593153, 0.029208574444055557, 0.013106213882565498, 0.04904180392622948, -0.029695255681872368, -0.008928247727453709, -0.12207794189453125, 0.022936342284083366, 0.057405438274145126, -0.018993396311998367, -0.008217486552894115, -0.022848134860396385, 0.031721729785203934, 0.06798380613327026, 0.09158621728420258, 0.05519882217049599, -0.0349285863339901, -0.06595778465270996, -0.05710925906896591, -0.0019950002897530794, 0.056686580181121826, 0.006335814483463764, -0.047141239047050476, 0.04888053610920906, -0.08045715093612671, 0.06117326766252518, -0.03383950889110565, -0.05990368872880936, -0.0005945226293988526, -0.008800012990832329, -0.04500683397054672, -0.08978866040706635, 0.048066433519124985, -0.02415401302278042, 0.03358940780162811, 0.018745413050055504, 0.038848962634801865, 0.02031271904706955, 0.0693773478269577, 0.003551214002072811, -0.02938145026564598, -0.08487171679735184, -0.017862241715192795, -0.040429651737213135, 0.07235585898160934, -0.030453996732831, -0.013113820925354958, 0.005488716531544924, -0.014973195269703865, 0.041149068623781204, 0.046028707176446915, 0.006943295709788799, -0.04865098372101784, 0.012929488904774189, -0.010460090823471546, 0.04697553440928459, -0.06854710727930069, 0.01507220882922411, 0.020568637177348137, -0.09038805961608887, -0.008779291063547134, 0.018053514882922173, 0.028608854860067368, -0.039937086403369904, -0.03830448538064957, 0.025562867522239685, 0.0128408744931221, 0.016063835471868515, 0.054929088801145554, -0.0024040290154516697, 0.07170259207487106, -0.014186915010213852, 0.07661508768796921, 0.001614285632967949, 0.0999460369348526, 0.009942863136529922, -0.031792052090168, -0.031523458659648895, -0.004177517257630825, -0.008797245100140572, 0.014352788217365742, -0.007030770182609558, 0.033978987485170364, 0.023725075647234917, -0.001078941160812974, -0.044945720583200455, -0.044870682060718536, 0.008820181712508202, -0.01942332834005356, 0.02509750798344612, 0.027844252064824104, 0.05825073644518852, 0.03477027267217636, 0.013303116895258427, -0.02250397764146328, -0.004511966370046139, 0.008191607892513275, -0.05428997054696083, 0.01651908829808235, 0.04165896773338318, 0.0008965333108790219, -0.04131195321679115, -0.007533350959420204, -0.04946543276309967, -0.053885567933321, 0.012251184321939945, -0.02641848288476467, 5.159245440442989e-33, -0.009411033242940903, -0.08802442252635956, -0.002275307895615697, -0.03576934337615967, 0.03324703872203827, -0.04549751058220863, -0.07357239723205566, 0.07903238385915756, -0.08003231883049011, 0.02747294120490551, 0.003457084996625781, 0.027379024773836136, 0.003613502951338887, 0.007446944247931242, 0.03161143884062767, -0.045122530311346054, 0.0814017802476883, 0.07319176197052002, 0.11505630612373352, 0.0008460377575829625, 0.046979788690805435, -0.07915719598531723, -0.09991597384214401, 0.029960909858345985, 0.02257958985865116, 0.048190031200647354, -0.018616292625665665, -0.10044305771589279, 0.021999837830662727, 0.0241798497736454, -0.04560932144522667, 0.03288715332746506, 0.00016764464089646935, 0.034946586936712265, -0.040497805923223495, 0.004687505308538675, -0.006632049102336168, 0.014317246153950691, -0.037433721125125885, 0.0014786111423745751, 0.00441364198923111, 0.021470237523317337, -0.027429062873125076, -0.01933261752128601, -0.023870810866355896, 0.028315627947449684, 0.020799430087208748, -0.07709071785211563, -0.05317208543419838, 0.08645832538604736, 0.04530458524823189, 0.0028341617435216904, 0.000211616643355228, 0.007432077545672655, 0.04788588359951973, -0.0475141778588295, 0.025352519005537033, 0.01318732462823391, 0.05238817259669304, 0.061528049409389496, -0.05170895531773567, -0.04100320488214493, 0.003712548641487956, 0.05363624542951584, 0.0947733148932457, 0.0759606584906578, -0.04085468500852585, 0.035033147782087326, 0.03279150277376175, 0.0949542373418808, -0.057515956461429596, -0.02013232745230198, 0.0472484827041626, 0.08946717530488968, -0.02719312720000744, -0.021075857803225517, -0.0006186154787428677, -0.007208178751170635, -0.1773330420255661, -0.055106036365032196, -0.018834363669157028, 0.007485419046133757, 0.006321617867797613, -0.027326365932822227, -0.06397482752799988, -0.09204189479351044, -0.03168392553925514, 0.07073025405406952, -0.05357946455478668, 0.04117520526051521, 0.04136301204562187, -0.06651408970355988, -0.06876042485237122, 0.02121640369296074, -0.11710838973522186, -5.3834511513951704e-33, 0.04703667014837265, -0.027071518823504448, -0.06696133315563202, 0.02850903943181038, 0.026533834636211395, -0.011897124350070953, 0.012024705298244953, 0.022808898240327835, -0.022690020501613617, -0.048684291541576385, -0.05776408314704895, -0.06773151457309723, 0.0691329762339592, 0.06033594161272049, -0.05071399360895157, -0.023373601958155632, -0.05974467098712921, -0.04261299967765808, 0.004850915167480707, 0.039628464728593826, -0.048411402851343155, 0.010141921229660511, 0.042100939899683, 0.025770634412765503, 0.0726068988442421, 0.015262446366250515, -0.05247950926423073, 0.02617581933736801, 0.07136176526546478, -0.07283859699964523, -0.05120202526450157, -0.09345029294490814, -0.07896536588668823, -0.003983351401984692, 0.035245381295681, -0.06022142246365547, -0.019878625869750977, 0.108827143907547, 0.00746010011062026, 0.05983337014913559, 0.10099811851978302, -0.030778959393501282, -0.058779843151569366, -0.040720462799072266, -0.006586752831935883, -0.01592947170138359, -0.03079095110297203, -0.07810687273740768, -0.0048673455603420734, -0.10812731832265854, 0.03396971896290779, -0.06029730290174484, 0.025418216362595558, 0.08229777961969376, 0.01717933639883995, -0.0024505862966179848, 0.0985155925154686, 0.0028803525492548943, -0.003027301747351885, -0.04455243796110153, 0.11936388909816742, -0.08839844167232513, -0.043206073343753815, 0.044842611998319626, 0.003397737629711628, -0.04497864842414856, -0.03558434545993805, 0.0018018708797171712, 0.006907857488840818, 0.017954185605049133, 0.011231152340769768, -0.008610377088189125, 0.11112697422504425, 0.057943399995565414, -0.07409579306840897, 0.011790134012699127, 0.08226434141397476, -0.07402995228767395, 0.04165217652916908, 0.01904006488621235, -0.08606699109077454, 0.11855695396661758, 0.05367046967148781, 0.013567091897130013, 0.009815637022256851, 0.055171601474285126, 0.026762226596474648, 0.08747463673353195, 0.007865197025239468, 0.017071912065148354, -0.008869989775121212, -0.07613877207040787, -0.04453165456652641, 0.12951970100402832, -0.04166082292795181, -4.964629951587085e-8, 0.05593382939696312, 0.06559818983078003, 0.026989484205842018, 0.06723177433013916, 0.0910588949918747, -0.029833469539880753, 0.07853083312511444, -0.0174091923981905, 0.01544900145381689, 0.085784912109375, 0.07638224214315414, 0.002157621318474412, 0.0035451939329504967, 0.03845473378896713, 0.038078270852565765, 0.010801225900650024, -0.03729237988591194, -0.013582383282482624, 0.01823740452528, -0.07450326532125473, -0.12400570511817932, -0.05473637580871582, -0.03545687720179558, -0.019220104441046715, -0.03297388553619385, -0.012959789484739304, 0.07634632289409637, 0.08616608381271362, 0.023479916155338287, 0.01583736017346382, -0.08367688208818436, 0.019608918577432632, -0.06100461632013321, -0.0016480404883623123, -0.052614811807870865, 0.0030163652263581753, -0.1654643416404724, 0.04621938243508339, 0.03877488523721695, 0.036279886960983276, -0.043376438319683075, -0.08656114339828491, -0.01181544829159975, -0.020790578797459602, 0.024611234664916992, 0.07394655793905258, -0.05354158952832222, 0.0609336793422699, 0.02274858020246029, 0.03359980881214142, -0.023249855265021324, 0.015574218705296516, 0.022800730541348457, 0.1149391308426857, -0.008362785913050175, 0.02360413782298565, 0.006171667482703924, -0.022919481620192528, -0.07306352257728577, -0.03809116780757904, 0.012372798286378384, -0.025777755305171013, -0.015644313767552376, 0.010873972438275814 ]
0.149892
This page shows how to set quotas for the total amount memory and CPU that can be used by all Pods running in a {{< glossary\_tooltip text="namespace" term\_id="namespace" >}}. You specify quotas in a [ResourceQuota](/docs/reference/kubernetes-api/policy-resources/resource-quota-v1/) object. ## {{% heading "prerequisites" %}} {{< include "task-tutorial-prereqs.md" >}} You must have access to create namespaces in your cluster. Each node in your cluster must have at least 1 GiB of memory. ## Create a namespace Create a namespace so that the resources you create in this exercise are isolated from the rest of your cluster. ```shell kubectl create namespace quota-mem-cpu-example ``` ## Create a ResourceQuota Here is a manifest for an example ResourceQuota: {{% code\_sample file="admin/resource/quota-mem-cpu.yaml" %}} Create the ResourceQuota: ```shell kubectl apply -f https://k8s.io/examples/admin/resource/quota-mem-cpu.yaml --namespace=quota-mem-cpu-example ``` View detailed information about the ResourceQuota: ```shell kubectl get resourcequota mem-cpu-demo --namespace=quota-mem-cpu-example --output=yaml ``` The ResourceQuota places these requirements on the quota-mem-cpu-example namespace: \* For every Pod in the namespace, each container must have a memory request, memory limit, cpu request, and cpu limit. \* The memory request total for all Pods in that namespace must not exceed 1 GiB. \* The memory limit total for all Pods in that namespace must not exceed 2 GiB. \* The CPU request total for all Pods in that namespace must not exceed 1 cpu. \* The CPU limit total for all Pods in that namespace must not exceed 2 cpu. See [meaning of CPU](/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu) to learn what Kubernetes means by “1 CPU”. ## Create a Pod Here is a manifest for an example Pod: {{% code\_sample file="admin/resource/quota-mem-cpu-pod.yaml" %}} Create the Pod: ```shell kubectl apply -f https://k8s.io/examples/admin/resource/quota-mem-cpu-pod.yaml --namespace=quota-mem-cpu-example ``` Verify that the Pod is running and that its (only) container is healthy: ```shell kubectl get pod quota-mem-cpu-demo --namespace=quota-mem-cpu-example ``` Once again, view detailed information about the ResourceQuota: ```shell kubectl get resourcequota mem-cpu-demo --namespace=quota-mem-cpu-example --output=yaml ``` The output shows the quota along with how much of the quota has been used. You can see that the memory and CPU requests and limits for your Pod do not exceed the quota. ``` status: hard: limits.cpu: "2" limits.memory: 2Gi requests.cpu: "1" requests.memory: 1Gi used: limits.cpu: 800m limits.memory: 800Mi requests.cpu: 400m requests.memory: 600Mi ``` If you have the `jq` tool, you can also query (using [JSONPath](/docs/reference/kubectl/jsonpath/)) for just the `used` values, \*\*and\*\* pretty-print that that of the output. For example: ```shell kubectl get resourcequota mem-cpu-demo --namespace=quota-mem-cpu-example -o jsonpath='{ .status.used }' | jq . ``` ## Attempt to create a second Pod Here is a manifest for a second Pod: {{% code\_sample file="admin/resource/quota-mem-cpu-pod-2.yaml" %}} In the manifest, you can see that the Pod has a memory request of 700 MiB. Notice that the sum of the used memory request and this new memory request exceeds the memory request quota: 600 MiB + 700 MiB > 1 GiB. Attempt to create the Pod: ```shell kubectl apply -f https://k8s.io/examples/admin/resource/quota-mem-cpu-pod-2.yaml --namespace=quota-mem-cpu-example ``` The second Pod does not get created. The output shows that creating the second Pod would cause the memory request total to exceed the memory request quota. ``` Error from server (Forbidden): error when creating "examples/admin/resource/quota-mem-cpu-pod-2.yaml": pods "quota-mem-cpu-demo-2" is forbidden: exceeded quota: mem-cpu-demo, requested: requests.memory=700Mi,used: requests.memory=600Mi, limited: requests.memory=1Gi ``` ## Discussion As you have seen in this exercise, you can use a ResourceQuota to restrict the memory request total for all Pods running in a namespace. You can also restrict the totals for memory limit, cpu request, and cpu limit. Instead of managing total resource use within a namespace, you might want to restrict individual Pods, or the containers in those Pods. To achieve that kind of limiting, use a [LimitRange](/docs/concepts/policy/limit-range/). ## Clean up Delete
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/manage-resources/quota-memory-cpu-namespace.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/manage-resources/quota-memory-cpu-namespace.md
[ 0.0384947843849659, 0.0051232436671853065, 0.003764618653804064, 0.013344728387892246, -0.0973445475101471, -0.02003248780965805, 0.027772212401032448, -0.009812891483306885, 0.043618589639663696, 0.08876160532236099, -0.0663851872086525, -0.13438405096530914, 0.005979869514703751, -0.04698777571320534, 0.003801789367571473, 0.026283957064151764, 0.06591525673866272, -0.0291607603430748, -0.049194809049367905, -0.08979421854019165, 0.09354006499052048, 0.024962976574897766, 0.04885368049144745, 0.01676500029861927, -0.017845239490270615, -0.005022035911679268, -0.05876332148909569, -0.032849863171577454, 0.0524437315762043, 0.019578542560338974, 0.011136832647025585, -0.04325173422694206, 0.02276158705353737, 0.06992047280073166, 0.11882703006267548, 0.11123448610305786, -0.04589454457163811, -0.05685051530599594, -0.05495360493659973, 0.026760922744870186, 0.025581778958439827, 0.02220543473958969, -0.10623526573181152, 0.01890818402171135, 0.012431753799319267, 0.05057476833462715, -0.046651147305965424, -0.023063089698553085, 0.025962119922041893, -0.0026028836145997047, -0.0010981637751683593, -0.09420133382081985, 0.02946891263127327, -0.013152278028428555, 0.05404074490070343, 0.013664948754012585, 0.002954479306936264, 0.04911749064922333, 0.07283525168895721, 0.005006452556699514, -0.017931776121258736, -0.06583986431360245, 0.030428320169448853, -0.052236247807741165, -0.006536669563502073, 0.011995699256658554, 0.03607606142759323, 0.07514316588640213, -0.03923260420560837, 0.03265165165066719, 0.07544618844985962, 0.005981114227324724, -0.04324964061379433, -0.018614035099744797, -0.03909280523657799, 0.0801517516374588, -0.03737468644976616, 0.05958406627178192, 0.007298152893781662, -0.061542823910713196, -0.005152788944542408, 0.031777650117874146, 0.05854838714003563, -0.014861546456813812, -0.04593426361680031, -0.02225339598953724, 0.028114398941397667, -0.040939826518297195, 0.023192062973976135, -0.0390961654484272, 0.03388218581676483, -0.031920962035655975, 0.033248282968997955, -0.08952329307794571, 0.07287435978651047, 0.005859119351953268, -0.035963431000709534, 0.0034154506865888834, 0.014170181937515736, -0.032653987407684326, 0.035908088088035583, -0.0027595923747867346, 0.023110516369342804, 0.02927650325000286, -0.018031297251582146, -0.006998644210398197, -0.043050430715084076, 0.027909496799111366, 0.00029329670360311866, 0.07336930185556412, 0.017165083438158035, 0.08500152826309204, -0.012311633676290512, 0.04917196184396744, 0.05662749707698822, -0.021105429157614708, 0.02299593761563301, -0.05724996328353882, 0.05349995195865631, 0.09286165982484818, 0.010760897770524025, -0.07626761496067047, -0.0266447514295578, -0.03718271851539612, -0.04564562812447548, -0.006321669556200504, -0.049170613288879395, 2.4731214626690568e-33, 0.04522883892059326, -0.05014936253428459, 0.04855087399482727, -0.02934994362294674, -0.024497056379914284, -0.07016129046678543, -0.04923844337463379, 0.03566968813538551, -0.09468334168195724, -0.04330252856016159, -0.02261889912188053, 0.058628566563129425, -0.01974273845553398, -0.029830724000930786, -0.0016134293982759118, -0.013012515380978584, -0.012967368587851524, 0.0552576445043087, 0.11478248238563538, -0.01707666553556919, 0.04192201793193817, -0.06303298473358154, -0.052648238837718964, -0.007731109391897917, 0.013026759028434753, -0.0026359152980148792, 0.05487414449453354, -0.13467711210250854, -0.011518197134137154, 0.016438152641057968, -0.066134974360466, -0.028072573244571686, 0.004372581839561462, 0.023567955940961838, -0.1220092698931694, -0.0343376025557518, -0.006784550845623016, 0.0656544640660286, -0.04641057550907135, -0.070790596306324, 0.03556549921631813, 0.0068657128140330315, 0.04820796474814415, -0.10989925265312195, -0.004861973691731691, 0.020552704110741615, 0.06829677522182465, -0.13711966574192047, 0.03603891283273697, 0.06861259788274765, 0.019554410129785538, -0.0711207389831543, 0.012127652764320374, 0.014579073525965214, 0.06404616683721542, 0.010448798537254333, 0.06606988608837128, -0.023141667246818542, 0.03981289267539978, 0.006958573590964079, -0.09634159505367279, -0.027487032115459442, -0.0012282239040359855, 0.06798883527517319, 0.048691537231206894, 0.013462640345096588, -0.025418104603886604, 0.09492230415344238, -0.017721788957715034, 0.01939849741756916, -0.06473609805107117, -0.02424188144505024, -0.0002879080711863935, 0.028596406802535057, -0.011065561324357986, -0.0642472505569458, 0.04636684060096741, 0.005176977254450321, -0.21751819550991058, 0.02171149104833603, 0.006277523469179869, -0.0676092728972435, -0.04404326155781746, 0.012795157730579376, -0.0010049017146229744, -0.052037425339221954, 0.007685317192226648, 0.0238200556486845, -0.06721673905849457, 0.03495100140571594, 0.010922115296125412, -0.07024539262056351, -0.086748406291008, 0.009737924672663212, -0.13831904530525208, -4.121459885477548e-33, 0.11414571106433868, 0.022662082687020302, 0.015662427991628647, 0.04241887107491493, 0.04656992107629776, 0.029110001400113106, 0.038634005934000015, 0.08363543450832367, -0.030401308089494705, -0.054862186312675476, -0.09269107133150101, -0.04726545140147209, 0.05957499518990517, 0.0799768716096878, -0.10108321905136108, -0.0012769951717928052, -0.058959051966667175, 0.01083116140216589, 0.014852957800030708, 0.016173362731933594, -0.04962148889899254, 0.00415523536503315, 0.0854078084230423, -0.004036943428218365, 0.02149571105837822, 0.029920803382992744, -0.016693003475666046, -0.005148507189005613, 0.03374926373362541, 0.018480923026800156, -0.031948063522577286, -0.05892854556441307, -0.058850985020399094, -0.030223149806261063, -0.012947848998010159, -0.10343215614557266, 0.00582731980830431, 0.06395108252763748, -0.02047993429005146, 0.05308651551604271, 0.04406139254570007, 0.012486009858548641, -0.0524962954223156, -0.09894967824220657, -0.021804820746183395, 0.00405323039740324, 0.0009756381041370332, -0.09205268323421478, -0.04694497957825661, -0.10344511270523071, 0.023664677515625954, -0.01768827624619007, -0.05777810886502266, 0.08685999363660812, -0.019825367256999016, -0.012847714126110077, 0.06894606351852417, 0.011012664064764977, -0.015288598835468292, -0.06964913010597229, 0.021735666319727898, -0.07301343977451324, 0.010223057121038437, -0.0331425704061985, 0.01603689230978489, -0.06260920315980911, -0.008599063381552696, 0.02094610221683979, -0.05016259104013443, 0.031278934329748154, -0.0387456938624382, 0.044957440346479416, 0.05936034768819809, 0.06113448366522789, -0.022604087367653847, 0.03568299859762192, 0.0028403676114976406, -0.04422903433442116, 0.09349164366722107, 0.0166738610714674, -0.026382694020867348, 0.09797745198011398, -0.006277657579630613, 0.015981854870915413, 0.012056096456944942, 0.04074004665017128, 0.04806013032793999, 0.0681721419095993, 0.0012496685376390815, 0.07086201757192612, -0.04042309895157814, -0.0060777137987315655, 0.010307392105460167, 0.1358589231967926, -0.06318490207195282, -4.7475527509277526e-8, 0.056194111704826355, 0.06634171307086945, 0.036888860166072845, 0.0787336677312851, 0.03511073440313339, -0.08132471889257431, -0.0020472747273743153, 0.08308228105306625, 0.007082413882017136, 0.04223088175058365, 0.05774201080203056, 0.039969343692064285, -0.05798003822565079, 0.06625212728977203, -0.02248326689004898, 0.019127584993839264, -0.029738586395978928, -0.0025232364423573017, 0.035788822919130325, -0.07200051099061966, -0.0428144671022892, -0.043622083961963654, -0.014878657646477222, -0.023835668340325356, 0.03468968719244003, 0.0021814468782395124, 0.07876019924879074, 0.04419338330626488, -0.013717290945351124, -0.021857943385839462, -0.0776791200041771, -0.013977594673633575, -0.10127504169940948, 0.0019481503404676914, -0.02535955421626568, -0.04945792630314827, -0.11943361163139343, 0.05071686953306198, 0.037098634988069534, 0.047787152230739594, -0.037054430693387985, -0.017032790929079056, -0.027291208505630493, -0.0037437062710523605, 0.027766665443778038, 0.09736756235361099, -0.08075381070375443, 0.06897890567779541, -0.0049169049598276615, 0.0001618380774743855, -0.023346086964011192, -0.02583165094256401, -0.016102060675621033, 0.083452008664608, -0.0312502421438694, -0.00034914491698145866, 0.006583488080650568, -0.0013926845276728272, -0.017934245988726616, -0.03394017368555069, 0.03882667422294617, 0.026812953874468803, -0.008075310848653316, -0.0129251629114151 ]
0.108541
namespace. You can also restrict the totals for memory limit, cpu request, and cpu limit. Instead of managing total resource use within a namespace, you might want to restrict individual Pods, or the containers in those Pods. To achieve that kind of limiting, use a [LimitRange](/docs/concepts/policy/limit-range/). ## Clean up Delete your namespace: ```shell kubectl delete namespace quota-mem-cpu-example ``` ## {{% heading "whatsnext" %}} ### For cluster administrators \* [Configure Default Memory Requests and Limits for a Namespace](/docs/tasks/administer-cluster/manage-resources/memory-default-namespace/) \* [Configure Default CPU Requests and Limits for a Namespace](/docs/tasks/administer-cluster/manage-resources/cpu-default-namespace/) \* [Configure Minimum and Maximum Memory Constraints for a Namespace](/docs/tasks/administer-cluster/manage-resources/memory-constraint-namespace/) \* [Configure Minimum and Maximum CPU Constraints for a Namespace](/docs/tasks/administer-cluster/manage-resources/cpu-constraint-namespace/) \* [Configure a Pod Quota for a Namespace](/docs/tasks/administer-cluster/manage-resources/quota-pod-namespace/) \* [Configure Quotas for API Objects](/docs/tasks/administer-cluster/quota-api-object/) ### For app developers \* [Assign Memory Resources to Containers and Pods](/docs/tasks/configure-pod-container/assign-memory-resource/) \* [Assign CPU Resources to Containers and Pods](/docs/tasks/configure-pod-container/assign-cpu-resource/) \* [Assign Pod-level CPU and memory resources](/docs/tasks/configure-pod-container/assign-pod-level-resources/) \* [Configure Quality of Service for Pods](/docs/tasks/configure-pod-container/quality-service-pod/)
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/manage-resources/quota-memory-cpu-namespace.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/manage-resources/quota-memory-cpu-namespace.md
[ 0.059896159917116165, 0.009532637894153595, -0.008373917080461979, 0.022167015820741653, -0.06866917759180069, -0.03751009330153465, 0.0074818977154791355, 0.0007610686006955802, 0.04407463222742081, 0.05842158570885658, -0.04711934179067612, -0.08822037279605865, -0.004481237847357988, -0.038819242268800735, -0.013808243907988071, 0.008174475282430649, 0.08695118129253387, -0.0005314130103215575, -0.028958184644579887, -0.037806179374456406, 0.11365290731191635, -0.012272577732801437, 0.018613658845424652, 0.01826736330986023, -0.05375009775161743, 0.00702024158090353, -0.06397001445293427, -0.025176752358675003, 0.015547205694019794, -0.054877761751413345, 0.020071664825081825, -0.021778428927063942, 0.04831581190228462, 0.019389783963561058, 0.13793733716011047, 0.07397747784852982, -0.04014042019844055, -0.08658024668693542, -0.05758184194564819, -0.0029384619556367397, -0.003539237892255187, 0.004520712420344353, -0.08337776362895966, 0.03771078214049339, -0.02596496045589447, 0.04638456925749779, -0.04301891475915909, -0.08179154247045517, 0.011534086428582668, -0.024009691551327705, -0.010752040892839432, -0.030734363943338394, 0.045689795166254044, 0.008401941508054733, 0.058812838047742844, -0.00708589144051075, 0.0008090139599516988, 0.06525794416666031, 0.08730115741491318, 0.021880216896533966, 0.004048575647175312, -0.0661393329501152, 0.038323041051626205, -0.05319763720035553, -0.011411196552217007, 0.009354638867080212, -0.00544126657769084, 0.047877855598926544, -0.019838951528072357, 0.06695760786533356, 0.06281980127096176, 0.01684517227113247, -0.04668605700135231, -0.036098413169384, -0.013673222623765469, 0.03779829666018486, -0.06546197831630707, 0.03767881914973259, 0.009723145514726639, -0.0679054856300354, -0.003919250797480345, 0.034020181745290756, 0.035207271575927734, -0.10258534550666809, -0.08483418822288513, 0.029892340302467346, 0.008030928671360016, -0.027929898351430893, 0.04001813754439354, -0.031256694346666336, 0.03139159455895424, -0.02696940116584301, 0.04829725995659828, -0.08699461817741394, 0.06325425952672958, -0.025559663772583008, -0.0577368326485157, 0.010190626606345177, 0.0188532005995512, -0.03842891752719879, 0.027464132755994797, 0.0023569283075630665, 0.02646150439977646, 0.057788196951150894, 0.0538775660097599, -0.043787430971860886, -0.007092408370226622, 0.016326308250427246, 0.008818699046969414, 0.057570502161979675, 0.005656475201249123, 0.08690746873617172, -0.03541860356926918, 0.026282908394932747, 0.03128252550959587, 0.01870235987007618, 0.0621439628303051, -0.05251286178827286, 0.06051517650485039, 0.07783757895231247, 0.05404399335384369, -0.09509134292602539, -0.014241080731153488, -0.038329124450683594, -0.05976158007979393, 0.0011990146012976766, -0.07680702209472656, 3.256733547576041e-33, 0.012721523642539978, -0.07440496981143951, 0.03228392452001572, -0.030359525233507156, 0.013921749778091908, -0.07318500429391861, -0.06342294067144394, 0.03642939776182175, -0.06662064790725708, -0.05110851302742958, 0.008216948248445988, 0.01959765888750553, -0.0080172223970294, -0.0327305793762207, 0.046702366322278976, -0.01444299891591072, -0.004990915767848492, 0.07062818109989166, 0.1273597627878189, -0.014783142134547234, 0.04256386309862137, -0.06903830170631409, -0.0919879823923111, 0.03689092397689819, 0.007117633707821369, -0.00039865271537564695, 0.042941685765981674, -0.12727582454681396, 0.0007645569858141243, 0.01567997597157955, -0.05061276629567146, 0.016640545800328255, -0.005309858359396458, 0.042693499475717545, -0.09291443228721619, 0.006049035117030144, -0.01908237487077713, 0.07402677088975906, -0.07521238178014755, -0.030671272426843643, 0.007584722246974707, 0.036429695785045624, 0.02888297289609909, -0.052920885384082794, -0.00542596448212862, -0.01773737370967865, 0.08042001724243164, -0.10724575817584991, -0.030815640464425087, 0.0629030242562294, -0.011218276806175709, -0.046474479138851166, 0.007832519710063934, 0.03546790033578873, 0.0648757815361023, -0.013619222678244114, 0.039356257766485214, -0.016802562400698662, 0.007983272895216942, 0.03304295986890793, -0.0696197897195816, -0.038151755928993225, 0.015542731620371342, 0.06943172216415405, 0.059350162744522095, 0.033951178193092346, -0.011207908391952515, 0.0834227204322815, -0.012177973054349422, 0.04266193509101868, -0.06746093183755875, -0.015004579909145832, 0.014431186020374298, 0.025140278041362762, -0.03334379196166992, -0.06243206560611725, 0.03986702114343643, 0.016844162717461586, -0.21538586914539337, -0.0020094220526516438, 0.0445740707218647, -0.028703002259135246, 0.001767980051226914, -0.003496662015095353, -0.020877655595541, -0.05114727467298508, 0.0062922327779233456, 0.04954284057021141, -0.0566660538315773, 0.06412608921527863, 0.03461961820721626, -0.04780813306570053, -0.041849635541439056, 0.012674901634454727, -0.163360595703125, -3.6680390209287594e-33, 0.09283116459846497, -0.006608285941183567, 0.0018910302314907312, 0.024103105068206787, 0.023753697052598, 0.03153059631586075, 0.003355116583406925, 0.08052924275398254, -0.0412382036447525, -0.07719476521015167, -0.06451117992401123, -0.07199558615684509, 0.08453864604234695, 0.049524687230587006, -0.09835442900657654, 0.01694081909954548, -0.04152422025799751, -0.023038281127810478, -0.0005475314683280885, 0.013324449770152569, -0.09284807741641998, 0.007784336339682341, 0.06328296661376953, 0.013667264021933079, 0.006957839243113995, 0.05869448184967041, -0.06408783793449402, 0.010889141820371151, 0.02130347676575184, -0.0028738821856677532, -0.062335286289453506, -0.08099516481161118, -0.054358772933483124, 0.012832756154239178, 0.018106475472450256, -0.0949559360742569, -0.020060190930962563, 0.09190880507230759, 0.010444308631122112, 0.05777973309159279, 0.05702749267220497, 0.008171968162059784, -0.056564975529909134, -0.02370154857635498, -0.038430310785770416, -0.0191353689879179, -0.011086829006671906, -0.08656876534223557, 0.000044243468437343836, -0.10618613660335541, -0.032507702708244324, -0.06196310371160507, -0.07302936911582947, 0.08423204720020294, -0.002885430818423629, 0.011713981628417969, 0.06874825060367584, 0.04060863330960274, -0.013333977200090885, -0.045218709856271744, 0.0807969719171524, -0.06788759678602219, -0.012687361799180508, 0.01933569833636284, 0.02963338978588581, -0.06139817088842392, -0.0005594215472228825, 0.016878291964530945, -0.032440438866615295, 0.06094241142272949, 0.03277319669723511, 0.024118587374687195, 0.0448940247297287, 0.08973435312509537, -0.03189549595117569, 0.008009389974176884, 0.051845524460077286, -0.04198328033089638, 0.0630871132016182, 0.03999990597367287, -0.07315059751272202, 0.08839546144008636, -0.024442486464977264, 0.00575399911031127, -0.0028565244283527136, 0.06375736743211746, 0.03247227147221565, 0.060165733098983765, 0.00364394998177886, 0.05276530608534813, -0.01196023914963007, -0.028386937454342842, -0.043483469635248184, 0.09589488804340363, -0.05951403081417084, -4.166688682971653e-8, 0.09781111031770706, -0.05758754536509514, 0.01913393847644329, 0.07880210131406784, 0.0710151195526123, -0.05697210133075714, 0.013841955922544003, 0.07468192279338837, 0.009691322222352028, 0.07097525894641876, 0.07545951008796692, 0.05454597994685173, -0.046900857239961624, 0.022351635619997978, 0.014553927816450596, 0.007069066632539034, 0.022223640233278275, 0.02590889297425747, 0.01977486163377762, -0.059071920812129974, -0.09577654302120209, -0.04845680668950081, -0.014767887070775032, -0.025474639609456062, 0.003927932120859623, 0.012719156220555305, 0.11819130182266235, 0.04589127376675606, 0.02545638382434845, -0.008259019814431667, -0.08059138804674149, 0.011052911169826984, -0.11727943271398544, 0.001320588169619441, -0.03730560466647148, -0.020106064155697823, -0.1166006475687027, 0.05822362005710602, 0.0010295204119756818, 0.08087541908025742, -0.0424429215490818, -0.02769729681313038, -0.019550714641809464, 0.024355219677090645, 0.02521716058254242, 0.12435506284236908, -0.06168236956000328, 0.0787518173456192, 0.0012328251032158732, -0.005976119544357061, -0.04311193898320198, -0.006090582814067602, 0.002200325019657612, 0.09951498359441757, -0.05324868485331535, 0.014194411225616932, 0.011671560816466808, 0.0037873792462050915, -0.026622286066412926, -0.04151755943894386, 0.023995889350771904, 0.00821571983397007, -0.009921177290380001, 0.003952967468649149 ]
0.188109
This page shows how to set a quota for the total number of Pods that can run in a {{< glossary\_tooltip text="Namespace" term\_id="namespace" >}}. You specify quotas in a [ResourceQuota](/docs/reference/kubernetes-api/policy-resources/resource-quota-v1/) object. ## {{% heading "prerequisites" %}} {{< include "task-tutorial-prereqs.md" >}} You must have access to create namespaces in your cluster. ## Create a namespace Create a namespace so that the resources you create in this exercise are isolated from the rest of your cluster. ```shell kubectl create namespace quota-pod-example ``` ## Create a ResourceQuota Here is an example manifest for a ResourceQuota: {{% code\_sample file="admin/resource/quota-pod.yaml" %}} Create the ResourceQuota: ```shell kubectl apply -f https://k8s.io/examples/admin/resource/quota-pod.yaml --namespace=quota-pod-example ``` View detailed information about the ResourceQuota: ```shell kubectl get resourcequota pod-demo --namespace=quota-pod-example --output=yaml ``` The output shows that the namespace has a quota of two Pods, and that currently there are no Pods; that is, none of the quota is used. ```yaml spec: hard: pods: "2" status: hard: pods: "2" used: pods: "0" ``` Here is an example manifest for a {{< glossary\_tooltip term\_id="deployment" >}}: {{% code\_sample file="admin/resource/quota-pod-deployment.yaml" %}} In that manifest, `replicas: 3` tells Kubernetes to attempt to create three new Pods, all running the same application. Create the Deployment: ```shell kubectl apply -f https://k8s.io/examples/admin/resource/quota-pod-deployment.yaml --namespace=quota-pod-example ``` View detailed information about the Deployment: ```shell kubectl get deployment pod-quota-demo --namespace=quota-pod-example --output=yaml ``` The output shows that even though the Deployment specifies three replicas, only two Pods were created because of the quota you defined earlier: ```yaml spec: ... replicas: 3 ... status: availableReplicas: 2 ... lastUpdateTime: 2021-04-02T20:57:05Z message: 'unable to create pods: pods "pod-quota-demo-1650323038-" is forbidden: exceeded quota: pod-demo, requested: pods=1, used: pods=2, limited: pods=2' ``` ### Choice of resource In this task you have defined a ResourceQuota that limited the total number of Pods, but you could also limit the total number of other kinds of object. For example, you might decide to limit how many {{< glossary\_tooltip text="CronJobs" term\_id="cronjob" >}} that can live in a single namespace. ## Clean up Delete your namespace: ```shell kubectl delete namespace quota-pod-example ``` ## {{% heading "whatsnext" %}} ### For cluster administrators \* [Configure Default Memory Requests and Limits for a Namespace](/docs/tasks/administer-cluster/manage-resources/memory-default-namespace/) \* [Configure Default CPU Requests and Limits for a Namespace](/docs/tasks/administer-cluster/manage-resources/cpu-default-namespace/) \* [Configure Minimum and Maximum Memory Constraints for a Namespace](/docs/tasks/administer-cluster/manage-resources/memory-constraint-namespace/) \* [Configure Minimum and Maximum CPU Constraints for a Namespace](/docs/tasks/administer-cluster/manage-resources/cpu-constraint-namespace/) \* [Configure Memory and CPU Quotas for a Namespace](/docs/tasks/administer-cluster/manage-resources/quota-memory-cpu-namespace/) \* [Configure Quotas for API Objects](/docs/tasks/administer-cluster/quota-api-object/) ### For app developers \* [Assign Memory Resources to Containers and Pods](/docs/tasks/configure-pod-container/assign-memory-resource/) \* [Assign CPU Resources to Containers and Pods](/docs/tasks/configure-pod-container/assign-cpu-resource/) \* [Assign Pod-level CPU and memory resources](/docs/tasks/configure-pod-container/assign-pod-level-resources/) \* [Configure Quality of Service for Pods](/docs/tasks/configure-pod-container/quality-service-pod/)
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/manage-resources/quota-pod-namespace.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/manage-resources/quota-pod-namespace.md
[ -0.008945455774664879, 0.000768505793530494, 0.021375156939029694, 0.012112128548324108, -0.091242715716362, 0.00013027142267674208, 0.04394647479057312, -0.019113104790449142, 0.057427454739809036, 0.09048381447792053, -0.05655190348625183, -0.1319669932126999, 0.036251265555620193, -0.02679888717830181, 0.007925864309072495, 0.012425858527421951, 0.023189060389995575, -0.0473836213350296, -0.05631362646818161, -0.09015879034996033, 0.10765054076910019, 0.03683457151055336, 0.06536269932985306, 0.010496173053979874, -0.002486467594280839, -0.0239421334117651, -0.06311504542827606, -0.041312865912914276, 0.029307853430509567, 0.039882831275463104, 0.01125566940754652, -0.03246704861521721, 0.03447556495666504, 0.03525228053331375, 0.11991394311189651, 0.08089041709899902, -0.03625631332397461, -0.013857359066605568, -0.04540326073765755, 0.04175780341029167, 0.025790981948375702, 0.020863434299826622, -0.08636719733476639, 0.0018878319533541799, -0.009626297280192375, 0.023652052506804466, -0.06047021970152855, -0.02975061722099781, 0.036304302513599396, 0.03444058820605278, 0.035772573202848434, -0.10085142403841019, 0.05298568308353424, -0.017621517181396484, 0.058616142719984055, -0.005436426028609276, 0.003035512287169695, 0.06741449981927872, 0.06821458786725998, 0.020018264651298523, 0.009472326375544071, -0.055832840502262115, 0.002716589020565152, -0.042339663952589035, 0.001349997939541936, 0.005093008745461702, 0.0012494958937168121, 0.0692649558186531, -0.0400225967168808, 0.027691589668393135, 0.049963466823101044, 0.05834519490599632, -0.02261986769735813, -0.01379606407135725, -0.03165259584784508, 0.0724494531750679, -0.02185136452317238, 0.10629027336835861, 0.019306791946291924, -0.06555989384651184, -0.020446697250008583, 0.03322203829884529, 0.05368722975254059, 0.004934194032102823, -0.060897067189216614, -0.02766607142984867, -0.0032268944196403027, -0.027314690873026848, 0.03326927870512009, -0.03676982596516609, 0.02293769270181656, -0.04385257139801979, 0.043530069291591644, -0.056448813527822495, 0.05565986409783363, 0.0007247294415719807, -0.053502701222896576, 0.016328375786542892, 0.0046228342689573765, -0.012765233404934406, 0.008813525550067425, -0.029894545674324036, 0.0061945137567818165, 0.0008535790257155895, -0.006017420440912247, 0.000028334765374893323, -0.0731399729847908, -0.01864573359489441, -0.01052036788314581, 0.08724722266197205, 0.00783471204340458, 0.05789058655500412, -0.02050875499844551, 0.041264306753873825, 0.02582341991364956, -0.009157862514257431, 0.031373608857393265, -0.056238312274217606, 0.05234096944332123, 0.07072310149669647, 0.028090212494134903, -0.06596431881189346, -0.004838835448026657, -0.01957087032496929, -0.006421738304197788, -0.01681067794561386, -0.023299695923924446, 1.7667061121614876e-33, 0.05247699096798897, -0.06646288186311722, 0.058200426399707794, -0.020956819877028465, -0.002687852131202817, -0.049776818603277206, -0.02363976277410984, 0.047549858689308167, -0.08310110121965408, -0.05285734310746193, -0.02344837225973606, 0.07971850782632828, -0.00589773990213871, -0.07447482645511627, -0.012001763097941875, -0.00897128414362669, -0.02991596795618534, 0.10517922788858414, 0.11665868759155273, -0.0257378239184618, 0.02645445056259632, -0.07090858370065689, -0.04672638326883316, -0.005995976272970438, 0.039925895631313324, 0.0005691624828614295, 0.05194755271077156, -0.14827148616313934, -0.004325184505432844, 0.01987416297197342, -0.04634896293282509, -0.03940960764884949, 0.010677634738385677, -0.004390874411910772, -0.12122411280870438, -0.02749376744031906, -0.007047409191727638, 0.07640459388494492, -0.04203230142593384, -0.04805025830864906, 0.03326784074306488, -0.020846052095294, 0.07840456068515778, -0.06267637759447098, -0.008590406738221645, 0.02615143358707428, 0.07444002479314804, -0.12580284476280212, 0.03087267465889454, 0.06668316572904587, -0.0028826124034821987, -0.07148998230695724, 0.008329330012202263, 0.00872446782886982, 0.0447147898375988, -0.009277302771806717, 0.04661460220813751, -0.0204554982483387, 0.021755535155534744, -0.03845268487930298, -0.0715222954750061, -0.0055742464028298855, -0.006380175240337849, 0.05403989925980568, 0.03442026674747467, 0.03145381063222885, -0.020337820053100586, 0.05412323772907257, 0.024442801252007484, 0.02302245981991291, -0.06159646064043045, -0.01675068959593773, -0.028930002823472023, 0.033390745520591736, -0.03192853927612305, -0.07386165112257004, 0.057040125131607056, 0.02321002632379532, -0.16400571167469025, 0.03643229976296425, -0.02661209926009178, -0.0769115462899208, -0.05365564674139023, 0.03691824525594711, 0.009398366324603558, -0.036710191518068314, -0.007683604955673218, 0.011730016209185123, -0.08442539721727371, -0.02356540970504284, 0.01915581338107586, -0.0759773999452591, -0.11839810013771057, 0.027656057849526405, -0.08130618184804916, -3.365833014985781e-33, 0.13924436271190643, 0.06860965490341187, 0.033972807228565216, 0.015769442543387413, 0.06126997992396355, 0.030800186097621918, 0.04366958886384964, 0.10431845486164093, 0.004650092218071222, -0.025844965130090714, -0.1151566132903099, -0.020696565508842468, 0.06577248871326447, 0.08992145955562592, -0.11277898401021957, -0.0013785409973934293, -0.07062824070453644, 0.01125865988433361, 0.018194084987044334, -0.0009537245496176183, -0.0495283305644989, -0.014464572072029114, 0.06515919417142868, 0.02204880118370056, 0.03693369776010513, 0.007030528504401445, 0.0011790272546932101, -0.016946107149124146, 0.017590759322047234, 0.038217440247535706, -0.027586469426751137, -0.08484860509634018, -0.09038795530796051, -0.0249344315379858, -0.022542869672179222, -0.10446237772703171, -0.01166020892560482, 0.09040500968694687, -0.006345401052385569, 0.08339142799377441, 0.056561049073934555, -0.012760523706674576, -0.025548839941620827, -0.07358569651842117, -0.03299814835190773, -0.019601095467805862, 0.03750400245189667, -0.11115789413452148, -0.07554042339324951, -0.12517230212688446, 0.01341734454035759, -0.01590694673359394, -0.07272393256425858, 0.09227173775434494, -0.018780870363116264, -0.00024867968750186265, 0.058628764003515244, 0.033986032009124756, -0.03236966207623482, -0.06211161985993385, 0.027828942984342575, -0.01970825530588627, 0.005854371003806591, -0.0011176910484209657, 0.0026413702871650457, -0.06806010752916336, -0.028556521981954575, 0.01581788994371891, -0.04564256593585014, -0.001316151930950582, -0.05344713479280472, 0.028962502256035805, 0.055084679275751114, 0.05741099268198013, -0.0041939327493309975, 0.03489755466580391, 0.02144760638475418, -0.07124505937099457, 0.10598250478506088, 0.032796017825603485, -0.049696050584316254, 0.07289961725473404, 0.014292228035628796, 0.02275766246020794, 0.011010614223778248, 0.049600861966609955, 0.06039585918188095, 0.08959665149450302, -0.006136835087090731, 0.09764843434095383, -0.044962894171476364, 0.004468377213925123, 0.038935013115406036, 0.12277967482805252, -0.06705768406391144, -4.5059685760406865e-8, 0.03886508196592331, 0.09514958411455154, 0.028359660878777504, 0.06919293850660324, 0.009801249951124191, -0.05776328593492508, 0.004691510461270809, 0.0758759081363678, -0.024098392575979233, 0.017304973676800728, 0.02978171594440937, 0.06265705823898315, -0.053196072578430176, 0.06715190410614014, -0.06960386782884598, -0.0064489152282476425, -0.018806181848049164, 0.012681283056735992, 0.018538465723395348, -0.07012959569692612, -0.025520870462059975, -0.031244175508618355, -0.021685320883989334, -0.02932417020201683, 0.010408313013613224, 0.022499363869428635, 0.030587119981646538, 0.044295087456703186, -0.003944686613976955, -0.01933743990957737, -0.039854250848293304, -0.023260528221726418, -0.10494311898946762, 0.02325960248708725, -0.03539007902145386, -0.05845988914370537, -0.15842418372631073, 0.04214955493807793, 0.03315965458750725, 0.0824880301952362, -0.06521197408437729, -0.02500995621085167, -0.018207939341664314, -0.010682900436222553, 0.017952382564544678, 0.10036874562501907, -0.07327303290367126, 0.058192625641822815, -0.019182570278644562, -0.011898413300514221, -0.024960219860076904, -0.04392409697175026, -0.00865413248538971, 0.05258888378739357, -0.012357024475932121, 0.0071446774527430534, -0.007482917979359627, 0.00958361104130745, -0.02687177062034607, -0.010439695790410042, 0.007738975808024406, 0.015706826001405716, -0.007468625903129578, 0.006757471710443497 ]
0.077267
This page shows how to set minimum and maximum values for the CPU resources used by containers and Pods in a {{< glossary\_tooltip text="namespace" term\_id="namespace" >}}. You specify minimum and maximum CPU values in a [LimitRange](/docs/reference/kubernetes-api/policy-resources/limit-range-v1/) object. If a Pod does not meet the constraints imposed by the LimitRange, it cannot be created in the namespace. ## {{% heading "prerequisites" %}} {{< include "task-tutorial-prereqs.md" >}} You must have access to create namespaces in your cluster. Each node in your cluster must have at least 1.0 CPU available for Pods. See [meaning of CPU](/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu) to learn what Kubernetes means by “1 CPU”. ## Create a namespace Create a namespace so that the resources you create in this exercise are isolated from the rest of your cluster. ```shell kubectl create namespace constraints-cpu-example ``` ## Create a LimitRange and a Pod Here's a manifest for an example {{< glossary\_tooltip text="LimitRange" term\_id="limitrange" >}}: {{% code\_sample file="admin/resource/cpu-constraints.yaml" %}} Create the LimitRange: ```shell kubectl apply -f https://k8s.io/examples/admin/resource/cpu-constraints.yaml --namespace=constraints-cpu-example ``` View detailed information about the LimitRange: ```shell kubectl get limitrange cpu-min-max-demo-lr --output=yaml --namespace=constraints-cpu-example ``` The output shows the minimum and maximum CPU constraints as expected. But notice that even though you didn't specify default values in the configuration file for the LimitRange, they were created automatically. ```yaml limits: - default: cpu: 800m defaultRequest: cpu: 800m max: cpu: 800m min: cpu: 200m type: Container ``` Now whenever you create a Pod in the constraints-cpu-example namespace (or some other client of the Kubernetes API creates an equivalent Pod), Kubernetes performs these steps: \* If any container in that Pod does not specify its own CPU request and limit, the control plane assigns the default CPU request and limit to that container. \* Verify that every container in that Pod specifies a CPU request that is greater than or equal to 200 millicpu. \* Verify that every container in that Pod specifies a CPU limit that is less than or equal to 800 millicpu. {{< note >}} When creating a `LimitRange` object, you can specify limits on huge-pages or GPUs as well. However, when both `default` and `defaultRequest` are specified on these resources, the two values must be the same. {{< /note >}} Here's a manifest for a Pod that has one container. The container manifest specifies a CPU request of 500 millicpu and a CPU limit of 800 millicpu. These satisfy the minimum and maximum CPU constraints imposed by the LimitRange for this namespace. {{% code\_sample file="admin/resource/cpu-constraints-pod.yaml" %}} Create the Pod: ```shell kubectl apply -f https://k8s.io/examples/admin/resource/cpu-constraints-pod.yaml --namespace=constraints-cpu-example ``` Verify that the Pod is running and that its container is healthy: ```shell kubectl get pod constraints-cpu-demo --namespace=constraints-cpu-example ``` View detailed information about the Pod: ```shell kubectl get pod constraints-cpu-demo --output=yaml --namespace=constraints-cpu-example ``` The output shows that the Pod's only container has a CPU request of 500 millicpu and CPU limit of 800 millicpu. These satisfy the constraints imposed by the LimitRange. ```yaml resources: limits: cpu: 800m requests: cpu: 500m ``` ## Delete the Pod ```shell kubectl delete pod constraints-cpu-demo --namespace=constraints-cpu-example ``` ## Attempt to create a Pod that exceeds the maximum CPU constraint Here's a manifest for a Pod that has one container. The container specifies a CPU request of 500 millicpu and a cpu limit of 1.5 cpu. {{% code\_sample file="admin/resource/cpu-constraints-pod-2.yaml" %}} Attempt to create the Pod: ```shell kubectl apply -f https://k8s.io/examples/admin/resource/cpu-constraints-pod-2.yaml --namespace=constraints-cpu-example ``` The output shows that the Pod does not get created, because it defines an unacceptable container. That container is not acceptable because it specifies a CPU limit that is too large: ``` Error from server (Forbidden): error when creating "examples/admin/resource/cpu-constraints-pod-2.yaml": pods "constraints-cpu-demo-2" is forbidden: maximum
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/manage-resources/cpu-constraint-namespace.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/manage-resources/cpu-constraint-namespace.md
[ 0.02454935573041439, 0.003708284581080079, 0.025215161964297295, 0.009052474051713943, -0.06437516957521439, -0.03015410527586937, 0.02133738435804844, -0.035282496362924576, 0.0011191983940079808, 0.062344133853912354, -0.05063240975141525, -0.12584160268306732, 0.007077948190271854, -0.04506994038820267, 0.01642611436545849, 0.002622978761792183, 0.09144949167966843, -0.08363612741231918, -0.05772807076573372, -0.07037504017353058, 0.09320734441280365, 0.025514915585517883, 0.04496394842863083, 0.019482048228383064, -0.016907712444663048, -0.029690559953451157, -0.07176662981510162, -0.0049942308105528355, 0.0540832094848156, 0.030454350635409355, 0.006695592310279608, -0.051021676510572433, 0.018341129645705223, 0.05812749266624451, 0.13565517961978912, 0.10798018425703049, -0.02223087102174759, -0.06202654913067818, -0.06018822267651558, 0.02099907584488392, 0.015697428956627846, 0.01113916840404272, -0.0849829614162445, 0.010762040503323078, -0.02861609123647213, 0.027907434850931168, -0.04587326571345329, -0.07409428060054779, 0.010729588568210602, -0.020404910668730736, -0.04423801228404045, -0.07261262834072113, 0.057922590523958206, -0.0344870500266552, 0.04598536342382431, 0.02949073724448681, -0.003573513589799404, 0.05274641886353493, 0.05666179209947586, -0.030932821333408356, -0.005201870575547218, -0.06527817994356155, 0.009257851168513298, -0.09130609035491943, 0.02974412404000759, -0.010476617142558098, 0.015168458223342896, 0.0372433215379715, -0.007865265011787415, 0.05354141816496849, 0.06603116542100906, -0.004040323197841644, -0.017602182924747467, -0.013313173316419125, 0.0030170204117894173, 0.05103339999914169, -0.057664599269628525, 0.0466674342751503, 0.010178698226809502, -0.07648295909166336, -0.007959840819239616, 0.04096407815814018, 0.04212438315153122, -0.012154086492955685, -0.07067225128412247, -0.0015590718248859048, 0.007007579784840345, -0.008793573826551437, 0.08051109313964844, -0.026830263435840607, 0.06107569485902786, -0.04348940774798393, 0.021173035725951195, -0.06452428549528122, 0.1255079060792923, -0.006379692815244198, -0.04589225351810455, -0.020575353875756264, -0.00027767554274760187, -0.01944766938686371, -0.009308663196861744, -0.04195909947156906, 0.06108686700463295, 0.08269882947206497, 0.021197719499468803, -0.02199631929397583, -0.0596114844083786, -0.0034504167269915342, 0.0007237027166411281, 0.04723013937473297, 0.03866884112358093, 0.08212731033563614, 0.007864673621952534, 0.014124875888228416, 0.011784087866544724, 0.008628462441265583, 0.049478672444820404, -0.051059506833553314, 0.016626009717583656, 0.07409057021141052, 0.017494676634669304, -0.07888144999742508, 0.006836255546659231, -0.017546750605106354, -0.050603147596120834, -0.03291113302111626, -0.04945139214396477, 2.6893229754470998e-33, 0.039065856486558914, -0.07544147223234177, 0.053110357373952866, -0.01794293336570263, 0.02818504348397255, -0.07066841423511505, -0.04933102801442146, 0.04495174437761307, -0.06302537024021149, 0.0118402736261487, -0.023397086188197136, 0.07362491637468338, -0.023127811029553413, -0.032252710312604904, 0.0005049026804044843, -0.034045007079839706, 0.02507827617228031, 0.04714425653219223, 0.1276513934135437, -0.02191413938999176, 0.02641291543841362, -0.1120087057352066, -0.08073180913925171, -0.017459142953157425, 0.006180041469633579, 0.024982813745737076, 0.025742271915078163, -0.13891726732254028, -0.00496321264654398, 0.007460962049663067, -0.062342241406440735, -0.008620076812803745, 0.008656780235469341, 0.013095839880406857, -0.13682478666305542, -0.016797564923763275, -0.008171064779162407, 0.07164747267961502, -0.03611152619123459, -0.008412604220211506, 0.049643244594335556, 0.012256908230483532, 0.04019615426659584, -0.06158822029829025, 0.07015542685985565, 0.018213605508208275, 0.049911174923181534, -0.08172936737537384, 0.01808382011950016, 0.07220763713121414, 0.022586213424801826, -0.0562659427523613, 0.0058491164818406105, -0.041884779930114746, 0.02526750974357128, -0.012668180279433727, 0.07208561897277832, 0.012807841412723064, 0.022915789857506752, -0.004148932173848152, -0.08928704261779785, -0.02611035294830799, -0.016134709119796753, 0.04730049893260002, 0.0654415637254715, 0.023326819762587547, -0.06869122385978699, 0.07288096100091934, 0.018615413457155228, 0.05086582899093628, -0.07452370971441269, -0.010779167525470257, 0.020068254321813583, 0.0496419258415699, 0.021707147359848022, -0.03282618150115013, 0.0409323088824749, 0.0009831717470660806, -0.1727353036403656, -0.024480348452925682, -0.0018140797037631273, 0.007388520520180464, -0.04164617136120796, 0.0005129205528646708, -0.03436131402850151, -0.05795997381210327, -0.014980822801589966, 0.04972739890217781, -0.06474056094884872, 0.04881257936358452, 0.02968987450003624, -0.06716158986091614, -0.08065572381019592, 0.03818770870566368, -0.1233467385172844, -3.522237681150471e-33, 0.10843329131603241, -0.018525999039411545, -0.011992487125098705, -0.020565122365951538, 0.060064852237701416, 0.03330158069729805, 0.0495467483997345, 0.02619251422584057, -0.01273356843739748, -0.07798796892166138, -0.06561370939016342, -0.08114113658666611, 0.05526818335056305, 0.06295514106750488, -0.07494822889566422, 0.007109104190021753, -0.09098029136657715, -0.005212934222072363, 0.03331686556339264, 0.046459563076496124, -0.04668663442134857, 0.0044821882620453835, 0.036528896540403366, 0.03859902173280716, 0.03322388231754303, 0.008103090338408947, 0.020990604534745216, 0.02632887102663517, 0.05720635876059532, -0.012403241358697414, -0.05766206979751587, -0.06964875012636185, -0.008051315322518349, 0.0019925141241401434, 0.03344693034887314, -0.06985659897327423, -0.045293178409338, 0.04991912469267845, -0.01985282637178898, 0.053091734647750854, 0.06298045068979263, -0.011226053349673748, -0.0678681805729866, -0.06580498069524765, -0.02814674563705921, 0.0070208217948675156, 0.03376032039523125, -0.09380984306335449, -0.0657537654042244, -0.12117704004049301, 0.04805085062980652, -0.05268920212984085, -0.05197099223732948, 0.06562796980142593, -0.029799049720168114, 0.022760441526770592, 0.06433544307947159, 0.0034964613150805235, -0.001972961938008666, -0.04938888922333717, 0.08449357748031616, -0.07613176852464676, 0.025089986622333527, 0.02886313945055008, 0.02227303944528103, -0.06660256534814835, -0.04961511492729187, 0.037103552371263504, -0.03262549266219139, 0.01809525489807129, -0.05048716068267822, 0.0036666723899543285, 0.11645108461380005, 0.04864810034632683, -0.039620500057935715, 0.0032331980764865875, 0.03856343775987625, -0.03332069143652916, 0.10685311257839203, 0.0034699246753007174, -0.06163587421178818, 0.11009532958269119, -0.02513415925204754, 0.028452711179852486, 0.024470269680023193, 0.07597634941339493, 0.07833967357873917, 0.09845208376646042, 0.025191687047481537, 0.05506519228219986, -0.016828538849949837, -0.03592688962817192, 0.003166044829413295, 0.13820114731788635, -0.06562865525484085, -5.461192387201663e-8, 0.0716891810297966, 0.052963051944971085, -0.0023586514871567488, 0.10593833774328232, 0.05677824467420578, -0.032637983560562134, 0.03171740472316742, 0.008883279748260975, 0.0026810583658516407, 0.05006428807973862, 0.020685667172074318, 0.03555702045559883, -0.02075856551527977, 0.0360373929142952, 0.020433083176612854, -0.002963184379041195, -0.015573359094560146, 0.014859205111861229, 0.018740888684988022, -0.10166319459676743, -0.06821117550134659, -0.034985579550266266, -0.011567976325750351, -0.04955366998910904, -0.007933194749057293, 0.00847027637064457, 0.07191265374422073, 0.027623407542705536, 0.0215578805655241, 0.003773196367546916, -0.0952090471982956, -0.015918800607323647, -0.08609041571617126, 0.03930962458252907, -0.04138599708676338, -0.0036619198508560658, -0.10815392434597015, 0.062365349382162094, 0.029951361939311028, 0.01756456308066845, -0.04357675462961197, -0.024117087945342064, -0.06173775717616081, -0.033256787806749344, 0.005265308544039726, 0.08940308541059494, -0.06343421339988708, 0.08015363663434982, 0.014392447657883167, 0.027363741770386696, -0.040786489844322205, -0.0026445856783539057, 0.0027070692740380764, 0.08440280705690384, -0.04751316457986832, 0.022651145234704018, -0.003929829224944115, 0.013898500241339207, -0.05411142110824585, -0.05318358168005943, 0.03565942868590355, 0.014576752670109272, 0.0032885009422898293, 0.02629857324063778 ]
0.086307
apply -f https://k8s.io/examples/admin/resource/cpu-constraints-pod-2.yaml --namespace=constraints-cpu-example ``` The output shows that the Pod does not get created, because it defines an unacceptable container. That container is not acceptable because it specifies a CPU limit that is too large: ``` Error from server (Forbidden): error when creating "examples/admin/resource/cpu-constraints-pod-2.yaml": pods "constraints-cpu-demo-2" is forbidden: maximum cpu usage per Container is 800m, but limit is 1500m. ``` ## Attempt to create a Pod that does not meet the minimum CPU request Here's a manifest for a Pod that has one container. The container specifies a CPU request of 100 millicpu and a CPU limit of 800 millicpu. {{% code\_sample file="admin/resource/cpu-constraints-pod-3.yaml" %}} Attempt to create the Pod: ```shell kubectl apply -f https://k8s.io/examples/admin/resource/cpu-constraints-pod-3.yaml --namespace=constraints-cpu-example ``` The output shows that the Pod does not get created, because it defines an unacceptable container. That container is not acceptable because it specifies a CPU request that is lower than the enforced minimum: ``` Error from server (Forbidden): error when creating "examples/admin/resource/cpu-constraints-pod-3.yaml": pods "constraints-cpu-demo-3" is forbidden: minimum cpu usage per Container is 200m, but request is 100m. ``` ## Create a Pod that does not specify any CPU request or limit Here's a manifest for a Pod that has one container. The container does not specify a CPU request, nor does it specify a CPU limit. {{% code\_sample file="admin/resource/cpu-constraints-pod-4.yaml" %}} Create the Pod: ```shell kubectl apply -f https://k8s.io/examples/admin/resource/cpu-constraints-pod-4.yaml --namespace=constraints-cpu-example ``` View detailed information about the Pod: ``` kubectl get pod constraints-cpu-demo-4 --namespace=constraints-cpu-example --output=yaml ``` The output shows that the Pod's single container has a CPU request of 800 millicpu and a CPU limit of 800 millicpu. How did that container get those values? ```yaml resources: limits: cpu: 800m requests: cpu: 800m ``` Because that container did not specify its own CPU request and limit, the control plane applied the [default CPU request and limit](/docs/tasks/administer-cluster/manage-resources/cpu-default-namespace/) from the LimitRange for this namespace. At this point, your Pod may or may not be running. Recall that a prerequisite for this task is that your Nodes must have at least 1 CPU available for use. If each of your Nodes has only 1 CPU, then there might not be enough allocatable CPU on any Node to accommodate a request of 800 millicpu. If you happen to be using Nodes with 2 CPU, then you probably have enough CPU to accommodate the 800 millicpu request. Delete your Pod: ``` kubectl delete pod constraints-cpu-demo-4 --namespace=constraints-cpu-example ``` ## Enforcement of minimum and maximum CPU constraints The maximum and minimum CPU constraints imposed on a namespace by a LimitRange are enforced only when a Pod is created or updated. If you change the LimitRange, it does not affect Pods that were created previously. ## Motivation for minimum and maximum CPU constraints As a cluster administrator, you might want to impose restrictions on the CPU resources that Pods can use. For example: \* Each Node in a cluster has 2 CPU. You do not want to accept any Pod that requests more than 2 CPU, because no Node in the cluster can support the request. \* A cluster is shared by your production and development departments. You want to allow production workloads to consume up to 3 CPU, but you want development workloads to be limited to 1 CPU. You create separate namespaces for production and development, and you apply CPU constraints to each namespace. ## Clean up Delete your namespace: ```shell kubectl delete namespace constraints-cpu-example ``` ## {{% heading "whatsnext" %}} ### For cluster administrators \* [Configure Default Memory Requests and Limits for a Namespace](/docs/tasks/administer-cluster/manage-resources/memory-default-namespace/) \* [Configure Default CPU Requests and Limits for a Namespace](/docs/tasks/administer-cluster/manage-resources/cpu-default-namespace/) \* [Configure Minimum and Maximum
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/manage-resources/cpu-constraint-namespace.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/manage-resources/cpu-constraint-namespace.md
[ 0.002978699281811714, 0.056960754096508026, 0.010431849397718906, -0.019395316019654274, -0.008005421608686447, -0.08881083875894547, -0.024015076458454132, 0.022440876811742783, -0.0004892038996331394, 0.04019663482904434, -0.004732689820230007, -0.07597796618938446, -0.02208310179412365, -0.03958980366587639, 0.0626068040728569, 0.0054496233351528645, 0.0823436751961708, -0.019457610324025154, -0.06632541865110397, -0.02726990357041359, 0.12030205875635147, 0.00496546970680356, 0.012862770818173885, -0.0003966313670389354, -0.049804627895355225, -0.01947535015642643, -0.08190250396728516, 0.005063395015895367, 0.042304877191782, -0.030915124341845512, 0.009040381759405136, -0.007972035557031631, 0.028858467936515808, 0.004517411347478628, 0.1669670194387436, 0.13711048662662506, -0.013948589563369751, -0.11336775124073029, -0.06124572828412056, 0.0003395345702301711, 0.0014776581665500998, -0.0032971403561532497, -0.06546420603990555, 0.01281681191176176, 0.022421997040510178, -0.0024218454491347075, -0.00593470549210906, -0.04838511347770691, 0.024795394390821457, -0.04762373864650726, -0.0753326416015625, -0.025010541081428528, 0.09253361821174622, -0.010538183152675629, 0.037354860454797745, -0.03394518792629242, -0.014105616137385368, 0.0481310598552227, 0.05048020929098129, 0.01746734231710434, -0.005886546801775694, -0.05102159455418587, 0.02360876090824604, -0.039901092648506165, 0.05401686578989029, -0.04575834050774574, -0.04265017807483673, -0.02965637668967247, -0.011829113587737083, 0.11083469539880753, 0.07320354878902435, -0.00035034900065511465, -0.07835126668214798, 0.026976367458701134, 0.010965613648295403, -0.0013336970005184412, -0.07067620754241943, 0.032474271953105927, 0.004308677278459072, -0.03156523406505585, -0.012418768368661404, -0.04105375334620476, 0.043032895773649216, -0.11069983243942261, -0.08499973267316818, -0.0009236770565621555, -0.03436058759689331, -0.024086227640509605, 0.05990546569228172, 0.014199614524841309, 0.05786001682281494, 0.029955396428704262, 0.024480653926730156, -0.06549680233001709, 0.09102518856525421, -0.010012187063694, -0.05116192251443863, 0.020125912502408028, -0.05380924791097641, 0.02396204136312008, 0.008046725764870644, -0.009607210755348206, 0.0007826224318705499, 0.05587919056415558, 0.07335669547319412, -0.04414883628487587, -0.03520071506500244, 0.02961776591837406, -0.020549999549984932, 0.04366973042488098, 0.025388283655047417, 0.01763508841395378, 0.015397346578538418, 0.005892782472074032, 0.004633033182471991, -0.005156862549483776, 0.03193732723593712, -0.04144914820790291, 0.03929898142814636, 0.0910508930683136, 0.07597315311431885, -0.03427743911743164, -0.05176743492484093, 0.03419594094157219, -0.03970487415790558, 0.0017034118063747883, -0.029929833486676216, 2.819520546073184e-34, 0.05402125418186188, -0.053324371576309204, 0.02800024300813675, -0.04670761898159981, 0.06877682358026505, -0.07349240779876709, -0.03544313460588455, 0.011517266742885113, -0.06365914642810822, 0.06125938147306442, -0.05652669817209244, -0.0048607103526592255, -0.003230447880923748, -0.03455118089914322, 0.02183511108160019, -0.050039321184158325, -0.011032532900571823, 0.05672604963183403, 0.09726083278656006, 0.013373535126447678, 0.09504219144582748, -0.12199931591749191, -0.08917827159166336, 0.05055282637476921, -0.044818028807640076, 0.02199583500623703, 0.03817595914006233, -0.12579193711280823, 0.006959659978747368, 0.013458916917443275, -0.026479730382561684, -0.056627485901117325, 0.0292779840528965, -0.014624974690377712, -0.07846007496118546, -0.06415925174951553, 0.03570329397916794, 0.03567051887512207, -0.10107480734586716, -0.03612932562828064, 0.04749187454581261, 0.011655868962407112, 0.017945969477295876, -0.00467664934694767, 0.028175020590424538, 0.007776044774800539, 0.031581226736307144, -0.03771194443106651, 0.004035059828311205, 0.06855088472366333, 0.00780630623921752, -0.007677276618778706, 0.04950611665844917, -0.03136158734560013, 0.07113476097583771, -0.003481395309790969, 0.0634528174996376, 0.008431289345026016, -0.008588289842009544, 0.044747915118932724, -0.04497425630688667, -0.004720298573374748, 0.0014256180729717016, 0.01404550764709711, 0.028515569865703583, 0.014715139754116535, -0.02747971937060356, 0.08128803223371506, -0.011266758665442467, 0.09587562084197998, -0.09462132304906845, 0.03073614090681076, -0.00008567020995542407, 0.025144299492239952, -0.02875848114490509, -0.0830308198928833, 0.026551220566034317, 0.029861023649573326, -0.13609923422336578, -0.04144575819373131, -0.00207607657648623, 0.006284854840487242, -0.04472702369093895, 0.01614498905837536, -0.03814349323511124, -0.061961375176906586, -0.006199456751346588, 0.09795693308115005, -0.031888674944639206, -0.0033688272815197706, -0.02018376998603344, -0.03141356259584427, -0.06648100912570953, -0.047114428132772446, -0.12264028191566467, -1.8929328996046927e-33, 0.05854012072086334, -0.020769864320755005, -0.022054482251405716, 0.031006379052996635, 0.09373833984136581, 0.0089956009760499, 0.052108485251665115, 0.02160685881972313, 0.01917964033782482, -0.045130129903554916, -0.08036176860332489, -0.05929550528526306, 0.09676868468523026, 0.01284109242260456, -0.10393442213535309, 0.0027248752303421497, -0.14093630015850067, -0.019480587914586067, 0.02311592735350132, 0.0037915396969765425, -0.09429054707288742, 0.0662509948015213, 0.08849260210990906, 0.08826931565999985, 0.019092461094260216, -0.027690621092915535, -0.012473111972212791, 0.024033179506659508, 0.01322941668331623, -0.016288045793771744, -0.04849187284708023, -0.05525809898972511, -0.07589653134346008, 0.09655877202749252, 0.00228253030218184, -0.05827547237277031, -0.008408444933593273, 0.08170579373836517, 0.0037416452541947365, 0.009708271361887455, 0.09684021025896072, 0.01036264467984438, -0.0390404537320137, 0.008514989167451859, -0.07312324643135071, -0.006200370844453573, 0.07821555435657501, -0.06830421835184097, 0.008854439482092857, -0.12431090325117111, -0.019748104736208916, -0.050226856023073196, -0.014768621884286404, 0.0759909525513649, -0.008539515547454357, -0.017826180905103683, 0.023939482867717743, 0.033257968723773956, -0.01088074129074812, 0.0012826613383367658, 0.06908013671636581, -0.063502237200737, 0.049854278564453125, 0.005519975442439318, 0.035024091601371765, -0.06396093219518661, -0.04957791045308113, 0.051310598850250244, 0.012598076835274696, 0.02699030563235283, 0.03913520276546478, 0.030699459835886955, 0.08127427101135254, 0.1061953529715538, -0.028938276693224907, 0.011311644688248634, 0.021040713414549828, -0.015375017188489437, 0.0671224445104599, 0.043557438999414444, -0.0685892105102539, 0.12957091629505157, -0.027871327474713326, 0.021815622225403786, 0.05259848013520241, 0.04115474969148636, 0.060018401592969894, 0.08215181529521942, 0.005641539581120014, 0.04155774042010307, 0.0023764187935739756, -0.026620496064424515, -0.015150723047554493, 0.11504199355840683, -0.019356485456228256, -4.1559928831702564e-8, 0.06786243617534637, -0.006541926879435778, -0.01852021925151348, 0.04620923474431038, 0.06375404447317123, 0.004745264537632465, 0.01626461185514927, -0.0438290536403656, -0.06544572860002518, -0.023196807131171227, 0.013555316254496574, 0.035084083676338196, -0.07205083966255188, 0.04715290293097496, 0.02134646289050579, -0.05773676559329033, -0.039044953882694244, 0.07682599127292633, -0.0005038397503085434, -0.06196347251534462, -0.08980026096105576, -0.015416569076478481, -0.029915209859609604, -0.04234909638762474, 0.015476214699447155, 0.06832615286111832, 0.03481509909033775, 0.005642114672809839, 0.013381419703364372, -0.023094210773706436, -0.06832165271043777, 0.0005336671601980925, -0.08734838664531708, -0.016093695536255836, -0.03463923931121826, -0.042546506971120834, -0.14950600266456604, 0.0626852810382843, -0.015094822272658348, -0.0015111604006960988, -0.06727305799722672, -0.03288818895816803, -0.043556392192840576, -0.02536753937602043, -0.011094985529780388, 0.050378717482089996, -0.016281569376587868, 0.05947258323431015, 0.021439585834741592, 0.020007798448204994, 0.031042521819472313, -0.05601419880986214, -0.004635946825146675, 0.06342019885778427, -0.010681381449103355, 0.005980410613119602, 0.0001258159609278664, -0.04018872231245041, -0.04879370704293251, -0.05389406532049179, 0.10389655083417892, 0.024141859263181686, 0.053823813796043396, -0.004540986847132444 ]
0.135722
constraints to each namespace. ## Clean up Delete your namespace: ```shell kubectl delete namespace constraints-cpu-example ``` ## {{% heading "whatsnext" %}} ### For cluster administrators \* [Configure Default Memory Requests and Limits for a Namespace](/docs/tasks/administer-cluster/manage-resources/memory-default-namespace/) \* [Configure Default CPU Requests and Limits for a Namespace](/docs/tasks/administer-cluster/manage-resources/cpu-default-namespace/) \* [Configure Minimum and Maximum Memory Constraints for a Namespace](/docs/tasks/administer-cluster/manage-resources/memory-constraint-namespace/) \* [Configure Memory and CPU Quotas for a Namespace](/docs/tasks/administer-cluster/manage-resources/quota-memory-cpu-namespace/) \* [Configure a Pod Quota for a Namespace](/docs/tasks/administer-cluster/manage-resources/quota-pod-namespace/) \* [Configure Quotas for API Objects](/docs/tasks/administer-cluster/quota-api-object/) ### For app developers \* [Assign Memory Resources to Containers and Pods](/docs/tasks/configure-pod-container/assign-memory-resource/) \* [Assign CPU Resources to Containers and Pods](/docs/tasks/configure-pod-container/assign-cpu-resource/) \* [Assign Pod-level CPU and memory resources](/docs/tasks/configure-pod-container/assign-pod-level-resources/) \* [Configure Quality of Service for Pods](/docs/tasks/configure-pod-container/quality-service-pod/)
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/manage-resources/cpu-constraint-namespace.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/manage-resources/cpu-constraint-namespace.md
[ 0.04412084445357323, 0.002312915399670601, -0.03254210576415062, 0.012712030671536922, -0.062377478927373886, -0.019690046086907387, -0.010267493315041065, -0.02153586409986019, 0.02490350417792797, 0.052644409239292145, -0.028270000591874123, -0.09878967702388763, -0.005350083112716675, -0.021181562915444374, -0.0041433824226260185, 0.010589138604700565, 0.03204001486301422, 0.0030503098387271166, -0.047698333859443665, -0.048228196799755096, 0.1003776490688324, 0.005251921247690916, 0.04233597591519356, -0.012983107008039951, -0.05681319162249565, -0.004645038861781359, -0.07932695746421814, -0.02110152505338192, -0.011373990215361118, -0.06982594728469849, 0.022601960226893425, 0.0021434291265904903, 0.06531181931495667, 0.010552654042840004, 0.15001720190048218, 0.12218379974365234, 0.0007761404849588871, -0.09133154153823853, -0.05590185150504112, -0.016914863139390945, 0.009002313017845154, 0.021857094019651413, -0.07522649317979813, 0.0007586009451188147, -0.04421770200133324, 0.05231470987200737, -0.06478192657232285, -0.04980028420686722, -0.0018805857980623841, -0.057683661580085754, -0.011240276508033276, -0.05428963527083397, 0.03263652324676514, -0.00872965157032013, 0.062181584537029266, 0.03941802680492401, -0.007306646090000868, 0.05379762127995491, 0.09023967385292053, 0.0036267354153096676, 0.014919019304215908, -0.036612074822187424, 0.012303401716053486, -0.033191025257110596, -0.00987265445291996, 0.004069194663316011, 0.01860526204109192, 0.0067184092476964, 0.00314515084028244, 0.06233600154519081, 0.00971920881420374, 0.04713613539934158, -0.07895123958587646, -0.023087896406650543, -0.029878055676817894, 0.029531629756093025, -0.04790130630135536, 0.041925687342882156, -0.017239151522517204, -0.074966199696064, -0.026367351412773132, 0.040870413184165955, -0.0024012713693082333, -0.06440582126379013, -0.059602852910757065, 0.0251931082457304, 0.004603537265211344, -0.048850927501916885, 0.050580427050590515, -0.02147357165813446, 0.024045417085289955, -0.05332019180059433, 0.05036648362874985, -0.07503052055835724, 0.0466189943253994, 0.0037388219498097897, -0.05078586935997009, 0.027204133570194244, 0.0033670703414827585, 0.004048219881951809, 0.006643684580922127, -0.009462186135351658, 0.04508020728826523, 0.042179789394140244, 0.02592998370528221, -0.013756266795098782, -0.011991587467491627, 0.05117985978722572, -0.014171537943184376, 0.06451376527547836, 0.004537303000688553, 0.08166021853685379, -0.03459494560956955, 0.014242841862142086, 0.014763562008738518, 0.01546419132500887, 0.05734480917453766, -0.06145906448364258, 0.07301416248083115, 0.08388490229845047, 0.06204652786254883, -0.0865166187286377, -0.02322489209473133, -0.003905877936631441, -0.06453756242990494, 0.0050486186519265175, -0.08237823843955994, 3.5796418457469234e-33, 0.022619780153036118, -0.07060276716947556, 0.04770689085125923, -0.0008878696244210005, 0.015547897666692734, -0.055558741092681885, -0.0703272745013237, 0.04531310126185417, -0.0721438080072403, -0.024106241762638092, 0.014756194315850735, 0.014314047992229462, -0.00925508700311184, -0.056244805455207825, 0.02568136528134346, -0.04565440118312836, -0.0019402282778173685, 0.09820334613323212, 0.10951485484838486, -0.01699013262987137, 0.05561777576804161, -0.04113921895623207, -0.10844936966896057, 0.04259143024682999, 0.02133556269109249, 0.016853652894496918, 0.06572552770376205, -0.14275017380714417, 0.001676587969996035, 0.009774398989975452, -0.018631501123309135, -0.014874855056405067, -0.007540603633970022, 0.027314916253089905, -0.08578565716743469, 0.024741338565945625, -0.0036132601089775562, 0.06269064545631409, -0.10683944821357727, -0.03549967333674431, 0.00008084743603831157, 0.02316267229616642, 0.0013482163194566965, -0.05990930646657944, 0.009768477641046047, -0.033392176032066345, 0.08512463420629501, -0.08602236956357956, 0.018755396828055382, 0.05591897293925285, -0.0123189901933074, -0.056744836270809174, 0.05061432346701622, 0.04090821370482445, 0.06931367516517639, 0.006898846477270126, 0.05434902012348175, -0.020516136661171913, -0.006288768723607063, 0.04317799583077431, -0.05005684494972229, -0.031517427414655685, 0.013800513930618763, 0.0532759353518486, 0.07620486617088318, 0.017690366134047508, -0.019976498559117317, 0.07556465268135071, -0.006313969846814871, 0.04632469266653061, -0.08722734451293945, -0.011862781830132008, 0.027256378903985023, 0.07233527302742004, -0.031142989173531532, -0.06026385724544525, 0.023665931075811386, -0.008671297691762447, -0.20863541960716248, 0.019956981763243675, 0.0357835553586483, -0.03393494337797165, -0.012263361364603043, 0.01943635195493698, -0.011446266435086727, -0.07312584668397903, 0.01854642666876316, 0.03295954689383507, -0.042521849274635315, 0.04244845733046532, 0.025621971115469933, -0.03755197301506996, -0.05029182881116867, -0.002482606330886483, -0.14477424323558807, -3.650909864185371e-33, 0.1010696068406105, 0.004950555041432381, 0.004580875858664513, 0.028467673808336258, 0.04279451444745064, 0.010313360951840878, -0.01110660471022129, 0.073477603495121, -0.03541969135403633, -0.06544315814971924, -0.06972585618495941, -0.07913138717412949, 0.0901755541563034, 0.015475641004741192, -0.08046016842126846, 0.05147261545062065, -0.03878282010555267, -0.03884810581803322, -0.009563288651406765, 0.03277261182665825, -0.08802586793899536, 0.038898613303899765, 0.06210200861096382, 0.01202581636607647, 0.024906113743782043, 0.061016496270895004, -0.031264591962099075, 0.03259236738085747, -0.014265515841543674, 0.026927240192890167, -0.03363453969359398, -0.0761505663394928, -0.08048400282859802, 0.04601508751511574, 0.024353869259357452, -0.09328054636716843, -0.02997717075049877, 0.10110160708427429, -0.004143137950450182, 0.03887860104441643, 0.07739407569169998, 0.026570161804556847, -0.061125047504901886, -0.027100907638669014, -0.04042186215519905, -0.007365962956100702, 0.03017108514904976, -0.07776959240436554, -0.003321333322674036, -0.10104288160800934, -0.0498618520796299, -0.0658959150314331, -0.07142375409603119, 0.06485263258218765, -0.0006691254675388336, 0.02593081444501877, 0.06646760553121567, 0.04577765613794327, 0.008350095711648464, -0.034479327499866486, 0.047669846564531326, -0.06770648807287216, -0.0017817815532907844, 0.050909169018268585, 0.04076510667800903, -0.10307548195123672, -0.014485728926956654, 0.01931236870586872, -0.05855850130319595, 0.054404906928539276, -0.016729390248656273, 0.05879058316349983, 0.045406367629766464, 0.07813560962677002, -0.006113064009696245, 0.012677831575274467, 0.05990850552916527, -0.025961700826883316, 0.053364790976047516, 0.04037013277411461, -0.05873492732644081, 0.08089262247085571, -0.027962664142251015, -0.002950704889371991, -0.009633218869566917, 0.07856523245573044, 0.0459597222507, 0.10255556553602219, -0.00429232744500041, 0.07226678729057312, -0.03199159726500511, -0.027276406064629555, 0.013011733070015907, 0.09165273606777191, -0.056146010756492615, -4.256370900179718e-8, 0.0696444883942604, -0.0582781545817852, -0.01264851726591587, 0.060490306466817856, 0.07701512426137924, -0.03583235666155815, 0.023484190925955772, 0.08197655528783798, -0.010109961964190006, 0.019561301916837692, 0.059808164834976196, 0.0684780478477478, -0.05997113883495331, 0.048364121466875076, -0.005594571586698294, -0.031190499663352966, -0.014669370837509632, 0.06668470799922943, 0.009781633503735065, -0.06471092253923416, -0.08529175817966461, -0.04573514312505722, -0.02395617589354515, -0.014615330845117569, 0.03450838848948479, -0.0014683471526950598, 0.12296771258115768, 0.06370548903942108, 0.04103460535407066, -0.0017670412780717015, -0.06573102623224258, 0.011580130085349083, -0.09722933173179626, -0.022484583780169487, -0.044869180768728256, -0.022493422031402588, -0.1276244968175888, 0.07132973521947861, -0.018977610394358635, 0.0675371065735817, -0.033057209104299545, 0.018906282261013985, -0.042217593640089035, 0.02103493921458721, 0.0240813996642828, 0.09614630043506622, -0.06518252938985825, 0.1019350066781044, -0.004076670855283737, -0.02325451374053955, -0.060461465269327164, -0.0014548818580806255, -0.006665998604148626, 0.07207342237234116, -0.05381246656179428, 0.02230413816869259, 0.022348131984472275, -0.0025345156900584698, -0.019807541742920876, -0.03697173669934273, 0.03304307535290718, 0.005301554687321186, -0.007620410528033972, -0.014773337170481682 ]
0.18291
This page shows how to configure default memory requests and limits for a {{< glossary\_tooltip text="namespace" term\_id="namespace" >}}. A Kubernetes cluster can be divided into namespaces. Once you have a namespace that has a default memory [limit](/docs/concepts/configuration/manage-resources-containers/#requests-and-limits), and you then try to create a Pod with a container that does not specify its own memory limit, then the {{< glossary\_tooltip text="control plane" term\_id="control-plane" >}} assigns the default memory limit to that container. Kubernetes assigns a default memory request under certain conditions that are explained later in this topic. ## {{% heading "prerequisites" %}} {{< include "task-tutorial-prereqs.md" >}} You must have access to create namespaces in your cluster. Each node in your cluster must have at least 2 GiB of memory. ## Create a namespace Create a namespace so that the resources you create in this exercise are isolated from the rest of your cluster. ```shell kubectl create namespace default-mem-example ``` ## Create a LimitRange and a Pod Here's a manifest for an example {{< glossary\_tooltip text="LimitRange" term\_id="limitrange" >}}. The manifest specifies a default memory request and a default memory limit. {{% code\_sample file="admin/resource/memory-defaults.yaml" %}} Create the LimitRange in the default-mem-example namespace: ```shell kubectl apply -f https://k8s.io/examples/admin/resource/memory-defaults.yaml --namespace=default-mem-example ``` Now if you create a Pod in the default-mem-example namespace, and any container within that Pod does not specify its own values for memory request and memory limit, then the {{< glossary\_tooltip text="control plane" term\_id="control-plane" >}} applies default values: a memory request of 256MiB and a memory limit of 512MiB. Here's an example manifest for a Pod that has one container. The container does not specify a memory request and limit. {{% code\_sample file="admin/resource/memory-defaults-pod.yaml" %}} Create the Pod. ```shell kubectl apply -f https://k8s.io/examples/admin/resource/memory-defaults-pod.yaml --namespace=default-mem-example ``` View detailed information about the Pod: ```shell kubectl get pod default-mem-demo --output=yaml --namespace=default-mem-example ``` The output shows that the Pod's container has a memory request of 256 MiB and a memory limit of 512 MiB. These are the default values specified by the LimitRange. ```shell containers: - image: nginx imagePullPolicy: Always name: default-mem-demo-ctr resources: limits: memory: 512Mi requests: memory: 256Mi ``` Delete your Pod: ```shell kubectl delete pod default-mem-demo --namespace=default-mem-example ``` ## What if you specify a container's limit, but not its request? Here's a manifest for a Pod that has one container. The container specifies a memory limit, but not a request: {{% code\_sample file="admin/resource/memory-defaults-pod-2.yaml" %}} Create the Pod: ```shell kubectl apply -f https://k8s.io/examples/admin/resource/memory-defaults-pod-2.yaml --namespace=default-mem-example ``` View detailed information about the Pod: ```shell kubectl get pod default-mem-demo-2 --output=yaml --namespace=default-mem-example ``` The output shows that the container's memory request is set to match its memory limit. Notice that the container was not assigned the default memory request value of 256Mi. ``` resources: limits: memory: 1Gi requests: memory: 1Gi ``` ## What if you specify a container's request, but not its limit? Here's a manifest for a Pod that has one container. The container specifies a memory request, but not a limit: {{% code\_sample file="admin/resource/memory-defaults-pod-3.yaml" %}} Create the Pod: ```shell kubectl apply -f https://k8s.io/examples/admin/resource/memory-defaults-pod-3.yaml --namespace=default-mem-example ``` View the Pod's specification: ```shell kubectl get pod default-mem-demo-3 --output=yaml --namespace=default-mem-example ``` The output shows that the container's memory request is set to the value specified in the container's manifest. The container is limited to use no more than 512MiB of memory, which matches the default memory limit for the namespace. ``` resources: limits: memory: 512Mi requests: memory: 128Mi ``` {{< note >}} A `LimitRange` does \*\*not\*\* check the consistency of the default values it applies. This means that a default value for the \_limit\_ that is set by `LimitRange` may be less than the \_request\_ value specified for the container in
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/manage-resources/memory-default-namespace.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/manage-resources/memory-default-namespace.md
[ 0.0356438122689724, -0.018889470025897026, -0.009141582995653152, 0.03534366562962532, -0.0925290435552597, 0.011187690310180187, 0.042122870683670044, -0.022736893966794014, 0.04951249435544014, 0.06952521950006485, -0.01976695843040943, -0.05153275281190872, -0.02155311405658722, -0.022392619401216507, 0.010134135372936726, 0.027097059413790703, 0.05330318585038185, -0.044441282749176025, -0.052948832511901855, -0.03548640012741089, 0.12423646450042725, 0.04050261154770851, 0.034279998391866684, 0.02659485675394535, -0.07761135697364807, 0.010670089162886143, -0.0763016790151596, -0.013373569585382938, 0.07464078068733215, -0.010552626103162766, 0.0319727398455143, 0.039598140865564346, -0.033335283398628235, 0.08800600469112396, 0.11152365058660507, 0.09920649230480194, -0.07487338036298752, -0.0188067015260458, -0.04132509604096413, -0.00393654266372323, 0.037606582045555115, 0.032461017370224, -0.10068795084953308, 0.024998750537633896, -0.0003817650431301445, 0.06766273826360703, -0.04047044366598129, -0.043783411383628845, 0.019655361771583557, -0.02645457349717617, -0.005179095547646284, -0.06749427318572998, 0.0280148983001709, -0.008587458170950413, 0.05573728308081627, 0.01605236902832985, -0.03869837149977684, 0.02435849979519844, 0.0329677052795887, 0.011593518778681755, -0.041739948093891144, -0.08103661239147186, 0.010722639039158821, -0.0629124641418457, -0.004528419114649296, 0.02933020517230034, 0.042436182498931885, 0.04874895513057709, -0.03347228467464447, 0.040385037660598755, 0.03072764165699482, -0.004715993069112301, -0.01469180453568697, 0.009967469610273838, -0.015784243121743202, 0.06545882672071457, -0.08046597242355347, 0.03701379895210266, -0.016241256147623062, -0.09772486239671707, 0.03038538619875908, 0.09193672984838486, 0.09963259100914001, 0.00202990067191422, -0.050811171531677246, -0.00646253302693367, 0.025629961863160133, -0.029258722439408302, 0.032994769513607025, -0.04642888531088829, 0.02014203742146492, -0.0813872218132019, 0.051615212112665176, -0.08238206058740616, 0.05724353715777397, 0.015290389768779278, -0.0034477529115974903, -0.07390204817056656, -0.016468966379761696, -0.04826532304286957, 0.0684792548418045, -0.009021098725497723, 0.062265459448099136, 0.024320049211382866, -0.0226863082498312, -0.04395676031708717, -0.05307503044605255, 0.026324596256017685, -0.006757727358490229, 0.07654879987239838, 0.013386004604399204, 0.10716883093118668, -0.0008571685175411403, 0.0339336059987545, 0.01983107067644596, -0.06131654977798462, 0.00826408714056015, -0.06189747527241707, 0.048350416123867035, 0.07420975714921951, -0.0011206382187083364, -0.06906845420598984, -0.009428612887859344, 0.0005456391954794526, -0.08726968616247177, -0.001231196103617549, -0.07297039031982422, 2.819773461029603e-33, 0.0217577014118433, -0.08190972357988358, -0.030647097155451775, 0.009530611336231232, -0.03180984407663345, -0.07588506489992142, -0.049148377031087875, 0.0385039784014225, -0.09639456868171692, -0.01033637672662735, 0.006861910689622164, 0.03818221762776375, -0.013696706853806973, -0.005177644081413746, 0.04205160588026047, -0.002101442776620388, -0.030866242945194244, 0.10121098160743713, 0.09656449407339096, -0.026773884892463684, -0.008707311004400253, -0.023216508328914642, -0.014184300787746906, -0.05147567018866539, 0.04755115881562233, -0.01863628625869751, 0.01926090568304062, -0.09417619556188583, 0.009075470268726349, 0.0006244855467230082, -0.06343042850494385, -0.005473150406032801, 0.02414800599217415, 0.0062156012281775475, -0.06987244635820389, 0.002064512576907873, -0.024647874757647514, -0.004689079709351063, -0.040359802544116974, -0.08595495671033859, 0.032530829310417175, 0.014869412407279015, 0.04084853455424309, -0.04558730870485306, -0.010673951357603073, -0.016624359413981438, 0.0771966502070427, -0.09443475306034088, 0.04014609009027481, 0.04358464106917381, 0.014285169541835785, -0.0576050728559494, -0.04189985245466232, 0.0642036497592926, 0.040609799325466156, 0.02544488199055195, 0.044601406902074814, -0.058070119470357895, 0.027677683159708977, 0.03289429843425751, -0.08671747893095016, -0.021719379350543022, -0.027983669191598892, 0.039781276136636734, 0.09948485344648361, 0.00852205976843834, 0.004568841308355331, 0.12899747490882874, -0.013291667215526104, -0.01092466339468956, -0.04413820430636406, -0.06006326153874397, 0.021082622930407524, 0.06540481001138687, -0.005460595712065697, -0.0439365953207016, 0.040373336523771286, -0.00795334205031395, -0.1592399626970291, 0.015064206905663013, 0.04374835267663002, -0.0782632902264595, -0.011192604899406433, 0.050965528935194016, -0.017592454329133034, -0.07365542650222778, 0.05463922396302223, -0.016445189714431763, -0.061975348740816116, 0.03547775372862816, -0.006237989291548729, -0.05529482662677765, -0.06500331312417984, 0.008469946682453156, -0.14993654191493988, -4.333301232569002e-33, 0.11497820168733597, -0.028841940686106682, -0.04033703729510307, 0.05713609978556633, 0.03745491802692413, -0.0013726043980568647, 0.007081837393343449, 0.058657996356487274, -0.0578022226691246, -0.09728080034255981, -0.023286212235689163, 0.0011980450944975019, 0.08694624155759811, 0.08951850980520248, -0.07944616675376892, -0.014325305819511414, -0.05094224587082863, 0.007448668126016855, 0.026097428053617477, 0.01708710752427578, -0.028751913458108902, -0.033817797899246216, 0.06621266901493073, -0.009824513457715511, -0.019065892323851585, 0.022358842194080353, 0.0037638230714946985, 0.027361523360013962, -0.004105274099856615, 0.018614964559674263, -0.017255954444408417, -0.025792250409722328, -0.026442019268870354, -0.01723753660917282, 0.036786068230867386, -0.10987486690282822, 0.034680113196372986, -0.013086941093206406, -0.04056241735816002, 0.028503550216555595, 0.08715564757585526, 0.01390799693763256, -0.0727306678891182, -0.10007826238870621, -0.0012762564001604915, -0.03416353464126587, -0.022374575957655907, -0.03332330286502838, 0.010330514051020145, -0.08340324461460114, 0.0007598541560582817, -0.04339473322033882, -0.04952428489923477, 0.03487111255526543, -0.03937450051307678, -0.009260532446205616, 0.06575775146484375, -0.027026545256376266, 0.020038016140460968, -0.04214663803577423, 0.0498008094727993, -0.0887671709060669, -0.0021426950115710497, -0.047569260001182556, 0.027994774281978607, -0.05280054733157158, -0.015654459595680237, 0.0015285883564502, -0.044343698769807816, 0.0545768216252327, -0.057317912578582764, 0.015452533029019833, 0.07604320347309113, 0.018796781077980995, -0.0038840067572891712, 0.004608300980180502, 0.03531220927834511, -0.06735055893659592, 0.09628460556268692, -0.04153062775731087, -0.008376803249120712, 0.1056433916091919, -0.014238184317946434, 0.047285690903663635, 0.028647875413298607, 0.06446456909179688, 0.0077714500948786736, 0.11658649891614914, -0.009018943645060062, 0.04416436702013016, -0.005013141315430403, -0.028889605775475502, 0.02348051778972149, 0.15490053594112396, -0.05767928808927536, -4.9313644723270045e-8, 0.006087230518460274, 0.10611102730035782, 0.017566800117492676, 0.04989445209503174, 0.03255343437194824, -0.07017158716917038, 0.03856305778026581, 0.08212015777826309, 0.005191522184759378, 0.0053958529606461525, 0.0386260524392128, 0.05748609080910683, -0.08071266114711761, 0.04361067712306976, -0.008322685025632381, 0.0340350866317749, -0.05628899857401848, -0.03135029226541519, 0.03331000730395317, -0.10238518565893173, -0.03578513115644455, -0.04829203709959984, 0.03235694393515587, 0.020319489762187004, 0.010158322751522064, -0.009687639772891998, 0.11541930586099625, 0.06988546997308731, -0.011997424066066742, -0.007037656381726265, -0.043837565928697586, -0.011989421211183071, -0.1051977276802063, 0.06344036012887955, 0.011312168091535568, -0.03737911209464073, -0.14597222208976746, 0.03147982060909271, 0.08309781551361084, 0.04778303951025009, -0.03825332224369049, -0.016170591115951538, -0.049687229096889496, 0.0043145171366631985, 0.03219148889183998, 0.10426147282123566, -0.049500368535518646, 0.063381627202034, 0.013641167432069778, -0.010829465463757515, -0.06310601532459259, 0.024200856685638428, -0.01374080777168274, 0.106519415974617, -0.010513567365705967, -0.027295786887407303, 0.006175001617521048, 0.01661273092031479, -0.0003190492279827595, -0.015075849369168282, 0.024419505149126053, 0.030118806287646294, -0.0263625867664814, 0.024107692763209343 ]
0.099414
resources: limits: memory: 512Mi requests: memory: 128Mi ``` {{< note >}} A `LimitRange` does \*\*not\*\* check the consistency of the default values it applies. This means that a default value for the \_limit\_ that is set by `LimitRange` may be less than the \_request\_ value specified for the container in the spec that a client submits to the API server. If that happens, the final Pod will not be scheduleable. See [Constraints on resource limits and requests](/docs/concepts/policy/limit-range/#constraints-on-resource-limits-and-requests) for more details. {{< /note >}} ## Motivation for default memory limits and requests If your namespace has a memory {{< glossary\_tooltip text="resource quota" term\_id="resource-quota" >}} configured, it is helpful to have a default value in place for memory limit. Here are three of the restrictions that a resource quota imposes on a namespace: \* For every Pod that runs in the namespace, the Pod and each of its containers must have a memory limit. (If you specify a memory limit for every container in a Pod, Kubernetes can infer the Pod-level memory limit by adding up the limits for its containers). \* Memory limits apply a resource reservation on the node where the Pod in question is scheduled. The total amount of memory reserved for all Pods in the namespace must not exceed a specified limit. \* The total amount of memory actually used by all Pods in the namespace must also not exceed a specified limit. When you add a LimitRange: If any Pod in that namespace that includes a container does not specify its own memory limit, the control plane applies the default memory limit to that container, and the Pod can be allowed to run in a namespace that is restricted by a memory ResourceQuota. ## Clean up Delete your namespace: ```shell kubectl delete namespace default-mem-example ``` ## {{% heading "whatsnext" %}} ### For cluster administrators \* [Configure Default CPU Requests and Limits for a Namespace](/docs/tasks/administer-cluster/manage-resources/cpu-default-namespace/) \* [Configure Minimum and Maximum Memory Constraints for a Namespace](/docs/tasks/administer-cluster/manage-resources/memory-constraint-namespace/) \* [Configure Minimum and Maximum CPU Constraints for a Namespace](/docs/tasks/administer-cluster/manage-resources/cpu-constraint-namespace/) \* [Configure Memory and CPU Quotas for a Namespace](/docs/tasks/administer-cluster/manage-resources/quota-memory-cpu-namespace/) \* [Configure a Pod Quota for a Namespace](/docs/tasks/administer-cluster/manage-resources/quota-pod-namespace/) \* [Configure Quotas for API Objects](/docs/tasks/administer-cluster/quota-api-object/) ### For app developers \* [Assign Memory Resources to Containers and Pods](/docs/tasks/configure-pod-container/assign-memory-resource/) \* [Assign CPU Resources to Containers and Pods](/docs/tasks/configure-pod-container/assign-cpu-resource/) \* [Assign Pod-level CPU and memory resources](/docs/tasks/configure-pod-container/assign-pod-level-resources/) \* [Configure Quality of Service for Pods](/docs/tasks/configure-pod-container/quality-service-pod/)
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/manage-resources/memory-default-namespace.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/manage-resources/memory-default-namespace.md
[ -0.07427164167165756, 0.013196585699915886, 0.015275384299457073, 0.0373096764087677, -0.0553332082927227, -0.041214972734451294, 0.03549452871084213, -0.03328393027186394, 0.06633781641721725, 0.022524138912558556, -0.03747973591089249, -0.0258087869733572, 0.003760690800845623, -0.009603947401046753, 0.033316951245069504, 0.014658425003290176, 0.08339322358369827, -0.07236310839653015, -0.11752472817897797, -0.0071718525141477585, 0.15860645473003387, 0.05798410251736641, 0.018890533596277237, 0.04465636610984802, -0.03509276360273361, -0.03118770383298397, -0.08548533916473389, -0.06369926035404205, 0.0726085901260376, 0.026955075562000275, 0.0017106920713558793, -0.0004094903124496341, -0.06521368771791458, 0.06970897316932678, 0.09948308765888214, 0.09122497588396072, -0.0666382908821106, -0.05091782659292221, -0.024716569110751152, 0.011450841091573238, 0.048752445727586746, 0.03550146147608757, -0.10685496032238007, 0.05388213321566582, -0.04983951151371002, 0.04590999335050583, -0.00284341792576015, -0.0478060282766819, -0.044858500361442566, 0.00699670659378171, -0.028908999636769295, -0.03569648042321205, 0.010012852028012276, -0.02299211174249649, 0.05767396464943886, -0.02630932629108429, -0.02122517116367817, 0.05184328183531761, 0.034239981323480606, 0.04640699550509453, -0.04272526875138283, -0.09506943821907043, -0.019414909183979034, -0.028409216552972794, 0.029721921309828758, -0.03370911255478859, 0.01743912324309349, 0.010580698028206825, -0.028466330841183662, 0.005752418655902147, -0.012751597911119461, 0.0162963829934597, -0.04734756425023079, 0.028972772881388664, 0.004804715048521757, 0.027734290808439255, -0.03892231732606888, 0.02149401418864727, 0.00964919663965702, -0.11229058355093002, -0.016545895487070084, 0.004944788292050362, 0.08498606830835342, 0.009395306929945946, -0.013435632921755314, -0.0016984939575195312, 0.029452601447701454, 0.028717905282974243, 0.05275772139430046, -0.010546842589974403, 0.06643445044755936, -0.03458140417933464, 0.027525007724761963, 0.028811868280172348, 0.06601288169622421, 0.033811602741479874, 0.004987118765711784, -0.07210135459899902, -0.034557878971099854, -0.0022922088392078876, 0.05046580731868744, 0.00470349844545126, 0.04151548817753792, 0.057733744382858276, 0.007157248444855213, -0.06112275272607803, -0.060678526759147644, 0.014056270942091942, -0.046776268631219864, 0.055449582636356354, 0.04143662378191948, 0.07160961627960205, 0.028515152633190155, 0.018377531319856644, -0.03039371781051159, -0.0016193600604310632, -0.029871156439185143, -0.06937704980373383, 0.01411926094442606, 0.08986125886440277, 0.015045641921460629, -0.030890636146068573, -0.016273176297545433, -0.027340861037373543, -0.08041354268789291, 0.005276056472212076, 0.007324539590626955, 2.2623365911254044e-33, -0.008615982718765736, -0.07466384023427963, -0.03395100682973862, -0.04398232698440552, -0.014671417884528637, -0.04887792840600014, -0.03522130101919174, 0.08695333451032639, -0.07520952075719833, -0.048012055456638336, 0.017944462597370148, 0.05610131099820137, -0.011761477217078209, -0.0018240835051983595, 0.041425906121730804, -0.020425107330083847, 0.05556536465883255, 0.1346060335636139, 0.10143676400184631, 0.0020027360878884792, 0.0038109493907541037, -0.07901260256767273, -0.011743242852389812, -0.013937900774180889, 0.004359426908195019, 0.00526652904227376, -0.016491426154971123, -0.07392950356006622, 0.023096540942788124, 0.012977599166333675, -0.03665001317858696, 0.018013669177889824, 0.014635964296758175, 0.007558006327599287, 0.00674697058275342, 0.001093057100661099, -0.05027730017900467, -0.00819601770490408, -0.05554068833589554, -0.04497738555073738, 0.02407466061413288, 0.057665374130010605, -0.0002992669469676912, -0.025499699637293816, -0.045592453330755234, -0.06167903542518616, 0.05091051384806633, -0.08165125548839569, -0.05317900702357292, 0.03946985304355621, 0.04933745041489601, 0.026040304452180862, -0.027833353728055954, 0.042811691761016846, 0.052737440913915634, -0.04971253499388695, 0.02198442444205284, -0.03523632884025574, 0.01179787702858448, 0.036363385617733, -0.05086145177483559, -0.04279075562953949, 0.027432966977357864, 0.032052043825387955, 0.08715829998254776, 0.06471595168113708, -0.03454139083623886, 0.09628594666719437, 0.02459736540913582, 0.02335519529879093, 0.000424614961957559, -0.010127791203558445, 0.04464143142104149, 0.058521732687950134, -0.04662732407450676, -0.049192849546670914, 0.08012817800045013, -0.01072370633482933, -0.14801844954490662, -0.036059122532606125, 0.03636474162340164, -0.02459041215479374, -0.011455923318862915, -0.010129122994840145, -0.08046411722898483, -0.06461813300848007, 0.008118311874568462, -0.0044678435660898685, -0.06209192052483559, 0.03762403875589371, 0.008244019001722336, -0.05983066186308861, -0.089899443089962, -0.027184559032320976, -0.11369876563549042, -3.7865872588672025e-33, 0.09442560374736786, -0.03979043290019035, -0.042821452021598816, 0.053508076816797256, 0.03336356207728386, -0.03778480365872383, 0.025113200768828392, 0.08524201065301895, 0.00723558384925127, -0.02926461584866047, -0.05303778126835823, 0.01441988442093134, 0.09236361086368561, 0.07113122195005417, -0.0905526652932167, -0.005550311412662268, -0.051658883690834045, -0.04309847205877304, 0.019568854942917824, 0.0039844149723649025, -0.029883699491620064, -0.02112153172492981, 0.0563972108066082, 0.02185768634080887, 0.03780513256788254, 0.027580324560403824, -0.07284718006849289, -0.01690169982612133, 0.010687950998544693, -0.03418860211968422, -0.00016294640954583883, -0.058680616319179535, -0.09512167423963547, -0.042094308882951736, 0.03418244048953056, -0.0824834555387497, 0.004379999823868275, 0.1121443510055542, -0.00046384293818846345, 0.08615491539239883, 0.14155562222003937, -0.015940722078084946, -0.017834167927503586, -0.054156675934791565, -0.00023353530559688807, -0.03870962932705879, -0.05904310196638107, -0.05722440779209137, 0.0005113178631290793, -0.09475918114185333, 0.04964246228337288, -0.03133416175842285, 0.00884310994297266, 0.06171649694442749, 0.007584317121654749, -0.017441000789403915, 0.040053050965070724, -0.049513984471559525, -0.01355862058699131, -0.06167789176106453, 0.04917360469698906, -0.017327038571238518, -0.057068098336458206, -0.0057958983816206455, 0.006823806092143059, -0.045592714101076126, -0.05341862514615059, -0.041338879615068436, 0.035517554730176926, 0.004145126789808273, 0.017030198127031326, -0.038824412971735, 0.031854916363954544, 0.033140361309051514, -0.05171344429254532, 0.015787320211529732, 0.06827189773321152, -0.12435585260391235, 0.06680040806531906, 0.032214097678661346, -0.09452657401561737, 0.1379866600036621, 0.04807626083493233, 0.07822664827108383, -0.025311129167675972, 0.03150833025574684, -0.014377852901816368, 0.09796518832445145, -0.008781216107308865, 0.06153072789311409, -0.018642734736204147, -0.06887608766555786, -0.03940294682979584, 0.10715362429618835, -0.03340454772114754, -4.985492907394473e-8, 0.0047670272178947926, 0.10864599794149399, 0.03715207427740097, 0.06324885785579681, 0.04572169855237007, -0.06466400623321533, 0.06804253906011581, 0.03184748813509941, 0.07663420587778091, 0.09172556549310684, 0.06096060946583748, 0.02280709333717823, -0.035052720457315445, 0.008122377097606659, -0.03237396851181984, 0.017339715734124184, -0.04464762285351753, -0.0741579681634903, 0.008501875214278698, -0.08594987541437149, -0.05406098812818527, -0.05030282959342003, -0.005896979011595249, -0.03173975273966789, 0.01228953804820776, -0.04423201084136963, 0.0796360895037651, 0.13873939216136932, -0.05463273450732231, -0.010630274191498756, -0.06315011531114578, -0.01147907692939043, -0.035824380815029144, -0.009265687316656113, -0.01724603772163391, -0.0381254106760025, -0.1522548496723175, 0.00785315316170454, 0.03179425373673439, 0.046749457716941833, 0.003219365142285824, -0.05225053429603577, 0.026423204690217972, 0.013799452222883701, 0.04270482435822487, 0.06045267730951309, -0.07153390347957611, 0.08179623633623123, 0.015364274382591248, 0.005905224476009607, -0.05216488614678383, 0.03313744440674782, -0.01657080464065075, 0.11465448141098022, -0.0169427078217268, -0.022671088576316833, 0.011164209805428982, -0.016382556408643723, -0.02083689160645008, -0.02300606109201908, 0.04972756654024124, 0.032819002866744995, -0.02706005424261093, 0.020748985931277275 ]
0.117589
This page shows how to use Romana for NetworkPolicy. ## {{% heading "prerequisites" %}} Complete steps 1, 2, and 3 of the [kubeadm getting started guide](/docs/reference/setup-tools/kubeadm/). ## Installing Romana with kubeadm Follow the [containerized installation guide](https://github.com/romana/romana/tree/master/containerize) for kubeadm. ## Applying network policies To apply network policies use one of the following: \* [Romana network policies](https://github.com/romana/romana/wiki/Romana-policies). \* [Example of Romana network policy](https://github.com/romana/core/blob/master/doc/policy.md). \* The NetworkPolicy API. ## {{% heading "whatsnext" %}} Once you have installed Romana, you can follow the [Declare Network Policy](/docs/tasks/administer-cluster/declare-network-policy/) to try out Kubernetes NetworkPolicy.
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/network-policy-provider/romana-network-policy.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/network-policy-provider/romana-network-policy.md
[ -0.02400912158191204, 0.008127417415380478, -0.01744910515844822, -0.10387630760669708, -0.11932329833507538, 0.00765975471585989, -0.03826107457280159, 0.03983635455369949, -0.050015274435281754, 0.0291538555175066, -0.00968173798173666, -0.07629624009132385, -0.02145235240459442, -0.05992366373538971, 0.008356709964573383, 0.016449756920337677, 0.052959736436605453, 0.02796810120344162, 0.05145847424864769, -0.04497846961021423, 0.04241226986050606, -0.06773217022418976, -0.0020589646883308887, -0.07266085594892502, -0.06241227313876152, 0.042220424860715866, 0.027864858508110046, 0.015329782851040363, 0.0017044267151504755, 0.033451251685619354, 0.0499376580119133, 0.053063519299030304, -0.030769014731049538, -0.031624168157577515, 0.0316581130027771, 0.052816279232501984, -0.03641197457909584, -0.09829272329807281, -0.031070493161678314, 0.0053005218505859375, 0.10610421746969223, 0.01305170077830553, -0.05500644072890282, 0.03441629186272621, -0.019303979352116585, -0.048767998814582825, 0.0014618928544223309, 0.01990332081913948, -0.009131662547588348, -0.019638093188405037, 0.028071170672774315, -0.07745417952537537, 0.054422177374362946, 0.030390312895178795, 0.04184660315513611, 0.026720134541392326, -0.02906094864010811, 0.020980242639780045, 0.05764469504356384, 0.004733201116323471, 0.017278233543038368, 0.011725029908120632, -0.010676499456167221, 0.04959133639931679, -0.057324912399053574, 0.03863837942481041, -0.006395434960722923, 0.05270746350288391, -0.003788387170061469, 0.013585733249783516, 0.010002704337239265, -0.010297396220266819, -0.04641002044081688, 0.02349023148417473, -0.01799686625599861, 0.0777481198310852, -0.007105438970029354, 0.03823643550276756, -0.02563503570854664, -0.12213554978370667, 0.015426646918058395, 0.07398874312639236, 0.04281304031610489, -0.03760230913758278, -0.06120719760656357, -0.010204280726611614, 0.00008870271994965151, -0.06304579973220825, 0.10794039815664291, 0.017870638519525528, 0.05692479759454727, -0.012940737418830395, -0.0038597690872848034, -0.11864173412322998, 0.08929183334112167, 0.01688292995095253, -0.061291273683309555, -0.004747930448502302, -0.013076020404696465, 0.012196348048746586, -0.060649573802948, -0.036004453897476196, -0.020383398979902267, 0.04676772281527519, -0.00825163722038269, -0.007298690266907215, 0.016336068511009216, 0.025478219613432884, -0.016876090317964554, 0.09718898683786392, -0.08842851221561432, 0.006149352993816137, -0.03669184818863869, -0.07602252811193466, -0.0019893606659024954, 0.011821783147752285, 0.07591014355421066, -0.037227366119623184, 0.052141059190034866, -0.002587743801996112, -0.030222535133361816, -0.15121066570281982, 0.004594164434820414, -0.01887035183608532, -0.00011964290752075613, 0.033032968640327454, 0.011368746869266033, 2.2724181082226364e-33, 0.02807670459151268, -0.0731358528137207, -0.019314661622047424, -0.019288072362542152, 0.10810015350580215, -0.07294850796461105, 0.04700452834367752, -0.12022071331739426, -0.06352756172418594, -0.059736497700214386, -0.15975794196128845, 0.10672519356012344, -0.02861221507191658, -0.029335007071495056, 0.02469278872013092, 0.0019483501091599464, -0.005267186090350151, 0.01880413107573986, 0.17527662217617035, 0.02211798168718815, 0.05855902284383774, -0.01790660433471203, 0.12410692870616913, -0.020044762641191483, 0.08288209140300751, 0.0068549951538443565, 0.059007227420806885, -0.052063021808862686, 0.09165304154157639, 0.008401457220315933, -0.008595636114478111, -0.010280759073793888, 0.019015958532691002, -0.002104766434058547, -0.017778342589735985, 0.04209745302796364, -0.050222575664520264, 0.0001699497806839645, -0.09979390352964401, 0.024275032803416252, -0.00926223210990429, -0.03248784691095352, 0.04859476909041405, -0.011401779018342495, -0.03331984579563141, -0.05762190744280815, -0.01617284119129181, -0.033433981239795685, 0.08236159384250641, -0.01564367488026619, 0.037451960146427155, -0.024106943979859352, -0.01772291772067547, -0.058967020362615585, 0.02941347099840641, -0.012702161446213722, 0.02300667017698288, 0.02809678018093109, -0.039142709225416183, -0.015511021949350834, -0.030534207820892334, 0.04512663185596466, 0.0024331966415047646, 0.015020671300590038, 0.044322602450847626, 0.04492558166384697, -0.1333451271057129, 0.029130196198821068, 0.0035826517269015312, -0.07302015274763107, -0.05013560131192207, 0.029706815257668495, -0.030019115656614304, 0.09176728874444962, 0.02420474961400032, 0.06363068521022797, -0.07180570811033249, -0.04944214969873428, -0.13176092505455017, 0.021335305646061897, -0.056132398545742035, -0.003084230702370405, -0.020579813048243523, 0.08581113070249557, 0.052775777876377106, -0.08135168254375458, 0.026125164702534676, 0.02179478108882904, -0.008375761099159718, 0.003982590977102518, 0.0618947334587574, -0.0213987585157156, 0.010002526454627514, 0.12099558860063553, -0.030644886195659637, -4.349624073656123e-33, 0.010575635358691216, -0.033444907516241074, 0.04305936396121979, 0.04101097583770752, -0.032639797776937485, 0.033291470259428024, -0.013083475641906261, 0.06342674791812897, -0.0055638388730585575, -0.01760719157755375, -0.0073699867352843285, -0.010295694693922997, 0.051296863704919815, -0.03099885955452919, -0.0415373370051384, -0.010501241311430931, -0.00015754456399008632, 0.021661769598722458, -0.05734225735068321, 0.026457805186510086, 0.004936595447361469, 0.047069065272808075, -0.04528345167636871, 0.009851434268057346, -0.014194889925420284, -0.025298435240983963, 0.04789599031209946, 0.05090605467557907, -0.09887383133172989, -0.03713862597942352, -0.02590443566441536, -0.041404057294130325, -0.07765302062034607, 0.010230312123894691, 0.022863252088427544, 0.10353768616914749, 0.05803033709526062, 0.0832245945930481, -0.021109968423843384, 0.01575210504233837, 0.10113610327243805, -0.05750437453389168, -0.10847008228302002, 0.06131623312830925, -0.02550395205616951, -0.009345910511910915, 0.00238310475833714, -0.009730893187224865, -0.0918460339307785, -0.036281388252973557, -0.008353675715625286, -0.035876546055078506, 0.03678937256336212, 0.032314710319042206, 0.03541553393006325, 0.06894449889659882, 0.09431283921003342, 0.04302452132105827, 0.0004972494789399207, 0.05032360553741455, 0.09605788439512253, -0.14546391367912292, 0.0045916070230305195, 0.05203091725707054, -0.0000020276593204471283, -0.058112531900405884, -0.021696865558624268, -0.013775274157524109, -0.02327769249677658, 0.028648845851421356, 0.008009172976016998, -0.0055388580076396465, -0.07245098054409027, 0.09168512374162674, 0.045237913727760315, -0.04993509501218796, 0.04237604886293411, 0.008720018900930882, 0.007928677834570408, 0.06182405725121498, -0.035603005439043045, 0.06674779206514359, -0.044704895466566086, -0.02769658714532852, 0.090446338057518, 0.03443633392453194, 0.12372065335512161, 0.02612287364900112, 0.03402560576796532, 0.016871092841029167, -0.0048226709477603436, -0.0439952053129673, -0.03351417928934097, 0.049132540822029114, -0.05962226912379265, -4.713677981271758e-8, -0.0256149023771286, -0.03427305445075035, -0.049200717359781265, 0.012976822443306446, 0.013716868124902248, 0.041806723922491074, -0.022467873990535736, -0.0794532373547554, -0.0030746774282306433, -0.07011987268924713, 0.016479182988405228, 0.12124510109424591, -0.07768449932336807, -0.013066988438367844, -0.023408658802509308, -0.014392529614269733, 0.037586189806461334, 0.034499071538448334, -0.007924897596240044, -0.036168016493320465, -0.05712296813726425, -0.04554324224591255, -0.03616169095039368, 0.021173497661948204, 0.07514414936304092, -0.013190669007599354, 0.06393150985240936, 0.031983599066734314, 0.03439544513821602, 0.055088676512241364, -0.031368374824523926, -0.021208304911851883, -0.07956834137439728, 0.019211946055293083, -0.038328852504491806, 0.03824286907911301, -0.0569651797413826, 0.0801258459687233, 0.09914345294237137, -0.02522747404873371, -0.01254409458488226, 0.009640269912779331, -0.03749241307377815, 0.0063817198388278484, 0.028178777545690536, 0.12046847492456436, -0.0534638836979866, 0.058694615960121155, 0.014554782770574093, -0.060065798461437225, -0.024036386981606483, -0.03931416943669319, 0.01619637757539749, 0.04647229611873627, -0.036945343017578125, -0.059815939515829086, -0.025172576308250427, -0.014312832616269588, 0.02060798369348049, -0.033472735434770584, -0.0866604745388031, 0.004397542681545019, -0.014356299303472042, -0.0015659708296880126 ]
0.163493
This page shows a couple of quick ways to create a Calico cluster on Kubernetes. ## {{% heading "prerequisites" %}} Decide whether you want to deploy a [cloud](#creating-a-calico-cluster-with-google-kubernetes-engine-gke) or [local](#creating-a-local-calico-cluster-with-kubeadm) cluster. ## Creating a Calico cluster with Google Kubernetes Engine (GKE) \*\*Prerequisite\*\*: [gcloud](https://cloud.google.com/sdk/docs/quickstarts). 1. To launch a GKE cluster with Calico, include the `--enable-network-policy` flag. \*\*Syntax\*\* ```shell gcloud container clusters create [CLUSTER\_NAME] --enable-network-policy ``` \*\*Example\*\* ```shell gcloud container clusters create my-calico-cluster --enable-network-policy ``` 1. To verify the deployment, use the following command. ```shell kubectl get pods --namespace=kube-system ``` The Calico pods begin with `calico`. Check to make sure each one has a status of `Running`. ## Creating a local Calico cluster with kubeadm To get a local single-host Calico cluster in fifteen minutes using kubeadm, refer to the [Calico Quickstart](https://projectcalico.docs.tigera.io/getting-started/kubernetes/). ## {{% heading "whatsnext" %}} Once your cluster is running, you can follow the [Declare Network Policy](/docs/tasks/administer-cluster/declare-network-policy/) to try out Kubernetes NetworkPolicy.
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/network-policy-provider/calico-network-policy.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/network-policy-provider/calico-network-policy.md
[ 0.0345897451043129, -0.05209916830062866, 0.019280143082141876, -0.033746637403964996, -0.028977399691939354, 0.01969739980995655, -0.026023022830486298, -0.04119662940502167, 0.036971550434827805, 0.03584269806742668, 0.023649757727980614, -0.13301301002502441, 0.021560095250606537, -0.014570479281246662, 0.06400974839925766, -0.05672404542565346, 0.0745798796415329, -0.07429955899715424, -0.005670558195561171, -0.005125278141349554, 0.004425283521413803, -0.04911956936120987, 0.0037505789659917355, 0.004424392245709896, -0.08371757715940475, -0.0673321932554245, -0.023504620417952538, 0.009244224987924099, -0.021592529490590096, 0.057720333337783813, -0.056576672941446304, 0.021858634427189827, 0.0566655732691288, 0.08336033672094345, 0.0374651700258255, 0.09294204413890839, -0.024828875437378883, -0.026460757479071617, -0.07824715971946716, 0.001692684250883758, 0.060552679002285004, -0.1141209602355957, -0.10697236657142639, 0.0046406215988099575, -0.013038629665970802, -0.0037569876294583082, -0.007010693661868572, -0.02628297358751297, -0.024501845240592957, -0.04657794162631035, -0.009512401185929775, -0.07273756712675095, 0.009720413014292717, 0.002396482741460204, -0.026653749868273735, 0.06817436963319778, -0.04629981890320778, 0.08474113047122955, 0.09430401027202606, 0.019488245248794556, 0.04671470820903778, -0.04365399852395058, -0.008690102957189083, -0.05249509587883949, -0.03347829729318619, 0.05435666814446449, 0.03961627557873726, -0.01673927716910839, 0.05296049267053604, 0.025466589257121086, 0.08229153603315353, 0.07058504968881607, -0.01246587559580803, -0.04017823934555054, -0.0894191786646843, 0.009004021994769573, -0.000889049784746021, 0.08420713245868683, 0.023601418361067772, 0.005276239477097988, 0.014479298144578934, 0.02981039509177208, 0.050255633890628815, 0.039712853729724884, -0.09020421653985977, -0.026994064450263977, 0.04977872967720032, 0.024336501955986023, 0.05150597542524338, -0.07493913173675537, 0.05841180682182312, 0.034743692725896835, 0.01642446033656597, -0.06123683601617813, 0.06549432128667831, 0.003732644487172365, -0.025003235787153244, -0.0760171040892601, 0.031498126685619354, -0.05157240480184555, -0.01976822316646576, -0.008931296877563, 0.027995716780424118, -0.010864995419979095, 0.038917239755392075, 0.079131118953228, -0.07831770181655884, 0.011869590729475021, 0.018665103241801262, 0.031421273946762085, 0.0063917506486177444, 0.05111696943640709, 0.0043065305799245834, -0.006379617378115654, -0.08021002262830734, 0.08743852376937866, -0.013298556208610535, -0.012030952610075474, 0.014077100902795792, 0.06457588076591492, 0.005792807321995497, -0.10877847671508789, -0.03697114810347557, -0.062393464148044586, -0.03932226821780205, 0.02463977411389351, -0.10910632461309433, 1.5260253887050513e-33, 0.07408870756626129, 0.01683923788368702, 0.03297804668545723, -0.06063734367489815, 0.08469056338071823, -0.0861097052693367, -0.03727063536643982, -0.04100342094898224, -0.04526469483971596, -0.03811926394701004, 0.007405468262732029, 0.0914679691195488, -0.03437085077166557, 0.01360999420285225, 0.06580948829650879, 0.03551027923822403, -0.050933532416820526, -0.010138092562556267, 0.11179348081350327, -0.0030195889994502068, -0.020822778344154358, -0.04433204606175423, -0.004786895588040352, -0.07458429783582687, -0.07836531102657318, 0.057405661791563034, 0.018087107688188553, -0.10246812552213669, -0.0056697288528084755, 0.0328042209148407, -0.041562244296073914, -0.06156287342309952, 0.01792738027870655, 0.06284845620393753, -0.08102409541606903, -0.009176273830235004, -0.06542011350393295, -0.028299666941165924, -0.028693605214357376, 0.08698569983243942, 0.010092388838529587, 0.03354068100452423, 0.04398362711071968, -0.061739686876535416, 0.033173441886901855, 0.024920858442783356, 0.042011991143226624, -0.06714776903390884, 0.18124163150787354, 0.08408776670694351, -0.014471656642854214, -0.08822903037071228, -0.005894094239920378, -0.053518641740083694, 0.011649402789771557, 0.0690954178571701, 0.0012025536270812154, -0.04280458018183708, -0.023145586252212524, -0.05414138361811638, -0.0195498988032341, -0.041161127388477325, 0.03793485090136528, 0.03543568029999733, -0.050218615680933, 0.004125320818275213, -0.09139218181371689, 0.0976574644446373, 0.023516202345490456, 0.00016605632845312357, -0.05785781517624855, -0.0006719048833474517, 0.02678157389163971, 0.012343458831310272, 0.044582244008779526, -0.007362899836152792, 0.02361193485558033, -0.028901580721139908, -0.07572837918996811, 0.04561542347073555, 0.0295027494430542, -0.03525589779019356, -0.05910078063607216, 0.04160551354289055, -0.02553052268922329, 0.01778186671435833, 0.037283796817064285, 0.05549027770757675, -0.0586671307682991, 0.033934712409973145, -0.05459963157773018, -0.044722139835357666, 0.03816772624850273, 0.05334240943193436, -0.08080978691577911, -3.521514752124715e-33, 0.09866514801979065, 0.01550422701984644, 0.007826365530490875, 0.0386161245405674, 0.04062307998538017, 0.002823128132149577, 0.06828123331069946, -0.03437938913702965, -0.05362856760621071, -0.009247307665646076, -0.016146529465913773, -0.01738760620355606, 0.06109591946005821, 0.006392527837306261, -0.1062118336558342, 0.08160907030105591, -0.0020206591580063105, -0.07634668052196503, 0.006770629435777664, -0.03844381123781204, -0.011767391115427017, -0.05210462585091591, 0.013950668275356293, 0.02378813363611698, -0.006701044272631407, -0.04268079623579979, 0.02516118623316288, -0.005982824135571718, -0.009720582515001297, 0.03047577477991581, -0.033918075263500214, -0.0163499116897583, -0.03817494586110115, 0.019880730658769608, 0.02246798761188984, -0.037891935557127, 0.034652143716812134, 0.03314599022269249, 0.05243837460875511, -0.029158368706703186, -0.006647513248026371, -0.12878718972206116, -0.05626829341053963, -0.04021777957677841, -0.022786354646086693, 0.023085154592990875, 0.10365064442157745, 0.00571115268394351, -0.02507025934755802, -0.05204256996512413, -0.00033171242102980614, 0.01859436370432377, -0.12773722410202026, 0.07446436583995819, -0.04820042848587036, 0.08502977341413498, 0.042917437851428986, 0.07542937994003296, -0.15240861475467682, 0.04105953872203827, 0.012712350115180016, -0.12214525789022446, 0.058683764189481735, 0.004426274448633194, -0.007426170166581869, 0.0028906615916639566, -0.03156734257936478, 0.050273723900318146, -0.03272099420428276, 0.02893211506307125, -0.06219933182001114, -0.03138933703303337, -0.001612652326002717, 0.013157514855265617, -0.05846360698342323, -0.0033677206374704838, -0.001662694732658565, -0.052109163254499435, 0.020203568041324615, 0.0025162065867334604, 0.016603881493210793, 0.10188570618629456, -0.0490434505045414, -0.011560343205928802, 0.0134354867041111, 0.003016333794221282, 0.044228751212358475, 0.01638280600309372, 0.05462062358856201, 0.058279912918806076, -0.026010431349277496, 0.00384823908098042, -0.009922221302986145, 0.08381891250610352, -0.05376959219574928, -4.876177328583253e-8, 0.0775613933801651, 0.055034738034009933, -0.058046355843544006, 0.025622626766562462, -0.005138111766427755, 0.006281075067818165, 0.07296516746282578, 0.012281064875423908, -0.032687537372112274, 0.011628389358520508, -0.042572058737277985, 0.04727351292967796, -0.07080144435167313, 0.08014743775129318, -0.028241930529475212, 0.0391007736325264, 0.014191538095474243, 0.03000018186867237, 0.033365581184625626, -0.07779265195131302, -0.04494161531329155, -0.06063630431890488, 0.045985691249370575, -0.007135187275707722, -0.05244072526693344, 0.07871652394533157, 0.03381352871656418, -0.032459959387779236, -0.029152795672416687, 0.01319404412060976, -0.06473542749881744, -0.02467849664390087, -0.10340014845132828, 0.029046524316072464, 0.025363869965076447, 0.030969781801104546, -0.13431577384471893, 0.0627918392419815, 0.06100615859031677, -0.01647978648543358, 0.04648066684603691, 0.07156199961900711, -0.03844010829925537, -0.01556454412639141, 0.060226939618587494, 0.03325803577899933, -0.028496185317635536, 0.012566186487674713, 0.0181215051561594, 0.10826689749956131, 0.05319851636886597, -0.013393761590123177, -0.03846174478530884, 0.053133074194192886, 0.0006812859210185707, 0.07393588125705719, -0.03269939869642258, -0.039783839136362076, 0.052837878465652466, 0.009904857724905014, -0.008716323412954807, 0.05038810521364212, 0.015090004540979862, -0.08815424889326096 ]
0.094821
This page shows how to use [Kube-router](https://github.com/cloudnativelabs/kube-router) for NetworkPolicy. ## {{% heading "prerequisites" %}} You need to have a Kubernetes cluster running. If you do not already have a cluster, you can create one by using any of the cluster installers like Kops, Bootkube, Kubeadm etc. ## Installing Kube-router addon The Kube-router Addon comes with a Network Policy Controller that watches Kubernetes API server for any NetworkPolicy and pods updated and configures iptables rules and ipsets to allow or block traffic as directed by the policies. Please follow the [trying Kube-router with cluster installers](https://www.kube-router.io/docs/user-guide/#try-kube-router-with-cluster-installers) guide to install Kube-router addon. ## {{% heading "whatsnext" %}} Once you have installed the Kube-router addon, you can follow the [Declare Network Policy](/docs/tasks/administer-cluster/declare-network-policy/) to try out Kubernetes NetworkPolicy.
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/network-policy-provider/kube-router-network-policy.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/network-policy-provider/kube-router-network-policy.md
[ -0.007674062624573708, 0.02220306545495987, 0.005631583742797375, -0.027452748268842697, -0.06127068027853966, 0.060548584908246994, -0.03420328348875046, -0.018092351034283638, -0.0238826684653759, 0.10354405641555786, -0.046893879771232605, -0.013447997160255909, -0.021243438124656677, -0.09497124701738358, 0.015411187894642353, 0.06776450574398041, 0.07772346585988998, -0.009593295864760876, 0.01816241815686226, -0.12404438108205795, 0.02183270826935768, -0.022882020100951195, 0.04371706023812294, -0.0280498918145895, -0.08895859867334366, 0.026162903755903244, 0.01372103113681078, -0.006522107869386673, -0.028320463374257088, 0.017277199774980545, 0.026154527440667152, -0.09194523096084595, -0.029080649837851524, 0.01714508607983589, -0.05688276141881943, -0.02915797382593155, -0.05273452028632164, -0.009946083649992943, -0.05325298756361008, 0.008271473459899426, 0.06342034786939621, -0.03461867570877075, -0.07755568623542786, -0.049327392131090164, 0.029395120218396187, -0.05185950919985771, -0.04505903646349907, 0.029440855607390404, 0.020644577220082283, -0.036782406270504, 0.009049351327121258, -0.1165524497628212, 0.07850885391235352, -0.01457186508923769, 0.05708671361207962, -0.014338194392621517, -0.005926090758293867, 0.034728702157735825, 0.11093135923147202, -0.049427587538957596, -0.012821289710700512, -0.056267041712999344, 0.0382019467651844, -0.03413756936788559, -0.11102747172117233, 0.015014441683888435, -0.011423691175878048, 0.07269856333732605, 0.011684669181704521, 0.060396838933229446, 0.06837096810340881, 0.04369118809700012, -0.020091038197278976, 0.009382136166095734, -0.008927837014198303, 0.032507628202438354, -0.036381449550390244, 0.07002309709787369, 0.018766464665532112, -0.0016560748917981982, 0.022127626463770866, 0.0052146040834486485, 0.03644632548093796, 0.03440465033054352, -0.1242111399769783, -0.0986364334821701, 0.023775676265358925, -0.051150064915418625, 0.07925929129123688, -0.012715145945549011, 0.020142899826169014, 0.030649075284600258, -0.0005672805127687752, -0.05550919845700264, 0.031980350613594055, -0.0198367852717638, -0.031492944806814194, -0.056752871721982956, -0.0065934667363762856, -0.009408855810761452, 0.0070610325783491135, -0.049422506242990494, -0.04443725198507309, 0.055707935243844986, 0.03827044367790222, -0.018801119178533554, 0.0210409052670002, -0.016475895419716835, 0.04197530820965767, 0.1405404657125473, -0.0516725555062294, 0.01878482662141323, 0.002722533419728279, 0.01997320167720318, -0.013397249393165112, -0.01745935156941414, 0.097750224173069, -0.011587725952267647, 0.003321221796795726, 0.031859736889600754, 0.010901159606873989, -0.06663146615028381, 0.028306467458605766, -0.0255426112562418, 0.002857264829799533, 0.04235673323273659, 0.000783884956035763, 5.701862816332173e-33, 0.07640106976032257, -0.02257743664085865, -0.005501806735992432, -0.11947093158960342, 0.039802804589271545, -0.04282481595873833, -0.012897081673145294, -0.01188101526349783, -0.026621554046869278, -0.03076232597231865, -0.08663390576839447, 0.0013192824553698301, 0.02668645605444908, -0.009344281628727913, 0.04499126970767975, -0.015949223190546036, -0.05197755992412567, -0.05091709643602371, 0.14554600417613983, -0.01622275449335575, 0.001993902726098895, -0.10606962442398071, 0.03987190127372742, 0.03723195195198059, -0.019132474437355995, -0.0256620105355978, 0.026591341942548752, -0.11148937046527863, 0.01932191476225853, 0.019717305898666382, 0.018775800243020058, 0.008236304856836796, 0.014231306500732899, 0.016691889613866806, -0.11470234394073486, 0.012539288029074669, -0.08853159099817276, 0.02170369029045105, -0.03421030566096306, -0.0023412834852933884, -0.017109736800193787, -0.08525371551513672, -0.025983048602938652, -0.026912759989500046, 0.02295832335948944, 0.025430919602513313, 0.030985131859779358, -0.04170548915863037, 0.0268303994089365, 0.025927510112524033, -0.07253503799438477, -0.03724667802453041, -0.01462473627179861, -0.03758510947227478, 0.06324949860572815, 0.07890505343675613, 0.049116890877485275, -0.009574372321367264, -0.032919589430093765, -0.039077796041965485, -0.01804756186902523, -0.008239373564720154, 0.037034183740615845, 0.02130625955760479, -0.05972973257303238, 0.05530516803264618, -0.13080361485481262, 0.06841966509819031, 0.008390321396291256, -0.025903547182679176, -0.03514910116791725, 0.05669024959206581, 0.01319919340312481, 0.07120473682880402, 0.004575357772409916, 0.012866920791566372, -0.05100954324007034, -0.008836192078888416, -0.09532329440116882, 0.012953079305589199, 0.02337740920484066, -0.02745252102613449, -0.004270012956112623, 0.0787394791841507, 0.01912296563386917, -0.04669763147830963, 0.009025929495692253, 0.07514610141515732, 0.027270158752799034, 0.06935209780931473, -0.019213519990444183, -0.041695382446050644, 0.012656859122216702, 0.08153035491704941, -0.01706697791814804, -6.595398316720426e-33, 0.05576886236667633, 0.02657736837863922, -0.0035019400529563427, 0.0630614161491394, 0.041656237095594406, 0.02068614773452282, -0.021044399589300156, 0.04404221847653389, 0.05934556573629379, -0.029346564784646034, -0.033248286694288254, -0.014817698858678341, 0.08009693026542664, -0.028342928737401962, -0.07695373147726059, -0.05482877418398857, -0.045691631734371185, 0.02367040514945984, -0.05606911703944206, 0.020056063309311867, -0.08669505268335342, -0.02468223124742508, -0.03916669264435768, -0.05286993831396103, -0.025636643171310425, 0.028225593268871307, 0.055707771331071854, 0.03476019576191902, -0.06707598268985748, 0.03113522008061409, -0.04975038766860962, -0.042925309389829636, 0.04723770171403885, -0.028125006705522537, 0.055474430322647095, -0.0036181993782520294, -0.006967225112020969, 0.05749491602182388, -0.020838506519794464, -0.05407876893877983, 0.05036356300115585, -0.02630775049328804, -0.07340128719806671, -0.022114455699920654, -0.03482538461685181, -0.010706731118261814, 0.06498727202415466, -0.027379268780350685, -0.09734003245830536, -0.09060952812433243, -0.02846791408956051, 0.02851482667028904, -0.03384866565465927, 0.13344505429267883, 0.003308282233774662, 0.04469332844018936, 0.036568783223629, 0.062417905777692795, 0.0008822602103464305, 0.127397358417511, 0.02485584281384945, -0.10656483471393585, 0.05595151335000992, 0.10895463079214096, 0.06193387135863304, -0.08589524030685425, -0.0033546879421919584, 0.024749280884861946, 0.040275171399116516, 0.06623764336109161, -0.05182632803916931, 0.03049253672361374, 0.07337487488985062, 0.13121870160102844, 0.07335091382265091, -0.03851480409502983, -0.001010859734378755, 0.017921041697263718, -0.03389161080121994, 0.03451431915163994, 0.016830062493681908, 0.023296663537621498, -0.061303023248910904, -0.08277840912342072, 0.09122659265995026, 0.03913048282265663, 0.031105108559131622, 0.016526298597455025, 0.02968345582485199, 0.09598454087972641, -0.02017357386648655, -0.033367421478033066, -0.03830212354660034, 0.09053641557693481, -0.04310329258441925, -5.352700682692557e-8, 0.06314467638731003, 0.042677752673625946, 0.00531165674328804, 0.032080501317977905, 0.034764111042022705, 0.03693590313196182, 0.05121743306517601, -0.055398959666490555, -0.07976043224334717, -0.019412139430642128, 0.020208781585097313, 0.1316012740135193, -0.10455603152513504, 0.012441452592611313, 0.029794275760650635, -0.03734276443719864, 0.09279987961053848, 0.009856302291154861, 0.0210232175886631, -0.02204970270395279, -0.11947353929281235, -0.09471200406551361, -0.04962176829576492, 0.021654067561030388, 0.013193108141422272, 0.07737888395786285, 0.05201010778546333, -0.09277511388063431, 0.030151018872857094, 0.08333785831928253, -0.11498134583234787, -0.007923861965537071, -0.040946487337350845, 0.013042617589235306, -0.01703522726893425, 0.0728582814335823, -0.10975274443626404, 0.015093209221959114, 0.06808114051818848, 0.047197841107845306, 0.004714313428848982, 0.029762672260403633, -0.02902434766292572, -0.0271824449300766, 0.03862160071730614, 0.06754765659570694, -0.039526063948869705, 0.03588872030377388, 0.007715253159403801, 0.04138914495706558, 0.016844643279910088, -0.03629406541585922, -0.012137902900576591, 0.030072186142206192, 0.0013394709676504135, 0.011442002840340137, -0.027222728356719017, -0.057707156985998154, -0.05590203404426575, 0.01759498193860054, -0.008176358416676521, -0.008801707066595554, 0.006286597810685635, -0.013190679252147675 ]
0.063447
This page shows how to use Weave Net for NetworkPolicy. ## {{% heading "prerequisites" %}} You need to have a Kubernetes cluster. Follow the [kubeadm getting started guide](/docs/reference/setup-tools/kubeadm/) to bootstrap one. ## Install the Weave Net addon Follow the [Integrating Kubernetes via the Addon](https://github.com/weaveworks/weave/blob/master/site/kubernetes/kube-addon.md#-installation) guide. The Weave Net addon for Kubernetes comes with a [Network Policy Controller](https://github.com/weaveworks/weave/blob/master/site/kubernetes/kube-addon.md#network-policy) that automatically monitors Kubernetes for any NetworkPolicy annotations on all namespaces and configures `iptables` rules to allow or block traffic as directed by the policies. ## Test the installation Verify that the weave works. Enter the following command: ```shell kubectl get pods -n kube-system -o wide ``` The output is similar to this: ``` NAME READY STATUS RESTARTS AGE IP NODE weave-net-1t1qg 2/2 Running 0 9d 192.168.2.10 worknode3 weave-net-231d7 2/2 Running 1 7d 10.2.0.17 worknodegpu weave-net-7nmwt 2/2 Running 3 9d 192.168.2.131 masternode weave-net-pmw8w 2/2 Running 0 9d 192.168.2.216 worknode2 ``` Each Node has a weave Pod, and all Pods are `Running` and `2/2 READY`. (`2/2` means that each Pod has `weave` and `weave-npc`.) ## {{% heading "whatsnext" %}} Once you have installed the Weave Net addon, you can follow the [Declare Network Policy](/docs/tasks/administer-cluster/declare-network-policy/) to try out Kubernetes NetworkPolicy. If you have any question, contact us at [#weave-community on Slack or Weave User Group](https://github.com/weaveworks/weave#getting-help).
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/network-policy-provider/weave-network-policy.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/network-policy-provider/weave-network-policy.md
[ -0.051892999559640884, 0.00284382002428174, -0.024887748062610626, 0.0006558173336088657, -0.019347218796610832, 0.05071753263473511, -0.009550291113555431, -0.027956807985901833, -0.05246014893054962, 0.050570257008075714, 0.017947088927030563, -0.031523775309324265, 0.010441933758556843, -0.027517424896359444, 0.012888578698039055, 0.06433136016130447, 0.11349659413099289, -0.0024683696683496237, -0.011461714282631874, -0.08742088079452515, 0.04032113030552864, -0.0881122350692749, 0.040563877671957016, -0.08896824717521667, -0.0871637612581253, -0.0501178614795208, -0.05446101725101471, 0.0075759789906442165, 0.013023007661104202, 0.032402001321315765, 0.054658323526382446, 0.043985992670059204, -0.05486872419714928, 0.02864408865571022, 0.00000581341964789317, -0.017932582646608353, 0.03050854243338108, -0.007446906063705683, -0.10857170820236206, 0.038278646767139435, 0.11924827098846436, -0.01678822934627533, -0.054276786744594574, -0.03674314543604851, -0.029851293191313744, -0.08172992616891861, 0.0035891516599804163, 0.021480733528733253, 0.02313910983502865, -0.0471234954893589, 0.03295304253697395, -0.0874403640627861, 0.08804120868444443, 0.016323300078511238, 0.045406024903059006, -0.020132243633270264, -0.0164702907204628, 0.0599495992064476, 0.06060701981186867, -0.014061192981898785, 0.06733369082212448, -0.036891549825668335, -0.0264264065772295, 0.0001826091029215604, -0.046837545931339264, 0.026244783774018288, 0.00289365416392684, 0.09010792523622513, 0.003748329821974039, 0.014165461994707584, 0.02865595929324627, -0.015612824819982052, -0.06315205991268158, 0.046017151325941086, 0.00928564928472042, 0.08299276232719421, -0.011828701011836529, 0.06891828775405884, -0.0006296656792983413, -0.07389168441295624, -0.030595604330301285, 0.07355833798646927, 0.06764714419841766, -0.017977533861994743, -0.10704097151756287, -0.019814718514680862, -0.005821779370307922, -0.004786655772477388, 0.043093010783195496, -0.027637148275971413, 0.015489799901843071, 0.026848204433918, -0.043944381177425385, -0.09763089567422867, 0.08222514390945435, 0.03655492886900902, -0.04197169467806816, -0.022287458181381226, 0.0021749327424913645, 0.01178727112710476, -0.04154685512185097, -0.07556547969579697, -0.013089661486446857, 0.03242842108011246, -0.0130888307467103, 0.0007666464662179351, -0.014845862053334713, 0.03465155512094498, 0.043850187212228775, 0.0914112851023674, -0.02433677762746811, 0.03412741422653198, 0.012576054781675339, -0.014824816025793552, 0.002720990451052785, -0.004776816815137863, 0.0928255245089531, -0.00042810809100046754, 0.11521001160144806, 0.10052323341369629, -0.018520869314670563, -0.053532399237155914, 0.031122878193855286, -0.01562819443643093, 0.038409557193517685, 0.020847778767347336, -0.0051484801806509495, 4.330242008520987e-33, 0.06016172468662262, -0.016177697107195854, -0.001435226877219975, -0.06625828146934509, 0.08359983563423157, -0.07680322974920273, 0.0369473397731781, -0.08053366839885712, -0.02728094719350338, -0.01696622371673584, -0.138536736369133, 0.04476918652653694, 0.00040264075505547225, -0.008290767669677734, 0.02199726365506649, -0.01954529620707035, -0.04331266134977341, -0.0771360993385315, 0.136755108833313, 0.052191417664289474, 0.014790136367082596, -0.13508056104183197, 0.03890453651547432, -0.0010722852312028408, -0.018437763676047325, -0.04555415362119675, 0.011044137179851532, -0.061269164085388184, 0.049681346863508224, 0.04888225346803665, 0.027465347200632095, -0.014115018770098686, 0.0030278642661869526, 0.018310777842998505, -0.11818140000104904, -0.009486268274486065, -0.05183989927172661, 0.02583729662001133, -0.052566900849342346, -0.020702173933386803, -0.01957312598824501, -0.08424527943134308, -0.006979674566537142, -0.0482814759016037, 0.039263829588890076, -0.005894303787499666, 0.01582721248269081, 0.014716073870658875, 0.044662848114967346, 0.0031188337597995996, 0.017625657841563225, -0.020878950133919716, 0.009115725755691528, -0.06971494853496552, 0.04976358637213707, 0.05937064066529274, 0.06193411722779274, -0.021469848230481148, -0.04273305460810661, -0.02523822709918022, -0.01600498892366886, -0.011472645215690136, -0.046885911375284195, 0.032179802656173706, 0.055812444537878036, 0.028060797601938248, -0.10978054255247116, 0.03264399245381355, -0.039747945964336395, -0.033030834048986435, -0.07681909948587418, 0.0509474091231823, -0.028397947549819946, 0.07924441993236542, 0.04353071004152298, -0.015711145475506783, -0.03113659657537937, 0.04336618632078171, -0.06987210363149643, 0.04335584491491318, 0.010569618083536625, 0.0007131138700060546, -0.03582324832677841, 0.021551119163632393, -0.0330980122089386, -0.08121442049741745, -0.01112371776252985, 0.05776742845773697, -0.01595837064087391, -0.010995177552103996, 0.07516898959875107, -0.028185667470097542, 0.05519554764032364, 0.06683894246816635, -0.01508047804236412, -5.5282489128714444e-33, 0.04542311280965805, 0.050513315945863724, -0.00457696383818984, -0.003657800843939185, 0.03565474972128868, 0.035289958119392395, 0.026161927729845047, 0.022536030039191246, -0.031258899718523026, -0.039068177342414856, 0.03025498241186142, -0.04319659620523453, 0.04210411757230759, 0.04072574898600578, -0.09353227913379669, -0.01522247213870287, -0.02814071625471115, 0.006419980898499489, 0.026686392724514008, 0.021041790023446083, -0.024382704868912697, -0.015379995107650757, -0.04546281695365906, -0.008048847317695618, -0.038882456719875336, -0.046946894377470016, 0.04381277784705162, 0.05526210740208626, -0.09163852781057358, 0.046486422419548035, 0.0025775269605219364, -0.06520380079746246, -0.01340378075838089, 0.056051772087812424, 0.021894587203860283, 0.005572520196437836, 0.012337639927864075, 0.030976315960288048, -0.007771946024149656, -0.0905979722738266, 0.05734961852431297, -0.024427814409136772, -0.12240099161863327, -0.06654481589794159, -0.050710298120975494, -0.00592335220426321, -0.05243048816919327, -0.018454303964972496, -0.08819710463285446, -0.10292556881904602, -0.029986778274178505, 0.0808352380990982, 0.002969623077660799, 0.0635671317577362, -0.009405716322362423, 0.0917048379778862, 0.07313849776983261, 0.07559120655059814, -0.017876410856842995, 0.09324291348457336, 0.0007114824838936329, -0.08783616870641708, 0.04451039433479309, 0.0743846595287323, 0.06504034250974655, -0.04945908486843109, -0.05883840471506119, 0.0212367195636034, -0.048871368169784546, 0.03524795174598694, -0.04753797501325607, 0.025616547092795372, 0.0414356105029583, 0.09935440123081207, 0.01734466478228569, -0.04821590334177017, 0.0778949186205864, 0.02576717548072338, -0.03194426745176315, 0.05361904576420784, 0.024890925735235214, 0.02516152523458004, -0.07390191406011581, -0.06398563832044601, 0.10306921601295471, 0.042014941573143005, 0.03713511675596237, 0.05492005497217178, 0.09061191231012344, 0.048441994935274124, 0.003512959461659193, -0.009308617562055588, -0.04060573875904083, 0.08752463757991791, 0.02547401934862137, -5.963337912362476e-8, 0.0017657384742051363, 0.023640718311071396, -0.03939075022935867, -0.009084065444767475, 0.01688079908490181, 0.07493029534816742, 0.012037673965096474, -0.11896618455648422, -0.05000913515686989, -0.03031308762729168, -0.011220392771065235, 0.08262994140386581, -0.0758894607424736, 0.027116313576698303, 0.008347543887794018, -0.044080428779125214, 0.048775564879179, -0.007135120220482349, 0.04039265960454941, -0.03630172088742256, -0.05037832632660866, -0.0975625291466713, -0.055081501603126526, 0.06448962539434433, 0.010055876336991787, 0.033104442059993744, 0.0364634245634079, -0.06377852708101273, 0.05778609961271286, 0.10861504822969437, -0.08774100244045258, -0.012591751292347908, -0.09573843330144882, 0.027882779017090797, -0.0908835306763649, 0.06656351685523987, -0.09387531876564026, 0.04873640835285187, 0.07285526394844055, 0.015652619302272797, 0.017070772126317024, 0.08623646944761276, -0.03344348073005676, -0.08026701211929321, 0.08588425815105438, 0.03569920361042023, -0.03825440630316734, -0.023697620257735252, -0.03642087057232857, 0.018174631521105766, 0.06630605459213257, -0.05081344395875931, 0.008713379502296448, 0.04776866361498833, -0.02851198799908161, -0.024134008213877678, -0.051421649754047394, -0.053334467113018036, -0.012773647904396057, 0.001726606278680265, -0.08700920641422272, -0.03321263939142227, 0.04403276741504669, 0.009415469132363796 ]
0.0713
This page shows how to use Cilium for NetworkPolicy. For background on Cilium, read the [Introduction to Cilium](https://docs.cilium.io/en/stable/overview/intro). ## {{% heading "prerequisites" %}} {{< include "task-tutorial-prereqs.md" >}} {{< version-check >}} ## Deploying Cilium on Minikube for Basic Testing To get familiar with Cilium easily you can follow the [Cilium Kubernetes Getting Started Guide](https://docs.cilium.io/en/stable/gettingstarted/k8s-install-default/) to perform a basic DaemonSet installation of Cilium in minikube. To start minikube, minimal version required is >= v1.5.2, run the with the following arguments: ```shell minikube version ``` ``` minikube version: v1.5.2 ``` ```shell minikube start --network-plugin=cni ``` For minikube you can install Cilium using its CLI tool. To do so, first download the latest version of the CLI with the following command: ```shell curl -LO https://github.com/cilium/cilium-cli/releases/latest/download/cilium-linux-amd64.tar.gz ``` Then extract the downloaded file to your `/usr/local/bin` directory with the following command: ```shell sudo tar xzvfC cilium-linux-amd64.tar.gz /usr/local/bin rm cilium-linux-amd64.tar.gz ``` After running the above commands, you can now install Cilium with the following command: ```shell cilium install ``` Cilium will then automatically detect the cluster configuration and create and install the appropriate components for a successful installation. The components are: - Certificate Authority (CA) in Secret `cilium-ca` and certificates for Hubble (Cilium's observability layer). - Service accounts. - Cluster roles. - ConfigMap. - Agent DaemonSet and an Operator Deployment. After the installation, you can view the overall status of the Cilium deployment with the `cilium status` command. See the expected output of the `status` command [here](https://docs.cilium.io/en/stable/gettingstarted/k8s-install-default/#validate-the-installation). The remainder of the Getting Started Guide explains how to enforce both L3/L4 (i.e., IP address + port) security policies, as well as L7 (e.g., HTTP) security policies using an example application. ## Deploying Cilium for Production Use For detailed instructions around deploying Cilium for production, see: [Cilium Kubernetes Installation Guide](https://docs.cilium.io/en/stable/network/kubernetes/concepts/) This documentation includes detailed requirements, instructions and example production DaemonSet files. ## Understanding Cilium components Deploying a cluster with Cilium adds Pods to the `kube-system` namespace. To see this list of Pods run: ```shell kubectl get pods --namespace=kube-system -l k8s-app=cilium ``` You'll see a list of Pods similar to this: ```console NAME READY STATUS RESTARTS AGE cilium-kkdhz 1/1 Running 0 3m23s ... ``` A `cilium` Pod runs on each node in your cluster and enforces network policy on the traffic to/from Pods on that node using Linux BPF. ## {{% heading "whatsnext" %}} Once your cluster is running, you can follow the [Declare Network Policy](/docs/tasks/administer-cluster/declare-network-policy/) to try out Kubernetes NetworkPolicy with Cilium. Have fun, and if you have questions, contact us using the [Cilium Slack Channel](https://slack.cilium.io/).
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/network-policy-provider/cilium-network-policy.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/network-policy-provider/cilium-network-policy.md
[ 0.006046048831194639, 0.022082172334194183, -0.024763502180576324, -0.03142279013991356, -0.05827632546424866, -0.014805573038756847, -0.10123774409294128, 0.1006108820438385, -0.010472971946001053, 0.023648172616958618, 0.0026535424403846264, -0.05690106377005577, 0.024683883413672447, -0.028867091983556747, 0.03399543836712837, -0.02092048153281212, 0.10329790413379669, -0.0013052858412265778, 0.010253365151584148, -0.09809946268796921, -0.025820739567279816, -0.05096260830760002, -0.010057874023914337, -0.05641404911875725, -0.06676565855741501, -0.06851169466972351, -0.05700979754328728, 0.018915003165602684, 0.022128531709313393, 0.01742514595389366, 0.0029018165078014135, 0.034967366605997086, -0.046247635036706924, -0.007086905185133219, 0.0004030575801152736, 0.08403252065181732, -0.034498926252126694, -0.05313940718770027, -0.07989655435085297, -0.03631869703531265, 0.07529636472463608, -0.013878675177693367, -0.08705168962478638, 0.011628569103777409, -0.043515559285879135, -0.06687385588884354, -0.006404093932360411, -0.023130042478442192, -0.007517383899539709, -0.08423987776041031, -0.00748680904507637, -0.10999716818332672, 0.08492206782102585, 0.035062406212091446, -0.013387732207775116, 0.0015443263109773397, -0.05894343927502632, 0.03675162047147751, 0.15276938676834106, -0.02867201156914234, 0.021964028477668762, -0.01714296080172062, 0.08154802024364471, 0.03867266699671745, -0.05443898215889931, 0.009846820496022701, -0.015948578715324402, 0.007740352302789688, 0.008621369488537312, -0.019583001732826233, 0.019950799643993378, 0.002066418994218111, -0.04643731564283371, -0.0114327697083354, -0.012486698105931282, 0.09253742545843124, -0.006514076143503189, 0.044829387217760086, -0.06324546039104462, -0.013315246440470219, -0.0048642647452652454, 0.05643204599618912, 0.045123811811208725, 0.009212483651936054, -0.02568412758409977, 0.008993303403258324, 0.021608062088489532, -0.03422005847096443, 0.025616981089115143, -0.09872468560934067, 0.09008663147687912, 0.05527200177311897, -0.0022445640061050653, -0.008687617257237434, -0.01080774050205946, 0.03323354572057724, -0.027720080688595772, 0.0077798739075660706, -0.08391902595758438, 0.03827778249979019, 0.029640739783644676, -0.028802121058106422, 0.03014858439564705, 0.039105407893657684, -0.008535657078027725, -0.010484753176569939, 0.06034709885716438, -0.030017923563718796, -0.02231733128428459, 0.05361124873161316, -0.07390080392360687, -0.013983765617012978, -0.05771540105342865, -0.03347555547952652, 0.09891597926616669, 0.02823982760310173, 0.07709894329309464, 0.06459084153175354, 0.12293609231710434, 0.01979653723537922, 0.01838408224284649, -0.09240398555994034, -0.048501256853342056, -0.05059435963630676, 0.03202376514673233, 0.13803833723068237, -0.036109648644924164, 4.276763995056281e-33, 0.028342535719275475, -0.033176273107528687, 0.047390133142471313, -0.043486617505550385, 0.03728727996349335, -0.14279837906360626, -0.0012415272649377584, -0.05729002505540848, -0.08069853484630585, -0.0361199714243412, -0.10723339021205902, 0.06133754923939705, -0.012949391268193722, -0.05521531403064728, 0.01145153772085905, -0.03350965678691864, -0.03281056880950928, -0.02903847210109234, 0.15913935005664825, 0.053517162799835205, 0.03587101772427559, -0.05876275897026062, 0.012225117534399033, -0.017210880294442177, 0.013755926862359047, -0.01131546963006258, 0.05859207361936569, -0.1089140996336937, -0.017139989882707596, 0.007251833565533161, -0.07502664625644684, 0.00845405738800764, -0.03619202598929405, 0.038493793457746506, -0.11801126599311829, -0.0031548188999295235, -0.051948241889476776, 0.03684911131858826, -0.11904003471136093, 0.010490352287888527, -0.05343124642968178, -0.021310174837708473, -0.006749757099896669, -0.0979432538151741, 0.055345650762319565, -0.011269031092524529, 0.05297602340579033, 0.024554317817091942, 0.09302698820829391, -0.03701073303818703, -0.022927116602659225, 0.00640634773299098, -0.004943896550685167, 0.008959228172898293, 0.06293432414531708, 0.0801367461681366, 0.11258579045534134, -0.020439982414245605, 0.0022548814304172993, -0.08355351537466049, -0.01876497082412243, -0.03111407719552517, -0.02714863419532776, 0.0068701026029884815, 0.024004466831684113, 0.0594656728208065, -0.1211426854133606, 0.02403288520872593, -0.0031391603406518698, -0.08397473394870758, -0.09905537962913513, 0.0133373336866498, -0.026082729920744896, -0.02088833972811699, 0.1030368059873581, -0.010339192114770412, -0.03595782071352005, -0.08268357068300247, -0.06276164948940277, 0.07347983121871948, 0.046538982540369034, -0.0539105050265789, -0.03284919634461403, 0.04304799064993858, 0.03386937454342842, -0.07248761504888535, 0.017344234511256218, 0.07492534816265106, 0.01976311020553112, -0.003270767629146576, 0.05929206684231758, -0.007955595850944519, -0.005723141599446535, 0.10692814737558365, -0.05351894721388817, -3.7619815907105996e-33, 0.006064285058528185, -0.0046006119810044765, 0.04905368760228157, 0.05309554934501648, 0.06919339299201965, 0.03637174516916275, 0.01437964104115963, -0.024313468486070633, -0.029777249321341515, 0.009810009971261024, 0.0034302175045013428, -0.05984197556972504, 0.012964188121259212, -0.041633836925029755, -0.08073528856039047, 0.08960751444101334, -0.013464067131280899, -0.01609177328646183, 0.0867430567741394, -0.03010089509189129, -0.05003894865512848, 0.030316589400172234, -0.04380407556891441, -0.01947859302163124, -0.022234564647078514, 0.022409530356526375, 0.1190166100859642, 0.021172471344470978, -0.06323236227035522, -0.04316544905304909, -0.006541003938764334, -0.034091733396053314, -0.05130526050925255, 0.05007382109761238, 0.013211998157203197, -0.010606884025037289, -0.02325638011097908, -0.014626383781433105, 0.02210955321788788, -0.05699799209833145, 0.053623829036951065, 0.0023603877052664757, -0.036539800465106964, -0.013984660618007183, -0.030973728746175766, -0.013468208722770214, 0.003427076619118452, -0.016559874638915062, -0.1027025431394577, -0.020258722826838493, -0.019605765119194984, 0.0495634563267231, -0.04152679443359375, 0.08435625582933426, -0.004650396294891834, 0.06709372252225876, 0.03829025477170944, 0.10225533694028854, 0.009851804003119469, 0.04117220640182495, 0.02662689797580242, -0.14542660117149353, -0.005539738107472658, 0.057445697486400604, -0.01872975006699562, -0.026755092665553093, -0.03534150868654251, 0.11828932166099548, -0.04658668115735054, 0.04727973788976669, -0.0033330104779452085, 0.04143515229225159, 0.013256635516881943, 0.017497459426522255, 0.043079037219285965, 0.001163174631074071, 0.04667643457651138, -0.0114849042147398, 0.011228350922465324, -0.0019135589245706797, -0.021982457488775253, 0.020957686007022858, -0.03619568422436714, -0.04460733011364937, 0.037255946546792984, 0.014848530292510986, 0.058139268308877945, 0.04334742948412895, 0.07096730172634125, 0.050542037934064865, 0.014293337240815163, 0.021586671471595764, 0.05591857060790062, 0.07064605504274368, -0.017734510824084282, -4.549571386291973e-8, 0.030787445604801178, -0.020328348502516747, -0.031433142721652985, 0.037538833916187286, 0.03484497219324112, -0.012903640978038311, 0.027588406577706337, -0.03396569937467575, -0.006105887703597546, 0.04729662090539932, -0.04847369343042374, 0.0624765045940876, -0.019277185201644897, 0.06570184230804443, -0.014507278800010681, 0.09980414062738419, 0.09254348278045654, 0.004159429110586643, 0.09764613956212997, -0.007179315201938152, -0.009165813215076923, -0.07420184463262558, 0.02054630033671856, 0.005698851775377989, -0.008266709744930267, 0.014475398696959019, 0.06014671549201012, 0.001315953442826867, -0.005729538854211569, 0.007368552498519421, -0.1411290168762207, 0.025226837024092674, -0.06519258767366409, -0.014768287539482117, -0.045191820710897446, 0.07649397850036621, -0.05317465588450432, 0.050628963857889175, 0.04506987705826759, -0.036980871111154556, -0.008960762061178684, -0.008055786602199078, -0.025679126381874084, -0.08641564100980759, 0.030217453837394714, 0.0368497297167778, -0.0698656365275383, 0.0013575792545452714, 0.020860368385910988, -0.02987198531627655, -0.004633320961147547, -0.03173201158642769, 0.01195384468883276, 0.0571264885365963, 0.06835202872753143, -0.0031698793172836304, 0.0010255958186462522, -0.021936779841780663, 0.013814697042107582, -0.014233284629881382, -0.0786929726600647, 0.05250304937362671, 0.039228834211826324, -0.005910840351134539 ]
0.124548
This page shows how to install and use Antrea CNI plugin on Kubernetes. For background on Project Antrea, read the [Introduction to Antrea](https://antrea.io/docs/). ## {{% heading "prerequisites" %}} You need to have a Kubernetes cluster. Follow the [kubeadm getting started guide](/docs/reference/setup-tools/kubeadm/) to bootstrap one. ## Deploying Antrea with kubeadm Follow [Getting Started](https://github.com/vmware-tanzu/antrea/blob/main/docs/getting-started.md) guide to deploy Antrea for kubeadm. ## {{% heading "whatsnext" %}} Once your cluster is running, you can follow the [Declare Network Policy](/docs/tasks/administer-cluster/declare-network-policy/) to try out Kubernetes NetworkPolicy.
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/network-policy-provider/antrea-network-policy.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/network-policy-provider/antrea-network-policy.md
[ -0.03894004598259926, -0.003668593242764473, 0.005395141895860434, -0.04513299837708473, -0.009153877384960651, 0.017607565969228745, -0.023915844038128853, -0.0013163007097318769, -0.07006324827671051, 0.05453520640730858, -0.03751107677817345, -0.04835038632154465, -0.01491414662450552, -0.02197203040122986, 0.006687473505735397, 0.008312643505632877, 0.03832818567752838, -0.027992380782961845, 0.0535493902862072, -0.05962926894426346, 0.008004655130207539, -0.030351534485816956, 0.03135807812213898, -0.10020799189805984, -0.1067253053188324, -0.02126816101372242, 0.023352747783064842, 0.02096814662218094, -0.005746620707213879, 0.02071390673518181, -0.03370242938399315, -0.041833627969026566, -0.019978340715169907, -0.08040381222963333, -0.0010390467941761017, 0.05424552038311958, 0.002711088629439473, -0.07964649051427841, -0.06986836344003677, 0.02909950166940689, 0.11031775921583176, -0.008778977207839489, -0.08952999114990234, -0.07049737870693207, 0.019081436097621918, -0.0819542184472084, 0.01122791226953268, -0.02898888662457466, 0.053764209151268005, -0.027007922530174255, 0.005603230092674494, -0.06624879688024521, 0.019345667213201523, 0.007505633402615786, -0.06934644281864166, 0.02003764547407627, 0.02270028181374073, -0.02299864962697029, 0.027410130947828293, -0.0702700987458229, 0.0654854029417038, 0.042573269456624985, -0.00038939964724704623, 0.004424662329256535, -0.040057938545942307, 0.0588533952832222, 0.018481938168406487, 0.04284156113862991, 0.04158462956547737, -0.012835018336772919, 0.03529016301035881, 0.019675519317388535, -0.045058723539114, 0.08061424642801285, -0.07930733263492584, 0.06800323724746704, 0.04108680412173271, 0.08839644491672516, 0.06678366661071777, -0.025632698088884354, -0.06542904675006866, 0.08597786724567413, 0.06960844993591309, 0.03183587267994881, -0.07702682167291641, 0.009397624060511589, -0.032888248562812805, -0.000501592643558979, 0.04713105782866478, 0.006430748384445906, -0.019368769600987434, 0.035982124507427216, -0.026012059301137924, -0.025416677817702293, 0.050870392471551895, -0.017022890970110893, -0.016330337151885033, -0.0017663727048784494, -0.016210190951824188, 0.018198814243078232, -0.009210895746946335, 0.020113421604037285, 0.01585700921714306, 0.009902609512209892, -0.0038461682852357626, 0.018197406083345413, 0.01186214480549097, -0.033817876130342484, 0.037489742040634155, 0.027823273092508316, -0.04006567597389221, 0.10986734926700592, 0.04216925427317619, -0.024770671501755714, 0.05058639496564865, 0.01201737392693758, 0.04974758252501488, 0.024333778768777847, 0.06539475917816162, 0.046210646629333496, 0.02411157265305519, -0.133215993642807, -0.06626887619495392, -0.029372090473771095, 0.08760546892881393, -0.010477781295776367, -0.040165260434150696, 4.312615103388422e-33, 0.0345323272049427, 0.01086980476975441, 0.01900424435734749, 0.019286345690488815, 0.07478291541337967, -0.09022897481918335, 0.017082829028367996, -0.042696330696344376, -0.11849299818277359, -0.007073270156979561, -0.07759437710046768, 0.038361988961696625, -0.0028096225578337908, -0.015460745431482792, -0.03200020268559456, -0.027022579684853554, -0.009002606384456158, -0.04197125881910324, 0.13394150137901306, -0.0771561861038208, 0.0015390969347208738, -0.07705242186784744, 0.0368739515542984, -0.042548373341560364, 0.0609479583799839, 0.018626036122441292, 0.042944859713315964, 0.03382065147161484, -0.011172019876539707, 0.0050473082810640335, 0.022916430607438087, 0.0022402203176170588, -0.03629832714796066, -0.037874117493629456, -0.12143342941999435, -0.06459574401378632, -0.03730003908276558, 0.019637564197182655, -0.10524910688400269, 0.018064767122268677, 0.002160987351089716, 0.03355451300740242, 0.004873660393059254, -0.04148828238248825, 0.028091220185160637, 0.026702705770730972, 0.02107776328921318, -0.04799923673272133, 0.19822409749031067, -0.016327116638422012, -0.0521106980741024, -0.07215287536382675, 0.05192918702960014, -0.06137116625905037, 0.06878234446048737, 0.032844606786966324, 0.06293298304080963, -0.02639925293624401, -0.02418534643948078, -0.008464802987873554, -0.004039808176457882, -0.04705013707280159, -0.004228647332638502, 0.05682508274912834, -0.010237166658043861, 0.061294637620449066, -0.11591840535402298, -0.030626874417066574, 0.04533066600561142, -0.04027940332889557, -0.06408297270536423, 0.04635709524154663, -0.003154566278681159, 0.026271482929587364, 0.022595355287194252, -0.03370063006877899, 0.0030815296340733767, -0.08393707871437073, -0.06566687673330307, 0.07528017461299896, -0.0325794517993927, -0.05483506619930267, -0.03479951620101929, 0.110500767827034, 0.0362851582467556, -0.04038083925843239, 0.0627082884311676, 0.05119459703564644, 0.05699549987912178, 0.004800311755388975, 0.09652674943208694, -0.03747514635324478, -0.04287723824381828, 0.028742099180817604, -0.08322765678167343, -4.2307790233940976e-33, 0.01648995466530323, 0.018582025542855263, -0.07306356728076935, -0.02099265716969967, 0.03211869299411774, 0.011779477819800377, 0.00015874768723733723, 0.040453094989061356, -0.003717307234182954, -0.036082301288843155, -0.02101709507405758, -0.034510236233472824, 0.0376020148396492, 0.026252614334225655, -0.09926623106002808, 0.05693850293755531, 0.060087136924266815, -0.05886410176753998, 0.026216905564069748, 0.04135330393910408, -0.014486219733953476, 0.016726195812225342, -0.028476562350988388, -0.0521082803606987, -0.027058396488428116, 0.006764854304492474, 0.06827252358198166, 0.09522093832492828, -0.12524428963661194, -0.01723315380513668, 0.0058907195925712585, -0.021013576537370682, -0.035132456570863724, -0.003328411839902401, 0.009299788624048233, 0.08816070109605789, 0.04006244242191315, 0.04408453404903412, -0.03072708658874035, -0.05176990479230881, 0.06721609085798264, -0.043284811079502106, -0.11860425025224686, -0.05239070951938629, -0.01736973226070404, -0.006464418489485979, -0.0023022228851914406, -0.03543156385421753, -0.11515359580516815, -0.03053353726863861, -0.03128466755151749, -0.03938981518149376, 0.021868236362934113, 0.0751982107758522, -0.049088601022958755, 0.04222278669476509, 0.05387905240058899, 0.07726817578077316, 0.01707649417221546, 0.04220146685838699, 0.05808825418353081, -0.08103766292333603, 0.029642093926668167, 0.03576003387570381, 0.002545543946325779, -0.05431920289993286, 0.033895738422870636, 0.06580337882041931, -0.029294388368725777, 0.043269164860248566, -0.06294356286525726, 0.05618098005652428, 0.08844088017940521, 0.06269488483667374, -0.005971649195998907, 0.009184453636407852, 0.030041534453630447, -0.004691313020884991, -0.06976451724767685, 0.0007668910548090935, 0.04210717976093292, 0.006044624373316765, -0.1029842272400856, 0.010485120117664337, -0.03203767538070679, 0.15647514164447784, 0.08829101920127869, 0.07121101021766663, 0.06618272513151169, 0.09000080078840256, -0.014182385057210922, -0.022915558889508247, -0.0023772313725203276, 0.09252087771892548, -0.07779364287853241, -5.6033300666058494e-8, 0.0031384157482534647, 0.02200714498758316, -0.05191948637366295, -0.0032220000866800547, -0.01963489130139351, 0.0896565392613411, 0.016164764761924744, -0.05623868852853775, 0.008661176078021526, -0.0027539245784282684, 0.01629345491528511, 0.1303529143333435, 0.00613426323980093, 0.06433780491352081, -0.028225313872098923, 0.04872041940689087, 0.0040397047996521, 0.046970922499895096, 0.035072967410087585, -0.07751013338565826, -0.02688004821538925, 0.0005499395774677396, -0.008410535752773285, 0.025669775903224945, 0.11337056756019592, 0.04444717615842819, 0.012147722765803337, -0.05976053699851036, 0.0029843137599527836, 0.004598395898938179, -0.09616515785455704, 0.013556856662034988, -0.055175621062517166, 0.03749964386224747, 0.015456841327250004, 0.051001451909542084, -0.03966362401843071, 0.051500122994184494, 0.09850477427244186, -0.04688258469104767, 0.019754810258746147, 0.036465711891651154, -0.048416126519441605, -0.027578512206673622, 0.038356389850378036, 0.025929231196641922, -0.09399309754371643, 0.009204432368278503, 0.05019782856106758, -0.10670173913240433, 0.013210294768214226, -0.040947433561086655, -0.07433652132749557, 0.016772624105215073, -0.018592840060591698, 0.001671727979555726, -0.02928287908434868, 0.018383823335170746, 0.008073193021118641, 0.029537227004766464, -0.05317845568060875, -0.0009939089650288224, -0.013940808363258839, -0.05189621075987816 ]
0.2088
This page explains how to enable a package repository for the desired Kubernetes minor release upon upgrading a cluster. This is only needed for users of the community-owned package repositories hosted at `pkgs.k8s.io`. Unlike the legacy package repositories, the community-owned package repositories are structured in a way that there's a dedicated package repository for each Kubernetes minor version. {{< note >}} This guide only covers a part of the Kubernetes upgrade process. Please see the [upgrade guide](/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade/) for more information about upgrading Kubernetes clusters. {{}} {{< note >}} This step is only needed upon upgrading a cluster to another \*\*minor\*\* release. If you're upgrading to another patch release within the same minor release (e.g. v{{< skew currentVersion >}}.5 to v{{< skew currentVersion >}}.7), you don't need to follow this guide. However, if you're still using the legacy package repositories, you'll need to migrate to the new community-owned package repositories before upgrading (see the next section for more details on how to do this). {{}} ## {{% heading "prerequisites" %}} This document assumes that you're already using the community-owned package repositories (`pkgs.k8s.io`). If that's not the case, it's strongly recommended to migrate to the community-owned package repositories as described in the [official announcement](/blog/2023/08/15/pkgs-k8s-io-introduction/). {{% legacy-repos-deprecation %}} ### Verifying if the Kubernetes package repositories are used If you're unsure whether you're using the community-owned package repositories or the legacy package repositories, take the following steps to verify: {{< tabs name="k8s\_install\_versions" >}} {{% tab name="Ubuntu, Debian or HypriotOS" %}} Print the contents of the file that defines the Kubernetes `apt` repository: ```shell # On your system, this configuration file could have a different name pager /etc/apt/sources.list.d/kubernetes.list ``` If you see a line similar to: ``` deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v{{< skew currentVersionAddMinor -1 "." >}}/deb/ / ``` \*\*You're using the Kubernetes package repositories and this guide applies to you.\*\* Otherwise, it's strongly recommended to migrate to the Kubernetes package repositories as described in the [official announcement](/blog/2023/08/15/pkgs-k8s-io-introduction/). {{% /tab %}} {{% tab name="CentOS, RHEL or Fedora" %}} Print the contents of the file that defines the Kubernetes `yum` repository: ```shell # On your system, this configuration file could have a different name cat /etc/yum.repos.d/kubernetes.repo ``` If you see a `baseurl` similar to the `baseurl` in the output below: ``` [kubernetes] name=Kubernetes baseurl=https://pkgs.k8s.io/core:/stable:/v{{< skew currentVersionAddMinor -1 "." >}}/rpm/ enabled=1 gpgcheck=1 gpgkey=https://pkgs.k8s.io/core:/stable:/v{{< skew currentVersionAddMinor -1 "." >}}/rpm/repodata/repomd.xml.key exclude=kubelet kubeadm kubectl ``` \*\*You're using the Kubernetes package repositories and this guide applies to you.\*\* Otherwise, it's strongly recommended to migrate to the Kubernetes package repositories as described in the [official announcement](/blog/2023/08/15/pkgs-k8s-io-introduction/). {{% /tab %}} {{% tab name="openSUSE or SLES" %}} Print the contents of the file that defines the Kubernetes `zypper` repository: ```shell # On your system, this configuration file could have a different name cat /etc/zypp/repos.d/kubernetes.repo ``` If you see a `baseurl` similar to the `baseurl` in the output below: ``` [kubernetes] name=Kubernetes baseurl=https://pkgs.k8s.io/core:/stable:/v{{< skew currentVersionAddMinor -1 "." >}}/rpm/ enabled=1 gpgcheck=1 gpgkey=https://pkgs.k8s.io/core:/stable:/v{{< skew currentVersionAddMinor -1 "." >}}/rpm/repodata/repomd.xml.key exclude=kubelet kubeadm kubectl ``` \*\*You're using the Kubernetes package repositories and this guide applies to you.\*\* Otherwise, it's strongly recommended to migrate to the Kubernetes package repositories as described in the [official announcement](/blog/2023/08/15/pkgs-k8s-io-introduction/). {{% /tab %}} {{< /tabs >}} {{< note >}} The URL used for the Kubernetes package repositories is not limited to `pkgs.k8s.io`, it can also be one of: - `pkgs.k8s.io` - `pkgs.kubernetes.io` - `packages.kubernetes.io` {{}} ## Switching to another Kubernetes package repository This step should be done upon upgrading from one to another Kubernetes minor release in order to get access to the packages of the desired Kubernetes minor version. {{< tabs name="k8s\_upgrade\_versions" >}} {{% tab name="Ubuntu, Debian
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/kubeadm/change-package-repository.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/kubeadm/change-package-repository.md
[ 0.027910565957427025, -0.042633119970560074, 0.10659953206777573, -0.03796440362930298, 0.018058909103274345, 0.0411185622215271, -0.035729654133319855, -0.047362420707941055, 0.006388496607542038, 0.0958082377910614, 0.03310132026672363, -0.0072877840138971806, -0.055503346025943756, -0.007970588281750679, 0.06560791283845901, 0.04502369463443756, 0.06247015297412872, 0.007990471087396145, -0.004982135724276304, -0.04775331914424896, -0.052616994827985764, -0.09277747571468353, 0.007752778474241495, 0.025371426716446877, -0.04998305067420006, -0.00021238996123429388, -0.0690876692533493, -0.0035863323137164116, -0.014443323016166687, 0.019617857411503792, -0.027798624709248543, 0.06031830981373787, 0.036999430507421494, -0.02247507870197296, 0.06515700370073318, 0.0417427234351635, -0.026359770447015762, 0.09603980928659439, -0.019602427259087563, 0.07177364081144333, 0.03142530098557472, -0.007965139113366604, -0.0388556607067585, -0.06652253866195679, 0.010479710064828396, -0.013019432313740253, -0.0363101027905941, -0.049163952469825745, -0.05425923317670822, -0.04418299347162247, 0.06323990970849991, -0.09035530686378479, 0.006715554278343916, 0.02054520882666111, -0.0021138491574674845, 0.013524945825338364, -0.025714773684740067, 0.011560769751667976, 0.06986639648675919, -0.051678743213415146, 0.06039917469024658, -0.07124268263578415, 0.009146458469331264, -0.06757964193820953, -0.08173573017120361, -0.06268130987882614, 0.11840841174125671, -0.026194090023636818, 0.01919080689549446, -0.04179074987769127, 0.04783434048295021, 0.01772906817495823, 0.006509155035018921, -0.05980867147445679, 0.01617209054529667, 0.024358253926038742, 0.006386731751263142, 0.043704431504011154, 0.0777752622961998, -0.05092085152864456, 0.028978707268834114, 0.017835911363363266, 0.061184559017419815, -0.086214579641819, -0.13930460810661316, -0.04138211905956268, -0.03238552063703537, -0.06477007269859314, 0.04120282828807831, 0.003028344828635454, 0.021205004304647446, -0.04306966811418533, 0.07046208530664444, -0.09052988141775131, 0.047872185707092285, -0.0013808869989588857, -0.07665610313415527, 0.007966158911585808, 0.011586352251470089, 0.012213124893605709, 0.07142304629087448, -0.03036743775010109, -0.03431222587823868, 0.01628686487674713, 0.017972808331251144, 0.014287926256656647, -0.03256317973136902, 0.010574979707598686, 0.016402054578065872, 0.040883619338274, 0.02432072162628174, 0.059998657554388046, 0.02948877215385437, -0.06711264699697495, -0.019813675433397293, 0.017225926741957664, 0.02685539610683918, 0.00388121185824275, 0.015148278325796127, 0.020934103056788445, 0.01667921245098114, -0.03737744688987732, 0.02576391212642193, 0.0007172298501245677, -0.06101900339126587, 0.039087697863578796, -0.06331195682287216, 2.9512091578148895e-33, 0.05443722754716873, 0.05132974311709404, -0.039595749229192734, -0.05390975996851921, -0.020456962287425995, -0.09406058490276337, 0.005590992048382759, -0.059722233563661575, -0.11130636930465698, -0.09216082841157913, -0.0669880211353302, -0.013710449449717999, -0.0017551853088662028, -0.04647032171487808, 0.004200012888759375, 0.05208531767129898, -0.07777214050292969, 0.0642235204577446, 0.07755020260810852, 0.03293135389685631, 0.011905614286661148, -0.04467788711190224, 0.0032069035805761814, 0.030065493658185005, 0.014946948736906052, -0.024429375305771828, 0.07862631976604462, -0.016311906278133392, -0.07157007604837418, -0.025659507140517235, -0.027455637231469154, 0.011211168952286243, 0.034028999507427216, 0.0009153627906925976, -0.14445558190345764, 0.009080365300178528, -0.011537744663655758, -0.006107380613684654, -0.026299873366951942, -0.047420576214790344, 0.002259093802422285, 0.03134150058031082, -0.02752799354493618, 0.004285583738237619, 0.1724974513053894, 0.008812928572297096, 0.04283643513917923, -0.04581393674015999, 0.11433485150337219, -0.05281355604529381, 0.019084841012954712, -0.049784254282712936, -0.01904936134815216, -0.04349161311984062, -0.00958841759711504, 0.060759883373975754, 0.15441693365573883, -0.07332848757505417, 0.02443946711719036, -0.08876005560159683, 0.0576801635324955, -0.06216676905751228, 0.03360968455672264, -0.05047307908535004, 0.04700935259461403, 0.05902857333421707, -0.010165350511670113, 0.09716113656759262, 0.014123356901109219, -0.014154941774904728, -0.03136806562542915, 0.016906170174479485, -0.06986818462610245, 0.030539043247699738, -0.004447982646524906, -0.05039750039577484, 0.04631359130144119, 0.04940513148903847, 0.012366868555545807, 0.07828895002603531, -0.008683773688971996, -0.061380535364151, -0.05997887998819351, 0.08985478430986404, 0.029187917709350586, -0.024912085384130478, 0.004304620437324047, 0.05803971737623215, 0.0680825263261795, -0.026658514514565468, 0.04905436933040619, -0.10280212759971619, -0.05439441278576851, 0.03701622039079666, -0.033805347979068756, -3.882680615969063e-33, 0.06257316470146179, 0.06123940274119377, -0.05776007100939751, 0.01866643689572811, -0.009855254553258419, -0.010127449408173561, -0.05079784244298935, 0.035252660512924194, -0.024552609771490097, -0.06461035460233688, -0.055960576981306076, -0.020211121067404747, 0.008070223964750767, -0.005312948487699032, -0.05352502688765526, -0.015278942883014679, -0.062373049557209015, 0.022724604234099388, -0.006842055357992649, 0.01736236922442913, 0.03499109297990799, -0.06874402612447739, 0.018409565091133118, 0.08607001602649689, 0.07452156394720078, -0.04523478448390961, 0.015883060172200203, 0.0022494925651699305, -0.0345773808658123, 0.02398330345749855, 0.0517742820084095, -0.0937383621931076, -0.04685641825199127, 0.006833333522081375, 0.05020737648010254, -0.017965639010071754, -0.033452585339546204, -0.055712733417749405, -0.028123997151851654, 0.0006317702354863286, -0.029811685904860497, 0.0027448961045593023, -0.0060141547583043575, 0.025720488280057907, -0.017530806362628937, 0.04568343609571457, 0.05501094460487366, 0.010864881798624992, -0.0007364913471974432, -0.08989561349153519, -0.018469715490937233, 0.019014570862054825, -0.005395734682679176, 0.04063406214118004, -0.04137232154607773, 0.06425304710865021, -0.009748070500791073, 0.13925756514072418, -0.02746388502418995, -0.022563651204109192, 0.043362244963645935, -0.10419797152280807, 0.03513316437602043, -0.04485779628157616, -0.013402648270130157, 0.039588846266269684, -0.018382661044597626, 0.0408453494310379, -0.06967434287071228, 0.059893954545259476, -0.044217854738235474, 0.006304827984422445, 0.0012846782337874174, -0.03238549083471298, -0.012348124757409096, -0.011244759894907475, 0.042373836040496826, 0.08514265716075897, 0.0597902350127697, -0.043611858040094376, -0.08232944458723068, 0.011052155867218971, -0.01671745628118515, -0.002173069631680846, 0.07911457866430283, -0.007227378897368908, 0.11799006164073944, -0.01597634144127369, 0.05363411828875542, 0.03435792401432991, -0.00650192704051733, 0.01576344482600689, -0.056502584367990494, 0.013704567216336727, -0.0275342408567667, -5.441497563651865e-8, 0.09574586898088455, 0.03444203734397888, -0.1457528918981552, 0.024786530062556267, 0.12211120128631592, 0.010599194094538689, -0.07253097742795944, 0.003281147452071309, -0.008512488566339016, 0.031935371458530426, -0.005754865240305662, 0.08465741574764252, -0.026717273518443108, 0.04164035618305206, 0.0877196192741394, 0.012843180447816849, -0.031781163066625595, 0.02265181578695774, -0.010492087341845036, -0.04224533215165138, -0.07819164544343948, -0.02052280865609646, 0.031513750553131104, 0.016112379729747772, 0.026825571432709694, -0.0188053660094738, 0.056651342660188675, 0.04320279136300087, 0.031218567863106728, -0.07079634815454483, 0.02563425712287426, -0.0013239143881946802, -0.09775844216346741, 0.05289753898978233, 0.09694419056177139, 0.03668450936675072, -0.06338335573673248, 0.13693542778491974, 0.08672282844781876, 0.060438573360443115, -0.03248971328139305, -0.060562603175640106, -0.0623762272298336, 0.026763644069433212, -0.059383902698755264, 0.08015022426843643, -0.05604959651827812, -0.0347486287355423, -0.07907195389270782, -0.0030354619957506657, 0.03565806522965431, -0.04682162031531334, -0.01864456571638584, 0.05375847592949867, -0.04177248105406761, 0.05145493522286415, -0.011644599959254265, 0.0033181319013237953, 0.06606986373662949, -0.044590339064598083, 0.03747526928782463, 0.004565312061458826, 0.020393788814544678, -0.0677066221833229 ]
0.051797
- `pkgs.k8s.io` - `pkgs.kubernetes.io` - `packages.kubernetes.io` {{}} ## Switching to another Kubernetes package repository This step should be done upon upgrading from one to another Kubernetes minor release in order to get access to the packages of the desired Kubernetes minor version. {{< tabs name="k8s\_upgrade\_versions" >}} {{% tab name="Ubuntu, Debian or HypriotOS" %}} 1. Open the file that defines the Kubernetes `apt` repository using a text editor of your choice: ```shell nano /etc/apt/sources.list.d/kubernetes.list ``` You should see a single line with the URL that contains your current Kubernetes minor version. For example, if you're using v{{< skew currentVersionAddMinor -1 "." >}}, you should see this: ``` deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v{{< skew currentVersionAddMinor -1 "." >}}/deb/ / ``` 1. Change the version in the URL to \*\*the next available minor release\*\*, for example: ``` deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/{{< param "version" >}}/deb/ / ``` 1. Save the file and exit your text editor. Continue following the relevant upgrade instructions. {{% /tab %}} {{% tab name="CentOS, RHEL or Fedora" %}} 1. Open the file that defines the Kubernetes `yum` repository using a text editor of your choice: ```shell nano /etc/yum.repos.d/kubernetes.repo ``` You should see a file with two URLs that contain your current Kubernetes minor version. For example, if you're using v{{< skew currentVersionAddMinor -1 "." >}}, you should see this: ``` [kubernetes] name=Kubernetes baseurl=https://pkgs.k8s.io/core:/stable:/v{{< skew currentVersionAddMinor -1 "." >}}/rpm/ enabled=1 gpgcheck=1 gpgkey=https://pkgs.k8s.io/core:/stable:/v{{< skew currentVersionAddMinor -1 "." >}}/rpm/repodata/repomd.xml.key exclude=kubelet kubeadm kubectl cri-tools kubernetes-cni ``` 1. Change the version in these URLs to \*\*the next available minor release\*\*, for example: ``` [kubernetes] name=Kubernetes baseurl=https://pkgs.k8s.io/core:/stable:/{{< param "version" >}}/rpm/ enabled=1 gpgcheck=1 gpgkey=https://pkgs.k8s.io/core:/stable:/{{< param "version" >}}/rpm/repodata/repomd.xml.key exclude=kubelet kubeadm kubectl cri-tools kubernetes-cni ``` 1. Save the file and exit your text editor. Continue following the relevant upgrade instructions. {{% /tab %}} {{< /tabs >}} ## {{% heading "whatsnext" %}} \* See how to [Upgrade Linux nodes](/docs/tasks/administer-cluster/kubeadm/upgrading-linux-nodes/). \* See how to [Upgrade Windows nodes](/docs/tasks/administer-cluster/kubeadm/upgrading-windows-nodes/).
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/kubeadm/change-package-repository.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/kubeadm/change-package-repository.md
[ 0.05710874870419502, 0.0249499324709177, 0.11541998386383057, -0.08325459808111191, 0.009188098832964897, 0.008769574575126171, -0.007584494072943926, -0.000010808234037540387, 0.045741308480501175, 0.07773639261722565, 0.01195587869733572, -0.021486802026629448, -0.08001910150051117, -0.04392535239458084, 0.02799566648900509, 0.03377482295036316, 0.025220386683940887, 0.020705515518784523, 0.01018553227186203, -0.040498193353414536, -0.020598411560058594, -0.040440090000629425, -0.03527914732694626, 0.004012825898826122, -0.019273927435278893, -0.019905883818864822, -0.01596164144575596, 0.05079085752367973, -0.061257414519786835, 0.017079059034585953, -0.055351704359054565, 0.048946741968393326, 0.023932818323373795, -0.054796624928712845, 0.10281674563884735, 0.07425814121961594, -0.07536723464727402, 0.06659340113401413, 0.014006773941218853, 0.06004638969898224, 0.01794883981347084, 0.014513758942484856, -0.03175761178135872, -0.04103349894285202, -0.004152051638811827, -0.055965762585401535, -0.06765057891607285, -0.039037346839904785, -0.028679991140961647, -0.03502930700778961, 0.08272732049226761, -0.09947769343852997, -0.007809282746165991, -0.02144940011203289, 0.030131734907627106, 0.03427906334400177, -0.061096880584955215, 0.09774194657802582, 0.05426996573805809, 0.012824194505810738, 0.04983542487025261, -0.013336905278265476, 0.031133970245718956, -0.04849451780319214, -0.10632792860269547, -0.0011846742127090693, 0.11060203611850739, -0.019649894908070564, 0.007457289379090071, -0.030767831951379776, 0.022534888237714767, 0.013320148922502995, -0.034365877509117126, -0.04294884204864502, 0.01756608672440052, -0.019291790202260017, 0.02950841188430786, 0.0775468721985817, 0.021030807867646217, -0.11043953150510788, 0.031638603657484055, -0.03691469877958298, 0.017513031139969826, -0.043114058673381805, -0.10813620686531067, -0.016467511653900146, -0.026207203045487404, -0.06015639752149582, 0.06558670103549957, -0.01896684244275093, -0.023120177909731865, -0.1074066162109375, 0.09702512621879578, -0.11092565953731537, 0.08683712780475616, 0.008081002160906792, -0.06079939380288124, 0.05587909370660782, 0.004789663013070822, 0.026251455768942833, 0.02819053828716278, -0.0028761797584593296, -0.013484997674822807, 0.03920713812112808, 0.0625789538025856, 0.04152493178844452, 0.01632431522011757, -0.03157174587249756, 0.04289372265338898, 0.024691583588719368, -0.015357865020632744, 0.05314427986741066, 0.017113231122493744, -0.04088051989674568, 0.027418261393904686, -0.011407552286982536, 0.016890764236450195, 0.04625885933637619, 0.032734207808971405, 0.014739400707185268, 0.02945319376885891, -0.06831405311822891, 0.009558391757309437, -0.012093264609575272, -0.12286151945590973, 0.04891908913850784, -0.0593298077583313, 2.6110796837334682e-33, 0.09332551062107086, 0.05919904261827469, 0.014239245094358921, -0.04910619556903839, 0.006989953573793173, -0.1289162039756775, 0.03389939293265343, -0.04675501585006714, -0.08932487666606903, -0.025021938607096672, -0.11010996997356415, 0.02900921367108822, -0.026785090565681458, -0.0763535127043724, 0.003518667072057724, 0.016593854874372482, -0.09291688352823257, 0.06157276779413223, 0.09633234143257141, 0.03398697078227997, -0.022575683891773224, -0.0586748830974102, -0.009748551994562149, 0.004898735322058201, 0.05900600552558899, -0.06434529274702072, 0.06710582226514816, -0.005851431284099817, -0.08322863280773163, -0.05180557444691658, 0.00801874604076147, -0.030308935791254044, 0.02802230417728424, -0.01756695657968521, -0.14907518029212952, -0.08685602247714996, -0.02206537313759327, 0.028790032491087914, 0.00017045647837221622, -0.03472542390227318, 0.07849357277154922, 0.009914545342326164, -0.024057537317276, 0.010630732402205467, 0.1335618495941162, 0.017169512808322906, -0.005917835049331188, -0.04504036903381348, 0.12797889113426208, -0.02786239981651306, -0.013713465072214603, -0.028326475992798805, -0.04343272000551224, -0.051890578120946884, -0.042471036314964294, 0.011625735089182854, 0.10815507918596268, -0.0079774409532547, 0.04381513223052025, -0.0917162150144577, 0.06581645458936691, -0.0335184745490551, 0.03972068428993225, -0.05618524178862572, 0.09316765516996384, 0.023461822420358658, -0.08797614276409149, 0.04135030135512352, 0.018086625263094902, -0.025135012343525887, -0.09739072620868683, -0.03368484228849411, -0.05212627723813057, -0.0012929458171129227, 0.02307828702032566, -0.04293167591094971, -0.0013523560483008623, 0.034366413950920105, 0.014626432210206985, 0.06892835348844528, 0.03393762558698654, -0.016502242535352707, -0.06678374111652374, 0.0804223045706749, 0.013547093607485294, -0.012996252626180649, 0.0049629067070782185, 0.008841420523822308, 0.04498041421175003, 0.03197482228279114, -0.016045350581407547, -0.07831801474094391, -0.05860244110226631, 0.014817537739872932, -0.015306451357901096, -4.045400625533546e-33, 0.05751785263419151, 0.05402233079075813, -0.006574149243533611, 0.006823340896517038, 0.002964738057926297, 0.015219522640109062, -0.03959401324391365, 0.04805880784988403, -0.03739804029464722, -0.06274072080850601, 0.007681593764573336, 0.00756142707541585, 0.024095838889479637, -0.051167380064725876, -0.026205765083432198, 0.04367104172706604, -0.08703257143497467, 0.04033244028687477, -0.006323184818029404, 0.004325295798480511, 0.03272666782140732, -0.03122643008828163, -0.02393844537436962, 0.042903799563646317, 0.026089655235409737, -0.05164872482419014, 0.08196958899497986, 0.04107321798801422, -0.06118645519018173, -0.010268201120197773, 0.009963243268430233, -0.07313618808984756, -0.04199681803584099, 0.06976693868637085, 0.02578003518283367, -0.021029647439718246, 0.0036211656406521797, -0.05676770210266113, -0.035592980682849884, 0.02784481830894947, -0.03429710865020752, -0.051075782626867294, 0.01677093841135502, 0.015784852206707, -0.05562430992722511, 0.0684574544429779, 0.06075740605592728, 0.01349603570997715, -0.02731875702738762, -0.11398126929998398, 0.03331085667014122, -0.006493049673736095, -0.09288584440946579, 0.03927580267190933, -0.005464288871735334, 0.08309965580701828, 0.021874701604247093, 0.13127611577510834, 0.003772853408008814, -0.013003457337617874, -0.016418803483247757, -0.08385804295539856, 0.07880314439535141, -0.007876269519329071, -0.0313398651778698, 0.03239492326974869, -0.05852069333195686, 0.036167558282613754, -0.06506986171007156, 0.033763568848371506, -0.018628671765327454, -0.013881009072065353, 0.048806942999362946, -0.015061566606163979, 0.0078069050796329975, -0.05313299968838692, 0.02573070302605629, 0.07570958882570267, 0.058010999113321304, -0.016340261325240135, -0.012215226888656616, 0.01756061054766178, -0.0018119566375389695, -0.02040768601000309, 0.0395171120762825, 0.03225861117243767, 0.10750266164541245, -0.002247061813250184, 0.05540245398879051, 0.012331116013228893, 0.012493838556110859, 0.01569913513958454, -0.047547850757837296, 0.02009701542556286, -0.005743349436670542, -4.970800659975794e-8, 0.12259434908628464, 0.02813636139035225, -0.09985130280256271, 0.06647413223981857, 0.11672776937484741, 0.006634735967963934, -0.03050372190773487, 0.007350673899054527, -0.028586145490407944, -0.04065237194299698, -0.04720824584364891, 0.07336202263832092, -0.009904289618134499, 0.028232811018824577, 0.061261169612407684, -0.021722624078392982, -0.046845484524965286, 0.04044137895107269, 0.029976844787597656, -0.017243795096874237, -0.059518963098526, -0.019869200885295868, 0.02964538335800171, -0.004850124008953571, 0.051097821444272995, 0.0018279465148225427, 0.034195151180028915, 0.017922762781381607, 0.057400185614824295, -0.013623726554214954, 0.06565158814191818, 0.006566599942743778, -0.09036221355199814, -0.0006234520697034895, 0.10794148594141006, 0.01711411029100418, -0.12560869753360748, 0.08434370160102844, 0.062466688454151154, 0.05952126532793045, -0.024113863706588745, -0.09161925315856934, -0.0584636852145195, 0.03950488567352295, -0.06447599083185196, 0.04684135317802429, -0.012516522780060768, -0.013474852778017521, -0.03221462666988373, 0.01718011684715748, 0.03566892072558403, -0.059453606605529785, -0.0056632813066244125, 0.024798637256026268, -0.07699782401323318, 0.02785734459757805, -0.035693760961294174, -0.054741788655519485, -0.014065040275454521, -0.08022432774305344, 0.028985630720853806, 0.008784693665802479, 0.019157616421580315, -0.030824795365333557 ]
-0.010804
This page explains how to upgrade a Linux Worker Nodes created with kubeadm. ## {{% heading "prerequisites" %}} {{< include "task-tutorial-prereqs-node-upgrade.md" >}} {{< version-check >}} \* Familiarize yourself with [the process for upgrading the rest of your kubeadm cluster](/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade). You will want to upgrade the control plane nodes before upgrading your Linux Worker nodes. ## Changing the package repository If you're using the community-owned package repositories (`pkgs.k8s.io`), you need to enable the package repository for the desired Kubernetes minor release. This is explained in [Changing the Kubernetes package repository](/docs/tasks/administer-cluster/kubeadm/change-package-repository/) document. {{% legacy-repos-deprecation %}} ## Upgrading worker nodes ### Upgrade kubeadm Upgrade kubeadm: {{< tabs name="k8s\_install\_kubeadm\_worker\_nodes" >}} {{% tab name="Ubuntu, Debian or HypriotOS" %}} ```shell # replace x in {{< skew currentVersion >}}.x-\* with the latest patch version sudo apt-mark unhold kubeadm && \ sudo apt-get update && sudo apt-get install -y kubeadm='{{< skew currentVersion >}}.x-\*' && \ sudo apt-mark hold kubeadm ``` {{% /tab %}} {{% tab name="CentOS, RHEL or Fedora" %}} For systems with DNF: ```shell # replace x in {{< skew currentVersion >}}.x-\* with the latest patch version sudo yum install -y kubeadm-'{{< skew currentVersion >}}.x-\*' --disableexcludes=kubernetes ``` For systems with DNF5: ```shell # replace x in {{< skew currentVersion >}}.x-\* with the latest patch version sudo yum install -y kubeadm-'{{< skew currentVersion >}}.x-\*' --setopt=disable\_excludes=kubernetes ``` {{% /tab %}} {{< /tabs >}} ### Call "kubeadm upgrade" For worker nodes this upgrades the local kubelet configuration: ```shell sudo kubeadm upgrade node ``` ### Drain the node Prepare the node for maintenance by marking it unschedulable and evicting the workloads: ```shell # execute this command on a control plane node # replace with the name of your node you are draining kubectl drain --ignore-daemonsets ``` ### Upgrade kubelet and kubectl 1. Upgrade the kubelet and kubectl: {{< tabs name="k8s\_kubelet\_and\_kubectl" >}} {{% tab name="Ubuntu, Debian or HypriotOS" %}} ```shell # replace x in {{< skew currentVersion >}}.x-\* with the latest patch version sudo apt-mark unhold kubelet kubectl && \ sudo apt-get update && sudo apt-get install -y kubelet='{{< skew currentVersion >}}.x-\*' kubectl='{{< skew currentVersion >}}.x-\*' && \ sudo apt-mark hold kubelet kubectl ``` {{% /tab %}} {{% tab name="CentOS, RHEL or Fedora" %}} For systems with DNF: ```shell # replace x in {{< skew currentVersion >}}.x-\* with the latest patch version sudo yum install -y kubelet-'{{< skew currentVersion >}}.x-\*' kubectl-'{{< skew currentVersion >}}.x-\*' --disableexcludes=kubernetes ``` For systems with DNF5: ```shell # replace x in {{< skew currentVersion >}}.x-\* with the latest patch version sudo yum install -y kubelet-'{{< skew currentVersion >}}.x-\*' kubectl-'{{< skew currentVersion >}}.x-\*' --setopt=disable\_excludes=kubernetes ``` {{% /tab %}} {{< /tabs >}} 1. Restart the kubelet: ```shell sudo systemctl daemon-reload sudo systemctl restart kubelet ``` ### Uncordon the node Bring the node back online by marking it schedulable: ```shell # execute this command on a control plane node # replace with the name of your node kubectl uncordon ``` ## {{% heading "whatsnext" %}} \* See how to [Upgrade Windows nodes](/docs/tasks/administer-cluster/kubeadm/upgrading-windows-nodes/).
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/kubeadm/upgrading-linux-nodes.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/kubeadm/upgrading-linux-nodes.md
[ 0.03553524240851402, -0.04418385401368141, 0.03721277415752411, -0.032991353422403336, 0.0012005874887108803, 0.012289226986467838, -0.0669439360499382, -0.0472906194627285, -0.02814432792365551, 0.1275741010904312, -0.011453033424913883, -0.052627772092819214, -0.03741525858640671, -0.05373627692461014, 0.05607441067695618, 0.050954073667526245, 0.05537671595811844, -0.030566053465008736, 0.05494043976068497, -0.06100481003522873, -0.04121201112866402, -0.03285437822341919, 0.016261182725429535, -0.0025387576315551996, -0.04307222366333008, 0.0033295070752501488, -0.02928457222878933, -0.007169593125581741, -0.018970869481563568, 0.00936474185436964, -0.025291405618190765, 0.01852318085730076, 0.0169229693710804, 0.027261953800916672, 0.030440742149949074, 0.12708908319473267, -0.018369706347584724, 0.022491073235869408, -0.009211610071361065, 0.047714345157146454, 0.06039877235889435, 0.01567910611629486, -0.05387948080897331, -0.033012792468070984, -0.02730099856853485, 0.03510412573814392, -0.03916679322719574, -0.030289046466350555, 0.004964638501405716, -0.04213620349764824, 0.04483091086149216, -0.12439380586147308, 0.033668309450149536, -0.00532572390511632, 0.00025199688388966024, 0.06722846627235413, 0.027775095775723457, 0.03295104205608368, 0.06054380536079407, -0.05366603285074234, 0.03851231560111046, -0.04258159548044205, 0.04822998121380806, -0.08491066098213196, -0.055938009172677994, -0.04133438318967819, 0.058823563158512115, -0.026416724547743797, 0.00912315770983696, -0.012875308282673359, 0.018487561494112015, 0.017766017466783524, -0.008206003345549107, -0.0390041284263134, -0.010757189244031906, 0.0625656396150589, 0.018094917759299278, 0.042419254779815674, 0.01836214028298855, -0.04438161104917526, 0.0041680834256112576, -0.0036040344275534153, 0.0409899465739727, -0.04411815479397774, -0.13561628758907318, 0.0054702661000192165, -0.08244114369153976, -0.07269176095724106, 0.03298792615532875, -0.003869474632665515, 0.019520699977874756, -0.05205487459897995, 0.001982420450076461, -0.10648176819086075, 0.012188855558633804, 0.0064790756441652775, -0.09403479099273682, 0.06267999857664108, 0.03142514079809189, -0.006935637444257736, 0.05506899952888489, -0.022044915705919266, -0.01650996319949627, 0.01122239138931036, -0.0323951318860054, 0.031179793179035187, -0.03988930583000183, 0.01856672391295433, -0.02328328974545002, 0.05318884924054146, 0.012585194781422615, 0.07258434593677521, -0.035240765661001205, -0.029447786509990692, -0.011105120182037354, -0.004542126320302486, 0.06688772886991501, -0.06695252656936646, -0.04591481387615204, 0.07153137028217316, 0.04151512309908867, -0.04402098432183266, -0.018786508589982986, 0.02645120769739151, -0.08893703669309616, -0.00358629715628922, -0.04248956963419914, 3.9232663951411255e-33, 0.06898719072341919, 0.016626544296741486, 0.01943856291472912, -0.02242411859333515, 0.04639574512839317, -0.09035585820674896, -0.023267539218068123, -0.052272867411375046, 0.008838141337037086, -0.06653974950313568, -0.0985574722290039, -0.03887501731514931, 0.002536991611123085, -0.0358809158205986, 0.026697639375925064, -0.06339630484580994, -0.0441141203045845, -0.023084543645381927, 0.10702349245548248, 0.04010259360074997, 0.03385008126497269, -0.05707632005214691, -0.05452165752649307, 0.03469002991914749, 0.019268587231636047, 0.03417529910802841, 0.08973561227321625, -0.0708521157503128, -0.030851958319544792, -0.023752285167574883, -0.05556851997971535, 0.029388153925538063, 0.02965075522661209, 0.023120183497667313, -0.23591865599155426, -0.027164500206708908, -0.03686833754181862, 0.004571808036416769, -0.06510470807552338, -0.09609498083591461, -0.004272108897566795, 0.011736944317817688, 0.03182106092572212, -0.03023388795554638, 0.14133517444133759, 0.0010504104429855943, 0.06013067066669464, -0.04733429476618767, 0.1481812298297882, -0.03654053062200546, -0.0020023887045681477, -0.054680898785591125, 0.04210658371448517, -0.02999749965965748, 0.009480376727879047, 0.04029452055692673, 0.17180131375789642, -0.016838202252984047, 0.00920083001255989, -0.05359233170747757, 0.05590791627764702, -0.04761887714266777, 0.009998642839491367, 0.03207845613360405, 0.08706613630056381, 0.01752197928726673, -0.029770493507385254, 0.08414673060178757, 0.0270138680934906, 0.00012637441977858543, -0.034471575170755386, -0.01138997171074152, -0.015167142264544964, 0.09353068470954895, -0.023655317723751068, -0.006946938578039408, -0.03554448112845421, 0.021702047437429428, -0.05047868564724922, 0.07254648953676224, 0.033333055675029755, -0.029681876301765442, -0.011913500726222992, 0.00033190316753461957, 0.12048493325710297, -0.06651852279901505, 0.018430322408676147, 0.0667346715927124, 0.062217436730861664, 0.030609551817178726, 0.08536072820425034, -0.08516006916761398, -0.025410817936062813, 0.07027699798345566, -0.08024308830499649, -5.1238748154267465e-33, 0.041003234684467316, 0.06824366003274918, -0.07843629270792007, 0.039007458835840225, 0.016797926276922226, 0.049518462270498276, -0.036785829812288284, 0.028989048674702644, -0.05591052770614624, -0.05289623141288757, -0.08953138440847397, -0.0320342518389225, 0.06479652225971222, -0.02677447907626629, -0.08198125660419464, -0.029324768111109734, -0.059104256331920624, 0.033214468508958817, -0.018947236239910126, -0.0008469992899335921, 0.022131381556391716, 0.02083445154130459, 0.04417986050248146, 0.01930587738752365, 0.03508462756872177, -0.03151898831129074, 0.05332719907164574, 0.09719137102365494, -0.01899135671555996, 0.03265630453824997, -0.021144762635231018, -0.052002329379320145, 0.005003978032618761, 0.06205546855926514, 0.031852807849645615, -0.04308059439063072, 0.017130529507994652, -0.05836709216237068, -0.000037117952160770074, -0.0004313190875109285, 0.03136945143342018, -0.02212638407945633, -0.028055155649781227, -0.060722120106220245, -0.023037927225232124, 0.014431221410632133, -0.002347522182390094, -0.015212067402899265, -0.031308744102716446, -0.12246912717819214, -0.038805343210697174, 0.04738231748342514, -0.037098951637744904, 0.04421321675181389, -0.017313063144683838, 0.046767208725214005, 0.0352746918797493, 0.10384213924407959, 0.024549197405576706, -0.04291863366961479, 0.005269640125334263, -0.06634385138750076, 0.0777159258723259, 0.02901233732700348, -0.015419594943523407, -0.01577657088637352, 0.007386922836303711, 0.045230310410261154, -0.03941675275564194, 0.09222868829965591, -0.05889422446489334, 0.06992845982313156, -0.01390212494879961, 0.03415253385901451, 0.017326120287179947, -0.06726744771003723, 0.055887993425130844, 0.06591449677944183, 0.03088648058474064, -0.054245416074991226, -0.049084488302469254, 0.014319625683128834, -0.015314488671720028, 0.023729104548692703, 0.08899171650409698, 0.06038340553641319, 0.1164306178689003, 0.044668372720479965, -0.0014299422036856413, 0.015017875470221043, 0.016609393060207367, -0.052164435386657715, -0.05911925062537193, 0.04224046692252159, -0.03117896430194378, -6.053617340739947e-8, 0.03719441965222359, 0.0626782700419426, -0.10235748440027237, 0.005795471835881472, 0.1093176007270813, -0.043604422360658646, -0.00496383523568511, 0.02235656976699829, -0.008272720500826836, 0.002694597002118826, -0.009677289985120296, 0.07041437178850174, 0.025513991713523865, 0.02119639702141285, 0.058597907423973083, -0.004404937848448753, -0.049797240644693375, 0.04091174528002739, 0.04292762652039528, -0.07685912400484085, -0.05158194154500961, -0.04720597714185715, -0.01889890432357788, 0.03005770966410637, 0.05565767362713814, 0.04146968945860863, -0.017204010859131813, 0.010811194777488708, 0.03355676680803299, 0.012540697120130062, -0.04335620254278183, 0.00633629085496068, -0.08827780187129974, 0.02766568772494793, 0.07298537343740463, 0.01206245832145214, -0.08398456126451492, 0.07085327059030533, 0.062136970460414886, 0.07901720702648163, -0.01710517890751362, -0.0014187110355123878, -0.11174570769071579, 0.024647250771522522, -0.030271390452980995, 0.05917024239897728, -0.08126992732286453, 0.012738076038658619, -0.042137451469898224, -0.042528729885816574, 0.06392025202512741, 0.0030207412783056498, -0.0413823202252388, -0.006616545841097832, -0.04821813106536865, 0.022092942148447037, -0.025750597938895226, -0.03561684489250183, 0.0092774648219347, -0.028326598927378654, 0.0777742862701416, 0.003195900470018387, -0.022745709866285324, -0.08002030104398727 ]
0.060936
This page explains how to add Linux worker nodes to a kubeadm cluster. ## {{% heading "prerequisites" %}} \* Each joining worker node has installed the required components from [Installing kubeadm](/docs/setup/production-environment/tools/kubeadm/install-kubeadm/), such as, kubeadm, the kubelet and a {{< glossary\_tooltip term\_id="container-runtime" text="container runtime" >}}. \* A running kubeadm cluster created by `kubeadm init` and following the steps in the document [Creating a cluster with kubeadm](/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/). \* You need superuser access to the node. ## Adding Linux worker nodes To add new Linux worker nodes to your cluster do the following for each machine: 1. Connect to the machine by using SSH or another method. 1. Run the command that was output by `kubeadm init`. For example: ```bash sudo kubeadm join --token : --discovery-token-ca-cert-hash sha256: ``` ### Additional information for kubeadm join {{< note >}} To specify an IPv6 tuple for `:`, IPv6 address must be enclosed in square brackets, for example: `[2001:db8::101]:2073`. {{< /note >}} If you do not have the token, you can get it by running the following command on the control plane node: ```bash # Run this on a control plane node sudo kubeadm token list ``` The output is similar to this: ```console TOKEN TTL EXPIRES USAGES DESCRIPTION EXTRA GROUPS 8ewj1p.9r9hcjoqgajrj4gi 23h 2018-06-12T02:51:28Z authentication, The default bootstrap system: signing token generated by bootstrappers: 'kubeadm init'. kubeadm: default-node-token ``` By default, node join tokens expire after 24 hours. If you are joining a node to the cluster after the current token has expired, you can create a new token by running the following command on the control plane node: ```bash # Run this on a control plane node sudo kubeadm token create ``` The output is similar to this: ```console 5didvk.d09sbcov8ph2amjw ``` To print a kubeadm join command while also generating a new token you can use: ```bash sudo kubeadm token create --print-join-command ``` If you don't have the value of `--discovery-token-ca-cert-hash`, you can get it by running the following commands on the control plane node: ```bash # Run this on a control plane node sudo cat /etc/kubernetes/pki/ca.crt | openssl x509 -pubkey | openssl rsa -pubin -outform der 2>/dev/null | \ openssl dgst -sha256 -hex | sed 's/^.\* //' ``` The output is similar to: ```console 8cb2de97839780a412b93877f8507ad6c94f73add17d5d7058e91741c9d5ec78 ``` The output of the `kubeadm join` command should look something like: ``` [preflight] Running pre-flight checks ... (log output of join workflow) ... Node join complete: \* Certificate signing request sent to control-plane and response received. \* Kubelet informed of new secure connection details. Run 'kubectl get nodes' on control-plane to see this machine join. ``` A few seconds later, you should notice this node in the output from `kubectl get nodes`. (for example, run `kubectl` on a control plane node). {{< note >}} As the cluster nodes are usually initialized sequentially, the CoreDNS Pods are likely to all run on the first control plane node. To provide higher availability, please rebalance the CoreDNS Pods with `kubectl -n kube-system rollout restart deployment coredns` after at least one new node is joined. {{< /note >}} ## {{% heading "whatsnext" %}} \* See how to [add Windows worker nodes](/docs/tasks/administer-cluster/kubeadm/adding-windows-nodes/).
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/kubeadm/adding-linux-nodes.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/kubeadm/adding-linux-nodes.md
[ 0.036897074431180954, -0.06621940433979034, -0.017449181526899338, -0.024550028145313263, -0.03169829770922661, 0.007503828499466181, -0.03740603104233742, -0.02263951301574707, -0.03921680897474289, 0.020143862813711166, -0.01310757640749216, -0.12102402001619339, 0.016912316903471947, -0.07612384110689163, 0.01600443199276924, -0.012564768083393574, 0.06311327964067459, -0.012737627141177654, 0.03957859054207802, -0.10939156264066696, -0.023112688213586807, -0.0490109883248806, 0.015735648572444916, -0.02619924768805504, -0.017022471874952316, -0.006697495933622122, -0.00030386546859517694, 0.001801357022486627, 0.02026348002254963, 0.03173262998461723, -0.016033710911870003, 0.03218211978673935, 0.02372518740594387, 0.058292437344789505, -0.001283400459215045, 0.1304810643196106, 0.012325217947363853, 0.008930377662181854, -0.09331940859556198, -0.040036533027887344, 0.07443605363368988, -0.03453259915113449, -0.0889890268445015, -0.022078391164541245, -0.02647717110812664, 0.01739317737519741, -0.0610000304877758, -0.045588236302137375, 0.017221836373209953, -0.033127009868621826, 0.016418522223830223, -0.0848054513335228, 0.028460657224059105, 0.03987953066825867, -0.014928756281733513, 0.04830222576856613, -0.002823919989168644, -0.013218006119132042, 0.07822049409151077, -0.01822470873594284, 0.06430234014987946, -0.0036349459551274776, 0.022462202236056328, -0.026443930342793465, 0.0035706493072211742, -0.022632118314504623, 0.013424525037407875, 0.026631537824869156, -0.04620811715722084, 0.0013675119262188673, 0.07146038860082626, -0.008606207557022572, -0.007892614230513573, -0.02894224412739277, -0.057833198457956314, 0.023299645632505417, -0.03415488824248314, 0.06598091125488281, -0.022682219743728638, -0.029616860672831535, -0.02682231366634369, 0.07792870700359344, 0.056958865374326706, -0.0087274219840765, -0.1605234444141388, 0.013509644195437431, -0.03297094255685806, -0.015797685831785202, 0.03217203915119171, -0.02288191393017769, 0.03102089837193489, -0.008845250122249126, -0.04736718535423279, -0.12261786311864853, 0.05906552076339722, -0.017710311338305473, 0.010193170048296452, 0.08198916167020798, 0.05839664489030838, -0.03292263299226761, -0.010831133462488651, -0.03020698018372059, -0.02039187401533127, -0.0032583363354206085, -0.05203448235988617, -0.02695504203438759, -0.0868183821439743, -0.0028253626078367233, 0.016943054273724556, 0.03216260299086571, 0.012085611000657082, 0.06283631920814514, -0.04322287067770958, 0.015298525802791119, -0.019687220454216003, -0.014619076624512672, 0.06959811598062515, -0.0765303373336792, -0.013331207446753979, 0.06224902719259262, 0.033601872622966766, -0.05808527395129204, -0.01401605550199747, 0.021040916442871094, -0.025593020021915436, -0.0010683017317205667, -0.05833643302321434, 3.656065141597696e-33, 0.12240651994943619, -0.05255288630723953, 0.07221892476081848, -0.0162922702729702, 0.09079259634017944, -0.0614079087972641, -0.0772620365023613, -0.03648320958018303, -0.03775980696082115, -0.04438268393278122, -0.07588772475719452, 0.03627796098589897, 0.024810003116726875, -0.016999179497361183, -0.02743995189666748, -0.06696018576622009, -0.05204403027892113, -0.0021654493175446987, 0.05843086168169975, 0.020103873685002327, 0.009951291605830193, -0.03976021334528923, -0.03165288269519806, 0.05508950725197792, -0.00016821165627334267, 0.03316066041588783, 0.06406054645776749, -0.09487452358007431, 0.013203379698097706, 0.024149637669324875, -0.009167755022644997, 0.004726295359432697, -0.020171843469142914, 0.04497138410806656, -0.18478746712207794, -0.008458462543785572, -0.007495929952710867, 0.021522074937820435, -0.08351507782936096, -0.04577811807394028, -0.009554383344948292, -0.014640768989920616, 0.05841909721493721, -0.09101007133722305, 0.06748825311660767, 0.00037054013228043914, 0.06318213790655136, -0.05531814694404602, 0.14841347932815552, 0.02068125456571579, -0.003305295715108514, -0.05729181319475174, 0.07369992882013321, -0.013553482480347157, 0.04415608197450638, 0.13257735967636108, 0.07512401789426804, -0.054710183292627335, -0.03557905554771423, -0.00978680606931448, -0.07968523353338242, 0.04929143562912941, -0.012905699200928211, 0.08823977410793304, 0.013583796098828316, -0.00855586864054203, -0.025794196873903275, 0.10802435874938965, 0.038075391203165054, 0.006591626908630133, -0.06806308776140213, -0.02030196227133274, -0.014309568330645561, 0.09620659798383713, -0.027239767834544182, 0.03350232169032097, 0.007288709282875061, -0.019838819280266762, -0.17206788063049316, 0.04615655168890953, -0.0006225918186828494, -0.07715589553117752, -0.0307780671864748, -0.000508600496686995, 0.08282211422920227, -0.024210333824157715, -0.032697275280952454, 0.04094045236706734, -0.00401310482993722, 0.028366725891828537, 0.02270764298737049, -0.03110611066222191, -0.02495700865983963, 0.06571665406227112, -0.1063435822725296, -6.662701245776756e-33, 0.04161965847015381, 0.01907007209956646, -0.013732636347413063, 0.03917399421334267, 0.10237622261047363, 0.08170410990715027, -0.006487505976110697, -0.013129888102412224, -0.04166550934314728, -0.009079473093152046, -0.07149356603622437, -0.014805596321821213, 0.0541875883936882, 0.03968443721532822, -0.10480383038520813, 0.023070544004440308, -0.016599224880337715, 0.052173905074596405, -0.024552006274461746, 0.014096644707024097, -0.017292272299528122, -0.005682001356035471, 0.05867951363325119, -0.020970655605196953, 0.01696160063147545, 0.026087075471878052, 0.05336785688996315, 0.05950656533241272, -0.09093092381954193, -0.021216096356511116, 0.029675042256712914, -0.03696553409099579, -0.011060104705393314, 0.04010634124279022, 0.03513682633638382, -0.04813459888100624, 0.010724741965532303, 0.018310798332095146, -0.00872707087546587, -0.05234648659825325, 0.05858778953552246, -0.03946523740887642, -0.0914856418967247, -0.08736401796340942, -0.043080564588308334, 0.0021715436596423388, -0.001779803424142301, -0.02664600871503353, -0.075180284678936, -0.08736009895801544, -0.027544157579541206, -0.0038718217983841896, -0.033039771020412445, 0.030408065766096115, -0.055070918053388596, 0.018757779151201248, 0.028485829010605812, 0.0850311741232872, 0.0009441750589758158, 0.0006288556032814085, 0.06589683145284653, -0.11553001403808594, 0.09635518491268158, 0.04240242764353752, -0.03255404159426689, -0.09680958837270737, 0.002220362890511751, 0.055442482233047485, -0.08663289248943329, 0.03568250313401222, -0.0956423357129097, 0.057085227221250534, 0.006112311035394669, 0.07840501517057419, 0.018788622692227364, -0.019720900803804398, -0.0037819952704012394, -0.047629158943891525, -0.017684265971183777, 0.003326056757941842, -0.004185476340353489, 0.035120368003845215, -0.01867939531803131, 0.004561817739158869, 0.052753522992134094, 0.04201215133070946, 0.09726521372795105, 0.10882242769002914, 0.054948702454566956, 0.0019952261354774237, -0.03456873819231987, 0.007396009750664234, -0.045773930847644806, 0.08324044942855835, -0.04050343111157417, -5.693044613508391e-8, 0.07222742587327957, 0.02999218925833702, -0.09070590138435364, -0.017808428034186363, 0.03484179824590683, -0.0434090793132782, 0.013305410742759705, 0.034894298762083054, -0.05660875514149666, -0.007020372431725264, -0.019965965300798416, 0.025149114429950714, -0.026177726686000824, 0.06317216157913208, 0.035498447716236115, -0.008649996481835842, -0.04782704636454582, -0.0017734311986714602, 0.026434168219566345, -0.09633135050535202, -0.00518276821821928, -0.054497409611940384, 0.013605318032205105, 0.06937786936759949, 0.019212232902646065, 0.06515459716320038, 0.04724309220910072, -0.03791635110974312, 0.024334989488124847, 0.0379212386906147, -0.05470719188451767, 0.0037551834248006344, -0.13703685998916626, 0.06636691093444824, 0.026525866240262985, 0.01005412358790636, -0.11218419671058655, 0.05539480224251747, 0.07403669506311417, 0.028586452826857567, -0.00744984345510602, 0.015165040269494057, -0.07234692573547363, 0.00990491546690464, 0.023594899103045464, 0.08013937622308731, -0.07254533469676971, 0.05806656926870346, -0.019291453063488007, -0.015248597599565983, 0.025699401274323463, 0.005151331890374422, 0.013454512692987919, 0.04874343052506447, -0.014949108473956585, 0.045460253953933716, -0.026463985443115234, -0.036988526582717896, 0.0684288740158081, -0.05473850294947624, 0.004070386756211519, 0.03685269504785538, 0.00821851659566164, -0.02053891494870186 ]
0.145995
{{< feature-state for\_k8s\_version="v1.18" state="beta" >}} This page explains how to add Windows worker nodes to a kubeadm cluster. ## {{% heading "prerequisites" %}} \* A running [Windows Server 2022](https://www.microsoft.com/cloud-platform/windows-server-pricing) (or higher) instance with administrative access. \* A running kubeadm cluster created by `kubeadm init` and following the steps in the document [Creating a cluster with kubeadm](/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/). ## Adding Windows worker nodes {{< note >}} To facilitate the addition of Windows worker nodes to a cluster, PowerShell scripts from the repository https://sigs.k8s.io/sig-windows-tools are used. {{< /note >}} Do the following for each machine: 1. Open a PowerShell session on the machine. 1. Make sure you are Administrator or a privileged user. Then proceed with the steps outlined below. ### Install containerd {{% thirdparty-content %}} To install containerd, first run the following command: ```PowerShell curl.exe -LO https://raw.githubusercontent.com/kubernetes-sigs/sig-windows-tools/master/hostprocess/Install-Containerd.ps1 `````` Then run the following command, but first replace `CONTAINERD\_VERSION` with a recent release from the [containerd repository](https://github.com/containerd/containerd/releases). The version must not have a `v` prefix. For example, use `1.7.22` instead of `v1.7.22`: ```PowerShell .\Install-Containerd.ps1 -ContainerDVersion CONTAINERD\_VERSION ``` \* Adjust any other parameters for `Install-Containerd.ps1` such as `netAdapterName` as you need them. \* Set `skipHypervisorSupportCheck` if your machine does not support Hyper-V and cannot host Hyper-V isolated containers. \* If you change the `Install-Containerd.ps1` optional parameters `CNIBinPath` and/or `CNIConfigPath` you will need to configure the installed Windows CNI plugin with matching values. ### Install kubeadm and kubelet Run the following commands to install kubeadm and the kubelet: ```PowerShell curl.exe -LO https://raw.githubusercontent.com/kubernetes-sigs/sig-windows-tools/master/hostprocess/PrepareNode.ps1 .\PrepareNode.ps1 -KubernetesVersion v{{< skew currentPatchVersion >}} ``` \* Adjust the parameter `KubernetesVersion` of `PrepareNode.ps1` if needed. ### Run `kubeadm join` Run the command that was output by `kubeadm init`. For example: ```bash kubeadm join --token : --discovery-token-ca-cert-hash sha256: ``` #### Additional information about kubeadm join {{< note >}} To specify an IPv6 tuple for `:`, IPv6 address must be enclosed in square brackets, for example: `[2001:db8::101]:2073`. {{< /note >}} If you do not have the token, you can get it by running the following command on the control plane node: ```bash # Run this on a control plane node sudo kubeadm token list ``` The output is similar to this: ```console TOKEN TTL EXPIRES USAGES DESCRIPTION EXTRA GROUPS 8ewj1p.9r9hcjoqgajrj4gi 23h 2018-06-12T02:51:28Z authentication, The default bootstrap system: signing token generated by bootstrappers: 'kubeadm init'. kubeadm: default-node-token ``` By default, node join tokens expire after 24 hours. If you are joining a node to the cluster after the current token has expired, you can create a new token by running the following command on the control plane node: ```bash # Run this on a control plane node sudo kubeadm token create ``` The output is similar to this: ```console 5didvk.d09sbcov8ph2amjw ``` If you don't have the value of `--discovery-token-ca-cert-hash`, you can get it by running the following commands on the control plane node: ```bash sudo cat /etc/kubernetes/pki/ca.crt | openssl x509 -pubkey | openssl rsa -pubin -outform der 2>/dev/null | \ openssl dgst -sha256 -hex | sed 's/^.\* //' ``` The output is similar to: ```console 8cb2de97839780a412b93877f8507ad6c94f73add17d5d7058e91741c9d5ec78 ``` The output of the `kubeadm join` command should look something like: ``` [preflight] Running pre-flight checks ... (log output of join workflow) ... Node join complete: \* Certificate signing request sent to control-plane and response received. \* Kubelet informed of new secure connection details. Run 'kubectl get nodes' on control-plane to see this machine join. ``` A few seconds later, you should notice this node in the output from `kubectl get nodes`. (for example, run `kubectl` on a control plane node). ### Network configuration CNI setup on clusters mixed with Linux and Windows nodes requires more steps than just
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/kubeadm/adding-windows-nodes.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/kubeadm/adding-windows-nodes.md
[ 0.011290744878351688, -0.012242630124092102, -0.003558667842298746, 0.05786886066198349, -0.03356841206550598, 0.051642630249261856, -0.03140188753604889, -0.06626340001821518, -0.03462522104382515, 0.08627832680940628, -0.04901503771543503, -0.11545296013355255, -0.0020946431905031204, -0.030643632635474205, 0.010035229846835136, 0.03236274793744087, 0.04102783277630806, -0.05885114148259163, 0.017660625278949738, -0.08924273401498795, -0.03323154151439667, -0.06485385447740555, -0.026703856885433197, -0.013541139662265778, -0.0024585186038166285, -0.0113960150629282, -0.0035471643786877394, 0.002859938656911254, 0.011016767472028732, 0.07363951951265335, -0.02609296329319477, -0.028346234932541847, 0.023594005033373833, 0.0661492645740509, 0.06776735186576843, 0.10141320526599884, 0.021601419895887375, -0.0035672869998961687, -0.1164168193936348, -0.049523841589689255, 0.10510538518428802, -0.001627666992135346, -0.11278653889894485, -0.04824545606970787, -0.023844173178076744, 0.0022330807987600565, -0.04686550423502922, -0.0018307340797036886, -0.013455454260110855, 0.0013432892737910151, 0.019067274406552315, -0.1417832225561142, 0.028950151056051254, 0.03036348894238472, -0.03167537972331047, 0.01274542324244976, 0.02607310749590397, 0.0038580680266022682, 0.08103140443563461, -0.050245724618434906, 0.08407748490571976, -0.10988402366638184, -0.006278854329138994, -0.026892870664596558, 0.008522354066371918, 0.027536308392882347, 0.008060934953391552, 0.012254049070179462, -0.05119507759809494, -0.028196392580866814, -0.030454136431217194, -0.02062649466097355, -0.05632637068629265, -0.012891349382698536, -0.059629663825035095, 0.03933555260300636, 0.02360621839761734, 0.10137368738651276, 0.05863286554813385, -0.07479208707809448, -0.06632434576749802, 0.009817090816795826, 0.028676355257630348, 0.0020972597412765026, -0.09278511255979538, 0.018921123817563057, -0.04173571243882179, -0.004615009296685457, 0.0583186149597168, 0.011478235013782978, -0.008541827090084553, -0.018623793497681618, -0.02961541898548603, -0.07672829926013947, 0.07070501893758774, -0.01683911494910717, 0.0035189837217330933, 0.030283434316515923, 0.07848509401082993, -0.033598389476537704, -0.022897476330399513, -0.02034946158528328, 0.023446250706911087, 0.003204168053343892, -0.0236310213804245, 0.003139172215014696, -0.08536139875650406, 0.009183800779283047, 0.0344453901052475, -0.0003009663487318903, -0.015739381313323975, 0.10713282227516174, -0.02434399351477623, -0.014198032207787037, -0.010820637457072735, -0.013333834707736969, 0.08400854468345642, -0.015647735446691513, -0.014265932142734528, 0.06172272562980652, 0.04081222787499428, -0.12074480205774307, -0.06041356548666954, -0.06557806581258774, -0.06170857697725296, 0.007648063357919455, -0.11131593585014343, 2.3644745605843837e-33, 0.10650906711816788, -0.043450795114040375, 0.07491792738437653, -0.011235742829740047, 0.12848837673664093, -0.0695568174123764, -0.027145927771925926, -0.03961925208568573, -0.043944310396909714, -0.06710221618413925, -0.08921610563993454, 0.034223105758428574, 0.046846505254507065, -0.04147089645266533, 0.03635936230421066, -0.05149905011057854, -0.004218549933284521, 0.039952609688043594, 0.09584100544452667, 0.02257467620074749, 0.01169705018401146, -0.04067366197705269, -0.0346330925822258, 0.00119893962983042, 0.003507609013468027, 0.04569491371512413, 0.061424363404512405, -0.06182398647069931, 0.04512626305222511, 0.0003719586238730699, 0.0011840381193906069, 0.028971891850233078, -0.018398093059659004, 0.026416849344968796, -0.17397424578666687, -0.008602526038885117, -0.017969921231269836, 0.0009687412530183792, -0.027038199827075005, -0.01858203299343586, 0.02783207781612873, -0.029649915173649788, 0.08512280881404877, -0.06359880417585373, 0.07970485091209412, -0.00003653912790468894, 0.04757222533226013, -0.07935556024312973, 0.16201074421405792, 0.03369240462779999, -0.04196309670805931, -0.011669938452541828, 0.039517078548669815, -0.01015892531722784, 0.03538051247596741, 0.06669221818447113, 0.08109314739704132, -0.058891892433166504, -0.020910844206809998, -0.04847892001271248, -0.031137563288211823, 0.01617671176791191, 0.009657971560955048, 0.06289586424827576, -0.02748345024883747, -0.061144545674324036, -0.022857028990983963, 0.09164872020483017, -0.036485981196165085, -0.001322199939750135, -0.04332949221134186, 0.054697807878255844, -0.03531966730952263, 0.05599605292081833, -0.02033502236008644, -0.012925765477120876, 0.02561667002737522, -0.02777370624244213, -0.12205389887094498, 0.06748761236667633, -0.035431522876024246, -0.024061506614089012, -0.039408374577760696, -0.054370954632759094, 0.0785147026181221, -0.030835118144750595, -0.03071622923016548, 0.05986133962869644, 0.03752323240041733, -0.033186011016368866, -0.0031173645984381437, -0.04348364099860191, -0.0406155027449131, 0.06847380846738815, -0.07085768133401871, -4.716957976764426e-33, 0.03688414767384529, 0.03022177517414093, 0.020704200491309166, 0.023860905319452286, 0.050815701484680176, 0.07775812596082687, -0.024328002706170082, -0.042511068284511566, -0.04959782585501671, -0.010046112351119518, -0.05384138599038124, -0.007215638179332018, 0.02007863111793995, 0.03663952648639679, -0.0407160185277462, 0.016334153711795807, -0.0034710788168013096, 0.032778818160295486, 0.04229191318154335, -0.021397238597273827, -0.008376681245863438, -0.0019520953064784408, 0.03408098593354225, 0.0008852392784319818, 0.015909824520349503, -0.029756128787994385, 0.004217575304210186, 0.03202393278479576, -0.02362331934273243, 0.01977650821208954, 0.015042698942124844, -0.018042728304862976, -0.03652236983180046, 0.015254233963787556, 0.04724465310573578, -0.04373835027217865, 0.015216297470033169, -0.038465939462184906, 0.03284940868616104, 0.02398371882736683, 0.046497393399477005, -0.07261885702610016, -0.07924941927194595, -0.0147114722058177, -0.010615978389978409, 0.050535909831523895, 0.07014532387256622, -0.02391193062067032, -0.07157909125089645, -0.04790876805782318, -0.01292973943054676, -0.007678708992898464, -0.06876106560230255, 0.07272817939519882, -0.10298342257738113, 0.0004758819122798741, -0.00586243811994791, 0.10972075164318085, -0.0353543721139431, -0.032241541892290115, 0.051458947360515594, -0.10172535479068756, 0.09006598591804504, 0.030384009703993797, -0.06141858547925949, -0.012527121230959892, 0.048028819262981415, 0.0598139651119709, -0.08833743631839752, 0.00167337735183537, -0.12383832782506943, 0.013020149432122707, -0.0031158295460045338, 0.041528768837451935, -0.012450462207198143, -0.013438394293189049, 0.029808886349201202, -0.028422553092241287, -0.009000317193567753, 0.029066234827041626, -0.004074813798069954, 0.051693666726350784, -0.0315144918859005, -0.029832007363438606, 0.02699371427297592, 0.013908092863857746, 0.09526899456977844, 0.06390617042779922, -0.018878117203712463, 0.0510590635240078, -0.08350073546171188, -0.030634485185146332, 0.005252194125205278, 0.11841297149658203, -0.047985054552555084, -5.480026388227088e-8, 0.06192513927817345, 0.0034875809215009212, -0.09151721000671387, -0.038019996136426926, 0.004753401502966881, -0.0052755046635866165, -0.016875408589839935, 0.031198017299175262, -0.05977818742394447, -0.013557840138673782, -0.015750491991639137, 0.008595991879701614, 0.017792128026485443, 0.08552706241607666, 0.011903875507414341, -0.00044967178837396204, -0.04229744151234627, 0.02509736269712448, 0.03675542026758194, -0.03504529222846031, 0.028425047174096107, -0.01072914618998766, 0.0948120653629303, 0.07802844792604446, 0.03292269632220268, 0.08661489933729172, 0.022603031247854233, -0.009323029778897762, -0.01808266155421734, 0.04000987857580185, -0.030607076361775398, 0.04390817508101463, -0.06080206111073494, 0.06983545422554016, 0.01302079763263464, 0.015932396054267883, -0.04945703223347664, 0.07821878790855408, 0.11106100678443909, 0.037819378077983856, 0.03954405337572098, 0.0007796254940330982, -0.11100891977548599, 0.031991954892873764, 0.03962721303105354, 0.083592988550663, -0.10008570551872253, 0.028826870024204254, -0.05772828683257103, -0.0625130757689476, -0.03549981117248535, 0.010778428986668587, 0.049162641167640686, 0.08576515316963196, -0.035095471888780594, 0.03841356188058853, -0.04552767798304558, -0.05993744358420372, 0.08097722381353378, 0.01615891233086586, 0.04363717511296272, -0.00865455623716116, -0.000714822846930474, -0.06363263726234436 ]
0.143765
control-plane to see this machine join. ``` A few seconds later, you should notice this node in the output from `kubectl get nodes`. (for example, run `kubectl` on a control plane node). ### Network configuration CNI setup on clusters mixed with Linux and Windows nodes requires more steps than just running `kubectl apply` on a manifest file. Additionally, the CNI plugin running on control plane nodes must be prepared to support the CNI plugin running on Windows worker nodes. {{% thirdparty-content %}} Only a few CNI plugins currently support Windows. Below you can find individual setup instructions for them: \* [Flannel](https://sigs.k8s.io/sig-windows-tools/guides/flannel.md) \* [Calico](https://docs.tigera.io/calico/latest/getting-started/kubernetes/windows-calico/) ### Install kubectl for Windows (optional) {#install-kubectl} See [Install and Set Up kubectl on Windows](/docs/tasks/tools/install-kubectl-windows/). ## {{% heading "whatsnext" %}} \* See how to [add Linux worker nodes](/docs/tasks/administer-cluster/kubeadm/adding-linux-nodes/).
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/kubeadm/adding-windows-nodes.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/kubeadm/adding-windows-nodes.md
[ -0.02339690551161766, -0.028831180185079575, -0.06084352359175682, 0.015470518730580807, 0.019282888621091843, 0.00525042274966836, -0.04478409141302109, -0.03659588843584061, -0.006188447121530771, -0.008460872806608677, -0.040978267788887024, -0.11898911744356155, -0.019441666081547737, -0.04347227141261101, 0.004738280549645424, -0.00980154238641262, -0.018029293045401573, -0.0772598534822464, 0.01897929050028324, -0.04980672895908356, -0.06141107156872749, -0.03637417405843735, -0.003871675580739975, -0.03365064412355423, -0.06220691651105881, -0.05544714257121086, 0.017671488225460052, 0.07159188389778137, 0.03455987572669983, -0.000989639782346785, -0.008681422099471092, 0.08825282007455826, -0.06270765513181686, 0.07190702855587006, 0.05479366332292557, 0.025880616158246994, 0.06937460601329803, -0.113288514316082, -0.09742143005132675, -0.0940624326467514, 0.14007657766342163, 0.012167485430836678, -0.06338352710008621, 0.0029303866904228926, 0.006804568227380514, 0.018900517374277115, -0.03253055363893509, -0.00494318176060915, 0.08203048259019852, -0.04973502457141876, -0.0700383186340332, -0.10825279355049133, 0.04461243003606796, 0.03486019745469093, -0.013215257786214352, 0.0674450621008873, 0.04654751718044281, 0.01066261064261198, 0.03147347643971443, -0.038512323051691055, 0.03264028578996658, -0.04287780821323395, 0.009722682647407055, -0.026914017274975777, -0.04276231303811073, 0.023283010348677635, -0.11091846227645874, 0.03187277540564537, -0.01113888155668974, -0.03485619276762009, -0.027585867792367935, -0.011744126677513123, -0.04506803676486015, 0.014998032711446285, -0.055435411632061005, 0.03587883710861206, 0.03960561752319336, 0.04149199277162552, 0.004302815534174442, -0.0881006047129631, -0.07730094343423843, 0.05559227615594864, -0.030871570110321045, 0.024553196504712105, -0.05970566347241402, -0.008868882432579994, -0.10819035768508911, -0.011691172607243061, -0.009233257733285427, 0.010862334631383419, -0.019694818183779716, -0.013459611684083939, -0.06049726530909538, -0.08914753049612045, 0.03216871991753578, -0.008714849129319191, 0.0803719162940979, -0.04867701604962349, 0.042948126792907715, -0.003261059522628784, -0.020558610558509827, 0.005519486498087645, 0.06404951214790344, 0.016064666211605072, -0.020532775670289993, -0.017795462161302567, -0.01942829228937626, -0.001961223781108856, 0.05043613165616989, -0.01424293965101242, -0.04764408618211746, 0.08019649982452393, -0.03361458703875542, -0.030641084536910057, -0.03234972432255745, -0.008212934248149395, 0.07394052296876907, 0.03962501510977745, 0.029418127611279488, 0.0067499903962016106, -0.03518940880894661, -0.08257222175598145, -0.06909367442131042, 0.016731886193156242, 0.026277538388967514, -0.02055377885699272, -0.052268050611019135, 6.163332878448217e-33, 0.10593465715646744, -0.04727562889456749, 0.037529975175857544, 0.024080317467451096, 0.1441279649734497, -0.08638838678598404, -0.025094065815210342, -0.11427707225084305, -0.046588677912950516, -0.021308785304427147, -0.10092199593782425, -0.00022034000721760094, 0.020649723708629608, -0.06883180886507034, 0.04325108602643013, -0.05245719105005264, -0.05488936975598335, -0.02726534567773342, -0.0022716710809618235, 0.016122493892908096, 0.046296656131744385, -0.03423294425010681, 0.0024158847518265247, -0.0039371163584291935, 0.0420975387096405, 0.006624891888350248, -0.020580731332302094, -0.047697730362415314, 0.023232702165842056, 0.03968377411365509, -0.008757872506976128, 0.024524841457605362, -0.031027046963572502, 0.00005038199742557481, -0.160783588886261, -0.005927442107349634, -0.043338842689991, -0.04114139825105667, -0.05221833288669586, 0.04146014153957367, -0.02946794219315052, -0.03573836386203766, 0.06330866366624832, -0.051922816783189774, 0.012684160843491554, -0.013877583667635918, 0.02871990017592907, -0.014425083063542843, 0.15984603762626648, 0.03149981051683426, -0.020525794476270676, -0.0341583713889122, 0.07482627779245377, 0.013399985618889332, 0.003999013919383287, 0.019984105601906776, 0.1093611791729927, -0.00869419053196907, -0.044726740568876266, 0.050819866359233856, -0.01601036824285984, 0.015784379094839096, -0.03267039358615875, 0.06830170005559921, -0.0005811864975839853, 0.022468730807304382, 0.03216859698295593, 0.036706000566482544, 0.010614635422825813, -0.009293871000409126, -0.10516677051782608, 0.09840867668390274, 0.021033624187111855, 0.032950613647699356, 0.038135357201099396, -0.07000000029802322, -0.06290436536073685, -0.07091649621725082, -0.03510502353310585, 0.058487772941589355, 0.02492760866880417, -0.0021380106918513775, -0.02276972495019436, -0.004293676931411028, 0.04661316052079201, -0.04614759981632233, -0.0023333337157964706, 0.05276262387633324, -0.017277345061302185, 0.006323848385363817, 0.007729657460004091, 0.006430234760046005, 0.09236042946577072, 0.08425378799438477, -0.09579972922801971, -7.09447281046126e-33, 0.04945780709385872, -0.009786318987607956, 0.07739532738924026, -0.045376237481832504, -0.012543081305921078, 0.04293842241168022, -0.032809991389513016, -0.03787010908126831, -0.017893332988023758, -0.020495058968663216, -0.009689426980912685, -0.037374693900346756, 0.05795876309275627, 0.015791988000273705, -0.0031833720859140158, 0.05631585791707039, 0.013751784339547157, 0.0012718872167170048, 0.03781549632549286, 0.036326631903648376, 0.01816771924495697, -0.04355425760149956, 0.04409017786383629, -0.03381598740816116, -0.014962323941290379, 0.0156553927809, 0.0045752874575555325, 0.04868036508560181, -0.04896947741508484, -0.012227913364768028, -0.005512280389666557, -0.01389030646532774, -0.03353949263691902, -0.03424694016575813, 0.08185072988271713, -0.04441666975617409, 0.023404937237501144, 0.003730970434844494, 0.0136585533618927, -0.03678813949227333, 0.031245119869709015, -0.014946328476071358, -0.10409115999937057, 0.04609685018658638, -0.03806629031896591, 0.048268988728523254, -0.015397391282022, -0.01714642532169819, -0.11595133692026138, 0.010834737680852413, -0.0028016611468046904, 0.01257726177573204, -0.0764971673488617, 0.10529449582099915, -0.011664262972772121, 0.00471818121150136, 0.04287681728601456, 0.10214818269014359, -0.08932945877313614, -0.002152496948838234, 0.07123379409313202, -0.10960045456886292, 0.03298986703157425, 0.01815848983824253, 0.0061084008775651455, 0.021807406097650528, 0.05333057418465614, 0.11881021410226822, 0.036234572529792786, 0.019968656823039055, -0.053117457777261734, 0.043233174830675125, 0.02373596467077732, 0.06308525055646896, -0.013834701851010323, 0.019905082881450653, 0.05965672433376312, -0.015389935113489628, 0.00786216463893652, 0.06214975565671921, -0.03357978165149689, 0.04177000746130943, -0.027531038969755173, 0.0028283202555030584, 0.042939092963933945, 0.09597037732601166, 0.013286552391946316, 0.0906536877155304, 0.013293109834194183, 0.013345593586564064, -0.011406541801989079, -0.017684465274214745, 0.07386589050292969, 0.09344863891601562, -0.05379161611199379, -5.968031047132172e-8, -0.0143227344378829, 0.008234345354139805, -0.11684711277484894, -0.02866821363568306, -0.05401882156729698, 0.02671111561357975, 0.08648829162120819, 0.005734369158744812, -0.07496146857738495, -0.015293663367629051, -0.013175223022699356, -0.0013538080966100097, 0.011892885901033878, -0.01201534178107977, 0.014184809289872646, 0.007075327914208174, -0.049964539706707, 0.011171501129865646, 0.0695587545633316, -0.04509102553129196, 0.007993388921022415, -0.03726949170231819, 0.03131519630551338, 0.08375909179449081, 0.0011842941166833043, 0.10713973641395569, -0.0007788767106831074, -0.003972998820245266, -0.010265462100505829, 0.048416946083307266, -0.05937289819121361, -0.019427210092544556, -0.07302593439817429, 0.15934835374355316, -0.027104608714580536, -0.008190873079001904, -0.03723656386137009, 0.07065825164318085, 0.06368013471364975, 0.07604443281888962, 0.015513412654399872, 0.04946160316467285, -0.10175587981939316, -0.011831252835690975, 0.06411761790513992, 0.07345930486917496, -0.06017863750457764, 0.04299158975481987, 0.04531310871243477, -0.06524220108985901, 0.011667564511299133, -0.02775583229959011, 0.034008707851171494, 0.07340424507856369, -0.06112335994839668, 0.07591605186462402, -0.08018207550048828, -0.061674814671278, 0.08933358639478683, 0.02752065286040306, -0.06856107711791992, 0.017736416310071945, -0.05426802858710289, -0.014273083768785 ]
0.117689
This page explains how to upgrade a Kubernetes cluster created with kubeadm from version {{< skew currentVersionAddMinor -1 >}}.x to version {{< skew currentVersion >}}.x, and from version {{< skew currentVersion >}}.x to {{< skew currentVersion >}}.y (where `y > x`). Skipping MINOR versions when upgrading is unsupported. For more details, please visit [Version Skew Policy](/releases/version-skew-policy/). To see information about upgrading clusters created using older versions of kubeadm, please refer to following pages instead: - [Upgrading a kubeadm cluster from {{< skew currentVersionAddMinor -2 >}} to {{< skew currentVersionAddMinor -1 >}}](https://v{{< skew currentVersionAddMinor -1 "-" >}}.docs.kubernetes.io/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade/) - [Upgrading a kubeadm cluster from {{< skew currentVersionAddMinor -3 >}} to {{< skew currentVersionAddMinor -2 >}}](https://v{{< skew currentVersionAddMinor -2 "-" >}}.docs.kubernetes.io/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade/) - [Upgrading a kubeadm cluster from {{< skew currentVersionAddMinor -4 >}} to {{< skew currentVersionAddMinor -3 >}}](https://v{{< skew currentVersionAddMinor -3 "-" >}}.docs.kubernetes.io/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade/) - [Upgrading a kubeadm cluster from {{< skew currentVersionAddMinor -5 >}} to {{< skew currentVersionAddMinor -4 >}}](https://v{{< skew currentVersionAddMinor -4 "-" >}}.docs.kubernetes.io/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade/) The Kubernetes project recommends upgrading to the latest patch releases promptly, and to ensure that you are running a supported minor release of Kubernetes. Following this recommendation helps you to stay secure. The upgrade workflow at high level is the following: 1. Upgrade a primary control plane node. 1. Upgrade additional control plane nodes. 1. Upgrade worker nodes. ## {{% heading "prerequisites" %}} - Make sure you read the [release notes](https://git.k8s.io/kubernetes/CHANGELOG) carefully. - The cluster should use a static control plane and etcd pods or external etcd. - Make sure to back up any important components, such as app-level state stored in a database. `kubeadm upgrade` does not touch your workloads, only components internal to Kubernetes, but backups are always a best practice. - [Swap must be disabled](https://serverfault.com/questions/684771/best-way-to-disable-swap-in-linux). ### Additional information - The instructions below outline when to drain each node during the upgrade process. If you are performing a \*\*minor\*\* version upgrade for any kubelet, you \*\*must\*\* first drain the node (or nodes) that you are upgrading. In the case of control plane nodes, they could be running CoreDNS Pods or other critical workloads. For more information see [Draining nodes](/docs/tasks/administer-cluster/safely-drain-node/). - The Kubernetes project recommends that you match your kubelet and kubeadm versions. You can instead use a version of kubelet that is older than kubeadm, provided it is within the range of supported versions. For more details, please visit [kubeadm's skew against the kubelet](/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/#kubeadm-s-skew-against-the-kubelet). - All containers are restarted after upgrade, because the container spec hash value is changed. - To verify that the kubelet service has successfully restarted after the kubelet has been upgraded, you can execute `systemctl status kubelet` or view the service logs with `journalctl -xeu kubelet`. - `kubeadm upgrade` supports `--config` with a [`UpgradeConfiguration` API type](/docs/reference/config-api/kubeadm-config.v1beta4) which can be used to configure the upgrade process. - `kubeadm upgrade` does not support reconfiguration of an existing cluster. Follow the steps in [Reconfiguring a kubeadm cluster](/docs/tasks/administer-cluster/kubeadm/kubeadm-reconfigure) instead. ### Considerations when upgrading etcd Because the `kube-apiserver` static pod is running at all times (even if you have drained the node), when you perform a kubeadm upgrade which includes an etcd upgrade, in-flight requests to the server will stall while the new etcd static pod is restarting. As a workaround, it is possible to actively stop the `kube-apiserver` process a few seconds before starting the `kubeadm upgrade apply` command. This permits to complete in-flight requests and close existing connections, and minimizes the consequence of the etcd downtime. This can be done as follows on control plane nodes: ```shell killall -s SIGTERM kube-apiserver # trigger a graceful kube-apiserver shutdown sleep 20 # wait a little bit to
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade.md
[ 0.09224793314933777, -0.01916166953742504, 0.06413228809833527, -0.066683329641819, 0.0642504096031189, 0.01273318286985159, -0.08144006133079529, -0.06417293101549149, 0.0073380679823458195, 0.047391001135110855, 0.0601394921541214, -0.02844615839421749, -0.02066240832209587, -0.06072090566158295, 0.05405036360025406, 0.03517215698957443, -0.01760801672935486, -0.010478650219738483, 0.023898040875792503, -0.0031624857801944017, -0.030327415093779564, -0.04648106172680855, 0.005151136312633753, 0.00903050135821104, 0.013268401846289635, -0.05007759854197502, -0.04936344549059868, -0.03200571611523628, -0.0666482076048851, 0.037968460470438004, -0.048525370657444, 0.09708636999130249, -0.05103128403425217, -0.0374961756169796, 0.07709771394729614, 0.02863394096493721, 0.007099382113665342, 0.10728921741247177, 0.0003167317481711507, 0.05800885334610939, 0.05490455776453018, 0.013469502329826355, 0.00494955200701952, -0.06705423444509506, -0.03504215180873871, -0.041677772998809814, -0.09386598318815231, -0.06227126345038414, -0.08805206418037415, -0.015481476671993732, 0.003368305042386055, -0.07888589054346085, -0.04332301393151283, -0.028988869860768318, 0.024700062349438667, 0.05519291013479233, -0.04995878040790558, 0.08295577764511108, 0.0673772320151329, -0.010896912775933743, 0.04382830113172531, -0.03465268388390541, 0.04153783619403839, -0.10575758665800095, -0.08082737773656845, -0.06189609318971634, 0.11161641031503677, -0.07802646607160568, 0.001217738608829677, 0.06243160367012024, 0.005383248440921307, -0.016721416264772415, -0.03890113905072212, -0.03874795883893967, 0.0025230024475604296, 0.021127920597791672, 0.003778512589633465, 0.06998421996831894, 0.04437444359064102, -0.08832184225320816, -0.05645883083343506, -0.028405196964740753, 0.029912173748016357, -0.0732240080833435, -0.09556273370981216, 0.013818638399243355, -0.008757848292589188, -0.11828719079494476, 0.027049576863646507, 0.021893106400966644, -0.015007730573415756, -0.05944573134183884, 0.08924047648906708, -0.05626613274216652, 0.05113602429628372, 0.016005070880055428, -0.07871795445680618, 0.02588477171957493, 0.05188395455479622, 0.030665814876556396, 0.06930049508810043, 0.016234001144766808, 0.020768746733665466, 0.026868170127272606, 0.008603494614362717, -0.031135641038417816, 0.01967650279402733, 0.0038587325252592564, -0.04012738913297653, 0.052976809442043304, 0.011244595982134342, 0.10315494984388351, 0.023431401699781418, -0.05226310342550278, -0.06952878832817078, -0.029614564031362534, 0.08699266612529755, -0.04569332301616669, -0.019672013819217682, 0.05852837115526199, 0.05730002000927925, -0.05325409397482872, 0.03283834084868431, 0.06102076917886734, -0.09494643658399582, -0.016988977789878845, -0.021664846688508987, 7.23966840330689e-33, 0.038761962205171585, -0.03077884018421173, 0.0009379516704939306, -0.02621774561703205, 0.00106711033731699, -0.025695160031318665, -0.009277247823774815, -0.05713072791695595, -0.05876437574625015, -0.04257998988032341, -0.04261615127325058, -0.02717658132314682, -0.028355509042739868, -0.06967293471097946, 0.0720895379781723, -0.04231914132833481, -0.03856628015637398, 0.061816565692424774, 0.12930180132389069, 0.0003998673928435892, 0.07696576416492462, -0.03689773008227348, -0.0444001741707325, -0.012582128867506981, 0.010877896100282669, -0.01806114800274372, 0.07950164377689362, -0.003996660932898521, -0.041240230202674866, -0.015699150040745735, -0.010280146263539791, 0.0049680070951581, 0.031381744891405106, 0.015638496726751328, -0.14333686232566833, -0.05419597402215004, 0.016591733321547508, -0.001012322143651545, -0.04601775109767914, -0.06037628650665283, -0.02008848823606968, 0.004896059166640043, 0.011672718450427055, -0.042832717299461365, 0.15374812483787537, 0.037740081548690796, 0.08035662770271301, -0.01904369331896305, 0.10298644006252289, -0.07119843363761902, -0.032931044697761536, 0.016268525272607803, -0.01876610890030861, -0.04909856244921684, -0.002852322766557336, 0.011427249759435654, 0.09869997203350067, -0.017499443143606186, -0.01450564805418253, -0.10285789519548416, 0.005252289120107889, -0.03182856738567352, 0.03242629021406174, -0.0507316067814827, 0.034110065549612045, 0.0310654453933239, -0.0012730093440040946, 0.026586929336190224, 0.013986622914671898, -0.0466579832136631, -0.021151578053832054, -0.008610165677964687, -0.06167910620570183, 0.06059097498655319, 0.03968406841158867, -0.03546883910894394, -0.00539496960118413, 0.04277306795120239, -0.0053858403116464615, 0.021181492134928703, 0.03979559242725372, -0.02976205386221409, -0.09896720945835114, 0.03800829499959946, 0.04701259732246399, -0.022227581590414047, 0.01408324483782053, 0.03697215020656586, 0.003029655432328582, 0.0315561406314373, 0.028094686567783356, -0.10520113259553909, -0.057775694876909256, 0.03846145048737526, 0.0005926428129896522, -7.578575179592464e-33, 0.05880799517035484, 0.03204643726348877, 0.005008441396057606, 0.015880689024925232, -0.00802824180573225, -0.010106475092470646, -0.02271512895822525, 0.07730434834957123, -0.057504795491695404, -0.10309361666440964, -0.043576788157224655, -0.014291982166469097, 0.02342332899570465, -0.03330688178539276, -0.09373638778924942, 0.02690429612994194, -0.005241726525127888, -0.007368397433310747, -0.03445631265640259, 0.0313013531267643, 0.007211285177618265, 0.03860324248671532, -0.03591356799006462, 0.09387390315532684, -0.016520660370588303, 0.012782173231244087, -0.015350406058132648, 0.14673453569412231, -0.06503114104270935, 0.01564539410173893, 0.02493027225136757, -0.08237302303314209, -0.038923945277929306, 0.027606608346104622, 0.016506947576999664, -0.0555746890604496, 0.009473335929214954, -0.025424519553780556, -0.06311815977096558, 0.03975914046168327, -0.001336843823082745, -0.0316319540143013, -0.03031039983034134, 0.002476048655807972, 0.021431129425764084, 0.03310493007302284, 0.11567401885986328, -0.017232848331332207, -0.0019584104884415865, -0.1268894523382187, -0.020739909261465073, 0.024499449878931046, -0.0018172624986618757, 0.03137082979083061, -0.03207077831029892, 0.05796011909842491, 0.035038698464632034, 0.09161410480737686, -0.052279334515333176, 0.0004835476283915341, 0.00832399632781744, -0.048330411314964294, 0.1063198372721672, -0.07941427826881409, 0.026449132710695267, 0.01674318127334118, -0.023925699293613434, 0.03882583975791931, -0.0347546748816967, 0.07198932021856308, -0.026938969269394875, 0.021293874830007553, 0.004334557335823774, -0.02306026965379715, 0.005988711956888437, -0.09186378866434097, 0.08307307213544846, 0.057879261672496796, 0.07850417494773865, -0.06279627233743668, -0.028125707060098648, 0.04033084213733673, -0.03260497748851776, 0.03999168425798416, 0.04915200173854828, 0.03077123314142227, 0.08992207795381546, 0.018542755395174026, 0.02612266130745411, 0.0074098906479775906, -0.024576131254434586, -0.03888719901442528, -0.0734926238656044, 0.007642366923391819, -0.03275173529982567, -5.5773103468936824e-8, 0.05926455929875374, 0.0488077811896801, -0.09986981749534607, 0.07606887072324753, 0.11214589327573776, 0.0331580676138401, -0.07099834084510803, -0.0023717284202575684, 0.003242490580305457, -0.02584022283554077, -0.06209491938352585, 0.10554023832082748, -0.03248629719018936, 0.02009686827659607, 0.08064480125904083, -0.06635241210460663, -0.0112232631072402, 0.05640840157866478, 0.016534386202692986, -0.02428244799375534, -0.09008755534887314, -0.028074724599719048, -0.0056723253801465034, 0.036781661212444305, 0.010370493866503239, -0.0036071871872991323, 0.0184540506452322, 0.03957831487059593, 0.0846133604645729, -0.0034098178148269653, -0.035908281803131104, 0.0017018618527799845, -0.022532161325216293, 0.06248630955815315, 0.01922316662967205, 0.040252044796943665, -0.04679479822516441, 0.13618671894073486, 0.060424868017435074, 0.020696818828582764, 0.050862982869148254, -0.09313837438821793, -0.10129249095916748, 0.056177768856287, -0.047087203711271286, 0.045171864330768585, -0.07200251519680023, -0.034619394689798355, -0.0020390660502016544, 0.012263313867151737, 0.014799545519053936, -0.018317056819796562, 0.0011880657402798533, 0.05388905480504036, -0.059768591076135635, -0.0024492465890944004, -0.04620128870010376, 0.0072679282166063786, 0.013839008286595345, 0.0076265837997198105, 0.07220706343650818, -0.006691895425319672, -0.01829344592988491, -0.003156613325700164 ]
0.013556
upgrade apply` command. This permits to complete in-flight requests and close existing connections, and minimizes the consequence of the etcd downtime. This can be done as follows on control plane nodes: ```shell killall -s SIGTERM kube-apiserver # trigger a graceful kube-apiserver shutdown sleep 20 # wait a little bit to permit completing in-flight requests kubeadm upgrade ... # execute a kubeadm upgrade command ``` ## Changing the package repository If you're using the community-owned package repositories (`pkgs.k8s.io`), you need to enable the package repository for the desired Kubernetes minor release. This is explained in [Changing the Kubernetes package repository](/docs/tasks/administer-cluster/kubeadm/change-package-repository/) document. {{% legacy-repos-deprecation %}} ## Determine which version to upgrade to Find the latest patch release for Kubernetes {{< skew currentVersion >}} using the OS package manager: {{< tabs name="k8s\_install\_versions" >}} {{% tab name="Ubuntu, Debian or HypriotOS" %}} ```shell # Find the latest {{< skew currentVersion >}} version in the list. # It should look like {{< skew currentVersion >}}.x-\*, where x is the latest patch. sudo apt update sudo apt-cache madison kubeadm ``` {{% /tab %}} {{% tab name="CentOS, RHEL or Fedora" %}} For systems with DNF: ```shell # Find the latest {{< skew currentVersion >}} version in the list. # It should look like {{< skew currentVersion >}}.x-\*, where x is the latest patch. sudo yum list --showduplicates kubeadm --disableexcludes=kubernetes ``` For systems with DNF5: ```shell # Find the latest {{< skew currentVersion >}} version in the list. # It should look like {{< skew currentVersion >}}.x-\*, where x is the latest patch. sudo yum list --showduplicates kubeadm --setopt=disable\_excludes=kubernetes ``` {{% /tab %}} {{< /tabs >}} If you don't see the version you expect to upgrade to, [verify if the Kubernetes package repositories are used.](/docs/tasks/administer-cluster/kubeadm/change-package-repository/#verifying-if-the-kubernetes-package-repositories-are-used) ## Upgrading control plane nodes The upgrade procedure on control plane nodes should be executed one node at a time. Pick a control plane node that you wish to upgrade first. It must have the `/etc/kubernetes/admin.conf` file. ### Call "kubeadm upgrade" \*\*For the first control plane node\*\* 1. Upgrade kubeadm: {{< tabs name="k8s\_install\_kubeadm\_first\_cp" >}} {{% tab name="Ubuntu, Debian or HypriotOS" %}} ```shell # replace x in {{< skew currentVersion >}}.x-\* with the latest patch version sudo apt-mark unhold kubeadm && \ sudo apt-get update && sudo apt-get install -y kubeadm='{{< skew currentVersion >}}.x-\*' && \ sudo apt-mark hold kubeadm ``` {{% /tab %}} {{% tab name="CentOS, RHEL or Fedora" %}} For systems with DNF: ```shell # replace x in {{< skew currentVersion >}}.x-\* with the latest patch version sudo yum install -y kubeadm-'{{< skew currentVersion >}}.x-\*' --disableexcludes=kubernetes ``` For systems with DNF5: ```shell # replace x in {{< skew currentVersion >}}.x-\* with the latest patch version sudo yum install -y kubeadm-'{{< skew currentVersion >}}.x-\*' --setopt=disable\_excludes=kubernetes ``` {{% /tab %}} {{< /tabs >}} 1. Verify that the download works and has the expected version: ```shell kubeadm version ``` 1. Verify the upgrade plan: ```shell sudo kubeadm upgrade plan ``` This command checks that your cluster can be upgraded, and fetches the versions you can upgrade to. It also shows a table with the component config version states. {{< note >}} `kubeadm upgrade` also automatically renews the certificates that it manages on this node. To opt-out of certificate renewal the flag `--certificate-renewal=false` can be used. For more information see the [certificate management guide](/docs/tasks/administer-cluster/kubeadm/kubeadm-certs). {{}} 1. Choose a version to upgrade to, and run the appropriate command. For example: ```shell # replace x with the patch version you picked for this upgrade sudo kubeadm upgrade apply v{{< skew currentVersion >}}.x ``` Once the command finishes you should see: ``` [upgrade/successful] SUCCESS! Your cluster was upgraded to "v{{<
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade.md
[ 0.020480120554566383, 0.039000898599624634, 0.08342797309160233, -0.0475078783929348, -0.013655634596943855, 0.0026672191452234983, -0.09552868455648422, -0.04567767307162285, 0.019015980884432793, 0.13115206360816956, -0.01652468927204609, -0.01253137830644846, -0.061177145689725876, -0.028026556596159935, 0.0678912028670311, 0.106081023812294, 0.04595683142542839, 0.008589159697294235, -0.048933301120996475, -0.017328733578324318, 0.005871888715773821, -0.005660772789269686, -0.011589118279516697, 0.061525505036115646, -0.09002231806516647, -0.03526691347360611, -0.016539426520466805, -0.043181829154491425, -0.019579898566007614, 0.002443301724269986, -0.033069949597120285, 0.013237133622169495, -0.07090537995100021, -0.007561347912997007, 0.033424265682697296, 0.07905599474906921, -0.004545070696622133, 0.025694740936160088, -0.0043580420315265656, 0.07212074846029282, 0.0622551403939724, 0.0035822957288473845, -0.09463248401880264, -0.048262596130371094, 0.006316409446299076, -0.013846855610609055, -0.06535938382148743, -0.033670131117105484, 0.008351923897862434, -0.010749206878244877, 0.03741952031850815, -0.0431777685880661, 0.008664384484291077, -0.04665064066648483, 0.08539251238107681, 0.01221953984349966, -0.001026676269248128, 0.07615777850151062, -0.003347682999446988, -0.014443065039813519, 0.014032027684152126, -0.05957257002592087, 0.02877679467201233, -0.0124524449929595, -0.05684502795338631, 0.012637089006602764, 0.12127082794904709, -0.048310909420251846, 0.01700814627110958, 0.007243539206683636, 0.04735235869884491, 0.010602272115647793, -0.05168791115283966, -0.03023298643529415, 0.03017585352063179, 0.039079248905181885, 0.018810831010341644, 0.06264369189739227, 0.04376958683133125, -0.1069052517414093, 0.05956324189901352, 0.04069482535123825, 0.005750410724431276, -0.027544846758246422, -0.1579524278640747, -0.026655809953808784, -0.015718599781394005, -0.06354078650474548, 0.032704129815101624, -0.01986653544008732, -0.002622010884806514, -0.03026697225868702, 0.06025724485516548, -0.07680293917655945, 0.012189588509500027, 0.057561662048101425, -0.03650983050465584, 0.004533352330327034, -0.005184142850339413, -0.003207610687240958, 0.05485398694872856, 0.03151838481426239, -0.06003883481025696, 0.02420351468026638, 0.012233156710863113, -0.00019748734484892339, 0.006787809077650309, -0.006116017699241638, -0.008522211574018002, 0.055030111223459244, 0.001520177349448204, 0.03356379270553589, -0.001137014478445053, -0.02009839378297329, -0.04758191108703613, 0.06431464105844498, 0.07189755141735077, -0.021979661658406258, 0.03083375096321106, 0.021034453064203262, 0.06818024814128876, -0.06681028008460999, -0.014303341507911682, 0.06007150560617447, -0.0794929563999176, 0.06639104336500168, 0.004068424925208092, 5.6318981272551996e-33, 0.05885928496718407, -0.07136707007884979, -0.03138580545783043, -0.027293680235743523, 0.019838538020849228, -0.08393333107233047, 0.012404360808432102, 0.00045883579878136516, -0.04034881293773651, -0.08379906415939331, -0.0843631699681282, -0.06561867147684097, -0.03814112767577171, -0.049283161759376526, 0.06766781210899353, -0.0577327199280262, -0.015828482806682587, 0.015508411452174187, 0.11093901097774506, -0.007436972577124834, 0.051012903451919556, -0.13902069628238678, -0.04788697883486748, 0.007224773056805134, 0.08340521901845932, -0.001287296530790627, 0.07471369206905365, -0.03228624165058136, -0.050256870687007904, -0.039614394307136536, -0.0022016982547938824, -0.04019981250166893, 0.01763417199254036, -0.01573401689529419, -0.1806236207485199, -0.08529043942689896, -0.06500358879566193, 0.04802028462290764, -0.047840286046266556, -0.03730488568544388, -0.0013800380984321237, 0.024913769215345383, -0.10479223728179932, -0.0038005816750228405, 0.15374000370502472, -0.0543973483145237, 0.04572029039263725, 0.012993485666811466, 0.07032310962677002, -0.013766366988420486, -0.015063109807670116, 0.002915712306275964, -0.029637137427926064, -0.062458157539367676, 0.020887892693281174, 0.032676342874765396, 0.12387791275978088, -0.09957508742809296, -0.03178472816944122, -0.08295995742082596, 0.06803366541862488, -0.07004384696483612, 0.041434384882450104, 0.02502337470650673, 0.0878930613398552, -0.001929926685988903, -0.035174258053302765, 0.03395633026957512, -0.055679772049188614, -0.002946182619780302, -0.06722968071699142, 0.04790506511926651, -0.058848217129707336, -0.016013124957680702, -0.018132314085960388, -0.06849126517772675, 0.01942182518541813, 0.02982908859848976, 0.03273628279566765, 0.04144478589296341, 0.12706716358661652, -0.021805038675665855, -0.04734867438673973, 0.01819615252315998, 0.09427628666162491, -0.02350878156721592, 0.017404239624738693, -0.002218638313934207, 0.01814829744398594, 0.0019112317822873592, -0.03148116171360016, -0.07457882165908813, 0.0011899726232513785, 0.02332453615963459, -0.03886525705456734, -5.70811901767244e-33, 0.05787552893161774, -0.025602713227272034, -0.021971650421619415, 0.06568286567926407, 0.02062445692718029, -0.004648910369724035, -0.015418492257595062, 0.11241365969181061, -0.053751200437545776, -0.025592787191271782, -0.028093691915273666, -0.009720055386424065, 0.051430318504571915, -0.0540904626250267, -0.0573914535343647, 0.02231213077902794, -0.020660629495978355, 0.021757369861006737, 0.009891551919281483, 0.041563887149095535, 0.013621378690004349, -0.016909390687942505, 0.014204192906618118, 0.01601848192512989, 0.0025359299033880234, -0.01995900645852089, 0.007885769940912724, 0.06437990814447403, -0.05526160076260567, 0.06550394743680954, 0.068556047976017, -0.07475195825099945, -0.011804677546024323, 0.06708050519227982, 0.003258025273680687, 0.022865599021315575, 0.030854929238557816, 0.014098819345235825, -0.05504046753048897, 0.008952119387686253, 0.019196242094039917, -0.0036864972207695246, -0.04137521982192993, -0.04072786122560501, 0.016675977036356926, 0.04751292243599892, 0.0030755808111280203, -0.021596672013401985, -0.05648554489016533, -0.11373386532068253, -0.06468165665864944, -0.017783308401703835, 0.001397515065036714, 0.13394130766391754, -0.02036052756011486, 0.04361619055271149, 0.0595904216170311, 0.07673082500696182, -0.022383706644177437, -0.024060221388936043, 0.03574633225798607, -0.08745861798524857, 0.1072080135345459, 0.014538957737386227, 0.007844153791666031, 0.0032765103969722986, -0.0008991864742711186, 0.055267464369535446, -0.04160362482070923, 0.06807462871074677, -0.012883281335234642, -0.01802712492644787, -0.03176372870802879, 0.03971527889370918, -0.021392082795500755, -0.022880977019667625, 0.034846849739551544, 0.03205784782767296, 0.05097232013940811, 0.04434657096862793, -0.07555688172578812, 0.03277970105409622, -0.07398628443479538, 0.05042019858956337, 0.029385292902588844, 0.06379938870668411, 0.06764185428619385, 0.07566814124584198, 0.050821252167224884, 0.07525157928466797, -0.011275863274931908, -0.035872459411621094, -0.03428790345788002, 0.02784399501979351, -0.014259903691709042, -5.601897612450557e-8, 0.08358611911535263, 0.013001647777855396, -0.04930207505822182, 0.006016285624355078, 0.11432398855686188, -0.006791423074901104, -0.032604292035102844, 0.004648935049772263, -0.04437173902988434, -0.04216967150568962, -0.002111782319843769, 0.09690692275762558, -0.03383786603808403, 0.09004919230937958, 0.06982311606407166, -0.02953600138425827, -0.02065090276300907, 0.057629019021987915, 0.04214949160814285, -0.03717835992574692, -0.11665999889373779, -0.05068408325314522, 0.029094886034727097, -0.03115629032254219, 0.06712086498737335, 0.01582890748977661, 0.10193333774805069, 0.020922474563121796, 0.04965364187955856, -0.0026264507323503494, -0.10168663412332535, -0.031446244567632675, -0.08580514788627625, 0.024762198328971863, 0.0411309078335762, 0.013683473691344261, -0.05167388916015625, 0.10918504744768143, 0.0665007159113884, 0.054059069603681564, -0.030881347134709358, -0.018871841952204704, -0.06332556903362274, 0.011151010170578957, 0.05838645622134209, 0.019088296219706535, -0.0020288887899369, 0.007841664366424084, -0.05508001148700714, -0.010026355274021626, -0.005307780113071203, -0.05971890687942505, -0.0065158335492014885, 0.008661181665956974, -0.06326477229595184, -0.017139745876193047, -0.052977751940488815, -0.048730719834566116, -0.005637553054839373, -0.01863226853311062, 0.03695772588253021, -0.015479059889912605, -0.02700289897620678, -0.031349774450063705 ]
0.052743
a version to upgrade to, and run the appropriate command. For example: ```shell # replace x with the patch version you picked for this upgrade sudo kubeadm upgrade apply v{{< skew currentVersion >}}.x ``` Once the command finishes you should see: ``` [upgrade/successful] SUCCESS! Your cluster was upgraded to "v{{< skew currentVersion >}}.x". Enjoy! [upgrade/kubelet] Now that your control plane is upgraded, please proceed with upgrading your kubelets if you haven't already done so. ``` {{< note >}} For versions earlier than v1.28, kubeadm defaulted to a mode that upgrades the addons (including CoreDNS and kube-proxy) immediately during `kubeadm upgrade apply`, regardless of whether there are other control plane instances that have not been upgraded. This may cause compatibility problems. Since v1.28, kubeadm defaults to a mode that checks whether all the control plane instances have been upgraded before starting to upgrade the addons. You must perform control plane instances upgrade sequentially or at least ensure that the last control plane instance upgrade is not started until all the other control plane instances have been upgraded completely, and the addons upgrade will be performed after the last control plane instance is upgraded. {{}} 1. Manually upgrade your CNI provider plugin. Your Container Network Interface (CNI) provider may have its own upgrade instructions to follow. Check the [addons](/docs/concepts/cluster-administration/addons/) page to find your CNI provider and see whether additional upgrade steps are required. This step is not required on additional control plane nodes if the CNI provider runs as a DaemonSet. \*\*For the other control plane nodes\*\* Same as the first control plane node but use: ```shell sudo kubeadm upgrade node ``` instead of: ```shell sudo kubeadm upgrade apply ``` Also calling `kubeadm upgrade plan` and upgrading the CNI provider plugin is no longer needed. ### Drain the node Prepare the node for maintenance by marking it unschedulable and evicting the workloads: ```shell # replace with the name of your node you are draining kubectl drain --ignore-daemonsets ``` ### Upgrade kubelet and kubectl {{< note >}} On Linux nodes, the kubelet defaults to supporting only cgroups v2. For Kubernetes {{< skew currentVersion >}} the `FailCgroupV1` kubelet configuration option is set to `true` by default. To learn more, refer to the [Kubernetes cgroup v1 deprecation documentation](/docs/concepts/architecture/cgroups/#deprecation-of-cgroup-v1). {{}} 1. Upgrade the kubelet and kubectl: {{< tabs name="k8s\_install\_kubelet" >}} {{% tab name="Ubuntu, Debian or HypriotOS" %}} ```shell # replace x in {{< skew currentVersion >}}.x-\* with the latest patch version sudo apt-mark unhold kubelet kubectl && \ sudo apt-get update && sudo apt-get install -y kubelet='{{< skew currentVersion >}}.x-\*' kubectl='{{< skew currentVersion >}}.x-\*' && \ sudo apt-mark hold kubelet kubectl ``` {{% /tab %}} {{% tab name="CentOS, RHEL or Fedora" %}} For systems with DNF: ```shell # replace x in {{< skew currentVersion >}}.x-\* with the latest patch version sudo yum install -y kubelet-'{{< skew currentVersion >}}.x-\*' kubectl-'{{< skew currentVersion >}}.x-\*' --disableexcludes=kubernetes ``` For systems with DNF5: ```shell # replace x in {{< skew currentVersion >}}.x-\* with the latest patch version sudo yum install -y kubelet-'{{< skew currentVersion >}}.x-\*' kubectl-'{{< skew currentVersion >}}.x-\*' --setopt=disable\_excludes=kubernetes ``` {{% /tab %}} {{< /tabs >}} 1. Restart the kubelet: ```shell sudo systemctl daemon-reload sudo systemctl restart kubelet ``` ### Uncordon the node Bring the node back online by marking it schedulable: ```shell # replace with the name of your node kubectl uncordon ``` ## Upgrade worker nodes The upgrade procedure on worker nodes should be executed one node at a time or few nodes at a time, without compromising the minimum required capacity for running your workloads. The following pages show how to upgrade Linux and Windows worker nodes:
null
./vendor/kubernetes/content/en/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade.md
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade.md
[ 0.0465087890625, -0.0970548540353775, 0.03435163199901581, -0.04246532544493675, -0.033599913120269775, 0.035893604159355164, -0.051958587020635605, -0.06244421750307083, 0.010922430083155632, 0.07844824343919754, 0.043404266238212585, -0.08039648830890656, -0.02742421068251133, -0.09638521820306778, 0.07269928604364395, 0.05079536512494087, 0.008986862376332283, -0.051644839346408844, 0.01041982788592577, -0.020841199904680252, -0.09024237096309662, -0.05407962203025818, -0.0020574333611875772, 0.028470054268836975, -0.07284227758646011, -0.009927663020789623, -0.037044793367385864, -0.025070786476135254, 0.019211960956454277, -0.0611136369407177, -0.042737409472465515, 0.0855984091758728, -0.026705976575613022, 0.04442315548658371, 0.06298169493675232, 0.00775323947891593, 0.00498597789555788, 0.05478931590914726, -0.03539865091443062, 0.0005917647504247725, 0.0962507501244545, -0.018477672711014748, -0.03623798489570618, -0.03860173374414444, -0.03213861212134361, 0.040727242827415466, -0.041955746710300446, -0.018791386857628822, -0.009074701927602291, -0.05514543130993843, 0.0539633147418499, -0.08904336392879486, 0.021525397896766663, -0.020642545074224472, 0.06472770869731903, 0.08178342878818512, 0.0033413374330848455, 0.07803487032651901, 0.12713658809661865, -0.046056803315877914, 0.010901224799454212, -0.002170627936720848, 0.018449023365974426, -0.04422537237405777, -0.10771903395652771, -0.04063737392425537, 0.06746792793273926, 0.0065455324947834015, 0.022075757384300232, 0.002104241168126464, 0.01177910901606083, -0.03397759050130844, -0.007780368439853191, -0.03874276578426361, 0.011484818533062935, 0.04527677595615387, -0.005255694035440683, 0.01367484126240015, 0.011323066428303719, -0.08893149346113205, -0.011353886686265469, 0.008585748262703419, 0.018292177468538284, -0.024210220202803612, -0.07075796276330948, -0.06512095779180527, -0.013741595670580864, -0.09212122857570648, 0.0675690695643425, 0.04276081174612045, 0.03499381244182587, -0.005102602299302816, 0.062427818775177, -0.07144050300121307, 0.040073905140161514, 0.03044993244111538, -0.04234429448843002, 0.044545773416757584, 0.038789086043834686, 0.017238028347492218, 0.06765841692686081, 0.020996952429413795, -0.014862008392810822, 0.06429282575845718, -0.013947335071861744, -0.029441412538290024, 0.011332478374242783, -0.02393954060971737, -0.0025773129891604185, -0.012754651717841625, -0.005543900188058615, 0.04638872668147087, 0.01065646018832922, -0.05260556936264038, -0.01912691816687584, -0.03979272395372391, 0.08719022572040558, -0.05017503350973129, -0.024774810299277306, 0.02888367883861065, 0.05937841907143593, -0.07257653772830963, 0.05150258541107178, 0.05247170105576515, -0.10738822817802429, 0.03925078734755516, -0.013726124539971352, 3.722877669104542e-33, 0.04927758872509003, -0.058585554361343384, -0.004422241821885109, -0.0010133733740076423, -0.01719663478434086, -0.06194907799363136, -0.0340721532702446, 0.00037975411396473646, -0.05396633967757225, -0.07536301761865616, -0.08482406288385391, -0.0358128659427166, -0.04175710305571556, -0.03611316904425621, 0.08875679224729538, -0.020695310086011887, -0.06013098731637001, 0.017606602981686592, 0.08608787506818771, 0.023294489830732346, 0.06322420388460159, -0.04833212122321129, -0.03472437337040901, -0.02696816250681877, 0.02321576327085495, -0.011637062765657902, 0.06110495701432228, 0.005119263660162687, -0.03153243660926819, -0.0023618664126843214, 0.008586048148572445, 0.016011850908398628, 0.024314269423484802, 0.045162852853536606, -0.20074157416820526, -0.014368584379553795, 0.0029182815924286842, -0.02002829872071743, -0.08384490758180618, -0.05101942643523216, -0.026767006143927574, -0.018359825015068054, -0.011552052572369576, -0.07738867402076721, 0.11740589886903763, 0.006970470771193504, 0.044281087815761566, -0.001088545424863696, 0.09779977798461914, -0.00280337268486619, -0.024021200835704803, 0.005626848433166742, 0.008232703432440758, -0.027989638969302177, 0.021859189495444298, 0.04397851228713989, 0.10476130992174149, -0.047187354415655136, -0.00855378620326519, 0.00626953411847353, 0.012338892556726933, -0.04084790125489235, -0.0031616282649338245, 0.035803187638521194, 0.04296824708580971, 0.04163237288594246, 0.009799067862331867, 0.059575729072093964, -0.016041630879044533, -0.0006254424224607646, -0.0656711682677269, 0.03416537120938301, -0.06649137288331985, 0.057753875851631165, 0.008423799648880959, -0.07239945977926254, -0.07600857317447662, 0.01989726349711418, -0.1216932088136673, 0.07220188528299332, 0.08550426363945007, -0.06260696053504944, -0.04647372290492058, 0.03699719160795212, 0.05475063994526863, -0.06765914708375931, 0.03209017217159271, 0.0515693835914135, 0.005881079938262701, 0.011795399710536003, 0.014436245895922184, -0.10199148952960968, -0.01936275139451027, 0.07201234996318817, -0.08726172894239426, -4.805399967668387e-33, 0.0500190295279026, 0.036417651921510696, -0.04556993767619133, 0.020083488896489143, -0.018801316618919373, 0.05931426212191582, -0.0444505400955677, 0.07838080078363419, -0.09812740981578827, -0.08607350289821625, -0.015284211374819279, 0.013052623718976974, 0.053146131336688995, -0.06096971780061722, -0.10950911045074463, 0.008491815067827702, -0.045840784907341, -0.022101959213614464, -0.023670414462685585, 0.004422081168740988, -0.005210487637668848, 0.00032521478715352714, 0.025438280776143074, 0.049199555069208145, -0.056073278188705444, 0.016160404309630394, -0.0017429316649213433, 0.13954736292362213, -0.023453060537576675, 0.06543838977813721, 0.059379756450653076, -0.03613925725221634, -0.028688957914710045, 0.0863223746418953, 0.00889840628951788, -0.008296249434351921, 0.06004791334271431, -0.009005774743855, -0.04599355161190033, -0.04131552577018738, -0.02221802808344364, 0.02721254713833332, -0.03738800063729286, 0.018084540963172913, 0.04859396442770958, 0.03888485208153725, 0.03193339705467224, -0.015869734808802605, -0.0013089398853480816, -0.10124054551124573, -0.07297893613576889, 0.015122264623641968, 0.020855695009231567, 0.059085454791784286, -0.03564336150884628, 0.06815104931592941, 0.04768477752804756, 0.10429465770721436, -0.03461645916104317, -0.02285456657409668, -0.03091210313141346, -0.1128537729382515, 0.06400182843208313, -0.04459770396351814, -0.004890350624918938, 0.0012464327737689018, 0.07498663663864136, 0.0829714685678482, 0.02224215678870678, 0.052619561553001404, -0.034363798797130585, 0.040588151663541794, -0.04787333309650421, -0.035307712852954865, -0.021039683371782303, -0.030497871339321136, 0.05877786502242088, 0.035959698259830475, 0.05862069129943848, -0.00157231988850981, -0.02907700650393963, -0.004091330803930759, -0.0102042555809021, -0.009436431340873241, 0.023434052243828773, 0.07187429815530777, 0.08967933803796768, 0.02138143964111805, 0.05982410907745361, -0.002714660717174411, -0.04504694044589996, -0.02172989770770073, -0.0680919662117958, 0.047363631427288055, -0.035226039588451385, -5.1320668603693775e-8, 0.08792833983898163, -0.005694684572517872, -0.07535421848297119, 0.023706743493676186, 0.11171826720237732, -0.014925329945981503, -0.07076716423034668, -0.020819244906306267, -0.057565636932849884, -0.05570457503199577, -0.04509682580828667, 0.07310260832309723, -0.03586987778544426, 0.06210913509130478, 0.06247682124376297, -0.04432421922683716, -0.06396687030792236, 0.03093905746936798, 0.04067119210958481, -0.03519493341445923, -0.09676166623830795, -0.007691460661590099, 0.03229477256536484, 0.03533719480037689, 0.02386391907930374, 0.050213638693094254, 0.012895411811769009, 0.03135789558291435, 0.05676977336406708, 0.03204195201396942, -0.009974096901714802, -0.004124356433749199, -0.0375625304877758, 0.08675317466259003, 0.014351536519825459, 0.03592162951827049, -0.08409783244132996, 0.09717532247304916, 0.09265448898077011, 0.08091641962528229, 0.033070988953113556, -0.03696652129292488, -0.06697851419448853, 0.02910173125565052, -0.017100440338253975, 0.07376966625452042, -0.05469316616654396, 0.014233716763556004, -0.001659267581999302, -0.06192506477236748, 0.03051711991429329, 0.015850502997636795, -0.05799897015094757, 0.05531875416636467, -0.05945008248090744, 0.01000023353844881, -0.06319519877433777, -0.04428856819868088, 0.06075049191713333, 0.03467056155204773, -0.014087804593145847, -0.03676106780767441, -0.10088804364204407, -0.020582977682352066 ]
0.038717