chunk_id
large_stringlengths
36
36
doc_type
large_stringclasses
2 values
category
large_stringclasses
17 values
document
large_stringclasses
50 values
version_raw
large_stringclasses
590 values
chunk_index
int64
0
262
text
large_stringlengths
11
5.69k
file_path
large_stringclasses
882 values
76566bcd-0761-57fa-bf7f-9abaf32a41b2
docs
kubernetes
kubernetes_kubernetes-api
v135
6
Additional requests are needed to obtain the discovery document for each group version at `/apis/<group>/<version>` (for example: `/apis/rbac.authorization.k8s.io/v1alpha1`), which advertises the list of resources served under a particular group version. These endpoints are used by kubectl to fetch the list of resource...
large_dataset/raw/docs/kubernetes/kubernetes-api/kubernetes-api_v135.md
a82baeb5-b5c0-55c2-a3ef-92a2a3dcce9a
docs
kubernetes
kubernetes_kubernetes-api
v135
7
### OpenAPI V2 The Kubernetes API server serves an aggregated OpenAPI v2 spec via the `/openapi/v2` endpoint. You can request the response format using request headers as follows: Valid request header values for OpenAPI v2 queries | Header | Possible values | Notes | | --- | --- | --- | | `Accept-Encoding` | `gzip` ...
large_dataset/raw/docs/kubernetes/kubernetes-api/kubernetes-api_v135.md
8cbfb13e-588e-5f7d-9a0d-a0985c9ec1cf
docs
kubernetes
kubernetes_kubernetes-api
v135
8
### OpenAPI V3 FEATURE STATE: `Kubernetes v1.27 [stable]`(enabled by default) Kubernetes supports publishing a description of its APIs as OpenAPI v3. A discovery endpoint `/openapi/v3` is provided to see a list of all group/versions available. This endpoint only returns JSON. These group/versions are provided in the...
large_dataset/raw/docs/kubernetes/kubernetes-api/kubernetes-api_v135.md
54518315-5470-5976-9120-b6a96273bf13
docs
kubernetes
kubernetes_kubernetes-api
v135
9
order to improve client-side caching. The proper HTTP caching headers are also set by the API server for that purpose (`Expires` to 1 year in the future, and `Cache-Control` to `immutable`). When an obsolete URL is used, the API server returns a redirect to the newest URL. The Kubernetes API server publishes an OpenAP...
large_dataset/raw/docs/kubernetes/kubernetes-api/kubernetes-api_v135.md
73e237fd-4dc4-5c4f-9142-b63ed0cf638f
docs
kubernetes
kubernetes_kubernetes-api
v135
10
Kubernetes 1.35 publishes OpenAPI v2.0 and v3.0; there are no plans to support 3.1 in the near future. ### Protobuf serialization Kubernetes implements an alternative Protobuf based serialization format that is primarily intended for intra-cluster communication. For more information about this format, see the [Kubern...
large_dataset/raw/docs/kubernetes/kubernetes-api/kubernetes-api_v135.md
975a967e-a74a-5097-99c5-f9a5eda092a1
docs
kubernetes
kubernetes_kubernetes-api
v135
11
## API groups and versioning To make it easier to eliminate fields or restructure resource representations, Kubernetes supports multiple API versions, each at a different API path, such as `/api/v1` or `/apis/rbac.authorization.k8s.io/v1alpha1`. Versioning is done at the API level rather than at the resource or field...
large_dataset/raw/docs/kubernetes/kubernetes-api/kubernetes-api_v135.md
194870ea-b4f1-5fb9-bf0e-e5ed8a8d9a91
docs
kubernetes
kubernetes_kubernetes-api
v135
12
of the same persisted data. The API server may serve the same underlying data through multiple API versions. For example, suppose there are two API versions, `v1` and `v1beta1`, for the same resource. If you originally created an object using the `v1beta1` version of its API, you can later read, update, or delete that...
large_dataset/raw/docs/kubernetes/kubernetes-api/kubernetes-api_v135.md
a8f2a4d1-5bd7-5f13-b35d-98ccc9385ef7
docs
kubernetes
kubernetes_kubernetes-api
v135
13
Elimination of resources or fields requires following the [API deprecation policy](/docs/reference/using-api/deprecation-policy/). Kubernetes makes a strong commitment to maintain compatibility for official Kubernetes APIs once they reach general availability (GA), typically at API version `v1`. Additionally, Kubernet...
large_dataset/raw/docs/kubernetes/kubernetes-api/kubernetes-api_v135.md
04597206-954e-5258-b245-d6157a541ed0
docs
kubernetes
kubernetes_kubernetes-api
v135
14
#### Note: Although Kubernetes also aims to maintain compatibility for *alpha* APIs versions, in some circumstances this is not possible. If you use any alpha API versions, check the release notes for Kubernetes when upgrading your cluster, in case the API did change in incompatible ways that require deleting all exis...
large_dataset/raw/docs/kubernetes/kubernetes-api/kubernetes-api_v135.md
e96b9a63-30df-5c97-87fe-e8524235e25a
docs
kubernetes
kubernetes_kubernetes-api
v135
15
## What's next * Learn how to extend the Kubernetes API by adding your own [CustomResourceDefinition](/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/). * [Controlling Access To The Kubernetes API](/docs/concepts/security/controlling-access/) describes how the cluster manages authenticat...
large_dataset/raw/docs/kubernetes/kubernetes-api/kubernetes-api_v135.md
f7ff5a32-2ff7-524a-a1e6-71af146023d3
docs
kubernetes
kubernetes_kubernetes-api
v135
16
[report a problem](https://github.com/kubernetes/website/issues/new?title=Issue%20with%20k8s.io) or [suggest an improvement](https://github.com/kubernetes/website/issues/new?title=Improvement%20for%20k8s.io). Last modified January 08, 2025 at 10:50 AM PST: [Fix feature gate name conflicts (2/2) (3782732ce4)](https://g...
large_dataset/raw/docs/kubernetes/kubernetes-api/kubernetes-api_v135.md
91759482-6c61-5059-a834-6b81c70562c4
docs
kubernetes
kubernetes_node-overprovisioning
v131
0
# Overprovision Node Capacity For A Cluster Source: https://v1-31.docs.kubernetes.io/docs/tasks/administer-cluster/node-overprovisioning/ Version: v1.31 1. [Kubernetes Documentation](https://kubernetes.io/docs/) 2. [Tasks](https://kubernetes.io/docs/tasks/) 3. [Administer a Cluster](https://kubernetes.io/docs/tasks/a...
large_dataset/raw/docs/kubernetes/node-overprovisioning/node-overprovisioning_v131.md
5be4c4bb-8b86-5d20-848c-b7c0ffb02458
docs
kubernetes
kubernetes_node-overprovisioning
v131
1
reserves a portion of your cluster's compute resources. This reservation helps reduce the time required to schedule new pods during scaling events, enhancing your cluster's responsiveness to sudden spikes in traffic or workload demands. By maintaining some unused capacity, you ensure that resources are immediately ava...
large_dataset/raw/docs/kubernetes/node-overprovisioning/node-overprovisioning_v131.md
76d78046-8d50-5f40-a9af-2c261f5cea65
docs
kubernetes
kubernetes_node-overprovisioning
v131
2
and [PriorityClasses](/docs/concepts/scheduling-eviction/pod-priority-preemption/#priorityclass "A mapping from a class name to the scheduling priority that a Pod should have."). * Your cluster must be set up with an [autoscaler](/docs/concepts/cluster-administration/cluster-autoscaling/) that manages nodes based o...
large_dataset/raw/docs/kubernetes/node-overprovisioning/node-overprovisioning_v131.md
2712a00a-2a20-55fb-aca2-c48d3c224e97
docs
kubernetes
kubernetes_node-overprovisioning
v131
3
description: "Negative priority for placeholder pods to enable overprovisioning." ``` Then create the PriorityClass: ```None kubectl apply -f https://k8s.io/examples/priorityclass/low-priority-class.yaml ``` You will next define a Deployment that uses the negative-priority PriorityClass and runs a minimal container....
large_dataset/raw/docs/kubernetes/node-overprovisioning/node-overprovisioning_v131.md
100b0dec-51aa-53e8-97d3-604698c74444
docs
kubernetes
kubernetes_node-overprovisioning
v131
4
[`deployments/deployment-with-capacity-reservation.yaml`](https://raw.githubusercontent.com/kubernetes/website/release-1.31/content/en/examples/deployments/deployment-with-capacity-reservation.yaml)![](/images/copycode.svg "Copy deployments/deployment-with-capacity-reservation.yaml to clipboard") ```None apiVersion: a...
large_dataset/raw/docs/kubernetes/node-overprovisioning/node-overprovisioning_v131.md
e840d2a3-0fda-5175-8ad0-e87981f0fd30
docs
kubernetes
kubernetes_node-overprovisioning
v131
5
app: placeholder topologyKey: "kubernetes.io/hostname" containers: - name: pause image: registry.k8s.io/pause:3.6 resources: requests: cpu: "50m" memory: "512Mi" limits: memory: "512Mi" ``` ### Pick a namesp...
large_dataset/raw/docs/kubernetes/node-overprovisioning/node-overprovisioning_v131.md
5ca270d0-4fc3-5127-8002-a4059e849521
docs
kubernetes
kubernetes_node-overprovisioning
v131
6
## Adjust placeholder resource requests Configure the resource requests and limits for the placeholder pods to define the amount of overprovisioned resources you want to maintain. This reservation ensures that a specific amount of CPU and memory is kept available for new pods. To edit the Deployment, modify the `reso...
large_dataset/raw/docs/kubernetes/node-overprovisioning/node-overprovisioning_v131.md
e8e6c929-d4e4-5b35-8e30-ed0a559daa99
docs
kubernetes
kubernetes_node-overprovisioning
v131
7
## Set the desired replica count ### Calculate the total reserved resources For example, with 5 replicas each reserving 0.1 CPU and 200MiB of memory: Total CPU reserved: 5 × 0.1 = 0.5 (in the Pod specification, you'll write the quantity `500m`) Total memory reserved: 5 × 200MiB = 1GiB (in the Pod specification, y...
large_dataset/raw/docs/kubernetes/node-overprovisioning/node-overprovisioning_v131.md
d2f69269-dc01-56ff-b801-4a769b285144
docs
kubernetes
kubernetes_node-overprovisioning
v131
8
If you use Karpenter or another node autoscaler that uses the same heuristic, the replica count you set here also sets a minimum node count for your cluster. ## What's next * Learn more about [PriorityClasses](/docs/concepts/scheduling-eviction/pod-priority-preemption/#priorityclass) and how they affect pod schedulin...
large_dataset/raw/docs/kubernetes/node-overprovisioning/node-overprovisioning_v131.md
64f60a84-c8b9-5213-85c6-fafddc6f0418
docs
kubernetes
kubernetes_node-overprovisioning
v131
9
## Feedback Was this page helpful? Yes No Thanks for the feedback. If you have a specific, answerable question about how to use Kubernetes, ask it on [Stack Overflow](https://stackoverflow.com/questions/tagged/kubernetes). Open an issue in the [GitHub Repository](https://www.github.com/kubernetes/website/) if you wa...
large_dataset/raw/docs/kubernetes/node-overprovisioning/node-overprovisioning_v131.md
85a57657-1dc9-597c-8706-451f7457323e
docs
kubernetes
kubernetes_node-overprovisioning
v132
0
# Overprovision Node Capacity For A Cluster Source: https://v1-32.docs.kubernetes.io/docs/tasks/administer-cluster/node-overprovisioning/ Version: v1.32 1. [Kubernetes Documentation](https://kubernetes.io/docs/) 2. [Tasks](https://kubernetes.io/docs/tasks/) 3. [Administer a Cluster](https://kubernetes.io/docs/tasks/a...
large_dataset/raw/docs/kubernetes/node-overprovisioning/node-overprovisioning_v132.md
bd1e0f65-85f3-53c5-ba95-bc1ff4850aec
docs
kubernetes
kubernetes_node-overprovisioning
v132
1
reserves a portion of your cluster's compute resources. This reservation helps reduce the time required to schedule new pods during scaling events, enhancing your cluster's responsiveness to sudden spikes in traffic or workload demands. By maintaining some unused capacity, you ensure that resources are immediately ava...
large_dataset/raw/docs/kubernetes/node-overprovisioning/node-overprovisioning_v132.md
f3176f45-3f67-5fe6-bb61-74f8c8363762
docs
kubernetes
kubernetes_node-overprovisioning
v132
2
and [PriorityClasses](/docs/concepts/scheduling-eviction/pod-priority-preemption/#priorityclass "A mapping from a class name to the scheduling priority that a Pod should have."). * Your cluster must be set up with an [autoscaler](/docs/concepts/cluster-administration/cluster-autoscaling/) that manages nodes based o...
large_dataset/raw/docs/kubernetes/node-overprovisioning/node-overprovisioning_v132.md
8de921fb-4605-5fb2-978c-018faa3518d6
docs
kubernetes
kubernetes_node-overprovisioning
v132
3
description: "Negative priority for placeholder pods to enable overprovisioning." ``` Then create the PriorityClass: ```None kubectl apply -f https://k8s.io/examples/priorityclass/low-priority-class.yaml ``` You will next define a Deployment that uses the negative-priority PriorityClass and runs a minimal container....
large_dataset/raw/docs/kubernetes/node-overprovisioning/node-overprovisioning_v132.md
026cbbc1-c0a1-5b9a-97f2-b4295598b38f
docs
kubernetes
kubernetes_node-overprovisioning
v132
4
[`deployments/deployment-with-capacity-reservation.yaml`](https://raw.githubusercontent.com/kubernetes/website/release-1.32/content/en/examples/deployments/deployment-with-capacity-reservation.yaml)![](/images/copycode.svg "Copy deployments/deployment-with-capacity-reservation.yaml to clipboard") ```None apiVersion: a...
large_dataset/raw/docs/kubernetes/node-overprovisioning/node-overprovisioning_v132.md
c8f7cf75-31ee-5912-af85-30058dbf196b
docs
kubernetes
kubernetes_node-overprovisioning
v132
5
app: placeholder topologyKey: "kubernetes.io/hostname" containers: - name: pause image: registry.k8s.io/pause:3.6 resources: requests: cpu: "50m" memory: "512Mi" limits: memory: "512Mi" ``` ### Pick a namesp...
large_dataset/raw/docs/kubernetes/node-overprovisioning/node-overprovisioning_v132.md
cc46ac14-36e1-50ce-abaf-d6e8913b7068
docs
kubernetes
kubernetes_node-overprovisioning
v132
6
## Adjust placeholder resource requests Configure the resource requests and limits for the placeholder pods to define the amount of overprovisioned resources you want to maintain. This reservation ensures that a specific amount of CPU and memory is kept available for new pods. To edit the Deployment, modify the `reso...
large_dataset/raw/docs/kubernetes/node-overprovisioning/node-overprovisioning_v132.md
dba19578-d45d-55ee-80de-a36a9d8ff3a3
docs
kubernetes
kubernetes_node-overprovisioning
v132
7
## Set the desired replica count ### Calculate the total reserved resources For example, with 5 replicas each reserving 0.1 CPU and 200MiB of memory: Total CPU reserved: 5 × 0.1 = 0.5 (in the Pod specification, you'll write the quantity `500m`) Total memory reserved: 5 × 200MiB = 1GiB (in the Pod specification, y...
large_dataset/raw/docs/kubernetes/node-overprovisioning/node-overprovisioning_v132.md
c29e7904-0266-57f7-bf78-e44a22715d89
docs
kubernetes
kubernetes_node-overprovisioning
v132
8
If you use Karpenter or another node autoscaler that uses the same heuristic, the replica count you set here also sets a minimum node count for your cluster. ## What's next * Learn more about [PriorityClasses](/docs/concepts/scheduling-eviction/pod-priority-preemption/#priorityclass) and how they affect pod schedulin...
large_dataset/raw/docs/kubernetes/node-overprovisioning/node-overprovisioning_v132.md
4749d634-7fc6-5c2b-af33-8076da392717
docs
kubernetes
kubernetes_node-overprovisioning
v132
9
## Feedback Was this page helpful? Yes No Thanks for the feedback. If you have a specific, answerable question about how to use Kubernetes, ask it on [Stack Overflow](https://stackoverflow.com/questions/tagged/kubernetes). Open an issue in the [GitHub Repository](https://www.github.com/kubernetes/website/) if you wa...
large_dataset/raw/docs/kubernetes/node-overprovisioning/node-overprovisioning_v132.md
39c39fb0-eb22-57aa-9956-94bd2dc09392
docs
kubernetes
kubernetes_node-overprovisioning
v133
0
# Overprovision Node Capacity For A Cluster Source: https://v1-33.docs.kubernetes.io/docs/tasks/administer-cluster/node-overprovisioning/ Version: v1.33 1. [Kubernetes Documentation](https://kubernetes.io/docs/) 2. [Tasks](https://kubernetes.io/docs/tasks/) 3. [Administer a Cluster](https://kubernetes.io/docs/tasks/a...
large_dataset/raw/docs/kubernetes/node-overprovisioning/node-overprovisioning_v133.md
6ef179f0-f3f8-5da9-baa7-70d60f81f22a
docs
kubernetes
kubernetes_node-overprovisioning
v133
1
reserves a portion of your cluster's compute resources. This reservation helps reduce the time required to schedule new pods during scaling events, enhancing your cluster's responsiveness to sudden spikes in traffic or workload demands. By maintaining some unused capacity, you ensure that resources are immediately ava...
large_dataset/raw/docs/kubernetes/node-overprovisioning/node-overprovisioning_v133.md
f6729952-2209-552c-94f0-db47d100244b
docs
kubernetes
kubernetes_node-overprovisioning
v133
2
and [PriorityClasses](/docs/concepts/scheduling-eviction/pod-priority-preemption/#priorityclass "A mapping from a class name to the scheduling priority that a Pod should have."). * Your cluster must be set up with an [autoscaler](/docs/concepts/cluster-administration/cluster-autoscaling/) that manages nodes based o...
large_dataset/raw/docs/kubernetes/node-overprovisioning/node-overprovisioning_v133.md
ce9204cb-b1d9-5c45-85a0-49b18542a3d4
docs
kubernetes
kubernetes_node-overprovisioning
v133
3
description: "Negative priority for placeholder pods to enable overprovisioning." ``` Then create the PriorityClass: ```None kubectl apply -f https://k8s.io/examples/priorityclass/low-priority-class.yaml ``` You will next define a Deployment that uses the negative-priority PriorityClass and runs a minimal container....
large_dataset/raw/docs/kubernetes/node-overprovisioning/node-overprovisioning_v133.md
f24f56be-5238-5abc-9e73-8f31bb388b14
docs
kubernetes
kubernetes_node-overprovisioning
v133
4
[`deployments/deployment-with-capacity-reservation.yaml`](https://raw.githubusercontent.com/kubernetes/website/release-1.33/content/en/examples/deployments/deployment-with-capacity-reservation.yaml)![](/images/copycode.svg "Copy deployments/deployment-with-capacity-reservation.yaml to clipboard") ```None apiVersion: a...
large_dataset/raw/docs/kubernetes/node-overprovisioning/node-overprovisioning_v133.md
6516365e-6c7c-51b2-b4ac-9523cdcd9ce6
docs
kubernetes
kubernetes_node-overprovisioning
v133
5
matchLabels: app.kubernetes.io/name: capacity-placeholder topologyKey: topology.kubernetes.io/hostname containers: - name: pause image: registry.k8s.io/pause:3.6 resources: requests: cpu: "50m" memory: "512Mi" ...
large_dataset/raw/docs/kubernetes/node-overprovisioning/node-overprovisioning_v133.md
18a21f1c-7d4a-5395-9968-88fc94e7e8d7
docs
kubernetes
kubernetes_node-overprovisioning
v133
6
## Adjust placeholder resource requests Configure the resource requests and limits for the placeholder pods to define the amount of overprovisioned resources you want to maintain. This reservation ensures that a specific amount of CPU and memory is kept available for new pods. To edit the Deployment, modify the `reso...
large_dataset/raw/docs/kubernetes/node-overprovisioning/node-overprovisioning_v133.md
9c31b68a-b430-507c-8a8f-a6b3c8424f68
docs
kubernetes
kubernetes_node-overprovisioning
v133
7
## Set the desired replica count ### Calculate the total reserved resources For example, with 5 replicas each reserving 0.1 CPU and 200MiB of memory: Total CPU reserved: 5 × 0.1 = 0.5 (in the Pod specification, you'll write the quantity `500m`) Total memory reserved: 5 × 200MiB = 1GiB (in the Pod specification, y...
large_dataset/raw/docs/kubernetes/node-overprovisioning/node-overprovisioning_v133.md
f52a8980-ae02-507b-85be-cadb8fa3e0cc
docs
kubernetes
kubernetes_node-overprovisioning
v133
8
If you use Karpenter or another node autoscaler that uses the same heuristic, the replica count you set here also sets a minimum node count for your cluster. ## What's next * Learn more about [PriorityClasses](/docs/concepts/scheduling-eviction/pod-priority-preemption/#priorityclass) and how they affect pod schedulin...
large_dataset/raw/docs/kubernetes/node-overprovisioning/node-overprovisioning_v133.md
d08f8cc4-356a-583a-ab1f-608fb96258dd
docs
kubernetes
kubernetes_node-overprovisioning
v133
9
## Feedback Was this page helpful? Yes No Thanks for the feedback. If you have a specific, answerable question about how to use Kubernetes, ask it on [Stack Overflow](https://stackoverflow.com/questions/tagged/kubernetes). Open an issue in the [GitHub Repository](https://www.github.com/kubernetes/website/) if you wa...
large_dataset/raw/docs/kubernetes/node-overprovisioning/node-overprovisioning_v133.md
cba4f6bc-003c-56e8-b7c0-3e10c87601c2
docs
kubernetes
kubernetes_node-overprovisioning
v134
0
# Overprovision Node Capacity For A Cluster Source: https://v1-34.docs.kubernetes.io/docs/tasks/administer-cluster/node-overprovisioning/ Version: v1.34 1. [Kubernetes Documentation](https://kubernetes.io/docs/) 2. [Tasks](https://kubernetes.io/docs/tasks/) 3. [Administer a Cluster](https://kubernetes.io/docs/tasks/a...
large_dataset/raw/docs/kubernetes/node-overprovisioning/node-overprovisioning_v134.md
8531ba4e-16b4-5480-a33f-1e46cb888548
docs
kubernetes
kubernetes_node-overprovisioning
v134
1
reserves a portion of your cluster's compute resources. This reservation helps reduce the time required to schedule new pods during scaling events, enhancing your cluster's responsiveness to sudden spikes in traffic or workload demands. By maintaining some unused capacity, you ensure that resources are immediately ava...
large_dataset/raw/docs/kubernetes/node-overprovisioning/node-overprovisioning_v134.md
1368aea3-8f40-5c18-b7bd-845bca10fafa
docs
kubernetes
kubernetes_node-overprovisioning
v134
2
and [PriorityClasses](/docs/concepts/scheduling-eviction/pod-priority-preemption/#priorityclass "A mapping from a class name to the scheduling priority that a Pod should have."). * Your cluster must be set up with an [autoscaler](/docs/concepts/cluster-administration/cluster-autoscaling/) that manages nodes based o...
large_dataset/raw/docs/kubernetes/node-overprovisioning/node-overprovisioning_v134.md
715e47ff-99e5-5323-8816-713a8e832294
docs
kubernetes
kubernetes_node-overprovisioning
v134
3
description: "Negative priority for placeholder pods to enable overprovisioning." ``` Then create the PriorityClass: ```None kubectl apply -f https://k8s.io/examples/priorityclass/low-priority-class.yaml ``` You will next define a Deployment that uses the negative-priority PriorityClass and runs a minimal container....
large_dataset/raw/docs/kubernetes/node-overprovisioning/node-overprovisioning_v134.md
d08e7764-aa0b-51f5-be78-6df2b3327dd2
docs
kubernetes
kubernetes_node-overprovisioning
v134
4
[`deployments/deployment-with-capacity-reservation.yaml`](https://raw.githubusercontent.com/kubernetes/website/release-1.34/content/en/examples/deployments/deployment-with-capacity-reservation.yaml)![](/images/copycode.svg "Copy deployments/deployment-with-capacity-reservation.yaml to clipboard") ```None apiVersion: a...
large_dataset/raw/docs/kubernetes/node-overprovisioning/node-overprovisioning_v134.md
68cf8062-17bc-5ced-96df-faa3fae65ca9
docs
kubernetes
kubernetes_node-overprovisioning
v134
5
matchLabels: app.kubernetes.io/name: capacity-placeholder topologyKey: topology.kubernetes.io/hostname containers: - name: pause image: registry.k8s.io/pause:3.6 resources: requests: cpu: "50m" memory: "512Mi" ...
large_dataset/raw/docs/kubernetes/node-overprovisioning/node-overprovisioning_v134.md
d5d51790-602c-5782-abcf-1d088485640e
docs
kubernetes
kubernetes_node-overprovisioning
v134
6
## Adjust placeholder resource requests Configure the resource requests and limits for the placeholder pods to define the amount of overprovisioned resources you want to maintain. This reservation ensures that a specific amount of CPU and memory is kept available for new pods. To edit the Deployment, modify the `reso...
large_dataset/raw/docs/kubernetes/node-overprovisioning/node-overprovisioning_v134.md
2fa60526-4875-54cd-9457-be084bd3cd1f
docs
kubernetes
kubernetes_node-overprovisioning
v134
7
## Set the desired replica count ### Calculate the total reserved resources For example, with 5 replicas each reserving 0.1 CPU and 200MiB of memory: Total CPU reserved: 5 × 0.1 = 0.5 (in the Pod specification, you'll write the quantity `500m`) Total memory reserved: 5 × 200MiB = 1GiB (in the Pod specification, y...
large_dataset/raw/docs/kubernetes/node-overprovisioning/node-overprovisioning_v134.md
08af8d64-983f-5b40-8d2a-fc7f024c3628
docs
kubernetes
kubernetes_node-overprovisioning
v134
8
If you use Karpenter or another node autoscaler that uses the same heuristic, the replica count you set here also sets a minimum node count for your cluster. ## What's next * Learn more about [PriorityClasses](/docs/concepts/scheduling-eviction/pod-priority-preemption/#priorityclass) and how they affect pod schedulin...
large_dataset/raw/docs/kubernetes/node-overprovisioning/node-overprovisioning_v134.md
0925bb84-11c3-5a6a-ad1a-2bd38386bb31
docs
kubernetes
kubernetes_node-overprovisioning
v134
9
## Feedback Was this page helpful? Yes No Thanks for the feedback. If you have a specific, answerable question about how to use Kubernetes, ask it on [Stack Overflow](https://stackoverflow.com/questions/tagged/kubernetes). Open an issue in the [GitHub Repository](https://www.github.com/kubernetes/website/) if you wa...
large_dataset/raw/docs/kubernetes/node-overprovisioning/node-overprovisioning_v134.md
5fb0c42f-997e-5bb3-a657-d254aa0f8fd7
docs
kubernetes
kubernetes_node-overprovisioning
v135
0
# Overprovision Node Capacity For A Cluster Source: https://kubernetes.io/docs/tasks/administer-cluster/node-overprovisioning/ Version: v1.35 1. [Kubernetes Documentation](https://kubernetes.io/docs/) 2. [Tasks](https://kubernetes.io/docs/tasks/) 3. [Administer a Cluster](https://kubernetes.io/docs/tasks/administer-c...
large_dataset/raw/docs/kubernetes/node-overprovisioning/node-overprovisioning_v135.md
e498ec52-4129-5dc5-b572-72f31131cd26
docs
kubernetes
kubernetes_node-overprovisioning
v135
1
new pods are created, preventing them from entering a pending state while the cluster scales up. ## Before you begin * You need to have a Kubernetes cluster, and the kubectl command-line tool must be configured to communicate with your cluster. * You should already have a basic understanding of [Deployments](/doc...
large_dataset/raw/docs/kubernetes/node-overprovisioning/node-overprovisioning_v135.md
c190c0a6-0500-53cc-aca2-e8c3129860d2
docs
kubernetes
kubernetes_node-overprovisioning
v135
2
## Create a PriorityClass Begin by defining a PriorityClass for the placeholder Pods. First, create a PriorityClass with a negative priority value, that you will shortly assign to the placeholder pods. Later, you will set up a Deployment that uses this PriorityClass [`priorityclass/low-priority-class.yaml`](https://r...
large_dataset/raw/docs/kubernetes/node-overprovisioning/node-overprovisioning_v135.md
f853f99e-5853-50ad-a8e8-cc4919519854
docs
kubernetes
kubernetes_node-overprovisioning
v135
3
When you add this to your cluster, Kubernetes runs those placeholder pods to reserve capacity. Any time there is a capacity shortage, the control plane will pick one these placeholder pods as the first candidate to [preempt](/docs/concepts/scheduling-eviction/pod-priority-preemption/#preemption "Preemption logic in Kub...
large_dataset/raw/docs/kubernetes/node-overprovisioning/node-overprovisioning_v135.md
6f2b3be1-f48a-5fe3-9265-b55f086ff745
docs
kubernetes
kubernetes_node-overprovisioning
v135
4
app.kubernetes.io/name: capacity-placeholder template: metadata: labels: app.kubernetes.io/name: capacity-placeholder annotations: kubernetes.io/description: "Capacity reservation" spec: priorityClassName: placeholder affinity: # Try to place these overhead Pods o...
large_dataset/raw/docs/kubernetes/node-overprovisioning/node-overprovisioning_v135.md
fe63c249-334a-5613-b5a6-a826c0236ca4
docs
kubernetes
kubernetes_node-overprovisioning
v135
5
### Pick a namespace for the placeholder pods You should select, or create, a [namespace](/docs/concepts/overview/working-with-objects/namespaces "An abstraction used by Kubernetes to support isolation of groups of resources within a single cluster.") that the placeholder Pods will go into. ### Create the placeholder...
large_dataset/raw/docs/kubernetes/node-overprovisioning/node-overprovisioning_v135.md
746efcec-54af-5d05-a923-405218c2be7b
docs
kubernetes
kubernetes_node-overprovisioning
v135
6
with whichever text editor you prefer. You can also edit the Deployment using kubectl: ```None kubectl edit deployment capacity-reservation ``` For example, to reserve a total of a 0.5 CPU and 1GiB of memory across 5 placeholder pods, define the resource requests and limits for a single placeholder pod as follows: ...
large_dataset/raw/docs/kubernetes/node-overprovisioning/node-overprovisioning_v135.md
34e99b7f-a734-5c04-931c-cc084dd64ba5
docs
kubernetes
kubernetes_node-overprovisioning
v135
7
``` The output should reflect the updated number of replicas: ```None NAME READY UP-TO-DATE AVAILABLE AGE capacity-reservation 5/5 5 5 2m ``` #### Note: Some autoscalers, notably [Karpenter](/docs/concepts/cluster-administration/cluster-autoscaling/#autoscaler-karp...
large_dataset/raw/docs/kubernetes/node-overprovisioning/node-overprovisioning_v135.md
67a7e3ee-2861-555f-8571-37ec3281cdce
docs
kubernetes
kubernetes_node-overprovisioning
v135
8
key mechanism for Kubernetes to handle resource contention. The same page covers *eviction*, which is less relevant to the placeholder Pod approach, but is also a mechanism for Kubernetes to react when resources are contended. ## Feedback Was this page helpful? Yes No Thanks for the feedback. If you have a sp...
large_dataset/raw/docs/kubernetes/node-overprovisioning/node-overprovisioning_v135.md
3c22f31d-920c-5c2f-b349-a81b7e81e5fa
docs
kubernetes
kubernetes_persistent-volume-storage
v131
0
# Configure a Pod to Use a PersistentVolume for Storage Source: https://v1-31.docs.kubernetes.io/docs/tasks/configure-pod-container/configure-persistent-volume-storage/ Version: v1.31 1. [Kubernetes Documentation](https://kubernetes.io/docs/) 2. [Tasks](https://kubernetes.io/docs/tasks/) 3. [Configure Pods and Contai...
large_dataset/raw/docs/kubernetes/persistent-volume-storage/persistent-volume-storage_v131.md
1913daaf-18c8-5236-bcaf-3a071b26671f
docs
kubernetes
kubernetes_persistent-volume-storage
v131
1
[PersistentVolumeClaim](/docs/concepts/storage/persistent-volumes/#persistentvolumeclaims "Claims storage resources defined in a PersistentVolume so that it can be mounted as a volume in a container.") for storage. Here is a summary of the process: 1. You, as cluster administrator, create a PersistentVolume backed by ...
large_dataset/raw/docs/kubernetes/persistent-volume-storage/persistent-volume-storage_v131.md
d818d2b1-8b27-572b-b2ac-cb52f737f75a
docs
kubernetes
kubernetes_persistent-volume-storage
v131
2
* Familiarize yourself with the material in [Persistent Volumes](/docs/concepts/storage/persistent-volumes/). ## Create an index.html file on your Node Open a shell to the single Node in your cluster. How you open a shell depends on how you set up your cluster. For example, if you are using Minikube, you can open a...
large_dataset/raw/docs/kubernetes/persistent-volume-storage/persistent-volume-storage_v131.md
9552734a-fd3b-5e7e-9cbb-0df892c264ad
docs
kubernetes
kubernetes_persistent-volume-storage
v131
3
The output should be: ```None Hello from Kubernetes storage ``` You can now close the shell to your Node. ## Create a PersistentVolume In this exercise, you create a *hostPath* PersistentVolume. Kubernetes supports hostPath for development and testing on a single-node cluster. A hostPath PersistentVolume uses a fil...
large_dataset/raw/docs/kubernetes/persistent-volume-storage/persistent-volume-storage_v131.md
8d918cd1-39a8-5827-9aae-e7d12f95409a
docs
kubernetes
kubernetes_persistent-volume-storage
v131
4
[`pods/storage/pv-volume.yaml`](https://raw.githubusercontent.com/kubernetes/website/release-1.31/content/en/examples/pods/storage/pv-volume.yaml)![](/images/copycode.svg "Copy pods/storage/pv-volume.yaml to clipboard") ```None apiVersion: v1 kind: PersistentVolume metadata: name: task-pv-volume labels: type: ...
large_dataset/raw/docs/kubernetes/persistent-volume-storage/persistent-volume-storage_v131.md
5d88c820-541e-5711-8f09-5820e93b8dbc
docs
kubernetes
kubernetes_persistent-volume-storage
v131
5
#### Note: This example uses the `ReadWriteOnce` access mode, for simplicity. For production use, the Kubernetes project recommends using the `ReadWriteOncePod` access mode instead. Create the PersistentVolume: ```None kubectl apply -f https://k8s.io/examples/pods/storage/pv-volume.yaml ``` View information about t...
large_dataset/raw/docs/kubernetes/persistent-volume-storage/persistent-volume-storage_v131.md
81daddf1-47b1-51ab-873f-944de8075711
docs
kubernetes
kubernetes_persistent-volume-storage
v131
6
that requests a volume of at least three gibibytes that can provide read-write access for at most one Node at a time. Here is the configuration file for the PersistentVolumeClaim: [`pods/storage/pv-claim.yaml`](https://raw.githubusercontent.com/kubernetes/website/release-1.31/content/en/examples/pods/storage/pv-claim...
large_dataset/raw/docs/kubernetes/persistent-volume-storage/persistent-volume-storage_v131.md
40dde734-bc8c-5405-8366-85a10433fa19
docs
kubernetes
kubernetes_persistent-volume-storage
v131
7
kubectl get pv task-pv-volume ``` Now the output shows a `STATUS` of `Bound`. ```None NAME CAPACITY ACCESSMODES RECLAIMPOLICY STATUS CLAIM STORAGECLASS REASON AGE task-pv-volume 10Gi RWO Retain Bound default/task-pv-claim manual ...
large_dataset/raw/docs/kubernetes/persistent-volume-storage/persistent-volume-storage_v131.md
5e411c18-57ea-52d2-a887-e1ff3fc136ca
docs
kubernetes
kubernetes_persistent-volume-storage
v131
8
[`pods/storage/pv-pod.yaml`](https://raw.githubusercontent.com/kubernetes/website/release-1.31/content/en/examples/pods/storage/pv-pod.yaml)![](/images/copycode.svg "Copy pods/storage/pv-pod.yaml to clipboard") ```None apiVersion: v1 kind: Pod metadata: name: task-pv-pod spec: volumes: - name: task-pv-storage ...
large_dataset/raw/docs/kubernetes/persistent-volume-storage/persistent-volume-storage_v131.md
a2150743-7c0d-5cb6-8aea-55d1d3d80e2c
docs
kubernetes
kubernetes_persistent-volume-storage
v131
9
Get a shell to the container running in your Pod: ```None kubectl exec -it task-pv-pod -- /bin/bash ``` In your shell, verify that nginx is serving the `index.html` file from the hostPath volume: ```None # Be sure to run these 3 commands inside the root shell that comes from # running "kubectl exec" in the previous ...
large_dataset/raw/docs/kubernetes/persistent-volume-storage/persistent-volume-storage_v131.md
76173cb5-80a7-5bf5-a72f-c7534d640545
docs
kubernetes
kubernetes_persistent-volume-storage
v131
10
# This assumes that your Node uses "sudo" to run commands # as the superuser sudo rm /mnt/data/index.html sudo rmdir /mnt/data ``` You can now close the shell to your Node. ## Mounting the same persistentVolume in two places [`pods/storage/pv-duplicate.yaml`](https://raw.githubusercontent.com/kubernetes/website/rele...
large_dataset/raw/docs/kubernetes/persistent-volume-storage/persistent-volume-storage_v131.md
d85812e1-6c4e-5d43-a8ef-ab4cd1530585
docs
kubernetes
kubernetes_persistent-volume-storage
v131
11
* `/usr/share/nginx/html` for the static website * `/etc/nginx/nginx.conf` for the default config ## Access control Storage configured with 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 adm...
large_dataset/raw/docs/kubernetes/persistent-volume-storage/persistent-volume-storage_v131.md
fedf306e-75bc-5b21-aa7d-a38cd8eb75ff
docs
kubernetes
kubernetes_persistent-volume-storage
v131
12
#### Note: When a Pod consumes a PersistentVolume, the GIDs associated with the PersistentVolume are not present on the Pod resource itself. ## What's next * Learn more about [PersistentVolumes](/docs/concepts/storage/persistent-volumes/). * Read the [Persistent Storage design document](https://git.k8s.io/design-pro...
large_dataset/raw/docs/kubernetes/persistent-volume-storage/persistent-volume-storage_v131.md
cc5d764c-284a-5b0c-9b71-fd41718345f7
docs
kubernetes
kubernetes_persistent-volume-storage
v131
13
[Stack Overflow](https://stackoverflow.com/questions/tagged/kubernetes). Open an issue in the [GitHub Repository](https://www.github.com/kubernetes/website/) if you want to [report a problem](https://github.com/kubernetes/website/issues/new?title=Issue%20with%20k8s.io) or [suggest an improvement](https://github.com/kub...
large_dataset/raw/docs/kubernetes/persistent-volume-storage/persistent-volume-storage_v131.md
35575883-53d7-5ffe-a27c-d13119105081
docs
kubernetes
kubernetes_persistent-volume-storage
v132
0
# Configure a Pod to Use a PersistentVolume for Storage Source: https://v1-32.docs.kubernetes.io/docs/tasks/configure-pod-container/configure-persistent-volume-storage/ Version: v1.32 1. [Kubernetes Documentation](https://kubernetes.io/docs/) 2. [Tasks](https://kubernetes.io/docs/tasks/) 3. [Configure Pods and Contai...
large_dataset/raw/docs/kubernetes/persistent-volume-storage/persistent-volume-storage_v132.md
f1cedd98-0df0-5cd8-b9b2-7094aadcf4ef
docs
kubernetes
kubernetes_persistent-volume-storage
v132
1
[PersistentVolumeClaim](/docs/concepts/storage/persistent-volumes/#persistentvolumeclaims "Claims storage resources defined in a PersistentVolume so that it can be mounted as a volume in a container.") for storage. Here is a summary of the process: 1. You, as cluster administrator, create a PersistentVolume backed by ...
large_dataset/raw/docs/kubernetes/persistent-volume-storage/persistent-volume-storage_v132.md
30c798f4-cb69-5c2b-9c04-544526e8b2b3
docs
kubernetes
kubernetes_persistent-volume-storage
v132
2
* Familiarize yourself with the material in [Persistent Volumes](/docs/concepts/storage/persistent-volumes/). ## Create an index.html file on your Node Open a shell to the single Node in your cluster. How you open a shell depends on how you set up your cluster. For example, if you are using Minikube, you can open a...
large_dataset/raw/docs/kubernetes/persistent-volume-storage/persistent-volume-storage_v132.md
d26d91c0-aceb-5c9f-a4f1-97330d0b8d32
docs
kubernetes
kubernetes_persistent-volume-storage
v132
3
The output should be: ```None Hello from Kubernetes storage ``` You can now close the shell to your Node. ## Create a PersistentVolume In this exercise, you create a *hostPath* PersistentVolume. Kubernetes supports hostPath for development and testing on a single-node cluster. A hostPath PersistentVolume uses a fil...
large_dataset/raw/docs/kubernetes/persistent-volume-storage/persistent-volume-storage_v132.md
c6b9d235-1cab-5813-81f1-f04c2d53f9cb
docs
kubernetes
kubernetes_persistent-volume-storage
v132
4
[`pods/storage/pv-volume.yaml`](https://raw.githubusercontent.com/kubernetes/website/release-1.32/content/en/examples/pods/storage/pv-volume.yaml)![](/images/copycode.svg "Copy pods/storage/pv-volume.yaml to clipboard") ```None apiVersion: v1 kind: PersistentVolume metadata: name: task-pv-volume labels: type: ...
large_dataset/raw/docs/kubernetes/persistent-volume-storage/persistent-volume-storage_v132.md
c2fd9b00-1cf6-55b8-a94f-32405c463009
docs
kubernetes
kubernetes_persistent-volume-storage
v132
5
#### Note: This example uses the `ReadWriteOnce` access mode, for simplicity. For production use, the Kubernetes project recommends using the `ReadWriteOncePod` access mode instead. Create the PersistentVolume: ```None kubectl apply -f https://k8s.io/examples/pods/storage/pv-volume.yaml ``` View information about t...
large_dataset/raw/docs/kubernetes/persistent-volume-storage/persistent-volume-storage_v132.md
2ff109d1-2872-54f6-960e-7fb501f43c5d
docs
kubernetes
kubernetes_persistent-volume-storage
v132
6
that requests a volume of at least three gibibytes that can provide read-write access for at most one Node at a time. Here is the configuration file for the PersistentVolumeClaim: [`pods/storage/pv-claim.yaml`](https://raw.githubusercontent.com/kubernetes/website/release-1.32/content/en/examples/pods/storage/pv-claim...
large_dataset/raw/docs/kubernetes/persistent-volume-storage/persistent-volume-storage_v132.md
761a4949-281d-50ed-bca1-afc92dcb56bb
docs
kubernetes
kubernetes_persistent-volume-storage
v132
7
kubectl get pv task-pv-volume ``` Now the output shows a `STATUS` of `Bound`. ```None NAME CAPACITY ACCESSMODES RECLAIMPOLICY STATUS CLAIM STORAGECLASS REASON AGE task-pv-volume 10Gi RWO Retain Bound default/task-pv-claim manual ...
large_dataset/raw/docs/kubernetes/persistent-volume-storage/persistent-volume-storage_v132.md
ba79b0e1-c631-5e46-93b4-1d44d1b46d7d
docs
kubernetes
kubernetes_persistent-volume-storage
v132
8
[`pods/storage/pv-pod.yaml`](https://raw.githubusercontent.com/kubernetes/website/release-1.32/content/en/examples/pods/storage/pv-pod.yaml)![](/images/copycode.svg "Copy pods/storage/pv-pod.yaml to clipboard") ```None apiVersion: v1 kind: Pod metadata: name: task-pv-pod spec: volumes: - name: task-pv-storage ...
large_dataset/raw/docs/kubernetes/persistent-volume-storage/persistent-volume-storage_v132.md
29ac7e84-1fee-5c79-b13c-d037ab3161ff
docs
kubernetes
kubernetes_persistent-volume-storage
v132
9
Get a shell to the container running in your Pod: ```None kubectl exec -it task-pv-pod -- /bin/bash ``` In your shell, verify that nginx is serving the `index.html` file from the hostPath volume: ```None # Be sure to run these 3 commands inside the root shell that comes from # running "kubectl exec" in the previous ...
large_dataset/raw/docs/kubernetes/persistent-volume-storage/persistent-volume-storage_v132.md
f02639db-7542-5f1a-b656-ec679241001e
docs
kubernetes
kubernetes_persistent-volume-storage
v132
10
[`pods/storage/pv-duplicate.yaml`](https://raw.githubusercontent.com/kubernetes/website/release-1.32/content/en/examples/pods/storage/pv-duplicate.yaml)![](/images/copycode.svg "Copy pods/storage/pv-duplicate.yaml to clipboard") ```None apiVersion: v1 kind: Pod metadata: name: test spec: containers: - name: te...
large_dataset/raw/docs/kubernetes/persistent-volume-storage/persistent-volume-storage_v132.md
86ab6627-86d1-55c2-a969-46c8b9757a72
docs
kubernetes
kubernetes_persistent-volume-storage
v132
11
Since the first subPath is `html`, an `html` directory has to be created within `/mnt/data/` on the node. The second subPath `nginx.conf` means that a file within the `/mnt/data/` directory will be used. No other directory needs to be created. Two volume mounts will be made on your nginx container: * `/usr/share/ngi...
large_dataset/raw/docs/kubernetes/persistent-volume-storage/persistent-volume-storage_v132.md
e420cd02-5ef4-541a-bb50-c2c63cd49afb
docs
kubernetes
kubernetes_persistent-volume-storage
v132
12
Move index.html into the directory: ```None # Move index.html from its current location to the html sub-directory sudo mv /mnt/data/index.html html ``` ### Create a new nginx.conf file [`pods/storage/nginx.conf`](https://raw.githubusercontent.com/kubernetes/website/release-1.32/content/en/examples/pods/storage/nginx...
large_dataset/raw/docs/kubernetes/persistent-volume-storage/persistent-volume-storage_v132.md
90aa8f55-639a-5974-93f2-7270f049938f
docs
kubernetes
kubernetes_persistent-volume-storage
v132
13
#gzip on; include /etc/nginx/conf.d/*.conf; ``` } ``` This is a modified version of the default `nginx.conf` file. Here, the default `keepalive_timeout` has been modified to `60` Create the nginx.conf file: ```None cat <<EOF > /mnt/data/nginx.conf user nginx; worker_processes auto; error_log /var/log/nginx/e...
large_dataset/raw/docs/kubernetes/persistent-volume-storage/persistent-volume-storage_v132.md
e146821e-7b25-5cba-bfe6-5c35a650f6ea
docs
kubernetes
kubernetes_persistent-volume-storage
v132
14
### Create a Pod Here we will create a pod that uses the existing persistentVolume and persistentVolumeClaim. However, the pod mounts only a specific file, `nginx.conf`, and directory, `html`, to the container. Create the Pod: ```None kubectl apply -f https://k8s.io/examples/pods/storage/pv-duplicate.yaml ``` Verif...
large_dataset/raw/docs/kubernetes/persistent-volume-storage/persistent-volume-storage_v132.md
33bc8025-b543-56ea-80b7-a672554bcd1a
docs
kubernetes
kubernetes_persistent-volume-storage
v132
15
# Be sure to run these commands inside the root shell that comes from # running "kubectl exec" in the previous step cat /etc/nginx/nginx.conf | grep keepalive_timeout ``` The output shows the modified text that you wrote to the `nginx.conf` file on the hostPath volume: ```None keepalive_timeout 60; ``` If you see t...
large_dataset/raw/docs/kubernetes/persistent-volume-storage/persistent-volume-storage_v132.md
ba1d2b2a-307d-558a-8212-474be57ed23f
docs
kubernetes
kubernetes_persistent-volume-storage
v132
16
## Access control Storage configured with 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 P...
large_dataset/raw/docs/kubernetes/persistent-volume-storage/persistent-volume-storage_v132.md
c4c13979-39fd-5443-ad4f-c14859a091e7
docs
kubernetes
kubernetes_persistent-volume-storage
v132
17
#### Note: When a Pod consumes a PersistentVolume, the GIDs associated with the PersistentVolume are not present on the Pod resource itself. ## What's next * Learn more about [PersistentVolumes](/docs/concepts/storage/persistent-volumes/). * Read the [Persistent Storage design document](https://git.k8s.io/design-pro...
large_dataset/raw/docs/kubernetes/persistent-volume-storage/persistent-volume-storage_v132.md
0d3435a1-9cc1-592f-a3b3-b14d10068f30
docs
kubernetes
kubernetes_persistent-volume-storage
v132
18
[Stack Overflow](https://stackoverflow.com/questions/tagged/kubernetes). Open an issue in the [GitHub Repository](https://www.github.com/kubernetes/website/) if you want to [report a problem](https://github.com/kubernetes/website/issues/new?title=Issue%20with%20k8s.io) or [suggest an improvement](https://github.com/kub...
large_dataset/raw/docs/kubernetes/persistent-volume-storage/persistent-volume-storage_v132.md
4698dce9-1547-5129-a570-3d14ee8af3df
docs
kubernetes
kubernetes_persistent-volume-storage
v133
0
# Configure a Pod to Use a PersistentVolume for Storage Source: https://v1-33.docs.kubernetes.io/docs/tasks/configure-pod-container/configure-persistent-volume-storage/ Version: v1.33 1. [Kubernetes Documentation](https://kubernetes.io/docs/) 2. [Tasks](https://kubernetes.io/docs/tasks/) 3. [Configure Pods and Contai...
large_dataset/raw/docs/kubernetes/persistent-volume-storage/persistent-volume-storage_v133.md
4a556561-f36d-562e-9abc-822320a02bd1
docs
kubernetes
kubernetes_persistent-volume-storage
v133
1
[PersistentVolumeClaim](/docs/concepts/storage/persistent-volumes/#persistentvolumeclaims "Claims storage resources defined in a PersistentVolume so that it can be mounted as a volume in a container.") for storage. Here is a summary of the process: 1. You, as cluster administrator, create a PersistentVolume backed by ...
large_dataset/raw/docs/kubernetes/persistent-volume-storage/persistent-volume-storage_v133.md
41c12227-2c09-5b68-9f12-450ec4ec39ef
docs
kubernetes
kubernetes_persistent-volume-storage
v133
2
* Familiarize yourself with the material in [Persistent Volumes](/docs/concepts/storage/persistent-volumes/). ## Create an index.html file on your Node Open a shell to the single Node in your cluster. How you open a shell depends on how you set up your cluster. For example, if you are using Minikube, you can open a...
large_dataset/raw/docs/kubernetes/persistent-volume-storage/persistent-volume-storage_v133.md
a93cf988-fbf6-5afc-bd8c-08a31e06ebd9
docs
kubernetes
kubernetes_persistent-volume-storage
v133
3
The output should be: ```None Hello from Kubernetes storage ``` You can now close the shell to your Node. ## Create a PersistentVolume In this exercise, you create a *hostPath* PersistentVolume. Kubernetes supports hostPath for development and testing on a single-node cluster. A hostPath PersistentVolume uses a fil...
large_dataset/raw/docs/kubernetes/persistent-volume-storage/persistent-volume-storage_v133.md
d7516ca0-3e96-5081-859a-b556365ba4ee
docs
kubernetes
kubernetes_persistent-volume-storage
v133
4
[`pods/storage/pv-volume.yaml`](https://raw.githubusercontent.com/kubernetes/website/release-1.33/content/en/examples/pods/storage/pv-volume.yaml)![](/images/copycode.svg "Copy pods/storage/pv-volume.yaml to clipboard") ```None apiVersion: v1 kind: PersistentVolume metadata: name: task-pv-volume labels: type: ...
large_dataset/raw/docs/kubernetes/persistent-volume-storage/persistent-volume-storage_v133.md
1405b40d-25a1-5368-8159-89eedea77089
docs
kubernetes
kubernetes_persistent-volume-storage
v133
5
#### Note: This example uses the `ReadWriteOnce` access mode, for simplicity. For production use, the Kubernetes project recommends using the `ReadWriteOncePod` access mode instead. Create the PersistentVolume: ```None kubectl apply -f https://k8s.io/examples/pods/storage/pv-volume.yaml ``` View information about t...
large_dataset/raw/docs/kubernetes/persistent-volume-storage/persistent-volume-storage_v133.md
7d7fd031-d841-5421-8b2f-a744499ee6fa
docs
kubernetes
kubernetes_persistent-volume-storage
v133
6
that requests a volume of at least three gibibytes that can provide read-write access for at most one Node at a time. Here is the configuration file for the PersistentVolumeClaim: [`pods/storage/pv-claim.yaml`](https://raw.githubusercontent.com/kubernetes/website/release-1.33/content/en/examples/pods/storage/pv-claim...
large_dataset/raw/docs/kubernetes/persistent-volume-storage/persistent-volume-storage_v133.md