content large_stringlengths 3 20.5k | url large_stringlengths 54 193 | branch large_stringclasses 4
values | source large_stringclasses 42
values | embeddings listlengths 384 384 | score float64 -0.21 0.65 |
|---|---|---|---|---|---|
This page serves two purposes: - Demonstrate how the Kubernetes documentation uses Markdown - Provide a "smoke test" document we can use to test HTML, CSS, and template changes that affect the overall documentation. ## Heading levels The above heading is an H2. The page title renders as an H1. The following sections sh... | https://github.com/kubernetes/website/blob/main//content/en/docs/test.md | main | kubernetes | [
-0.04984980449080467,
0.10505704581737518,
0.10544700920581818,
0.016173074021935463,
0.08123262226581573,
0.010598951019346714,
-0.002077176235616207,
-0.08193516731262207,
0.13194359838962555,
0.004316361621022224,
-0.026886142790317535,
-0.009028504602611065,
-0.01619713008403778,
-0.09... | 0.151899 |
block-level content - A bullet list item can contain a numbered list. 1. Numbered sub-list item 1 1. Numbered sub-list item 2 ### Numbered lists 1. This is a list item. 1. This is another list item in the same list. The number you use in Markdown does not necessarily correlate to the number in the final output. By conv... | https://github.com/kubernetes/website/blob/main//content/en/docs/test.md | main | kubernetes | [
-0.09143475443124771,
0.0014037247747182846,
0.02888377197086811,
-0.02814289554953575,
0.12125742435455322,
0.03750999644398689,
-0.0009176437160931528,
0.05314797908067703,
0.019242828711867332,
0.0033598896116018295,
-0.04950703680515289,
0.04562969133257866,
0.06249520555138588,
-0.067... | 0.079027 |
(view the Markdown source for this page). ```none {{}}This is a warning.{{< /alert \*/>}} ``` ## Links To format a link, put the link text inside square brackets, followed by the link target in parentheses. - `[Link to Kubernetes.io](https://kubernetes.io/)` or - `[Relative link to Kubernetes.io](/)` You can also use H... | https://github.com/kubernetes/website/blob/main//content/en/docs/test.md | main | kubernetes | [
-0.0479109063744545,
0.059666234999895096,
0.05144444853067398,
0.04869285970926285,
0.09288551658391953,
-0.018382875248789787,
0.014205234125256538,
-0.014765436761081219,
0.06105618551373482,
0.026186753064393997,
-0.0017974149668589234,
0.03441382199525833,
0.04089979827404022,
0.02796... | 0.11965 |
long that the text does not fit on a row. Bob-->Alice: Checking with John... Alice->John: Yes... John, how are you? {{}} You can check more [examples](https://mermaid-js.github.io/mermaid/#/examples) from the official docs. ## Sidebars and Admonitions Sidebars and admonitions provide ways to add visual importance to te... | https://github.com/kubernetes/website/blob/main//content/en/docs/test.md | main | kubernetes | [
-0.006334687117487192,
0.11115621775388718,
0.041959185153245926,
-0.04314371570944786,
0.07602426409721375,
0.032256122678518295,
0.008192319422960281,
-0.006087318062782288,
0.017750825732946396,
-0.004539694637060165,
0.03547845780849457,
0.025075627490878105,
0.06368102878332138,
-0.04... | 0.011426 |
This task shows how to scale a StatefulSet. Scaling a StatefulSet refers to increasing or decreasing the number of replicas. ## {{% heading "prerequisites" %}} - StatefulSets are only available in Kubernetes version 1.5 or later. To check your version of Kubernetes, run `kubectl version`. - Not all stateful application... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/run-application/scale-stateful-set.md | main | kubernetes | [
0.05862008035182953,
-0.00012667436385527253,
0.0138937309384346,
-0.009952420368790627,
-0.06942189484834671,
0.021224508062005043,
-0.04545633867383003,
0.004891069605946541,
-0.0065234689973294735,
0.047849807888269424,
-0.04439842328429222,
-0.05656077340245247,
0.009047646075487137,
-... | 0.09754 |
This task shows you how to delete a {{< glossary\_tooltip term\_id="StatefulSet" >}}. ## {{% heading "prerequisites" %}} - This task assumes you have an application running on your cluster represented by a StatefulSet. ## Deleting a StatefulSet You can delete a StatefulSet in the same way you delete other resources in ... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/run-application/delete-stateful-set.md | main | kubernetes | [
-0.0037666079588234425,
0.04840220883488655,
0.047387294471263885,
-0.021577883511781693,
-0.024974651634693146,
-0.015528649091720581,
0.06238654628396034,
-0.14542211592197418,
0.07998239248991013,
0.02743048407137394,
0.00524123152717948,
-0.07991985231637955,
0.021259505301713943,
-0.0... | 0.079116 |
A [HorizontalPodAutoscaler](/docs/concepts/workloads/autoscaling/horizontal-pod-autoscale/) (HPA for short) automatically updates a workload resource (such as a {{< glossary\_tooltip text="Deployment" term\_id="deployment" >}} or {{< glossary\_tooltip text="StatefulSet" term\_id="statefulset" >}}), with the aim of auto... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough.md | main | kubernetes | [
-0.08157411217689514,
0.03337935730814934,
0.059815604239702225,
-0.006419378798455,
-0.10246378928422928,
-0.032503288239240646,
0.00725207244977355,
0.0072174095548689365,
0.03836681321263313,
0.020751893520355225,
-0.007887383922934532,
-0.00550908874720335,
-0.01295006275177002,
-0.025... | 0.146114 |
already existed, and isn't usually a problem). Please note that the current CPU consumption is 0% as there are no clients sending requests to the server (the ``TARGET`` column shows the average across all the Pods controlled by the corresponding deployment). ## Increase the load {#increase-load} Next, see how the autos... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough.md | main | kubernetes | [
0.03724787011742592,
0.007903684861958027,
-0.006457910407334566,
0.030479498207569122,
-0.06385917961597443,
-0.0737345740199089,
-0.05016687139868736,
-0.013094484806060791,
0.027673011645674706,
0.040922947227954865,
-0.03780185058712959,
-0.05558657646179199,
-0.07038963586091995,
-0.0... | 0.10247 |
cpu current: averageUtilization: 0 averageValue: 0 ``` Notice that the `targetCPUUtilizationPercentage` field has been replaced with an array called `metrics`. The CPU utilization metric is a \*resource metric\*, since it is represented as a percentage of a resource specified on pod containers. Notice that you can spec... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough.md | main | kubernetes | [
0.030567027628421783,
-0.000021966876374790445,
-0.024773897603154182,
0.08258584141731262,
-0.042731575667858124,
-0.03064275160431862,
0.018994271755218506,
0.035147637128829956,
0.04268457740545273,
0.03783326596021652,
-0.05039944872260094,
-0.12844493985176086,
0.004984423518180847,
0... | 0.179638 |
serving a total of 10000 requests per second. ### Autoscaling on more specific metrics Many metrics pipelines allow you to describe metrics either by name or by a set of additional descriptors called \_labels\_. For all non-resource metric types (pod, object, and external, described below), you can specify an additiona... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough.md | main | kubernetes | [
-0.021759582683444023,
-0.004535249900072813,
-0.018296891823410988,
0.05171401426196098,
-0.05772973224520683,
-0.034688662737607956,
0.044395264238119125,
-0.013255774043500423,
0.10515111684799194,
0.01363364327698946,
-0.05771443247795105,
-0.11444330215454102,
-0.06999962031841278,
-0... | 0.185285 |
------ ------- AbleToScale True ReadyForNewScale the last scale time was sufficiently old as to warrant a new scale ScalingActive True ValidMetricFound the HPA was able to successfully calculate a replica count from pods metric http\_requests ScalingLimited False DesiredWithinRange the desired replica count is within t... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough.md | main | kubernetes | [
-0.056684911251068115,
-0.012476515024900436,
-0.01227102242410183,
0.02649824693799019,
-0.042623743414878845,
-0.031031794846057892,
-0.09819623827934265,
0.03489290177822113,
0.0022557454649358988,
0.028210828080773354,
0.03634284809231758,
-0.005400725640356541,
-0.01770228147506714,
-... | 0.115268 |
This page shows you how to run a single-instance stateful application in Kubernetes using a PersistentVolume and a Deployment. The application is MySQL. ## {{% heading "objectives" %}} - Create a PersistentVolume referencing a disk in your environment. - Create a MySQL Deployment. - Expose MySQL to other pods in the cl... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/run-application/run-single-instance-stateful-application.md | main | kubernetes | [
0.040629807859659195,
-0.07000302523374557,
0.031562719494104385,
-0.016815323382616043,
-0.09992477297782898,
0.0006716435891576111,
-0.021172014996409416,
0.02694111503660679,
0.03867771849036217,
0.06806983798742294,
-0.074599988758564,
-0.07367121428251266,
0.087241992354393,
-0.019350... | 0.112912 |
pod ready: false If you don't see a command prompt, try pressing enter. mysql> ``` ## Updating The image or any other part of the Deployment can be updated as usual with the `kubectl apply` command. Here are some precautions that are specific to stateful apps: - Don't scale the app. This setup is for single-instance ap... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/run-application/run-single-instance-stateful-application.md | main | kubernetes | [
0.08418925106525421,
-0.06172074005007744,
0.051621805876493454,
-0.026231937110424042,
-0.06462475657463074,
-0.06407296657562256,
-0.028424089774489403,
-0.013434831984341145,
0.02424166165292263,
0.10859417170286179,
-0.014564434066414833,
-0.04338790476322174,
0.07475563138723373,
-0.0... | 0.10457 |
This page shows how to run a replicated stateful application using a {{< glossary\_tooltip term\_id="statefulset" >}}. This application is a replicated MySQL database. The example topology has a single primary server and multiple replicas, using asynchronous row-based replication. {{< note >}} \*\*This is not a product... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/run-application/run-replicated-stateful-application.md | main | kubernetes | [
-0.06464729458093643,
-0.013102104887366295,
0.006660833954811096,
-0.01435554213821888,
-0.12311673909425735,
-0.02590649016201496,
0.021771499887108803,
-0.04907430335879326,
0.0138501962646842,
0.06149759888648987,
-0.036227378994226456,
-0.04650791734457016,
0.11292913556098938,
-0.051... | 0.083522 |
sure you have a dynamic PersistentVolume provisioner enabled, as mentioned in the [prerequisites](#before-you-begin). {{< /note >}} This manifest uses a variety of techniques for managing stateful Pods as part of a StatefulSet. The next section highlights some of these techniques to explain what happens as the Stateful... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/run-application/run-replicated-stateful-application.md | main | kubernetes | [
0.018930500373244286,
-0.07547083497047424,
0.021216772496700287,
0.03173348680138588,
-0.0650673657655716,
-0.04739418625831604,
-0.02185232937335968,
0.008343550376594067,
0.03858292102813721,
0.05354398861527443,
-0.00412385119125247,
0.010081515647470951,
0.07249034941196442,
-0.029114... | 0.116109 |
cloned data files and determines if it's necessary to initialize MySQL replication on the replica. If so, it waits for `mysqld` to be ready and then executes the `CHANGE MASTER TO` and `START SLAVE` commands with replication parameters extracted from the XtraBackup clone files. Once a replica begins replication, it rem... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/run-application/run-replicated-stateful-application.md | main | kubernetes | [
0.0006220149807631969,
-0.05902063846588135,
0.01975574716925621,
0.011873153038322926,
-0.047399964183568954,
-0.05793042108416557,
0.0026593771763145924,
-0.004119619727134705,
0.05656898021697998,
0.05041883513331413,
0.0054660397581756115,
0.07942754775285721,
0.0914945974946022,
-0.04... | 0.100176 |
before deleting them. {{< /note >}} You can see this by running: ```shell kubectl get pvc -l app=mysql ``` Which shows that all 5 PVCs still exist, despite having scaled the StatefulSet down to 3: ``` NAME STATUS VOLUME CAPACITY ACCESSMODES AGE data-mysql-0 Bound pvc-8acbf5dc-b103-11e6-93fa-42010a800002 10Gi RWO 20m da... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/run-application/run-replicated-stateful-application.md | main | kubernetes | [
-0.016887595877051353,
0.009482033550739288,
-0.03294955939054489,
-0.009229147806763649,
0.018099969252943993,
-0.07704085111618042,
0.005200156010687351,
-0.02964744158089161,
0.07592491805553436,
0.05602049082517624,
0.03635961562395096,
-0.008334076032042503,
0.08793988823890686,
-0.02... | 0.038583 |
{{< feature-state for\_k8s\_version="v1.21" state="stable" >}} This page shows how to limit the number of concurrent disruptions that your application experiences, allowing for higher availability while permitting the cluster administrator to manage the clusters nodes. ## {{% heading "prerequisites" %}} {{< version-che... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/run-application/configure-pdb.md | main | kubernetes | [
0.026632381603121758,
-0.012422459200024605,
0.07987134158611298,
-0.01932954601943493,
-0.005386356730014086,
-0.0240727961063385,
-0.04572359099984169,
-0.004663761239498854,
-0.014159034006297588,
0.07591499388217926,
-0.020382188260555267,
-0.003713452722877264,
0.023625453934073448,
-... | 0.172229 |
disruption. When you specify the value as a percentage, it may not map to an exact number of Pods. For example, if you have 7 Pods and you set `minAvailable` to `"50%"`, it's not immediately obvious whether that means 3 Pods or 4 Pods must be available. Kubernetes rounds up to the nearest integer, so in this case, 4 Po... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/run-application/configure-pdb.md | main | kubernetes | [
0.10499506443738937,
-0.057886384427547455,
0.019466759636998177,
0.0029090680181980133,
-0.023487959057092667,
-0.026505865156650543,
-0.009166966192424297,
0.033456578850746155,
0.04470163211226463,
0.06859076768159866,
0.01824825070798397,
-0.07420609146356583,
0.0007459022453986108,
-0... | 0.105842 |
you set `minAvailable` to 100% or the number of replicas, you are requiring zero voluntary evictions. When you set zero voluntary evictions for a workload object such as ReplicaSet, then you cannot successfully drain a Node running one of those Pods. If you try to drain a Node where an unevictable Pod is running, the d... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/run-application/configure-pdb.md | main | kubernetes | [
0.0252995528280735,
0.056808773428201675,
0.013836267404258251,
0.03624143823981285,
-0.011390323750674725,
-0.07339680194854736,
-0.042535923421382904,
0.006666385103017092,
-0.011204340495169163,
0.06496766954660416,
-0.033013246953487396,
-0.06164821982383728,
-0.0033977562561631203,
0.... | 0.067682 |
a disrupted application might not get a chance to become healthy. By using this policy, cluster managers can easily evict misbehaving applications that are guarded by a PDB. More specifically applications with pods in `CrashLoopBackOff` state (due to a bug or misconfiguration), or pods that are just failing to report t... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/run-application/configure-pdb.md | main | kubernetes | [
-0.014623072929680347,
-0.002798711881041527,
0.0606837160885334,
0.03820555657148361,
0.0006779374671168625,
0.022921999916434288,
-0.028921090066432953,
-0.012835079804062843,
0.01825694553554058,
0.04850529879331589,
0.012213768437504768,
-0.038987331092357635,
0.028079388663172722,
-0.... | 0.087193 |
This page shows how to run an application using a Kubernetes Deployment object. ## {{% heading "objectives" %}} - Create an nginx deployment. - Use kubectl to list information about the deployment. - Update the deployment. ## {{% heading "prerequisites" %}} {{< include "task-tutorial-prereqs.md" >}} {{< version-check >... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/run-application/run-stateless-application-deployment.md | main | kubernetes | [
0.001779670361429453,
0.014864490367472172,
0.03393084183335304,
-0.052279870957136154,
-0.06158900633454323,
-0.03493526950478554,
-0.054893698543310165,
0.014556503854691982,
0.038388971239328384,
0.059282559901475906,
-0.0799890011548996,
-0.058600105345249176,
0.020561615005135536,
0.0... | 0.071554 |
This page shows how to delete Pods which are part of a {{< glossary\_tooltip text="stateful set" term\_id="StatefulSet" >}}, and explains the considerations to keep in mind when doing so. ## {{% heading "prerequisites" %}} - This is a fairly advanced task and has the potential to violate some of the properties inherent... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/run-application/force-delete-stateful-set-pod.md | main | kubernetes | [
-0.05746283009648323,
0.013568084686994553,
0.05308791249990463,
0.008693191222846508,
-0.0002491204650141299,
0.010327807627618313,
0.08845564723014832,
-0.14249545335769653,
0.033132392913103104,
0.02139889821410179,
0.015188761055469513,
-0.022338686510920525,
0.02960585057735443,
-0.02... | 0.111288 |
whether a force deletion is successful in killing a Pod, it will immediately free up the name from the apiserver. This would let the StatefulSet controller create a replacement Pod with that same identity; this can lead to the duplication of a still-running Pod, and if said Pod can still communicate with the other memb... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/run-application/force-delete-stateful-set-pod.md | main | kubernetes | [
-0.0030436196830123663,
0.0009843215811997652,
0.05194881930947304,
-0.0028123820666223764,
0.011379017494618893,
-0.03723334148526192,
-0.017284143716096878,
-0.10205492377281189,
0.11442980170249939,
0.06749407947063446,
-0.010365796275436878,
-0.027964774519205093,
0.006181591656059027,
... | 0.138587 |
This guide demonstrates how to access the Kubernetes API from within a pod. ## {{% heading "prerequisites" %}} {{< include "task-tutorial-prereqs.md" >}} ## Accessing the API from within a Pod When accessing the API from within a Pod, locating and authenticating to the API server are slightly different to the external ... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/run-application/access-api-from-pod.md | main | kubernetes | [
-0.010573006235063076,
-0.002301602391526103,
0.04526987671852112,
-0.04112512990832329,
-0.02108578197658062,
0.011982631869614124,
-0.028420334681868553,
0.04261410981416702,
0.07109761238098145,
0.06289682537317276,
-0.05248189717531204,
-0.003370865946635604,
0.017283979803323746,
0.01... | 0.111628 |
["v1"], "serverAddressByClientCIDRs": [ { "clientCIDR": "0.0.0.0/0", "serverAddress": "10.0.1.149:443" } ] } ``` | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/run-application/access-api-from-pod.md | main | kubernetes | [
0.036041259765625,
0.11910921335220337,
-0.02978258952498436,
-0.06993541866540909,
-0.028124181553721428,
-0.0384211465716362,
-0.005293990485370159,
-0.015857748687267303,
0.044493418186903,
-0.04642779752612114,
-0.052092183381319046,
-0.028459444642066956,
-0.015559043735265732,
0.0557... | 0.026918 |
## {{% heading "prerequisites" %}} You must use a kubectl version that is within one minor version difference of your cluster. For example, a v{{< skew currentVersion >}} client can communicate with v{{< skew currentVersionAddMinor -1 >}}, v{{< skew currentVersionAddMinor 0 >}}, and v{{< skew currentVersionAddMinor 1 >... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/tools/install-kubectl-windows.md | main | kubernetes | [
0.038518745452165604,
-0.021287599578499794,
0.04418947547674179,
-0.04108722135424614,
-0.03369123861193657,
0.05258677899837494,
-0.04679824039340019,
-0.025535186752676964,
0.02812880650162697,
0.0499783530831337,
-0.008473723195493221,
-0.09533622860908508,
-0.06633495539426804,
-0.005... | 0.032785 |
autocompletion support for Bash, Zsh, Fish, and PowerShell, which can save you a lot of typing. Below are the procedures to set up autocompletion for PowerShell. {{< include "included/optional-kubectl-configs-pwsh.md" >}} ### Configure kuberc See [kuberc](/docs/reference/kubectl/kuberc) for more information. ### Instal... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/tools/install-kubectl-windows.md | main | kubernetes | [
0.01997358538210392,
0.011408548802137375,
-0.032476067543029785,
-0.016622839495539665,
0.002310287905856967,
0.0797666683793068,
0.0069922199472785,
-0.02881794050335884,
0.026391105726361275,
0.05327162519097328,
-0.053520482033491135,
-0.13517247140407562,
-0.028874970972537994,
-0.001... | 0.084626 |
## {{% heading "prerequisites" %}} You must use a kubectl version that is within one minor version difference of your cluster. For example, a v{{< skew currentVersion >}} client can communicate with v{{< skew currentVersionAddMinor -1 >}}, v{{< skew currentVersionAddMinor 0 >}}, and v{{< skew currentVersionAddMinor 1 >... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/tools/install-kubectl-macos.md | main | kubernetes | [
0.05979350581765175,
-0.027268312871456146,
0.046760138124227524,
-0.06915483623743057,
-0.00833746138960123,
0.016031978651881218,
-0.0777391791343689,
-0.04094339907169342,
0.020730167627334595,
0.049212805926799774,
0.013008495792746544,
-0.07755150645971298,
-0.05319908633828163,
-0.00... | 0.049697 |
kubectl configurations and plugins ### Enable shell autocompletion kubectl provides autocompletion support for Bash, Zsh, Fish, and PowerShell which can save you a lot of typing. Below are the procedures to set up autocompletion for Bash, Fish, and Zsh. {{< tabs name="kubectl\_autocompletion" >}} {{< tab name="Bash" in... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/tools/install-kubectl-macos.md | main | kubernetes | [
0.0047557600773870945,
0.01775960624217987,
-0.018455369397997856,
-0.04718625545501709,
-0.011873750947415829,
0.046506285667419434,
0.056629717350006104,
0.012134619988501072,
-0.008979033678770065,
0.008649722672998905,
-0.022242002189159393,
-0.1336745321750641,
-0.018928388133645058,
... | 0.037768 |
## {{% heading "prerequisites" %}} You must use a kubectl version that is within one minor version difference of your cluster. For example, a v{{< skew currentVersion >}} client can communicate with v{{< skew currentVersionAddMinor -1 >}}, v{{< skew currentVersionAddMinor 0 >}}, and v{{< skew currentVersionAddMinor 1 >... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/tools/install-kubectl-linux.md | main | kubernetes | [
0.05226324871182442,
-0.029982568696141243,
0.035147037357091904,
-0.06152347847819328,
-0.020162247121334076,
0.021577216684818268,
-0.061465196311473846,
-0.019428450614213943,
0.026616165414452553,
0.057267192751169205,
0.014801272191107273,
-0.07855608314275742,
-0.07991785556077957,
-... | 0.051694 |
>}} In releases older than Debian 12 and Ubuntu 22.04, folder `/etc/apt/keyrings` does not exist by default, and it should be created before the curl command. {{< /note >}} 3. Add the appropriate Kubernetes `apt` repository. If you want to use Kubernetes version different than {{< param "version" >}}, replace {{< param... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/tools/install-kubectl-linux.md | main | kubernetes | [
0.04215788468718529,
0.030358225107192993,
0.05826008692383766,
-0.05993375927209854,
-0.09910238534212112,
0.01613546535372734,
-0.05343204736709595,
0.007493720389902592,
0.11841201782226562,
0.07758549600839615,
0.01589488610625267,
0.023951580747961998,
-0.04333282634615898,
-0.0549414... | 0.001656 |
(r): a ``` 3. Install kubectl using `zypper`: ```bash sudo zypper install -y kubectl ``` {{% /tab %}} {{< /tabs >}} ### Install using other package management {{< tabs name="other\_kubectl\_install" >}} {{% tab name="Snap" %}} If you are on Ubuntu or another Linux distribution that supports the [snap](https://snapcraft... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/tools/install-kubectl-linux.md | main | kubernetes | [
0.034959547221660614,
-0.00929703377187252,
0.013952910900115967,
-0.09398126602172852,
-0.03577849268913269,
-0.028651181608438492,
-0.026168376207351685,
-0.011908826418220997,
0.04539933800697327,
-0.020813999697566032,
-0.01984979398548603,
-0.06947019696235657,
-0.025668323040008545,
... | 0.014332 |
{{< note >}} See the [Learning environment](/docs/setup/learning-environment/) page to set up a practice environment. {{< /note >}} ## kubectl The Kubernetes command-line tool, [kubectl](/docs/reference/kubectl/kubectl/), allows you to run commands against Kubernetes clusters. You can use kubectl to deploy applications... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/tools/_index.md | main | kubernetes | [
0.06003042683005333,
-0.041462674736976624,
0.011189506389200687,
-0.005025897175073624,
-0.009022827260196209,
-0.026782695204019547,
-0.056388624012470245,
-0.014554573222994804,
-0.0000031284553188015707,
0.05335966497659683,
0.008482211269438267,
-0.049469511955976486,
-0.029830358922481... | 0.194349 |
The kubectl completion script for Zsh can be generated with the command `kubectl completion zsh`. Sourcing the completion script in your shell enables kubectl autocompletion. To do so in all your shell sessions, add the following to your `~/.zshrc` file: ```zsh source <(kubectl completion zsh) ``` If you have an alias ... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/tools/included/optional-kubectl-configs-zsh.md | main | kubernetes | [
0.016819965094327927,
0.007594698574393988,
0.04755403846502304,
-0.06269538402557373,
-0.008045392110943794,
0.015180493704974651,
0.028645599260926247,
-0.005314305890351534,
0.04721364751458168,
0.04564916715025902,
-0.03546837717294693,
-0.11177973449230194,
-0.032783277332782745,
0.04... | 0.037128 |
In order for kubectl to find and access a Kubernetes cluster, it needs a [kubeconfig file](/docs/concepts/configuration/organize-cluster-access-kubeconfig/), which is created automatically when you create a cluster using [kube-up.sh](https://github.com/kubernetes/kubernetes/blob/master/cluster/kube-up.sh) or successful... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/tools/included/verify-kubectl.md | main | kubernetes | [
0.0654369443655014,
0.007390664890408516,
-0.015025731176137924,
0.003800783073529601,
-0.015387207269668579,
0.06518241763114929,
-0.06592050939798355,
-0.028790662065148354,
0.11260917037725449,
0.08204029500484467,
0.0006312484620139003,
-0.047414325177669525,
-0.0012274527689442039,
-0... | 0.043836 |
### Introduction The kubectl completion script for Bash can be generated with `kubectl completion bash`. Sourcing this script in your shell enables kubectl completion. However, the kubectl completion script depends on [\*\*bash-completion\*\*](https://github.com/scop/bash-completion) which you thus have to previously i... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/tools/included/optional-kubectl-configs-bash-mac.md | main | kubernetes | [
0.04257602244615555,
-0.006740476004779339,
0.06776122748851776,
-0.07527825981378555,
-0.03090360015630722,
0.03026260808110237,
0.03205788880586624,
-0.06650004535913467,
0.07894740253686905,
0.008089471608400345,
-0.05974818393588066,
-0.0761437863111496,
-0.005462176166474819,
-0.00849... | 0.068302 |
\* Learn about [kubectl](/docs/concepts/overview/kubectl/) and its role in the Kubernetes ecosystem. \* [Install Minikube](https://minikube.sigs.k8s.io/docs/start/) \* See the [getting started guides](/docs/setup/) for more about creating clusters. \* [Learn how to launch and expose your application.](/docs/tasks/acces... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/tools/included/kubectl-whats-next.md | main | kubernetes | [
0.061727553606033325,
-0.020731495693325996,
-0.02742675505578518,
0.008899864740669727,
-0.03701752796769142,
0.053382501006126404,
-0.03700728341937065,
0.027417883276939392,
0.020234590396285057,
0.02381916716694832,
-0.014988617040216923,
-0.07352825254201889,
0.006225202698260546,
-0.... | 0.129518 |
The kubectl completion script for PowerShell can be generated with the command `kubectl completion powershell`. To do so in all your shell sessions, add the following line to your `$PROFILE` file: ```powershell kubectl completion powershell | Out-String | Invoke-Expression ``` This command will regenerate the auto-comp... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/tools/included/optional-kubectl-configs-pwsh.md | main | kubernetes | [
0.050810668617486954,
-0.00021635572193190455,
0.036284491419792175,
-0.0004027430550195277,
-0.035408247262239456,
0.06702718138694763,
0.025787290185689926,
-0.04765331372618675,
0.05243773013353348,
0.06206829845905304,
-0.09159011393785477,
-0.11700333654880524,
-0.024701042100787163,
... | 0.051023 |
### Introduction The kubectl completion script for Bash can be generated with the command `kubectl completion bash`. Sourcing the completion script in your shell enables kubectl autocompletion. However, the completion script depends on [\*\*bash-completion\*\*](https://github.com/scop/bash-completion), which means that... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/tools/included/optional-kubectl-configs-bash-linux.md | main | kubernetes | [
0.015718309208750725,
-0.013500475324690342,
0.037332020699977875,
-0.07267026603221893,
-0.025612041354179382,
0.04924694821238518,
0.0409729927778244,
-0.02048441581428051,
0.05785044655203819,
0.0012716233031824231,
-0.05904199555516243,
-0.05672789737582207,
-0.011426262557506561,
-0.0... | 0.115611 |
Kubernetes objects can be created, updated, and deleted by using the `kubectl` command-line tool along with an object configuration file written in YAML or JSON. This document explains how to define and manage objects using configuration files. ## {{% heading "prerequisites" %}} Install [`kubectl`](/docs/tasks/tools/).... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/manage-kubernetes-objects/imperative-config.md | main | kubernetes | [
-0.0350993275642395,
-0.01578344590961933,
-0.01305398903787136,
0.008708111010491848,
-0.05795696750283241,
-0.04103253409266472,
-0.025296831503510475,
-0.03467738628387451,
0.05941396206617355,
0.08003418147563934,
-0.0018012428190559149,
-0.0330352857708931,
0.006223734002560377,
0.010... | 0.168414 |
kubectl create -f --edit ``` ## Migrating from imperative commands to imperative object configuration Migrating from imperative commands to imperative object configuration involves several manual steps. 1. Export the live object to a local object configuration file: ```shell kubectl get / -o yaml > \_.yaml ``` 1. Manua... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/manage-kubernetes-objects/imperative-config.md | main | kubernetes | [
-0.0008968479232862592,
0.06834691762924194,
0.004678648896515369,
-0.003438600106164813,
0.0005667814402841032,
0.043109748512506485,
0.029944851994514465,
-0.03246143460273743,
0.06683363020420074,
0.05681368708610535,
-0.002594753634184599,
-0.08610423654317856,
-0.0558590330183506,
-0.... | 0.08479 |
{{< feature-state feature\_gate\_name="StorageVersionMigrator" >}} Kubernetes relies on API data being actively re-written, to support some maintenance activities related to at rest storage. Two prominent examples are the versioned schema of stored resources (that is, the preferred storage schema changing from v1 to v2... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/manage-kubernetes-objects/storage-version-migration.md | main | kubernetes | [
0.014079347252845764,
0.03511607274413109,
0.058895085006952286,
0.02213640883564949,
0.03831813856959343,
-0.00946006178855896,
-0.08402267843484879,
-0.06192281097173691,
0.05858568102121353,
0.023911003023386,
-0.019528599455952644,
-0.026021236553788185,
0.0016004000790417194,
0.016782... | 0.083417 |
schema, with the webhook in place to perform the necessary schema conversion between them. Before setting v2 as the preferred storage schema version, it's important to ensure that all existing CRs stored as v1 are migrated to v2. This migration can be achieved through \_Storage Version Migration\_ to migrate all CRs fr... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/manage-kubernetes-objects/storage-version-migration.md | main | kubernetes | [
-0.03294670581817627,
0.026769286021590233,
-0.026799773797392845,
-0.03430610150098801,
-0.018998973071575165,
-0.0573679581284523,
-0.03680046647787094,
-0.009717446751892567,
-0.0056448765099048615,
0.023538805544376373,
0.04088329151272774,
-0.1514042764902115,
0.009681419469416142,
0.... | 0.035836 |
etcd. ```shell ETCDCTL\_API=3 etcdctl get /kubernetes.io/example.com/testcrds/default/cr1 [...] | hexdump -C ``` where `[...]` contains the additional arguments for connecting to the etcd server. | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/manage-kubernetes-objects/storage-version-migration.md | main | kubernetes | [
0.0008287336095236242,
0.05158836394548416,
-0.015126511454582214,
-0.07755814492702484,
-0.02802485041320324,
0.035246435552835464,
-0.013389403000473976,
-0.014793351292610168,
0.046858228743076324,
-0.0034461074974387884,
0.009791105054318905,
-0.06336304545402527,
0.01665813848376274,
... | 0.049555 |
[Kustomize](https://github.com/kubernetes-sigs/kustomize) is a standalone tool to customize Kubernetes objects through a [kustomization file](https://kubectl.docs.kubernetes.io/references/kustomize/glossary/#kustomization). Since 1.14, kubectl also supports the management of Kubernetes objects using a kustomization fil... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/manage-kubernetes-objects/kustomization.md | main | kubernetes | [
0.010420124046504498,
0.045627377927303314,
0.032547350972890854,
-0.011245336383581161,
-0.05970879644155502,
-0.01250399462878704,
0.011970446445047855,
-0.032560668885707855,
0.020371438935399055,
0.058219268918037415,
-0.03977196663618088,
-0.06186908110976219,
-0.02494974434375763,
-0... | 0.10749 |
- name: app image: my-app volumeMounts: - name: config mountPath: /config volumes: - name: config configMap: name: example-configmap-1 EOF cat <./kustomization.yaml resources: - deployment.yaml configMapGenerator: - name: example-configmap-1 files: - application.properties EOF ``` Generate the ConfigMap and Deployment:... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/manage-kubernetes-objects/kustomization.md | main | kubernetes | [
0.03027830459177494,
0.008859792724251747,
0.026928361505270004,
-0.01556725800037384,
-0.010170281864702702,
-0.04852144047617912,
0.01755167730152607,
0.021336151286959648,
0.03607866168022156,
0.01124740019440651,
0.05237226188182831,
-0.16331113874912262,
0.06391791254281998,
-0.072460... | 0.101222 |
nameSuffix: "-001" labels: - pairs: app: bingo includeSelectors: true commonAnnotations: oncallPager: 800-555-1212 resources: - deployment.yaml EOF ``` Run `kubectl kustomize ./` to view those fields are all set in the Deployment Resource: ```yaml apiVersion: apps/v1 kind: Deployment metadata: annotations: oncallPager:... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/manage-kubernetes-objects/kustomization.md | main | kubernetes | [
-0.03564804792404175,
0.08586081117391586,
-0.008116256445646286,
-0.0024849344044923782,
-0.00008330105629283935,
-0.00937665719538927,
0.1001439243555069,
-0.06470847874879837,
0.0842006504535675,
0.00010967393609462306,
-0.04630730673670769,
-0.09094415605068207,
-0.010478328913450241,
... | 0.173832 |
mandatory to specify the `target` field in `kustomization.yaml`. For example, increasing the replica number of a Deployment object can also be done through `Json6902` patch. The target resource is matched using `group`, `version`, `kind`, and `name` from the `target` field. ```shell # Create a deployment.yaml file cat ... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/manage-kubernetes-objects/kustomization.md | main | kubernetes | [
-0.007861900143325329,
0.034420598298311234,
0.0585629865527153,
-0.05032689496874809,
-0.04143957793712616,
0.007999127730727196,
-0.017090929672122,
-0.061657391488552094,
0.027314743027091026,
0.0353042408823967,
-0.013724680058658123,
-0.0720328614115715,
0.0054204813204705715,
0.00251... | 0.084015 |
\*\*overlays\*\*. A \*\*base\*\* is a directory with a `kustomization.yaml`, which contains a set of resources and associated customization. A base could be either a local directory or a directory from a remote repo, as long as a `kustomization.yaml` is present inside. An \*\*overlay\*\* is a directory with a `kustomiz... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/manage-kubernetes-objects/kustomization.md | main | kubernetes | [
-0.02885085716843605,
-0.02935345470905304,
0.023324567824602127,
-0.03710469231009483,
0.0058031873777508736,
-0.06586824357509613,
0.0255767572671175,
0.015468956902623177,
0.04512323439121246,
-0.022346388548612595,
0.06248585134744644,
0.004781294614076614,
0.03535047918558121,
-0.0412... | 0.166336 |
in this list should resolve to an OpenAPI definition file for Kubernetes types | | generatorOptions | [GeneratorOptions](https://github.com/kubernetes-sigs/kustomize/blob/master/api/types/generatoroptions.go#L7) | Modify behaviors of all ConfigMap and Secret generator | | images | [][Image](https://github.com/kubernete... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/manage-kubernetes-objects/kustomization.md | main | kubernetes | [
-0.027525590732693672,
0.06331582367420197,
0.0019499672343954444,
0.023583196103572845,
0.00830487534403801,
-0.017176097258925438,
0.041270215064287186,
-0.022224996238946915,
0.013497235253453255,
-0.03020748682320118,
-0.0016302108997479081,
-0.09901415556669235,
0.04509761184453964,
-... | 0.154099 |
Kubernetes objects can quickly be created, updated, and deleted directly using imperative commands built into the `kubectl` command-line tool. This document explains how those commands are organized and how to use them to manage live objects. ## {{% heading "prerequisites" %}} Install [`kubectl`](/docs/tasks/tools/). {... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/manage-kubernetes-objects/imperative-command.md | main | kubernetes | [
-0.017417609691619873,
-0.024396665394306183,
-0.0024425338488072157,
0.033167000859975815,
-0.030504511669278145,
-0.05892791226506233,
-0.006439488381147385,
-0.03759245201945305,
0.03661497309803963,
0.09679464250802994,
-0.016891460865736008,
-0.06517496705055237,
-0.024147342890501022,
... | 0.18651 |
deleted as an argument. Here's an example that passes a Deployment object named nginx: {{< /note >}} ```shell kubectl delete deployment/nginx ``` ## How to view an object {{< comment >}} TODO(pwittrock): Uncomment this when implemented. You can use `kubectl view` to print specific fields of an object. - `view`: Prints ... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/manage-kubernetes-objects/imperative-command.md | main | kubernetes | [
-0.04474269971251488,
0.08878061920404434,
-0.0407237745821476,
0.0831170305609703,
0.0014443756081163883,
-0.07265467196702957,
0.0223332978785038,
-0.04516831412911415,
0.06452599167823792,
0.0137242516502738,
-0.016792988404631615,
-0.03097492642700672,
-0.026851637288928032,
-0.0167559... | 0.146631 |
This task shows how to use `kubectl patch` to update an API object in place. The exercises in this task demonstrate a strategic merge patch and a JSON merge patch. ## {{% heading "prerequisites" %}} {{< include "task-tutorial-prereqs.md" >}} {{< version-check >}} ## Use a strategic merge patch to update a Deployment He... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/manage-kubernetes-objects/update-api-object-kubectl-patch.md | main | kubernetes | [
-0.035707563161849976,
0.007217338774353266,
0.06808417290449142,
-0.023987840861082077,
-0.06686456501483917,
-0.03027980588376522,
-0.05865154415369034,
-0.008253348059952259,
0.030320191755890846,
0.08391664177179337,
-0.0008456852519884706,
-0.04449868202209473,
0.02862677164375782,
-0... | 0.136485 |
...." }, "x-kubernetes-patch-merge-key": "name", "x-kubernetes-patch-strategy": "merge" } ``` And you can see the patch strategy in the [Kubernetes API documentation](/docs/reference/generated/kubernetes-api/{{< param "version" >}}/#podspec-v1-core). Create a file named `patch-file-tolerations.yaml` that has this conte... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/manage-kubernetes-objects/update-api-object-kubectl-patch.md | main | kubernetes | [
0.014621155336499214,
-0.04983619228005409,
0.07087407261133194,
-0.017733817920088768,
0.010379067622125149,
0.016484420746564865,
-0.024745745584368706,
-0.01589590311050415,
0.03977183625102043,
0.08544229716062546,
0.021429559215903282,
-0.0028099634218961,
-0.004413754213601351,
-0.09... | 0.10162 |
not be specified when strategy `type` is 'Recreate' ``` The way to remove the value for `spec.strategy.rollingUpdate` when updating the value for `type` is to use the `retainKeys` strategy for the strategic merge. Create another file named `patch-file-retainkeys.yaml` that has this content: ```yaml spec: strategy: $ret... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/manage-kubernetes-objects/update-api-object-kubectl-patch.md | main | kubernetes | [
-0.009766182862222195,
0.03299522027373314,
0.010643508285284042,
-0.03714822605252266,
-0.06224484741687775,
0.028574639931321144,
0.009173373691737652,
-0.05263352394104004,
0.04494590684771538,
0.0685645341873169,
0.06862515956163406,
0.02932562306523323,
-0.004554663319140673,
-0.08357... | 0.021211 |
Here's a manifest for a Deployment that has two replicas: {{% code\_sample file="application/deployment.yaml" %}} Create the Deployment: ```shell kubectl apply -f https://k8s.io/examples/application/deployment.yaml ``` View the Pods associated with your Deployment: ```shell kubectl get pods -l app=nginx ``` In the outp... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/manage-kubernetes-objects/update-api-object-kubectl-patch.md | main | kubernetes | [
-0.016421375796198845,
-0.019656037911772728,
0.09739631414413452,
-0.019015654921531677,
-0.039603155106306076,
-0.03098965249955654,
-0.039844948798418045,
-0.023353850468993187,
0.041457828134298325,
0.033069007098674774,
-0.025727368891239166,
-0.06131145730614662,
0.019113760441541672,
... | 0.096431 |
Kubernetes objects can be created, updated, and deleted by storing multiple object configuration files in a directory and using `kubectl apply` to recursively create and update those objects as needed. This method retains writes made to live objects without merging the changes back into the object configuration files. ... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/manage-kubernetes-objects/declarative-config.md | main | kubernetes | [
-0.033866219222545624,
-0.01922781765460968,
0.024589186534285545,
-0.01037729810923338,
-0.03041445091366768,
-0.07004493474960327,
-0.025216305628418922,
-0.06255156546831131,
0.05390239506959915,
0.09584411233663559,
-0.012901288457214832,
-0.024134531617164612,
-0.023089725524187088,
-... | 0.155867 |
update all objects defined in a directory, even if those objects already exist. This approach accomplishes the following: 1. Sets fields that appear in the configuration file in the live configuration. 2. Clears fields removed from the configuration file in the live configuration. ```shell kubectl diff -f kubectl apply... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/manage-kubernetes-objects/declarative-config.md | main | kubernetes | [
-0.006235840264707804,
0.04161158576607704,
0.03033037669956684,
-0.01446204911917448,
-0.02875373885035515,
-0.0774087905883789,
0.0029695075936615467,
-0.011211840435862541,
0.05515788495540619,
0.07795989513397217,
0.05728122964501381,
-0.05821291357278824,
0.014086485840380192,
-0.0817... | 0.056909 |
# ... labels: app: nginx spec: containers: - image: nginx:1.16.1 # Set by `kubectl apply` # ... name: nginx ports: - containerPort: 80 # ... # ... # ... # ... ``` {{< warning >}} Mixing `kubectl apply` with the imperative object configuration commands `create` and `replace` is not supported. This is because `create` an... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/manage-kubernetes-objects/declarative-config.md | main | kubernetes | [
-0.008059509098529816,
0.0806930810213089,
0.044383883476257324,
-0.019896507263183594,
0.002453181426972151,
-0.03764043003320694,
0.024641789495944977,
-0.06960473954677582,
0.10119996219873428,
0.04052867367863655,
-0.011226236820220947,
-0.056801725178956985,
0.009856450371444225,
-0.0... | 0.121294 |
the subdirectory. {{< /warning >}} {{% /tab %}} {{% tab name="Apply set" %}} {{< feature-state for\_k8s\_version="v1.27" state="alpha" >}} {{< caution >}} `kubectl apply --prune --applyset` is in alpha, and backwards incompatible changes might be introduced in subsequent releases. {{< /caution >}} To use ApplySet-based... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/manage-kubernetes-objects/declarative-config.md | main | kubernetes | [
0.06802772730588913,
0.05988207459449768,
0.010587338358163834,
-0.028939368203282356,
-0.009339223615825176,
0.025667058303952217,
0.01895992085337639,
-0.0040017846040427685,
-0.05156421661376953,
0.014375525526702404,
0.03105819784104824,
-0.08244115114212036,
0.005426634568721056,
-0.0... | 0.033047 |
the live configuration. Here are the steps used to calculate which fields should be deleted or set: 1. Calculate the fields to delete. These are the fields present in `last-applied-configuration` and missing from the configuration file. 2. Calculate the fields to add or set. These are the fields present in the configur... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/manage-kubernetes-objects/declarative-config.md | main | kubernetes | [
-0.02911379747092724,
0.049599163234233856,
0.018007390201091766,
-0.02397502027451992,
0.045581940561532974,
-0.03031633235514164,
-0.028020333498716354,
-0.09164147824048996,
0.10890056937932968,
0.0710415169596672,
0.02542218193411827,
-0.04992258921265602,
0.015734834596514702,
-0.0735... | 0.022265 |
map or list field, it typically does not replace the entire field, but instead updates the individual subelements. For instance, when merging the `spec` on a Deployment, the entire `spec` is not replaced. Instead the subfields of `spec`, such as `replicas`, are compared and merged. ### Merging changes to primitive fiel... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/manage-kubernetes-objects/declarative-config.md | main | kubernetes | [
0.01177288219332695,
0.09167931228876114,
0.07881376892328262,
0.036193232983350754,
0.024442875757813454,
-0.06951462477445602,
-0.028383439406752586,
0.01523042842745781,
-0.01986716315150261,
0.04428446292877197,
0.04427492246031761,
0.0289837084710598,
-0.07246652245521545,
-0.08972197... | 0.062482 |
list as though it was a map where each element is keyed by `name`. ```yaml # last-applied-configuration value containers: - name: nginx image: nginx:1.16 - name: nginx-helper-a # key: nginx-helper-a; will be deleted in result image: helper:1.3 - name: nginx-helper-b # key: nginx-helper-b; will be retained image: helper... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/manage-kubernetes-objects/declarative-config.md | main | kubernetes | [
-0.03068547323346138,
0.0814700573682785,
-0.0006170675624161959,
-0.0017106247832998633,
0.05699458345770836,
0.02009439654648304,
0.042109545320272446,
-0.012018252164125443,
-0.015667537227272987,
-0.00933058187365532,
0.056466735899448395,
0.0008979251142591238,
0.025514977052807808,
-... | 0.038511 |
apiserver name: nginx ports: - containerPort: 80 protocol: TCP # defaulted by apiserver resources: {} # defaulted by apiserver terminationMessagePath: /dev/termination-log # defaulted by apiserver dnsPolicy: ClusterFirst # defaulted by apiserver restartPolicy: Always # defaulted by apiserver securityContext: {} # defau... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/manage-kubernetes-objects/declarative-config.md | main | kubernetes | [
-0.045323893427848816,
0.03832050412893295,
0.06717462092638016,
-0.01314401812851429,
-0.04066351801156998,
-0.0308646559715271,
-0.009659658186137676,
-0.06838926672935486,
0.035110581666231155,
0.047017402946949005,
-0.007925735786557198,
0.0015955772250890732,
-0.022288385778665543,
0.... | 0.05209 |
a direct imperative writer As of Kubernetes 1.5, changing ownership of a field from a configuration file to an imperative writer requires manual steps: - Remove the field from the configuration file. - Remove the field from the `kubectl.kubernetes.io/last-applied-configuration` annotation on the live object. ## Changin... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/manage-kubernetes-objects/declarative-config.md | main | kubernetes | [
-0.038763150572776794,
0.10043685883283615,
0.04449014738202095,
-0.0005726818926632404,
-0.03143644705414772,
-0.06041952967643738,
0.015539761632680893,
-0.01701973006129265,
0.02944471687078476,
0.07359229773283005,
-0.02605535089969635,
-0.03852270543575287,
-0.027850817888975143,
0.00... | 0.102728 |
{{< feature-state feature\_gate\_name="MultiCIDRServiceAllocator" >}} This document shares how to extend the existing Service IP range assigned to a cluster. ## {{% heading "prerequisites" %}} {{< include "task-tutorial-prereqs.md" >}} {{< version-check >}} {{< note >}} While you can use this feature with an earlier ve... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/network/extend-service-ip-ranges.md | main | kubernetes | [
-0.061429765075445175,
-0.020293058827519417,
0.028824953362345695,
-0.011745189316570759,
-0.04506590962409973,
0.029261138290166855,
-0.014633766375482082,
-0.04257242754101753,
-0.023923566564917564,
0.057536207139492035,
-0.029941774904727936,
-0.04951417073607445,
0.038982879370450974,
... | 0.119104 |
you cluster. ```yaml apiVersion: admissionregistration.k8s.io/v1 kind: ValidatingAdmissionPolicy metadata: name: "servicecidrs.default" spec: failurePolicy: Fail matchConstraints: resourceRules: - apiGroups: ["networking.k8s.io"] apiVersions: ["v1"] operations: ["CREATE", "UPDATE"] resources: ["servicecidrs"] matchCond... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/network/extend-service-ip-ranges.md | main | kubernetes | [
0.02600468136370182,
0.005930890329182148,
0.012725615873932838,
-0.01663760468363762,
0.017374394461512566,
-0.02515716478228569,
0.028148872777819633,
-0.04033539816737175,
0.028087938204407692,
0.0736137181520462,
0.008585356175899506,
-0.11477626860141754,
0.055600281804800034,
-0.0133... | 0.093795 |
This document shares how to validate IPv4/IPv6 dual-stack enabled Kubernetes clusters. ## {{% heading "prerequisites" %}} \* Provider support for dual-stack networking (Cloud provider or otherwise must be able to provide Kubernetes nodes with routable IPv4/IPv6 network interfaces) \* A [network plugin](/docs/concepts/e... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/network/validate-dual-stack.md | main | kubernetes | [
-0.022723203524947166,
-0.03967895358800888,
0.05909309163689613,
-0.017696654424071312,
-0.011917979456484318,
0.04819725453853607,
-0.08468364924192429,
-0.05089963600039482,
-0.01183205284178257,
0.010458153672516346,
-0.01467025838792324,
-0.046756282448768616,
-0.0483597069978714,
-0.... | 0.094233 |
defines `IPv6` as the first array element in `.spec.ipFamilies`. Kubernetes will assign a cluster IP for the Service from the IPv6 range configured `service-cluster-ip-range` and set the `.spec.ipFamilyPolicy` to `SingleStack`. {{% code\_sample file="service/networking/dual-stack-ipfamilies-ipv6.yaml" %}} Use `kubectl`... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/network/validate-dual-stack.md | main | kubernetes | [
0.018340349197387695,
-0.03967742621898651,
-0.03940102085471153,
-0.014307080768048763,
-0.02959028072655201,
0.04858162999153137,
-0.02547134831547737,
-0.04932956025004387,
0.0911751389503479,
0.03566472977399826,
-0.015552193857729435,
-0.03932543471455574,
-0.09269844740629196,
-0.084... | 0.100993 |
Adding entries to a Pod's `/etc/hosts` file provides Pod-level override of hostname resolution when DNS and other options are not applicable. You can add these custom entries with the HostAliases field in PodSpec. The Kubernetes project recommends modifying DNS configuration using the `hostAliases` field (part of the `... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/network/customize-hosts-file-for-pods.md | main | kubernetes | [
-0.008517113514244556,
0.047316476702690125,
0.07792284339666367,
-0.022365786135196686,
-0.06559214740991592,
-0.05175568908452988,
-0.034409187734127045,
-0.017654215916991234,
0.07318830490112305,
0.06764738261699677,
-0.08665765821933746,
-0.01923738606274128,
-0.018462033942341805,
-0... | 0.104391 |
{{< feature-state feature\_gate\_name="MultiCIDRServiceAllocator" >}} This document shares how to reconfigure the default Service IP range(s) assigned to a cluster. ## {{% heading "prerequisites" %}} {{< include "task-tutorial-prereqs.md" >}} {{< version-check >}} ## Kubernetes Default ServiceCIDR Reconfiguration This ... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/network/reconfigure-default-service-ip-ranges.md | main | kubernetes | [
-0.011463510803878307,
-0.0372595451772213,
0.03758642077445984,
-0.06303688138723373,
-0.045178595930337906,
0.02837231196463108,
-0.025863973423838615,
-0.06419584900140762,
0.06765780597925186,
0.040039461106061935,
-0.007444362621754408,
-0.024903850629925728,
0.01382842380553484,
-0.0... | 0.161385 |
configuration. 1. \*\*Managing existing Services:\*\* Services with IPs from the old CIDR need to be addressed if they are not within the new configured ranges. Options include recreation (leading to downtime and new IP assignments) or potentially more complex reconfiguration strategies. 1. \*\*Recreating internal Kube... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/network/reconfigure-default-service-ip-ranges.md | main | kubernetes | [
-0.043200187385082245,
-0.04296785220503807,
0.03949880599975586,
-0.06253720819950104,
-0.04812796786427498,
0.0440048910677433,
-0.019477222114801407,
-0.07267642766237259,
0.03906968608498573,
0.03295920044183731,
0.025577882304787636,
-0.02847534790635109,
0.003020565491169691,
-0.0229... | 0.145343 |
{{< feature-state feature\_gate\_name="UserNamespacesSupport" >}} This page shows how to configure a user namespace for pods. This allows you to isolate the user running inside the container from the one in the host. A process running as root in a container can run as a different (non-root) user in the host; in other w... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/configure-pod-container/user-namespaces.md | main | kubernetes | [
0.005609716754406691,
0.014275073073804379,
0.03675315901637077,
0.00495578907430172,
-0.004669480491429567,
-0.0626492127776146,
0.018228022381663322,
0.027079621329903603,
-0.01575574278831482,
0.033883050084114075,
-0.014169547706842422,
-0.04109261929988861,
0.002538284519687295,
-0.02... | 0.187831 |
This page shows how to configure Pods so that they will be assigned particular {{< glossary\_tooltip text="Quality of Service (QoS) classes" term\_id="qos-class" >}}. Kubernetes uses QoS classes to make decisions about evicting Pods when Node resources are exceeded. When Kubernetes creates a Pod it assigns one of these... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/configure-pod-container/quality-service-pod.md | main | kubernetes | [
-0.03634374216198921,
0.04033605754375458,
0.0568464919924736,
0.01733206771314144,
-0.0032526087015867233,
0.00379015039652586,
0.11642798781394958,
-0.015014633536338806,
0.03757772967219353,
0.04089350998401642,
-0.001290222629904747,
0.0013996630441397429,
-0.010672044940292835,
0.0305... | 0.150927 |
Pod: ```shell kubectl apply -f https://k8s.io/examples/pods/qos/qos-pod-2.yaml --namespace=qos-example ``` View detailed information about the Pod: ```shell kubectl get pod qos-demo-2 --namespace=qos-example --output=yaml ``` The output shows that Kubernetes gave the Pod a QoS class of `Burstable`: ```yaml spec: contai... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/configure-pod-container/quality-service-pod.md | main | kubernetes | [
-0.004294210113584995,
0.04414821416139603,
0.03147324547171593,
-0.00010345147165935487,
0.029167920351028442,
-0.007883486337959766,
0.03480822965502739,
0.008545612916350365,
0.030244721099734306,
0.07488562911748886,
0.004241227637976408,
-0.0076096272096037865,
-0.014236455783247948,
... | 0.174449 |
This page shows how to use a [`projected`](/docs/concepts/storage/volumes/#projected) Volume to mount several existing volume sources into the same directory. Currently, `secret`, `configMap`, `downwardAPI`, and `serviceAccountToken` volumes can be projected. {{< note >}} `serviceAccountToken` is not a volume type. {{<... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/configure-pod-container/configure-projected-volume-storage.md | main | kubernetes | [
-0.08953670412302017,
-0.030319876968860626,
-0.026696128770709038,
-0.020651016384363174,
-0.05164359509944916,
-0.006092133466154337,
0.022356174886226654,
0.032552339136600494,
-0.0005452113691717386,
0.06759640574455261,
-0.01155030820518732,
-0.0548243410885334,
0.10893071442842484,
0... | 0.064774 |
Kubernetes offers two distinct ways for clients that run within your cluster, or that otherwise have a relationship to your cluster's {{< glossary\_tooltip text="control plane" term\_id="control-plane" >}} to authenticate to the {{< glossary\_tooltip text="API server" term\_id="kube-apiserver" >}}. A \_service account\... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/configure-pod-container/configure-service-account.md | main | kubernetes | [
-0.03450639545917511,
-0.04287169128656387,
0.03345206752419472,
-0.015885967761278152,
-0.09204373508691788,
-0.008822721429169178,
0.11906163394451141,
-0.053371261805295944,
0.11724640429019928,
0.051057763397693634,
-0.028779959306120872,
-0.09610509872436523,
0.030941851437091827,
0.0... | 0.122772 |
you tried creating `build-robot` ServiceAccount from the example above, you can clean it up by running: ```shell kubectl delete serviceaccount/build-robot ``` ## Manually create an API token for a ServiceAccount Suppose you have an existing service account named "build-robot" as mentioned earlier. You can get a time-li... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/configure-pod-container/configure-service-account.md | main | kubernetes | [
-0.038600992411375046,
-0.016540201380848885,
0.02150791883468628,
-0.021331433206796646,
-0.07050707191228867,
-0.027499327436089516,
0.007431560195982456,
0.014969500713050365,
0.05393947660923004,
0.04972723498940468,
-0.014328978955745697,
-0.14386580884456635,
0.07760601490736008,
-0.... | 0.116096 |
``` You can achieve the same outcome by editing the object manually: ```shell kubectl edit serviceaccount/default ``` The output of the `sa.yaml` file is similar to this: Your selected text editor will open with a configuration looking something like this: ```yaml apiVersion: v1 kind: ServiceAccount metadata: creationT... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/configure-pod-container/configure-service-account.md | main | kubernetes | [
-0.010897996835410595,
-0.007454309146851301,
-0.0068614487536251545,
-0.009452317841351032,
-0.06091571971774101,
0.009534099139273167,
-0.03520287200808525,
-0.01307134423404932,
0.12936557829380035,
0.07587210088968277,
0.028316091746091843,
-0.0854402482509613,
0.03632988780736923,
-0.... | 0.075758 |
"aud": [ # matches the requested audiences, or the API server's default audiences when none are explicitly requested "https://kubernetes.default.svc" ], "exp": 1731613413, "iat": 1700077413, "iss": "https://kubernetes.default.svc", # matches the first value passed to the --service-account-issuer flag "jti": "ea28ed49-2... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/configure-pod-container/configure-service-account.md | main | kubernetes | [
0.027517050504684448,
0.0064981430768966675,
0.0035037717316299677,
-0.03319849818944931,
0.008033904246985912,
-0.05862745642662048,
0.02271600067615509,
-0.07531362771987915,
0.10446243733167648,
0.052264753729104996,
-0.03301095589995384,
-0.12376298755407333,
-0.043064624071121216,
0.0... | 0.147762 |
responses from the API server can be made available by users or by service providers. In these cases, it is possible to override the `jwks\_uri` in the OpenID Provider Configuration so that it points to the public endpoint, rather than the API server's address, by passing the `--service-account-jwks-uri` flag to the AP... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/configure-pod-container/configure-service-account.md | main | kubernetes | [
-0.06522303074598312,
0.08784383535385132,
-0.02310929261147976,
0.0035279111471027136,
-0.042504433542490005,
-0.021565375849604607,
-0.02720528654754162,
-0.03245816379785538,
0.08613079786300659,
0.03698863089084625,
-0.08255691081285477,
-0.023918516933918,
0.05873807519674301,
-0.0031... | 0.096721 |
{{< feature-state for\_k8s\_version="v1.18" state="stable" >}} This page shows how to configure [Group Managed Service Accounts](https://docs.microsoft.com/en-us/windows-server/security/group-managed-service-accounts/group-managed-service-accounts-overview) (GMSA) for Pods and containers that will run on Windows nodes.... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/configure-pod-container/configure-gmsa.md | main | kubernetes | [
-0.01676197722554207,
-0.020328860729932785,
-0.007030601147562265,
-0.005764387547969818,
-0.0726274773478508,
0.044483449310064316,
0.044007208198308945,
-0.04766593128442764,
0.027016127482056618,
0.08957906067371368,
-0.05609620735049248,
-0.05407421290874481,
0.03311466798186302,
0.02... | 0.114209 |
manually in JSON format and then converting it: 1. Import the CredentialSpec [module](https://github.com/MicrosoftDocs/Virtualization-Documentation/blob/live/windows-server-container-tools/ServiceAccounts/CredentialSpec.psm1): `ipmo CredentialSpec.psm1` 1. Create a credential spec in JSON format using `New-CredentialSp... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/configure-pod-container/configure-gmsa.md | main | kubernetes | [
-0.05405596271157265,
-0.027162447571754456,
-0.10436242818832397,
-0.05659894272685051,
-0.10237712413072586,
0.01252342015504837,
0.011502806097269058,
0.08254510164260864,
0.020796731114387512,
0.06320945918560028,
-0.02888326346874237,
-0.13322174549102783,
0.020176805555820465,
0.0277... | 0.026096 |
run: with-creds spec: containers: - image: mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019 imagePullPolicy: Always name: iis securityContext: windowsOptions: gmsaCredentialSpecName: gmsa-Webapp1 nodeSelector: kubernetes.io/os: windows ``` As Pod specs with GMSA fields populated (as described above) ... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/configure-pod-container/configure-gmsa.md | main | kubernetes | [
-0.04593469202518463,
0.014260122552514076,
-0.019905468448996544,
-0.026636533439159393,
-0.002993617206811905,
-0.035483360290527344,
0.037524282932281494,
-0.02464006096124649,
0.027182625606656075,
0.06004808843135834,
-0.011995249427855015,
-0.09342749416828156,
0.029369648545980453,
... | 0.120561 |
$($Result = (nltest.exe /query); if ($Result -like '\*0x0 NERR\_Success\*') {return $true} else {return $false}) -eq $false)"] imagePullPolicy: IfNotPresent ``` If you add the `lifecycle` section show above to your Pod spec, the Pod will execute the commands listed to restart the `netlogon` service until the `nltest.ex... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/configure-pod-container/configure-gmsa.md | main | kubernetes | [
0.12542375922203064,
0.004264880437403917,
0.03299299255013466,
0.0053314464166760445,
0.02268037013709545,
-0.00901515781879425,
0.03636851906776428,
-0.01812102645635605,
0.05060308426618576,
0.08393607288599014,
0.07649069279432297,
-0.054726384580135345,
-0.07285837084054947,
0.0595640... | 0.18368 |
This page shows how to create a Pod that uses a {{< glossary\_tooltip text="Secret" term\_id="secret" >}} to pull an image from a private container image registry or repository. There are many private registries in use. This task uses [Docker Hub](https://www.docker.com/products/docker-hub) as an example registry. {{% ... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/configure-pod-container/pull-image-private-registry.md | main | kubernetes | [
-0.03000592440366745,
0.040046609938144684,
-0.004447003826498985,
-0.03761662542819977,
0.04998905956745148,
0.019051149487495422,
0.05719367414712906,
0.040009502321481705,
-0.03714284673333168,
0.05985141918063164,
0.010058272629976273,
-0.09040465950965881,
0.050562117248773575,
0.0129... | 0.011784 |
may store them in your shell history unprotected, and those secrets might also be visible to other users on your PC during the time that `kubectl` is running. {{< /note >}} ## Inspecting the Secret `regcred` To understand the contents of the `regcred` Secret you created, start by viewing the Secret in YAML format: ```s... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/configure-pod-container/pull-image-private-registry.md | main | kubernetes | [
-0.03925955668091774,
0.08781024813652039,
-0.008807915262877941,
-0.016374856233596802,
0.03515966609120369,
0.026409778743982315,
0.0009027261403389275,
-0.024917513132095337,
0.15859349071979523,
0.019844900816679,
-0.026986703276634216,
-0.048533301800489426,
-0.016251498833298683,
-0.... | 0.053696 |
for {{< api-reference page="config-and-storage-resources/secret-v1" >}} \* Learn more about [using a private registry](/docs/concepts/containers/images/#using-a-private-registry). \* Learn more about [adding image pull secrets to a service account](/docs/tasks/configure-pod-container/configure-service-account/#add-imag... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/configure-pod-container/pull-image-private-registry.md | main | kubernetes | [
-0.029563046991825104,
0.03809167444705963,
0.002440281677991152,
0.01344260759651661,
0.002166097518056631,
-0.00031661780667491257,
0.033782102167606354,
0.013454409316182137,
0.050241418182849884,
0.031089412048459053,
0.01446334645152092,
-0.060351211577653885,
0.04009891673922539,
-0.... | 0.112708 |
This page shows how to configure a Pod to use a Volume for storage. A Container's file system lives only as long as the Container does. So when a Container terminates and restarts, filesystem changes are lost. For more consistent storage that is independent of the Container, you can use a [Volume](/docs/concepts/storag... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/configure-pod-container/configure-volume-storage.md | main | kubernetes | [
0.01638813503086567,
-0.022758573293685913,
-0.018306715413928032,
0.03801565244793892,
-0.006831254810094833,
-0.047230314463377,
-0.024708285927772522,
0.07542689144611359,
0.03454391285777092,
0.05583648011088371,
-0.015970109030604362,
0.0618579126894474,
-0.008035278879106045,
0.00095... | 0.150627 |
This page describes the process of migrating from PodSecurityPolicies to the built-in PodSecurity admission controller. This can be done effectively using a combination of dry-run and `audit` and `warn` modes, although this becomes harder if mutating PSPs are used. ## {{% heading "prerequisites" %}} {{% version-check %... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/configure-pod-container/migrate-from-psp.md | main | kubernetes | [
0.08617755770683289,
-0.013243202120065689,
0.044225338846445084,
-0.016524894163012505,
0.08367721736431122,
0.028434066101908684,
0.04106701537966728,
0.005384576972573996,
0.0006030034273862839,
0.07737859338521957,
0.01886105351150036,
-0.03246935456991196,
0.004591470584273338,
-0.019... | 0.119893 |
need to use an [admission webhook](/docs/reference/access-authn-authz/extensible-admission-controllers/) to place additional restrictions on setting Pod Security labels on Namespace objects. ## 2. Simplify & standardize PodSecurityPolicies {#simplify-psps} In this section, you will reduce mutating PodSecurityPolicies a... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/configure-pod-container/migrate-from-psp.md | main | kubernetes | [
-0.020989783108234406,
0.06131739541888237,
-0.011050810106098652,
-0.010398673824965954,
0.006443244870752096,
0.020802941173315048,
0.07599331438541412,
-0.020684368908405304,
-0.014574837870895863,
0.05372973531484604,
0.019178809598088264,
-0.05349263921380043,
0.035606179386377335,
-0... | 0.089017 |
may result in workloads missing required configuration. For each updated PodSecurityPolicy: 1. Identify pods running under the original PSP. This can be done using the `kubernetes.io/psp` annotation. For example, using kubectl: ```sh PSP\_NAME="original" # Set the name of the PSP you're checking for kubectl get pods --... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/configure-pod-container/migrate-from-psp.md | main | kubernetes | [
0.0002362230879953131,
0.012814424932003021,
0.04284033924341202,
0.020877595990896225,
0.03593529388308525,
-0.046973444521427155,
-0.0036262301728129387,
-0.03212085738778114,
0.08997087925672531,
0.09208426624536514,
0.019497347995638847,
-0.05617349222302437,
-0.024941155686974525,
-0.... | 0.110451 |
aren't currently running, such as CronJobs, scale-to-zero workloads, or other workloads that haven't rolled out. {{< /caution >}} ### 3.b. Verify the Pod Security level {#verify-pss-level} Once you have selected a Pod Security level for the namespace (or if you're trying several), it's a good idea to test it out first ... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/configure-pod-container/migrate-from-psp.md | main | kubernetes | [
0.031000370159745216,
-0.013926531188189983,
0.029139045625925064,
0.01544973161071539,
0.05856119468808174,
-0.015982789918780327,
0.028478266671299934,
-0.04517636448144913,
0.0003077580768149346,
0.05251198261976242,
-0.0011808837298303843,
-0.07954091578722,
0.005222860723733902,
-0.02... | 0.12168 |
To verify that the PodSecurityPolicy admission controller is no longer enabled, you can manually run a test by impersonating a user without access to any PodSecurityPolicies (see the [PodSecurityPolicy example](/docs/concepts/security/pod-security-policy/#example)), or by verifying in the API server logs. At startup, t... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/configure-pod-container/migrate-from-psp.md | main | kubernetes | [
0.016123231500387192,
-0.03916070982813835,
0.0214188564568758,
-0.020270921289920807,
0.05616592988371849,
-0.013375484384596348,
-0.002519601956009865,
-0.008077302016317844,
0.013579541817307472,
0.0960829108953476,
0.06715842336416245,
-0.022643785923719406,
-0.0054351263679564,
0.0637... | 0.113819 |
This page shows you how to configure a Pod to use a {{< glossary\_tooltip text="PersistentVolumeClaim" term\_id="persistent-volume-claim" >}} for storage. Here is a summary of the process: 1. You, as cluster administrator, create a PersistentVolume backed by physical storage. You do not associate the volume with any Po... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/configure-pod-container/configure-persistent-volume-storage.md | main | kubernetes | [
-0.011546939611434937,
-0.04204042628407478,
0.03713611140847206,
0.026207631453871727,
-0.04112416133284569,
0.015981270000338554,
0.03956163302063942,
-0.030974505469202995,
0.05143921822309494,
0.057304657995700836,
-0.023249581456184387,
-0.08581528812646866,
0.019512629136443138,
-0.0... | 0.077025 |
bound to a PersistentVolumeClaim. ``` NAME CAPACITY ACCESSMODES RECLAIMPOLICY STATUS CLAIM STORAGECLASS REASON AGE task-pv-volume 10Gi RWO Retain Available manual 4s ``` ## Create a PersistentVolumeClaim The next step is to create a PersistentVolumeClaim. Pods use PersistentVolumeClaims to request physical storage. In ... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/configure-pod-container/configure-persistent-volume-storage.md | main | kubernetes | [
-0.019111942499876022,
0.006944326683878899,
-0.008710017427802086,
0.04303373768925667,
-0.0326528362929821,
-0.002507350407540798,
0.017137303948402405,
0.026986218988895416,
0.0595380999147892,
0.09795740991830826,
-0.011480414308607578,
-0.022297916933894157,
0.04738723859190941,
0.011... | 0.123168 |
for the static website - `/etc/nginx/nginx.conf` for the default config ### Move the index.html file on your Node to a new folder The `index.html` file mentioned here refers to the one created in the "[Create an index.html file on your Node](#create-an-index-html-file-on-your-node)" section. Open a shell to the single ... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/configure-pod-container/configure-persistent-volume-storage.md | main | kubernetes | [
0.06057276204228401,
0.0001131648532464169,
-0.030985115095973015,
0.017017988488078117,
0.030622627586126328,
0.011612854897975922,
-0.10837950557470322,
0.0701259970664978,
-0.029539093375205994,
0.061814386397600174,
-0.045443564653396606,
-0.003925919998437166,
0.0238817036151886,
0.00... | 0.082334 |
a group ID (GID) allows writing only by Pods using the same GID. Mismatched or missing GIDs cause permission denied errors. To reduce the need for coordination with users, an administrator can annotate a PersistentVolume with a GID. Then the GID is automatically added to any Pod that uses the PersistentVolume. Use the ... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/configure-pod-container/configure-persistent-volume-storage.md | main | kubernetes | [
-0.020333170890808105,
0.009782558307051659,
0.0350617989897728,
0.009766542352735996,
0.0447520911693573,
-0.03757791221141815,
0.01891055330634117,
-0.06431986391544342,
0.1418699026107788,
0.029950611293315887,
0.0025921608321368694,
0.010498828254640102,
-0.016869299113750458,
-0.01691... | 0.179034 |
This page shows how to assign a memory \*request\* and a memory \*limit\* to a Container. A Container is guaranteed to have as much memory as it requests, but is not allowed to use more memory than its limit. ## {{% heading "prerequisites" %}} {{< include "task-tutorial-prereqs.md" >}} {{< version-check >}} Each node i... | https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/configure-pod-container/assign-memory-resource.md | main | kubernetes | [
0.11106051504611969,
0.04990960657596588,
-0.038478951901197433,
0.02576381526887417,
-0.046202708035707474,
0.025361578911542892,
-0.03765229135751724,
0.03871975094079971,
0.029666632413864136,
0.06888262182474136,
-0.051693614572286606,
-0.07053756713867188,
-0.012657335959374905,
-0.03... | 0.103038 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.