Rebuild concept eval from held-out pages; add held-out docs

This commit is contained in:
Daniel Samson committed 2026-11-21 13:17:32 +00:00
1 parent 3c8704eedd
commit a272afd637
3 files changed
+439 -38

No files matched your search

+6 -3
View File
@@ -92,7 +92,8 @@ output is unchanged before trusting an old result.
|---|---|---|
| `tool_calls.jsonl` | Requests with the expected `kubectl_*` call (or `null` when no tool is needed) | Written from templates by `scripts/build-eval.py`, seed 20260101 |
| `manifest_reasoning.jsonl` | Synthetic cluster snapshots with a question and expected names | Computed by code from the snapshot |
| `concepts.jsonl` | 35 Kubernetes concept questions with a reference answer and key terms | Written by hand; review before relying on them |
| `concepts.jsonl` | 24 Kubernetes questions, each written from a held-out docs page (`source` field), with a reference answer and key terms | Written by hand from pages excluded from training; checked for 8-word overlap with the training text |
| `technical_heldout.jsonl` | Kubernetes docs, OpenAPI and deployment-docs records held out from training by path hash (about 10%) | Selected by `scripts/split-technical-docs.py` |
| `english_heldout.jsonl` | 200 documents sampled uniformly from `corpora/english-prose.jsonl`, capped at 600 words | Sampled by code |
| `english_heldout_ids.txt` | Identifiers of the held-out English documents | Must be excluded from the training corpus |
| `tools.json` | The tool schema shown to the model for `tool_calls.jsonl` | Written by hand |
@@ -116,8 +117,10 @@ Training corpus: `scripts/exclude-heldout.py` writes `corpora/english-train.json
held-out document removed, matched by identifier. It fails if any held-out identifier is missing.
Known limits: the generated items come from templates, so they test recognition of these
phrasings, not general language. Some concept questions will overlap with the Kubernetes docs,
so keep those docs out of the training data if you use this set to judge knowledge.
phrasings, not general language. The concept questions are answered from held-out pages, so
they test generalization beyond the training text. They are still paraphrases of general
Kubernetes material, so treat them as a rough check. Earlier concept items were written from
training pages and were retired; they remain in git history.
### Kubernetes text (`sources/kubernetes-sources.json`)
+24 -35
View File
@@ -1,35 +1,24 @@
{"id": "concept-001", "question": "What is a pod?", "reference": "A pod is the smallest deployable unit in Kubernetes. It groups one or more containers that share network and storage and are scheduled together on a node.", "key_terms": ["smallest", "container", "node"]}
{"id": "concept-002", "question": "What is a Deployment used for?", "reference": "A Deployment declares a desired number of identical pods and manages rolling updates and rollbacks by creating ReplicaSets.", "key_terms": ["replica", "rolling", "pods"]}
{"id": "concept-003", "question": "What is the difference between a Deployment and a StatefulSet?", "reference": "A Deployment treats its pods as interchangeable, while a StatefulSet gives each pod a stable identity and stable storage, usually for stateful applications like databases.", "key_terms": ["stable", "identity", "interchangeable"]}
{"id": "concept-004", "question": "What does a Service do?", "reference": "A Service gives a stable network endpoint and DNS name for a set of pods chosen by a label selector, and load-balances traffic across them.", "key_terms": ["stable", "selector", "label"]}
{"id": "concept-005", "question": "What is the difference between a Service and an Ingress?", "reference": "A Service exposes pods inside the cluster or on a node port or load balancer at layer 4. An Ingress routes external HTTP and HTTPS traffic to Services by host and path, at layer 7.", "key_terms": ["HTTP", "host", "path"]}
{"id": "concept-006", "question": "What is a namespace?", "reference": "A namespace is a way to divide cluster resources into separate groups, so names only need to be unique within the namespace.", "key_terms": ["group", "unique", "resources"]}
{"id": "concept-007", "question": "What is a ConfigMap?", "reference": "A ConfigMap stores non-confidential configuration data as key-value pairs, which pods can consume as environment variables or mounted files.", "key_terms": ["key-value", "configuration", "environment"]}
{"id": "concept-008", "question": "What is a Secret, and how is it different from a ConfigMap?", "reference": "A Secret stores sensitive data such as passwords or tokens. It is like a ConfigMap but meant for confidential values, which are base64-encoded in the API and should be protected with access controls and encryption at rest.", "key_terms": ["sensitive", "base64", "confidential"]}
{"id": "concept-009", "question": "What is a label, and how is it different from an annotation?", "reference": "A label is a key-value pair used to identify and select objects, and selectors match on labels. An annotation is also key-value metadata, but it is not used for selection, so it can hold larger or non-identifying information.", "key_terms": ["select", "metadata", "identify"]}
{"id": "concept-010", "question": "What is the control plane?", "reference": "The control plane is the set of components that manage the cluster: the API server, etcd, the scheduler and the controller manager. It makes global decisions about the cluster.", "key_terms": ["API server", "etcd", "scheduler"]}
{"id": "concept-011", "question": "What does the kube-scheduler do?", "reference": "The kube-scheduler assigns newly created pods that have no node assigned to a suitable node, based on resource requests, constraints and affinity rules.", "key_terms": ["node", "assign", "resource"]}
{"id": "concept-012", "question": "What is etcd used for in Kubernetes?", "reference": "etcd is a consistent, distributed key-value store that holds all cluster state and configuration. Only the API server talks to it directly.", "key_terms": ["key-value", "state", "API server"]}
{"id": "concept-013", "question": "What is a kubelet?", "reference": "The kubelet is an agent that runs on each node. It makes sure containers described in pod specs are running and healthy, and reports the node's status to the control plane.", "key_terms": ["node", "agent", "containers"]}
{"id": "concept-014", "question": "What is a liveness probe?", "reference": "A liveness probe checks whether a container is still running correctly. If it fails, the kubelet restarts the container.", "key_terms": ["restart", "container", "running correctly"]}
{"id": "concept-015", "question": "What is the difference between a liveness probe and a readiness probe?", "reference": "A liveness probe decides whether a container should be restarted. A readiness probe decides whether a pod should receive traffic from Services. A failing readiness probe removes the pod from endpoints but does not restart it.", "key_terms": ["restart", "traffic", "endpoints"]}
{"id": "concept-016", "question": "What are resource requests and limits?", "reference": "A request is the amount of CPU or memory the scheduler reserves for a container when choosing a node. A limit is the maximum the container may use. Exceeding a memory limit gets the container killed.", "key_terms": ["scheduler", "maximum", "memory"]}
{"id": "concept-017", "question": "What is a PersistentVolumeClaim?", "reference": "A PersistentVolumeClaim is a request for storage by a pod. Kubernetes binds it to a PersistentVolume that satisfies its size and access mode, which lets storage outlive the pod.", "key_terms": ["storage", "PersistentVolume", "request"]}
{"id": "concept-018", "question": "What is a DaemonSet?", "reference": "A DaemonSet ensures that one copy of a pod runs on every node, or on every node that matches a selector. It is often used for logging and monitoring agents.", "key_terms": ["every node", "one copy", "agents"]}
{"id": "concept-019", "question": "What is a Job, and how is it different from a Deployment?", "reference": "A Job runs pods until a task completes successfully, and it tracks completions. A Deployment keeps pods running indefinitely.", "key_terms": ["complete", "task", "indefinitely"]}
{"id": "concept-020", "question": "What is a CronJob?", "reference": "A CronJob creates Jobs on a repeating schedule written in cron syntax.", "key_terms": ["schedule", "cron", "Jobs"]}
{"id": "concept-021", "question": "What is a node?", "reference": "A node is a worker machine, virtual or physical, that runs pods. Each node runs a kubelet and a container runtime.", "key_terms": ["machine", "kubelet", "pods"]}
{"id": "concept-022", "question": "What does a taint do?", "reference": "A taint is applied to a node to repel pods unless they have a matching toleration. It is used to keep pods off certain nodes.", "key_terms": ["repel", "toleration", "node"]}
{"id": "concept-023", "question": "What is a HorizontalPodAutoscaler?", "reference": "A HorizontalPodAutoscaler changes the number of replicas of a workload, such as a Deployment, based on observed metrics like CPU utilization.", "key_terms": ["replicas", "metrics", "scale"]}
{"id": "concept-024", "question": "What are RBAC Roles and RoleBindings?", "reference": "A Role defines permissions on resources within a single namespace. A RoleBinding grants that Role to users, groups or service accounts in the same namespace.", "key_terms": ["permissions", "namespace", "grant"]}
{"id": "concept-025", "question": "What is the difference between a Role and a ClusterRole?", "reference": "A Role is limited to one namespace. A ClusterRole applies cluster-wide, or to cluster-scoped resources such as nodes.", "key_terms": ["namespace", "cluster-wide", "nodes"]}
{"id": "concept-026", "question": "What is a NetworkPolicy?", "reference": "A NetworkPolicy restricts which pods can send or receive network traffic, selected by labels. It only has effect when the cluster network plugin supports it.", "key_terms": ["traffic", "labels", "plugin"]}
{"id": "concept-027", "question": "What is a ServiceAccount?", "reference": "A ServiceAccount is an identity that pods use to authenticate to the Kubernetes API. Each pod runs as a service account, and RBAC grants permissions to it.", "key_terms": ["identity", "API", "pods"]}
{"id": "concept-028", "question": "Why does a pod in CrashLoopBackOff keep restarting?", "reference": "The container starts and exits with an error repeatedly. The kubelet restarts it with increasing back-off delays. Logs and the exit code, which kubectl describe shows, explain the cause.", "key_terms": ["exit", "restart", "logs"]}
{"id": "concept-029", "question": "What is a rolling update?", "reference": "A rolling update replaces pods of a Deployment gradually, a few at a time, so the application stays available. It is controlled by maxSurge and maxUnavailable.", "key_terms": ["gradually", "available", "maxUnavailable"]}
{"id": "concept-030", "question": "What is kubectl?", "reference": "kubectl is the command-line tool for talking to the Kubernetes API server, for example to get, describe, apply, and delete resources.", "key_terms": ["command-line", "API server", "resources"]}
{"id": "concept-031", "question": "What does kubectl apply do?", "reference": "kubectl apply creates or updates resources to match the manifest file given, using a declarative approach that records the last applied configuration.", "key_terms": ["create", "update", "manifest"]}
{"id": "concept-032", "question": "What is a container image?", "reference": "A container image is a read-only, layered package containing an application and its dependencies, from which containers are started.", "key_terms": ["read-only", "layered", "dependencies"]}
{"id": "concept-033", "question": "What is the purpose of the Kubernetes API server?", "reference": "The API server is the front end of the control plane. It validates and processes REST requests from kubectl and other components, and is the only component that reads and writes etcd.", "key_terms": ["REST", "control plane", "etcd"]}
{"id": "concept-034", "question": "What is a StorageClass?", "reference": "A StorageClass describes a class of storage and the provisioner that creates PersistentVolumes dynamically when claims ask for that class.", "key_terms": ["provisioner", "dynamic", "PersistentVolume"]}
{"id": "concept-035", "question": "What is a sidecar container?", "reference": "A sidecar is an extra container in the same pod that supports the main container, for example for logging, proxying or syncing configuration. It shares the pod's network and volumes.", "key_terms": ["same pod", "support", "volumes"]}
{"id": "concept-001", "source": "content/en/docs/concepts/storage/ephemeral-storage.md", "question": "What is node-local ephemeral storage used for?", "reference": "Pods use ephemeral local storage for scratch space, caching and logs, and the kubelet uses it for emptyDir volumes, node-level container logs, container images and the writable layers of running containers. Its data can be lost if the node fails.", "key_terms": ["scratch space", "emptyDir", "lost"]}
{"id": "concept-002", "source": "content/en/docs/concepts/storage/ephemeral-volumes.md", "question": "What are ephemeral volumes designed for?", "reference": "Ephemeral volumes are for applications that need extra storage but do not need the data to persist across restarts, such as caches or read-only input files. They follow the Pod's lifetime, so they are created and deleted along with the Pod.", "key_terms": ["lifetime", "caches", "deleted"]}
{"id": "concept-003", "source": "content/en/docs/concepts/storage/projected-volumes.md", "question": "What does a projected volume do?", "reference": "Projected volumes combine several volume sources, such as secret, downwardAPI and configMap, into one directory. Every source must be in the Pod's own namespace.", "key_terms": ["one directory", "secret", "namespace"]}
{"id": "concept-004", "source": "content/en/docs/concepts/storage/storage-limits.md", "question": "How many volumes can Kubernetes by default attach to a node on Google Persistent Disk?", "reference": "By default, Kubernetes allows 16 volumes per node for Google Persistent Disk. Pods could get stuck waiting for volumes to attach if the limit were exceeded.", "key_terms": ["16", "stuck"]}
{"id": "concept-005", "source": "content/en/docs/concepts/workloads/controllers/job.md", "question": "What does a Job do?", "reference": "A Job creates one or more Pods and keeps retrying until a set number of them terminate successfully, tracking the successful completions. Deleting a Job cleans up the Pods it created.", "key_terms": ["retry", "successful", "cleans up"]}
{"id": "concept-006", "source": "content/en/docs/concepts/workloads/controllers/replicationcontroller.md", "question": "What is a ReplicationController, and what is now the recommended way to set up replication?", "reference": "A ReplicationController keeps a set number of pod replicas running at all times, replacing pods that fail or are deleted. A Deployment that manages a ReplicaSet is the recommended replacement.", "key_terms": ["replicas", "Deployment", "ReplicaSet"]}
{"id": "concept-007", "source": "content/en/docs/concepts/workloads/pods/pod-qos.md", "question": "What do Quality of Service classes decide in Kubernetes?", "reference": "Kubernetes assigns each Pod a Quality of Service class based on the resource requests and limits of its containers. It uses this class to decide which Pods to evict when a node lacks resources.", "key_terms": ["resource requests", "evict", "node"]}
{"id": "concept-008", "source": "content/en/docs/concepts/workloads/pods/disruptions.md", "question": "What is an involuntary disruption to a Pod?", "reference": "An involuntary disruption is an unavoidable case that removes a Pod, such as a hardware failure of the machine behind a node, a hypervisor failure, or a system software error. Voluntary disruptions are chosen by a person or a controller.", "key_terms": ["hardware", "unavoidable", "hypervisor"]}
{"id": "concept-009", "source": "content/en/docs/concepts/scheduling-eviction/gang-scheduling.md", "question": "What does gang scheduling ensure?", "reference": "Gang scheduling places a group of Pods on an all-or-nothing basis. If the cluster cannot accommodate the whole group, or the minimum count given by minCount, none of the Pods are bound to a node.", "key_terms": ["all-or-nothing", "minCount", "bound"]}
{"id": "concept-010", "source": "content/en/docs/concepts/services-networking/dns-pod-service.md", "question": "How does DNS help clients reach Services?", "reference": "Kubernetes creates DNS records for Services and Pods, so containers can look up a Service by name instead of by IP address. A client Pod's DNS search list includes its own namespace and the cluster's default domain by default.", "key_terms": ["DNS", "name", "namespace"]}
{"id": "concept-011", "source": "content/en/docs/concepts/services-networking/dual-stack.md", "question": "From which Kubernetes version is IPv4/IPv6 dual-stack networking enabled by default?", "reference": "IPv4/IPv6 dual-stack networking is enabled by default starting in Kubernetes 1.21, so Pods and Services can be assigned both IPv4 and IPv6 addresses.", "key_terms": ["1.21", "IPv4", "IPv6"]}
{"id": "concept-012", "source": "content/en/docs/concepts/extend-kubernetes/compute-storage-net/network-plugins.md", "question": "What is a CNI plugin required for in a Kubernetes cluster?", "reference": "A CNI plugin is required to implement the Kubernetes network model. It must be compatible with CNI specification v0.4.0 or later, and the project recommends a plugin compatible with v1.0.0.", "key_terms": ["network model", "v0.4.0", "CNI"]}
{"id": "concept-013", "source": "content/en/docs/concepts/extend-kubernetes/compute-storage-net/device-plugins.md", "question": "What do device plugins let Kubernetes do?", "reference": "A device plugin advertises system hardware resources, such as GPUs, high-performance NICs or FPGAs, to Kubernetes without changing Kubernetes itself. Plugins register with the kubelet through its Registration gRPC service.", "key_terms": ["GPU", "kubelet", "Registration"]}
{"id": "concept-014", "source": "content/en/docs/concepts/overview/working-with-objects/storage-version.md", "question": "What is a storage version in Kubernetes?", "reference": "The storage version describes how an object is serialized in the backing store, which is often etcd. The API server converts each API call so that clients do not see which version is actually stored.", "key_terms": ["serialized", "etcd", "convert"]}
{"id": "concept-015", "source": "content/en/docs/concepts/cluster-administration/system-logs.md", "question": "What is klog?", "reference": "klog is the Kubernetes logging library, which generates log messages for system components. Log verbosity can be configured, and the log output format is not covered by the API stability guarantees.", "key_terms": ["logging library", "verbosity", "stability"]}
{"id": "concept-016", "source": "content/en/docs/concepts/cluster-administration/admission-webhooks-good-practices.md", "question": "Which requests do admission controllers intercept?", "reference": "Admission controllers intercept create, update and delete requests sent to the Kubernetes API that match criteria defined by the operator. The requests are then sent to mutating or validating admission webhooks.", "key_terms": ["create", "delete", "mutating"]}
{"id": "concept-017", "source": "content/en/docs/concepts/scheduling-eviction/topology-aware-scheduling.md", "question": "What does Topology-Aware Scheduling guarantee for a PodGroup?", "reference": "Topology-Aware Scheduling finds the best placement for a PodGroup and guarantees that all of its pods are collocated within the same topology domain.", "key_terms": ["collocated", "topology domain", "placement"]}
{"id": "concept-018", "source": "content/en/docs/concepts/cluster-administration/flow-control.md", "question": "What does API Priority and Fairness do?", "reference": "API Priority and Fairness is an alternative to the max-inflight limits. It classifies and isolates requests more finely, so the most important requests still get through during a period of high traffic.", "key_terms": ["classifies", "isolates", "high traffic"]}
{"id": "concept-019", "source": "content/en/docs/concepts/resource-management/effective-pod-requests-limits.md", "question": "Why is a Pod's effective request not always a simple sum of its containers' requests?", "reference": "Init containers run one at a time, so the effective request of a Pod is not always the sum of its container values. The kube-scheduler uses the effective request to place the Pod on a node that has enough resources.", "key_terms": ["init containers", "effective", "scheduler"]}
{"id": "concept-020", "source": "content/en/docs/concepts/overview/working-with-objects/common-labels.md", "question": "What are the recommended common labels for?", "reference": "A common set of labels allows tools to work with objects interoperably, and makes applications described with metadata queryable. Kubernetes does not enforce a formal notion of an application.", "key_terms": ["interoperably", "metadata", "queryable"]}
{"id": "concept-021", "source": "content/en/docs/concepts/workloads/_index.md", "question": "What is a Pod in Kubernetes?", "reference": "A Pod represents a set of one or more running containers on your cluster. If the node running a Pod fails, the Pod is treated as final, and a new Pod must be created to recover.", "key_terms": ["one or more", "containers", "new Pod"]}
{"id": "concept-022", "source": "content/en/docs/concepts/architecture/mixed-version-proxy.md", "question": "What does the mixed-version proxy let an API server do?", "reference": "The mixed-version proxy lets an API server proxy resource requests to peer API servers running other versions, and clients get a combined view of resources through discovery. This helps during a long-lived rollout to a new release.", "key_terms": ["peer", "discovery", "rollout"]}
{"id": "concept-023", "source": "content/en/docs/concepts/resource-management/dynamic-resource-allocation/dra-observability.md", "question": "How can you check the status of dynamically allocated resources?", "reference": "You can check dynamically allocated resources with kubelet device metrics, through the PodResourcesLister gRPC service, with ResourceClaim device status, and with device health monitoring.", "key_terms": ["PodResourcesLister", "ResourceClaim", "health"]}
{"id": "concept-024", "source": "content/en/docs/concepts/workloads/workload-api/disruption-and-priority.md", "question": "Which disruption modes does a PodGroup support?", "reference": "A PodGroup supports two disruption modes, Single and All. The default is Single.", "key_terms": ["Single", "All", "default"]}
+409
View File
@@ -0,0 +1,409 @@
{"text": "Kubernetes includes a beta feature that lets an\nAPI Server\nproxy resource requests to other _peer_ API servers. It also lets clients get\na holistic view of resources served across the entire cluster through discovery.\nThis is useful when there are multiple\nAPI servers running different versions of Kubernetes in one cluster\n(for example, during a long-lived rollout to a new release of Kubernetes).\n\nThis enables cluster administrators to configure highly available clusters that can be upgraded\nmore safely, by :\n\n1. ensuring that controllers relying on discovery to show a comprehensive list of resources\nfor important tasks always get the complete view of all resources. We call this complete cluster-wide\ndiscovery _Peer-aggregated discovery_.\n1. directing resource requests (made during the upgrade) to the correct kube-apiserver.\nThis proxying prevents users from seeing unexpected 404 Not Found errors that stem\nfrom the upgrade process. This mechanism is called the _Mixed Version Proxy_.\n\n## Enabling Peer-aggregated Discovery and Mixed Version Proxy\n\nEnsure that `UnknownVersionInteroperabilityProxy` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/#UnknownVersionInteroperabilityProxy)\nis enabled when you start the API Server:\n\n```shell\nkube-apiserver \\\n--feature-gates=UnknownVersionInteroperabilityProxy=true \\\n# required command line arguments for this feature\n--peer-ca-file=\n--proxy-client-cert-file= ,\n--proxy-client-key-file= ,\n--requestheader-client-ca-file= ,\n# requestheader-allowed-names can be set to blank to allow any Common Name\n--requestheader-allowed-names= ,\n\n# optional flags for this feature\n--peer-advertise-ip=`IP of this kube-apiserver that should be used by peers to proxy requests`\n--peer-advertise-port=`port of this kube-apiserver that should be used by peers to proxy requests`\n\n# …and other flags as usual\n```\n\n### Proxy transport and authentication between API servers {#transport-and-authn}\n\n* The source kube-apiserver reuses the\n[existing APIserver client authentication flags](/docs/tasks/extend-kubernetes/configure-aggregation-layer/#kubernetes-apiserver-client-authentication)\n`--proxy-client-cert-file` and `--proxy-client-key-file` to present its identity that\nwill be verified by its peer (the destination kube-apiserver). The destination API server\nverifies that peer connection based on the configuration you specify using the\n`--requestheader-client-ca-file` command line argument.\n\n* To authenticate the destination server's serving certs, you must configure a certificate\nauthority bundle by specifying the `--peer-ca-file` command line argument to the **source** API server.\n\n### Configuration for peer API server connectivity\n\nTo set the network location of a kube-apiserver that peers will use to proxy requests, use the\n`--peer-advertise-ip` and `--peer-advertise-port` command line arguments to kube-apiserver or specify\nthese fields in the API server configuration file.\nIf these flags are unspecified, peers will use the value from either `--advertise-address` or\n`--bind-address` command line argument to the kube-apiserver.\nIf those too, are unset, the host's default interface is used.\n\n## Peer-aggregated discovery\n\nWhen you enable the feature, discovery requests are automatically enabled to serve\na comprehensive discovery document (listing all resources served by any apiserver in the cluster)\nby default.\n\nIf you would like to request\na non peer-aggregated discovery document, you can indicate so by adding the following Accept header to the discovery request:\n\n```\napplication/json;g=apidiscovery.k8s.io;v=v2;as=APIGroupDiscoveryList;profile=nopeer\n```\n\nPeer-aggregated discovery is only supported\nfor [Aggregated Discovery](/docs/concepts/overview/kubernetes-api/#aggregated-discovery) requests\nto the `/apis` endpoint and not for [Unaggregated (Legacy) Discovery](/docs/concepts/overview/kubernetes-api/#unaggregated-discovery) requests.\n\n## Mixed version proxying\n\nWhen you enable mixed version proxying, the [aggregation layer](/docs/concepts/extend-kubernetes/api-extension/apiserver-aggregation/)\nloads a special filter that does the following:\n\n* When a resource request reaches an API server that cannot serve that API\n(either because it is at a version pre-dating the introduction of the API or the API is turned off on the API server)\nthe API server attempts to send the request to a peer API server that can serve the requested API.\nIt does so by identifying API groups / versions / resources that the local server doesn't recognise,\nand tries to proxy those requests to a peer API server that is capable of handling the request.\n* If the peer API server fails to respond, the _source_ API server responds with 503 (\"Service Unavailable\") error.\n\n### How it works under the hood\n\nWhen an API Server receives a resource request, it first checks which API servers can\nserve the reLine truncated
{"text": "This page provides good practices and considerations when designing\n_admission webhooks_ in Kubernetes. This information is intended for\ncluster operators who run admission webhook servers or third-party applications\nthat modify or validate your API requests.\n\nBefore reading this page, ensure that you're familiar with the following\nconcepts:\n\n* [Admission controllers](/docs/reference/access-authn-authz/admission-controllers/)\n* [Admission webhooks](/docs/reference/access-authn-authz/extensible-admission-controllers/#what-are-admission-webhooks)\n\n## Importance of good webhook design {#why-good-webhook-design-matters}\n\nAdmission control occurs when any create, update, or delete request\nis sent to the Kubernetes API. Admission controllers intercept requests that\nmatch specific criteria that you define. These requests are then sent to\nmutating admission webhooks or validating admission webhooks. These webhooks are\noften written to ensure that specific fields in object specifications exist or\nhave specific allowed values.\n\nWebhooks are a powerful mechanism to extend the Kubernetes API. Badly-designed\nwebhooks often result in workload disruptions because of how much control\nthe webhooks have over objects in the cluster. Like other API extension\nmechanisms, webhooks are challenging to test at scale for compatibility with\nall of your workloads, other webhooks, add-ons, and plugins.\n\nAdditionally, with every release, Kubernetes adds or modifies the API with new\nfeatures, feature promotions to beta or stable status, and deprecations. Even\nstable Kubernetes APIs are likely to change. For example, the `Pod` API changed\nin v1.29 to add the\n[Sidecar containers](/docs/concepts/workloads/pods/sidecar-containers/) feature.\nWhile it's rare for a Kubernetes object to enter a broken state because of a new\nKubernetes API, webhooks that worked as expected with earlier versions of an API\nmight not be able to reconcile more recent changes to that API. This can result\nin unexpected behavior after you upgrade your clusters to newer versions.\n\nThis page describes common webhook failure scenarios and how to avoid them by\ncautiously and thoughtfully designing and implementing your webhooks.\n\n## Identify whether you use admission webhooks {#identify-admission-webhooks}\n\nEven if you don't run your own admission webhooks, some third-party applications\nthat you run in your clusters might use mutating or validating admission\nwebhooks.\n\nTo check whether your cluster has any mutating admission webhooks, run the\nfollowing command:\n\n```shell\nkubectl get mutatingwebhookconfigurations\n```\nThe output lists any mutating admission controllers in the cluster.\n\nTo check whether your cluster has any validating admission webhooks, run the\nfollowing command:\n\n```shell\nkubectl get validatingwebhookconfigurations\n```\nThe output lists any validating admission controllers in the cluster.\n\n## Choose an admission control mechanism {#choose-admission-mechanism}\n\nKubernetes includes multiple admission control and policy enforcement options.\nKnowing when to use a specific option can help you to improve latency and\nperformance, reduce management overhead, and avoid issues during version\nupgrades. The following table describes the mechanisms that let you mutate or\nvalidate resources during admission:\n\nMutating and validating admission control in Kubernetes\n\nMechanism\nDescription\nUse cases\n\nMutating admission webhook\nIntercept API requests before admission and modify as needed using\ncustom logic.\n\nMake critical modifications that must happen before resource\nadmission.\nMake complex modifications that require advanced logic, like calling\nexternal APIs.\n\nMutating admission policy\nIntercept API requests before admission and modify as needed using\nCommon Expression Language (CEL) expressions.\n\nMake critical modifications that must happen before resource\nadmission.\nMake simple modifications, such as adjusting labels or replica\ncounts.\n\nValidating admission webhook\nIntercept API requests before admission and validate against complex\npolicy declarations.\n\nValidate critical configurations before resource admission.\nEnforce complex policy logic before admission.\n\nValidating admission policy\nIntercept API requests before admission and validate against CEL\nexpressions.\n\nValidate critical configurations before resource admission.\nEnforce policy logic using CEL expressions.\n\nIn general, use _webhook_ admission control when you want an extensible way to\ndeclare or configure the logic. Use built-in CEL-based admission control when\nyou want to declare simpler logic without the overhead of running a webhook\nserver. The Kubernetes project recommends that you use CEL-based admission\ncontrol when possible.\n\n### Use built-in validation and defaulting for CustomResourceDefinitions {#no-crd-validation-defaulting}\n\nIf you use\nCustomResourceDefinitions,\ndon't use adLine truncated
{"text": "Controlling the behavior of the Kubernetes API server in an overload situation\nis a key task for cluster administrators. The kube-apiserver has some controls available\n(i.e. the `--max-requests-inflight` and `--max-mutating-requests-inflight`\ncommand-line flags) to limit the amount of outstanding work that will be\naccepted, preventing a flood of inbound requests from overloading and\npotentially crashing the API server, but these flags are not enough to ensure\nthat the most important requests get through in a period of high traffic.\n\nThe API Priority and Fairness feature (APF) is an alternative that improves upon\naforementioned max-inflight limitations. APF classifies\nand isolates requests in a more fine-grained way. It also introduces\na limited amount of queuing, so that no requests are rejected in cases\nof very brief bursts. Requests are dispatched from queues using a\nfair queuing technique so that, for example, a poorly-behaved\ncontroller need not\nstarve others (even at the same priority level).\n\nThis feature is designed to work well with standard controllers, which\nuse informers and react to failures of API requests with exponential\nback-off, and other clients that also work this way.\n\nSome requests classified as \"long-running\"—such as remote\ncommand execution or log tailing—are not subject to the API\nPriority and Fairness filter. This is also true for the\n`--max-requests-inflight` flag without the API Priority and Fairness\nfeature enabled. API Priority and Fairness _does_ apply to **watch**\nrequests. When API Priority and Fairness is disabled, **watch** requests\nare not subject to the `--max-requests-inflight` limit.\n\n## Enabling/Disabling API Priority and Fairness\n\nThe API Priority and Fairness feature is controlled by a command-line flag\nand is enabled by default. See\n[Options](/docs/reference/command-line-tools-reference/kube-apiserver/#options)\nfor a general explanation of the available kube-apiserver command-line\noptions and how to enable and disable them. The name of the\ncommand-line option for APF is \"--enable-priority-and-fairness\". This feature\nalso involves an API Group\nwith: (a) a stable `v1` version, introduced in 1.29, and\nenabled by default (b) a `v1beta3` version, enabled by default, and\ndeprecated in v1.29. You can\ndisable the API group beta version `v1beta3` by adding the\nfollowing command-line flags to your `kube-apiserver` invocation:\n\n```shell\nkube-apiserver \\\n--runtime-config=flowcontrol.apiserver.k8s.io/v1beta3=false \\\n# …and other flags as usual\n```\n\nThe command-line flag `--enable-priority-and-fairness=false` will disable the\nAPI Priority and Fairness feature.\n\n## Recursive server scenarios\n\nAPI Priority and Fairness must be used carefully in recursive server\nscenarios. These are scenarios in which some server A, while serving\na request, issues a subsidiary request to some server B. Perhaps\nserver B might even make a further subsidiary call back to server\nA. In situations where Priority and Fairness control is applied to\nboth the original request and some subsidiary ones(s), no matter how\ndeep in the recursion, there is a danger of priority inversions and/or\ndeadlocks.\n\nOne example of recursion is when the `kube-apiserver` issues an\nadmission webhook call to server B, and while serving that call,\nserver B makes a further subsidiary request back to the\n`kube-apiserver`. Another example of recursion is when an `APIService`\nobject directs the `kube-apiserver` to delegate requests about a\ncertain API group to a custom external server B (this is one of the\nthings called \"aggregation\").\n\nWhen the original request is known to belong to a certain priority\nlevel, and the subsidiary controlled requests are classified to higher\npriority levels, this is one possible solution. When the original\nrequests can belong to any priority level, the subsidiary controlled\nrequests have to be exempt from Priority and Fairness limitation. One\nway to do that is with the objects that configure classification and\nhandling, discussed below. Another way is to disable Priority and\nFairness on server B entirely, using the techniques discussed above. A\nthird way, which is the simplest to use when server B is not\n`kube-apiserver`, is to build server B with Priority and Fairness\ndisabled in the code.\n\n## Concepts\n\nThere are several distinct features involved in the API Priority and Fairness\nfeature. Incoming requests are classified by attributes of the request using\n_FlowSchemas_, and assigned to priority levels. Priority levels add a degree of\nisolation by maintaining separate concurrency limits, so that requests assigned\nto different priority levels cannot starve each other. Within a priority level,\na fair-queuing algorithm prevents requests from different _flows_ from starving\neach other, and allows for requests to be queued to prevent bursty traffic from\ncausing failed requests when the averageLine truncated
{"text": "System component logs record events happening in cluster, which can be very useful for debugging.\nYou can configure log verbosity to see more or less detail.\nLogs can be as coarse-grained as showing errors within a component, or as fine-grained as showing\nstep-by-step traces of events (like HTTP access logs, pod state changes, controller actions, or\nscheduler decisions).\n\nIn contrast to the command line flags described here, the *log\noutput* itself does *not* fall under the Kubernetes API stability guarantees:\nindividual log entries and their formatting may change from one release\nto the next!\n\n## Klog\n\nklog is the Kubernetes logging library. [klog](https://github.com/kubernetes/klog)\ngenerates log messages for the Kubernetes system components.\n\nKubernetes is in the process of simplifying logging in its components.\nThe following klog command line flags\n[are deprecated](https://github.com/kubernetes/enhancements/tree/master/keps/sig-instrumentation/2845-deprecate-klog-specific-flags-in-k8s-components)\nstarting with Kubernetes v1.23 and removed in Kubernetes v1.26:\n\n- `--add-dir-header`\n- `--alsologtostderr`\n- `--log-backtrace-at`\n- `--log-dir`\n- `--log-file`\n- `--log-file-max-size`\n- `--logtostderr`\n- `--one-output`\n- `--skip-headers`\n- `--skip-log-headers`\n- `--stderrthreshold`\n\nOutput will always be written to stderr, regardless of the output format. Output redirection is\nexpected to be handled by the component which invokes a Kubernetes component. This can be a POSIX\nshell or a tool like systemd.\n\nIn some cases, for example a distroless container or a Windows system service, those options are\nnot available. Then the\n[`kube-log-runner`](https://github.com/kubernetes/kubernetes/blob/d2a8a81639fcff8d1221b900f66d28361a170654/staging/src/k8s.io/component-base/logs/kube-log-runner/README.md)\nbinary can be used as wrapper around a Kubernetes component to redirect\noutput. A prebuilt binary is included in several Kubernetes base images under\nits traditional name as `/go-runner` and as `kube-log-runner` in server and\nnode release archives.\n\nThis table shows how `kube-log-runner` invocations correspond to shell redirection:\n\n| Usage | POSIX shell (such as bash) | `kube-log-runner ` |\n| -----------------------------------------|----------------------------|-------------------------------------------------------------|\n| Merge stderr and stdout, write to stdout | `2>&1` | `kube-log-runner` (default behavior) |\n| Redirect both into log file | `1>>/tmp/log 2>&1` | `kube-log-runner -log-file=/tmp/log` |\n| Copy into log file and to stdout | `2>&1 \\| tee -a /tmp/log` | `kube-log-runner -log-file=/tmp/log -also-stdout` |\n| Redirect only stdout into log file | `>/tmp/log` | `kube-log-runner -log-file=/tmp/log -redirect-stderr=false` |\n\n### Klog output\n\nAn example of the traditional klog native format:\n\n```\nI1025 00:15:15.525108 1 httplog.go:79] GET /api/v1/namespaces/kube-system/pods/metrics-server-v0.3.1-57c75779f-9p8wg: (1.512ms) 200 [pod_nanny/v0.0.0 (linux/amd64) kubernetes/$Format 10.56.1.19:51756]\n```\n\nThe message string may contain line breaks:\n\n```\nI1025 00:15:15.525108 1 example.go:79] This is a message\nwhich has a line break.\n```\n\n### Structured Logging\n\nMigration to structured log messages is an ongoing process. Not all log messages are structured in\nthis version. When parsing log files, you must also handle unstructured log messages.\n\nLog formatting and value serialization are subject to change.\n\nStructured logging introduces a uniform structure in log messages allowing for programmatic\nextraction of information. You can store and process structured logs with less effort and cost.\nThe code which generates a log message determines whether it uses the traditional unstructured\nklog output or structured logging.\n\nThe default formatting of structured log messages is as text, with a format that is backward\ncompatible with traditional klog:\n\n```\n\" \" =\" \" =\" \" ...\n```\n\nExample:\n\n```\nI1025 00:15:15.525108 1 controller_utils.go:116] \"Pod status updated\" pod=\"kube-system/kubedns\" status=\"ready\"\n```\n\nStrings are quoted. Other values are formatted with\n[`%+v`](https://pkg.go.dev/fmt#hdr-Printing), which may cause log messages to\ncontinue on the next line [depending on the data](https://github.com/kubernetes/kubernetes/issues/106428).\n\n```\nI1025 00:15:15.525108 1 example.go:116] \"Example\" data=\"This is text with a line break\\nand \\\"quotation marks\\\".\" someInt=1 someFloat=0.1 someStruct={StringField: First line,\nsecond line.}\n```\n\n### Contextual Logging\n\nContextual logging builds on top of structured logging. It is primarily about\nhow developers use logging calls: code based on that concept is more flexible\nand supports additional use cases as described in the [Contextual Logging\nKEP](https://github.com/kubernetes/enhancements/tree/master/keps/sig-instrumentation/3077-contextual-logging).\Line truncated
{"text": "Kubernetes provides a device plugin framework that you can use to advertise system hardware\nresources to the .\n\nInstead of customizing the code for Kubernetes itself, vendors can implement a\ndevice plugin that you deploy either manually or as a .\nThe targeted devices include GPUs, high-performance NICs, FPGAs, InfiniBand adapters,\nand other similar computing resources that may require vendor specific initialization\nand setup.\n\n## Device plugin registration\n\nThe kubelet exports a `Registration` gRPC service:\n\n```gRPC\nservice Registration {\nrpc Register(RegisterRequest) returns (Empty) {}\n}\n```\n\nA device plugin can register itself with the kubelet through this gRPC service.\nDuring the registration, the device plugin needs to send:\n\n* The name of its Unix socket.\n* The Device Plugin API version against which it was built.\n* The `ResourceName` it wants to advertise. Here `ResourceName` needs to follow the\n[extended resource naming scheme](/docs/concepts/configuration/manage-resources-containers/#extended-resources)\nas `vendor-domain/resourcetype`.\n(For example, an NVIDIA GPU is advertised as `nvidia.com/gpu`.)\n\nFollowing a successful registration, the device plugin sends the kubelet the\nlist of devices it manages, and the kubelet is then in charge of advertising those\nresources to the API server as part of the kubelet node status update.\nFor example, after a device plugin registers `hardware-vendor.example/foo` with the kubelet\nand reports two healthy devices on a node, the node status is updated\nto advertise that the node has 2 \"Foo\" devices installed and available.\n\nThen, users can request devices as part of a Pod specification\n(see [`container`](/docs/reference/kubernetes-api/workload-resources/pod-v1/#Container)).\nRequesting extended resources is similar to how you manage requests and limits for\nother resources, with the following differences:\n* Extended resources are only supported as integer resources and cannot be overcommitted.\n* Devices cannot be shared between containers.\n\n### Example {#example-pod}\n\nSuppose a Kubernetes cluster is running a device plugin that advertises resource `hardware-vendor.example/foo`\non certain nodes. Here is an example of a pod requesting this resource to run a demo workload:\n\n```yaml\n---\napiVersion: v1\nkind: Pod\nmetadata:\nname: demo-pod\nspec:\ncontainers:\n- name: demo-container-1\nimage: registry.k8s.io/pause:3.8\nresources:\nlimits:\nhardware-vendor.example/foo: 2\n#\n# This Pod needs 2 of the hardware-vendor.example/foo devices\n# and can only schedule onto a Node that's able to satisfy\n# that need.\n#\n# If the Node has more than 2 of those devices available, the\n# remainder would be available for other Pods to use.\n```\n\n## Device plugin implementation\n\nThe general workflow of a device plugin includes the following steps:\n\n1. Initialization. During this phase, the device plugin performs vendor-specific\ninitialization and setup to make sure the devices are in a ready state.\n\n1. The plugin starts a gRPC service, with a Unix socket under the host path\n`/var/lib/kubelet/device-plugins/` (this path is hardcoded and is not\naffected by the kubelet's `--root-dir` or any other configuration), that\nimplements the following interfaces:\n\n```gRPC\nservice DevicePlugin {\n// GetDevicePluginOptions returns options to be communicated with Device Manager.\nrpc GetDevicePluginOptions(Empty) returns (DevicePluginOptions) {}\n\n// ListAndWatch returns a stream of List of Devices\n// Whenever a Device state change or a Device disappears, ListAndWatch\n// returns the new list\nrpc ListAndWatch(Empty) returns (stream ListAndWatchResponse) {}\n\n// Allocate is called during container creation so that the Device\n// Plugin can run device specific operations and instruct Kubelet\n// of the steps to make the Device available in the container\nrpc Allocate(AllocateRequest) returns (AllocateResponse) {}\n\n// GetPreferredAllocation returns a preferred set of devices to allocate\n// from a list of available ones. The resulting preferred allocation is not\n// guaranteed to be the allocation ultimately performed by the\n// devicemanager. It is only designed to help the devicemanager make a more\n// informed allocation decision when possible.\nrpc GetPreferredAllocation(PreferredAllocationRequest) returns (PreferredAllocationResponse) {}\n\n// PreStartContainer is called, if indicated by Device Plugin during registration phase,\n// before each container start. Device plugin can run device specific operations\n// such as resetting the device before making devices available to the container.\nrpc PreStartContainer(PreStartContainerRequest) returns (PreStartContainerResponse) {}\n}\n```\n\nPlugins are not required to provide useful implementations for\n`GetPreferredAllocation()` or `PreStartContainer()`. Flags indicating\nthe availability of these calls, if any, should be set in the `DevicePluginOptions`\nmessage sent backLine truncated
{"text": "Kubernetes (version 1.3 through to the latest , and likely onwards) lets you use\n[Container Network Interface](https://github.com/containernetworking/cni)\n(CNI) plugins for cluster networking. You must use a CNI plugin that is compatible with your\ncluster and that suits your needs. Different plugins are available (both open- and closed- source)\nin the wider Kubernetes ecosystem.\n\nA CNI plugin is required to implement the\n[Kubernetes network model](/docs/concepts/services-networking/#the-kubernetes-network-model).\n\nYou must use a CNI plugin that is compatible with the\n[v0.4.0](https://github.com/containernetworking/cni/blob/spec-v0.4.0/SPEC.md) or later\nreleases of the CNI specification. The Kubernetes project recommends using a plugin that is\ncompatible with the [v1.0.0](https://github.com/containernetworking/cni/blob/spec-v1.0.0/SPEC.md)\nCNI specification (plugins can be compatible with multiple spec versions).\n\n## Installation\n\nA Container Runtime, in the networking context, is a daemon on a node configured to provide CRI\nServices for kubelet. In particular, the Container Runtime must be configured to load the CNI\nplugins required to implement the Kubernetes network model.\n\nPrior to Kubernetes 1.24, the CNI plugins could also be managed by the kubelet using the\n`cni-bin-dir` and `network-plugin` command-line parameters.\nThese command-line parameters were removed in Kubernetes 1.24, with management of the CNI no\nlonger in scope for kubelet.\n\nSee [Troubleshooting CNI plugin-related errors](/docs/tasks/administer-cluster/migrating-from-dockershim/troubleshooting-cni-plugin-related-errors/)\nif you are facing issues following the removal of dockershim.\n\nFor specific information about how a Container Runtime manages the CNI plugins, see the\ndocumentation for that Container Runtime, for example:\n\n- [containerd](https://github.com/containerd/containerd/blob/main/script/setup/install-cni)\n- [CRI-O](https://github.com/cri-o/cri-o/blob/main/contrib/cni/README.md)\n\nFor specific information about how to install and manage a CNI plugin, see the documentation for\nthat plugin or [networking provider](/docs/concepts/cluster-administration/networking/#how-to-implement-the-kubernetes-network-model).\n\n## Network Plugin Requirements\n\n### Loopback CNI\n\nIn addition to the CNI plugin installed on the nodes for implementing the Kubernetes network\nmodel, Kubernetes also requires the container runtimes to provide a loopback interface `lo`, which\nis used for each sandbox (pod sandboxes, vm sandboxes, ...).\nImplementing the loopback interface can be accomplished by re-using the\n[CNI loopback plugin.](https://github.com/containernetworking/plugins/blob/master/plugins/main/loopback/loopback.go)\nor by developing your own code to achieve this (see\n[this example from CRI-O](https://github.com/cri-o/ocicni/blob/release-1.24/pkg/ocicni/util_linux.go#L91)).\n\n### Support hostPort\n\nThe CNI networking plugin supports `hostPort`. You can use the official\n[portmap](https://github.com/containernetworking/plugins/tree/master/plugins/meta/portmap)\nplugin offered by the CNI plugin team or use your own plugin with portMapping functionality.\n\nIf you want to enable `hostPort` support, you must specify `portMappings capability` in your\n`cni-conf-dir`. For example:\n\n```json\n{\n\"name\": \"k8s-pod-network\",\n\"cniVersion\": \"0.4.0\",\n\"plugins\": [\n{\n\"type\": \"calico\",\n\"log_level\": \"info\",\n\"datastore_type\": \"kubernetes\",\n\"nodename\": \"127.0.0.1\",\n\"ipam\": {\n\"type\": \"host-local\",\n\"subnet\": \"usePodCidr\"\n},\n\"policy\": {\n\"type\": \"k8s\"\n},\n\"kubernetes\": {\n\"kubeconfig\": \"/etc/cni/net.d/calico-kubeconfig\"\n}\n},\n{\n\"type\": \"portmap\",\n\"capabilities\": {\"portMappings\": true},\n\"externalSetMarkChain\": \"KUBE-MARK-MASQ\"\n}\n]\n}\n```\n\n### Support traffic shaping\n\n**Experimental Feature**\n\nThe CNI networking plugin also supports pod ingress and egress traffic shaping. You can use the\nofficial [bandwidth](https://github.com/containernetworking/plugins/tree/master/plugins/meta/bandwidth)\nplugin offered by the CNI plugin team or use your own plugin with bandwidth control functionality.\n\nIf you want to enable traffic shaping support, you must add the `bandwidth` plugin to your CNI\nconfiguration file (default `/etc/cni/net.d`) and ensure that the binary is included in your CNI\nbin dir (default `/opt/cni/bin`).\n\n```json\n{\n\"name\": \"k8s-pod-network\",\n\"cniVersion\": \"0.4.0\",\n\"plugins\": [\n{\n\"type\": \"calico\",\n\"log_level\": \"info\",\n\"datastore_type\": \"kubernetes\",\n\"nodename\": \"127.0.0.1\",\n\"ipam\": {\n\"type\": \"host-local\",\n\"subnet\": \"usePodCidr\"\n},\n\"policy\": {\n\"type\": \"k8s\"\n},\n\"kubernetes\": {\n\"kubeconfig\": \"/etc/cni/net.d/calico-kubeconfig\"\n}\n},\n{\n\"type\": \"bandwidth\",\n\"capabilities\": {\"bandwidth\": true}\n}\n]\n}\n```\n\nNow you can add the `kubernetes.io/ingress-bLine truncated
{"text": "You can visualize and manage Kubernetes objects with more tools than kubectl and\nthe dashboard. A common set of labels allows tools to work interoperably, describing\nobjects in a common manner that all tools can understand.\n\nIn addition to supporting tooling, the recommended labels describe applications\nin a way that can be queried.\n\nThe metadata is organized around the concept of an _application_. Kubernetes is not\na platform as a service (PaaS) and doesn't have or enforce a formal notion of an application.\nInstead, applications are informal and described with metadata. The definition of\nwhat an application contains is loose.\n\nThese are recommended labels. They make it easier to manage applications\nbut aren't required for any core tooling.\n\nShared labels and annotations share a common prefix: `app.kubernetes.io`. Labels\nwithout a prefix are private to users. The shared prefix ensures that shared labels\ndo not interfere with custom user labels.\n\n## Labels\n\nIn order to take full advantage of using these labels, they should be applied\non every resource object.\n\n| Key | Description | Example | Type |\n| ----------------------------------- | --------------------- | -------- | ---- |\n| `app.kubernetes.io/name` | The name of the application | `mysql` | string |\n| `app.kubernetes.io/instance` | A unique name identifying the instance of an application | `mysql-abcxyz` | string |\n| `app.kubernetes.io/version` | The current version of the application (e.g., a [SemVer 1.0](https://semver.org/spec/v1.0.0.html), revision hash, etc.) | `5.7.21` | string |\n| `app.kubernetes.io/component` | The component within the architecture | `database` | string |\n| `app.kubernetes.io/part-of` | The name of a higher level application this one is part of | `wordpress` | string |\n| `app.kubernetes.io/managed-by` | The tool being used to manage the operation of an application | `Helm` | string |\n\nTo illustrate these labels in action, consider the following StatefulSet object:\n\n```yaml\n# This is an excerpt\napiVersion: apps/v1\nkind: StatefulSet\nmetadata:\nlabels:\napp.kubernetes.io/name: mysql\napp.kubernetes.io/instance: mysql-abcxyz\napp.kubernetes.io/version: \"5.7.21\"\napp.kubernetes.io/component: database\napp.kubernetes.io/part-of: wordpress\napp.kubernetes.io/managed-by: Helm\n```\n\n## Applications And Instances Of Applications\n\nAn application can be installed one or more times into a Kubernetes cluster and,\nin some cases, the same namespace. For example, WordPress can be installed more\nthan once where different websites are different installations of WordPress.\n\nThe name of an application and the instance name are recorded separately. For\nexample, WordPress has a `app.kubernetes.io/name` of `wordpress` while it has\nan instance name, represented as `app.kubernetes.io/instance` with a value of\n`wordpress-abcxyz`. This enables the application and instance of the application\nto be identifiable. Every instance of an application must have a unique name.\n\n## Examples\n\nTo illustrate different ways to use these labels the following examples have varying complexity.\n\n### A Simple Stateless Service\n\nConsider the case for a simple stateless service deployed using `Deployment` and `Service` objects. The following two snippets represent how the labels could be used in their simplest form.\n\nThe `Deployment` is used to oversee the pods running the application itself.\n```yaml\napiVersion: apps/v1\nkind: Deployment\nmetadata:\nlabels:\napp.kubernetes.io/name: myservice\napp.kubernetes.io/instance: myservice-abcxyz\n...\n```\n\nThe `Service` is used to expose the application.\n```yaml\napiVersion: v1\nkind: Service\nmetadata:\nlabels:\napp.kubernetes.io/name: myservice\napp.kubernetes.io/instance: myservice-abcxyz\n...\n```\n\n### Web Application With A Database\n\nConsider a slightly more complicated application: a web application (WordPress)\nusing a database (MySQL), installed using Helm. The following snippets illustrate\nthe start of objects used to deploy this application.\n\nThe start to the following `Deployment` is used for WordPress:\n\n```yaml\napiVersion: apps/v1\nkind: Deployment\nmetadata:\nlabels:\napp.kubernetes.io/name: wordpress\napp.kubernetes.io/instance: wordpress-abcxyz\napp.kubernetes.io/version: \"4.9.4\"\napp.kubernetes.io/managed-by: Helm\napp.kubernetes.io/component: server\napp.kubernetes.io/part-of: wordpress\n...\n```\n\nThe `Service` is used to expose WordPress:\n\n```yaml\napiVersion: v1\nkind: Service\nmetadata:\nlabels:\napp.kubernetes.io/name: wordpress\napp.kubernetes.io/instance: wordpress-abcxyz\napp.kubernetes.io/version: \"4.9.4\"\napp.kubernetes.io/managed-by: Helm\napp.kubernetes.io/component: server\napp.kubernetes.io/part-of: wordpress\n...\n```\n\nMySQL is exposed as a `StatefulSet` with metadata for both it and the larger application it belongs to:\n\n```yaml\napiVersion: apps/v1\nkind: StatefulSet\nmetadata:\nlabels:\napp.kubernetes.iLine truncated
{"text": "The Kubernetes API server stores objects, relying on an etcd-compatible backing\nstore (often, the backing storage is etcd itself). Each object is serialized\nusing a particular version of that API type; for example, the v1 representation\nof a ConfigMap. Kubernetes uses the term _storage version_ to describe how an\nobject is stored in your cluster.\n\nThe Kubernetes API also relies on automatic conversion; for example, if you have\na HorizontalPodAutoscaler, then you can interact with that\nHorizontalPodAutoscaler using any mix of the v1 and v2 versions of the\nHorizontalPodAutoscaler API. Kubernetes is responsible for converting each API\ncall so that clients do not see what version is actually serialized.\n\nFor cluster administrators, object storage version is an important concept to\nunderstand since it is what links the API representation of the object to the\nactual encoding in the storage backend. This can be important for when the\nunderlying binary encodings of the object matter, such as for encryption at\nrest, or API deprecation.\n\nThe same API may have multiple storage versions that the API Server can then\nconvert to an object schema. A single object that is part of that resource must\nonly have one storage version at any time. This means that the API Server is\naware of the binary encodings of the objects and is able to convert between all\nthe stored versions to the API Representation of the object dynamically.\n\nThe version of an object is separate from the storage version entirely. For\nexample, a `v1alpha1` and `v1beta1` API Object for the same Resource will be\nencoded the same in storage as long as the storage version has not been updated\nbetween the two objects.\n\n## Storage version to resource mapping\n\nEvery resource will have 1 active storage version at any point in time, meaning\nthat any write to an object will store the object at that storage version. The\nstorage version can be updated however, making it so that objects can be stored\nat differing versions. One object will only be stored at one storage version at\nany time.\n\nReads from the API Server will convert the stored data to the API representation\nof the object. This makes it so that old storage versions can sit indefinitely\nas long as no updates occur to the object. Writes, on the other hand, will\nconvert the stored object to the new representation upon update.\n\n## Storage versions for custom resources {#CustomResourceDefinition-storage-version}\n\n[Custom\nresources](/docs/concepts/extend-kubernetes/api-extension/custom-resources/#storage) are\ndefined dynamically, and as such differ from built in Kubernetes types with\ntheir storage version. Builtin objects generally have their storage encoding\ndefined separately from their API types, where the stored object acts as a hub\nand the specific version of the resource does not matter apart from being a\nfield in the object schema.\n\nHowever, for custom resources, a certain version of the resource must be set as\nthe storage version. The schema defined by that specific version of the custom\nresource will be used as the encoding of the resource in the storage layer. See\nthe [advanced CRD\nfeatureset](/docs/concepts/extend-kubernetes/api-extension/custom-resources/#advanced-features-and-flexibility)\nfor more detailed information on the API setup and versioning.\n\nFor example see this CustomResourceDefinition for _crontabs_:\n\n```yaml\napiVersion: apiextensions.k8s.io/v1\nkind: CustomResourceDefinition\nmetadata:\nname: crontabs.example.com\nspec:\ngroup: example.com\n# list of versions supported by this CustomResourceDefinition\nversions:\n- name: v1beta1\n# Each version can be enabled/disabled by Served flag.\nserved: true\n# One and only one version must be marked as the storage version.\nstorage: true\nschema:\nopenAPIV3Schema:\ntype: object\nproperties:\nhost:\ntype: string\nport:\ntype: string\n- name: v1\nserved: true\nstorage: false\nschema:\nopenAPIV3Schema:\ntype: object\nproperties:\nhost:\ntype: string\nport:\ntype: string\ntime:\ntype: string\nconversion:\nstrategy: None\nscope: Namespaced\nnames:\nplural: crontabs\nsingular: crontab\nkind: CronTab\nshortNames:\n- ct\n```\n\nThe `v1beta1` API definition is used as the storage version, meaning that any\nupdates or creation of `crontabs` will be stored with the object schema of the\n`v1beta1` api. In this case it actually would mean that the `v1` API object\nwould never be able to store the `time` field since it is not part of the\nstorage definition. This schema is used in the storage layer as the binary\nencoding of the object itself. Trying to set two versions as the stored version\nat the same time is considered invalid, since that would mean that two data\nschemes would be considered valid ways to store the objects at the same time.\n\nUpon modification of the version that is used for storage, that version of the\nAPI will be used to store any new or update CRs. Watching or gettingLine truncated
{"text": "This page describes how to observe the status and health of resources that are\ndynamically allocated with DRA.\n\n## Observability of dynamic resources {#observability-dynamic-resources}\n\nYou can check the status of dynamically allocated resources by using any of the\nfollowing methods:\n\n* [kubelet device metrics](#monitoring-resources)\n* [ResourceClaim status](#resourceclaim-device-status)\n* [Device health monitoring](#device-health-monitoring)\n\n### kubelet device metrics {#monitoring-resources}\n\nThe `PodResourcesLister` kubelet gRPC service lets you monitor in-use devices.\nThe `DynamicResource` message provides information that's specific to dynamic\nresource allocation, such as the device name and the claim name. For details,\nsee\n[Monitoring device plugin resources](/docs/concepts/extend-kubernetes/compute-storage-net/device-plugins/#monitoring-device-plugin-resources).\n\n### ResourceClaim device status {#resourceclaim-device-status}\n\nDRA drivers can report driver-specific\n[device status](/docs/concepts/overview/working-with-objects/#object-spec-and-status)\ndata for each allocated device in the `status.devices` field of a ResourceClaim.\nFor example, the driver might list the IP addresses that are assigned to a\nnetwork interface device. Updating this field requires specific synthetic RBAC permissions,\nsee\n[Hardening Guide - Dynamic Resource Allocation](/docs/concepts/security/hardening-guide/dynamic-resource-allocation/)\nand\n[Harden Dynamic Resource Allocation in Your Cluster](/docs/tasks/administer-cluster/hardening-dra/).\n\nThe accuracy of the information that a driver adds to a ResourceClaim\n`status.devices` field depends on the driver. Evaluate drivers to decide whether\nyou can rely on this field as the only source of device information.\n\nIf you disable the\n[`DRAResourceClaimDeviceStatus` feature gate](/docs/reference/command-line-tools-reference/feature-gates/#DRAResourceClaimDeviceStatus), the\n`status.devices` field automatically gets cleared when storing the ResourceClaim.\nA ResourceClaim device status is supported when it is possible, from a DRA\ndriver, to update an existing ResourceClaim where the `status.devices` field is\nset.\n\nIn the following example, the `status.devices` field of a ResourceClaim has been\npopulated by the driver (`resource-driver.example.com`) responsible for managing\nthe allocated device:\n\n```yaml\napiVersion: resource.k8s.io/v1\nkind: ResourceClaim\nmetadata:\nname: macvlan-eth0\nspec:\n...\nstatus:\nallocation:\ndevices:\nresults:\n- device: eth0\ndriver: resource-driver.example.com\npool: nic-worker-a\nrequest: macvlan-eth0\nshareID: 8e7acdf9-0290-4ecd-a801-a654b021d2b7\nconsumedCapacity:\nresource-driver.example.com/bandwidth: 1G\ndevices:\n- conditions:\n- lastTransitionTime: \"2025-10-21T08:38:17Z\"\nmessage: Device successfully allocated and assigned to the pod\nreason: NetworkReady\nstatus: \"True\"\ntype: NetworkReady\ndevice: eth0\ndriver: resource-driver.example.com\nnetworkData:\nhardwareAddress: 00:01:ec:84:fb:51\ninterfaceName: net1\nips:\n- 10.10.1.2/24\n- 2001:db8::1/64\npool: nic-worker-a\nshareID: 8e7acdf9-0290-4ecd-a801-a654b021d2b7\n```\n\nIf a device has not been allocated, a driver's request to update the `status.devices`\nfield of the ResourceClaim with that device is rejected. When a device is\ndeallocated (removed from `status.allocation.devices`), the corresponding entry in\n`status.devices` is automatically removed.\n\nFor details about the `status.devices` field, see the\nAPI reference.\n\n### Device Health Monitoring {#device-health-monitoring}\n\nKubernetes provides a mechanism for monitoring and reporting the health of dynamically allocated infrastructure resources.\nFor stateful applications running on specialized hardware, it is critical to know when a device has failed or become unhealthy. It is also helpful to find out if the device recovers.\n\nTo use this functionality, the `ResourceHealthStatus` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/#ResourceHealthStatus) must be enabled (beta and enabled by default since v1.36), and the DRA driver must implement the `DRAResourceHealth` gRPC service.\n\nWhen a DRA driver detects that an allocated device has become unhealthy, it reports this status back to the kubelet. This health information is then exposed directly in the Pod's status. The kubelet populates the `allocatedResourcesStatus` field in the status of each container, detailing the health of each device assigned to that container. Each resource health entry can include an optional `message` field with additional human-readable context about the health status, such as error details or failure reasons.\n\nIf the kubelet does not receive a health update from a DRA driver within a timeout period, the device's health status is marked as \"Unknown\". DRA drivers can configure this timeout on a per-device basis by setting the `health_check_timeout_seconds` field in tLine truncated
{"text": "This page explains the _effective request_ and _effective limit_ of a\nPod, and how Kubernetes calculates them\nfrom the [resource requests and limits](/docs/concepts/configuration/manage-resources-containers/)\nthat you specify for the containers in that Pod.\nKubernetes uses these values for the Pod as a whole, for example when it schedules the Pod,\nenforces resource quota, or sizes the Pod-level cgroup on Linux.\n\nThe kube-scheduler\nplaces the Pod only on a node that has enough resources for the effective request,\nand the node keeps the effective request reserved for the Pod,\neven after initialization finishes.\nThe effective values are not always a simple sum of the container values,\nbecause init containers run one at a time,\nwhile sidecar containers keep running during and after initialization.\nUnderstanding this calculation helps you set requests on init and sidecar containers\nwithout reserving more node resources than the Pod needs.\n\n## Calculating effective requests and limits\n\nFor each resource, Kubernetes calculates a request/limit for two phases:\n\n* During initialization: init containers run one at a time, alongside any\nsidecar containers that have already started. The request/limit for this phase\nis the *effective init request/limit*, which is the highest amount needed at any\npoint during initialization:\n* For each init container, take its request/limit for the resource and add the\nrequests/limits of all sidecar containers that are listed before it in the\n`initContainers` field.\n* The highest of these values is the effective init request/limit.\n\nIf any resource has no resource limit specified this is considered as the highest limit.\n* After initialization: all sidecar containers and app containers run at the\nsame time. The request/limit for this phase is the sum of the requests/limits of\nall non-init containers (app and sidecar containers).\n\nThe Pod's *effective request/limit* for a resource is the higher of the value during\ninitialization (the effective init request/limit) and the value after initialization\n(the sum for all non-init containers), plus the\n[pod overhead](/docs/concepts/scheduling-eviction/pod-overhead/).\nSee [Examples of effective requests](#examples-of-effective-requests) to learn how\nthis calculation works for specific Pods.\n\nThe following rules also apply:\n\n* Scheduling is done based on effective requests/limits, which means\ninit containers can reserve resources for initialization that are not used\nduring the life of the Pod.\n* The QoS (quality of service) tier of the Pod's *effective QoS tier* is the\nQoS tier for all init, sidecar and app containers alike.\n\nQuota and limits are applied based on the effective Pod request and\nlimit.\n\n## Examples of effective requests\n\nThe following examples show how the effective CPU request of a Pod is calculated.\nNone of these Pods has any pod overhead.\n\nIn this Pod, the sidecar container is listed before the init container:\n\n```yaml\napiVersion: v1\nkind: Pod\nmetadata:\nname: sidecar-before-init\nspec:\ninitContainers:\n- name: sidecar\nimage: busybox:1.38\ncommand: [\"sleep\", \"infinity\"]\nrestartPolicy: Always # make this container a sidecar\nresources:\nrequests:\ncpu: 100m\n- name: init\nimage: busybox:1.38\ncommand: [\"sleep\", \"5\"]\nresources:\nrequests:\ncpu: 200m\ncontainers:\n- name: app\nimage: busybox:1.38\ncommand: [\"sleep\", \"infinity\"]\nresources:\nrequests:\ncpu: 50m\n```\n\n* During initialization, the `sidecar` container is already running when the `init`\ncontainer starts, so the effective init request is 100m + 200m = 300m.\n* After initialization, the `sidecar` and `app` containers run at the same time,\nso the sum of their requests is 100m + 50m = 150m.\n* The effective CPU request of the Pod is the higher of the two values\n(300m and 150m), which is 300m.\n\nThis Pod has the same containers, but the init container is listed before the\nsidecar container:\n\n```yaml\napiVersion: v1\nkind: Pod\nmetadata:\nname: init-before-sidecar\nspec:\ninitContainers:\n- name: init\nimage: busybox:1.38\ncommand: [\"sleep\", \"5\"]\nresources:\nrequests:\ncpu: 200m\n- name: sidecar\nimage: busybox:1.38\ncommand: [\"sleep\", \"infinity\"]\nrestartPolicy: Always # make this container a sidecar\nresources:\nrequests:\ncpu: 100m\ncontainers:\n- name: app\nimage: busybox:1.38\ncommand: [\"sleep\", \"infinity\"]\nresources:\nrequests:\ncpu: 50m\n```\n\n* During initialization, no sidecar container is running when the `init` container\nstarts, so the effective init request is 200m.\n* After initialization, the `sidecar` and `app` containers run at the same time,\nso the sum of their requests is 100m + 50m = 150m.\n* The effective CPU request of the Pod is the higher of the two values\n(200m and 150m), which is 200m.\n\nIn this Pod, the sidecar container is again listed before the init container, but this\ntime the app container requests more CPU:\n\n```yaml\napiVersion: vLine truncated
{"text": "Gang scheduling ensures that a group of Pods are scheduled on an \"all-or-nothing\" basis.\nIf the cluster cannot accommodate the entire group (or a defined minimum number of Pods, specified by `minCount`),\nnone of the Pods are bound to a node.\n\nWhile the scheduler never admits fewer Pods than the configured `minCount` during initial placement, the actual runtime\ncount of scheduled Pods can drop below this threshold if running Pods are later deleted or evicted, or if the\n`minCount` requirement increases. When this happens, the scheduler will only place additional Pods if the\ncombined total of already scheduled Pods and newly feasible unscheduled Pods reaches or exceeds `minCount`.\n\nThis feature depends on the [PodGroup API](/docs/concepts/workloads/podgroup-api/).\nEnsure the [`GenericWorkload`](/docs/reference/command-line-tools-reference/feature-gates/#GenericWorkload)\nfeature gate and the `scheduling.k8s.io/v1beta1`\nAPI group are enabled in the cluster.\n\n## How it works\n\nWhen the `GangScheduling` plugin is enabled, the scheduler alters the lifecycle for Pods belonging\nto a [PodGroup](/docs/concepts/workloads/podgroup-api/) that has a `gang`\n[scheduling policy](/docs/concepts/workloads/workload-api/policies/).\nThe process follows these steps for each PodGroup:\n\n1. The scheduler holds Pods in the `PreEnqueue` phase until:\n* The referenced PodGroup object exists.\n* The number of Pods created for the PodGroup (both already scheduled and unscheduled) is at least equal to `minCount`.\n\nThe PodGroup does not enter the active scheduling queue until both conditions are met.\n\n2. Once the quorum is met, the scheduler attempts to find placements for all unscheduled Pods in the group.\nIt utilizes the [PodGroup scheduling](/docs/concepts/scheduling-eviction/podgroup-scheduling/) cycle to make a single,\natomic scheduling decision. The `GangScheduling` plugin implements a `PlacementFeasible` extension point that is invoked for each\nevaluated Pod during the cycle. This is used to determine whether the `minCount` constraint is satisfied\nby comparing the number of successfully placed Pods (including those already scheduled in previous cycles) against the `minCount` value.\n\n3. If the scheduler finds valid placements for at least the `minCount` number of Pods,\nit allows those successfully placed Pods to be bound to their assigned nodes.\nIf it cannot find enough placements to satisfy the `minCount` requirement, none of the Pods are scheduled.\nInstead, they are moved to the unschedulable queue to wait for cluster resources to free up,\nallowing other workloads to be scheduled in the meantime.\n\n## Hierarchical gang scheduling with CompositePodGroups\n\nWhen the [`CompositePodGroup`](/docs/reference/command-line-tools-reference/feature-gates/#CompositePodGroup)\nfeature gate and the `scheduling.k8s.io/v1alpha3` API group\nare enabled, gang scheduling extends its support to `CompositePodGroups`.\n\nContrary to `PodGroups` that group Pods, `CompositePodGroups` group child groups together - either\n`PodGroups` or other `CompositePodGroups`. `CompositePodGroup` specifies a scheduling policy that\napplies to its child groups during scheduling:\n\n* `gang` policy with a `minGroupCount` field, specifying the minimum number of child groups (either\n`CompositePodGroup` or `PodGroup` objects) that must be scheduled together as a single unit\natomically.\n* `basic` policy which indicates that child groups can be scheduled independently.\n\n`gang` policy is useful for multi-component workloads that require all-or-nothing scheduling across\nmultiple child groups, ensuring that a minimum number of child groups are scheduled together. An\nexample workload with such needs is replicated AI training.\n\n`basic` policy can be used for workloads that comprise multiple groups of Pods each of which can be\nscheduled as an independent gang, e.g. for AI inference workloads.\n\n### Hierarchical quorum\n\nThe `GangScheduling` plugin holds the root `CompositePodGroup` from entering the active scheduling\nqueue in the `PreEnqueue` phase until it satisfies the **hierarchical quorum**. This quorum is\nevaluated bottom-up, from leaf `PodGroup` objects up to the root `CompositePodGroup`:\n\n- A leaf `PodGroup` **satisfies quorum** if and only if the `PodGroup` object exists and can\npotentially meet its scheduling policy criteria:\n- For a `gang` policy: at least `minCount` of its constituent Pods have been created.\n- For a `basic` policy: at least one of its constituent Pods has been created.\n- A `CompositePodGroup` **satisfies quorum** if and only if the `CompositePodGroup` object exists\nand can potentially meet its scheduling policy criteria:\n- For a `gang` policy: at least `minGroupCount` of its direct child groups satisfy quorum.\n- For a `basic` policy: at least one of its direct child groups satisfies quorum.\n- The overall **hierarchical quorum** is satisfied if and only if the root `CompositePodGroup`\Line truncated
{"text": "*Topology-Aware Scheduling* (TAS) is a [placement scheduling algorithm](/docs/concepts/scheduling-eviction/podgroup-scheduling/#placement-scheduling-algorithm)\nthat allows finding the optimal placement for the considered PodGroup, guaranteeing that all pods\nwill be collocated within the same topology domain. Users can adapt TAS to their specific\nneeds by changing TAS plugins configuration.\n\n## Scheduling framework: TAS plugins configuration\n\nThe scheduler includes new and extended in-tree plugins that implement the TAS extension points:\n\n* `TopologyPlacement`: Implements the `PlacementGeneratePlugin` interface. It generates candidate\nplacements by grouping nodes based on the distinct values of the requested topology `key` (defined\nin the PodGroup).\n\n* `NodeResourcesFit`: Extended to implement the `PlacementScorePlugin` interface. Following\nsimilar logic to standard pod bin-packing, it scores placements based on the allocation ratio\nacross all nodes within the placement. It uses the `MostAllocated` strategy to maximize resource\nutilization within a placement, and it inherits resource weights from the standard pod-by-pod\nplugin settings.\n\n* `PodGroupPodsCount`: Implements the `PlacementScorePlugin` interface. It scores candidate\nplacements based on the total number of pods in the PodGroup that you can successfully schedule.\n\n### Customizing plugin weights and bin-packing resource weights\n\nBy default, the `NodeResourcesFit` and `PodGroupPodsCount` plugins are configured with equal\nweights (both default to 1) to maintain a good balance between bin-packing logic and scheduling as\nmany pods as possible.\n\nYou can adjust these weights, or the resource weights in the bin-packing strategy in your\nKubeSchedulerConfiguration. Here is an example snippet showing how to change the weights for both\nplugins, and how to override the `NodeResourcesFit` resource weights. The latter change will apply\nboth to pod-by-pod and placement scoring algorithms:\n\n```yaml\napiVersion: kubescheduler.config.k8s.io/v1\nkind: KubeSchedulerConfiguration\nprofiles:\n- schedulerName: default-scheduler\nplugins:\nplacementScore:\nenabled:\n# 1) Change the default weights of the placement score plugins\n- name: NodeResourcesFit\nweight: 2\n- name: PodGroupPodsCount\nweight: 5\npluginConfig:\n- name: NodeResourcesFit\nargs:\n# 2) Changing the scoring resource weights for both pod-by-pod and placement scoring\n# algorithms\nscoringStrategy:\n# The type will only be considered in pod-by-pod scheduling. Placement scoring always\n# uses MostAllocated strategy\ntype: LeastAllocated\n# Resource weights will be used in both pod-by-pod and placement scoring algorithms\nresources:\n- name: cpu\nweight: 2\n- name: memory\nweight: 3\n```\n\n## Multi-level topology placements\n\nWhen the [`CompositePodGroup`](/docs/reference/command-line-tools-reference/feature-gates/#CompositePodGroup)\nfeature gate and the `scheduling.k8s.io/v1alpha3` API group\nare enabled, the Topology-Aware Scheduling plugins extend their support to multi-level\n`CompositePodGroup` hierarchies. These plugins are called for `CompositePodGroups` during\n[hierarchical scheduling](/docs/concepts/scheduling-eviction/podgroup-scheduling).\n\n### Candidate placement generation\n\nFor workloads defined with a `CompositePodGroup` hierarchy, the `TopologyPlacement` plugin generates\ncandidate placements top-down across the group hierarchy by successive subdivision:\n\n* For a root `CompositePodGroup`, `TopologyPlacement` generates candidate placements across all\navailable cluster nodes by grouping nodes based on the distinct values of the requested topology\n`key`.\n* For a child `CompositePodGroup` or leaf `PodGroup`, `TopologyPlacement` generates candidate\nplacements confined in the placement assumed by the parent group. It subdivides the set of nodes\nfrom the parent group's placement by grouping those nodes based on the child group's requested\ntopology `key`.\n\nIf a topology constraint is not specified, the `TopologyPlacement` plugin generates a single\ncandidate placement equivalent to the parent placement.\n\nSimilarly, if the root group does not specify any topology constraint, the plugin generates a single\ncandidate placement corresponding to all available nodes in the cluster. This is also true for\nsingle-level workloads using the `PodGroup` API where no topology constraint is specified.\n\n### Placement scoring\n\nWhen scoring a candidate placement for a `CompositePodGroup`, the scoring plugins apply similar\nlogic to the single-level `PodGroup` case:\n\n* `PodGroupPodsCount`: Scores candidate placements based on the total number of Pods (both\nalready scheduled and newly assumed) across all descendant leaf `PodGroups` of that\n`CompositePodGroup`. Candidate placements capable of accommodating a higher total number of Pods\nacross the subhierarchy receive higher scores.\n* `NodeResourcesFit`: Aggregates the resource requests of all proposeLine truncated
{"text": "Kubernetes creates DNS records for Services and Pods. You can contact\nServices with consistent DNS names instead of IP addresses.\n\nKubernetes publishes information about Pods and Services which is used\nto program DNS. kubelet configures Pods' DNS so that running containers\ncan look up Services by name rather than IP.\n\nServices defined in the cluster are assigned DNS names. By default, a\nclient Pod's DNS search list includes the Pod's own namespace and the\ncluster's default domain.\n\n### Namespaces of Services\n\nA DNS query may return different results based on the namespace of the Pod making\nit. DNS queries that don't specify a namespace are limited to the Pod's\nnamespace. Access Services in other namespaces by specifying it in the DNS query.\n\nFor example, consider a Pod in a `test` namespace. A `data` Service is in\nthe `prod` namespace.\n\nA query for `data` returns no results, because it uses the Pod's `test` namespace.\n\nA query for `data.prod` returns the intended result, because it specifies the\nnamespace.\n\nDNS queries may be expanded using the Pod's `/etc/resolv.conf`. kubelet\nconfigures this file for each Pod. For example, a query for just `data` may be\nexpanded to `data.test.svc.cluster.local`. The values of the `search` option\nare used to expand queries. To learn more about DNS queries, see\n[the `resolv.conf` manual page](https://www.man7.org/linux/man-pages/man5/resolv.conf.5.html).\n\n```\nnameserver 10.32.0.10\nsearch .svc.cluster.local svc.cluster.local cluster.local\noptions ndots:5\n```\n\nIn summary, a Pod in the _test_ namespace can successfully resolve either\n`data.prod` or `data.prod.svc.cluster.local`.\n\n### DNS Records\n\nWhat objects get DNS records?\n\n1. Services\n1. Pods\n\nThe following sections detail the supported DNS record types and layout that is\nsupported. Any other layout or names or queries that happen to work are\nconsidered implementation details and are subject to change without warning.\nFor more up-to-date specification, see\n[Kubernetes DNS-Based Service Discovery](https://github.com/kubernetes/dns/blob/master/docs/specification.md).\n\n## Services\n\n### A/AAAA records\n\n\"Normal\" (not headless) Services are assigned DNS A and/or AAAA records,\ndepending on the IP family or families of the Service, with a name of the form\n`my-svc.my-namespace.svc.cluster-domain.example`. This resolves to the cluster IP\nof the Service.\n\n[Headless Services](/docs/concepts/services-networking/service/#headless-services)\n(without a cluster IP) are also assigned DNS A and/or AAAA records,\nwith a name of the form `my-svc.my-namespace.svc.cluster-domain.example`. Unlike normal\nServices, this resolves to the set of IPs of all of the Pods selected by the Service.\nClients are expected to consume the set or else use standard round-robin\nselection from the set.\n\n### SRV records\n\nSRV Records are created for named ports that are part of normal or headless\nservices.\n\n- For each named port, the SRV record has the form\n`_port-name._port-protocol.my-svc.my-namespace.svc.cluster-domain.example`.\n- For a regular Service, this resolves to the port number and the domain name:\n`my-svc.my-namespace.svc.cluster-domain.example`.\n- For a headless Service, this resolves to multiple answers, one for each Pod\nthat is backing the Service, and contains the port number and the domain name of the Pod\nof the form `hostname.my-svc.my-namespace.svc.cluster-domain.example`.\n\n## Pods\n\n### A/AAAA records\n\nKube-DNS versions, prior to the implementation of the\n[DNS specification](https://github.com/kubernetes/dns/blob/master/docs/specification.md),\nhad the following DNS resolution:\n\n```\n. .pod.\n```\n\nFor example, if a Pod in the `default` namespace has the IP address 172.17.0.3,\nand the domain name for your cluster is `cluster.local`, then the Pod has a DNS name:\n\n```\n172-17-0-3.default.pod.cluster.local\n```\n\nSome cluster DNS mechanisms, like [CoreDNS](https://coredns.io/), also provide `A` records for:\n\n```\n. . .svc.\n```\n\nFor example, if a Pod in the `cafe` namespace has the IP address 172.17.0.3,\nis an endpoint of a Service named `barista`, and the domain name for your cluster is\n`cluster.local`, then the Pod would have this service-scoped DNS `A` record.\n\n```\n172-17-0-3.barista.cafe.svc.cluster.local\n```\n\n### Pod's hostname and subdomain fields {#pod-hostname-and-subdomain-field}\n\nCurrently when a Pod is created, its hostname (as observed from within the Pod)\nis the Pod's `metadata.name` value.\n\nThe Pod spec has an optional `hostname` field, which can be used to specify a\ndifferent hostname. When specified, it takes precedence over the Pod's name to be\nthe hostname of the Pod (again, as observed from within the Pod). For example,\ngiven a Pod with `spec.hostname` set to `\"my-host\"`, the Pod will have its\nhostname set to `\"my-host\"`.\n\nThe Pod spec also has an optional `subdomain` field which can be used to indicateLine truncated
{"text": "IPv4/IPv6 dual-stack networking enables the allocation of both IPv4 and IPv6 addresses to\nPods and Services.\n\nIPv4/IPv6 dual-stack networking is enabled by default for your Kubernetes cluster starting in\n1.21, allowing the simultaneous assignment of both IPv4 and IPv6 addresses.\n\n## Supported Features\n\nIPv4/IPv6 dual-stack on your Kubernetes cluster provides the following features:\n\n* Dual-stack Pod networking (a single IPv4 and IPv6 address assignment per Pod)\n* IPv4 and IPv6 enabled Services\n* Pod off-cluster egress routing (eg. the Internet) via both IPv4 and IPv6 interfaces\n\n## Prerequisites\n\nThe following prerequisites are needed in order to utilize IPv4/IPv6 dual-stack Kubernetes clusters:\n\n* Kubernetes 1.20 or later\n\nFor information about using dual-stack services with earlier\nKubernetes versions, refer to the documentation for that version\nof Kubernetes.\n\n* Provider support for dual-stack networking (Cloud provider or otherwise must be able to provide\nKubernetes nodes with routable IPv4/IPv6 network interfaces)\n* A [network plugin](/docs/concepts/extend-kubernetes/compute-storage-net/network-plugins/) that\nsupports dual-stack networking.\n\n## Configure IPv4/IPv6 dual-stack\n\nTo configure IPv4/IPv6 dual-stack, set dual-stack cluster network assignments:\n\n* kube-apiserver:\n* `--service-cluster-ip-range= , `\n* kube-controller-manager:\n* `--cluster-cidr= , `\n* `--service-cluster-ip-range= , `\n* `--node-cidr-mask-size-ipv4|--node-cidr-mask-size-ipv6` defaults to /24 for IPv4 and /64 for IPv6\n* kube-proxy:\n* `--cluster-cidr= , `\n* kubelet:\n* `--node-ip= , `\n* This option is required for bare metal dual-stack nodes (nodes that do not define a\ncloud provider with the `--cloud-provider` flag). If you are using a cloud provider\nand choose to override the node IPs chosen by the cloud provider, set the\n`--node-ip` option.\n* (The legacy built-in cloud providers do not support dual-stack `--node-ip`.)\n\nAn example of an IPv4 CIDR: `10.244.0.0/16` (though you would supply your own address range)\n\nAn example of an IPv6 CIDR: `fdXY:IJKL:MNOP:15::/64` (this shows the format but is not a valid\naddress - see [RFC 4193](https://tools.ietf.org/html/rfc4193))\n\n## Services\n\nYou can create Services which can use IPv4, IPv6, or both.\n\nThe address family of a Service defaults to the address family of the first service cluster IP\nrange (configured via the `--service-cluster-ip-range` flag to the kube-apiserver).\n\nWhen you define a Service you can optionally configure it as dual stack. To specify the behavior you want, you\nset the `.spec.ipFamilyPolicy` field to one of the following values:\n\n* `SingleStack`: Single-stack service. The control plane allocates a cluster IP for the Service,\nusing the first configured service cluster IP range.\n* `PreferDualStack`: Allocates both IPv4 and IPv6 cluster IPs for the Service when dual-stack is enabled. If dual-stack is not enabled or supported, it falls back to single-stack behavior.\n* `RequireDualStack`: Allocates Service `.spec.clusterIPs` from both IPv4 and IPv6 address ranges when dual-stack is enabled. If dual-stack is not enabled or supported, the Service API object creation fails.\n* Selects the `.spec.clusterIP` from the list of `.spec.clusterIPs` based on the address family\nof the first element in the `.spec.ipFamilies` array.\n\nIf you would like to define which IP family to use for single stack or define the order of IP\nfamilies for dual-stack, you can choose the address families by setting an optional field,\n`.spec.ipFamilies`, on the Service.\n\nThe `.spec.ipFamilies` field is conditionally mutable: you can add or remove a secondary\nIP address family, but you cannot change the primary IP address family of an existing Service.\n\nYou can set `.spec.ipFamilies` to any of the following array values:\n\n- `[\"IPv4\"]`\n- `[\"IPv6\"]`\n- `[\"IPv4\",\"IPv6\"]` (dual stack)\n- `[\"IPv6\",\"IPv4\"]` (dual stack)\n\nThe first family you list is used for the legacy `.spec.clusterIP` field.\n\n### Dual-stack Service configuration scenarios\n\nThese examples demonstrate the behavior of various dual-stack Service configuration scenarios.\n\n#### Dual-stack options on new Services\n\n1. This Service specification does not explicitly define `.spec.ipFamilyPolicy`. When you create\nthis Service, Kubernetes assigns a cluster IP for the Service from the first configured\n`service-cluster-ip-range` and sets the `.spec.ipFamilyPolicy` to `SingleStack`. ([Services\nwithout selectors](/docs/concepts/services-networking/service/#services-without-selectors) and\n[headless Services](/docs/concepts/services-networking/service/#headless-services) with selectors\nwill behave in this same way.)\n\n1. This Service specification explicitly defines `PreferDualStack` in `.spec.ipFamilyPolicy`. When\nyou create this Service on a dual-stack cluster, Kubernetes assigns both IPv4 and IPv6\naddresses for the service. The control planeLine truncated
{"text": "Nodes have local ephemeral storage, backed by\nlocally-attached writeable devices or, sometimes, by RAM.\n\"Ephemeral\" means that there is no long-term guarantee about durability.\n\nPods use ephemeral local storage for scratch space, caching, and for logs.\nThe kubelet can provide scratch space to Pods using local ephemeral storage to\nmount [`emptyDir`](/docs/reference/storage/volume-types/#emptydir)\nvolumes into containers.\n\nThe kubelet also uses this kind of storage to hold\n[node-level container logs](/docs/concepts/cluster-administration/logging/#logging-at-the-node-level),\ncontainer images, and the writable layers of running containers.\n\nIf a node fails, the data in its ephemeral storage can be lost.\nYour applications cannot expect any performance SLAs (disk IOPS for example)\nfrom local ephemeral storage.\n\nTo make the resource quota work on ephemeral-storage, two things need to be done:\n\n* An admin sets the resource quota for ephemeral-storage in a namespace.\n* A user needs to specify limits for the ephemeral-storage resource in the Pod spec.\n\nIf the user doesn't specify the ephemeral-storage resource limit in the Pod spec,\nthe resource quota is not enforced on ephemeral-storage.\n\nKubernetes lets you track, reserve and limit the amount\nof ephemeral local storage a Pod can consume.\n\n## Configurations for local ephemeral storage {#configurations}\n\nKubernetes supports the following ways to configure local ephemeral storage on a\nnode:\n\nIn this configuration, you place all different kinds of ephemeral local data\n(`emptyDir` volumes, writeable layers, container images, logs) into one filesystem.\n\nThe kubelet also writes\n[node-level container logs](/docs/concepts/cluster-administration/logging/#logging-at-the-node-level)\nand treats these similarly to ephemeral local storage.\n\nThe kubelet writes logs to files inside its configured log directory (`/var/log`\nby default); and has a base directory for other locally stored data\n(`/var/lib/kubelet` by default).\n\nTypically, both `/var/lib/kubelet` and `/var/log` are on the system root filesystem,\nand the kubelet is designed with that layout in mind.\n\nYour node can have as many other filesystems, not used for Kubernetes,\nas you like.\n\nYou use one filesystem on the node for ephemeral data from running Pods, such as\nlogs and `emptyDir` volumes. You can also use this filesystem for other data,\nsuch as system logs that are not related to Kubernetes; it can even be the root\nfilesystem.\n\nThe kubelet also writes\n[node-level container logs](/docs/concepts/cluster-administration/logging/#logging-at-the-node-level)\ninto the first filesystem, and treats these similarly to ephemeral local storage.\n\nYou also use a separate filesystem, backed by a different logical storage device.\nIn this configuration, the container runtime stores both container image layers\nand writeable layers on this second filesystem. Configure this storage location\nin your container runtime, not in the kubelet.\n\nThe first filesystem does not hold any image layers or writeable layers.\n\nYour node can have as many other filesystems, not used for Kubernetes,\nas you like.\n\nIn this configuration, container image layers are on a separate filesystem, and\ncontainer writeable layers are on the same filesystem as the kubelet's ephemeral\ndata, such as logs and `emptyDir` volumes.\n\nThis layout requires support for the `containerfs` eviction signals. For details\nabout the feature gate and the container runtimes that support this layout, see\n[node-pressure eviction](/docs/concepts/scheduling-eviction/node-pressure-eviction/#filesystem-signals).\n\nThe [node-pressure eviction](/docs/concepts/scheduling-eviction/node-pressure-eviction/#filesystem-signals)\npage refers to these observed filesystems as `nodefs`, `imagefs`, and\n`containerfs`. Those names do not always mean separate mount points.\n\nThe kubelet can measure local storage use when you set up the node using one of\nthe supported configurations for local ephemeral storage.\n\nIf you have a different configuration, then the kubelet does not apply resource\nlimits for ephemeral local storage.\n\nThe kubelet tracks `tmpfs` emptyDir volumes as container memory use, rather\nthan as local ephemeral storage.\n\nThe kubelet can only track ephemeral storage on the filesystems it observes\nthrough the supported layouts. If you mount extra filesystems under paths such as\n`/var/lib/kubelet`, `/var/log`, or the container runtime storage directory\noutside those layouts, the kubelet might not report ephemeral storage correctly.\n\n## Setting requests and limits for local ephemeral storage {#requests-limits}\n\nYou can specify `ephemeral-storage` for managing local ephemeral storage. Each\ncontainer of a Pod can specify either or both of the following:\n\n* `spec.containers[].resources.limits.ephemeral-storage`\n* `spec.containers[].resources.requests.ephemeral-storage`\n\nLimits and requests for `eLine truncated
{"text": "This document describes _ephemeral volumes_ in Kubernetes. Familiarity\nwith [volumes](/docs/concepts/storage/volumes/) is suggested, in\nparticular PersistentVolumeClaim and PersistentVolume.\n\nSome applications need additional storage but don't care whether that\ndata is stored persistently across restarts. For example, caching\nservices are often limited by memory size and can move infrequently\nused data into storage that is slower than memory with little impact\non overall performance.\n\nOther applications expect some read-only input data to be present in\nfiles, like configuration data or secret keys.\n\n_Ephemeral volumes_ are designed for these use cases. Because volumes\nfollow the Pod's lifetime and get created and deleted along with the\nPod, Pods can be stopped and restarted without being limited to where\nsome persistent volume is available.\n\nEphemeral volumes are specified _inline_ in the Pod spec, which\nsimplifies application deployment and management.\n\n### Types of ephemeral volumes\n\nKubernetes supports several different kinds of ephemeral volumes for\ndifferent purposes:\n- [emptyDir](/docs/reference/storage/volume-types/#emptydir): empty at Pod startup,\nwith storage coming locally from the kubelet base directory (usually\nthe root disk) or RAM\n- [configMap](/docs/reference/storage/volume-types/#configmap),\n[downwardAPI](/docs/reference/storage/volume-types/#downwardapi),\n[secret](/docs/reference/storage/volume-types/#secret): inject different\nkinds of Kubernetes data into a Pod\n- [image](/docs/reference/storage/volume-types/#image): allows mounting container image files or artifacts,\ndirectly to a Pod.\n- [CSI ephemeral volumes](#csi-ephemeral-volumes):\nsimilar to the previous volume kinds, but provided by special CSI drivers\nwhich specifically [support this feature](https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html)\n- [generic ephemeral volumes](#generic-ephemeral-volumes), which\ncan be provided by all storage drivers that also support persistent volumes\n\n`emptyDir`, `configMap`, `downwardAPI`, `secret` are provided as\n[local ephemeral storage](/docs/concepts/storage/ephemeral-storage/).\nThey are managed by kubelet on each node.\n\nCSI ephemeral volumes *must* be provided by third-party CSI storage\ndrivers.\n\nGeneric ephemeral volumes *can* be provided by third-party CSI storage\ndrivers, but also by any other storage driver that supports dynamic\nprovisioning. Some CSI drivers are written specifically for CSI\nephemeral volumes and do not support dynamic provisioning: those then\ncannot be used for generic ephemeral volumes.\n\nThe advantage of using third-party drivers is that they can offer\nfunctionality that Kubernetes itself does not support, for example\nstorage with different performance characteristics than the disk that\nis managed by kubelet, or injecting different data.\n\n### CSI ephemeral volumes\n\nCSI ephemeral volumes are only supported by a subset of CSI drivers.\nThe Kubernetes CSI [Drivers list](https://kubernetes-csi.github.io/docs/drivers.html)\nshows which drivers support ephemeral volumes.\n\nConceptually, CSI ephemeral volumes are similar to `configMap`,\n`downwardAPI` and `secret` volume types: the storage is managed locally on each\nnode and is created together with other local resources after a Pod has been\nscheduled onto a node. Kubernetes has no concept of rescheduling Pods\nanymore at this stage. Volume creation has to be unlikely to fail,\notherwise Pod startup gets stuck. In particular, [storage capacity\naware Pod scheduling](/docs/concepts/storage/storage-capacity/) is *not*\nsupported for these volumes. They are currently also not covered by\nthe storage resource usage limits of a Pod, because that is something\nthat kubelet can only enforce for storage that it manages itself.\n\nHere's an example manifest for a Pod that uses CSI ephemeral storage:\n\n```yaml\nkind: Pod\napiVersion: v1\nmetadata:\nname: my-csi-app\nspec:\ncontainers:\n- name: my-frontend\nimage: busybox:1.28\nvolumeMounts:\n- mountPath: \"/data\"\nname: my-csi-inline-vol\ncommand: [ \"sleep\", \"1000000\" ]\nvolumes:\n- name: my-csi-inline-vol\ncsi:\ndriver: inline.storage.kubernetes.io\nvolumeAttributes:\nfoo: bar\n```\n\nThe `volumeAttributes` determine what volume is prepared by the\ndriver. These attributes are specific to each driver and not\nstandardized. See the documentation of each CSI driver for further\ninstructions.\n\n### CSI driver restrictions\n\nCSI ephemeral volumes allow users to provide `volumeAttributes`\ndirectly to the CSI driver as part of the Pod spec. A CSI driver\nallowing `volumeAttributes` that are typically restricted to\nadministrators is NOT suitable for use in an inline ephemeral volume.\nFor example, parameters that are normally defined in the StorageClass\nshould not be exposed to users through the use of inline ephemeral volumes.\n\nCluster administrators who need to restrict the CSI drivers that aLine truncated
{"text": "This document describes _projected volumes_ in Kubernetes. Familiarity with [volumes](/docs/concepts/storage/volumes/) is suggested.\n\n## Introduction\n\nA `projected` volume maps several existing volume sources into the same directory.\n\nCurrently, the following types of volume sources can be projected:\n\n* [`secret`](/docs/reference/storage/volume-types/#secret)\n* [`downwardAPI`](/docs/reference/storage/volume-types/#downwardapi)\n* [`configMap`](/docs/reference/storage/volume-types/#configmap)\n* [`serviceAccountToken`](#serviceaccounttoken)\n* [`clusterTrustBundle`](#clustertrustbundle)\n* [`podCertificate`](#podcertificate)\n\nAll sources are required to be in the same namespace as the Pod. For more details,\nsee the [all-in-one volume](https://git.k8s.io/design-proposals-archive/node/all-in-one-volume.md) design document.\n\n### Example configuration with a secret, a downwardAPI, and a configMap {#example-configuration-secret-downwardapi-configmap}\n\n### Example configuration: secrets with a non-default permission mode set {#example-configuration-secrets-nondefault-permission-mode}\n\nEach projected volume source is listed in the spec under `sources`. The\nparameters are nearly the same with two exceptions:\n\n* For secrets, the `secretName` field has been changed to `name` to be consistent\nwith ConfigMap naming.\n* The `defaultMode` can only be specified at the projected level and not for each\nvolume source. However, as illustrated above, you can explicitly set the `mode`\nfor each individual projection.\n\n## serviceAccountToken projected volumes {#serviceaccounttoken}\nYou can inject the token for the current [service account](/docs/reference/access-authn-authz/authentication/#service-account-tokens)\ninto a Pod at a specified path. For example:\n\nThe example Pod has a projected volume containing the injected service account\ntoken. Containers in this Pod can use that token to access the Kubernetes API\nserver, authenticating with the identity of [the pod's ServiceAccount](/docs/tasks/configure-pod-container/configure-service-account/).\nThe `audience` field contains the intended audience of the\ntoken. A recipient of the token must identify itself with an identifier specified\nin the audience of the token, and otherwise should reject the token. This field\nis optional and it defaults to the identifier of the API server.\n\nThe `expirationSeconds` is the expected duration of validity of the service account\ntoken. It defaults to 1 hour and must be at least 10 minutes (600 seconds). An administrator\ncan also limit its maximum value by specifying the `--service-account-max-token-expiration`\noption for the API server. The `path` field specifies a relative path to the mount point\nof the projected volume.\n\nA container using a projected volume source as a [`subPath`](/docs/concepts/storage/volumes/#using-subpath)\nvolume mount will not receive updates for those volume sources.\n\n## clusterTrustBundle projected volumes {#clustertrustbundle}\n\nThe `clusterTrustBundle` projected volume source injects the contents of one or more\n[ClusterTrustBundle](/docs/reference/access-authn-authz/certificate-signing-requests#cluster-trust-bundles)\nobjects as an automatically-updating file in the container filesystem.\n\nClusterTrustBundles can be selected either by [name](/docs/reference/access-authn-authz/certificate-signing-requests#ctb-signer-unlinked)\nor by [signer name](/docs/reference/access-authn-authz/certificate-signing-requests#ctb-signer-linked).\n\nTo select by name, use the `name` field to designate a single ClusterTrustBundle object.\n\nTo select by signer name, use the `signerName` field (and optionally the\n`labelSelector` field) to designate a set of ClusterTrustBundle objects that use\nthe given signer name. If `labelSelector` is not present, then all\nClusterTrustBundles for that signer are selected.\n\nThe kubelet deduplicates the certificates in the selected ClusterTrustBundle objects,\nnormalizes the PEM representations (discarding comments and headers), reorders the certificates,\nand writes them into the file named by `path`.\nAs the set of selected ClusterTrustBundles or their content changes, kubelet keeps the file up-to-date.\n\nBy default, the kubelet will prevent the pod from starting if the named ClusterTrustBundle is not found,\nor if `signerName` / `labelSelector` do not match any ClusterTrustBundles.\nIf this behavior is not what you want, then set the `optional` field to `true`,\nand the pod will start up with an empty file at `path`.\n\n## podCertificate projected volumes {#podcertificate}\n\nThe `podCertificate` projected volumes source securely provisions a private key\nand X.509 certificate chain for pod to use as client or server credentials.\nKubelet will then handle refreshing the private key and certificate chain when\nthey get close to expiration. The application just has to make sure that it\nreloads the file promptly when it changes, with a mechaniLine truncated
{"text": "This page describes the maximum number of volumes that can be attached\nto a Node for various cloud providers.\n\nCloud providers like Google, Amazon, and Microsoft typically have a limit on\nhow many volumes can be attached to a Node. It is important for Kubernetes to\nrespect those limits. Otherwise, Pods scheduled on a Node could get stuck\nwaiting for volumes to attach.\n\n## Kubernetes default limits\n\nThe Kubernetes scheduler has default limits on the number of volumes\nthat can be attached to a Node:\n\nCloud service Maximum volumes per Node\nAmazon Elastic Block Store (EBS) 39\nGoogle Persistent Disk 16\nMicrosoft Azure Disk Storage 16\n\n## Dynamic volume limits\n\nDynamic volume limits are supported for following volume types.\n\n- Amazon EBS\n- Google Persistent Disk\n- Azure Disk\n- CSI\n\nFor volumes managed by in-tree volume plugins, Kubernetes automatically determines the Node\ntype and enforces the appropriate maximum number of volumes for the node. For example:\n\n* On\nGoogle Compute Engine ,\nup to 127 volumes can be attached to a node, [depending on the node\ntype](https://cloud.google.com/compute/docs/disks/#pdnumberlimits).\n\n* For Amazon EBS disks on M5,C5,R5,T3 and Z1D instance types, Kubernetes allows only 25\nvolumes to be attached to a Node. For other instance types on\nAmazon Elastic Compute Cloud (EC2) ,\nKubernetes allows 39 volumes to be attached to a Node.\n\n* On Azure, up to 64 disks can be attached to a node, depending on the node type. For more details, refer to [Sizes for virtual machines in Azure](https://docs.microsoft.com/en-us/azure/virtual-machines/windows/sizes).\n\n* If a CSI storage driver advertises a maximum number of volumes for a Node (using `NodeGetInfo`), the kube-scheduler honors that limit.\nRefer to the [CSI specifications](https://github.com/container-storage-interface/spec/blob/master/spec.md#nodegetinfo) for details.\n\n* For volumes managed by in-tree plugins that have been migrated to a CSI driver, the maximum number of volumes will be the one reported by the CSI driver.\n\n### Mutable CSI Node Allocatable Count\n\nCSI drivers can dynamically adjust the maximum number of volumes that can be attached to a Node at runtime. This enhances scheduling accuracy and reduces pod scheduling failures due to changes in resource availability.\n\nTo use this feature, you must enable the `MutableCSINodeAllocatableCount` feature gate on the following components:\n\n- `kube-apiserver`\n- `kubelet`\n\n#### Periodic Updates\n\nWhen enabled, CSI drivers can request periodic updates to their volume limits by setting the `nodeAllocatableUpdatePeriodSeconds` field in the `CSIDriver` specification. For example:\n\n```yaml\napiVersion: storage.k8s.io/v1\nkind: CSIDriver\nmetadata:\nname: hostpath.csi.k8s.io\nspec:\nnodeAllocatableUpdatePeriodSeconds: 60\n```\n\nKubelet will periodically call the corresponding CSI driver’s `NodeGetInfo` endpoint to refresh the maximum number of attachable volumes, using the interval specified in `nodeAllocatableUpdatePeriodSeconds`. The minimum allowed value for this field is 10 seconds.\n\nIf a volume attachment operation fails with a `ResourceExhausted` error (gRPC code 8), Kubernetes triggers an immediate update to the allocatable volume count for that Node. Additionally, kubelet marks affected pods as Failed, allowing their controllers to handle recreation. This prevents pods from getting stuck indefinitely in the `ContainerCreating` state.\n\n### Preventing Pod placement without CSI driver\n\nThe `VolumeLimitScaling`\n[feature gate](/docs/reference/command-line-tools-reference/feature-gates#VolumeLimitScaling)\nis enabled by default in Kubernetes v1.37.\n\nHowever, preventing pod placement on nodes without a CSI driver requires explicit opt-in\nvia the `spec.preventPodSchedulingIfMissing` field of the `CSIDriver` object.\n\nThe `preventPodSchedulingIfMissing` field defaults to `false` and must be set to `true`\nif you do not want pods to be scheduled on nodes without a CSI driver. This decision\nto default to `false` was made for backward compatibility reasons and compatibility\nwith [Cluster AutoScaler](https://github.com/kubernetes/autoscaler/tree/master/cluster-autoscaler)\nwhich may not be aware of CSI volume limits during the autoscaling\nphase (see section below).\n\n```yaml\napiVersion: storage.k8s.io/v1\nkind: CSIDriver\nmetadata:\nname: hostpath.csi.k8s.io\nspec:\npreventPodSchedulingIfMissing: true\n```\n\n### CSI volume attach limits and cluster autoscaler\n\n[Cluster autoscaler](https://github.com/kubernetes/autoscaler/tree/master/cluster-autoscaler) can account for CSI\nvolume limits when\n`--enable-csi-node-aware-scheduling=true`. This option is independent of the\n`VolumeLimitScaling` feature gate.\n\nIf you use cluster autoscaler, only set `spec.preventPodSchedulingIfMissing` to\n`true` when cluster autoscaler is configured with\n`--enable-csi-node-aware-scheduling=true`. Otherwise, its scheduling simulatiLine truncated
{"text": "Whether your workload is a single component or several that work together, on Kubernetes you run\nit inside a set of [_pods_](/docs/concepts/workloads/pods).\nIn Kubernetes, a Pod represents a set of one or more running\ncontainers on your cluster.\n\nKubernetes pods have a [defined lifecycle](/docs/concepts/workloads/pods/pod-lifecycle/).\nFor example, once a pod is running in your cluster then a critical fault on the\nnode where that pod is running means that\nall the pods on that node fail. Kubernetes treats that level of failure as final: you\nwould need to create a new Pod to recover, even if the node later becomes healthy.\n\nHowever, to make life considerably easier, you don't need to manage each Pod directly.\nInstead, you can use _workload resources_ that manage a set of pods on your behalf.\nThese resources configure controllers\nthat make sure the right number of the right kind of pod are running, to match the state\nyou specified.\n\nKubernetes provides several built-in workload resources:\n\n* [Deployment](/docs/concepts/workloads/controllers/deployment/) and [ReplicaSet](/docs/concepts/workloads/controllers/replicaset/)\n(replacing the legacy resource\nReplicationController).\nDeployment is a good fit for managing a stateless application workload on your cluster,\nwhere any Pod in the Deployment is interchangeable and can be replaced if needed.\n* [StatefulSet](/docs/concepts/workloads/controllers/statefulset/) lets you\nrun one or more related Pods that do track state somehow. For example, if your workload\nrecords data persistently, you can run a StatefulSet that matches each Pod with a\n[PersistentVolume](/docs/concepts/storage/persistent-volumes/). Your code, running in the\nPods for that StatefulSet, can replicate data to other Pods in the same StatefulSet\nto improve overall resilience.\n* [DaemonSet](/docs/concepts/workloads/controllers/daemonset/) defines Pods that provide\nfacilities that are local to nodes.\nEvery time you add a node to your cluster that matches the specification in a DaemonSet,\nthe control plane schedules a Pod for that DaemonSet onto the new node.\nEach pod in a DaemonSet performs a job similar to a system daemon on a classic Unix / POSIX\nserver. A DaemonSet might be fundamental to the operation of your cluster, such as\na plugin to run [cluster networking](/docs/concepts/cluster-administration/networking/#how-to-implement-the-kubernetes-network-model),\nit might help you to manage the node,\nor it could provide optional behavior that enhances the container platform you are running.\n* [Job](/docs/concepts/workloads/controllers/job/) and\n[CronJob](/docs/concepts/workloads/controllers/cron-jobs/) provide different ways to\ndefine tasks that run to completion and then stop.\nYou can use a [Job](/docs/concepts/workloads/controllers/job/) to\ndefine a task that runs to completion, just once. You can use a\n[CronJob](/docs/concepts/workloads/controllers/cron-jobs/) to run\nthe same Job multiple times according a schedule.\n\nIn the wider Kubernetes ecosystem, you can find third-party workload resources that provide\nadditional behaviors. Using a\n[custom resource definition](/docs/concepts/extend-kubernetes/api-extension/custom-resources/),\nyou can add in a third-party workload resource if you want a specific behavior that's not part\nof Kubernetes' core. For example, if you wanted to run a group of Pods for your application but\nstop work unless _all_ the Pods are available (perhaps for some high-throughput distributed task),\nthen you can implement or install an extension that does provide that feature.\n\n## Workload placement\n\nWhile standard workload resources (like Deployments and Jobs) manage the lifecycle of Pods,\nyou may have complex scheduling requirements where groups of Pods must be treated as a single unit.\n\nThe [Workload API](/docs/concepts/workloads/workload-api/) allows you to define `PodGroupTemplates` to group Pods and apply advanced scheduling policies to them,\nsuch as [gang scheduling](/docs/concepts/scheduling-eviction/gang-scheduling/).\nControllers create [PodGroup](/docs/concepts/workloads/podgroup-api/) objects from these templates at runtime,\nand `Pods` reference their `PodGroup` via the\n`spec.schedulingGroup` field. This is particularly useful for batch processing and machine\nlearning workloads where \"all-or-nothing\" placement is required.\n\n##\n\nAs well as reading about each API kind for workload management, you can read how to\ndo specific tasks:\n\n* [Run a stateless application using a Deployment](/docs/tasks/run-application/run-stateless-application-deployment/)\n* Run a stateful application either as a [single instance](/docs/tasks/run-application/run-single-instance-stateful-application/)\nor as a [replicated set](/docs/tasks/run-application/run-replicated-stateful-application/)\n* [Run automated tasks with a CronJob](/docs/tasks/job/automated-tasks-with-cron-jobs/)\n\nTo learn about Kubernetes' mechanisms forLine truncated
{"text": "A Job creates one or more Pods and will continue to retry execution of the Pods until a specified number of them successfully terminate.\nAs pods successfully complete, the Job tracks the successful completions. When a specified number\nof successful completions is reached, the task (ie, Job) is complete. Deleting a Job will clean up\nthe Pods it created. Suspending a Job will delete its active Pods until the Job\nis resumed again.\n\nA simple case is to create one Job object in order to reliably run one Pod to completion.\nThe Job object will start a new Pod if the first Pod fails or is deleted (for example\ndue to a node hardware failure or a node reboot).\n\nYou can also use a Job to run multiple Pods in parallel.\n\nIf you want to run a Job (either a single task, or several in parallel) on a schedule,\nsee [CronJob](/docs/concepts/workloads/controllers/cron-jobs/).\n\n## Running an example Job\n\nHere is an example Job config. It computes π to 2000 places and prints it out.\nIt takes around 10s to complete.\n\nYou can run the example with this command:\n\n```shell\nkubectl apply -f https://kubernetes.io/examples/controllers/job.yaml\n```\n\nThe output is similar to this:\n\n```\njob.batch/pi created\n```\n\nCheck on the status of the Job with `kubectl`:\n\nName: pi\nNamespace: default\nSelector: batch.kubernetes.io/controller-uid=c9948307-e56d-4b5d-8302-ae2d7b7da67c\nLabels: batch.kubernetes.io/controller-uid=c9948307-e56d-4b5d-8302-ae2d7b7da67c\nbatch.kubernetes.io/job-name=pi\n...\nAnnotations: batch.kubernetes.io/job-tracking: \"\"\nParallelism: 1\nCompletions: 1\nStart Time: Mon, 02 Dec 2019 15:20:11 +0200\nCompleted At: Mon, 02 Dec 2019 15:21:16 +0200\nDuration: 65s\nPods Statuses: 0 Running / 1 Succeeded / 0 Failed\nPod Template:\nLabels: batch.kubernetes.io/controller-uid=c9948307-e56d-4b5d-8302-ae2d7b7da67c\nbatch.kubernetes.io/job-name=pi\nContainers:\npi:\nImage: perl:5.34.0\nPort:\nHost Port:\nCommand:\nperl\n-Mbignum=bpi\n-wle\nprint bpi(2000)\nEnvironment:\nMounts:\nVolumes:\nEvents:\nType Reason Age From Message\n---- ------ ---- ---- -------\nNormal SuccessfulCreate 21s job-controller Created pod: pi-xf9p4\nNormal Completed 18s job-controller Job completed\n\napiVersion: batch/v1\nkind: Job\nmetadata:\nannotations: batch.kubernetes.io/job-tracking: \"\"\n...\ncreationTimestamp: \"2022-11-10T17:53:53Z\"\ngeneration: 1\nlabels:\nbatch.kubernetes.io/controller-uid: 863452e6-270d-420e-9b94-53a54146c223\nbatch.kubernetes.io/job-name: pi\nname: pi\nnamespace: default\nresourceVersion: \"4751\"\nuid: 204fb678-040b-497f-9266-35ffa8716d14\nspec:\nbackoffLimit: 4\ncompletionMode: NonIndexed\ncompletions: 1\nparallelism: 1\nselector:\nmatchLabels:\nbatch.kubernetes.io/controller-uid: 863452e6-270d-420e-9b94-53a54146c223\nsuspend: false\ntemplate:\nmetadata:\ncreationTimestamp: null\nlabels:\nbatch.kubernetes.io/controller-uid: 863452e6-270d-420e-9b94-53a54146c223\nbatch.kubernetes.io/job-name: pi\nspec:\ncontainers:\n- command:\n- perl\n- -Mbignum=bpi\n- -wle\n- print bpi(2000)\nimage: perl:5.34.0\nimagePullPolicy: IfNotPresent\nname: pi\nresources: {}\nterminationMessagePath: /dev/termination-log\nterminationMessagePolicy: File\ndnsPolicy: ClusterFirst\nrestartPolicy: Never\nschedulerName: default-scheduler\nsecurityContext: {}\nterminationGracePeriodSeconds: 30\nstatus:\nactive: 1\nready: 0\nstartTime: \"2022-11-10T17:53:57Z\"\nuncountedTerminatedPods: {}\n\nTo view completed Pods of a Job, use `kubectl get pods`.\n\nTo list all the Pods that belong to a Job in a machine readable form, you can use a command like this:\n\n```shell\npods=$(kubectl get pods --selector=batch.kubernetes.io/job-name=pi --output=jsonpath='{.items[*].metadata.name}')\necho $pods\n```\n\nThe output is similar to this:\n\n```\npi-5rwd7\n```\n\nHere, the selector is the same as the selector for the Job. The `--output=jsonpath` option specifies an expression\nwith the name from each Pod in the returned list.\n\nView the standard output of one of the pods:\n\n```shell\nkubectl logs $pods\n```\n\nAnother way to view the logs of a Job:\n\n```shell\nkubectl logs jobs/pi\n```\n\nThe output is similar to this:\n\n```\n3.14159265358979323846264338327950288419716939937510582097494459230781640628620899862803482534211706798214808651328230664709384460955058223172535940812848111745028410270193852110555964462294895493038196442881097566593344612847564823378678316527120190914564856692346034861045432664821339360726024914127372458700660631558817488152092096282925409171536436789259036001133053054882046652138414695194151160943305727036575959195309218611738193261179310511854807446237996274956735188575272489122793818301194912983367336244065664308602139494639522473719070217986094370277053921717629317675238467481846766940513200056812714526356082778577134275778960917363717872146844090122495343014654958537105079227968925892354201995611212902196086403441815981362977477130996051870721134999999837297804995105973173281609631859502445945534690Line truncated
{"text": "A [`Deployment`](/docs/concepts/workloads/controllers/deployment/) that configures a [`ReplicaSet`](/docs/concepts/workloads/controllers/replicaset/) is now the recommended way to set up replication.\n\nA _ReplicationController_ ensures that a specified number of pod replicas are running at any one\ntime. In other words, a ReplicationController makes sure that a pod or a homogeneous set of pods is\nalways up and available.\n\n## How a ReplicationController works\n\nIf there are too many pods, the ReplicationController terminates the extra pods. If there are too few, the\nReplicationController starts more pods. Unlike manually created pods, the pods maintained by a\nReplicationController are automatically replaced if they fail, are deleted, or are terminated.\nFor example, your pods are re-created on a node after disruptive maintenance such as a kernel upgrade.\nFor this reason, you should use a ReplicationController even if your application requires\nonly a single pod. A ReplicationController is similar to a process supervisor,\nbut instead of supervising individual processes on a single node, the ReplicationController supervises multiple pods\nacross multiple nodes.\n\nReplicationController is often abbreviated to \"rc\" in discussion, and as a shortcut in\nkubectl commands.\n\nA simple case is to create one ReplicationController object to reliably run one instance of\na Pod indefinitely. A more complex use case is to run several identical replicas of a replicated\nservice, such as web servers.\n\n## Running an example ReplicationController\n\nThis example ReplicationController config runs three copies of the nginx web server.\n\nRun the example job by downloading the example file and then running this command:\n\n```shell\nkubectl apply -f https://k8s.io/examples/controllers/replication.yaml\n```\n\nThe output is similar to this:\n\n```\nreplicationcontroller/nginx created\n```\n\nCheck on the status of the ReplicationController using this command:\n\n```shell\nkubectl describe replicationcontrollers/nginx\n```\n\nThe output is similar to this:\n\n```\nName: nginx\nNamespace: default\nSelector: app=nginx\nLabels: app=nginx\nAnnotations:\nReplicas: 3 current / 3 desired\nPods Status: 0 Running / 3 Waiting / 0 Succeeded / 0 Failed\nPod Template:\nLabels: app=nginx\nContainers:\nnginx:\nImage: nginx\nPort: 80/TCP\nEnvironment:\nMounts:\nVolumes:\nEvents:\nFirstSeen LastSeen Count From SubobjectPath Type Reason Message\n--------- -------- ----- ---- ------------- ---- ------ -------\n20s 20s 1 {replication-controller } Normal SuccessfulCreate Created pod: nginx-qrm3m\n20s 20s 1 {replication-controller } Normal SuccessfulCreate Created pod: nginx-3ntk0\n20s 20s 1 {replication-controller } Normal SuccessfulCreate Created pod: nginx-4ok8v\n```\n\nHere, three pods are created, but none is running yet, perhaps because the image is being pulled.\nA little later, the same command may show:\n\n```shell\nPods Status: 3 Running / 0 Waiting / 0 Succeeded / 0 Failed\n```\n\nTo list all the pods that belong to the ReplicationController in a machine readable form, you can use a command like this:\n\n```shell\npods=$(kubectl get pods --selector=app=nginx --output=jsonpath={.items..metadata.name})\necho $pods\n```\n\nThe output is similar to this:\n\n```\nnginx-3ntk0 nginx-4ok8v nginx-qrm3m\n```\n\nHere, the selector is the same as the selector for the ReplicationController (seen in the\n`kubectl describe` output), and in a different form in `replication.yaml`. The `--output=jsonpath` option\nspecifies an expression with the name from each pod in the returned list.\n\n## Writing a ReplicationController Manifest\n\nAs with all other Kubernetes config, a ReplicationController needs `apiVersion`, `kind`, and `metadata` fields.\n\nWhen the control plane creates new Pods for a ReplicationController, the `.metadata.name` of the\nReplicationController is part of the basis for naming those Pods. The name of a ReplicationController must be a valid\n[DNS subdomain](/docs/concepts/overview/working-with-objects/names#dns-subdomain-names)\nvalue, but this can produce unexpected results for the Pod hostnames. For best compatibility,\nthe name should follow the more restrictive rules for a\n[DNS label](/docs/concepts/overview/working-with-objects/names#dns-label-names).\n\nFor general information about working with configuration files, see [object management](/docs/concepts/overview/working-with-objects/object-management/).\n\nA ReplicationController also needs a [`.spec` section](https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status).\n\n### Pod Template\n\nThe `.spec.template` is the only required field of the `.spec`.\n\nThe `.spec.template` is a [pod template](/docs/concepts/workloads/pods/#pod-templates). It has exactly the same schema as a Pod, except it is nested and does not have an `apiVersion` or `kind`.\n\nIn addition to required fields for a Pod, a pod template in a RepliLine truncated
{"text": "Workload management in Kubernetes covers how you organize, deploy, update,\nscale, and maintain your applications. After you deploy an application and\nexpose it through a Service, you need strategies for keeping it running\nreliably: updating to new versions without disrupting users, scaling to\nmeet changing demand, and recovering from failures. This page explains\nthe key concepts and strategies behind these activities, and links to\ntask pages for step-by-step procedures.\n\n## Organizing resource configurations\n\nMost applications require multiple Kubernetes resources working together.\nA typical web application might need a Deployment, a Service, a ConfigMap,\na PersistentVolumeClaim, and a Gateway (using the Gateway API add-on). Organizing these resources effectively makes\nyour applications easier to deploy, update, and troubleshoot.\n\nKubernetes supports several approaches to resource organization:\n\n- **Single-file grouping**: combine related resources in one (YAML) _manifest_,\nseparated by `---`. You can define resources in any order.\n- **Directory-based organization**: group all manifests for an application\nin the same directory, organized by microservice or application tier.\n- **URL-based configuration**: deploy directly from manifests hosted in\nsource control systems.\n\nFor details on `kubectl` commands that support these approaches, see\n[Command line tool (kubectl)](/docs/reference/kubectl/).\n\n### External tools\n\nSeveral tools extend Kubernetes object management beyond what `kubectl`\nprovides natively.\n\n#### Helm {#external-tool-helm}\n\n[Helm](https://helm.sh/) is a tool for managing packages of pre-configured\nKubernetes resources. These packages are known as _Helm charts_.\n\n#### Kustomize {#external-tool-kustomize}\n\n[Kustomize](https://kustomize.io/) traverses a Kubernetes manifest to add,\nremove, or update configuration options. It is available both as a standalone\nbinary and as a\n[native feature](/docs/tasks/manage-kubernetes-objects/kustomization/) of\n`kubectl`.\n\n## Update strategies\n\nWhen you release a new version of your application, how Kubernetes transitions\nfrom the old version to the new one determines whether users experience\ndowntime and how much risk the update carries. Kubernetes supports several\nupdate strategies, each suited to different scenarios.\n\n### Rolling updates\n\nA rolling update gradually replaces old Pods with new ones. At any point\nduring the update, a mix of old and new Pods serves traffic, so the\napplication remains available throughout. This is the default strategy for\nDeployments.\n\nTwo parameters control the pace of a rolling update:\n\n- **`maxUnavailable`**: the maximum number of Pods that can be unavailable\nduring the update (default: 25%).\n- **`maxSurge`**: the maximum number of extra Pods that can exist above the\ndesired count during the update (default: 25%).\n\nRolling updates also support pausing and resuming, which allows you to\ninspect a partial update or batch multiple changes into a single rollout.\nIf a new version introduces problems, you can roll back to a previous\nrevision.\n\nFor step-by-step instructions, see\n[Update a Deployment Without Downtime](/docs/tasks/run-application/update-deployment-rolling/).\nFor configuration details, see the\n[Deployment](/docs/concepts/workloads/controllers/deployment/#strategy)\nconcept page.\n\n### Recreate\n\nThe Recreate strategy terminates all existing Pods before creating new ones.\nThis causes a brief period of downtime but ensures that only one version of\nthe application runs at a time.\n\nUse the Recreate strategy when:\n\n- Your application cannot tolerate running two versions simultaneously\n(for example, due to database schema incompatibilities).\n- You need a clean switchover with no overlap between old and new Pods.\n\nFor details, see the\n[Deployment strategy](/docs/concepts/workloads/controllers/deployment/#strategy)\ndocumentation.\n\nYou can also apply a Recreate strategy for a StatefulSet. Because these workloads\n(or workload components) very often do manage some durable state, you need to\nadd your own mechanism to ensure that the application remains durable even if\nyou replace all of the Pods.\n\n### Canary deployments\n\nA canary deployment runs a new version of your application alongside the\nexisting stable version, routing only a small fraction of traffic to the new\nversion. This allows you to monitor the new version under real production\nconditions before committing to a full rollout.\n\nThe canary pattern in Kubernetes uses labels to differentiate between stable\nand canary Pods. Both Deployments share a common label (for example,\n`app: my-app`) that allows a single Service to route traffic to both sets\nof Pods. A `track` label (`stable` or `canary`) distinguishes the two\nreleases. By adjusting the replica counts, you control the traffic ratio\nbetween stable and canary Pods.\n\nFor a hands-on walkthrough, see\n[Deploy Line truncated
{"text": "This guide is for application owners who want to build\nhighly available applications, and thus need to understand\nwhat types of disruptions can happen to Pods.\n\nIt is also for cluster administrators who want to perform automated\ncluster actions, like upgrading and autoscaling clusters.\n\n## Voluntary and involuntary disruptions\n\nPods do not disappear until someone (a person or a controller) destroys them, or\nthere is an unavoidable hardware or system software error.\n\nWe call these unavoidable cases *involuntary disruptions* to\nan application. Examples are:\n\n- a hardware failure of the physical machine backing the node\n- cluster administrator deletes VM (instance) by mistake\n- cloud provider or hypervisor failure makes VM disappear\n- a kernel panic\n- the node disappears from the cluster due to cluster network partition\n- eviction of a pod due to the node being [out-of-resources](/docs/concepts/scheduling-eviction/node-pressure-eviction/).\n\nExcept for the out-of-resources condition, all these conditions\nshould be familiar to most users; they are not specific\nto Kubernetes.\n\nWe call other cases *voluntary disruptions*. These include both\nactions initiated by the application owner and those initiated by a Cluster\nAdministrator. Typical application owner actions include:\n\n- deleting the deployment or other controller that manages the pod\n- updating a deployment's pod template causing a restart\n- directly deleting a pod (e.g. by accident)\n\nCluster administrator actions include:\n\n- [Draining a node](/docs/tasks/administer-cluster/safely-drain-node/) for repair or upgrade.\n- Draining a node from a cluster to scale the cluster down (learn about\n[Node Autoscaling](/docs/concepts/cluster-administration/node-autoscaling/)).\n- Removing a pod from a node to permit something else to fit on that node.\n\nThese actions might be taken directly by the cluster administrator, or by automation\nrun by the cluster administrator, or by your cluster hosting provider.\n\nAsk your cluster administrator or consult your cloud provider or distribution documentation\nto determine if any sources of voluntary disruptions are enabled for your cluster.\nIf none are enabled, you can skip creating Pod Disruption Budgets.\n\nNot all voluntary disruptions are constrained by Pod Disruption Budgets. For example,\ndeleting deployments or pods bypasses Pod Disruption Budgets.\n\n## Dealing with disruptions\n\nHere are some ways to mitigate involuntary disruptions:\n\n- Ensure your pod [requests the resources](/docs/tasks/configure-pod-container/assign-memory-resource) it needs.\n- Replicate your application if you need higher availability. (Learn about running replicated\n[stateless](/docs/tasks/run-application/run-stateless-application-deployment/)\nand [stateful](/docs/tasks/run-application/run-replicated-stateful-application/) applications.)\n- For even higher availability when running replicated applications,\nspread applications across racks (using\n[anti-affinity](/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity))\nor across zones (if using a\n[multi-zone cluster](/docs/setup/multiple-zones).)\n\nThe frequency of voluntary disruptions varies. On a basic Kubernetes cluster, there are\nno automated voluntary disruptions (only user-triggered ones). However, your cluster administrator or hosting provider\nmay run some additional services which cause voluntary disruptions. For example,\nrolling out node software updates can cause voluntary disruptions. Also, some implementations\nof cluster (node) autoscaling may cause voluntary disruptions to defragment and compact nodes.\nYour cluster administrator or hosting provider should have documented what level of voluntary\ndisruptions, if any, to expect. Certain configuration options, such as\n[using PriorityClasses](/docs/concepts/scheduling-eviction/pod-priority-preemption/)\nin your pod spec can also cause voluntary (and involuntary) disruptions.\n\n## Pod disruption budgets\n\nKubernetes offers features to help you run highly available applications even when you\nintroduce frequent voluntary disruptions.\n\nAs an application owner, you can create a PodDisruptionBudget (PDB) for each application.\nA PDB limits the number of Pods of a replicated application that are down simultaneously from\nvoluntary disruptions. For example, a quorum-based application would\nlike to ensure that the number of replicas running is never brought below the\nnumber needed for a quorum. A web front end might want to\nensure that the number of replicas serving load never falls below a certain\npercentage of the total.\n\nCluster managers and hosting providers should use tools which\nrespect PodDisruptionBudgets by calling the [Eviction API](/docs/tasks/administer-cluster/safely-drain-node/#eviction-api)\ninstead of directly deleting pods or deployments.\n\nFor example, the `kubectl drain` subcommand lets you mark a node as going out of\nservice. WLine truncated
{"text": "This page introduces _Quality of Service (QoS) classes_ in Kubernetes, and explains\nhow Kubernetes assigns a QoS class to each Pod as a consequence of the resource\nconstraints that you specify for the containers in that Pod. Kubernetes relies on this\nclassification to make decisions about which Pods to evict when there are not enough\navailable resources on a Node.\n\n## Quality of Service classes\n\nKubernetes classifies the Pods that you run and allocates each Pod into a specific\n_quality of service (QoS) class_. Kubernetes uses that classification to influence how different\npods are handled. Kubernetes does this classification based on the\n[resource requests](/docs/concepts/configuration/manage-resources-containers/)\nof the Containers in that Pod, along with\nhow those requests relate to resource limits.\nThis is known as Quality of Service\n(QoS) class. Kubernetes assigns every Pod a QoS class based on the resource requests\nand limits of its component Containers. QoS classes are used by Kubernetes to decide\nwhich Pods to evict from a Node experiencing\n[Node Pressure](/docs/concepts/scheduling-eviction/node-pressure-eviction/). The possible\nQoS classes are `Guaranteed`, `Burstable`, and `BestEffort`. When a Node runs out of resources,\nKubernetes will first evict `BestEffort` Pods running on that Node, followed by `Burstable` and\nfinally `Guaranteed` Pods. When this eviction is due to resource pressure, only Pods exceeding\nresource requests are candidates for eviction.\n\n### Guaranteed\n\nPods that are `Guaranteed` have the strictest resource limits and are least likely\nto face eviction. They are guaranteed not to be killed until they exceed their limits\nor there are no lower-priority Pods that can be preempted from the Node. They may\nnot acquire resources beyond their specified limits. These Pods can also make\nuse of exclusive CPUs using the\n[`static`](/docs/tasks/administer-cluster/cpu-management-policies/#static-policy-configuration) CPU management policy.\n\n#### Criteria\n\nFor a Pod to be given a QoS class of `Guaranteed`:\n\n* Every Container in the Pod must have a memory limit and a memory request, both greater than zero.\n* For every Container in the Pod, the memory limit must equal the memory request.\n* Every Container in the Pod must have a CPU limit and a CPU request, both greater than zero.\n* For every Container in the Pod, the CPU limit must equal the CPU request.\n\nIf instead the Pod uses [Pod-level resources](/docs/concepts/configuration/manage-resources-containers/#pod-level-resource-specification):\n\n* The Pod must have a Pod-level memory limit and memory request, and their values must be equal.\n* The Pod must have a Pod-level CPU limit and CPU request, and their values must be equal.\n\n### Burstable\n\nPods that are `Burstable` have some lower-bound resource guarantees based on the request, but\ndo not require a specific limit. If a limit is not specified, it defaults to a\nlimit equivalent to the capacity of the Node, which allows the Pods to flexibly increase\ntheir resources if resources are available. In the event of Pod eviction due to Node\nresource pressure, these Pods are evicted only after all `BestEffort` Pods are evicted.\nBecause a `Burstable` Pod can include a Container that has no resource limits or requests, a Pod\nthat is `Burstable` can try to use any amount of node resources.\n\n#### Criteria\n\nA Pod is given a QoS class of `Burstable` if:\n\n* The Pod does not meet the criteria for QoS class `Guaranteed`.\n* At least one Container in the Pod has a memory or CPU request or limit,\nor the Pod has a Pod-level memory or CPU request or limit.\n\n### BestEffort\n\nPods in the `BestEffort` QoS class can use node resources that aren't specifically assigned\nto Pods in other QoS classes. For example, if you have a node with 16 CPU cores available to the\nkubelet, and you assign 4 CPU cores to a `Guaranteed` Pod, then a Pod in the `BestEffort`\nQoS class can try to use any amount of the remaining 12 CPU cores.\n\nThe kubelet prefers to evict `BestEffort` Pods if the node comes under resource pressure.\n\n#### Criteria\n\nA Pod has a QoS class of `BestEffort` if it doesn't meet the criteria for either `Guaranteed`\nor `Burstable`. In other words, a Pod is `BestEffort` only if none of the Containers in the Pod have a\nmemory limit or a memory request, and none of the Containers in the Pod have a\nCPU limit or a CPU request, and the Pod does not have any Pod-level memory or CPU limits or requests.\nContainers in a Pod can request other resources (not CPU or memory) and still be classified as\n`BestEffort`.\n\n## Memory QoS with cgroup v2\n\n[Memory QoS](/docs/reference/command-line-tools-reference/feature-gates/#memoryqos) uses the memory controller of cgroup v2 to manage memory throttling\nand protection in Kubernetes. It uses the Pod's QoS class to decide which cgroup\nsettings to apply, but it does not change how Pods are classified.\n\nTheLine truncated
{"text": "PodGroup can declare a disruption mode. This mode dictates how\nthe scheduler can disrupt a running PodGroup, for example to accommodate\na higher priority PodGroup. A PodGroup also has a priority,\nwhich overrides the priority of the individual pods from the group\nfor [workload-aware preemption](/docs/concepts/scheduling-eviction/workload-aware-preemption/) events.\n\n## Disruption mode types\n\nIn v1.36, the `priority` or `disruptionMode` fields of the PodGroup are only respected\nby [workload-aware preemption](/docs/concepts/scheduling-eviction/workload-aware-preemption/).\nDuring the pod scheduling phase, the scheduler does not take into account\nthe `priority` or `disruptionMode` fields of the PodGroup. This limitation no longer\napplies in v1.37.\n\nThe API supports two disruption modes: `Single` and `All`.\nThe default one is `Single`.\n\n### Single\n\nThe `Single` mode instructs the scheduler to treat all Pods in the group as separate entities,\nallowing independent disruption of a single pod from a PodGroup.\n\n### All\n\nThe `All` mode emphasizes \"all-or-nothing\" semantics for disruption.\nIt instructs the scheduler that all pods from the PodGroup have to be disrupted together.\n\n## CompositePodGroup\n\nA `CompositePodGroup` can also declare a `disruptionMode` in its specification, which controls\nhow the scheduler disrupts child groups within the composite group during preemption events.\n\nThe API supports two disruption modes for `CompositePodGroups`:\n\n- **`Single`**: Allows individual child groups within the `CompositePodGroup` to be disrupted\nindependently during preemption.\n- **`All`**: Enforces all-or-nothing disruption semantics across the `CompositePodGroup` hierarchy.\nIf any Pod contained in the hierarchy below this `CompositePodGroup` has to be preempted, all of\nthe Pods from the entire hierarchy must be preempted.\n\nIf not specified, the mode defaults to `Single`.\n\nIn v1.37, a group can set its disruption mode to `All` and have child groups that have a mode set to\n`Single`. In such case, the top-level `All` mode overrides the descendant `Single` modes.\n\nThis configuration is discouraged due to unclear semantics.\n\n## Pod group priority\n\nPodGroup uses the same concept of [PriorityClass](/docs/concepts/scheduling-eviction/pod-priority-preemption/#priorityclass) as single Pods.\nOnce you have created one or more PriorityClasses,\nyou can create a PodGroup that specifies one of those PriorityClass names in its specification.\nThe priority admission controller uses the `priorityClassName` field and populates the integer value of the priority.\nIf the priority class is not found, the PodGroup is rejected.\nWhen `priorityClassName` is not set for a PodGroup, Kubernetes looks for a default (a PriorityClass with `globalDefault` set true)\nIf there is no PriorityClass with `globalDefault` set true, a PodGroup with no `priorityClassName` has priority zero.\n\nThe priority of the PodGroup is an authoritative priority for all pods in the group during [workload-aware preemption](/docs/concepts/scheduling-eviction/workload-aware-preemption/) events.\nThis value is also used for the ordering of PodGroups in the scheduling queue.\nWhen the priorities of individual pods forming this PodGroup differ from PodGroup priority\nthe PodGroup will not be scheduled with `all pods in a single pod group should have the same priority as the pod group` error.\n\nWhen the [PodGroupPreemptionPolicy](/docs/reference/command-line-tools-reference/feature-gates/#PodGroupPreemptionPolicy/)\nfeature gate is enabled, PodGroup has also `preemptionPolicy` field. This field is also taken from the PriorityClass.\nIt is an authoritative field for all pods in the group and it decides whether the PodGroup can perform a preemption of\nlower priority pods and pod groups to accommodate a place for itself. When the feature gate is enabled all pods in the PodGroup\nmust have the same `preemptionPolicy` as PodGroup. Otherwise the PodGroup will not be scheduled with\n`all pods in a single pod group should have the same preemption policy as the pod group's preemption policy` error.\nWhen PodGroup has `preemptionPolicy: Never` it will not perform workload aware preemption.\nIf the feature flag is disabled, all pods forming PodGroup must have the same `preemptionPolicy`.\nOtherwise the PodGroup will not be scheduled with\n`all pods in a single pod group should have the same preemption policy` error.\n\nThe following YAML is an example of a PodGroup configuration that uses the `high-priority` PriorityClass,\nwhich maps to the integer priority value of 1000000.\nThe priority admission controller checks the specification and resolves the priority of the PodGroup to 1000000.\n\n```yaml\napiVersion: scheduling.k8s.io/v1beta1\nkind: PodGroup\nmetadata:\nnamespace: ns-1\nname: job-1\nspec:\npriorityClassName: high-priority\n```\n\n### CompositePodGroup priority\n\n`CompositePodGroup` API has `priorityClassName` and `prLine truncated
{"text": "There are two official Kubernetes blogs, and the CNCF has its own blog where you can cover Kubernetes too.\nFor the main Kubernetes blog, we (the Kubernetes project) like to publish articles with different perspectives and special focuses, that have a link to Kubernetes.\n\nSome articles appear on both blogs: there is a primary version of the article, and\na _mirror article_ on the other blog.\n\nThis page describes the criteria for mirroring, the motivation for mirroring, and\nexplains what you should do to ensure that an article publishes to both blogs.\n\n#\n\nMake sure you are familiar with the introduction sections of\n[contributing to Kubernetes blogs](/docs/contribute/blog/), not just to learn about\nthe two official blogs and the differences between them, but also to get an overview\nof the process.\n\n## Why we mirror\n\nMirroring is nearly always from the contributor blog to the main blog. The project does this\nfor articles that are about the contributor community, or a part of it, but are also relevant\nto the wider set of readers for Kubernetes' main blog.\n\nAs an author (or reviewer), consider the target audience and whether the blog post is appropriate for the [main blog](/docs/contribute/blog/#main-blog).\nFor example: if the target audience are Kubernetes contributors only, then the\n[contributor blog](/docs/contribute/blog/#contributor-blog).\nmay be more appropriate;\nif the blog post is about open source in general then it may be more suitable on another site outside the Kubernetes project.\n\nThis consideration about target audience applies to original and mirrored articles equally.\n\nThe Kubernetes project is willing to mirror any blog article that was published to https://kubernetes.dev/blog/\n(the contributor blog), provided that all of the following criteria are met:\n\n- the mirrored article has the same publication date as the original (it should have the same publication time too,\nbut you can also set a time stamp up to 12 hours later for special cases)\n\n- For PRs that add a mirrored article to the main blog *after* the original article has merged into the contributor blog, ensure that all of the following criteria are met:\n- No articles were published to the main blog after the original article was published to the contributor blog.\n- There are no main blog articles scheduled for publication between the publication time of the original article and the publication time of your mirrored article.\n\nThis is because the Kubernetes project doesn't want to add articles to people's feeds, such as RSS, except at the very end of their feed.\n\n- the original article doesn't contravene any strongly recommended review guidelines or community norms\n\n- the mirrored article will have `canonicalUrl` set correctly in its\n[front matter](https://gohugo.io/content-management/front-matter/)\n\n- the audience for the original article would find it relevant\n\n- the article content is not off-topic for the target blog where the mirror article would\nappear\n\nMirroring from the main blog to the contributor blog is rare, but could feasibly happen.\n\n## How to mirror\n\nYou make a PR against the other Git repository (usually,\n[https://github.com/kubernetes/website](https://github.com/kubernetes/website)) that adds\nthe article. You do this _before_ the articles merge.\n\nAs the article author, you should set the canonical URL for the mirrored article, to the URL of the original article\n(you can use a preview to predict the URL and fill this in ahead of actual publication). Use the `canonicalUrl`\nfield in [front matter](https://gohugo.io/content-management/front-matter/) for this.", "source": "content/en/docs/contribute/blog/mirroring.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "This page gives writing style guidelines for the Kubernetes documentation.\nThese are guidelines, not rules. Use your best judgment, and feel free to\npropose changes to this document in a pull request.\n\nFor additional information on creating new content for the Kubernetes\ndocumentation, read the [Documentation Content Guide](/docs/contribute/style/content-guide/).\n\nChanges to the style guide are made by SIG Docs as a group. To propose a change\nor addition, [add it to the agenda](https://bit.ly/sig-docs-agenda) for an upcoming\nSIG Docs meeting, and attend the meeting to participate in the discussion.\n\nKubernetes documentation uses\n[Goldmark Markdown Renderer](https://github.com/yuin/goldmark)\nwith some adjustments along with a few\n[Hugo Shortcodes](/docs/contribute/style/hugo-shortcodes/) to support\nglossary entries, tabs, and representing feature state.\n\n## Language\n\nKubernetes documentation has been translated into multiple languages\n(see [Localization READMEs](https://github.com/kubernetes/website/blob/main/README.md#localization-readmemds)).\n\nThe way of localizing the docs for a different language is described in [Localizing Kubernetes Documentation](/docs/contribute/localization/).\n\nThe English-language documentation uses U.S. English spelling and grammar.\n\n[If you're localizing this page, you can omit the point about US English.]\n\n## Documentation formatting standards\n\n### Use upper camel case for API objects\n\nWhen you refer specifically to interacting with an API object, use\n[UpperCamelCase](https://en.wikipedia.org/wiki/Camel_case), also known as\nPascal case. You may see different capitalization, such as \"configMap\",\nin the [API Reference](/docs/reference/kubernetes-api/). When writing\ngeneral documentation, it's better to use upper camel case, calling it \"ConfigMap\" instead.\n\nWhen you are generally discussing an API object, use\n[sentence-style capitalization](https://docs.microsoft.com/en-us/style-guide/text-formatting/using-type/use-sentence-style-capitalization).\n\nThe following examples focus on capitalization. For more information about formatting\nAPI object names, review the related guidance on [Code Style](#code-style-inline-code).\n\nDo | Don't\n:--| :-----\nThe HorizontalPodAutoscaler resource is responsible for ... | The Horizontal pod autoscaler is responsible for ...\nA PodList object is a list of pods. | A Pod List object is a list of pods.\nThe Volume object contains a `hostPath` field. | The volume object contains a hostPath field.\nEvery ConfigMap object is part of a namespace. | Every configMap object is part of a namespace.\nFor managing confidential data, consider using the Secret API. | For managing confidential data, consider using the secret API.\n\n### Use angle brackets for placeholders\n\nUse angle brackets for placeholders. Tell the reader what a placeholder\nrepresents, for example:\n\nDisplay information about a pod:\n\n```shell\nkubectl describe pod -n\n```\n\nIf the namespace of the pod is `default`, you can omit the '-n' parameter.\n\n### Use bold for user interface elements\n\nDo | Don't\n:--| :-----\nClick **Fork**. | Click \"Fork\".\nSelect **Other**. | Select \"Other\".\n\n### Use italics to define or introduce new terms\n\nDo | Don't\n:--| :-----\nA _cluster_ is a set of nodes ... | A \"cluster\" is a set of nodes ...\nThese components form the _control plane_. | These components form the **control plane**.\n\n### Use code style for filenames, directories, and paths\n\nDo | Don't\n:--| :-----\nOpen the `envars.yaml` file. | Open the envars.yaml file.\nGo to the `/docs/tutorials` directory. | Go to the /docs/tutorials directory.\nOpen the `/_data/concepts.yaml` file. | Open the /\\_data/concepts.yaml file.\n\n### Use the international standard for punctuation inside quotes\n\nDo | Don't\n:--| :-----\nevents are recorded with an associated \"stage\". | events are recorded with an associated \"stage.\"\nThe copy is called a \"fork\". | The copy is called a \"fork.\"\n\n### Use start case for enhancement graduation phases\n\nDo | Don't\n:--| :-----\nDynamic Resource Allocation (DRA) is Beta. | Dynamic Resource Allocation (DRA) is beta.\n\n## Inline code formatting\n\n### Use code style for inline code, commands {#code-style-inline-code}\n\nFor inline code in an HTML document, use the ` ` tag. In a Markdown\ndocument, use the backtick (`` ` ``). However, API kinds such as StatefulSet\nor ConfigMap are written verbatim (no backticks); this allows using possessive\napostrophes.\n\nDo | Don't\n:--| :-----\nThe `kubectl run` command creates a Pod. | The \"kubectl run\" command creates a Pod.\nThe kubelet on each node acquires a Lease… | The kubelet on each node acquires a `Lease`…\nA PersistentVolume represents durable storage… | A `PersistentVolume` represents durable storage…\nThe CustomResourceDefinition's `.spec.group` field… | The `CustomResourceDefinition.spec.group` field…\nFor declarative management,Line truncated
{"text": "This page provides an overview of _admission controllers_.\n\nAn admission controller is a piece of code that intercepts requests to the\nKubernetes API server prior to persistence of the resource, but after the request\nis authenticated and authorized.\n\nSeveral important features of Kubernetes require an admission controller to be enabled in order\nto properly support the feature. As a result, a Kubernetes API server that is not properly\nconfigured with the right set of admission controllers is an incomplete server that will not\nsupport all the features you expect.\n\n## What are they?\n\nAdmission controllers are code within the Kubernetes\nAPI server that check the\ndata arriving in a request to modify a resource.\n\nAdmission controllers apply to requests that create, delete, or modify objects.\nAdmission controllers can also block custom verbs, such as a request to connect to a\npod via an API server proxy. Admission controllers do _not_ (and cannot) block requests\nto read (**get**, **watch** or **list**) objects, because reads bypass the admission\ncontrol layer.\n\nAdmission control mechanisms may be _validating_, _mutating_, or both. Mutating\ncontrollers may modify the data for the resource being modified; validating controllers may not.\n\nThe admission controllers in Kubernetes consist of the\n[list](#what-does-each-admission-controller-do) below, are compiled into the\n`kube-apiserver` binary, and may only be configured by the cluster\nadministrator.\n\n### Admission control extension points\n\nWithin the full [list](#what-does-each-admission-controller-do), there are four\nspecial controllers:\n[MutatingAdmissionWebhook](#mutatingadmissionwebhook),\n[MutatingAdmissionPolicy](#mutatingadmissionpolicy),\n[ValidatingAdmissionWebhook](#validatingadmissionwebhook), and\n[ValidatingAdmissionPolicy](#validatingadmissionpolicy).\nThe two webhook controllers execute the mutating and validating (respectively)\n[admission control webhooks](/docs/reference/access-authn-authz/extensible-admission-controllers/#admission-webhooks)\nwhich are configured in the API. MutatingAdmissionPolicy and ValidatingAdmissionPolicy provides a way to embed\ndeclarative mutation/validation code within the API, without relying on any external HTTP\ncallouts.\n\nYou can use these four admission controllers to customize cluster behavior at\nadmission time.\n\n### Admission control phases\n\nThe admission control process proceeds in two phases. In the first phase,\nmutating admission controllers are run. In the second phase, validating\nadmission controllers are run. Note again that some of the controllers are\nboth.\n\nIf any of the controllers in either phase reject the request, the entire\nrequest is rejected immediately and an error is returned to the end-user.\n\nFinally, in addition to sometimes mutating the object in question, admission\ncontrollers may sometimes have side effects, that is, mutate related\nresources as part of request processing. Incrementing quota usage is the\ncanonical example of why this is necessary. Any such side-effect needs a\ncorresponding reclamation or reconciliation process, as a given admission\ncontroller does not know for sure that a given request will pass all of the\nother admission controllers.\n\nThe ordering of these calls can be seen below.\n\n## Why do I need them?\n\nSeveral important features of Kubernetes require an admission controller to be enabled in order\nto properly support the feature. As a result, a Kubernetes API server that is not properly\nconfigured with the right set of admission controllers is an incomplete server and will not\nsupport all the features you expect.\n\n## How do I turn on an admission controller?\n\nThe Kubernetes API server flag `enable-admission-plugins` takes a comma-delimited list of admission control plugins to invoke prior to modifying objects in the cluster.\nFor example, the following command line enables the `NamespaceLifecycle` and the `LimitRanger`\nadmission control plugins:\n\n```shell\nkube-apiserver --enable-admission-plugins=NamespaceLifecycle,LimitRanger ...\n```\n\nDepending on the way your Kubernetes cluster is deployed and how the API server is\nstarted, you may need to apply the settings in different ways. For example, you may\nhave to modify the systemd unit file if the API server is deployed as a systemd\nservice, you may modify the manifest file for the API server if Kubernetes is deployed\nin a self-hosted way.\n\n## How do I turn off an admission controller?\n\nThe Kubernetes API server flag `disable-admission-plugins` takes a comma-delimited list of admission control plugins to be disabled, even if they are in the list of plugins enabled by default.\n\n```shell\nkube-apiserver --disable-admission-plugins=PodNodeSelector,AlwaysDeny ...\n```\n\n## Which plugins are enabled by default?\n\nTo see which admission plugins are enabled:\n\n```shell\nkube-apiserver -h | grep enable-admission-plugins\n```\n\nIn KuberneteLine truncated
{"text": "This page provides an overview of _MutatingAdmissionPolicies_.\nMutatingAdmissionPolicies allow you to change what happens when someone writes a change to the Kubernetes API.\nIf you want to use declarative policies just to prevent a particular kind of change to resources (for example: protecting platform namespaces from deletion),\n[ValidatingAdmissionPolicy](/docs/reference/access-authn-authz/validating-admission-policy/)\nis\na simpler and more effective alternative.\n\n## What are MutatingAdmissionPolicies?\n\nMutating admission policies offer a declarative, in-process alternative to mutating admission webhooks.\n\nMutating admission policies use the Common Expression Language (CEL) to declare mutations to resources.\nMutations can be defined either with an *apply configuration* that is merged using the\n[server side apply merge strategy](/docs/reference/using-api/server-side-apply/#merge-strategy),\nor a [JSON patch](https://jsonpatch.com/).\n\nMutating admission policies are highly configurable, enabling policy authors to define policies\nthat can be parameterized and scoped to resources as needed by cluster administrators.\n\n## What resources make a policy\n\nA policy is generally made up of three resources:\n\n- The MutatingAdmissionPolicy describes the abstract logic of a policy\n(think: \"this policy sets a particular label to a particular value\").\n\n- A _parameter resource_ provides information to a MutatingAdmissionPolicy to make it a concrete\nstatement (think \"set the `owner` label to something like `company.example.com`\").\nParameter resources refer to Kubernetes resources, available in the Kubernetes API. They can be built-in types or extensions,\nsuch as a CustomResourceDefinition (CRD). For example, you can use a ConfigMap as a parameter.\n- A MutatingAdmissionPolicyBinding links the above (MutatingAdmissionPolicy and parameter) resources together and provides scoping.\nIf you only want to set an `owner` label for `Pods`, and not other API kinds, the binding is where you\nspecify this mutation.\n\nAt least a MutatingAdmissionPolicy and a corresponding MutatingAdmissionPolicyBinding\nmust be defined for a policy to have an effect.\n\nNames ending in `.static.k8s.io` are reserved for\n[manifest-based admission control](/docs/reference/access-authn-authz/manifest-admission-control/)\nand cannot be used for API-based policies or bindings. This reservation is\nenforced when the `ManifestBasedAdmissionControlConfig`\n[feature gate](/docs/reference/command-line-tools-reference/feature-gates/#ManifestBasedAdmissionControlConfig) is enabled.\n\nIf a MutatingAdmissionPolicy does not need to be configured via parameters, simply leave\n`spec.paramKind` in MutatingAdmissionPolicy not specified.\n\n## Getting Started with MutatingAdmissionPolicies\n\nMutating admission policy is part of the cluster control-plane. You should write\nand deploy them with great caution. The following describes how to quickly\nexperiment with Mutating admission policy.\n\n### Create a MutatingAdmissionPolicy\n\nThe following is an example of a MutatingAdmissionPolicy. This policy mutates newly created Pods to have a sidecar container if it does not exist.\n\nThe `.spec.mutations` field consists of a list of expressions that evaluate to resource patches.\nThe emitted patches may be either [apply configurations](#patch-type-apply-configuration) or [JSON Patch](#patch-type-json-patch)\npatches. You cannot specify an empty list of mutations. After evaluating all the\nexpressions, the API server applies those changes to the resource that is\npassing through admission.\n\nTo configure a mutating admission policy for use in a cluster, a binding is\nrequired. The MutatingAdmissionPolicy will only be active if a corresponding\nbinding exists with the referenced `spec.policyName` matching the `spec.name` of\na policy.\n\nOnce the binding and policy are created, any resource request that matches the\n`spec.matchConditions` of a policy will trigger the set of mutations defined.\n\nMatch conditions cannot use `namespaceObject` or `variables`. `namespaceObject` is not populated\nfor match conditions and always evaluates to null, and `variables` cannot be referenced because\nmatch conditions are evaluated before the rest of the policy. To select requests based on namespace\nlabels, use a `namespaceSelector` in the policy's `matchConstraints` or in the binding's\n`matchResources`.\n\nIn the example above, creating a Pod will add the `mesh-proxy` initContainer mutation:\n\n```yaml\napiVersion: v1\nkind: Pod\nmetadata:\nname: myapp\nnamespace: default\nspec:\n...\ninitContainers:\n- name: mesh-proxy\nimage: mesh/proxy:v1.0.0\nargs: [\"proxy\", \"sidecar\"]\nrestartPolicy: Always\n- name: myapp-initializer\nimage: example/initializer:v1.0.0\n...\n```\n\n#### Parameter resources\n\nParameter resources allow a policy configuration to be separate from its\ndefinition. A policy can define `paramKind`, which outlines GVK of the paraLine truncated
{"text": "Disable node admission validation of\n[CertificateSigningRequests](/docs/reference/access-authn-authz/certificate-signing-requests/#certificate-signing-requests)\nfor kubelet signers. Unless you disable this feature gate, Kubernetes enforces that new\nkubelet certificates have a `commonName` matching `system:node:$nodeName`.", "source": "content/en/docs/reference/command-line-tools-reference/feature-gates/AllowInsecureKubeletCertificateSigningRequests.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "A client-go implementation of a FIFO queue that uses atomic operations to ensure events that come in\nbatches, such as those from a ListAndWatch call, are processed in a single chunk. This is in contrast to\nthe previous implementation which would process these events one by one, potentially causing the internal\ncache to become temporarily inconsistent with the API server. This feature gate can be toggled in the\nkube-controller-manager and any client-go based controller.", "source": "content/en/docs/reference/command-line-tools-reference/feature-gates/AtomicFIFO.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "Enables shims and translation logic to route volume\noperations from the AWS-EBS in-tree plugin to EBS CSI plugin. Supports\nfalling back to in-tree EBS plugin for mount operations to nodes that have\nthe feature disabled or that do not have EBS CSI plugin installed and\nconfigured. Does not support falling back for provision operations, for those\nthe CSI plugin must be installed and configured.", "source": "content/en/docs/reference/command-line-tools-reference/feature-gates/CSIMigrationAWS.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "Enables shims and translation logic to route volume\noperations from the Azure-File in-tree plugin to AzureFile CSI plugin.\nSupports falling back to in-tree AzureFile plugin for mount operations to\nnodes that have the feature disabled or that do not have AzureFile CSI plugin\ninstalled and configured. Does not support falling back for provision\noperations, for those the CSI plugin must be installed and configured.\nRequires CSIMigration feature flag enabled.", "source": "content/en/docs/reference/command-line-tools-reference/feature-gates/CSIMigrationAzureFile.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "Enables shims and translation logic to route volume\noperations from the GCE-PD in-tree plugin to PD CSI plugin. Supports falling\nback to in-tree GCE plugin for mount operations to nodes that have the\nfeature disabled or that do not have PD CSI plugin installed and configured.\nDoes not support falling back for provision operations, for those the CSI\nplugin must be installed and configured. Requires CSIMigration feature flag\nenabled.", "source": "content/en/docs/reference/command-line-tools-reference/feature-gates/CSIMigrationGCE.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "Stops registering the vSphere in-tree plugin in kubelet\nand volume controllers and enables shims and translation logic to route volume operations\nfrom the vSphere in-tree plugin to vSphere CSI plugin. Requires CSIMigration and\nCSIMigrationvSphere feature flags enabled and vSphere CSI plugin installed and\nconfigured on all nodes in the cluster. This flag has been deprecated in favor\nof the `InTreePluginvSphereUnregister` feature flag which prevents the\nregistration of in-tree vsphere plugin.", "source": "content/en/docs/reference/command-line-tools-reference/feature-gates/CSIMigrationvSphereComplete.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "Enables Leader Migration for\n[kube-controller-manager](/docs/tasks/administer-cluster/controller-manager-leader-migration/#initial-leader-migration-configuration) and\n[cloud-controller-manager](/docs/tasks/administer-cluster/controller-manager-leader-migration/#deploy-cloud-controller-manager)\nwhich allows a cluster operator to live migrate\ncontrollers from the kube-controller-manager into an external controller-manager\n(e.g. the cloud-controller-manager) in an HA cluster without downtime.", "source": "content/en/docs/reference/command-line-tools-reference/feature-gates/ControllerManagerLeaderMigration.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "Enables `derivedAttributes` in Dynamic Resource Allocation (DRA), letting\nResourceClaim and ResourceClaimTemplate authors compute virtual device\nattributes with per-device CEL expressions, for use in `matchAttribute` and\n`distinctAttribute` constraints.\n\nFor more information, see\n[Derived attributes](/docs/concepts/resource-management/dynamic-resource-allocation/dra-api/#derived-attributes)\nin the DRA API Objects documentation.", "source": "content/en/docs/reference/command-line-tools-reference/feature-gates/DRADerivedAttributes.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "The global safety switch for Beta validation rules (`+k8s:beta`). Disable it to revert\nthose rules to shadow mode if regressions are found.\n\nIn shadow mode, declarative validation still runs and mismatches are logged and metered,\nbut they do not reject requests; hand-written validation stays authoritative.\n\nEnforcement for resources using `WithDeclarativeEnforcement()`:\n\n- No prefix: always enforced, regardless of this gate.\n- `+k8s:beta`: enforced when this gate is enabled (the default), otherwise shadowed.\n- `+k8s:alpha`: always shadowed.\n\nThis gate takes effect independently of the\n[`DeclarativeValidation` feature gate](/docs/reference/command-line-tools-reference/feature-gates/#DeclarativeValidation),\nwhich controls only mismatch reporting.", "source": "content/en/docs/reference/command-line-tools-reference/feature-gates/DeclarativeValidationBeta.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "Enables the `defaultPodSysctls` field in [KubeletConfiguration](/docs/reference/config-api/kubelet-config.v1beta1/), allowing Node administrators to specify a default set of namespaced kernel parameters (sysctls) that the `kubelet` applies to all Pods on the Node. See [Setting Sysctls for All Pods](/docs/tasks/administer-cluster/sysctl-cluster/#setting-sysctls-for-all-pods) for more details.", "source": "content/en/docs/reference/command-line-tools-reference/feature-gates/DefaultPodSysctls.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "If supported by the CSI driver, delegates the\nrole of applying `fsGroup` from a Pod's `securityContext` to the driver by\npassing `fsGroup` through the NodeStageVolume and NodePublishVolume CSI calls.", "source": "content/en/docs/reference/command-line-tools-reference/feature-gates/DelegateFSGroupToCSIDriver.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "Allow using the [`image`](/docs/concepts/storage/volumes/) volume source in a Pod.\nThis volume source lets you mount a container image as a read-only volume.", "source": "content/en/docs/reference/command-line-tools-reference/feature-gates/ImageVolume.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "Enables the in-place vertical scaling of resources for a Pod (For example, changing a\nrunning Pod's pod-level CPU or memory requests/limits without needing to restart\nit). For details, see the documentation on [In-place Pod-level Resources Vertical Scaling](/docs/tasks/configure-pod-container/resize-pod-resources/).", "source": "content/en/docs/reference/command-line-tools-reference/feature-gates/InPlacePodLevelResourcesVerticalScaling.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "Enable the kubelet to allocate swap memory for Kubernetes workloads on a node.\nMust be used with `KubeletConfiguration.failSwapOn` set to false.\nFor more details, please see [swap memory](/docs/concepts/architecture/nodes/#swap-memory)", "source": "content/en/docs/reference/command-line-tools-reference/feature-gates/NodeSwap.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "When enabled, the PVC protection controller adds an `Unused` condition to\nPersistentVolumeClaims that tracks whether the PVC is currently referenced by\nany non-terminal Pod. The condition's `lastTransitionTime` records when the PVC\nlast transitioned between being in use and being unused.", "source": "content/en/docs/reference/command-line-tools-reference/feature-gates/PersistentVolumeClaimUnusedSinceTime.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "Configure the kubelet to gather container and pod stats from the CRI container runtime rather than gathering them from cAdvisor.\nAs of 1.26, this also includes gathering metrics from CRI and emitting them over `/metrics/cadvisor` (rather than having cAdvisor emit them directly).", "source": "content/en/docs/reference/command-line-tools-reference/feature-gates/PodAndContainerStatsFromCRI.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "Enable the API server to accept UIDs (user IDs) via request header authentication.\nThis will also make the `kube-apiserver`'s API aggregator add UIDs via standard headers when\nforwarding requests to the servers serving the aggregated API.", "source": "content/en/docs/reference/command-line-tools-reference/feature-gates/RemoteRequestHeaderUID.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "Enables scheduler [queueing hints](/docs/concepts/scheduling-eviction/scheduling-framework/#queueinghint),\nwhich benefits to reduce the useless requeuing.\nThe scheduler retries scheduling pods if something changes in the cluster that could make the pod scheduled.\nQueueing hints are internal signals that allow the scheduler to filter the changes in the cluster\nthat are relevant to the unscheduled pod, based on previous scheduling attempts.", "source": "content/en/docs/reference/command-line-tools-reference/feature-gates/SchedulerQueueingHints.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "Allows the API server watch cache to create a watch on a dedicated RPC.\nThis prevents watch cache from being starved by other watches.", "source": "content/en/docs/reference/command-line-tools-reference/feature-gates/SeparateCacheWatchRPC.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "Enable a mechanism to coordinate fine-grained hardware resource\nassignments for different components in Kubernetes. See\n[Control Topology Management Policies on a node](/docs/tasks/administer-cluster/topology-manager/).", "source": "content/en/docs/reference/command-line-tools-reference/feature-gates/TopologyManager.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "Allow fine-tuning of topology manager policies,\nexperimental, Alpha-quality options.\nThis feature gate guards *a group* of topology manager options whose quality level is alpha.\nThis feature gate will never graduate to beta or stable.", "source": "content/en/docs/reference/command-line-tools-reference/feature-gates/TopologyManagerPolicyAlphaOptions.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "## Resource Types\n\n- [ExecCredential](#client-authentication-k8s-io-v1-ExecCredential)\n\n## `ExecCredential` {#client-authentication-k8s-io-v1-ExecCredential}\n\nExecCredential is used by exec-based plugins to communicate credentials to\nHTTP transports.\n\nField Description\n\napiVersion\nstring client.authentication.k8s.io/v1\nkind\nstring ExecCredential\n\nspec [Required]\n\nExecCredentialSpec\n\nSpec holds information passed to the plugin by the transport.\n\nstatus\n\nExecCredentialStatus\n\nStatus is filled in by the plugin and holds the credentials that the transport\nshould use to contact the API.\n\n## `Cluster` {#client-authentication-k8s-io-v1-Cluster}\n\n**Appears in:**\n\n- [ExecCredentialSpec](#client-authentication-k8s-io-v1-ExecCredentialSpec)\n\nCluster contains information to allow an exec plugin to communicate\nwith the kubernetes cluster being authenticated to.\nTo ensure that this struct contains everything someone would need to communicate\nwith a kubernetes cluster (just like they would via a kubeconfig), the fields\nshould shadow \"k8s.io/client-go/tools/clientcmd/api/v1\".Cluster, with the exception\nof CertificateAuthority, since CA data will always be passed to the plugin as bytes.\n\nField Description\n\nserver [Required]\n\nstring\n\nServer is the address of the kubernetes cluster (https://hostname:port).\n\ntls-server-name\n\nstring\n\nTLSServerName is passed to the server for SNI and is used in the client to\ncheck server certificates against. If ServerName is empty, the hostname\nused to contact the server is used.\n\ninsecure-skip-tls-verify\n\nbool\n\nInsecureSkipTLSVerify skips the validity check for the server's certificate.\nThis will make your HTTPS connections insecure.\n\ncertificate-authority-data\n\n[]byte\n\nCAData contains PEM-encoded certificate authority certificates.\nIf empty, system roots should be used.\n\nproxy-url\n\nstring\n\nProxyURL is the URL to the proxy to be used for all requests to this\ncluster.\n\ndisable-compression\n\nbool\n\nDisableCompression allows client to opt-out of response compression for all requests to the server. This is useful\nto speed up requests (specifically lists) when client-server network bandwidth is ample, by saving time on\ncompression (server-side) and decompression (client-side): https://github.com/kubernetes/kubernetes/issues/112296.\n\nconfig\n\nk8s.io/apimachinery/pkg/runtime.RawExtension\n\nConfig holds additional config data that is specific to the exec\nplugin with regards to the cluster being authenticated to.\nThis data is sourced from the clientcmd Cluster object's\nextensions[client.authentication.k8s.io/exec] field:\nclusters:\n\nname: my-cluster\ncluster:\n...\nextensions:\n\nname: client.authentication.k8s.io/exec # reserved extension name for per cluster exec config\nextension:\naudience: 06e3fbd18de8 # arbitrary config\n\nIn some environments, the user config may be exactly the same across many clusters\n(i.e. call this exec plugin) minus some details that are specific to each cluster\nsuch as the audience. This field allows the per cluster config to be directly\nspecified with the cluster info. Using this field to store secret data is not\nrecommended as one of the prime benefits of exec plugins is that no secrets need\nto be stored directly in the kubeconfig.\n\n## `ExecCredentialSpec` {#client-authentication-k8s-io-v1-ExecCredentialSpec}\n\n**Appears in:**\n\n- [ExecCredential](#client-authentication-k8s-io-v1-ExecCredential)\n\nExecCredentialSpec holds request and runtime specific information provided by\nthe transport.\n\nField Description\n\ncluster\n\nCluster\n\nCluster contains information to allow an exec plugin to communicate with the\nkubernetes cluster being authenticated to. Note that Cluster is non-nil only\nwhen provideClusterInfo is set to true in the exec provider config (i.e.,\nExecConfig.ProvideClusterInfo).\n\ninteractive [Required]\n\nbool\n\nInteractive declares whether stdin has been passed to this exec plugin.\n\n## `ExecCredentialStatus` {#client-authentication-k8s-io-v1-ExecCredentialStatus}\n\n**Appears in:**\n\n- [ExecCredential](#client-authentication-k8s-io-v1-ExecCredential)\n\nExecCredentialStatus holds credentials for the transport to use.\nToken and ClientKeyData are sensitive fields. This data should only be\ntransmitted in-memory between client and exec plugin process. Exec plugin\nitself should at least be protected via file permissions.\n\nField Description\n\nexpirationTimestamp\n\nmeta/v1.Time\n\nExpirationTimestamp indicates a time when the provided credentials expire.\n\ntoken [Required]\n\nstring\n\nToken is a bearer token used by the client for request authentication.\n\nclientCertificateData [Required]\n\nstring\n\nPEM-encoded client TLS certificates (including intermediates, if any).\n\nclientKeyData [Required]\n\nstring\n\nPEM-encoded private key for the above certificate.", "source": "content/en/docs/reference/config-api/client-authentication.v1Line truncated
{"text": "## Resource Types\n\n- [DefaultPreemptionArgs](#kubescheduler-config-k8s-io-v1-DefaultPreemptionArgs)\n- [DynamicResourcesArgs](#kubescheduler-config-k8s-io-v1-DynamicResourcesArgs)\n- [InterPodAffinityArgs](#kubescheduler-config-k8s-io-v1-InterPodAffinityArgs)\n- [KubeSchedulerConfiguration](#kubescheduler-config-k8s-io-v1-KubeSchedulerConfiguration)\n- [NodeAffinityArgs](#kubescheduler-config-k8s-io-v1-NodeAffinityArgs)\n- [NodeResourcesBalancedAllocationArgs](#kubescheduler-config-k8s-io-v1-NodeResourcesBalancedAllocationArgs)\n- [NodeResourcesFitArgs](#kubescheduler-config-k8s-io-v1-NodeResourcesFitArgs)\n- [PodTopologySpreadArgs](#kubescheduler-config-k8s-io-v1-PodTopologySpreadArgs)\n- [VolumeBindingArgs](#kubescheduler-config-k8s-io-v1-VolumeBindingArgs)\n\n## `ClientConnectionConfiguration` {#ClientConnectionConfiguration}\n\n**Appears in:**\n\n- [KubeSchedulerConfiguration](#kubescheduler-config-k8s-io-v1-KubeSchedulerConfiguration)\n\nClientConnectionConfiguration contains details for constructing a client.\n\nField Description\n\nkubeconfig [Required]\n\nstring\n\nkubeconfig is the path to a KubeConfig file.\n\nacceptContentTypes [Required]\n\nstring\n\nacceptContentTypes defines the Accept header sent by clients when connecting to a server, overriding the\ndefault value of 'application/json'. This field will control all connections to the server used by a particular\nclient.\n\ncontentType [Required]\n\nstring\n\ncontentType is the content type used when sending data to the server from this client.\n\nqps [Required]\n\nfloat32\n\nqps controls the number of queries per second allowed for this connection.\n\nburst [Required]\n\nint32\n\nburst allows extra queries to accumulate when a client is exceeding its rate.\n\n## `DebuggingConfiguration` {#DebuggingConfiguration}\n\n**Appears in:**\n\n- [KubeSchedulerConfiguration](#kubescheduler-config-k8s-io-v1-KubeSchedulerConfiguration)\n\nDebuggingConfiguration holds configuration for Debugging related features.\n\nField Description\n\nenableProfiling [Required]\n\nbool\n\nenableProfiling enables profiling via web interface host:port/debug/pprof/\n\nenableContentionProfiling [Required]\n\nbool\n\nenableContentionProfiling enables block profiling, if\nenableProfiling is true.\n\n## `LeaderElectionConfiguration` {#LeaderElectionConfiguration}\n\n**Appears in:**\n\n- [KubeSchedulerConfiguration](#kubescheduler-config-k8s-io-v1-KubeSchedulerConfiguration)\n\nLeaderElectionConfiguration defines the configuration of leader election\nclients for components that can run with leader election enabled.\n\nField Description\n\nleaderElect [Required]\n\nbool\n\nleaderElect enables a leader election client to gain leadership\nbefore executing the main loop. Enable this when running replicated\ncomponents for high availability.\n\nleaseDuration [Required]\n\nmeta/v1.Duration\n\nleaseDuration is the duration that non-leader candidates will wait\nafter observing a leadership renewal until attempting to acquire\nleadership of a led but unrenewed leader slot. This is effectively the\nmaximum duration that a leader can be stopped before it is replaced\nby another candidate. This is only applicable if leader election is\nenabled.\n\nrenewDeadline [Required]\n\nmeta/v1.Duration\n\nrenewDeadline is the interval between attempts by the acting master to\nrenew a leadership slot before it stops leading. This must be less\nthan or equal to the lease duration. This is only applicable if leader\nelection is enabled.\n\nretryPeriod [Required]\n\nmeta/v1.Duration\n\nretryPeriod is the duration the clients should wait between attempting\nacquisition and renewal of a leadership. This is only applicable if\nleader election is enabled.\n\nresourceLock [Required]\n\nstring\n\nresourceLock indicates the resource object type that will be used to lock\nduring leader election cycles.\n\nresourceName [Required]\n\nstring\n\nresourceName indicates the name of resource object that will be used to lock\nduring leader election cycles.\n\nresourceNamespace [Required]\n\nstring\n\nresourceName indicates the namespace of resource object that will be used to lock\nduring leader election cycles.\n\n## `DefaultPreemptionArgs` {#kubescheduler-config-k8s-io-v1-DefaultPreemptionArgs}\n\nDefaultPreemptionArgs holds arguments used to configure the\nDefaultPreemption plugin.\n\nField Description\n\napiVersion\nstring kubescheduler.config.k8s.io/v1\nkind\nstring DefaultPreemptionArgs\n\nminCandidateNodesPercentage [Required]\n\nint32\n\nMinCandidateNodesPercentage is the minimum number of candidates to\nshortlist when dry running preemption as a percentage of number of nodes.\nMust be in the range [0, 100]. Defaults to 10% of the cluster size if\nunspecified.\n\nminCandidateNodesAbsolute [Required]\n\nint32\n\nMinCandidateNodesAbsolute is the absolute minimum number of candidates to\nshortlist. The likely number of candidates enumerated for dry running\npreemption is given by the formula:\nnumCandidLine truncated
{"text": "In Kubernetes, _affinity_ is a set of rules that give hints to the scheduler about where to place pods.\n\nThere are two kinds of affinity:\n* [node affinity](/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity)\n* [pod-to-pod affinity](/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity)\n\nThe rules are defined using the Kubernetes labels,\nand selectors specified in pods,\nand they can be either required or preferred, depending on how strictly you want the scheduler to enforce them.", "source": "content/en/docs/reference/glossary/affinity.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "cAdvisor (Container Advisor) provides container users an understanding of the resource\nusage and performance characteristics of their running containers.\n\nIt is a running daemon that collects, aggregates, processes, and exports information about running containers. Specifically, for each container it keeps resource isolation parameters, historical resource usage, histograms of complete historical resource usage and network statistics. This data is exported by container and machine-wide.", "source": "content/en/docs/reference/glossary/cadvisor.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "CIDR (Classless Inter-Domain Routing) is a notation for describing blocks of IP addresses and is used heavily in various networking configurations.\n\nIn the context of Kubernetes, each Node is assigned a range of IP addresses through the start address and a subnet mask using CIDR. This allows Nodes to assign each Pod a unique IP address. Although originally a concept for IPv4, CIDR has also been expanded to include IPv6.", "source": "content/en/docs/reference/glossary/cidr.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "Someone who donates code, documentation, or their time to help the Kubernetes project or community.\n\nContributions include pull requests (PRs), issues, feedback, special interest groups (SIG) participation, or organizing community events.", "source": "content/en/docs/reference/glossary/contributor.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "The main protocol for the communication between the kubelet and Container Runtime.\n\nThe Kubernetes Container Runtime Interface (CRI) defines the main\n[gRPC](https://grpc.io) protocol for the communication between the\n[node components](/docs/concepts/architecture/#node-components)\nkubelet and\ncontainer runtime.", "source": "content/en/docs/reference/glossary/cri.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "An API object that manages a replicated application, typically by running Pods with no local state.\n\nEach replica is represented by a , and the Pods are distributed among the\nnodes of a cluster.\nFor workloads that do require local state, consider using a .", "source": "content/en/docs/reference/glossary/deployment.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "The dockershim is a component of Kubernetes version 1.23 and earlier. It allows the kubelet\nto communicate with Docker Engine.\n\nStarting with version 1.24, dockershim has been removed from Kubernetes. For more information, see [Dockershim FAQ](/dockershim).", "source": "content/en/docs/reference/glossary/dockershim.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "May refer to: code in the Kubernetes ecosystem that depends upon the core Kubernetes codebase or a forked repo.\n\n* In the **Kubernetes Community**: Conversations often use *downstream* to mean the ecosystem, code, or third-party tools that rely on the core Kubernetes codebase. For example, a new feature in Kubernetes may be adopted by applications *downstream* to improve their functionality.\n* In **GitHub** or **git**: The convention is to refer to a forked repo as *downstream*, whereas the source repo is considered *upstream*.", "source": "content/en/docs/reference/glossary/downstream.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "A type that you can temporarily run inside a .\n\nIf you want to investigate a Pod that's running with problems, you can add an ephemeral container to that Pod and carry out diagnostics.\nEphemeral containers have no resource or scheduling guarantees,\nand you should not use them to run any part of the workload itself.\n\nEphemeral containers are not supported by static pods.", "source": "content/en/docs/reference/glossary/ephemeral-container.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "An object that automatically scales the number of replicas,\nbased on targeted resource utilization or custom metric targets.\n\nHorizontalPodAutoscaler (HPA) is typically used with Deployments, or ReplicaSets. It cannot be applied to objects that cannot be scaled, for example DaemonSets.", "source": "content/en/docs/reference/glossary/horizontal-pod-autoscaler.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "Specification of a Kubernetes API object in [JSON](https://www.json.org/json-en.html)\nor [YAML](https://yaml.org/) format.\n\nA manifest specifies the desired state of an object that Kubernetes will maintain when you apply the manifest.\nFor YAML format, each file can contain multiple manifests.", "source": "content/en/docs/reference/glossary/manifest.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "A person who customizes the Kubernetes platform to fit the needs of their project.\n\nA platform developer may, for example, use [Custom Resources](/docs/concepts/extend-kubernetes/api-extension/custom-resources/) or\n[Extend the Kubernetes API with the aggregation layer](/docs/concepts/extend-kubernetes/api-extension/apiserver-aggregation/)\nto add functionality to their instance of Kubernetes, specifically for their application.\nSome Platform Developers are also contributors and\ndevelop extensions which are contributed to the Kubernetes community.\nOthers develop closed-source commercial or site-specific extensions.", "source": "content/en/docs/reference/glossary/platform-developer.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "A former Kubernetes API that enforced security restrictions during creation and updates.\n\nPodSecurityPolicy was deprecated as of Kubernetes v1.21, and removed in v1.25.\nAs an alternative, use [Pod Security Admission](/docs/concepts/security/pod-security-admission/) or a 3rd party admission plugin.", "source": "content/en/docs/reference/glossary/pod-security-policy.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "A check that the kubelet periodically performs against a container that is\nrunning in a pod, that will define container's state and health and informing container's lifecycle.\n\nTo learn more, read [container probes](/docs/concepts/workloads/pods/pod-lifecycle/#container-probes).", "source": "content/en/docs/reference/glossary/probe.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "Subject Alternative Name is an X.509 certificate\nextension that allows identities to be bound to the subject of the certificate.\n\nThe [standard](https://datatracker.ietf.org/doc/html/rfc4985) defines identities represented\nas an email address, a DNS name, an IP address or a Uniform Resource Identifier (URI).", "source": "content/en/docs/reference/glossary/san.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "The [kubelet](/docs/reference/command-line-tools-reference/kubelet/)\ngathers metric statistics at the node, volume, pod and container level,\nand emits this information in the\n[Summary API](/docs/reference/kubelet-api/stats.v1alpha1/).\n\nYou can send a proxied request to the stats summary API via the\nKubernetes API server.\n\nHere is an example of a Summary API request for a node named `minikube`:\n\n```shell\nkubectl get --raw \"/api/v1/nodes/minikube/proxy/stats/summary\"\n```\n\nHere is the same API call using `curl`:\n\n```shell\n# You need to run \"kubectl proxy\" first\n# Change 8080 to the port that \"kubectl proxy\" assigns\ncurl http://localhost:8080/api/v1/nodes/minikube/proxy/stats/summary\n```\n\nBeginning with `metrics-server` 0.6.x, `metrics-server` queries the `/metrics/resource`\nkubelet endpoint, and not `/stats/summary`.\n\n## Summary metrics API source {#summary-api-source}\n\nBy default, Kubernetes fetches node summary metrics data using an embedded\n[cAdvisor](https://github.com/google/cadvisor) that runs within the kubelet. If you\nenable the `PodAndContainerStatsFromCRI` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/)\nin your cluster, and you use a container runtime that supports statistics access via\nContainer Runtime Interface (CRI), then\nthe kubelet [fetches Pod- and container-level metric data using CRI](/docs/reference/instrumentation/cri-pod-container-metrics), and not via cAdvisor.\n\n## Pressure Stall Information (PSI) {#psi}\n\nAs a stable feature, Kubernetes lets you configure kubelet to collect Linux kernel\n[Pressure Stall Information](https://docs.kernel.org/accounting/psi.html)\n(PSI) for CPU, memory, and I/O usage. The information is collected at node, pod and container level.\nSee [Summary API](/docs/reference/kubelet-api/stats.v1alpha1/) for detailed schema.\nStarting with Kubernetes v.1.36, the `KubeletPSI` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/) is locked to true and cannot be disabled. The information is also exposed in\n[Prometheus metrics](/docs/concepts/cluster-administration/system-metrics#psi-metrics).\n\nYou can learn how to interpret the PSI metrics in [Understand PSI Metrics](/docs/reference/instrumentation/understand-psi-metrics/).\n\n### Requirements\n\nPressure Stall Information requires:\n\n- [Linux kernel versions 4.20 or later](/docs/reference/node/kernel-version-requirements#requirements-psi).\n- [cgroup v2](/docs/concepts/architecture/cgroups)\n\n##\n\nThe task pages for [Troubleshooting Clusters](/docs/tasks/debug/debug-cluster/) discuss\nhow to use a metrics pipeline that rely on these data.", "source": "content/en/docs/reference/instrumentation/node-metrics.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "##\n\nSet a user entry in kubeconfig.\n\nSpecifying a name that already exists will merge new fields on top of existing values.\n\nClient-certificate flags:\n--client-certificate=certfile --client-key=keyfile\n\nBearer token flags:\n--token=bearer_token\n\nBasic auth flags:\n--username=basic_user --password=basic_password\n\nBearer token and basic auth are mutually exclusive.\n\n```\nkubectl config set-credentials NAME [--client-certificate=path/to/certfile] [--client-key=path/to/keyfile] [--token=bearer_token] [--username=basic_user] [--password=basic_password] [--auth-provider=provider_name] [--auth-provider-arg=key=value] [--exec-command=exec_command] [--exec-api-version=exec_api_version] [--exec-arg=arg] [--exec-env=key=value]\n```\n\n##\n\n```\n# Set only the \"client-key\" field on the \"cluster-admin\"\n# entry, without touching other values\nkubectl config set-credentials cluster-admin --client-key=~/.kube/admin.key\n\n# Set basic auth for the \"cluster-admin\" entry\nkubectl config set-credentials cluster-admin --username=admin --password=uXFGweU9l35qcif\n\n# Embed client certificate data in the \"cluster-admin\" entry\nkubectl config set-credentials cluster-admin --client-certificate=~/.kube/admin.crt --embed-certs=true\n\n# Enable the Google Compute Platform auth provider for the \"cluster-admin\" entry\nkubectl config set-credentials cluster-admin --auth-provider=gcp\n\n# Enable the OpenID Connect auth provider for the \"cluster-admin\" entry with additional arguments\nkubectl config set-credentials cluster-admin --auth-provider=oidc --auth-provider-arg=client-id=foo --auth-provider-arg=client-secret=bar\n\n# Remove the \"client-secret\" config value for the OpenID Connect auth provider for the \"cluster-admin\" entry\nkubectl config set-credentials cluster-admin --auth-provider=oidc --auth-provider-arg=client-secret-\n\n# Enable new exec auth plugin for the \"cluster-admin\" entry\nkubectl config set-credentials cluster-admin --exec-command=/path/to/the/executable --exec-api-version=client.authentication.k8s.io/v1beta1\n\n# Enable new exec auth plugin for the \"cluster-admin\" entry with interactive mode\nkubectl config set-credentials cluster-admin --exec-command=/path/to/the/executable --exec-api-version=client.authentication.k8s.io/v1beta1 --exec-interactive-mode=Never\n\n# Define new exec auth plugin arguments for the \"cluster-admin\" entry\nkubectl config set-credentials cluster-admin --exec-arg=arg1 --exec-arg=arg2\n\n# Create or update exec auth plugin environment variables for the \"cluster-admin\" entry\nkubectl config set-credentials cluster-admin --exec-env=key1=val1 --exec-env=key2=val2\n\n# Remove exec auth plugin environment variables for the \"cluster-admin\" entry\nkubectl config set-credentials cluster-admin --exec-env=var-to-remove-\n```\n\n##\n\n--auth-provider string\n\nAuth provider for the user entry in kubeconfig\n\n--auth-provider-arg strings\n\n'key=value' arguments for the auth provider\n\n--client-certificate string\n\nPath to client-certificate file for the user entry in kubeconfig\n\n--client-key string\n\nPath to client-key file for the user entry in kubeconfig\n\n--embed-certs tristate[=true]\n\nEmbed client cert/key for the user entry in kubeconfig\n\n--exec-api-version string\n\nAPI version of the exec credential plugin for the user entry in kubeconfig\n\n--exec-arg strings\n\nNew arguments for the exec credential plugin command for the user entry in kubeconfig\n\n--exec-command string\n\nCommand for the exec credential plugin for the user entry in kubeconfig\n\n--exec-env strings\n\n'key=value' environment values for the exec credential plugin\n\n--exec-interactive-mode string\n\nInteractiveMode of the exec credentials plugin for the user entry in kubeconfig\n\n--exec-provide-cluster-info tristate[=true]\n\nProvideClusterInfo of the exec credentials plugin for the user entry in kubeconfig\n\n-h, --help\n\nhelp for set-credentials\n\n--password string\n\npassword for the user entry in kubeconfig\n\n--token string\n\ntoken for the user entry in kubeconfig\n\n--username string\n\nusername for the user entry in kubeconfig\n\n##\n\n--as string\n\nUsername to impersonate for the operation. User could be a regular user or a service account in a namespace.\n\n--as-group strings\n\nGroup to impersonate for the operation, this flag can be repeated to specify multiple groups.\n\n--as-uid string\n\nUID to impersonate for the operation.\n\n--as-user-extra strings\n\nUser extras to impersonate for the operation, this flag can be repeated to specify multiple values for the same key.\n\n--cache-dir string     Default: \"$HOME/.kube/cache\"\n\nDefault cache directory\n\n--certificate-authority string\n\nPath to a cert file for the certificate authority\n\n--cluster string\n\nThe name of the kubeconfig cluster to use\n\n--context string\n\nThe name of the kubeconfig context to use\n\n--disable-compression\n\nIf true, opt-out of response compression for all requeLine truncated
{"text": "##\n\nUnset an individual value in a kubeconfig file.\n\nPROPERTY_NAME is a dot delimited name where each token represents either an attribute name or a map key. Map keys may not contain dots.\n\n```\nkubectl config unset PROPERTY_NAME\n```\n\n##\n\n```\n# Unset the current-context\nkubectl config unset current-context\n\n# Unset namespace in foo context\nkubectl config unset contexts.foo.namespace\n```\n\n##\n\n-h, --help\n\nhelp for unset\n\n##\n\n--as string\n\nUsername to impersonate for the operation. User could be a regular user or a service account in a namespace.\n\n--as-group strings\n\nGroup to impersonate for the operation, this flag can be repeated to specify multiple groups.\n\n--as-uid string\n\nUID to impersonate for the operation.\n\n--as-user-extra strings\n\nUser extras to impersonate for the operation, this flag can be repeated to specify multiple values for the same key.\n\n--cache-dir string     Default: \"$HOME/.kube/cache\"\n\nDefault cache directory\n\n--certificate-authority string\n\nPath to a cert file for the certificate authority\n\n--client-certificate string\n\nPath to a client certificate file for TLS\n\n--client-key string\n\nPath to a client key file for TLS\n\n--cluster string\n\nThe name of the kubeconfig cluster to use\n\n--context string\n\nThe name of the kubeconfig context to use\n\n--disable-compression\n\nIf true, opt-out of response compression for all requests to the server\n\n--insecure-skip-tls-verify\n\nIf true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure\n\n--kubeconfig string\n\nuse a particular kubeconfig file\n\n--kuberc string\n\nPath to the kuberc file to use for preferences. This can be disabled by exporting KUBECTL_KUBERC=false feature gate or turning off the feature KUBERC=off.\n\n--match-server-version\n\nRequire server version to match client version\n\n-n, --namespace string\n\nIf present, the namespace scope for this CLI request\n\n--password string\n\nPassword for basic authentication to the API server\n\n--profile string     Default: \"none\"\n\nName of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex|trace)\n\n--profile-output string     Default: \"profile.pprof\"\n\nName of the file to write the profile to\n\n--proxy-url string\n\nProxy URL to use for requests to the API server\n\n--request-timeout string     Default: \"0\"\n\nThe length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests.\n\n-s, --server string\n\nThe address and port of the Kubernetes API server\n\n--storage-driver-buffer-duration duration     Default: 1m0s\n\nWrites in the storage driver will be buffered for this duration, and committed to the non memory backends as a single transaction\n\n--storage-driver-db string     Default: \"cadvisor\"\n\ndatabase name\n\n--storage-driver-host string     Default: \"localhost:8086\"\n\ndatabase host:port\n\n--storage-driver-password string     Default: \"root\"\n\ndatabase password\n\n--storage-driver-secure\n\nuse secure connection with database\n\n--storage-driver-table string     Default: \"stats\"\n\ntable name\n\n--storage-driver-user string     Default: \"root\"\n\ndatabase username\n\n--tls-server-name string\n\nServer name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used\n\n--token string\n\nBearer token for authentication to the API server\n\n--user string\n\nThe name of the kubeconfig user to use\n\n--username string\n\nUsername for basic authentication to the API server\n\n--version version[=true]\n\n--version, --version=raw prints version information and quits; --version=vX.Y.Z... sets the reported version\n\n--warnings-as-errors\n\nTreat warnings received from the server as errors and exit with a non-zero exit code\n\n##\n\n* [kubectl config](../) - Modify kubeconfig files", "source": "content/en/docs/reference/kubectl/generated/kubectl_config/kubectl_config_unset.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "##\n\nCreate a TLS secret from the given public/private key pair.\n\nThe public/private key pair must exist beforehand. The public key certificate must be .PEM encoded and match the given private key.\n\n```\nkubectl create secret tls NAME --cert=path/to/cert/file --key=path/to/key/file [--dry-run=server|client|none]\n```\n\n##\n\n```\n# Create a new TLS secret named tls-secret with the given key pair\nkubectl create secret tls tls-secret --cert=path/to/tls.crt --key=path/to/tls.key\n```\n\n##\n\n--allow-missing-template-keys     Default: true\n\nIf true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.\n\n--append-hash\n\nAppend a hash of the secret to its name.\n\n--cert string\n\nPath to PEM encoded public key certificate.\n\n--dry-run string[=\"unchanged\"]     Default: \"none\"\n\nMust be \"none\", \"server\", or \"client\". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.\n\n--field-manager string     Default: \"kubectl-create\"\n\nName of the manager used to track field ownership.\n\n-h, --help\n\nhelp for tls\n\n--key string\n\nPath to private key associated with given certificate.\n\n-o, --output string\n\nOutput format. One of: (json, yaml, kyaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file).\n\n--save-config\n\nIf true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.\n\n--show-managed-fields\n\nIf true, keep the managedFields when printing objects in JSON or YAML format.\n\n--template string\n\nTemplate string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].\n\n--validate string[=\"strict\"]     Default: \"strict\"\n\nMust be one of: strict (or true), warn, ignore (or false). \"true\" or \"strict\" will use a schema to validate the input and fail the request if invalid. It will perform server side validation if ServerSideFieldValidation is enabled on the api-server, but will fall back to less reliable client-side validation if not. \"warn\" will warn about unknown or duplicate fields without blocking the request if server-side field validation is enabled on the API server, and behave as \"ignore\" otherwise. \"false\" or \"ignore\" will not perform any schema validation, silently dropping any unknown or duplicate fields.\n\n##\n\n--as string\n\nUsername to impersonate for the operation. User could be a regular user or a service account in a namespace.\n\n--as-group strings\n\nGroup to impersonate for the operation, this flag can be repeated to specify multiple groups.\n\n--as-uid string\n\nUID to impersonate for the operation.\n\n--as-user-extra strings\n\nUser extras to impersonate for the operation, this flag can be repeated to specify multiple values for the same key.\n\n--cache-dir string     Default: \"$HOME/.kube/cache\"\n\nDefault cache directory\n\n--certificate-authority string\n\nPath to a cert file for the certificate authority\n\n--client-certificate string\n\nPath to a client certificate file for TLS\n\n--client-key string\n\nPath to a client key file for TLS\n\n--cluster string\n\nThe name of the kubeconfig cluster to use\n\n--context string\n\nThe name of the kubeconfig context to use\n\n--disable-compression\n\nIf true, opt-out of response compression for all requests to the server\n\n--insecure-skip-tls-verify\n\nIf true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure\n\n--kubeconfig string\n\nPath to the kubeconfig file to use for CLI requests.\n\n--kuberc string\n\nPath to the kuberc file to use for preferences. This can be disabled by exporting KUBECTL_KUBERC=false feature gate or turning off the feature KUBERC=off.\n\n--match-server-version\n\nRequire server version to match client version\n\n-n, --namespace string\n\nIf present, the namespace scope for this CLI request\n\n--password string\n\nPassword for basic authentication to the API server\n\n--profile string     Default: \"none\"\n\nName of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex|trace)\n\n--profile-output string     Default: \"profile.pprof\"\n\nName of the file to write the profile to\n\n--proxy-url string\n\nProxy URL to use for requests to the API server\n\n--request-timeout string     Default: \"0\"\n\nThe length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests.\n\n-s, --server string\n\nThe address and port of the KubeLine truncated
{"text": "##\n\nCreate a service using a specified subcommand.\n\n```\nkubectl create service [flags]\n```\n\n##\n\n-h, --help\n\nhelp for service\n\n##\n\n--as string\n\nUsername to impersonate for the operation. User could be a regular user or a service account in a namespace.\n\n--as-group strings\n\nGroup to impersonate for the operation, this flag can be repeated to specify multiple groups.\n\n--as-uid string\n\nUID to impersonate for the operation.\n\n--as-user-extra strings\n\nUser extras to impersonate for the operation, this flag can be repeated to specify multiple values for the same key.\n\n--cache-dir string     Default: \"$HOME/.kube/cache\"\n\nDefault cache directory\n\n--certificate-authority string\n\nPath to a cert file for the certificate authority\n\n--client-certificate string\n\nPath to a client certificate file for TLS\n\n--client-key string\n\nPath to a client key file for TLS\n\n--cluster string\n\nThe name of the kubeconfig cluster to use\n\n--context string\n\nThe name of the kubeconfig context to use\n\n--disable-compression\n\nIf true, opt-out of response compression for all requests to the server\n\n--insecure-skip-tls-verify\n\nIf true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure\n\n--kubeconfig string\n\nPath to the kubeconfig file to use for CLI requests.\n\n--kuberc string\n\nPath to the kuberc file to use for preferences. This can be disabled by exporting KUBECTL_KUBERC=false feature gate or turning off the feature KUBERC=off.\n\n--match-server-version\n\nRequire server version to match client version\n\n-n, --namespace string\n\nIf present, the namespace scope for this CLI request\n\n--password string\n\nPassword for basic authentication to the API server\n\n--profile string     Default: \"none\"\n\nName of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex|trace)\n\n--profile-output string     Default: \"profile.pprof\"\n\nName of the file to write the profile to\n\n--proxy-url string\n\nProxy URL to use for requests to the API server\n\n--request-timeout string     Default: \"0\"\n\nThe length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests.\n\n-s, --server string\n\nThe address and port of the Kubernetes API server\n\n--storage-driver-buffer-duration duration     Default: 1m0s\n\nWrites in the storage driver will be buffered for this duration, and committed to the non memory backends as a single transaction\n\n--storage-driver-db string     Default: \"cadvisor\"\n\ndatabase name\n\n--storage-driver-host string     Default: \"localhost:8086\"\n\ndatabase host:port\n\n--storage-driver-password string     Default: \"root\"\n\ndatabase password\n\n--storage-driver-secure\n\nuse secure connection with database\n\n--storage-driver-table string     Default: \"stats\"\n\ntable name\n\n--storage-driver-user string     Default: \"root\"\n\ndatabase username\n\n--tls-server-name string\n\nServer name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used\n\n--token string\n\nBearer token for authentication to the API server\n\n--user string\n\nThe name of the kubeconfig user to use\n\n--username string\n\nUsername for basic authentication to the API server\n\n--version version[=true]\n\n--version, --version=raw prints version information and quits; --version=vX.Y.Z... sets the reported version\n\n--warnings-as-errors\n\nTreat warnings received from the server as errors and exit with a non-zero exit code\n\n##\n\n* [kubectl create](../) - Create a resource from a file or from stdin\n* [kubectl create service clusterip](../kubectl_create_service_clusterip/) - Create a ClusterIP service\n* [kubectl create service externalname](../kubectl_create_service_externalname/) - Create an ExternalName service\n* [kubectl create service loadbalancer](../kubectl_create_service_loadbalancer/) - Create a LoadBalancer service\n* [kubectl create service nodeport](../kubectl_create_service_nodeport/) - Create a NodePort service", "source": "content/en/docs/reference/kubectl/generated/kubectl_create/kubectl_create_service.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "##\n\nCreate a LoadBalancer service with the specified name.\n\n```\nkubectl create service loadbalancer NAME [--tcp=port:targetPort] [--dry-run=server|client|none]\n```\n\n##\n\n```\n# Create a new LoadBalancer service named my-lbs\nkubectl create service loadbalancer my-lbs --tcp=5678:8080\n```\n\n##\n\n--allow-missing-template-keys     Default: true\n\nIf true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.\n\n--dry-run string[=\"unchanged\"]     Default: \"none\"\n\nMust be \"none\", \"server\", or \"client\". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.\n\n--field-manager string     Default: \"kubectl-create\"\n\nName of the manager used to track field ownership.\n\n-h, --help\n\nhelp for loadbalancer\n\n-o, --output string\n\nOutput format. One of: (json, yaml, kyaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file).\n\n--save-config\n\nIf true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.\n\n--show-managed-fields\n\nIf true, keep the managedFields when printing objects in JSON or YAML format.\n\n--tcp strings\n\nPort pairs can be specified as '<port>:<targetPort>'.\n\n--template string\n\nTemplate string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].\n\n--validate string[=\"strict\"]     Default: \"strict\"\n\nMust be one of: strict (or true), warn, ignore (or false). \"true\" or \"strict\" will use a schema to validate the input and fail the request if invalid. It will perform server side validation if ServerSideFieldValidation is enabled on the api-server, but will fall back to less reliable client-side validation if not. \"warn\" will warn about unknown or duplicate fields without blocking the request if server-side field validation is enabled on the API server, and behave as \"ignore\" otherwise. \"false\" or \"ignore\" will not perform any schema validation, silently dropping any unknown or duplicate fields.\n\n##\n\n--as string\n\nUsername to impersonate for the operation. User could be a regular user or a service account in a namespace.\n\n--as-group strings\n\nGroup to impersonate for the operation, this flag can be repeated to specify multiple groups.\n\n--as-uid string\n\nUID to impersonate for the operation.\n\n--as-user-extra strings\n\nUser extras to impersonate for the operation, this flag can be repeated to specify multiple values for the same key.\n\n--cache-dir string     Default: \"$HOME/.kube/cache\"\n\nDefault cache directory\n\n--certificate-authority string\n\nPath to a cert file for the certificate authority\n\n--client-certificate string\n\nPath to a client certificate file for TLS\n\n--client-key string\n\nPath to a client key file for TLS\n\n--cluster string\n\nThe name of the kubeconfig cluster to use\n\n--context string\n\nThe name of the kubeconfig context to use\n\n--disable-compression\n\nIf true, opt-out of response compression for all requests to the server\n\n--insecure-skip-tls-verify\n\nIf true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure\n\n--kubeconfig string\n\nPath to the kubeconfig file to use for CLI requests.\n\n--kuberc string\n\nPath to the kuberc file to use for preferences. This can be disabled by exporting KUBECTL_KUBERC=false feature gate or turning off the feature KUBERC=off.\n\n--match-server-version\n\nRequire server version to match client version\n\n-n, --namespace string\n\nIf present, the namespace scope for this CLI request\n\n--password string\n\nPassword for basic authentication to the API server\n\n--profile string     Default: \"none\"\n\nName of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex|trace)\n\n--profile-output string     Default: \"profile.pprof\"\n\nName of the file to write the profile to\n\n--proxy-url string\n\nProxy URL to use for requests to the API server\n\n--request-timeout string     Default: \"0\"\n\nThe length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests.\n\n-s, --server string\n\nThe address and port of the Kubernetes API server\n\n--storage-driver-buffer-duration duration     Default: 1m0s\n\nWrites in the storage driver will be buffered for this duration, and committed to the non memory backends as a single transaction\n\n--storage-driver-db string     Default: \"cadvisor\"\n\ndatabase name\n\n--storage-dLine truncated
{"text": "##\n\nDiff configurations specified by file name or stdin between the current online configuration, and the configuration as it would be if applied.\n\nThe output is always YAML.\n\nKUBECTL_EXTERNAL_DIFF environment variable can be used to select your own diff command. Users can use external commands with params too, example: KUBECTL_EXTERNAL_DIFF=\"colordiff -N -u\"\n\nBy default, the \"diff\" command available in your path will be run with the \"-u\" (unified diff) and \"-N\" (treat absent files as empty) options.\n\nExit status: 0 No differences were found. 1 Differences were found. >1 Kubectl or diff failed with an error.\n\nNote: KUBECTL_EXTERNAL_DIFF, if used, is expected to follow that convention.\n\n```\nkubectl diff -f FILENAME\n```\n\n##\n\n```\n# Diff resources included in pod.json\nkubectl diff -f pod.json\n\n# Diff file read from stdin\ncat service.yaml | kubectl diff -f -\n```\n\n##\n\n--concurrency int     Default: 1\n\nNumber of objects to process in parallel when diffing against the live version. Larger number = faster, but more memory, I/O and CPU over that shorter period of time.\n\n--field-manager string     Default: \"kubectl-client-side-apply\"\n\nName of the manager used to track field ownership.\n\n-f, --filename strings\n\nFilename, directory, or URL to files contains the configuration to diff\n\n--force-conflicts\n\nIf true, server-side apply will force the changes against conflicts.\n\n-h, --help\n\nhelp for diff\n\n-k, --kustomize string\n\nProcess the kustomization directory. This flag can't be used together with -f or -R.\n\n--prune\n\nInclude resources that would be deleted by pruning. Can be used with -l and default shows all resources would be pruned\n\n--prune-allowlist strings\n\nOverwrite the default allowlist with <group/version/kind> for --prune\n\n-R, --recursive\n\nProcess the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.\n\n-l, --selector string\n\nSelector (label query) to filter on, supports '=', '==', '!=', 'in', 'notin'.(e.g. -l key1=value1,key2=value2,key3 in (value3)). Matching objects must satisfy all of the specified label constraints.\n\n--server-side\n\nIf true, apply runs in the server instead of the client.\n\n--show-managed-fields\n\nIf true, include managed fields in the diff.\n\n--show-secrets\n\nIf true, do not mask secret values in the diff.\n\n##\n\n--as string\n\nUsername to impersonate for the operation. User could be a regular user or a service account in a namespace.\n\n--as-group strings\n\nGroup to impersonate for the operation, this flag can be repeated to specify multiple groups.\n\n--as-uid string\n\nUID to impersonate for the operation.\n\n--as-user-extra strings\n\nUser extras to impersonate for the operation, this flag can be repeated to specify multiple values for the same key.\n\n--cache-dir string     Default: \"$HOME/.kube/cache\"\n\nDefault cache directory\n\n--certificate-authority string\n\nPath to a cert file for the certificate authority\n\n--client-certificate string\n\nPath to a client certificate file for TLS\n\n--client-key string\n\nPath to a client key file for TLS\n\n--cluster string\n\nThe name of the kubeconfig cluster to use\n\n--context string\n\nThe name of the kubeconfig context to use\n\n--disable-compression\n\nIf true, opt-out of response compression for all requests to the server\n\n--insecure-skip-tls-verify\n\nIf true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure\n\n--kubeconfig string\n\nPath to the kubeconfig file to use for CLI requests.\n\n--kuberc string\n\nPath to the kuberc file to use for preferences. This can be disabled by exporting KUBECTL_KUBERC=false feature gate or turning off the feature KUBERC=off.\n\n--match-server-version\n\nRequire server version to match client version\n\n-n, --namespace string\n\nIf present, the namespace scope for this CLI request\n\n--password string\n\nPassword for basic authentication to the API server\n\n--profile string     Default: \"none\"\n\nName of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex|trace)\n\n--profile-output string     Default: \"profile.pprof\"\n\nName of the file to write the profile to\n\n--proxy-url string\n\nProxy URL to use for requests to the API server\n\n--request-timeout string     Default: \"0\"\n\nThe length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests.\n\n-s, --server string\n\nThe address and port of the Kubernetes API server\n\n--storage-driver-buffer-duration duration     Default: 1m0s\n\nWrites in the storage driver will be buffered for this duration, and committed to the non memory backends as a single transaction\n\n--storage-driver-db string     Default: \"cadvisor\"\n\ndaLine truncated
{"text": "##\n\nExpose a resource as a new Kubernetes service.\n\nLooks up a deployment, service, replica set, replication controller or pod by name and uses the selector for that resource as the selector for a new service on the specified port. A deployment or replica set will be exposed as a service only if its selector is convertible to a selector that service supports, i.e. when the selector contains only the matchLabels component. Note that if no port is specified via --port and the exposed resource has multiple ports, all will be re-used by the new service. Also if no labels are specified, the new service will re-use the labels from the resource it exposes.\n\nPossible resources include (case insensitive):\n\npod (po), service (svc), replicationcontroller (rc), deployment (deploy), replicaset (rs)\n\n```\nkubectl expose (-f FILENAME | TYPE NAME) [--port=port] [--protocol=TCP|UDP|SCTP] [--target-port=number-or-name] [--name=name] [--external-ip=external-ip-of-service] [--type=type]\n```\n\n##\n\n```\n# Create a service for a replicated nginx, which serves on port 80 and connects to the containers on port 8000\nkubectl expose rc nginx --port=80 --target-port=8000\n\n# Create a service for a replication controller identified by type and name specified in \"nginx-controller.yaml\", which serves on port 80 and connects to the containers on port 8000\nkubectl expose -f nginx-controller.yaml --port=80 --target-port=8000\n\n# Create a service for a pod valid-pod, which serves on port 444 with the name \"frontend\"\nkubectl expose pod valid-pod --port=444 --name=frontend\n\n# Create a second service based on the above service, exposing the container port 8443 as port 443 with the name \"nginx-https\"\nkubectl expose service nginx --port=443 --target-port=8443 --name=nginx-https\n\n# Create a service for a replicated streaming application on port 4100 balancing UDP traffic and named 'video-stream'.\nkubectl expose rc streamer --port=4100 --protocol=UDP --name=video-stream\n\n# Create a service for a replicated nginx using replica set, which serves on port 80 and connects to the containers on port 8000\nkubectl expose rs nginx --port=80 --target-port=8000\n\n# Create a service for an nginx deployment, which serves on port 80 and connects to the containers on port 8000\nkubectl expose deployment nginx --port=80 --target-port=8000\n```\n\n##\n\n--allow-missing-template-keys     Default: true\n\nIf true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.\n\n--cluster-ip string\n\nClusterIP to be assigned to the service. Leave empty to auto-allocate, or set to 'None' to create a headless service.\n\n--dry-run string[=\"unchanged\"]     Default: \"none\"\n\nMust be \"none\", \"server\", or \"client\". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.\n\n--external-ip string\n\nAdditional external IP address (not managed by Kubernetes) to accept for the service. If this IP is routed to a node, the service can be accessed by this IP in addition to its generated service IP.\n\n--field-manager string     Default: \"kubectl-expose\"\n\nName of the manager used to track field ownership.\n\n-f, --filename strings\n\nFilename, directory, or URL to files identifying the resource to expose a service\n\n-h, --help\n\nhelp for expose\n\n-k, --kustomize string\n\nProcess the kustomization directory. This flag can't be used together with -f or -R.\n\n-l, --labels string\n\nLabels to apply to the service created by this call.\n\n--load-balancer-ip string\n\nIP to assign to the LoadBalancer. If empty, an ephemeral IP will be created and used (cloud-provider specific).\n\n--name string\n\nThe name for the newly created object.\n\n-o, --output string\n\nOutput format. One of: (json, yaml, kyaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file).\n\n--override-type string     Default: \"merge\"\n\nThe method used to override the generated object: json, merge, or strategic.\n\n--overrides string\n\nAn inline JSON override for the generated object. If this is non-empty, it is used to override the generated object. Requires that the object supply a valid apiVersion field.\n\n--port string\n\nThe port that the service should serve on. Copied from the resource being exposed, if unspecified\n\n--protocol string\n\nThe network protocol for the service to be created. Default is 'TCP'.\n\n-R, --recursive\n\nProcess the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.\n\n--save-config\n\nIf true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.\n\Line truncated
{"text": "##\n\nProvides utilities for interacting with plugins.\n\nPlugins provide extended functionality that is not part of the major command-line distribution. Please refer to the documentation and examples for more information about how write your own plugins.\n\nThe easiest way to discover and install plugins is via the kubernetes sub-project krew: [krew.sigs.k8s.io]. To install krew, visit https://krew.sigs.k8s.io/docs/user-guide/setup/install\n\n```\nkubectl plugin [flags]\n```\n\n##\n\n```\n# List all available plugins\nkubectl plugin list\n\n# List only binary names of available plugins without paths\nkubectl plugin list --name-only\n```\n\n##\n\n-h, --help\n\nhelp for plugin\n\n##\n\n--as string\n\nUsername to impersonate for the operation. User could be a regular user or a service account in a namespace.\n\n--as-group strings\n\nGroup to impersonate for the operation, this flag can be repeated to specify multiple groups.\n\n--as-uid string\n\nUID to impersonate for the operation.\n\n--as-user-extra strings\n\nUser extras to impersonate for the operation, this flag can be repeated to specify multiple values for the same key.\n\n--cache-dir string     Default: \"$HOME/.kube/cache\"\n\nDefault cache directory\n\n--certificate-authority string\n\nPath to a cert file for the certificate authority\n\n--client-certificate string\n\nPath to a client certificate file for TLS\n\n--client-key string\n\nPath to a client key file for TLS\n\n--cluster string\n\nThe name of the kubeconfig cluster to use\n\n--context string\n\nThe name of the kubeconfig context to use\n\n--disable-compression\n\nIf true, opt-out of response compression for all requests to the server\n\n--insecure-skip-tls-verify\n\nIf true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure\n\n--kubeconfig string\n\nPath to the kubeconfig file to use for CLI requests.\n\n--kuberc string\n\nPath to the kuberc file to use for preferences. This can be disabled by exporting KUBECTL_KUBERC=false feature gate or turning off the feature KUBERC=off.\n\n--match-server-version\n\nRequire server version to match client version\n\n-n, --namespace string\n\nIf present, the namespace scope for this CLI request\n\n--password string\n\nPassword for basic authentication to the API server\n\n--profile string     Default: \"none\"\n\nName of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex|trace)\n\n--profile-output string     Default: \"profile.pprof\"\n\nName of the file to write the profile to\n\n--proxy-url string\n\nProxy URL to use for requests to the API server\n\n--request-timeout string     Default: \"0\"\n\nThe length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests.\n\n-s, --server string\n\nThe address and port of the Kubernetes API server\n\n--storage-driver-buffer-duration duration     Default: 1m0s\n\nWrites in the storage driver will be buffered for this duration, and committed to the non memory backends as a single transaction\n\n--storage-driver-db string     Default: \"cadvisor\"\n\ndatabase name\n\n--storage-driver-host string     Default: \"localhost:8086\"\n\ndatabase host:port\n\n--storage-driver-password string     Default: \"root\"\n\ndatabase password\n\n--storage-driver-secure\n\nuse secure connection with database\n\n--storage-driver-table string     Default: \"stats\"\n\ntable name\n\n--storage-driver-user string     Default: \"root\"\n\ndatabase username\n\n--tls-server-name string\n\nServer name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used\n\n--token string\n\nBearer token for authentication to the API server\n\n--user string\n\nThe name of the kubeconfig user to use\n\n--username string\n\nUsername for basic authentication to the API server\n\n--version version[=true]\n\n--version, --version=raw prints version information and quits; --version=vX.Y.Z... sets the reported version\n\n--warnings-as-errors\n\nTreat warnings received from the server as errors and exit with a non-zero exit code\n\n##\n\n* [kubectl](../kubectl/) - kubectl controls the Kubernetes cluster manager\n* [kubectl plugin list](kubectl_plugin_list/) - List all visible plugin executables on a user's PATH", "source": "content/en/docs/reference/kubectl/generated/kubectl_plugin/_index.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "##\n\nMark the provided resource as paused.\n\nPaused resources will not be reconciled by a controller. Use \"kubectl rollout resume\" to resume a paused resource. Currently only deployments support being paused.\n\n```\nkubectl rollout pause RESOURCE\n```\n\n##\n\n```\n# Mark the nginx deployment as paused\n# Any current state of the deployment will continue its function; new updates\n# to the deployment will not have an effect as long as the deployment is paused\nkubectl rollout pause deployment/nginx\n```\n\n##\n\n--allow-missing-template-keys     Default: true\n\nIf true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.\n\n--field-manager string     Default: \"kubectl-rollout\"\n\nName of the manager used to track field ownership.\n\n-f, --filename strings\n\nFilename, directory, or URL to files identifying the resource to get from a server.\n\n-h, --help\n\nhelp for pause\n\n-k, --kustomize string\n\nProcess the kustomization directory. This flag can't be used together with -f or -R.\n\n-o, --output string\n\nOutput format. One of: (json, yaml, kyaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file).\n\n-R, --recursive\n\nProcess the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.\n\n-l, --selector string\n\nSelector (label query) to filter on, supports '=', '==', '!=', 'in', 'notin'.(e.g. -l key1=value1,key2=value2,key3 in (value3)). Matching objects must satisfy all of the specified label constraints.\n\n--show-managed-fields\n\nIf true, keep the managedFields when printing objects in JSON or YAML format.\n\n--template string\n\nTemplate string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].\n\n##\n\n--as string\n\nUsername to impersonate for the operation. User could be a regular user or a service account in a namespace.\n\n--as-group strings\n\nGroup to impersonate for the operation, this flag can be repeated to specify multiple groups.\n\n--as-uid string\n\nUID to impersonate for the operation.\n\n--as-user-extra strings\n\nUser extras to impersonate for the operation, this flag can be repeated to specify multiple values for the same key.\n\n--cache-dir string     Default: \"$HOME/.kube/cache\"\n\nDefault cache directory\n\n--certificate-authority string\n\nPath to a cert file for the certificate authority\n\n--client-certificate string\n\nPath to a client certificate file for TLS\n\n--client-key string\n\nPath to a client key file for TLS\n\n--cluster string\n\nThe name of the kubeconfig cluster to use\n\n--context string\n\nThe name of the kubeconfig context to use\n\n--disable-compression\n\nIf true, opt-out of response compression for all requests to the server\n\n--insecure-skip-tls-verify\n\nIf true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure\n\n--kubeconfig string\n\nPath to the kubeconfig file to use for CLI requests.\n\n--kuberc string\n\nPath to the kuberc file to use for preferences. This can be disabled by exporting KUBECTL_KUBERC=false feature gate or turning off the feature KUBERC=off.\n\n--match-server-version\n\nRequire server version to match client version\n\n-n, --namespace string\n\nIf present, the namespace scope for this CLI request\n\n--password string\n\nPassword for basic authentication to the API server\n\n--profile string     Default: \"none\"\n\nName of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex|trace)\n\n--profile-output string     Default: \"profile.pprof\"\n\nName of the file to write the profile to\n\n--proxy-url string\n\nProxy URL to use for requests to the API server\n\n--request-timeout string     Default: \"0\"\n\nThe length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests.\n\n-s, --server string\n\nThe address and port of the Kubernetes API server\n\n--storage-driver-buffer-duration duration     Default: 1m0s\n\nWrites in the storage driver will be buffered for this duration, and committed to the non memory backends as a single transaction\n\n--storage-driver-db string     Default: \"cadvisor\"\n\ndatabase name\n\n--storage-driver-host string     Default: \"localhost:8086\"\n\ndatabase host:port\n\n--storage-driver-password string     Default: \"root\"\n\ndatabase password\n\n--storage-driver-secure\n\nuse secure connection with database\n\n--storage-driver-table string     Default: \"stats\"\n\ntable name\n\n--storage-driver-user string     Default: \"root\"\n\ndatabase username\n\n--tls-server-name string\n\nServer name to usLine truncated
{"text": "##\n\nCreate and run a particular image in a pod.\n\n```\nkubectl run NAME --image=image [--env=\"key=value\"] [--port=port] [--dry-run=server|client] [--overrides=inline-json] [--command] -- [COMMAND] [args...]\n```\n\n##\n\n```\n# Start a nginx pod\nkubectl run nginx --image=nginx\n\n# Start a hazelcast pod and let the container expose port 5701\nkubectl run hazelcast --image=hazelcast/hazelcast --port=5701\n\n# Start a hazelcast pod and set environment variables \"DNS_DOMAIN=cluster\" and \"POD_NAMESPACE=default\" in the container\nkubectl run hazelcast --image=hazelcast/hazelcast --env=\"DNS_DOMAIN=cluster\" --env=\"POD_NAMESPACE=default\"\n\n# Start a hazelcast pod and set labels \"app=hazelcast\" and \"env=prod\" in the container\nkubectl run hazelcast --image=hazelcast/hazelcast --labels=\"app=hazelcast,env=prod\"\n\n# Dry run; print the corresponding API objects without creating them\nkubectl run nginx --image=nginx --dry-run=client\n\n# Start a nginx pod, but overload the spec with a partial set of values parsed from JSON\nkubectl run nginx --image=nginx --overrides='{ \"apiVersion\": \"v1\", \"spec\": { ... } }'\n\n# Start a busybox pod and keep it in the foreground, don't restart it if it exits\nkubectl run -i -t busybox --image=busybox --restart=Never\n\n# Start the nginx pod using the default command, but use custom arguments (arg1 .. argN) for that command\nkubectl run nginx --image=nginx -- ...\n\n# Start the nginx pod using a different command and custom arguments\nkubectl run nginx --image=nginx --command -- ...\n```\n\n##\n\n--allow-missing-template-keys     Default: true\n\nIf true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.\n\n--annotations strings\n\nAnnotations to apply to the pod.\n\n--attach\n\nIf true, wait for the Pod to start running, and then attach to the Pod as if 'kubectl attach ...' were called. Default false, unless '-i/--stdin' is set, in which case the default is true. With '--restart=Never' the exit code of the container process is returned.\n\n--cascade string[=\"background\"]     Default: \"background\"\n\nMust be \"background\", \"orphan\", or \"foreground\". Selects the deletion cascading strategy for the dependents (e.g. Pods created by a ReplicationController). Defaults to background.\n\n--command\n\nIf true and extra arguments are present, use them as the 'command' field in the container, rather than the 'args' field which is the default.\n\n--detach-keys string     Default: \"ctrl-p,ctrl-q\"\n\nOverride the key sequence for detaching a container.\n\n--dry-run string[=\"unchanged\"]     Default: \"none\"\n\nMust be \"none\", \"server\", or \"client\". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.\n\n--env strings\n\nEnvironment variables to set in the container.\n\n--expose --port\n\nIf true, create a ClusterIP service associated with the pod. Requires --port.\n\n--field-manager string     Default: \"kubectl-run\"\n\nName of the manager used to track field ownership.\n\n--force\n\nIf true, immediately remove resources from API and bypass graceful deletion. Note that immediate deletion of some resources may result in inconsistency or data loss and requires confirmation.\n\n--grace-period int     Default: -1\n\nPeriod of time in seconds given to the resource to terminate gracefully. Ignored if negative. Set to 1 for immediate shutdown. Can only be set to 0 when --force is true (force deletion).\n\n-h, --help\n\nhelp for run\n\n--image string\n\nThe image for the container to run.\n\n--image-pull-policy string\n\nThe image pull policy for the container. If left empty, this value will not be specified by the client and defaulted by the server.\n\n-k, --kustomize string\n\nProcess a kustomization directory. This flag can't be used together with -f or -R.\n\n-l, --labels string\n\nComma separated labels to apply to the pod. Will override previous values.\n\n--leave-stdin-open\n\nIf the pod is started in interactive mode or with stdin, leave stdin open after the first attach completes. By default, stdin will be closed after the first attach completes.\n\n-o, --output string\n\nOutput format. One of: (json, yaml, kyaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file).\n\n--override-type string     Default: \"merge\"\n\nThe method used to override the generated object: json, merge, or strategic.\n\n--overrides string\n\nAn inline JSON override for the generated object. If this is non-empty, it is used to override the generated object. Requires that the object supply a valid apiVersion field.\n\n--pod-running-timeout duration     Default: 1m0s\n\nThe length of time (like 5s, 2m, or 3h, higher than zero) to wait until at least one pod is running\n\n--port string\n\nTLine truncated
{"text": "## Resource Types\n\n- [Summary](#Summary)\n\n## `AcceleratorStats` {#AcceleratorStats}\n\n**Appears in:**\n\n- [ContainerStats](#ContainerStats)\n\nAcceleratorStats contains stats for accelerators attached to the container.\n\nField Description\n\nmake [Required]\n\nstring\n\nMake of the accelerator (nvidia, amd, google etc.)\n\nmodel [Required]\n\nstring\n\nModel of the accelerator (tesla-p100, tesla-k80 etc.)\n\nid [Required]\n\nstring\n\nID of the accelerator.\n\nmemoryTotal [Required]\n\nuint64\n\nTotal accelerator memory.\nunit: bytes\n\nmemoryUsed [Required]\n\nuint64\n\nTotal accelerator memory allocated.\nunit: bytes\n\ndutyCycle [Required]\n\nuint64\n\nPercent of time over the past sample period (10s) during which\nthe accelerator was actively processing.\n\n## `CPUStats` {#CPUStats}\n\n**Appears in:**\n\n- [ContainerStats](#ContainerStats)\n\n- [NodeStats](#NodeStats)\n\n- [PodStats](#PodStats)\n\nCPUStats contains data about CPU usage.\n\nField Description\n\ntime [Required]\n\nmeta/v1.Time\n\nThe time at which these stats were updated.\n\nusageNanoCores\n\nuint64\n\nTotal CPU usage (sum of all cores) averaged over the sample window.\nThe \"core\" unit can be interpreted as CPU core-nanoseconds per second.\n\nusageCoreNanoSeconds\n\nuint64\n\nCumulative CPU usage (sum of all cores) since object creation.\n\npsi\n\nPSIStats\n\nCPU PSI stats.\n\n## `ContainerStats` {#ContainerStats}\n\n**Appears in:**\n\n- [NodeStats](#NodeStats)\n\n- [PodStats](#PodStats)\n\nContainerStats holds container-level unprocessed sample stats.\n\nField Description\n\nname [Required]\n\nstring\n\nReference to the measured container.\n\nstartTime [Required]\n\nmeta/v1.Time\n\nThe time at which data collection for this container was (re)started.\n\ncpu\n\nCPUStats\n\nStats pertaining to CPU resources.\n\nmemory\n\nMemoryStats\n\nStats pertaining to memory (RAM) resources.\n\nio\n\nIOStats\n\nStats pertaining to IO resources.\n\naccelerators [Required]\n\n[]AcceleratorStats\n\nMetrics for Accelerators. Each Accelerator corresponds to one element in the array.\n\nrootfs\n\nFsStats\n\nStats pertaining to container rootfs usage of filesystem resources.\nRootfs.UsedBytes is the number of bytes used for the container write layer.\n\nlogs\n\nFsStats\n\nStats pertaining to container logs usage of filesystem resources.\nLogs.UsedBytes is the number of bytes used for the container logs.\n\nuserDefinedMetrics [Required]\n\n[]UserDefinedMetric\n\nUser defined metrics that are exposed by containers in the pod. Typically, we expect only one container in the pod to be exposing user defined metrics. In the event of multiple containers exposing metrics, they will be combined here.\n\nswap\n\nSwapStats\n\nStats pertaining to swap resources. This is reported to non-windows systems only.\n\n## `FsStats` {#FsStats}\n\n**Appears in:**\n\n- [ContainerStats](#ContainerStats)\n\n- [NodeStats](#NodeStats)\n\n- [PodStats](#PodStats)\n\n- [RuntimeStats](#RuntimeStats)\n\n- [VolumeStats](#VolumeStats)\n\nFsStats contains data about filesystem usage.\n\nField Description\n\ntime [Required]\n\nmeta/v1.Time\n\nThe time at which these stats were updated.\n\navailableBytes\n\nuint64\n\nAvailableBytes represents the storage space available (bytes) for the filesystem.\n\ncapacityBytes\n\nuint64\n\nCapacityBytes represents the total capacity (bytes) of the filesystems underlying storage.\n\nusedBytes\n\nuint64\n\nUsedBytes represents the bytes used for a specific task on the filesystem.\nThis may differ from the total bytes used on the filesystem and may not equal CapacityBytes - AvailableBytes.\ne.g. For ContainerStats.Rootfs this is the bytes used by the container rootfs on the filesystem.\n\ninodesFree\n\nuint64\n\nInodesFree represents the free inodes in the filesystem.\n\ninodes\n\nuint64\n\nInodes represents the total inodes in the filesystem.\n\ninodesUsed [Required]\n\nuint64\n\nInodesUsed represents the inodes used by the filesystem\nThis may not equal Inodes - InodesFree because this filesystem may share inodes with other \"filesystems\"\ne.g. For ContainerStats.Rootfs, this is the inodes used only by that container, and does not count inodes used by other containers.\n\n## `IOStats` {#IOStats}\n\n**Appears in:**\n\n- [ContainerStats](#ContainerStats)\n\n- [NodeStats](#NodeStats)\n\n- [PodStats](#PodStats)\n\nIOStats contains data about IO usage.\n\nField Description\n\ntime [Required]\n\nmeta/v1.Time\n\nThe time at which these stats were updated.\n\npsi\n\nPSIStats\n\nIO PSI stats.\n\n## `InterfaceStats` {#InterfaceStats}\n\n**Appears in:**\n\n- [NetworkStats](#NetworkStats)\n\nInterfaceStats contains resource value data about interface.\n\nField Description\n\nname [Required]\n\nstring\n\nThe name of the interface\n\nrxBytes\n\nuint64\n\nCumulative count of bytes received.\n\nrxErrors\n\nuint64\n\nCumulative count of receive errors encountered.\n\ntxBytes\n\nuint64\n\nCumulative count of bytes transmitted.\n\ntxErrors\n\nuint64\n\nCumulLine truncated
{"text": "`apiVersion: admissionregistration.k8s.io/v1`\n\n`import \"k8s.io/api/admissionregistration/v1\"`\n\n## MutatingAdmissionPolicyBinding {#MutatingAdmissionPolicyBinding}\n\nMutatingAdmissionPolicyBinding binds the MutatingAdmissionPolicy with parametrized resources. MutatingAdmissionPolicyBinding and the optional parameter resource together define how cluster administrators configure policies for clusters.\n\nFor a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding. Each evaluation is constrained by a [runtime cost budget](https://kubernetes.io/docs/reference/using-api/cel/#runtime-cost-budget).\n\nAdding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.\n\nField Description\n\napiVersion\nstring\nAPIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\n\nkind\nstring\nKind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\n\nmetadata\nObjectMeta\nmetadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.\n\nspec\nMutatingAdmissionPolicyBindingSpec\nspec defines the desired behavior of the MutatingAdmissionPolicyBinding.\n\n## MutatingAdmissionPolicyBindingSpec {#MutatingAdmissionPolicyBindingSpec}\n\nMutatingAdmissionPolicyBindingSpec defines the specification of the MutatingAdmissionPolicyBinding.\n\nField Description\n\nmatchResources\nMatchResources\nmatchResources limits what resources match this binding and may be mutated by it. Note that if matchResources matches a resource, the resource must also match a policy's matchConstraints and matchConditions before the resource may be mutated. When matchResources is unset, it does not constrain resource matching, and only the policy's matchConstraints and matchConditions must match for the resource to be mutated. Additionally, matchResources.resourceRules are optional and do not constraint matching when unset. Note that this is differs from MutatingAdmissionPolicy matchConstraints, where resourceRules are required. The CREATE, UPDATE and CONNECT operations are allowed. The DELETE operation may not be matched. '\\*' matches CREATE, UPDATE and CONNECT.\n\nparamRef\nParamRef\nparamRef specifies the parameter resource used to configure the admission control policy. It should point to a resource of the type specified in spec.ParamKind of the bound MutatingAdmissionPolicy. If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the MutatingAdmissionPolicy applied. If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param.\n\npolicyName\nstring\npolicyName references a MutatingAdmissionPolicy name which the MutatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.\n\n## MutatingAdmissionPolicyBindingList {#MutatingAdmissionPolicyBindingList}\n\nMutatingAdmissionPolicyBindingList is a list of MutatingAdmissionPolicyBinding.\n\nField Description\n\napiVersion\nstring\nAPIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\n\nitems   *\nMutatingAdmissionPolicyBinding array\nList of PolicyBinding.\n\nkind\nstring\nKind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\n\nmetadata\nListMeta\nmetadata is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\n\n## Operations {#Operations}\n\n### `post` Create\n\n#### HTTP Request\n\nPOST /apis/admissionregistration.k8s.io/v1/mutatingadmissionpolicybindings\n\n#### Query Parameters\n\nName Type Description\n\npretty\nstring\nIf 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or commLine truncated
{"text": "`apiVersion: admissionregistration.k8s.io/v1`\n\n`import \"k8s.io/api/admissionregistration/v1\"`\n\n## ValidatingWebhookConfiguration {#ValidatingWebhookConfiguration}\n\nValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it.\n\nField Description\n\napiVersion\nstring\nAPIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\n\nkind\nstring\nKind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\n\nmetadata\nObjectMeta\nmetadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.\n\nwebhooks\nValidatingWebhook array\npatch strategy: merge on key name\nwebhooks is a list of webhooks and the affected resources and operations.\n\n## ValidatingWebhookConfigurationList {#ValidatingWebhookConfigurationList}\n\nValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration.\n\nField Description\n\napiVersion\nstring\nAPIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\n\nitems   *\nValidatingWebhookConfiguration array\nList of ValidatingWebhookConfiguration.\n\nkind\nstring\nKind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\n\nmetadata\nListMeta\nmetadata is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\n\n## ValidatingWebhook {#ValidatingWebhook}\n\nValidatingWebhook describes an admission webhook and the resources and operations it applies to.\n\nField Description\n\nadmissionReviewVersions   *\nstring array\nadmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy.\n\nclientConfig   *\nWebhookClientConfig\nclientConfig defines how to communicate with the hook. Required\n\nfailurePolicy\nstring\nfailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail.\n\nPossible enum values:\n- `\"Fail\"` means that an error calling the webhook causes the admission to fail.\n- `\"Ignore\"` means that an error calling the webhook is ignored.\n\nmatchConditions\nMatchCondition array\npatch strategy: merge on key name\nmatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped. 2. If ALL matchConditions evaluate to TRUE, the webhook is called. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the error is ignored and the webhook is skipped\n\nmatchPolicy\nstring\nmatchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:Line truncated
{"text": "`apiVersion: apps/v1`\n\n`import \"k8s.io/api/apps/v1\"`\n\n## StatefulSet {#StatefulSet}\n\nStatefulSet represents a set of pods with consistent identities. Identities are defined as:\n- Network: A single stable DNS and hostname.\n- Storage: As many VolumeClaims as requested.\n\nThe StatefulSet guarantees that a given network identity will always map to the same storage identity.\n\nField Description\n\napiVersion\nstring\nAPIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\n\nkind\nstring\nKind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\n\nmetadata\nObjectMeta\nStandard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata\n\nspec   *\nStatefulSetSpec\nSpec defines the desired identities of pods in this set.\n\nstatus\nStatefulSetStatus\nStatus is the current status of Pods in this StatefulSet. This data may be out of date by some window of time.\n\n## StatefulSetSpec {#StatefulSetSpec}\n\nA StatefulSetSpec is the specification of a StatefulSet.\n\nField Description\n\nminReadySeconds\ninteger\nMinimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)\n\nordinals\nStatefulSetOrdinals\nordinals controls the numbering of replica indices in a StatefulSet. The default ordinals behavior assigns a \"0\" index to the first replica and increments the index by one for each additional replica requested.\n\npersistentVolumeClaimRetentionPolicy\nStatefulSetPersistentVolumeClaimRetentionPolicy\npersistentVolumeClaimRetentionPolicy describes the lifecycle of persistent volume claims created from volumeClaimTemplates. By default, all persistent volume claims are created as needed and retained until manually deleted. This policy allows the lifecycle to be altered, for example by deleting persistent volume claims when their stateful set is deleted, or when their pod is scaled down.\n\npodManagementPolicy\nstring\npodManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once.\n\nPossible enum values:\n- `\"OrderedReady\"` will create pods in strictly increasing order on scale up and strictly decreasing order on scale down, progressing only when the previous pod is ready or terminated. At most one pod will be changed at any time.\n- `\"Parallel\"` will create and delete pods as soon as the stateful set replica count is changed, and will not wait for pods to be ready or complete termination.\n\nreplicas\ninteger\nreplicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1.\n\nrevisionHistoryLimit\ninteger\nrevisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10.\n\nselector   *\nLabelSelector\nselector is a label query over pods that should match the replica count. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors\n\nserviceName\nstring\nserviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller.\n\ntemplate   *\nPodTemplateSpec\ntemplate is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. Each pod will be named with the format \\ -\\ . For eLine truncated
{"text": "`apiVersion: autoscaling/v2`\n\n`import \"k8s.io/api/autoscaling/v2\"`\n\n## HorizontalPodAutoscaler {#HorizontalPodAutoscaler}\n\nHorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified.\n\nField Description\n\napiVersion\nstring\nAPIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\n\nkind\nstring\nKind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\n\nmetadata\nObjectMeta\nmetadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata\n\nspec   *\nHorizontalPodAutoscalerSpec\nspec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.\n\nstatus\nHorizontalPodAutoscalerStatus\nstatus is the current information about the autoscaler.\n\n## HorizontalPodAutoscalerSpec {#HorizontalPodAutoscalerSpec}\n\nHorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.\n\nField Description\n\nbehavior\nHorizontalPodAutoscalerBehavior\nbehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively). If not set, the default HPAScalingRules for scale up and scale down are used.\n\nmaxReplicas   *\ninteger\nmaxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas.\n\nmetrics\nMetricSpec array\nmetrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. If not set, the default metric will be set to 80% average CPU utilization.\n\nminReplicas\ninteger\nminReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available.\n\nscaleTargetRef   *\nCrossVersionObjectReference\nscaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count.\n\n## HorizontalPodAutoscalerStatus {#HorizontalPodAutoscalerStatus}\n\nHorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.\n\nField Description\n\nconditions\nHorizontalPodAutoscalerCondition array\npatch strategy: merge on key type\nconditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met.\n\ncurrentMetrics\nMetricStatus array\ncurrentMetrics is the last read state of the metrics used by this autoscaler.\n\ncurrentReplicas\ninteger\ncurrentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler.\n\ndesiredReplicas   *\ninteger\ndesiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler.\n\nlastScaleTime\nTime\nlastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed.\n\nobservedGeneration\ninteger\nobservedGeneration is the most recent generation observed by this autoscaler.\n\n## HorizontalPodAutoscalerList {#HorizontalPodAutoscalerList}\n\nHorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects.\n\nField Description\n\napiVersion\nstring\nAPIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\n\nitems   *\nHorizontalPodAutoscaler array\nitems is the list of horizontal pod autoscaler objects.\n\nkind\nstring\nKind is a string value representing thLine truncated
{"text": "`apiVersion: coordination.k8s.io/v1`\n\n`import \"k8s.io/api/coordination/v1\"`\n\n## Lease {#Lease}\n\nLease defines a lease concept.\n\nField Description\n\napiVersion\nstring\nAPIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\n\nkind\nstring\nKind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\n\nmetadata\nObjectMeta\nmetadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata\n\nspec\nLeaseSpec\nspec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status\n\n## LeaseSpec {#LeaseSpec}\n\nLeaseSpec is a specification of a Lease.\n\nField Description\n\nacquireTime\nMicroTime\nacquireTime is a time when the current lease was acquired.\n\nholderIdentity\nstring\nholderIdentity contains the identity of the holder of a current lease. If Coordinated Leader Election is used, the holder identity must be equal to the elected LeaseCandidate.metadata.name field.\n\nleaseDurationSeconds\ninteger\nleaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measured against the time of last observed renewTime.\n\nleaseTransitions\ninteger\nleaseTransitions is the number of transitions of a lease between holders.\n\npreferredHolder\nstring\npreferredHolder signals to a lease holder that the lease has a more optimal holder and should be given up. This field can only be set if Strategy is also set.\n\nrenewTime\nMicroTime\nrenewTime is a time when the current holder of a lease has last updated the lease.\n\nstrategy\nstring\nstrategy indicates the strategy for picking the leader for coordinated leader election. If the field is not specified, there is no active coordination for this lease. (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.\n\n## LeaseList {#LeaseList}\n\nLeaseList is a list of Lease objects.\n\nField Description\n\napiVersion\nstring\nAPIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\n\nitems   *\nLease array\nitems is a list of schema objects.\n\nkind\nstring\nKind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\n\nmetadata\nListMeta\nStandard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata\n\n## Operations {#Operations}\n\n### `post` Create\n\n#### HTTP Request\n\nPOST /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases\n\n#### Path Parameters\n\nName Type Description\n\nnamespace\nstring\nobject name and auth scope, such as for teams and projects\n\n#### Query Parameters\n\nName Type Description\n\npretty\nstring\nIf 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).\n\ndryRun\nstring\nWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed\n\nfieldManager\nstring\nfieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\n\nfieldValidation\nstring\nfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will onlLine truncated
{"text": "`apiVersion: v1`\n\n`import \"k8s.io/api/core/v1\"`\n\n## ComponentStatus {#ComponentStatus}\n\nComponentStatus (and ComponentStatusList) holds the cluster validation info. Deprecated: This API is deprecated in v1.19+\n\nField Description\n\napiVersion\nstring\nAPIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\n\nconditions\nComponentCondition array\npatch strategy: merge on key type\nList of component conditions observed\n\nkind\nstring\nKind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\n\nmetadata\nObjectMeta\nStandard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata\n\n## ComponentStatusList {#ComponentStatusList}\n\nStatus of all the conditions for the component as a list of ComponentStatus objects. Deprecated: This API is deprecated in v1.19+\n\nField Description\n\napiVersion\nstring\nAPIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\n\nitems   *\nComponentStatus array\nList of ComponentStatus objects.\n\nkind\nstring\nKind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\n\nmetadata\nListMeta\nStandard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\n\n## ComponentCondition {#ComponentCondition}\n\nInformation about the condition of a component.\n\nField Description\n\nerror\nstring\nCondition error code for a component. For example, a health check error code.\n\nmessage\nstring\nMessage about the condition for a component. For example, information about a health check.\n\nstatus   *\nstring\nStatus of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\".\n\ntype   *\nstring\nType of condition for a component. Valid value: \"Healthy\"\n\n## Operations {#Operations}\n\n### `get` Read\n\n#### HTTP Request\n\nGET /api/v1/componentstatuses/{name}\n\n#### Path Parameters\n\nName Type Description\n\nname\nstring\nname of the ComponentStatus\n\n#### Query Parameters\n\nName Type Description\n\npretty\nstring\nIf 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).\n\n#### Response\n\nStatus Description Response\n\n200\nOK\nComponentStatus\n\n### `get` List\n\n#### HTTP Request\n\nGET /api/v1/componentstatuses\n\n#### Query Parameters\n\nName Type Description\n\nallowWatchBookmarks\nboolean\nallowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.\n\ncontinue\nstring\nThe continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modiLine truncated
{"text": "`apiVersion: v1`\n\n`import \"k8s.io/api/core/v1\"`\n\n## Node {#Node}\n\nNode is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd).\n\nField Description\n\napiVersion\nstring\nAPIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\n\nkind\nstring\nKind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\n\nmetadata\nObjectMeta\nStandard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata\n\nspec\nNodeSpec\nSpec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status\n\nstatus\nNodeStatus\nMost recently observed status of the node. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status\n\n## NodeSpec {#NodeSpec}\n\nNodeSpec describes the attributes that a node is created with.\n\nField Description\n\nconfigSource\nNodeConfigSource\nDeprecated: Previously used to specify the source of the node's configuration for the DynamicKubeletConfig feature. This feature is removed.\n\nexternalID\nstring\nDeprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966\n\npodCIDR\nstring\nPodCIDR represents the pod IP range assigned to the node.\n\npodCIDRs\nstring array\npatch strategy: merge\npodCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for each of IPv4 and IPv6.\n\npodPreemptionPolicy\nNodePodPreemptionPolicy\nPodPreemptionPolicy controls the node-level preemption behaviors for pods on this node. This is an alpha field and requires enabling the InPlacePodVerticalScalingSchedulerPreemption feature gate.\n\nproviderID\nstring\nID of the node assigned by the cloud provider in the format: \\ ://\\\n\ntaints\nTaint array\nIf specified, the node's taints.\n\nunschedulable\nboolean\nUnschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration\n\n## NodeStatus {#NodeStatus}\n\nNodeStatus is information about the current status of a node.\n\nField Description\n\naddresses\nNodeAddress array\npatch strategy: merge on key type\nList of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/reference/node/node-status/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See https://pr.k8s.io/79391 for an example. Consumers should assume that addresses can change during the lifetime of a Node. However, there are some exceptions where this may not be possible, such as Pods that inherit a Node's address in its own status or consumers of the downward API (status.hostIP).\n\nallocatable\nobject\nAllocatable represents the resources of a node that are available for scheduling. Defaults to Capacity.\n\ncapacity\nobject\nCapacity represents the total resources of a node. More info: https://kubernetes.io/docs/reference/node/node-status/#capacity\n\nconditions\nNodeCondition array\npatch strategy: merge on key type\nConditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/reference/node/node-status/#condition\n\nconfig\nNodeConfigStatus\nStatus of the config assigned to the node via the dynamic Kubelet config feature.\n\ndaemonEndpoints\nNodeDaemonEndpoints\nEndpoints of daemons running on the Node.\n\ndeclaredFeatures\nstring array\nDeclaredFeatures represents the features related to feature gates that are declared by the node.\n\nfeatures\nNodeFeatures\nFeatures describes the set of features implemented by the CRI implementation.\n\nimages\nContainerImage array\nList of container images on this node\n\nnodeInfo\nNodeSystemInfo\nSet of ids/uuids to uniquely identify the node. More info: https://kubernetes.io/docs/reference/node/node-status/#info\n\nphase\nstring\nNodePhase is the recently observed lifecycle phase of the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#phase The field is never populated, and now is deprecated.\n\nPossible enum values:\n- `\"Pending\"` means the node has been created/added by the system, but not coLine truncated
{"text": "`apiVersion: v1`\n\n`import \"k8s.io/api/core/v1\"`\n\n## PersistentVolumeClaim {#PersistentVolumeClaim}\n\nPersistentVolumeClaim is a user's request for and claim to a persistent volume\n\nField Description\n\napiVersion\nstring\nAPIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\n\nkind\nstring\nKind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\n\nmetadata\nObjectMeta\nStandard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata\n\nspec\nPersistentVolumeClaimSpec\nspec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims\n\nstatus\nPersistentVolumeClaimStatus\nstatus represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims\n\n## PersistentVolumeClaimSpec {#PersistentVolumeClaimSpec}\n\nPersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes\n\nField Description\n\naccessModes\nstring array\naccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1\n\ndataSource\nTypedLocalObjectReference\ndataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. If the namespace is specified, then dataSourceRef will not be copied to dataSource.\n\ndataSourceRef\nTypedObjectReference\ndataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the dataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, when namespace isn't specified in dataSourceRef, both fields (dataSource and dataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. When namespace is specified in dataSourceRef, dataSource isn't set to the same value and must be empty. There are three important differences between dataSource and dataSourceRef: * While dataSource only allows two specific types of objects, dataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While dataSource ignores disallowed values (dropping them), dataSourceRef preserves all values, and generates an error if a disallowed value is specified. * While dataSource only allows local objects, dataSourceRef allows objects in any namespaces. (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled.\n\nresources\nVolumeResourceRequirements\nresources represents the minimum resources the volume should have. Users are allowed to specify resource requirements that are lower than previous value but must still be higher than capacity recorded in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources\n\nselector\nLabelSelector\nselector is a label query over volumes to consider for binding.\n\nstorageClassName\nstring\nstorageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1\n\nvolumeAttributesClassName\nstring\nvolumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string or nil value indicates that no VolumeAttributesClass willLine truncated
{"text": "`apiVersion: meta/v1`\n\n`import \"k8s.io/apimachinery/pkg/apis/meta/v1\"`\n\n## Condition {#Condition}\n\nCondition contains details for one aspect of the current state of this API Resource.\n\nField Description\n\nlastTransitionTime   *\nTime\nlastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.\n\nmessage   *\nstring\nmessage is a human readable message indicating details about the transition. This may be an empty string.\n\nobservedGeneration\ninteger\nobservedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.\n\nreason   *\nstring\nreason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.\n\nstatus   *\nstring\nstatus of the condition, one of True, False, Unknown.\n\ntype   *\nstring\ntype of condition in CamelCase or in foo.example.com/CamelCase.", "source": "content/en/docs/reference/kubernetes-api/definitions/condition-v1-meta.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "`apiVersion: policy/v1`\n\n`import \"k8s.io/api/policy/v1\"`\n\n## Eviction {#Eviction}\n\nEviction evicts a pod from its node subject to certain policies and safety constraints. This is a subresource of Pod. A request to cause such an eviction is created by POSTing to .../pods/<pod name>/evictions.\n\nField Description\n\napiVersion\nstring\nAPIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\n\ndeleteOptions\nDeleteOptions\ndeleteOptions may be provided\n\nkind\nstring\nKind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\n\nmetadata\nObjectMeta\nmetadata describes the pod that is being evicted.", "source": "content/en/docs/reference/kubernetes-api/definitions/eviction-v1-policy.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "`apiVersion: meta/v1`\n\n`import \"k8s.io/apimachinery/pkg/apis/meta/v1\"`\n\n## FieldsV1 {#FieldsV1}\n\nFieldsV1 stores a set of fields in a data structure like a Trie, in JSON format.\n\nEach key is either a '.' representing the field itself, and will always map to an empty set, or a string representing a sub-field or item. The string will follow one of these four formats: 'f:<name>', where <name> is the name of a field in a struct, or key in a map 'v:<value>', where <value> is the exact json formatted value of a list item 'i:<index>', where <index> is position of a item in a list 'k:<keys>', where <keys> is a map of a list item's key fields to their unique values If a key maps to an empty Fields value, the field that key represents is part of the set.\n\nThe exact format is defined in sigs.k8s.io/structured-merge-diff", "source": "content/en/docs/reference/kubernetes-api/definitions/fields-v1-v1-meta.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "`apiVersion: meta/v1`\n\n`import \"k8s.io/apimachinery/pkg/apis/meta/v1\"`\n\n## ListMeta {#ListMeta}\n\nListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.\n\nField Description\n\ncontinue\nstring\ncontinue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message.\n\nremainingItemCount\ninteger\nremainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact.\n\nresourceVersion\nstring\nString that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency\n\nselfLink\nstring\nDeprecated: selfLink is a legacy read-only field that is no longer populated by the system.\n\nshardInfo\nShardInfo\nshardInfo is set when the list is a filtered subset of the full collection, as selected by a shard selector on the request. It echoes back the selector so clients can verify which shard they received and merge sharded responses. Clients should not cache sharded list responses as a full representation of the collection. This is an alpha field and requires enabling the ShardedListAndWatch feature gate.", "source": "content/en/docs/reference/kubernetes-api/definitions/list-meta-v1-meta.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "`apiVersion: v1`\n\n`import \"k8s.io/api/core/v1\"`\n\n## ObjectReference {#ObjectReference}\n\nObjectReference contains enough information to let you inspect or modify the referred object.\n\nField Description\n\napiVersion\nstring\nAPI version of the referent.\n\nfieldPath\nstring\nIf referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object.\n\nkind\nstring\nKind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\n\nname\nstring\nName of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\n\nnamespace\nstring\nNamespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/\n\nresourceVersion\nstring\nSpecific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency\n\nuid\nstring\nUID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids", "source": "content/en/docs/reference/kubernetes-api/definitions/object-reference-v1.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "`apiVersion: resource`\n\n`import \"k8s.io/apimachinery/pkg/api/resource\"`\n\n## Quantity {#Quantity}\n\nQuantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\n\nThe serialization format is:\n\n``` <quantity> ::= <signedNumber><suffix>\n\n(Note that <suffix> may be empty, from the \"\" case in <decimalSI>.)\n\n<digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei\n\n(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\n<decimalSI> ::= m | \"\" | k | M | G | T | P | E\n\n(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\n<decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ```\n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\n\nThe sign will be omitted unless the number is negative.\n\nExamples:\n\n- 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.", "source": "content/en/docs/reference/kubernetes-api/definitions/quantity-resource.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "`apiVersion: authorization.k8s.io/v1`\n\n`import \"k8s.io/api/authorization/v1\"`\n\n## SelfSubjectAccessReview {#SelfSubjectAccessReview}\n\nSelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means \"in all namespaces\". Self is a special case, because users should always be able to check whether they can perform an action\n\nField Description\n\napiVersion\nstring\nAPIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\n\nkind\nstring\nKind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\n\nmetadata\nObjectMeta\nmetadata is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata\n\nspec   *\nSelfSubjectAccessReviewSpec\nspec holds information about the request being evaluated. user and groups must be empty\n\nstatus\nSubjectAccessReviewStatus\nstatus is filled in by the server and indicates whether the request is allowed or not\n\n## SelfSubjectAccessReviewSpec {#SelfSubjectAccessReviewSpec}\n\nSelfSubjectAccessReviewSpec is a description of the access request. Exactly one of resourceAttributes and nonResourceAttributes must be set\n\nField Description\n\nnonResourceAttributes\nNonResourceAttributes\nnonResourceAttributes describes information for a non-resource access request\n\nresourceAttributes\nResourceAttributes\nresourceAttributes describes information for a resource access request", "source": "content/en/docs/reference/kubernetes-api/definitions/self-subject-access-review-v1-authorization.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "`apiVersion: meta/v1`\n\n`import \"k8s.io/apimachinery/pkg/apis/meta/v1\"`\n\n## Status {#Status}\n\nStatus is a return value for calls that don't return other objects.\n\nField Description\n\napiVersion\nstring\nAPIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\n\ncode\ninteger\nSuggested HTTP return code for this status, 0 if not set.\n\ndetails\nStatusDetails\nExtended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type.\n\nkind\nstring\nKind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\n\nmessage\nstring\nA human-readable description of the status of this operation.\n\nmetadata\nListMeta\nStandard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\n\nreason\nstring\nA machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it.\n\nstatus\nstring\nStatus of the operation. One of: \"Success\" or \"Failure\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", "source": "content/en/docs/reference/kubernetes-api/definitions/status-v1-meta.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "`apiVersion: admissionregistration.k8s.io/v1`\n\n`import \"k8s.io/api/admissionregistration/v1\"`\n\n## WebhookClientConfig {#WebhookClientConfig}\n\nWebhookClientConfig contains the information to make a TLS connection with the webhook\n\nField Description\n\ncaBundle\nstring\ncaBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used.\n\nservice\nServiceReference\nservice is a reference to the service for this webhook. Either `service` or `url` must be specified. If the webhook is running within the cluster, then you should use `service`.\n\nurl\nstring\nurl gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be \"https\"; the URL must begin with \"https://\". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either.", "source": "content/en/docs/reference/kubernetes-api/definitions/webhook-client-config-v1-admissionregistration.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "`apiVersion: rbac.authorization.k8s.io/v1`\n\n`import \"k8s.io/api/rbac/v1\"`\n\n## ClusterRoleBinding {#ClusterRoleBinding}\n\nClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject.\n\nField Description\n\napiVersion\nstring\nAPIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\n\nkind\nstring\nKind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\n\nmetadata\nObjectMeta\nmetadata is the standard object's metadata.\n\nroleRef   *\nRoleRef\nroleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. This field is immutable.\n\nsubjects\nSubject array\nsubjects holds references to the objects the role applies to.\n\n## ClusterRoleBindingList {#ClusterRoleBindingList}\n\nClusterRoleBindingList is a collection of ClusterRoleBindings\n\nField Description\n\napiVersion\nstring\nAPIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\n\nitems   *\nClusterRoleBinding array\nItems is a list of ClusterRoleBindings\n\nkind\nstring\nKind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\n\nmetadata\nListMeta\nStandard object's metadata.\n\n## Operations {#Operations}\n\n### `post` Create\n\n#### HTTP Request\n\nPOST /apis/rbac.authorization.k8s.io/v1/clusterrolebindings\n\n#### Query Parameters\n\nName Type Description\n\npretty\nstring\nIf 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).\n\ndryRun\nstring\nWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed\n\nfieldManager\nstring\nfieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\n\nfieldValidation\nstring\nfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.\n\n#### Body Parameters\n\nName Type Description\n\nbody\nClusterRoleBinding\n\n#### Response\n\nStatus Description Response\n\n200\nOK\nClusterRoleBinding\n\n201\nCreated\nClusterRoleBinding\n\n202\nAccepted\nClusterRoleBinding\n\n### `patch` Patch\n\n#### HTTP Request\n\nPATCH /apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}\n\n#### Path Parameters\n\nName Type Description\n\nname\nstring\nname of the ClusterRoleBinding\n\n#### Query Parameters\n\nName Type Description\n\npretty\nstring\nIf 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).\n\ndryRun\nstring\nWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed\n\nfieldManager\nstring\nfieldManager Line truncated
{"text": "`apiVersion: storagemigration.k8s.io/v1`\n\n`import \"k8s.io/api/storagemigration/v1\"`\n\n## StorageVersionMigration {#StorageVersionMigration}\n\nStorageVersionMigration represents a migration of stored data to the latest storage version.\n\nField Description\n\napiVersion\nstring\nAPIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\n\nkind\nstring\nKind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\n\nmetadata\nObjectMeta\nStandard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata\n\nspec\nStorageVersionMigrationSpec\nSpecification of the migration.\n\nstatus\nStorageVersionMigrationStatus\nStatus of the migration.\n\n## StorageVersionMigrationSpec {#StorageVersionMigrationSpec}\n\nSpec of the storage version migration.\n\nField Description\n\nresource   *\nGroupResource\nThe resource that is being migrated. The migrator sends requests to the endpoint serving the resource. Immutable.\n\n## StorageVersionMigrationStatus {#StorageVersionMigrationStatus}\n\nStatus of the storage version migration.\n\nField Description\n\nconditions\nCondition array\npatch strategy: merge on key type\nThe latest available observations of the migration's current state.\n\nresourceVersion\nstring\nResourceVersion to compare with the GC cache for performing the migration. This is the current resource version of given group, version and resource when kube-controller-manager first observes this StorageVersionMigration resource.\n\n## StorageVersionMigrationList {#StorageVersionMigrationList}\n\nStorageVersionMigrationList is a collection of storage version migrations.\n\nField Description\n\napiVersion\nstring\nAPIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\n\nitems   *\nStorageVersionMigration array\nItems is the list of StorageVersionMigration\n\nkind\nstring\nKind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\n\nmetadata\nListMeta\nStandard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata\n\n## Operations {#Operations}\n\n### `post` Create\n\n#### HTTP Request\n\nPOST /apis/storagemigration.k8s.io/v1/storageversionmigrations\n\n#### Query Parameters\n\nName Type Description\n\npretty\nstring\nIf 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).\n\ndryRun\nstring\nWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed\n\nfieldManager\nstring\nfieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\n\nfieldValidation\nstring\nfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.\n\n#### Body Parameters\n\nName Type Description\n\nbody\nStorageVersionMigration\n\n#### Response\n\nStatus Description ResponLine truncated
{"text": "The kubelet is mostly a stateless\nprocess running on a Kubernetes node.\nThis document outlines files that kubelet reads and writes.\n\nThis document is for informational purposes and not describing any guaranteed behaviors or APIs.\nIt lists resources used by the kubelet, which is an implementation detail and subject to change at any release.\n\nThe kubelet typically uses the control plane as\nthe source of truth on what needs to run on the Node, and the\ncontainer runtime to retrieve\nthe current state of containers. So long as you provide a _kubeconfig_ (API client configuration)\nto the kubelet, the kubelet does connect to your control plane; otherwise the node operates in\n_standalone mode_.\n\nOn Linux nodes, the kubelet also relies on reading cgroups and various system files to collect metrics.\n\nOn Windows nodes, the kubelet collects metrics via a different mechanism that does not rely on\npaths.\n\nThere are also a few other files that are used by the kubelet as well,\nas kubelet communicates using local Unix-domain sockets. Some are sockets that the\nkubelet listens on, and for other sockets the kubelet discovers them and then connects\nas a client.\n\nThis page lists paths as Linux paths, which map to the Windows paths by adding a root disk\n`C:\\` in place of `/` (unless specified otherwise).\nFor example, `/var/lib/kubelet/device-plugins` maps to `C:\\var\\lib\\kubelet\\device-plugins`.\n\n## Configuration\n\n### Kubelet configuration files\n\nThe path to the kubelet configuration file can be configured\nusing the command line argument `--config`. The kubelet also supports\n[drop-in configuration files](/docs/tasks/administer-cluster/kubelet-config-file/#kubelet-conf-d)\nto enhance configuration.\n\n### Certificates\n\nCertificates and private keys are typically located at `/var/lib/kubelet/pki`,\nbut can be configured using the `--cert-dir` kubelet command line argument.\nNames of certificate files are also configurable.\n\n### Manifests\n\nManifests for static pods are typically located in `/etc/kubernetes/manifests`.\nLocation can be configured using the `staticPodPath` kubelet configuration option.\n\n### Systemd unit settings\n\nWhen kubelet is running as a systemd unit, some kubelet configuration may be declared\nin systemd unit settings file. Typically it includes:\n\n- command line arguments to [run kubelet](/docs/reference/command-line-tools-reference/kubelet/)\n- environment variables, used by kubelet or [configuring golang runtime](https://pkg.go.dev/runtime#hdr-Environment_Variables)\n\n## State\n\n### Checkpoint files for resource managers {#resource-managers-state}\n\nAll resource managers keep the mapping of Pods to allocated resources in state files.\nState files are located in the kubelet's base directory, also termed the _root directory_\n(but not the same as `/`, the node root directory). You can configure the base directory\nfor the kubelet\nusing the kubelet command line argument `--root-dir`.\n\nNames of files:\n\n- `memory_manager_state` for the [Memory Manager](/docs/tasks/administer-cluster/memory-manager/)\n- `cpu_manager_state` for the [CPU Manager](/docs/tasks/administer-cluster/cpu-management-policies/)\n- `dra_manager_state` for [DRA](/docs/concepts/resource-management/dynamic-resource-allocation/)\n\n### Checkpoint file for device manager {#device-manager-state}\n\nDevice manager creates checkpoints in the same directory with socket files: `/var/lib/kubelet/device-plugins/`.\nThis path is hardcoded and is not relative to the kubelet root directory.\nThe name of a checkpoint file is `kubelet_internal_checkpoint` for\n[Device Manager](/docs/concepts/extend-kubernetes/compute-storage-net/device-plugins/#device-plugin-integration-with-the-topology-manager)\n\n### Pod resource checkpoints\n\nIf a node has enabled the `InPlacePodVerticalScaling`[feature gate](/docs/reference/command-line-tools-reference/feature-gates/),\nthe kubelet stores a local record of _allocated_ and _actuated_ Pod resources.\nSee [Resize CPU and Memory Resources assigned to Containers](/docs/tasks/configure-pod-container/resize-container-resources/)\nfor more details on how these records are used.\n\nNames of files:\n\n- `allocated_pods_state` records the resources allocated to each pod running on the node\n- `actuated_pods_state` records the resources that have been accepted by the runtime\nfor each pod running on the node\n\nThe files are located within the kubelet base directory\n(`/var/lib/kubelet` by default on Linux; configurable using `--root-dir`).\n\n### Container runtime\n\nKubelet communicates with the container runtime using socket configured via the\nconfiguration parameters:\n\n- `containerRuntimeEndpoint` for runtime operations\n- `imageServiceEndpoint` for image management operations\n\nThe actual values of those endpoints depend on the container runtime being used.\n\n### Device plugins\n\nThe kubelet exposes a socket at the path `/var/lib/kubelet/device-plugins/kubeLine truncated
{"text": "### Synopsis\n\nOutput shell completion code for the specified shell (bash or zsh).\nThe shell code must be evaluated to provide interactive\ncompletion of kubeadm commands. This can be done by sourcing it from\nthe .bash_profile.\n\nNote: this requires the bash-completion framework.\n\nTo install it on Mac use homebrew:\n$ brew install bash-completion\nOnce installed, bash_completion must be evaluated. This can be done by adding the\nfollowing line to the .bash_profile\n$ source $(brew --prefix)/etc/bash_completion\n\nIf bash-completion is not installed on Linux, please install the 'bash-completion' package\nvia your distribution's package manager.\n\nNote for zsh users: [1] zsh completions are only supported in versions of zsh >= 5.2\n\n```\nkubeadm completion SHELL [flags]\n```\n\n### Examples\n\n```\n\n# Install bash completion on a Mac using homebrew\nbrew install bash-completion\nprintf \"\\n# Bash completion support\\nsource $(brew --prefix)/etc/bash_completion\\n\" >> $HOME/.bash_profile\nsource $HOME/.bash_profile\n\n# Load the kubeadm completion code for bash into the current shell\nsource ~/.kube/kubeadm_completion.bash.inc\nprintf \"\\n# Kubeadm shell completion\\nsource '$HOME/.kube/kubeadm_completion.bash.inc'\\n\" >> $HOME/.bash_profile\nsource $HOME/.bash_profile\n\n# Load the kubeadm completion code for zsh[1] into the current shell\nsource\n\n-h, --help\n\nhelp for completion\n\n### Options inherited from parent commands\n\n--rootfs string\n\nThe path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path.", "source": "content/en/docs/reference/setup-tools/kubeadm/generated/kubeadm_completion/_index.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "### Synopsis\n\nGenerate the certificate for the front proxy client, and save them into front-proxy-client.crt and front-proxy-client.key files.\n\nIf both files already exist, kubeadm skips the generation step and existing files will be used.\n\n```\nkubeadm init phase certs front-proxy-client [flags]\n```\n\n### Options\n\n--cert-dir string     Default: \"/etc/kubernetes/pki\"\n\nThe path where to save and store the certificates.\n\n--config string\n\nPath to a kubeadm configuration file.\n\n--dry-run\n\nDon't apply any changes; just output what would be done.\n\n-h, --help\n\nhelp for front-proxy-client\n\n--kubernetes-version string     Default: \"stable-1\"\n\nChoose a specific Kubernetes version for the control plane.\n\n### Options inherited from parent commands\n\n--rootfs string\n\nThe path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path.", "source": "content/en/docs/reference/setup-tools/kubeadm/generated/kubeadm_init/kubeadm_init_phase_certs_front-proxy-client.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "### Synopsis\n\nGenerate all static Pod manifest files necessary to establish the control plane\n\n```\nkubeadm init phase control-plane [flags]\n```\n\n### Options\n\n-h, --help\n\nhelp for control-plane\n\n### Options inherited from parent commands\n\n--rootfs string\n\nThe path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path.", "source": "content/en/docs/reference/setup-tools/kubeadm/generated/kubeadm_init/kubeadm_init_phase_control-plane.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "### Synopsis\n\nGenerates the kube-apiserver static Pod manifest\n\n```\nkubeadm init phase control-plane apiserver [flags]\n```\n\n### Options\n\n--apiserver-advertise-address string\n\nThe IP address the API Server will advertise it's listening on. If not set the default network interface will be used.\n\n--apiserver-bind-port int32     Default: 6443\n\nPort for the API Server to bind to.\n\n--cert-dir string     Default: \"/etc/kubernetes/pki\"\n\nThe path where to save and store the certificates.\n\n--config string\n\nPath to a kubeadm configuration file.\n\n--control-plane-endpoint string\n\nSpecify a stable IP address or DNS name for the control plane.\n\n--dry-run\n\nDon't apply any changes; just output what would be done.\n\n--feature-gates string\n\nA set of key=value pairs that describe feature gates for various features. Options are:\nRootlessControlPlane=true|false (ALPHA - default=false)\n\n-h, --help\n\nhelp for apiserver\n\n--image-repository string     Default: \"registry.k8s.io\"\n\nChoose a container registry to pull control plane images from\n\n--kubernetes-version string     Default: \"stable-1\"\n\nChoose a specific Kubernetes version for the control plane.\n\n--patches string\n\nPath to a directory that contains files named \"target[suffix][+patchtype].extension\". For example, \"kube-apiserver0+merge.yaml\" or just \"etcd.json\". \"target\" can be one of \"kube-apiserver\", \"kube-controller-manager\", \"kube-scheduler\", \"etcd\", \"kubeletconfiguration\", \"corednsdeployment\", \"kubeproxydaemonset\". \"patchtype\" can be one of \"strategic\", \"merge\" or \"json\" and they match the patch formats supported by kubectl. The default \"patchtype\" is \"strategic\". \"extension\" must be either \"json\" or \"yaml\". \"suffix\" is an optional string that can be used to determine which patches are applied first alpha-numerically.\n\n--service-cidr string     Default: \"10.96.0.0/12\"\n\nUse alternative range of IP address for service VIPs.\n\n### Options inherited from parent commands\n\n--rootfs string\n\nThe path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path.", "source": "content/en/docs/reference/setup-tools/kubeadm/generated/kubeadm_init/kubeadm_init_phase_control-plane_apiserver.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "### Synopsis\n\nGenerates the kube-controller-manager static Pod manifest\n\n```\nkubeadm init phase control-plane controller-manager [flags]\n```\n\n### Options\n\n--cert-dir string     Default: \"/etc/kubernetes/pki\"\n\nThe path where to save and store the certificates.\n\n--config string\n\nPath to a kubeadm configuration file.\n\n--dry-run\n\nDon't apply any changes; just output what would be done.\n\n-h, --help\n\nhelp for controller-manager\n\n--image-repository string     Default: \"registry.k8s.io\"\n\nChoose a container registry to pull control plane images from\n\n--kubernetes-version string     Default: \"stable-1\"\n\nChoose a specific Kubernetes version for the control plane.\n\n--patches string\n\nPath to a directory that contains files named \"target[suffix][+patchtype].extension\". For example, \"kube-apiserver0+merge.yaml\" or just \"etcd.json\". \"target\" can be one of \"kube-apiserver\", \"kube-controller-manager\", \"kube-scheduler\", \"etcd\", \"kubeletconfiguration\", \"corednsdeployment\", \"kubeproxydaemonset\". \"patchtype\" can be one of \"strategic\", \"merge\" or \"json\" and they match the patch formats supported by kubectl. The default \"patchtype\" is \"strategic\". \"extension\" must be either \"json\" or \"yaml\". \"suffix\" is an optional string that can be used to determine which patches are applied first alpha-numerically.\n\n--pod-network-cidr string\n\nSpecify range of IP addresses for the pod network. If set, the control plane will automatically allocate CIDRs for every node.\n\n### Options inherited from parent commands\n\n--rootfs string\n\nThe path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path.", "source": "content/en/docs/reference/setup-tools/kubeadm/generated/kubeadm_init/kubeadm_init_phase_control-plane_controller-manager.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "### Synopsis\n\nRun all kubelet-finalize phases\n\n```\nkubeadm init phase kubelet-finalize all [flags]\n```\n\n### Examples\n\n```\n# Updates settings relevant to the kubelet after TLS bootstrap\nkubeadm init phase kubelet-finalize all --config\n```\n\n### Options\n\n--cert-dir string     Default: \"/etc/kubernetes/pki\"\n\nThe path where to save and store the certificates.\n\n--config string\n\nPath to a kubeadm configuration file.\n\n--dry-run\n\nDon't apply any changes; just output what would be done.\n\n-h, --help\n\nhelp for all\n\n### Options inherited from parent commands\n\n--rootfs string\n\nThe path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path.", "source": "content/en/docs/reference/setup-tools/kubeadm/generated/kubeadm_init/kubeadm_init_phase_kubelet-finalize_all.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "### Synopsis\n\nUpload all configuration to a config map\n\n```\nkubeadm init phase upload-config all [flags]\n```\n\n### Options\n\n--config string\n\nPath to a kubeadm configuration file.\n\n--cri-socket string\n\nPath to the CRI socket to connect. If empty kubeadm will try to auto-detect this value; use this option only if you have more than one CRI installed or if you have non-standard CRI socket.\n\n--dry-run\n\nDon't apply any changes; just output what would be done.\n\n-h, --help\n\nhelp for all\n\n--kubeconfig string     Default: \"/etc/kubernetes/admin.conf\"\n\nThe kubeconfig file to use when talking to the cluster. If the flag is not set, a set of standard locations can be searched for an existing kubeconfig file.\n\n### Options inherited from parent commands\n\n--rootfs string\n\nThe path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path.", "source": "content/en/docs/reference/setup-tools/kubeadm/generated/kubeadm_init/kubeadm_init_phase_upload-config_all.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "### Synopsis\n\nRun cleanup node.\n\n```\nkubeadm reset phase cleanup-node [flags]\n```\n\n### Options\n\n--cert-dir string     Default: \"/etc/kubernetes/pki\"\n\nThe path to the directory where the certificates are stored. If specified, clean this directory.\n\n--cleanup-tmp-dir\n\nCleanup the \"/etc/kubernetes/tmp\" directory\n\n--cri-socket string\n\nPath to the CRI socket to connect. If empty kubeadm will try to auto-detect this value; use this option only if you have more than one CRI installed or if you have non-standard CRI socket.\n\n--dry-run\n\nDon't apply any changes; just output what would be done.\n\n-h, --help\n\nhelp for cleanup-node\n\n### Options inherited from parent commands\n\n--rootfs string\n\nThe path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path.", "source": "content/en/docs/reference/setup-tools/kubeadm/generated/kubeadm_reset/kubeadm_reset_phase_cleanup-node.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "### Synopsis\n\nUpload all the configurations to ConfigMaps\n\n```\nkubeadm upgrade apply phase upload-config all [flags]\n```\n\n### Options\n\n--config string\n\nPath to a kubeadm configuration file.\n\n--dry-run\n\nDo not change any state, just output what actions would be performed.\n\n-h, --help\n\nhelp for all\n\n--kubeconfig string     Default: \"/etc/kubernetes/admin.conf\"\n\nThe kubeconfig file to use when talking to the cluster. If the flag is not set, a set of standard locations can be searched for an existing kubeconfig file.\n\n### Options inherited from parent commands\n\n--rootfs string\n\nThe path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path.", "source": "content/en/docs/reference/setup-tools/kubeadm/generated/kubeadm_upgrade/kubeadm_upgrade_apply_phase_upload-config_all.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "`kubeadm init phase` enables you to invoke atomic steps of the bootstrap process.\nHence, you can let kubeadm do some of the work and you can fill in the gaps\nif you wish to apply customization.\n\n`kubeadm init phase` is consistent with the [kubeadm init workflow](/docs/reference/setup-tools/kubeadm/kubeadm-init/#init-workflow),\nand behind the scene both use the same code.\n\n## kubeadm init phase preflight {#cmd-phase-preflight}\n\nUsing this command you can execute preflight checks on a control-plane node.\n\n## kubeadm init phase certs {#cmd-phase-certs}\n\nCan be used to create all required certificates by kubeadm.\n\n## kubeadm init phase kubeconfig {#cmd-phase-kubeconfig}\n\nYou can create all required kubeconfig files by calling the `all` subcommand or call them individually.\n\n## kubeadm init phase etcd {#cmd-phase-etcd}\n\nUse the following phase to create a local etcd instance based on a static Pod file.\n\n## kubeadm init phase control-plane {#cmd-phase-control-plane}\n\nUsing this phase you can create all required static Pod files for the control plane components.\n\n## kubeadm init phase kubelet-start {#cmd-phase-kubelet-start}\n\nThis phase will write the kubelet configuration file and environment file and then start the kubelet.\n\n## kubeadm init phase wait-control-plane {#cmd-phase-wait-control-plane}\n\nIn this phase kubeadm will wait until the control plane components start.\n\n## kubeadm init phase upload-config {#cmd-phase-upload-config}\n\nYou can use this command to upload the kubeadm configuration to your cluster.\nAlternatively, you can use [kubeadm config](/docs/reference/setup-tools/kubeadm/kubeadm-config/).\n\n## kubeadm init phase upload-certs {#cmd-phase-upload-certs}\n\nUse the following phase to upload control-plane certificates to the cluster.\nBy default the certs and encryption key expire after two hours.\n\n## kubeadm init phase mark-control-plane {#cmd-phase-mark-control-plane}\n\nUse the following phase to label and taint the node as a control plane node.\n\n## kubeadm init phase bootstrap-token {#cmd-phase-bootstrap-token}\n\nUse the following phase to configure bootstrap tokens.\n\n## kubeadm init phase kubelet-finalize {#cmd-phase-kubelet-finalize-all}\n\nUse the following phase to update settings relevant to the kubelet after TLS\nbootstrap. You can use the `all` subcommand to run all `kubelet-finalize`\nphases.\n\n## kubeadm init phase bootstrap-token {#cmd-phase-bootstrap-token}\n\nUse the following phase to configure bootstrap tokens.\n\n## kubeadm init phase addon {#cmd-phase-addon}\n\nYou can install all the available addons with the `all` subcommand, or\ninstall them selectively.\n\n## kubeadm init phase show-join-command {#cmd-phase-show-join-command}\n\nShows a command that can be used with `kubeadm join`.\n\nFor more details on each field in the `v1beta4` configuration you can navigate to our\n[API reference pages.](/docs/reference/config-api/kubeadm-config.v1beta4/)\n\n##\n\n* [kubeadm init](/docs/reference/setup-tools/kubeadm/kubeadm-init/) to bootstrap a Kubernetes control-plane node\n* [kubeadm join](/docs/reference/setup-tools/kubeadm/kubeadm-join/) to connect a node to the cluster\n* [kubeadm reset](/docs/reference/setup-tools/kubeadm/kubeadm-reset/) to revert any changes made to this host by `kubeadm init` or `kubeadm join`\n* [kubeadm alpha](/docs/reference/setup-tools/kubeadm/kubeadm-alpha/) to try experimental functionality", "source": "content/en/docs/reference/setup-tools/kubeadm/kubeadm-init-phase.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "Bootstrap tokens are used for establishing bidirectional trust between a node joining\nthe cluster and a control-plane node, as described in [authenticating with bootstrap tokens](/docs/reference/access-authn-authz/bootstrap-tokens/).\n\n`kubeadm init` creates an initial token with a 24-hour TTL. The following commands allow you to manage\nsuch a token and also to create and manage new ones.\n\n## kubeadm token create {#cmd-token-create}\n\n## kubeadm token delete {#cmd-token-delete}\n\n## kubeadm token generate {#cmd-token-generate}\n\n## kubeadm token list {#cmd-token-list}\n\n##\n\n* [kubeadm join](/docs/reference/setup-tools/kubeadm/kubeadm-join/) to bootstrap a Kubernetes worker node and join it to the cluster", "source": "content/en/docs/reference/setup-tools/kubeadm/kubeadm-token.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "This section provides reference information for the Kubernetes API.\n\nThe REST API is the fundamental fabric of Kubernetes. All operations and\ncommunications between components, and external user commands are REST API\ncalls that the API Server handles. Consequently, everything in the Kubernetes\nplatform is treated as an API object and has a corresponding entry in the\n[API](/docs/reference/generated/kubernetes-api//).\n\nThe [Kubernetes API reference](/docs/reference/generated/kubernetes-api//)\nlists the API for Kubernetes version .\n\nFor general background information, read\n[The Kubernetes API](/docs/concepts/overview/kubernetes-api/).\n[Controlling Access to the Kubernetes API](/docs/concepts/security/controlling-access/)\ndescribes how clients can authenticate to the Kubernetes API server, and how their\nrequests are authorized.\n\n## API versioning\n\nThe JSON and Protobuf serialization schemas follow the same guidelines for\nschema changes. The following descriptions cover both formats.\n\nThe API versioning and software versioning are indirectly related.\nThe [API and release versioning proposal](https://git.k8s.io/sig-release/release-engineering/reference/versioning.md#kubernetes-release-versioning)\ndescribes the relationship between API versioning and software versioning.\n\nDifferent API versions indicate different levels of stability and support. You\ncan find more information about the criteria for each level in the\n[API Changes documentation](https://git.k8s.io/community/contributors/devel/sig-architecture/api_changes.md#alpha-beta-and-stable-versions).\n\nHere's a summary of each level:\n\n- Alpha:\n- The version names contain `alpha` (for example, `v1alpha1`).\n- Built-in alpha API versions are disabled by default and must be explicitly enabled in the `kube-apiserver` configuration to be used.\n- The software may contain bugs. Enabling a feature may expose bugs.\n- Support for an alpha API may be dropped at any time without notice.\n- The API may change in incompatible ways in a later software release without notice.\n- The software is recommended for use only in short-lived testing clusters,\ndue to increased risk of bugs and lack of long-term support.\n\n- Beta:\n- The version names contain `beta` (for example, `v2beta3`).\n- Built-in beta API versions are disabled by default and must be explicitly enabled in the `kube-apiserver` configuration to be used\n(**except** for beta versions of APIs introduced prior to Kubernetes 1.22, which were enabled by default).\n- Built-in beta API versions have a maximum lifetime of 9 months or 3 minor releases (whichever is longer) from introduction\nto deprecation, and 9 months or 3 minor releases (whichever is longer) from deprecation to removal.\n- The software is well tested. Enabling a feature is considered safe.\n- The support for a feature will not be dropped, though the details may change.\n\n- The schema and/or semantics of objects may change in incompatible ways in\na subsequent beta or stable API version. When this happens, migration\ninstructions are provided. Adapting to a subsequent beta or stable API version\nmay require editing or re-creating API objects, and may not be straightforward.\nThe migration may require downtime for applications that rely on the feature.\n- The software is not recommended for production uses. Subsequent releases\nmay introduce incompatible changes. Use of beta API versions is\nrequired to transition to subsequent beta or stable API versions\nonce the beta API version is deprecated and no longer served.\n\nPlease try beta features and provide feedback. After the features exit beta, it\nmay not be practical to make more changes.\n\n- Stable:\n- The version name is `vX` where `X` is an integer.\n- Stable API versions remain available for all future releases within a Kubernetes major version,\nand there are no current plans for a major version revision of Kubernetes that removes stable APIs.\n\n## API groups\n\n[API groups](https://git.k8s.io/design-proposals-archive/api-machinery/api-group.md)\nmake it easier to extend the Kubernetes API.\nThe API group is specified in a REST path and in the `apiVersion` field of a\nserialized object.\n\nThere are several API groups in Kubernetes:\n\n* The *core* (also called *legacy*) group is found at REST path `/api/v1`.\nThe core group is not specified as part of the `apiVersion` field, for\nexample, `apiVersion: v1`.\n* The named groups are at REST path `/apis/$GROUP_NAME/$VERSION` and use\n`apiVersion: $GROUP_NAME/$VERSION` (for example, `apiVersion: batch/v1`).\nYou can find the full list of supported API groups in\n[Kubernetes API reference](/docs/reference/generated/kubernetes-api//#-strong-api-groups-strong-).\n\n## Enabling or disabling API groups {#enabling-or-disabling}\n\nCertain resources and API groups are enabled by default. You can enable or\ndisable them by setting `--runtime-config` on the API server. The\n`--runtime-config` flag accepts comma sLine truncated
{"text": "This page shows how to use a Volume to communicate between two Containers running\nin the same Pod. See also how to allow processes to communicate by\n[sharing process namespace](/docs/tasks/configure-pod-container/share-process-namespace/)\nbetween containers.\n\n##\n\n## Creating a Pod that runs two Containers\n\nIn this exercise, you create a Pod that runs two Containers. The two containers\nshare a Volume that they can use to communicate. Here is the configuration file\nfor the Pod:\n\nIn the configuration file, you can see that the Pod has a Volume named\n`shared-data`.\n\nThe first container listed in the configuration file runs an nginx server. The\nmount path for the shared Volume is `/usr/share/nginx/html`.\nThe second container is based on the debian image, and has a mount path of\n`/pod-data`. The second container runs the following command and then terminates.\n\necho Hello from the debian container > /pod-data/index.html\n\nNotice that the second container writes the `index.html` file in the root\ndirectory of the nginx server.\n\nCreate the Pod and the two Containers:\n\nkubectl apply -f https://k8s.io/examples/pods/two-container-pod.yaml\n\nView information about the Pod and the Containers:\n\nkubectl get pod two-containers --output=yaml\n\nHere is a portion of the output:\n\napiVersion: v1\nkind: Pod\nmetadata:\n...\nname: two-containers\nnamespace: default\n...\nspec:\n...\ncontainerStatuses:\n\n- containerID: docker://c1d8abd1 ...\nimage: debian\n...\nlastState:\nterminated:\n...\nname: debian-container\n...\n\n- containerID: docker://96c1ff2c5bb ...\nimage: nginx\n...\nname: nginx-container\n...\nstate:\nrunning:\n...\n\nYou can see that the debian Container has terminated, and the nginx Container\nis still running.\n\nGet a shell to nginx Container:\n\nkubectl exec -it two-containers -c nginx-container -- /bin/bash\n\nIn your shell, verify that nginx is running:\n\nroot@two-containers:/# apt-get update\nroot@two-containers:/# apt-get install curl procps\nroot@two-containers:/# ps aux\n\nThe output is similar to this:\n\nUSER PID ... STAT START TIME COMMAND\nroot 1 ... Ss 21:12 0:00 nginx: master process nginx -g daemon off;\n\nRecall that the debian Container created the `index.html` file in the nginx root\ndirectory. Use `curl` to send a GET request to the nginx server:\n\n```\nroot@two-containers:/# curl localhost\n```\n\nThe output shows that nginx serves a web page written by the debian container:\n\n```\nHello from the debian container\n```\n\n## Discussion\n\nThe primary reason that Pods can have multiple containers is to support\nhelper applications that assist a primary application. Typical examples of\nhelper applications are data pullers, data pushers, and proxies.\nHelper and primary applications often need to communicate with each other.\nTypically this is done through a shared filesystem, as shown in this exercise,\nor through the loopback network interface, localhost. An example of this pattern is a\nweb server along with a helper program that polls a Git repository for new updates.\n\nThe Volume in this exercise provides a way for Containers to communicate during\nthe life of the Pod. If the Pod is deleted and recreated, any data stored in\nthe shared Volume is lost.\n\n##\n\n* Learn more about [patterns for composite containers](/blog/2015/06/the-distributed-system-toolkit-patterns/).\n\n* Learn about [composite containers for modular architecture](https://www.slideshare.net/Docker/slideshare-burns).\n\n* See [Configuring a Pod to Use a Volume for Storage](/docs/tasks/configure-pod-container/configure-volume-storage/).\n\n* See [Configure a Pod to share process namespace between containers in a Pod](/docs/tasks/configure-pod-container/share-process-namespace/)\n\n* See [Volume](/docs/reference/generated/kubernetes-api//#volume-v1-core).\n\n* See [Pod](/docs/reference/generated/kubernetes-api//#pod-v1-core).", "source": "content/en/docs/tasks/access-application-cluster/communicate-containers-same-pod-shared-volume.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "This page shows how to configure kubectl to access one existing cluster using\na supplied kubeconfig file or your cluster's connection details. For background,\nsee [Organizing Cluster Access Using kubeconfig Files](/docs/concepts/configuration/organize-cluster-access-kubeconfig/).\n\n##\n\n* Have a running Kubernetes cluster. If you do not have one, create a local\ncluster with [Minikube](https://minikube.sigs.k8s.io/docs/start/) or choose\nanother [learning environment](/docs/setup/learning-environment/).\n* [Install kubectl](/docs/tasks/tools/). Its version should be\n[within one minor version](/releases/version-skew-policy/#kubectl) of your\ncluster's API server. Check your client version with `kubectl version --client`.\n* Ensure your computer can reach the cluster's API server, using a VPN if required.\n* Have a text editor and a private working directory.\n\nShell examples use Bash or Zsh on Linux and macOS, and PowerShell on Windows.\n\n## Obtain your cluster access information\n\nAsk your cluster administrator or provider for a personal kubeconfig file or\nthe information below. The example values match the commands later in this task;\nreplace them with the values for your cluster.\n\n| Information | Example | Where to obtain it |\n| :--- | :--- | :--- |\n| API server address | `https://api.example.com:6443` | Your administrator or the cluster provider's connection instructions. |\n| Trusted certificate authority (CA) certificate | A PEM file named `ca.crt` | Ask your administrator for the file. A provider-generated kubeconfig already records the required CA file or data. Omit a separate CA file if the server certificate is trusted by your operating system. |\n| Authentication method | A credential plugin such as `example-credential-plugin`, a signed client certificate, or a bearer token | Your provider's login instructions or your administrator's credential enrollment process. |\n| Namespace and permissions | Namespace `default`, with permission to list Pods | Your administrator or the provider's access policy. |\n\nFor clusters managed on your behalf by a provider, follow the provider's kubeconfig instructions.\nThese instructions also explain any required login tools.\n\nFor kubeadm clusters, administrators can refer to\n[Generating kubeconfig files for additional users](/docs/tasks/administer-cluster/kubeadm/kubeadm-certs/#kubeconfig-additional-users).\n\nOnly use trusted kubeconfig files. They can execute credential plugins or read\nlocal files. Inspect unfamiliar files before use.\n\n### Try the task with Minikube\n\nFor a local example, install Minikube and a supported container or virtual-machine\nmanager using the [Minikube getting started guide](https://minikube.sigs.k8s.io/docs/start/).\n\n1. Start the default Minikube cluster:\n\n```shell\nminikube start --profile=minikube\n```\n\nMinikube creates a `minikube` context with the API server address and local\ncertificate settings, so you do not need to collect these values manually.\n\n1. In your private working directory, choose an unused filename such as\n`cluster-config` and export that context:\n\n```shell\nkubectl config view --context=minikube --minify --flatten --raw > cluster-config\n```\n\n```powershell\nkubectl config view --context=minikube --minify --flatten --raw | Set-Content -Path cluster-config -Encoding utf8\n```\n\n`--flatten` embeds the certificate files, and `--raw` preserves credentials\ninstead of redacting them. This file contains a private key; keep it private.\n\nContinue with [Verify access to the cluster](#verify-access-to-the-cluster).\nYour file is `cluster-config` and your context is `minikube`; skip the manual\nconfiguration sections below.\n\n## Use a supplied kubeconfig file\n\nFollow your provider's setup instructions, including installing and signing in\nto any credential plugin. For certificate authentication, use a locally generated\nprivate key; see the [client certificate workflow](#configure-credentials).\n\n1. Save the kubeconfig as `cluster-config` in your working directory. If it\nalready exists, choose another name and use it below. Use absolute paths\nfor any referenced files or credential plugin executables.\n\n1. List the contexts in the supplied file:\n\n```shell\nkubectl --kubeconfig=cluster-config config get-contexts\n```\n\n1. Select your cluster's context, replacing `CONTEXT_NAME` with a name from the\noutput:\n\n```shell\nkubectl --kubeconfig=cluster-config config use-context CONTEXT_NAME\n```\n\nContinue with [Verify access to the cluster](#verify-access-to-the-cluster).\n\n## Create a kubeconfig from connection information\n\nStart in a directory without a `cluster-config` file. These commands create it\nwithout changing your existing kubeconfig. Replace the server URL, certificate\npaths, and namespace with your cluster's values. You can keep the local names\n`my-cluster`, `my-user`, and `my-context` if they are not already used in your\nexisting kubeconfig files.\n\n### CLine truncated
{"text": "Kubernetes offers a DNS cluster addon, which most of the supported environments enable by default. In Kubernetes version 1.11 and later, CoreDNS is recommended and is installed by default with kubeadm.\n\nFor more information on how to configure CoreDNS for a Kubernetes cluster, see the [Customizing DNS Service](/docs/tasks/administer-cluster/dns-custom-nameservers/).", "source": "content/en/docs/tasks/access-application-cluster/configure-dns-cluster.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "This page shows how to create an external load balancer.\n\nWhen creating a Service, you have\nthe option of automatically creating a cloud load balancer. This provides an\nexternally-accessible IP address that sends traffic to the correct port on your cluster\nnodes,\n_provided your cluster runs in a supported environment and is configured with\nthe correct cloud load balancer provider package_.\n\nYou can also use an in place of Service.\nFor more information, check the [Ingress](/docs/concepts/services-networking/ingress/)\ndocumentation.\n\n##\n\nYour cluster must be running in a cloud or other environment that already has support\nfor configuring external load balancers.\n\n## Create a Service\n\n### Create a Service from a manifest\n\nTo create an external load balancer, add the following line to your\nService manifest:\n\n```yaml\ntype: LoadBalancer\n```\n\nYour manifest might then look like:\n\n```yaml\napiVersion: v1\nkind: Service\nmetadata:\nname: example-service\nspec:\nselector:\napp: example\nports:\n- port: 8765\ntargetPort: 9376\ntype: LoadBalancer\n```\n\n### Create a Service using kubectl\n\nYou can alternatively create the service with the `kubectl expose` command and\nits `--type=LoadBalancer` flag:\n\n```bash\nkubectl expose deployment example --port=8765 --target-port=9376 \\\n--name=example-service --type=LoadBalancer\n```\n\nThis command creates a new Service using the same selectors as the referenced\nresource (in the case of the example above, a\nDeployment named `example`).\n\nFor more information, including optional flags, refer to the\n[`kubectl expose` reference](/docs/reference/generated/kubectl/kubectl-commands/#expose).\n\n## Finding your IP address\n\nYou can find the IP address created for your service by getting the service\ninformation through `kubectl`:\n\n```bash\nkubectl describe services example-service\n```\n\nwhich should produce output similar to:\n\n```\nName: example-service\nNamespace: default\nLabels: app=example\nAnnotations:\nSelector: app=example\nType: LoadBalancer\nIP Families:\nIP: 10.3.22.96\nIPs: 10.3.22.96\nLoadBalancer Ingress: 192.0.2.89\nPort: 8765/TCP\nTargetPort: 9376/TCP\nNodePort: 30593/TCP\nEndpoints: 172.17.0.3:9376\nSession Affinity: None\nExternal Traffic Policy: Cluster\nEvents:\n```\n\nThe load balancer's IP address is listed next to `LoadBalancer Ingress`.\n\nIf you are running your service on Minikube, you can find the assigned IP address and port with:\n\n```bash\nminikube service example-service --url\n```\n\n## Preserving the client source IP\n\nBy default, the source IP seen in the target container is *not the original\nsource IP* of the client. To enable preservation of the client IP, the following\nfields can be configured in the `.spec` of the Service:\n\n* `.spec.externalTrafficPolicy` - denotes if this Service desires to route\nexternal traffic to node-local or cluster-wide endpoints. There are two available\noptions: `Cluster` (default) and `Local`. `Cluster` obscures the client source\nIP and may cause a second hop to another node, but should have good overall\nload-spreading. `Local` preserves the client source IP and avoids a second hop\nfor LoadBalancer and NodePort type Services, but risks potentially imbalanced\ntraffic spreading.\n* `.spec.healthCheckNodePort` - specifies the health check node port\n(numeric port number) for the service. If you don't specify\n`healthCheckNodePort`, the service controller allocates a port from your\ncluster's NodePort range.\nYou can configure that range by setting an API server command line option,\n`--service-node-port-range`. The Service will use the user-specified\n`healthCheckNodePort` value if you specify it, provided that the\nService `type` is set to LoadBalancer and `externalTrafficPolicy` is set\nto `Local`.\n\nSetting `externalTrafficPolicy` to Local in the Service manifest\nactivates this feature. For example:\n\n```yaml\napiVersion: v1\nkind: Service\nmetadata:\nname: example-service\nspec:\nselector:\napp: example\nports:\n- port: 8765\ntargetPort: 9376\nexternalTrafficPolicy: Local\ntype: LoadBalancer\n```\n\n### Caveats and limitations when preserving source IPs\n\nLoad balancing services from some cloud providers do not let you configure different weights for each target.\n\nWith each target weighted equally in terms of sending traffic to Nodes, external\ntraffic is not equally load balanced across different Pods. The external load balancer\nis unaware of the number of Pods on each node that are used as a target.\n\nWhere `NumServicePods > NumNodes`, a fairly close-to-equal\ndistribution will be seen, even without weights.\n\nInternal pod to pod traffic should behave similar to ClusterIP services, with equal probability across all pods.\n\n## Garbage collecting load balancers\n\nIn usual case, the correlating load balancer resources in cloud provider should\nbe cleaned up soon after a LoadBalancer type Service is deleted. But it is known\nthat there are variouLine truncated
{"text": "When using client certificate authentication, you can generate certificates\nmanually through [`easyrsa`](https://github.com/OpenVPN/easy-rsa), [`openssl`](https://github.com/openssl/openssl) or [`cfssl`](https://github.com/cloudflare/cfssl).\n\n### easyrsa\n\n**easyrsa** can manually generate certificates for your cluster.\n\n1. Download, unpack, and initialize the patched version of `easyrsa3`.\n\n```shell\ncurl -LO https://dl.k8s.io/easy-rsa/easy-rsa.tar.gz\ntar xzf easy-rsa.tar.gz\ncd easy-rsa-master/easyrsa3\n./easyrsa init-pki\n```\n1. Generate a new certificate authority (CA). `--batch` sets automatic mode;\n`--req-cn` specifies the Common Name (CN) for the CA's new root certificate.\n\n```shell\n./easyrsa --batch \"--req-cn=${MASTER_IP}@`date +%s`\" build-ca nopass\n```\n\n1. Generate server certificate and key.\n\nThe argument `--subject-alt-name` sets the possible IPs and DNS names the API server will\nbe accessed with. The `MASTER_CLUSTER_IP` is usually the first IP from the service CIDR\nthat is specified as the `--service-cluster-ip-range` argument for both the API server and\nthe controller manager component. The argument `--days` is used to set the number of days\nafter which the certificate expires.\nThe sample below also assumes that you are using `cluster.local` as the default\nDNS domain name.\n\n```shell\n./easyrsa --subject-alt-name=\"IP:${MASTER_IP},\"\\\n\"IP:${MASTER_CLUSTER_IP},\"\\\n\"DNS:kubernetes,\"\\\n\"DNS:kubernetes.default,\"\\\n\"DNS:kubernetes.default.svc,\"\\\n\"DNS:kubernetes.default.svc.cluster,\"\\\n\"DNS:kubernetes.default.svc.cluster.local\" \\\n--days=10000 \\\nbuild-server-full server nopass\n```\n\n1. Copy `pki/ca.crt`, `pki/issued/server.crt`, and `pki/private/server.key` to your directory.\n\n1. Fill in and add the following parameters into the API server start parameters:\n\n```shell\n--client-ca-file=/yourdirectory/ca.crt\n--tls-cert-file=/yourdirectory/server.crt\n--tls-private-key-file=/yourdirectory/server.key\n```\n\n### openssl\n\n**openssl** can manually generate certificates for your cluster.\n\n1. Generate a ca.key with 2048bit:\n\n```shell\nopenssl genrsa -out ca.key 2048\n```\n\n1. According to the ca.key generate a ca.crt (use `-days` to set the certificate effective time):\n\n```shell\nopenssl req -x509 -new -noenc -key ca.key -subj \"/CN=${MASTER_IP}\" -days 10000 -out ca.crt\n```\n\n1. Generate a server.key with 2048bit:\n\n```shell\nopenssl genrsa -out server.key 2048\n```\n\n1. Create a config file for generating a Certificate Signing Request (CSR).\n\nBe sure to substitute the values marked with angle brackets (e.g. ` `)\nwith real values before saving this to a file (e.g. `csr.conf`).\nNote that the value for `MASTER_CLUSTER_IP` is the service cluster IP for the\nAPI server as described in previous subsection.\nThe sample below also assumes that you are using `cluster.local` as the default\nDNS domain name.\n\n```ini\n[ req ]\ndefault_bits = 2048\nprompt = no\ndefault_md = sha256\nreq_extensions = req_ext\ndistinguished_name = dn\n\n[ dn ]\nC =\nST =\nL =\nO =\nOU =\nCN =\n\n[ req_ext ]\nsubjectAltName = @alt_names\n\n[ alt_names ]\nDNS.1 = kubernetes\nDNS.2 = kubernetes.default\nDNS.3 = kubernetes.default.svc\nDNS.4 = kubernetes.default.svc.cluster\nDNS.5 = kubernetes.default.svc.cluster.local\nIP.1 =\nIP.2 =\n\n[ v3_ext ]\nauthorityKeyIdentifier=keyid,issuer:always\nbasicConstraints=CA:FALSE\nkeyUsage=keyEncipherment,dataEncipherment\nextendedKeyUsage=serverAuth,clientAuth\nsubjectAltName=@alt_names\n```\n\n1. Generate the certificate signing request based on the config file:\n\n```shell\nopenssl req -new -key server.key -out server.csr -config csr.conf\n```\n\n1. Generate the server certificate using the ca.key, ca.crt and server.csr:\n\n```shell\nopenssl x509 -req -in server.csr -CA ca.crt -CAkey ca.key \\\n-CAcreateserial -out server.crt -days 10000 \\\n-extensions v3_ext -extfile csr.conf -sha256\n```\n\n1. View the certificate signing request:\n\n```shell\nopenssl req -noout -text -in ./server.csr\n```\n\n1. View the certificate:\n\n```shell\nopenssl x509 -noout -text -in ./server.crt\n```\n\n1. Fill in and add the following parameters into the API server start parameters:\n\n```shell\n--client-ca-file=/yourdirectory/ca.crt\n--tls-cert-file=/yourdirectory/server.crt\n--tls-private-key-file=/yourdirectory/server.key\n```\n\n### cfssl\n\n**cfssl** is another tool for certificate generation.\n\n1. Download, unpack and prepare the command line tools as shown below.\n\nNote that you may need to adapt the sample commands based on the hardware\narchitecture and cfssl version you are using.\n\n```shell\ncurl -L https://github.com/cloudflare/cfssl/releases/download/v1.5.0/cfssl_1.5.0_linux_amd64 -o cfssl\nchmod +x cfssl\ncurl -L https://github.com/cloudflare/cfssl/releases/download/v1.5.0/cfssljson_1.5.0_linux_amd64 -o cfssljson\nchmod +x cfssljson\ncurl -L https://github.com/cloudflare/cfssl/releases/download/v1.5.0/cfssl-certinfo_1Line truncated
{"text": "Kubernetes keeps many aspects of how pods execute on nodes abstracted\nfrom the user. This is by design.  However, some workloads require\nstronger guarantees in terms of latency and/or performance in order to operate\nacceptably. The kubelet provides methods to enable more complex workload\nplacement policies while keeping the abstraction free from explicit placement\ndirectives.\n\nFor detailed information on resource management, please refer to the\n[Resource Management for Pods and Containers](/docs/concepts/configuration/manage-resources-containers)\ndocumentation.\n\nFor detailed information on how the kubelet implements resource management, please refer to the\n[Node ResourceManagers](/docs/concepts/policy/node-resource-managers) documentation.\n\n##\n\nIf you are running an older version of Kubernetes, please look at the documentation for the version you are actually running.\n\n## Configuring CPU management policies\n\nBy default, the kubelet uses [CFS quota](https://en.wikipedia.org/wiki/Completely_Fair_Scheduler)\nto enforce pod CPU limits.  When the node runs many CPU-bound pods,\nthe workload can move to different CPU cores depending on\nwhether the pod is throttled and which CPU cores are available at\nscheduling time. Many workloads are not sensitive to this migration and thus\nwork fine without any intervention.\n\nHowever, in workloads where CPU cache affinity and scheduling latency\nsignificantly affect workload performance, the kubelet allows alternative CPU\nmanagement policies to determine some placement preferences on the node.\n\n## Windows Support\n\nCPU Manager support can be enabled on Windows by using the `WindowsCPUAndMemoryAffinity` feature gate\nand it requires support in the container runtime.\nOnce the feature gate is enabled, follow the steps below to configure the [CPU manager policy](#configuration).\n\n## Configuration\n\nThe CPU Manager policy is set with the `--cpu-manager-policy` kubelet\nflag or the `cpuManagerPolicy` field in [KubeletConfiguration](/docs/reference/config-api/kubelet-config.v1beta1/).\nThere are two supported policies:\n\n* [`none`](#none-policy): the default policy.\n* [`static`](#static-policy): allows pods with certain resource characteristics to be\ngranted increased CPU affinity and exclusivity on the node.\n\nThe CPU manager periodically writes resource updates through the CRI in\norder to reconcile in-memory CPU assignments with cgroupfs. The reconcile\nfrequency is set through a new Kubelet configuration value\n`--cpu-manager-reconcile-period`. If not specified, it defaults to the same\nduration as `--node-status-update-frequency`.\n\nThe behavior of the static policy can be fine-tuned using the `--cpu-manager-policy-options` flag.\nThe flag takes a comma-separated list of `key=value` policy options.\nIf you disable the `CPUManagerPolicyOptions`\n[feature gate](/docs/reference/command-line-tools-reference/feature-gates/)\nthen you cannot fine-tune CPU manager policies. In that case, the CPU manager\noperates only using its default settings.\n\nIn addition to the top-level `CPUManagerPolicyOptions` feature gate, the policy options are split\ninto two groups: alpha quality (hidden by default) and beta quality (visible by default).\nThe groups are guarded respectively by the `CPUManagerPolicyAlphaOptions`\nand `CPUManagerPolicyBetaOptions` feature gates. Diverging from the Kubernetes standard, these\nfeature gates guard groups of options, because it would have been too cumbersome to add a feature\ngate for each individual option.\n\n## Changing the CPU Manager Policy\n\nSince the CPU manager policy can only be applied when kubelet spawns new pods, simply changing from\n\"none\" to \"static\" won't apply to existing pods. So in order to properly change the CPU manager\npolicy on a node, perform the following steps:\n\n1. [Drain](/docs/tasks/administer-cluster/safely-drain-node) the node.\n2. Stop kubelet.\n3. Remove the old CPU manager state file. The path to this file is\n`/var/lib/kubelet/cpu_manager_state` by default. This clears the state maintained by the\nCPUManager so that the cpu-sets set up by the new policy won’t conflict with it.\n4. Edit the kubelet configuration to change the CPU manager policy to the desired value.\n5. Start kubelet.\n\nRepeat this process for every node that needs its CPU manager policy changed. Skipping this\nprocess will result in kubelet crashlooping with the following error:\n\n```\ncould not restore state from checkpoint: configured policy \"static\" differs from state checkpoint policy \"none\", please drain this node and delete the CPU manager checkpoint file \"/var/lib/kubelet/cpu_manager_state\" before restarting Kubelet\n```\n\nif the set of online CPUs changes on the node, the node must be drained and CPU manager manually reset by deleting the\nstate file `cpu_manager_state` in the kubelet root directory.\n\n### `none` policy configuration\n\nThis policy has no extra configuration items.\n\Line truncated
{"text": "This page shows how to configure a Key Management Service (KMS) provider and plugin to enable secret data encryption.\nIn Kubernetes there are two versions of KMS at-rest encryption.\nYou should use KMS v2 if feasible because KMS v1 is deprecated (since Kubernetes v1.28) and disabled by default (since Kubernetes v1.29).\nKMS v2 offers significantly better performance characteristics than KMS v1.\n\nThis documentation is for the generally available implementation of KMS v2 (and for the\ndeprecated version 1 implementation).\nIf you are using any control plane components older than Kubernetes v1.29, please check\nthe equivalent page in the documentation for the version of Kubernetes that your cluster\nis running. Earlier releases of Kubernetes had different behavior that may be relevant\nfor information security.\n\n##\n\nThe version of Kubernetes that you need depends on which KMS API version\nyou have selected. Kubernetes recommends using KMS v2.\n\n- If you selected KMS API v1 to support clusters prior to version v1.27\nor if you have a legacy KMS plugin that only supports KMS v1,\nany supported Kubernetes version will work. This API is deprecated as of Kubernetes v1.28.\nKubernetes does not recommend the use of this API.\n\n### KMS v1\n\n* Kubernetes version 1.10.0 or later is required\n\n* For version 1.29 and later, the v1 implementation of KMS is disabled by default.\nTo enable the feature, set `--feature-gates=KMSv1=true` to configure a KMS v1 provider.\n\n* Your cluster must use etcd v3 or later\n\n### KMS v2\n\n* Your cluster must use etcd v3 or later\n\n## KMS encryption and per-object encryption keys\n\nThe KMS encryption provider uses an envelope encryption scheme to encrypt data in etcd.\nThe data is encrypted using a data encryption key (DEK).\nThe DEKs are encrypted with a key encryption key (KEK) that is stored and managed in a remote KMS.\n\nIf you use the (deprecated) v1 implementation of KMS, a new DEK is generated for each encryption.\n\nWith KMS v2, a new DEK is generated **per encryption**: the API server uses a\n_key derivation function_ to generate single use data encryption keys from a secret seed\ncombined with some random data.\nThe seed is rotated whenever the KEK is rotated\n(see the _Understanding key_id and Key Rotation_ section below for more details).\n\nThe KMS provider uses gRPC to communicate with a specific KMS plugin over a UNIX domain socket.\nThe KMS plugin, which is implemented as a gRPC server and deployed on the same host(s)\nas the Kubernetes control plane, is responsible for all communication with the remote KMS.\n\n## Configuring the KMS provider\n\nTo configure a KMS provider on the API server, include a provider of type `kms` in the\n`providers` array in the encryption configuration file and set the following properties:\n\n### KMS v1 {#configuring-the-kms-provider-kms-v1}\n\n* `apiVersion`: API Version for KMS provider. Leave this value empty or set it to `v1`.\n* `name`: Display name of the KMS plugin. Cannot be changed once set.\n* `endpoint`: Listen address of the gRPC server (KMS plugin). The endpoint is a UNIX domain socket.\n* `cachesize`: Number of data encryption keys (DEKs) to be cached in the clear.\nWhen cached, DEKs can be used without another call to the KMS;\nwhereas DEKs that are not cached require a call to the KMS to unwrap.\n* `timeout`: How long should `kube-apiserver` wait for kms-plugin to respond before\nreturning an error (default is 3 seconds).\n\n### KMS v2 {#configuring-the-kms-provider-kms-v2}\n\n* `apiVersion`: API Version for KMS provider. Set this to `v2`.\n* `name`: Display name of the KMS plugin. Cannot be changed once set.\n* `endpoint`: Listen address of the gRPC server (KMS plugin). The endpoint is a UNIX domain socket.\n* `timeout`: How long should `kube-apiserver` wait for kms-plugin to respond before\nreturning an error (default is 3 seconds).\n\nKMS v2 does not support the `cachesize` property. All data encryption keys (DEKs) will be cached in\nthe clear once the server has unwrapped them via a call to the KMS. Once cached, DEKs can be used\nto perform decryption indefinitely without making a call to the KMS.\n\nSee [Understanding the encryption at rest configuration](/docs/tasks/administer-cluster/encrypt-data).\n\n## Implementing a KMS plugin\n\nTo implement a KMS plugin, you can develop a new plugin gRPC server or enable a KMS plugin\nalready provided by your cloud provider.\nYou then integrate the plugin with the remote KMS and deploy it on the Kubernetes control plane.\n\n### Enabling the KMS supported by your cloud provider\n\nRefer to your cloud provider for instructions on enabling the cloud provider-specific KMS plugin.\n\n### Developing a KMS plugin gRPC server\n\nYou can develop a KMS plugin gRPC server using a stub file available for Go. For other languages,\nyou use a proto file to create a stub file that you can use to develop the gRPC server code.\n\n#### KMS v1 {#developing-a-kms-plugin-gRPC-serLine truncated
{"text": "This page explains how to enable a package repository for the desired\nKubernetes minor release upon upgrading a cluster. This is only needed\nfor users of the community-owned package repositories hosted at `pkgs.k8s.io`.\nUnlike the legacy package repositories, the community-owned package\nrepositories are structured in a way that there's a dedicated package\nrepository for each Kubernetes minor version.\n\nThis guide only covers a part of the Kubernetes upgrade process. Please see the\n[upgrade guide](/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade/) for\nmore information about upgrading Kubernetes clusters.\n\nThis step is only needed upon upgrading a cluster to another **minor** release.\nIf you're upgrading to another patch release within the same minor release (e.g.\nv.5 to v.7), you don't\nneed to follow this guide. However, if you're still using the legacy package\nrepositories, you'll need to migrate to the new community-owned package\nrepositories before upgrading (see the next section for more details on how to\ndo this).\n\n##\n\nThis document assumes that you're already using the community-owned\npackage repositories (`pkgs.k8s.io`). If that's not the case, it's strongly\nrecommended to migrate to the community-owned package repositories as described\nin the [official announcement](/blog/2023/08/15/pkgs-k8s-io-introduction/).\n\n### Verifying if the Kubernetes package repositories are used\n\nIf you're unsure whether you're using the community-owned package repositories or the\nlegacy package repositories, take the following steps to verify:\n\nPrint the contents of the file that defines the Kubernetes `apt` repository:\n\n```shell\n# On your system, this configuration file could have a different name\npager /etc/apt/sources.list.d/kubernetes.list\n```\n\nIf you see a line similar to:\n\n```\ndeb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v/deb/ /\n```\n\n**You're using the Kubernetes package repositories and this guide applies to you.**\nOtherwise, it's strongly recommended to migrate to the Kubernetes package repositories\nas described in the [official announcement](/blog/2023/08/15/pkgs-k8s-io-introduction/).\n\nPrint the contents of the file that defines the Kubernetes `yum` repository:\n\n```shell\n# On your system, this configuration file could have a different name\ncat /etc/yum.repos.d/kubernetes.repo\n```\n\nIf you see a `baseurl` similar to the `baseurl` in the output below:\n\n```\n[kubernetes]\nname=Kubernetes\nbaseurl=https://pkgs.k8s.io/core:/stable:/v/rpm/\nenabled=1\ngpgcheck=1\ngpgkey=https://pkgs.k8s.io/core:/stable:/v/rpm/repodata/repomd.xml.key\nexclude=kubelet kubeadm kubectl\n```\n\n**You're using the Kubernetes package repositories and this guide applies to you.**\nOtherwise, it's strongly recommended to migrate to the Kubernetes package repositories\nas described in the [official announcement](/blog/2023/08/15/pkgs-k8s-io-introduction/).\n\nPrint the contents of the file that defines the Kubernetes `zypper` repository:\n\n```shell\n# On your system, this configuration file could have a different name\ncat /etc/zypp/repos.d/kubernetes.repo\n```\n\nIf you see a `baseurl` similar to the `baseurl` in the output below:\n\n```\n[kubernetes]\nname=Kubernetes\nbaseurl=https://pkgs.k8s.io/core:/stable:/v/rpm/\nenabled=1\ngpgcheck=1\ngpgkey=https://pkgs.k8s.io/core:/stable:/v/rpm/repodata/repomd.xml.key\nexclude=kubelet kubeadm kubectl\n```\n\n**You're using the Kubernetes package repositories and this guide applies to you.**\nOtherwise, it's strongly recommended to migrate to the Kubernetes package repositories\nas described in the [official announcement](/blog/2023/08/15/pkgs-k8s-io-introduction/).\n\nThe URL used for the Kubernetes package repositories is not limited to `pkgs.k8s.io`,\nit can also be one of:\n\n- `pkgs.k8s.io`\n- `pkgs.kubernetes.io`\n- `packages.kubernetes.io`\n\n## Switching to another Kubernetes package repository\n\nThis step should be done upon upgrading from one to another Kubernetes minor\nrelease in order to get access to the packages of the desired Kubernetes minor\nversion.\n\n1. Open the file that defines the Kubernetes `apt` repository using a text editor of your choice:\n\n```shell\nnano /etc/apt/sources.list.d/kubernetes.list\n```\n\nYou should see a single line with the URL that contains your current Kubernetes\nminor version. For example, if you're using v,\nyou should see this:\n\n```\ndeb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v/deb/ /\n```\n\n1. Change the version in the URL to **the next available minor release**, for example:\n\n```\ndeb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable://deb/ /\n```\n\n1. Save the file and exit your text editor. Continue following the relevant upgrade instructions.\n\n1. Open the file that defines the Kubernetes `yum` repository using a text editor ofLine truncated
{"text": "Client certificates generated by [kubeadm](/docs/reference/setup-tools/kubeadm/) expire after 1 year.\nThis page explains how to manage certificate renewals with kubeadm. It also covers other tasks related\nto kubeadm certificate management.\n\nThe Kubernetes project recommends upgrading to the latest patch releases promptly, and\nto ensure that you are running a supported minor release of Kubernetes.\nFollowing this recommendation helps you to stay secure.\n\n##\n\nYou should be familiar with [PKI certificates and requirements in Kubernetes](/docs/setup/best-practices/certificates/).\n\nYou should be familiar with how to pass a [configuration](/docs/reference/config-api/kubeadm-config.v1beta4/) file to the kubeadm commands.\n\nThis guide covers the usage of the `openssl` command (used for manual certificate signing,\nif you choose that approach), but you can use your preferred tools.\n\nSome of the steps here use `sudo` for administrator access. You can use any equivalent tool.\n\n## Using custom certificates {#custom-certificates}\n\nBy default, kubeadm generates all the certificates needed for a cluster to run.\nYou can override this behavior by providing your own certificates.\n\nTo do so, you must place them in whatever directory is specified by the\n`--cert-dir` flag or the `certificatesDir` field of kubeadm's `ClusterConfiguration`.\nBy default this is `/etc/kubernetes/pki`.\n\nIf a given certificate and private key pair exists before running `kubeadm init`,\nkubeadm does not overwrite them. This means you can, for example, copy an existing\nCA into `/etc/kubernetes/pki/ca.crt` and `/etc/kubernetes/pki/ca.key`,\nand kubeadm will use this CA for signing the rest of the certificates.\n\n## Choosing an encryption algorithm {#choosing-encryption-algorithm}\n\nkubeadm allows you to choose an encryption algorithm that is used for creating\npublic and private keys. That can be done by using the `encryptionAlgorithm` field of the\nkubeadm configuration:\n\n```yaml\napiVersion: kubeadm.k8s.io/v1beta4\nkind: ClusterConfiguration\nencryptionAlgorithm:\n```\n\n` ` can be one of `RSA-2048` (default), `RSA-3072`, `RSA-4096` or `ECDSA-P256`.\n\n## Choosing certificate validity period {#choosing-cert-validity-period}\n\nkubeadm allows you to choose the validity period of CA and leaf certificates.\nThat can be done by using the `certificateValidityPeriod` and `caCertificateValidityPeriod`\nfields of the kubeadm configuration:\n\n```yaml\napiVersion: kubeadm.k8s.io/v1beta4\nkind: ClusterConfiguration\ncertificateValidityPeriod: 8760h # Default: 365 days × 24 hours = 1 year\ncaCertificateValidityPeriod: 87600h # Default: 365 days × 24 hours * 10 = 10 years\n```\n\nThe values of the fields follow the accepted format for\n[Go's `time.Duration` values](https://pkg.go.dev/time#ParseDuration), with the longest supported\nunit being `h` (hours).\n\n## External CA mode {#external-ca-mode}\n\nIt is also possible to provide only the `ca.crt` file and not the\n`ca.key` file (this is only available for the root CA file, not other cert pairs).\nIf all other certificates and kubeconfig files are in place, kubeadm recognizes\nthis condition and activates the \"External CA\" mode. kubeadm will proceed without the\nCA key on disk.\n\nInstead, run the controller-manager standalone with `--controllers=csrsigner` and\npoint to the CA certificate and key.\n\nThere are various ways to prepare the component credentials when using external CA mode.\n\n### Manual preparation of component credentials\n\n[PKI certificates and requirements](/docs/setup/best-practices/certificates/) includes information\non how to prepare all the required by kubeadm component credentials manually.\n\nThis guide covers the usage of the `openssl` command (used for manual certificate signing,\nif you choose that approach), but you can use your preferred tools.\n\n### Preparation of credentials by signing CSRs generated by kubeadm\n\nkubeadm can [generate CSR files](#signing-csr) that you can sign manually with tools like\n`openssl` and your external CA. These CSR files will include all the specification for credentials\nthat components deployed by kubeadm require.\n\n### Automated preparation of component credentials by using kubeadm phases\n\nAlternatively, it is possible to use kubeadm phase commands to automate this process.\n\n- Go to a host that you want to prepare as a kubeadm control plane node with external CA.\n- Copy the external CA files `ca.crt` and `ca.key` that you have into `/etc/kubernetes/pki` on the node.\n- Prepare a temporary [kubeadm configuration file](/docs/reference/setup-tools/kubeadm/kubeadm-init/#config-file)\ncalled `config.yaml` that can be used with `kubeadm init`. Make sure that this file includes\nany relevant cluster wide or host-specific information that could be included in certificates, such as,\n`ClusterConfiguration.controlPlaneEndpoint`, `ClusterConfiguration.certSANs` and `InitConfiguration.APIEndpoint`.\n- On theLine truncated
{"text": "This page shows how to configure default CPU requests and limits for a\nnamespace.\n\nA Kubernetes cluster can be divided into namespaces. If you create a Pod within a\nnamespace that has a default CPU\n[limit](/docs/concepts/configuration/manage-resources-containers/#requests-and-limits), and any container in that Pod does not specify\nits own CPU limit, then the\ncontrol plane assigns the default\nCPU limit to that container.\n\nKubernetes assigns a default CPU\n[request](/docs/concepts/configuration/manage-resources-containers/#requests-and-limits),\nbut only under certain conditions that are explained later in this page.\n\n##\n\nYou must have access to create namespaces in your cluster.\n\nIf you're not already familiar with what Kubernetes means by 1.0 CPU,\nread [meaning of CPU](/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu).\n\n## Create a namespace\n\nCreate a namespace so that the resources you create in this exercise are\nisolated from the rest of your cluster.\n\n```shell\nkubectl create namespace default-cpu-example\n```\n\n## Create a LimitRange and a Pod\n\nHere's a manifest for an example LimitRange.\nThe manifest specifies a default CPU request and a default CPU limit.\n\nCreate the LimitRange in the default-cpu-example namespace:\n\n```shell\nkubectl apply -f https://k8s.io/examples/admin/resource/cpu-defaults.yaml --namespace=default-cpu-example\n```\n\nNow if you create a Pod in the default-cpu-example namespace, and any container\nin that Pod does not specify its own values for CPU request and CPU limit,\nthen the control plane applies default values: a CPU request of 0.5 and a default\nCPU limit of 1.\n\nHere's a manifest for a Pod that has one container. The container\ndoes not specify a CPU request and limit.\n\nCreate the Pod.\n\n```shell\nkubectl apply -f https://k8s.io/examples/admin/resource/cpu-defaults-pod.yaml --namespace=default-cpu-example\n```\n\nView the Pod's specification:\n\n```shell\nkubectl get pod default-cpu-demo --output=yaml --namespace=default-cpu-example\n```\n\nThe output shows that the Pod's only container has a CPU request of 500m `cpu`\n(which you can read as “500 millicpu”), and a CPU limit of 1 `cpu`.\nThese are the default values specified by the LimitRange.\n\n```shell\ncontainers:\n- image: nginx\nimagePullPolicy: Always\nname: default-cpu-demo-ctr\nresources:\nlimits:\ncpu: \"1\"\nrequests:\ncpu: 500m\n```\n\n## What if you specify a container's limit, but not its request?\n\nHere's a manifest for a Pod that has one container. The container\nspecifies a CPU limit, but not a request:\n\nCreate the Pod:\n\n```shell\nkubectl apply -f https://k8s.io/examples/admin/resource/cpu-defaults-pod-2.yaml --namespace=default-cpu-example\n```\n\nView the [specification](/docs/concepts/overview/working-with-objects/#object-spec-and-status)\nof the Pod that you created:\n\n```\nkubectl get pod default-cpu-demo-2 --output=yaml --namespace=default-cpu-example\n```\n\nThe output shows that the container's CPU request is set to match its CPU limit.\nNotice that the container was not assigned the default CPU request value of 0.5 `cpu`:\n\n```\nresources:\nlimits:\ncpu: \"1\"\nrequests:\ncpu: \"1\"\n```\n\n## What if you specify a container's request, but not its limit?\n\nHere's an example manifest for a Pod that has one container. The container\nspecifies a CPU request, but not a limit:\n\nCreate the Pod:\n\n```shell\nkubectl apply -f https://k8s.io/examples/admin/resource/cpu-defaults-pod-3.yaml --namespace=default-cpu-example\n```\n\nView the specification of the Pod that you created:\n\n```\nkubectl get pod default-cpu-demo-3 --output=yaml --namespace=default-cpu-example\n```\n\nThe output shows that the container's CPU request is set to the value you specified at\nthe time you created the Pod (in other words: it matches the manifest).\nHowever, the same container's CPU limit is set to 1 `cpu`, which is the default CPU limit\nfor that namespace.\n\n```\nresources:\nlimits:\ncpu: \"1\"\nrequests:\ncpu: 750m\n```\n\n## Motivation for default CPU limits and requests\n\nIf your namespace has a CPU resource quota\nconfigured,\nit is helpful to have a default value in place for CPU limit.\nHere are two of the restrictions that a CPU resource quota imposes on a namespace:\n\n* For every Pod that runs in the namespace, each of its containers must have a CPU limit.\n* CPU limits apply a resource reservation on the node where the Pod in question is scheduled.\nThe total amount of CPU that is reserved for use by all Pods in the namespace must not\nexceed a specified limit.\n\nWhen you add a LimitRange:\n\nIf any Pod in that namespace that includes a container does not specify its own CPU limit,\nthe control plane applies the default CPU limit to that container, and the Pod can be\nallowed to run in a namespace that is restricted by a CPU ResourceQuota.\n\n## Clean up\n\nDelete your namespace:\n\n```shell\nkubectl delete namespace default-Line truncated
{"text": "The Kubernetes *Memory Manager* enables the feature of guaranteed memory (and hugepages)\nallocation for pods in the `Guaranteed` QoS class.\n\nThe Memory Manager employs a hint generation protocol to yield the most suitable NUMA affinity for a pod.\nThe Memory Manager feeds the central manager (*Topology Manager*) with these affinity hints.\nBased on both the hints and Topology Manager policy, the pod is rejected or admitted to the node.\n\nMoreover, the Memory Manager ensures that the memory which a pod requests\nis allocated from a minimum number of NUMA nodes.\n\nFor background about memory resources for Pods, read\n[Assign Memory Resources to Containers and Pods](/docs/tasks/configure-pod-container/assign-memory-resource/).\n\n##\n\nIf you are running an older version of Kubernetes, check the documentation\nfor the version of Kubernetes you are running.\n\n### Resource alignment prerequisites\n\nTo align memory resources with other requested resources in a Pod spec:\n\n- the CPU Manager should be enabled and proper CPU Manager policy should be configured on a Node.\nSee [control CPU Management Policies](/docs/tasks/administer-cluster/cpu-management-policies/);\n- the Topology Manager should be enabled and proper Topology Manager policy should be configured on a Node.\nSee [control Topology Management Policies](/docs/tasks/administer-cluster/topology-manager/).\n\n### Windows support\n\nWindows support can be enabled via the `WindowsCPUAndMemoryAffinity` feature gate\nand it requires support in the container runtime.\nOnly the [None](#policy-none) and [BestEffort](#policy-best-effort) policies are supported on Windows.\n\n## How does the Memory Manager operate?\n\nFor Linux nodes, the Memory Manager offers the guaranteed memory (and hugepages) allocation\nfor Pods in Guaranteed QoS class.\nTo immediately put the Memory Manager into operation follow the guidelines in the section\n[Memory Manager configuration](#memory-manager-configuration), and subsequently,\nprepare and deploy a `Guaranteed` Pod as illustrated in the section\n[Placing a Pod in the Guaranteed QoS class](#placing-a-pod-in-the-guaranteed-qos-class).\n\nThe Memory Manager is a hint provider, and it provides topology hints for\nthe Topology Manager which then aligns the requested resources according to these topology hints.\nOn Linux, it also enforces `cgroups` (specifically, `cpuset.mems`) for Pods.\nThe complete flow diagram concerning pod admission and deployment process is illustrated\nbelow:\n\n![Memory Manager in the pod admission and deployment process](/images/docs/memory-manager-diagram.svg)\n\nDuring this process, the Memory Manager updates its internal counters stored in\n[Node Map and Memory Maps][2] to manage guaranteed memory allocation.\n\nThe memory manager activates during kubelet startup if a node administrator configures\n`reservedMemory` for the kubelet (section [Reserved memory configuration](#reserved-memory-flag)).\nIn this case, the kubelet updates its node map to reflect this reservation.\n\nWhen the `Static` policy is configured, you **must** configure reserved memory for the node\n(for example, with the `reservedMemory` configuration field in the kubelet configuration).\n\nAn important topic in the context of Memory Manager operation is the management of NUMA groups.\nEach time pod's memory request is in excess of single NUMA node capacity, the Memory Manager\nattempts to create a group that comprises several NUMA nodes and that features extended memory\ncapacity.\n\n## Memory Manager configuration\n\nOther Managers should already be configured (see [resource alignment prerequisites](#resource-alignment-prerequisites).\nSet the `memoryManagerPolicy` configuration field within the [kubelet configuration](), to the name of your chosen [policy](#policies).\n\nOptionally, some amount of memory can be reserved for system or kubelet processes to increase\nnode stability (section [Reserved memory configuration](#reserved-memory-flag)).\n\n### Policies\n\nKubernetes' memory manager provides three policies. You can select a policy via the `memoryManagerPolicy` configuration field\nin the kubelet configuration; the values available in Kubernetes are:\n\n* [`None`](#policy-none) (default)\n* [`Static`](#policy-static) (Linux only)\n* [`BestEffort`](#policy-best-effort) (Windows only)\n\n#### None policy {#policy-none}\n\nThis is the default policy and does not affect the memory allocation in any way.\nIt acts the same as if the Memory Manager is not present at all.\n\nThe `None` policy returns default topology hint. This special hint denotes that Hint Provider\n(Memory Manager in this case) has no preference for NUMA affinity with any resource.\n\n#### Static policy {#policy-static}\n\n**This policy is only supported on Linux.**\n\nIn the case of the `Guaranteed` pod, the `Static` Memory Manager policy returns topology hints\nrelating to the set of NUMA nodes where the memory can be guaranteed,\nand reserves the mLine truncated
{"text": "This page shows how to configure quotas for API objects, including\nPersistentVolumeClaims and Services. A quota restricts the number of\nobjects, of a particular type, that can be created in a namespace.\nYou specify quotas in a\n[ResourceQuota](/docs/reference/generated/kubernetes-api//#resourcequota-v1-core)\nobject.\n\n##\n\n## Create a namespace\n\nCreate a namespace so that the resources you create in this exercise are\nisolated from the rest of your cluster.\n\n```shell\nkubectl create namespace quota-object-example\n```\n\n## Create a ResourceQuota\n\nHere is the configuration file for a ResourceQuota object:\n\nCreate the ResourceQuota:\n\n```shell\nkubectl apply -f https://k8s.io/examples/admin/resource/quota-objects.yaml --namespace=quota-object-example\n```\n\nView detailed information about the ResourceQuota:\n\n```shell\nkubectl get resourcequota object-quota-demo --namespace=quota-object-example --output=yaml\n```\n\nThe output shows that in the quota-object-example namespace, there can be at most\none PersistentVolumeClaim, at most two Services of type LoadBalancer, and no Services\nof type NodePort.\n\n```yaml\nstatus:\nhard:\npersistentvolumeclaims: \"1\"\nservices.loadbalancers: \"2\"\nservices.nodeports: \"0\"\nused:\npersistentvolumeclaims: \"0\"\nservices.loadbalancers: \"0\"\nservices.nodeports: \"0\"\n```\n\n## Create a PersistentVolumeClaim\n\nHere is the configuration file for a PersistentVolumeClaim object:\n\nCreate the PersistentVolumeClaim:\n\n```shell\nkubectl apply -f https://k8s.io/examples/admin/resource/quota-objects-pvc.yaml --namespace=quota-object-example\n```\n\nVerify that the PersistentVolumeClaim was created:\n\n```shell\nkubectl get persistentvolumeclaims --namespace=quota-object-example\n```\n\nThe output shows that the PersistentVolumeClaim exists and has status Pending:\n\n```\nNAME STATUS\npvc-quota-demo Pending\n```\n\n## Attempt to create a second PersistentVolumeClaim\n\nHere is the configuration file for a second PersistentVolumeClaim:\n\nAttempt to create the second PersistentVolumeClaim:\n\n```shell\nkubectl apply -f https://k8s.io/examples/admin/resource/quota-objects-pvc-2.yaml --namespace=quota-object-example\n```\n\nThe output shows that the second PersistentVolumeClaim was not created,\nbecause it would have exceeded the quota for the namespace.\n\n```\npersistentvolumeclaims \"pvc-quota-demo-2\" is forbidden:\nexceeded quota: object-quota-demo, requested: persistentvolumeclaims=1,\nused: persistentvolumeclaims=1, limited: persistentvolumeclaims=1\n```\n\n## Notes\n\nThese are the strings used to identify API resources that can be constrained\nby quotas:\n\nString API Object\n\"pods\" Pod\n\"services\" Service\n\"replicationcontrollers\" ReplicationController\n\"resourcequotas\" ResourceQuota\n\"secrets\" Secret\n\"configmaps\" ConfigMap\n\"persistentvolumeclaims\" PersistentVolumeClaim\n\"services.nodeports\" Service of type NodePort\n\"services.loadbalancers\" Service of type LoadBalancer\n\n## Clean up\n\nDelete your namespace:\n\n```shell\nkubectl delete namespace quota-object-example\n```\n\n##\n\n### For cluster administrators\n\n* [Configure Default Memory Requests and Limits for a Namespace](/docs/tasks/administer-cluster/manage-resources/memory-default-namespace/)\n\n* [Configure Default CPU Requests and Limits for a Namespace](/docs/tasks/administer-cluster/manage-resources/cpu-default-namespace/)\n\n* [Configure Minimum and Maximum Memory Constraints for a Namespace](/docs/tasks/administer-cluster/manage-resources/memory-constraint-namespace/)\n\n* [Configure Minimum and Maximum CPU Constraints for a Namespace](/docs/tasks/administer-cluster/manage-resources/cpu-constraint-namespace/)\n\n* [Configure Memory and CPU Quotas for a Namespace](/docs/tasks/administer-cluster/manage-resources/quota-memory-cpu-namespace/)\n\n* [Configure a Pod Quota for a Namespace](/docs/tasks/administer-cluster/manage-resources/quota-pod-namespace/)\n\n### For app developers\n\n* [Assign Memory Resources to Containers and Pods](/docs/tasks/configure-pod-container/assign-memory-resource/)\n\n* [Assign CPU Resources to Containers and Pods](/docs/tasks/configure-pod-container/assign-cpu-resource/)\n\n* [Assign Pod-level CPU and memory resources](/docs/tasks/configure-pod-container/assign-pod-level-resources/)\n\n* [Configure Quality of Service for Pods](/docs/tasks/configure-pod-container/quality-service-pod/)", "source": "content/en/docs/tasks/administer-cluster/quota-api-object.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "This document covers topics related to protecting a cluster from accidental or malicious access\nand provides recommendations on overall security.\n\n##\n\n*\n\n## Controlling access to the Kubernetes API\n\nAs Kubernetes is entirely API-driven, controlling and limiting who can access the cluster and what actions\nthey are allowed to perform is the first line of defense.\n\n### Use Transport Layer Security (TLS) for all API traffic\n\nKubernetes expects that all API communication in the cluster is encrypted by default with TLS, and the\nmajority of installation methods will allow the necessary certificates to be created and distributed to\nthe cluster components. Note that some components and installation methods may enable local ports over\nHTTP and administrators should familiarize themselves with the settings of each component to identify\npotentially unsecured traffic.\n\n### API Authentication\n\nChoose an authentication mechanism for the API servers to use that matches the common access patterns\nwhen you install a cluster. For instance, small, single-user clusters may wish to use a simple certificate\nor static Bearer token approach. Larger clusters may wish to integrate an existing OIDC or LDAP server that\nallow users to be subdivided into groups.\n\nAll API clients must be authenticated, even those that are part of the infrastructure like nodes,\nproxies, the scheduler, and volume plugins. These clients are typically [service accounts](/docs/reference/access-authn-authz/service-accounts-admin/) or use x509 client certificates, and they are created automatically at cluster startup or are setup as part of the cluster installation.\n\nConsult the [authentication reference document](/docs/reference/access-authn-authz/authentication/) for more information.\n\n### API Authorization\n\nOnce authenticated, every API call is also expected to pass an authorization check. Kubernetes ships\nan integrated [Role-Based Access Control (RBAC)](/docs/reference/access-authn-authz/rbac/) component that matches an incoming user or group to a\nset of permissions bundled into roles. These permissions combine verbs (get, create, delete) with\nresources (pods, services, nodes) and can be namespace-scoped or cluster-scoped. A set of out-of-the-box\nroles are provided that offer reasonable default separation of responsibility depending on what\nactions a client might want to perform. It is recommended that you use the\n[Node](/docs/reference/access-authn-authz/node/) and\n[RBAC](/docs/reference/access-authn-authz/rbac/) authorizers together, in combination with the\n[NodeRestriction](/docs/reference/access-authn-authz/admission-controllers/#noderestriction) admission plugin.\n\nAs with authentication, simple and broad roles may be appropriate for smaller clusters, but as\nmore users interact with the cluster, it may become necessary to separate teams into separate\nnamespaces with more limited roles.\n\nWith authorization, it is important to understand how updates on one object may cause actions in\nother places. For instance, a user may not be able to create pods directly, but allowing them to\ncreate a deployment, which creates pods on their behalf, will let them create those pods\nindirectly. Likewise, deleting a node from the API will result in the pods scheduled to that node\nbeing terminated and recreated on other nodes. The out-of-the box roles represent a balance\nbetween flexibility and common use cases, but more limited roles should be carefully reviewed\nto prevent accidental escalation. You can make roles specific to your use case if the out-of-box ones don't meet your needs.\n\nConsult the [authorization reference section](/docs/reference/access-authn-authz/authorization/) for more information.\n\nIf your cluster uses [Dynamic Resource Allocation (DRA)](/docs/concepts/resource-management/dynamic-resource-allocation/),\nreview DRA synthetic subresource authorization (`resourceclaims/binding` and\n`resourceclaims/driver`) and grant only the minimum required verbs to each\ncomponent. For details, see\n[Hardening Guide - Dynamic Resource Allocation](/docs/concepts/security/hardening-guide/dynamic-resource-allocation/)\nand\n[Harden Dynamic Resource Allocation in Your Cluster](/docs/tasks/administer-cluster/hardening-dra/).\n\n## Controlling access to the Kubelet\n\nKubelets expose HTTPS endpoints which grant powerful control over the node and containers.\nBy default Kubelets allow unauthenticated access to this API.\n\nProduction clusters should enable Kubelet authentication and authorization.\n\nConsult the [Kubelet authentication/authorization reference](/docs/reference/access-authn-authz/kubelet-authn-authz/)\nfor more information.\n\n## Controlling the capabilities of a workload or user at runtime\n\nAuthorization in Kubernetes is intentionally high level, focused on coarse actions on resources.\nMore powerful controls exist as **policies** to limit by use case how those objects act on the\ncluster, Line truncated
{"text": "This page shows how to assign a memory *request* and a memory *limit* to a\nContainer. A Container is guaranteed to have as much memory as it requests,\nbut is not allowed to use more memory than its limit.\n\n##\n\nEach node in your cluster must have at least 300 MiB of memory.\n\nA few of the steps on this page require you to run the\n[metrics-server](https://github.com/kubernetes-sigs/metrics-server)\nservice in your cluster. If you have the metrics-server\nrunning, you can skip those steps.\n\nIf you are running Minikube, run the following command to enable the\nmetrics-server:\n\n```shell\nminikube addons enable metrics-server\n```\n\nTo see whether the metrics-server is running, or another provider of the resource metrics\nAPI (`metrics.k8s.io`), run the following command:\n\n```shell\nkubectl get apiservices\n```\n\nIf the resource metrics API is available, the output includes a\nreference to `metrics.k8s.io`.\n\n```shell\nNAME\nv1beta1.metrics.k8s.io\n```\n\n## Create a namespace\n\nCreate a namespace so that the resources you create in this exercise are\nisolated from the rest of your cluster.\n\n```shell\nkubectl create namespace mem-example\n```\n\n## Specify a memory request and a memory limit\n\nTo specify a memory request for a container, include the `resources.requests.memory` field\nin the container’s resource manifest. To specify a memory limit, include `resources.limits.memory`.\n\nIn this exercise, you create a Pod that has one Container. The Container has a memory\nrequest of 100 MiB and a memory limit of 200 MiB. Here's the configuration file\nfor the Pod:\n\nThe `args` section in the configuration file provides arguments for the Container when it starts.\nThe `\"--vm-bytes\", \"150M\"` arguments tell the Container to attempt to allocate 150 MiB of memory.\n\nCreate the Pod:\n\n```shell\nkubectl apply -f https://k8s.io/examples/pods/resource/memory-request-limit.yaml --namespace=mem-example\n```\n\nVerify that the Pod Container is running:\n\n```shell\nkubectl get pod memory-demo --namespace=mem-example\n```\n\nView detailed information about the Pod:\n\n```shell\nkubectl get pod memory-demo --output=yaml --namespace=mem-example\n```\n\nThe output shows that the one Container in the Pod has a memory request of 100 MiB\nand a memory limit of 200 MiB.\n\n```yaml\n...\nresources:\nrequests:\nmemory: 100Mi\nlimits:\nmemory: 200Mi\n...\n```\n\nRun `kubectl top` to fetch the metrics for the pod:\n\n```shell\nkubectl top pod memory-demo --namespace=mem-example\n```\n\nThe output shows that the Pod is using about 162,900,000 bytes of memory, which\nis about 150 MiB. This is greater than the Pod's 100 MiB request, but within the\nPod's 200 MiB limit.\n\n```\nNAME CPU(cores) MEMORY(bytes)\nmemory-demo 162856960\n```\n\nDelete your Pod:\n\n```shell\nkubectl delete pod memory-demo --namespace=mem-example\n```\n\n## Exceed a Container's memory limit\n\nA Container can exceed its memory request if the Node has memory available. But a Container\nis not allowed to use more than its memory limit. If a Container allocates more memory than\nits limit, the Container becomes a candidate for termination. If the Container continues to\nconsume memory beyond its limit, the Container is terminated. If a terminated Container can be\nrestarted, the kubelet restarts it, as with any other type of runtime failure.\n\nIn this exercise, you create a Pod that attempts to allocate more memory than its limit.\nHere is the configuration file for a Pod that has one Container with a\nmemory request of 50 MiB and a memory limit of 100 MiB:\n\nIn the `args` section of the configuration file, you can see that the Container\nwill attempt to allocate 250 MiB of memory, which is well above the 100 MiB limit.\n\nCreate the Pod:\n\n```shell\nkubectl apply -f https://k8s.io/examples/pods/resource/memory-request-limit-2.yaml --namespace=mem-example\n```\n\nView detailed information about the Pod:\n\n```shell\nkubectl get pod memory-demo-2 --namespace=mem-example\n```\n\nAt this point, the Container might be running or killed. Repeat the preceding command until the Container is killed:\n\n```shell\nNAME READY STATUS RESTARTS AGE\nmemory-demo-2 0/1 OOMKilled 1 24s\n```\n\nGet a more detailed view of the Container status:\n\n```shell\nkubectl get pod memory-demo-2 --output=yaml --namespace=mem-example\n```\n\nThe output shows that the Container was killed because it is out of memory (OOM):\n\n```yaml\nlastState:\nterminated:\ncontainerID: 65183c1877aaec2e8427bc95609cc52677a454b56fcb24340dbd22917c23b10f\nexitCode: 137\nfinishedAt: 2017-06-20T20:52:19Z\nreason: OOMKilled\nstartedAt: null\n```\n\nThe Container in this exercise can be restarted, so the kubelet restarts it. Repeat\nthis command several times to see that the Container is repeatedly killed and restarted:\n\n```shell\nkubectl get pod memory-demo-2 --namespace=mem-example\n```\n\nThe output shows that the Container is killed, restarted, killed again, restarted againLine truncated
{"text": "For Kubernetes, the _Metrics API_ offers a basic set of metrics to support automatic scaling and\nsimilar use cases. This API makes information available about resource usage for node and pod,\nincluding metrics for CPU and memory. If you deploy the Metrics API into your cluster, clients of\nthe Kubernetes API can then query for this information, and you can use Kubernetes' access control\nmechanisms to manage permissions to do so.\n\nThe [HorizontalPodAutoscaler](/docs/concepts/workloads/autoscaling/horizontal-pod-autoscale/) (HPA) and\n[VerticalPodAutoscaler](/docs/concepts/workloads/autoscaling/vertical-pod-autoscale/) (VPA)\nuse data from the metrics API to adjust workload replicas and resources to meet customer demand.\n\nYou can also view the resource metrics using the\n[`kubectl top`](/docs/reference/generated/kubectl/kubectl-commands#top)\ncommand.\n\nThe Metrics API, and the metrics pipeline that it enables, only offers the minimum\nCPU and memory metrics to enable automatic scaling using HPA and / or VPA.\nIf you would like to provide a more complete set of metrics, you can complement\nthe simpler Metrics API by deploying a second\n[metrics pipeline](/docs/tasks/debug/debug-cluster/resource-usage-monitoring/#full-metrics-pipeline)\nthat uses the _Custom Metrics API_.\n\nFigure 1 illustrates the architecture of the resource metrics pipeline.\n\nflowchart RL\nsubgraph cluster[Cluster]\ndirection RL\nS[\n\n]\nA[Metrics-\nServer]\nsubgraph B[Nodes]\ndirection TB\nD[cAdvisor] --> C[kubelet]\nE[Container\nruntime] --> D\nE1[Container\nruntime] --> D\nP[pod data] -.- C\nend\nL[API\nserver]\nW[HPA]\nC ---->|node level\nresource metrics| A -->|metrics\nAPI| L --> W\nend\nL ---> K[kubectl\ntop]\nclassDef box fill:#fff,stroke:#000,stroke-width:1px,color:#000;\nclass W,B,P,K,cluster,D,E,E1 box\nclassDef spacewhite fill:#ffffff,stroke:#fff,stroke-width:0px,color:#000\nclass S spacewhite\nclassDef k8s fill:#326ce5,stroke:#fff,stroke-width:1px,color:#fff;\nclass A,L,C k8s\n\nFigure 1. Resource Metrics Pipeline\n\nThe architecture components, from right to left in the figure, consist of the following:\n\n* [cAdvisor](https://github.com/google/cadvisor): Daemon for collecting, aggregating and exposing\ncontainer metrics included in Kubelet.\n* [kubelet](/docs/concepts/architecture/#kubelet): Node agent for managing container\nresources. Resource metrics are accessible using the `/metrics/resource` and `/stats` kubelet\nAPI endpoints.\n* [node level resource metrics](/docs/reference/instrumentation/node-metrics): API provided by the kubelet for discovering and retrieving\nper-node summarized stats available through the `/metrics/resource` endpoint.\n* [metrics-server](#metrics-server): Cluster addon component that collects and aggregates resource\nmetrics pulled from each kubelet. The API server serves Metrics API for use by HPA, VPA, and by\nthe `kubectl top` command. Metrics Server is a reference implementation of the Metrics API.\n* [Metrics API](#metrics-api): Kubernetes API supporting access to CPU and memory used for\nworkload autoscaling. To make this work in your cluster, you need an API extension server that\nprovides the Metrics API.\n\ncAdvisor supports reading metrics from cgroups, which works with typical container runtimes on Linux.\nIf you use a container runtime that uses another resource isolation mechanism, for example\nvirtualization, then that container runtime must support\n[CRI Container Metrics](https://github.com/kubernetes/community/blob/main/contributors/devel/sig-node/cri-container-stats.md)\nin order for metrics to be available to the kubelet.\n\n## Metrics API\n\nThe metrics-server implements the Metrics API. This API allows you to access CPU and memory usage\nfor the nodes and pods in your cluster. Its primary role is to feed resource usage metrics to K8s\nautoscaler components.\n\nHere is an example of the Metrics API request for a `minikube` node piped through `jq` for easier\nreading:\n\n```shell\nkubectl get --raw \"/apis/metrics.k8s.io/v1/nodes/minikube\" | jq '.'\n```\n\nHere is the same API call using `curl`:\n\n```shell\ncurl http://localhost:8080/apis/metrics.k8s.io/v1/nodes/minikube\n```\n\nSample response:\n\n```json\n{\n\"kind\": \"NodeMetrics\",\n\"apiVersion\": \"metrics.k8s.io/v1\",\n\"metadata\": {\n\"name\": \"minikube\",\n\"selfLink\": \"/apis/metrics.k8s.io/v1/nodes/minikube\",\n\"creationTimestamp\": \"2022-01-27T18:48:43Z\"\n},\n\"timestamp\": \"2022-01-27T18:48:33Z\",\n\"window\": \"30s\",\n\"usage\": {\n\"cpu\": \"487558164n\",\n\"memory\": \"732212Ki\"\n}\n}\n```\n\nHere is an example of the Metrics API request for a `kube-scheduler-minikube` pod contained in the\n`kube-system` namespace and piped through `jq` for easier reading:\n\n```shell\nkubectl get --raw \"/apis/metrics.k8s.io/v1/namespaces/kube-system/pods/kube-scheduler-minikube\" | jq '.'\n```\n\nHere is the same API call using `curl`:\n\n```shell\ncurl http://localhost:8080/apis/metrics.k8s.Line truncated
{"text": "To scale an application and provide a reliable service, you need to\nunderstand how the application behaves when it is deployed. You can examine\napplication performance in a Kubernetes cluster by examining the containers,\n[pods](/docs/concepts/workloads/pods/),\n[services](/docs/concepts/services-networking/service/), and\nthe characteristics of the overall cluster. Kubernetes provides detailed\ninformation about an application's resource usage at each of these levels.\nThis information allows you to evaluate your application's performance and\nwhere bottlenecks can be removed to improve overall performance.\n\nIn Kubernetes, application monitoring does not depend on a single monitoring solution.\nOn new clusters, you can use [resource metrics](#resource-metrics-pipeline) or\n[full metrics](#full-metrics-pipeline) pipelines to collect monitoring statistics.\n\n## Resource metrics pipeline\n\nThe resource metrics pipeline provides a limited set of metrics related to\ncluster components such as the\n[Horizontal Pod Autoscaler](/docs/tasks/run-application/horizontal-pod-autoscale/)\ncontroller, as well as the `kubectl top` utility.\nThese metrics are collected by the lightweight, short-term, in-memory\n[metrics-server](https://github.com/kubernetes-sigs/metrics-server) and\nare exposed via the `metrics.k8s.io` API.\n\nmetrics-server discovers all nodes on the cluster and\nqueries each node's\n[kubelet](/docs/reference/command-line-tools-reference/kubelet/) for CPU and\nmemory usage. The kubelet acts as a bridge between the Kubernetes master and\nthe nodes, managing the pods and containers running on a machine. The kubelet\ntranslates each pod into its constituent containers and fetches individual\ncontainer usage statistics from the container runtime through the container\nruntime interface. If you use a container runtime that uses Linux cgroups and\nnamespaces to implement containers, and the container runtime does not publish\nusage statistics, then the kubelet can look up those statistics directly\n(using code from [cAdvisor](https://github.com/google/cadvisor)).\nNo matter how those statistics arrive, the kubelet then exposes the aggregated pod\nresource usage statistics through the metrics-server Resource Metrics API.\nThis API is served at `/metrics/resource` on the kubelet's authenticated and\nread-only ports.\n\n## Full metrics pipeline\n\nA full metrics pipeline gives you access to richer metrics. Kubernetes can\nrespond to these metrics by automatically scaling or adapting the cluster\nbased on its current state, using mechanisms such as the Horizontal Pod\nAutoscaler. The monitoring pipeline fetches metrics from the kubelet and\nthen exposes them to Kubernetes via an adapter by implementing either the\n`custom.metrics.k8s.io` or `external.metrics.k8s.io` API.\n\nKubernetes is designed to work with [OpenMetrics](https://openmetrics.io/),\nwhich is one of the\n[CNCF Observability and Analysis - Monitoring Projects](https://landscape.cncf.io/?group=projects-and-products&view-mode=card#observability-and-analysis--monitoring),\nbuilt upon and carefully extending [Prometheus exposition format](https://prometheus.io/docs/instrumenting/exposition_formats/)\nin almost 100% backwards-compatible ways.\n\nIf you glance over at the\n[CNCF Landscape](https://landscape.cncf.io/?group=projects-and-products&view-mode=card#observability-and-analysis--monitoring),\nyou can see a number of monitoring projects that can work with Kubernetes by _scraping_\nmetric data and using that to help you observe your cluster. It is up to you to select the tool\nor tools that suit your needs. The CNCF landscape for observability and analytics includes a\nmix of open-source software, paid-for software-as-a-service, and other commercial products.\n\nWhen you design and implement a full metrics pipeline you can make that monitoring data\navailable back to Kubernetes. For example, a HorizontalPodAutoscaler can use the processed\nmetrics to work out how many Pods to run for a component of your workload.\n\nIntegration of a full metrics pipeline into your Kubernetes implementation is outside\nthe scope of Kubernetes documentation because of the very wide scope of possible\nsolutions.\n\nThe choice of monitoring platform depends heavily on your needs, budget, and technical resources.\nKubernetes does not recommend any specific metrics pipeline; [many options](https://landscape.cncf.io/?group=projects-and-products&view-mode=card#observability-and-analysis--monitoring) are available.\nYour monitoring system should be capable of handling the [OpenMetrics](https://openmetrics.io/) metrics\ntransmission standard and needs to be chosen to best fit into your overall design and deployment of\nyour infrastructure platform.\n\n##\n\nLearn about additional debugging tools, including:\n\n* [Logging](/docs/concepts/cluster-administration/logging/)\n* [Getting into containers via `exec`](/docs/tasks/debug/debug-application/get-shell-runningLine truncated
{"text": "This page shows how to install a\n[custom resource](/docs/concepts/extend-kubernetes/api-extension/custom-resources/)\ninto the Kubernetes API by creating a\n[CustomResourceDefinition](/docs/reference/generated/kubernetes-api//#customresourcedefinition-v1-apiextensions-k8s-io).\n\n##\n\nIf you are using an older version of Kubernetes that is still supported, switch to\nthe documentation for that version to see advice that is relevant for your cluster.\n\n## Create a CustomResourceDefinition\n\nWhen you create a new CustomResourceDefinition (CRD), the Kubernetes API Server\ncreates a new RESTful resource path for each version you specify. The custom\nresource created from a CRD object can be either namespaced or cluster-scoped,\nas specified in the CRD's `spec.scope` field. As with existing built-in\nobjects, deleting a namespace deletes all custom objects in that namespace.\nCustomResourceDefinitions themselves are non-namespaced and are available to\nall namespaces.\n\nFor example, if you save the following CustomResourceDefinition to `resourcedefinition.yaml`:\n\n```yaml\napiVersion: apiextensions.k8s.io/v1\nkind: CustomResourceDefinition\nmetadata:\n# name must match the spec fields below, and be in the form: .\nname: crontabs.stable.example.com\nspec:\n# group name to use for REST API: /apis/ /\ngroup: stable.example.com\n# list of versions supported by this CustomResourceDefinition\nversions:\n- name: v1\n# Each version can be enabled/disabled by Served flag.\nserved: true\n# One and only one version must be marked as the storage version.\nstorage: true\nschema:\nopenAPIV3Schema:\ntype: object\nproperties:\nspec:\ntype: object\nproperties:\ncronSpec:\ntype: string\nimage:\ntype: string\nreplicas:\ntype: integer\n# either Namespaced or Cluster\nscope: Namespaced\nnames:\n# plural name to be used in the URL: /apis/ / /\nplural: crontabs\n# singular name to be used as an alias on the CLI and for display\nsingular: crontab\n# kind is normally the CamelCased singular type. Your resource manifests use this.\nkind: CronTab\n# shortNames allow shorter string to match your resource on the CLI\nshortNames:\n- ct\n```\n\nand create it:\n\n```shell\nkubectl apply -f resourcedefinition.yaml\n```\n\nThen a new namespaced RESTful API endpoint is created at:\n\n```\n/apis/stable.example.com/v1/namespaces/*/crontabs/...\n```\n\nThis endpoint URL can then be used to create and manage custom objects.\nThe `kind` of these objects will be `CronTab` from the spec of the\nCustomResourceDefinition object you created above.\n\nIt might take a few seconds for the endpoint to be created.\nOnce the `Established` condition of your CustomResourceDefinition\nbecomes true and this is observed by the handling code, the endpoint serving starts.\nWatching the [discovery information of the API server](/docs/concepts/overview/kubernetes-api/#discovery-api) for your\nresource to show up is the reliable way to determine if it is ready for use.\n\n## Create custom objects\n\nAfter the CustomResourceDefinition object has been created, you can create\ncustom objects. Custom objects can contain custom fields. These fields can\ncontain arbitrary JSON.\nIn the following example, the `cronSpec` and `image` custom fields are set in a\ncustom object of kind `CronTab`. The kind `CronTab` comes from the spec of the\nCustomResourceDefinition object you created above.\n\nIf you save the following YAML to `my-crontab.yaml`:\n\n```yaml\napiVersion: \"stable.example.com/v1\"\nkind: CronTab\nmetadata:\nname: my-new-cron-object\nspec:\ncronSpec: \"* * * * */5\"\nimage: my-awesome-cron-image\n```\n\nand create it:\n\n```shell\nkubectl apply -f my-crontab.yaml\n```\n\nYou can then manage your CronTab objects using kubectl. For example:\n\n```shell\nkubectl get crontab\n```\n\nShould print a list like this:\n\n```none\nNAME AGE\nmy-new-cron-object 6s\n```\n\nResource names are not case-sensitive when using kubectl, and you can use either\nthe singular or plural forms defined in the CRD, as well as any short names.\n\nYou can also view the raw YAML data:\n\n```shell\nkubectl get ct -o yaml\n```\n\nYou should see that it contains the custom `cronSpec` and `image` fields\nfrom the YAML you used to create it:\n\n```yaml\napiVersion: v1\nitems:\n- apiVersion: stable.example.com/v1\nkind: CronTab\nmetadata:\nannotations:\nkubectl.kubernetes.io/last-applied-configuration: |\n{\"apiVersion\":\"stable.example.com/v1\",\"kind\":\"CronTab\",\"metadata\":{\"annotations\":{},\"name\":\"my-new-cron-object\",\"namespace\":\"default\"},\"spec\":{\"cronSpec\":\"* * * * */5\",\"image\":\"my-awesome-cron-image\"}}\ncreationTimestamp: \"2021-06-20T07:35:27Z\"\ngeneration: 1\nname: my-new-cron-object\nnamespace: default\nresourceVersion: \"1326\"\nuid: 9aab1d66-628e-41bb-a422-57b8b3b1f5a9\nspec:\ncronSpec: '* * * * */5'\nimage: my-awesome-cron-image\nkind: List\nmetadata:\nresourceVersion: \"\"\nselfLink: \"\"\n```\n\n## Delete a CustomResourceDefinition\n\nWhen you deleLine truncated
{"text": "In this example, you will run a Job in [Indexed completion mode](/blog/2021/04/19/introducing-indexed-jobs/)\nconfigured such that the pods created by the Job can communicate with each other using pod hostnames rather\nthan pod IP addresses.\n\nPods within a Job might need to communicate among themselves. The user workload running in each pod\ncould query the Kubernetes API server to learn the IPs of the other Pods, but it's much simpler to\nrely on Kubernetes' built-in DNS resolution.\n\nJobs in Indexed completion mode automatically set the pods' hostname to be in the format of\n`${jobName}-${completionIndex}`. You can use this format to deterministically build\npod hostnames and enable pod communication *without* needing to create a client connection to\nthe Kubernetes control plane to obtain pod hostnames/IPs via API requests.\n\nThis configuration is useful for use cases where pod networking is required but you don't want\nto depend on a network connection with the Kubernetes API server.\n\n##\n\nYou should already be familiar with the basic use of [Job](/docs/concepts/workloads/controllers/job/).\n\nIf you are using minikube or a similar tool, you may need to take\n[extra steps](https://minikube.sigs.k8s.io/docs/handbook/addons/ingress-dns/)\nto ensure you have DNS.\n\n## Starting a Job with pod-to-pod communication\n\nTo enable pod-to-pod communication using pod hostnames in a Job, you must do the following:\n\n1. Set up a [headless Service](/docs/concepts/services-networking/service/#headless-services)\nwith a valid label selector for the pods created by your Job. The headless service must be\nin the same namespace as the Job. One easy way to do this is to use the\n`job-name: ` selector, since the `job-name` label will be automatically added\nby Kubernetes. This configuration will trigger the DNS system to create records of the hostnames\nof the pods running your Job.\n\n1. Configure the headless service as subdomain service for the Job pods by including the following\nvalue in your Job template spec:\n\n```yaml\nsubdomain:\n```\n\n### Example\n\nBelow is a working example of a Job with pod-to-pod communication via pod hostnames enabled.\nThe Job is completed only after all pods successfully ping each other using hostnames.\n\nIn the Bash script executed on each pod in the example below, the pod hostnames can be prefixed\nby the namespace as well if the pod needs to be reached from outside the namespace.\n\n```yaml\napiVersion: v1\nkind: Service\nmetadata:\nname: headless-svc\nspec:\nclusterIP: None # clusterIP must be None to create a headless service\nselector:\njob-name: example-job # must match Job name\n---\napiVersion: batch/v1\nkind: Job\nmetadata:\nname: example-job\nspec:\ncompletions: 3\nparallelism: 3\ncompletionMode: Indexed\ntemplate:\nspec:\nsubdomain: headless-svc # has to match Service name\nrestartPolicy: Never\ncontainers:\n- name: example-workload\nimage: bash:latest\ncommand:\n- bash\n- -c\n- |\nfor i in 0 1 2\ndo\ngotStatus=\"-1\"\nwantStatus=\"0\"\nwhile [ $gotStatus -ne $wantStatus ]\ndo\nping -c 1 example-job-${i}.headless-svc > /dev/null 2>&1\ngotStatus=$?\nif [ $gotStatus -ne $wantStatus ]; then\necho \"Failed to ping pod example-job-${i}.headless-svc, retrying in 1 second...\"\nsleep 1\nfi\ndone\necho \"Successfully pinged pod: example-job-${i}.headless-svc\"\ndone\n```\n\nAfter applying the example above, reach each other over the network\nusing: ` . `. You should see output similar to the following:\n\n```shell\nkubectl logs example-job-0-qws42\n```\n\n```\nFailed to ping pod example-job-0.headless-svc, retrying in 1 second...\nSuccessfully pinged pod: example-job-0.headless-svc\nSuccessfully pinged pod: example-job-1.headless-svc\nSuccessfully pinged pod: example-job-2.headless-svc\n```\n\nKeep in mind that the ` . ` name format used\nin this example would not work with DNS policy set to `None` or `Default`.\nRefer to [Pod's DNS Policy](/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy).", "source": "content/en/docs/tasks/job/job-with-pod-to-pod-communication.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "This task demonstrates running multiple Jobs\nbased on a common template. You can use this approach to process batches of work in\nparallel.\n\nFor this example there are only three items: _apple_, _banana_, and _cherry_.\nThe sample Jobs process each item by printing a string then pausing.\n\nSee [using Jobs in real workloads](#using-jobs-in-real-workloads) to learn about how\nthis pattern fits more realistic use cases.\n\n##\n\nYou should be familiar with the basic,\nnon-parallel, use of [Job](/docs/concepts/workloads/controllers/job/).\n\nFor basic templating you need the command-line utility `sed`.\n\nTo follow the advanced templating example, you need a working installation of\n[Python](https://www.python.org/), and the Jinja2 template\nlibrary for Python.\n\nOnce you have Python set up, you can install Jinja2 by running:\n\n```shell\npip install --user jinja2\n```\n\n## Create Jobs based on a template\n\nFirst, download the following template of a Job to a file called `job-tmpl.yaml`.\nHere's what you'll download:\n\n```shell\n# Use curl to download job-tmpl.yaml\ncurl -L -s -O https://k8s.io/examples/application/job/job-tmpl.yaml\n```\n\nThe file you downloaded is not yet a valid Kubernetes\nmanifest.\nInstead that template is a YAML representation of a Job object with some placeholders\nthat need to be filled in before it can be used. The `$ITEM` syntax is not meaningful to Kubernetes.\n\n### Create manifests from the template\n\nThe following shell snippet uses `sed` to replace the string `$ITEM` with the loop\nvariable, writing into a temporary directory named `jobs`. Run this now:\n\n```shell\n# Expand the template into multiple files, one for each item to be processed.\nmkdir ./jobs\nfor i in apple banana cherry\ndo\ncat job-tmpl.yaml | sed \"s/\\$ITEM/$i/\" > ./jobs/job-$i.yaml\ndone\n```\n\nCheck if it worked:\n\n```shell\nls jobs/\n```\n\nThe output is similar to this:\n\n```\njob-apple.yaml\njob-banana.yaml\njob-cherry.yaml\n```\n\nYou could use any type of template language (for example: Jinja2; ERB), or\nwrite a program to generate the Job manifests.\n\n### Create Jobs from the manifests\n\nNext, create all the Jobs with one kubectl command:\n\n```shell\nkubectl create -f ./jobs\n```\n\nThe output is similar to this:\n\n```\njob.batch/process-item-apple created\njob.batch/process-item-banana created\njob.batch/process-item-cherry created\n```\n\nNow, check on the jobs:\n\n```shell\nkubectl get jobs -l jobgroup=jobexample\n```\n\nThe output is similar to this:\n\n```\nNAME COMPLETIONS DURATION AGE\nprocess-item-apple 1/1 14s 22s\nprocess-item-banana 1/1 12s 21s\nprocess-item-cherry 1/1 12s 20s\n```\n\nUsing the `-l` option to kubectl selects only the Jobs that are part\nof this group of jobs (there might be other unrelated jobs in the system).\n\nYou can check on the Pods as well using the same\nlabel selector:\n\n```shell\nkubectl get pods -l jobgroup=jobexample\n```\n\nThe output is similar to:\n\n```\nNAME READY STATUS RESTARTS AGE\nprocess-item-apple-kixwv 0/1 Completed 0 4m\nprocess-item-banana-wrsf7 0/1 Completed 0 4m\nprocess-item-cherry-dnfu9 0/1 Completed 0 4m\n```\n\nWe can use this single command to check on the output of all jobs at once:\n\n```shell\nkubectl logs -f -l jobgroup=jobexample\n```\n\nThe output should be:\n\n```\nProcessing item apple\nProcessing item banana\nProcessing item cherry\n```\n\n### Clean up {#cleanup-1}\n\n```shell\n# Remove the Jobs you created\n# Your cluster automatically cleans up their Pods\nkubectl delete job -l jobgroup=jobexample\n```\n\n## Use advanced template parameters\n\nIn the [first example](#create-jobs-based-on-a-template), each instance of the template had one\nparameter, and that parameter was also used in the Job's name. However,\n[names](/docs/concepts/overview/working-with-objects/names/#names) are restricted\nto contain only certain characters.\n\nThis slightly more complex example uses the\n[Jinja template language](https://palletsprojects.com/p/jinja/) to generate manifests\nand then objects from those manifests, with a multiple parameters for each Job.\n\nFor this part of the task, you are going to use a one-line Python script to\nconvert the template to a set of manifests.\n\nFirst, copy and paste the following template of a Job object, into a file called `job.yaml.jinja2`:\n\n```liquid\n{% set params = [{ \"name\": \"apple\", \"url\": \"http://dbpedia.org/resource/Apple\", },\n{ \"name\": \"banana\", \"url\": \"http://dbpedia.org/resource/Banana\", },\n{ \"name\": \"cherry\", \"url\": \"http://dbpedia.org/resource/Cherry\" }]\n%}\n{% for p in params %}\n{% set name = p[\"name\"] %}\n{% set url = p[\"url\"] %}\n---\napiVersion: batch/v1\nkind: Job\nmetadata:\nname: jobexample-{{ name }}\nlabels:\njobgroup: jobexample\nspec:\ntemplate:\nmetadata:\nname: jobexample\nlabels:\njobgroup: jobexample\nspec:\ncontainers:\n- name: c\nimage: busybox:1.28\ncommand: [\"sh\", \"-c\", \"echo Processing URL {{ url }} && sleep 5\"]Line truncated
{"text": "This document shows you how to use the\n[Pod failure policy](/docs/concepts/workloads/controllers/job#pod-failure-policy),\nin combination with the default\n[Pod backoff failure policy](/docs/concepts/workloads/controllers/job#pod-backoff-failure-policy),\nto improve the control over the handling of container- or Pod-level failure\nwithin a Job.\n\nThe definition of Pod failure policy may help you to:\n* better utilize the computational resources by avoiding unnecessary Pod retries.\n* avoid Job failures due to Pod disruptions (such preemption,\nAPI-initiated eviction\nor taint-based eviction).\n\n##\n\nYou should already be familiar with the basic use of [Job](/docs/concepts/workloads/controllers/job/).\n\n## Usage scenarios\n\nConsider the following usage scenarios for Jobs that define a Pod failure policy :\n- [Avoiding unnecessary Pod retries](#pod-failure-policy-failjob)\n- [Ignoring Pod disruptions](#pod-failure-policy-ignore)\n- [Avoiding unnecessary Pod retries based on custom Pod Conditions](#pod-failure-policy-config-issue)\n- [Avoiding unnecessary Pod retries per index](#backoff-limit-per-index-failindex)\n\n### Using Pod failure policy to avoid unnecessary Pod retries {#pod-failure-policy-failjob}\n\nWith the following example, you can learn how to use Pod failure policy to\navoid unnecessary Pod restarts when a Pod failure indicates a non-retriable\nsoftware bug.\n\n1. Examine the following manifest:\n\n1. Apply the manifest:\n\n```sh\nkubectl create -f https://k8s.io/examples/controllers/job-pod-failure-policy-failjob.yaml\n```\n\n1. After around 30 seconds the entire Job should be terminated. Inspect the status of the Job by running:\n\n```sh\nkubectl get jobs -l job-name=job-pod-failure-policy-failjob -o yaml\n```\n\nIn the Job status, the following conditions display:\n- `FailureTarget` condition: has a `reason` field set to `PodFailurePolicy` and\na `message` field with more information about the termination, like\n`Container main for pod default/job-pod-failure-policy-failjob-8ckj8 failed with exit code 42 matching FailJob rule at index 0`.\nThe Job controller adds this condition as soon as the Job is considered a failure.\nFor details, see [Termination of Job Pods](/docs/concepts/workloads/controllers/job/#termination-of-job-pods).\n- `Failed` condition: same `reason` and `message` as the `FailureTarget`\ncondition. The Job controller adds this condition after all of the Job's Pods\nare terminated.\n\nFor comparison, if the Pod failure policy were disabled, the Job would\nretry until reaching the `backoffLimit` (6 failures). Because retries\nuse exponential backoff and, with `parallelism: 2`, failures occur in\npairs, the delay between attempts increases with each retry. As a result,\nthis example would take at least 9 minutes before the Job fails.\n\n#### Clean up\n\nDelete the Job you created:\n\n```sh\nkubectl delete jobs/job-pod-failure-policy-failjob\n```\n\nThe cluster automatically cleans up the Pods.\n\n### Using Pod failure policy to ignore Pod disruptions {#pod-failure-policy-ignore}\n\nWith the following example, you can learn how to use Pod failure policy to\nignore Pod disruptions from incrementing the Pod retry counter towards the\n`.spec.backoffLimit` limit.\n\nTiming is important for this example, so you may want to read the steps before\nexecution. In order to trigger a Pod disruption it is important to drain the\nnode while the Pod is running on it (within 90s since the Pod is scheduled).\n\n1. Examine the following manifest:\n\n1. Apply the manifest:\n\n```sh\nkubectl create -f https://k8s.io/examples/controllers/job-pod-failure-policy-ignore.yaml\n```\n\n1. Run this command to check the `nodeName` the Pod is scheduled to:\n\n```sh\nnodeName=$(kubectl get pods -l job-name=job-pod-failure-policy-ignore -o jsonpath='{.items[0].spec.nodeName}')\n```\n\n1. Drain the node to evict the Pod before it completes (within 90s):\n\n```sh\nkubectl drain nodes/$nodeName --ignore-daemonsets --grace-period=0\n```\n\n1. Inspect the `.status.failed` to check the counter for the Job is not incremented:\n\n```sh\nkubectl get jobs -l job-name=job-pod-failure-policy-ignore -o yaml\n```\n\n1. Uncordon the node:\n\n```sh\nkubectl uncordon nodes/$nodeName\n```\n\nThe Job resumes and succeeds.\n\nFor comparison, if the Pod failure policy was disabled the Pod disruption would\nresult in terminating the entire Job (as the `.spec.backoffLimit` is set to 0).\n\n#### Cleaning up\n\nDelete the Job you created:\n\n```sh\nkubectl delete jobs/job-pod-failure-policy-ignore\n```\n\nThe cluster automatically cleans up the Pods.\n\n### Using Pod failure policy to avoid unnecessary Pod retries based on custom Pod Conditions {#pod-failure-policy-config-issue}\n\nWith the following example, you can learn how to use Pod failure policy to\navoid unnecessary Pod restarts based on custom Pod Conditions.\n\nThe example below works since version 1.27 as it relies on transitioning of\ndeleted pods, in the Line truncated
{"text": "This page demonstrates how to build a basic DaemonSet\nthat runs a Pod on every node in a Kubernetes cluster.\nIt covers a simple use case of mounting a file from the host, logging its contents using\nan [init container](/docs/concepts/workloads/pods/init-containers/), and utilizing a pause container.\n\n##\n\nA Kubernetes cluster with at least two nodes (one control plane node and one worker node)\nto demonstrate the behavior of DaemonSets.\n\n## Define the DaemonSet\n\nIn this task, a basic DaemonSet is created which ensures that the copy of a Pod is scheduled on every node.\nThe Pod will use an init container to read and log the contents of `/etc/machine-id` from the host,\nwhile the main container will be a `pause` container, which keeps the Pod running.\n\n1. Create a DaemonSet based on the (YAML) manifest:\n\n```shell\nkubectl apply -f https://k8s.io/examples/application/basic-daemonset.yaml\n```\n\n1. Once applied, you can verify that the DaemonSet is running a Pod on every node in the cluster:\n\n```shell\nkubectl get pods -o wide\n```\n\nThe output will list one Pod per node, similar to:\n\n```\nNAME READY STATUS RESTARTS AGE IP NODE\nexample-daemonset-xxxxx 1/1 Running 0 5m x.x.x.x node-1\nexample-daemonset-yyyyy 1/1 Running 0 5m x.x.x.x node-2\n```\n\n1. You can inspect the contents of the logged `/etc/machine-id` file by checking\nthe log directory mounted from the host:\n\n```shell\nkubectl exec -- cat /var/log/machine-id.log\n```\n\nWhere ` ` is the name of one of your Pods.\n\n##\n\nTo delete the DaemonSet, run this command:\n\n```shell\nkubectl delete --cascade=foreground --ignore-not-found --now daemonsets/example-daemonset\n```\n\nThis simple DaemonSet example introduces key components like init containers and host path volumes,\nwhich can be expanded upon for more advanced use cases. For more details refer to\n[DaemonSet](/docs/concepts/workloads/controllers/daemonset/).\n\n##\n\n* See [Performing a rolling update on a DaemonSet](/docs/tasks/manage-daemon/update-daemon-set/)\n* See [Creating a DaemonSet to adopt existing DaemonSet pods](/docs/concepts/workloads/controllers/daemonset/)", "source": "content/en/docs/tasks/manage-daemon/create-daemon-set.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "This document shares how to extend the existing Service IP range assigned to a cluster.\n\n##\n\nWhile you can use this feature with an earlier version, the feature is only GA and officially supported since v1.33.\n\n## Extend Service IP Ranges\n\nThe control plane ensures that there is a special ServiceCIDR object, with\nthe well-known name `kubernetes`, that specifies an IP address range\nbased on the value of the `--service-cluster-ip-range` command line argument to kube-apiserver.\n\n```sh\nkubectl get servicecidr\n```\n\n```\nNAME CIDRS AGE\nkubernetes 10.96.0.0/28 17d\n```\n\nThe well-known `kubernetes` Service, that exposes the kube-apiserver endpoint to the Pods, calculates\nthe first IP address from the default ServiceCIDR range and uses that IP address as its\ncluster IP address.\n\n```sh\nkubectl get service kubernetes\n```\n\n```\nNAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE\nkubernetes ClusterIP 10.96.0.1 443/TCP 17d\n```\n\nThe default Service, in this case, uses the ClusterIP 10.96.0.1, that has the corresponding IPAddress object.\n\n```sh\nkubectl get ipaddress 10.96.0.1\n```\n\n```\nNAME PARENTREF\n10.96.0.1 services/default/kubernetes\n```\n\nThe ServiceCIDRs are protected with finalizers,\nto avoid leaving Service ClusterIPs orphans; the finalizer is only removed if there is another subnet\nthat contains the existing IPAddresses or there are no IPAddresses belonging to the subnet.\n\n## Extend the number of available IPs for Services\n\nThere are cases that users will need to increase the number addresses available to Services,\npreviously, increasing the Service range was a disruptive operation that could also cause data loss.\nWith this new feature users only need to add a new ServiceCIDR to increase the number of available addresses.\n\n### Adding a new ServiceCIDR\n\nOn a cluster with a 10.96.0.0/28 range for Services, there is only 2^(32-28) - 2 = 14\nIP addresses available. The `kubernetes.default` Service is always created; for this example,\nthat leaves you with only 13 possible Services.\n\n```sh\nfor i in $(seq 1 13); do kubectl create service clusterip \"test-$i\" --tcp 80 -o json | jq -r .spec.clusterIP; done\n```\n\n```\n10.96.0.11\n10.96.0.5\n10.96.0.12\n10.96.0.13\n10.96.0.14\n10.96.0.2\n10.96.0.3\n10.96.0.4\n10.96.0.6\n10.96.0.7\n10.96.0.8\n10.96.0.9\nerror: failed to create ClusterIP service: Internal error occurred: failed to allocate a serviceIP: range is full\n```\n\nYou can increase the number of IP addresses available for Services, by creating a new ServiceCIDR\nthat extends or adds new IP address ranges.\n\n```sh\ncat <<EOF | kubectl apply -f -\napiVersion: networking.k8s.io/v1\nkind: ServiceCIDR\nmetadata:\nname: newcidr1\nspec:\ncidrs:\n- 10.96.0.0/24\nEOF\n```\n\n```\nservicecidr.networking.k8s.io/newcidr1 created\n```\n\nand this will allow you to create new Services with ClusterIPs that will be picked from this new range.\n\n```sh\nfor i in $(seq 13 16); do kubectl create service clusterip \"test-$i\" --tcp 80 -o json | jq -r .spec.clusterIP; done\n```\n\n```\n10.96.0.48\n10.96.0.200\n10.96.0.121\n10.96.0.144\n```\n\n### Deleting a ServiceCIDR\n\nYou cannot delete a ServiceCIDR if there are IPAddresses that depend on the ServiceCIDR.\n\n```sh\nkubectl delete servicecidr newcidr1\n```\n\n```\nservicecidr.networking.k8s.io \"newcidr1\" deleted\n```\n\nKubernetes uses a finalizer on the ServiceCIDR to track this dependent relationship.\n\n```sh\nkubectl get servicecidr newcidr1 -o yaml\n```\n\n```yaml\napiVersion: networking.k8s.io/v1\nkind: ServiceCIDR\nmetadata:\ncreationTimestamp: \"2023-10-12T15:11:07Z\"\ndeletionGracePeriodSeconds: 0\ndeletionTimestamp: \"2023-10-12T15:12:45Z\"\nfinalizers:\n- networking.k8s.io/service-cidr-finalizer\nname: newcidr1\nresourceVersion: \"1133\"\nuid: 5ffd8afe-c78f-4e60-ae76-cec448a8af40\nspec:\ncidrs:\n- 10.96.0.0/24\nstatus:\nconditions:\n- lastTransitionTime: \"2023-10-12T15:12:45Z\"\nmessage: There are still IPAddresses referencing the ServiceCIDR, please remove\nthem or create a new ServiceCIDR\nreason: OrphanIPAddress\nstatus: \"False\"\ntype: Ready\n```\n\nBy removing the Services containing the IP addresses that are blocking the deletion of the ServiceCIDR\n\n```sh\nfor i in $(seq 13 16); do kubectl delete service \"test-$i\" ; done\n```\n\n```\nservice \"test-13\" deleted\nservice \"test-14\" deleted\nservice \"test-15\" deleted\nservice \"test-16\" deleted\n```\n\nthe control plane notices the removal. The control plane then removes its finalizer,\nso that the ServiceCIDR that was pending deletion will actually be removed.\n\n```sh\nkubectl get servicecidr newcidr1\n```\n\n```\nError from server (NotFound): servicecidrs.networking.k8s.io \"newcidr1\" not found\n```\n\n## Kubernetes Service CIDR Policies\n\nCluster administrators can implement policies to control the creation and\nmodification of ServiceCIDR resources within the cluster. This allows for\ncentralized management of the IP address ranges used foLine truncated
{"text": "Kubernetes provides a `certificates.k8s.io` API, which lets you provision TLS\ncertificates signed by a Certificate Authority (CA) that you control. These CAs\nand certificates can be used by your workloads to establish trust.\n\nThe `certificates.k8s.io` API uses a protocol that is similar to the [ACME\ndraft](https://github.com/ietf-wg-acme/acme/).\n\nCertificates created using the `certificates.k8s.io` API are signed by a\n[dedicated CA](#configuring-your-cluster-to-provide-signing). It is possible to configure your cluster to use the cluster root\nCA for this purpose, but you should never rely on this. Do not assume that\nthese certificates will validate against the cluster root CA.\n\n##\n\nYou need the `cfssl` tool. You can download `cfssl` from\n[https://github.com/cloudflare/cfssl/releases](https://github.com/cloudflare/cfssl/releases).\n\nSome steps in this page use the `jq` tool. If you don't have `jq`, you can\ninstall it via your operating system's software sources, or fetch it from\n[https://jqlang.github.io/jq/](https://jqlang.github.io/jq/).\n\n## Trusting TLS in a cluster\n\nTrusting the [custom CA](#configuring-your-cluster-to-provide-signing) from an application running as a pod usually requires\nsome extra application configuration. You will need to add the CA certificate\nbundle to the list of CA certificates that the TLS client or server trusts. For\nexample, you would do this with a Golang TLS config by parsing the certificate\nchain and adding the parsed certificates to the `RootCAs` field in the\n[`tls.Config`](https://pkg.go.dev/crypto/tls#Config) struct.\n\nEven though the custom CA certificate may be included in the filesystem (in the\nConfigMap `kube-root-ca.crt`),\nyou should not use that certificate authority for any purpose other than to verify internal\nKubernetes endpoints. An example of an internal Kubernetes endpoint is the\nService named `kubernetes` in the default namespace.\n\nIf you want to use a custom certificate authority for your workloads, you should generate\nthat CA separately, and distribute its CA certificate using a\n[ConfigMap](/docs/tasks/configure-pod-container/configure-pod-configmap) that your pods\nhave access to read.\n\n## Requesting a certificate\n\nThe following section demonstrates how to create a TLS certificate for a\nKubernetes service accessed through DNS.\n\nThis tutorial uses CFSSL: Cloudflare's PKI and TLS toolkit See the Cloudflare blog\narticle [Introducing CFSSL - CloudFlare's PKI toolkit](https://blog.cloudflare.com/introducing-cfssl/) for more information.\n\n## Create a certificate signing request\n\nGenerate a private key and certificate signing request (or CSR) by running\nthe following command:\n\n```shell\ncat\nAnnotations:\nCreationTimestamp: Tue, 01 Feb 2022 11:49:15 -0500\nRequesting User: yourname@example.com\nSigner: example.com/serving\nStatus: Pending\nSubject:\nCommon Name: my-pod.my-namespace.pod.cluster.local\nSerial Number:\nSubject Alternative Names:\nDNS Names: my-pod.my-namespace.pod.cluster.local\nmy-svc.my-namespace.svc.cluster.local\nIP Addresses: 192.0.2.24\n10.0.34.2\nEvents:\n```\n\n## Get the CertificateSigningRequest approved {#get-the-certificate-signing-request-approved}\n\nApproving the [certificate signing request](/docs/reference/access-authn-authz/certificate-signing-requests/)\nis either done by an automated approval process or on a one-off basis by a cluster\nadministrator. If you're authorized to approve a certificate request, you can do that\nmanually using `kubectl`; for example:\n\n```shell\nkubectl certificate approve my-svc.my-namespace\n```\n\n```none\ncertificatesigningrequest.certificates.k8s.io/my-svc.my-namespace approved\n```\n\nYou should now see the following:\n\n```shell\nkubectl get csr\n```\n\n```none\nNAME AGE SIGNERNAME REQUESTOR REQUESTEDDURATION CONDITION\nmy-svc.my-namespace 10m example.com/serving yourname@example.com Approved\n```\n\nThis means the certificate request has been approved and is waiting for the\nrequested signer to sign it.\n\n## Sign the CertificateSigningRequest {#sign-the-certificate-signing-request}\n\nNext, you'll play the part of a certificate signer, issue the certificate, and upload it to the API.\n\nA signer would typically watch the CertificateSigningRequest API for objects with its `signerName`,\ncheck that they have been approved, sign certificates for those requests,\nand update the API object status with the issued certificate.\n\n### Create a Certificate Authority\n\nYou need an authority to provide the digital signature on the new certificate.\n\nFirst, create a signing certificate by running the following:\n\n```shell\ncat Approved,Issued\n```\n\n## Download the certificate and use it\n\nNow, as the requesting user, you can download the issued certificate\nand save it to a `server.crt` file by running the following:\n\n```shell\nkubectl get csr my-svc.my-namespace -o jsonpath='{.status.certificate}' \\\n| base64 --decode > server.crt\n``Line truncated
{"text": "A plugin for Kubernetes command-line tool `kubectl`, which allows you to convert manifests between different API\nversions. This can be particularly helpful to migrate manifests to a non-deprecated api version with newer Kubernetes release.\nFor more info, visit [migrate to non deprecated apis](/docs/reference/using-api/deprecation-guide/#migrate-to-non-deprecated-apis)", "source": "content/en/docs/tasks/tools/included/kubectl-convert-overview.md", "commit": "f2db56e570a59d1afb0bacabd0f26f6b8538ea91", "license": "CC-BY-4.0", "from": "kubernetes-docs.jsonl"}
{"text": "##\n\n* Learn about Kubernetes Pods.\n* Learn about Kubernetes Nodes.\n* Troubleshoot deployed applications.\n\n##\n\nThe shell commands in this tutorial use POSIX shell syntax, which is supported by\nthe default shells on most Linux and macOS systems (for example, bash, zsh, or sh).\nWindows users must use a POSIX-compatible shell such as\n[Windows Subsystem for Linux (WSL)](https://learn.microsoft.com/en-us/windows/wsl/install)\nor [Git Bash](https://gitforwindows.org/) to run the commands as written.\nCommands that use `export`, `$()`, and similar constructs are **not** compatible\nwith PowerShell or the Windows Command Prompt.\n\n## Kubernetes Pods\n\n_A Pod is a group of one or more application containers (such as Docker) and includes\nshared storage (volumes), IP address and information about how to run them._\n\nWhen you created a Deployment in [Module 2](/docs/tutorials/kubernetes-basics/deploy-app/deploy-intro/),\nKubernetes created a **Pod** to host your application instance. A Pod is a Kubernetes\nabstraction that represents a group of one or more application containers (such as Docker),\nand some shared resources for those containers. Those resources include:\n\n* Shared storage, as Volumes\n* Networking, as a unique cluster IP address\n* Information about how to run each container, such as the container image version\nor specific ports to use\n\nA Pod models an application-specific \"logical host\" and can contain different application\ncontainers which are relatively tightly coupled. For example, a Pod might include\nboth the container with your Node.js app as well as a different container that feeds\nthe data to be published by the Node.js webserver. The containers in a Pod share an\nIP Address and port space, are always co-located and co-scheduled, and run in a shared\ncontext on the same Node.\n\nPods are the atomic unit on the Kubernetes platform. When we create a Deployment\non Kubernetes, that Deployment creates Pods with containers inside them (as opposed\nto creating containers directly). Each Pod is tied to the Node where it is scheduled,\nand remains there until termination (according to restart policy) or deletion. In\ncase of a Node failure, identical Pods are scheduled on other available Nodes in\nthe cluster.\n\n### Pods overview\n\n_Containers should only be scheduled together in a single Pod if they are tightly\ncoupled and need to share resources such as disk._\n\n## Nodes\n\nA Pod always runs on a **Node**. A Node is a worker machine in Kubernetes and may\nbe either a virtual or a physical machine, depending on the cluster. Each Node is\nmanaged by the control plane. A Node can have multiple pods, and the Kubernetes\ncontrol plane automatically handles scheduling the pods across the Nodes in the\ncluster. The control plane's automatic scheduling takes into account the available\nresources on each Node.\n\nEvery Kubernetes Node runs at least:\n\n* Kubelet, a process responsible for communication between the Kubernetes control\nplane and the Node; it manages the Pods and the containers running on a machine.\n\n* A container runtime (like containerd) responsible for pulling the container image\nfrom a registry, unpacking the container, and running the application.\n\n### Nodes overview\n\n## Troubleshooting with kubectl\n\nIn [Module 2](/docs/tutorials/kubernetes-basics/deploy-app/deploy-intro/), you used\nthe kubectl command-line interface. You'll continue to use it in Module 3 to get\ninformation about deployed applications and their environments. The most common\noperations can be done with the following kubectl subcommands:\n\n* `kubectl get` - list resources\n* `kubectl describe` - show detailed information about a resource\n* `kubectl logs` - print the logs from a container in a pod\n* `kubectl exec` - execute a command on a container in a pod\n\nYou can use these commands to see when applications were deployed, what their current\nstatuses are, where they are running and what their configurations are.\n\nNow that we know more about our cluster components and the command line, let's\nexplore our application.\n\n### Check application configuration\n\nLet's verify that the application we deployed in the previous scenario is running.\nWe'll use the `kubectl get` command and look for existing Pods:\n\n```shell\nkubectl get pods\n```\n\nIf no pods are running, please wait a couple of seconds and list the Pods again.\nYou can continue once you see one Pod running.\n\nNext, to view what containers are inside that Pod and what images are used to build\nthose containers we run the `kubectl describe pods` command:\n\n```shell\nkubectl describe pods\n```\n\nWe see here details about the Pod’s container: IP address, the ports used and a\nlist of events related to the lifecycle of the Pod.\n\nThe output of the `describe` subcommand is extensive and covers some concepts that\nwe didn’t explain yet, but don’t worry, they will become familiar by the end of this tutorial.\Line truncated
{"text": "##\n\n* Learn about a Service in Kubernetes.\n* Understand how labels and selectors relate to a Service.\n* Expose an application outside a Kubernetes cluster.\n\n##\n\nThe shell commands in this tutorial use POSIX shell syntax, which is supported by\nthe default shells on most Linux and macOS systems (for example, bash, zsh, or sh).\nWindows users must use a POSIX-compatible shell such as\n[Windows Subsystem for Linux (WSL)](https://learn.microsoft.com/en-us/windows/wsl/install)\nor [Git Bash](https://gitforwindows.org/) to run the commands as written.\nCommands that use `export`, `$()`, and similar constructs are **not** compatible\nwith PowerShell or the Windows Command Prompt.\n\n## Overview of Kubernetes Services\n\nKubernetes [Pods](/docs/concepts/workloads/pods/) are mortal. Pods have a\n[lifecycle](/docs/concepts/workloads/pods/pod-lifecycle/). When a worker node dies,\nthe Pods running on the Node are also lost. A [Replicaset](/docs/concepts/workloads/controllers/replicaset/)\nmight then dynamically drive the cluster back to the desired state via the creation\nof new Pods to keep your application running. As another example, consider an image-processing\nbackend with 3 replicas. Those replicas are exchangeable; the front-end system should\nnot care about backend replicas or even if a Pod is lost and recreated. That said,\neach Pod in a Kubernetes cluster has a unique IP address, even Pods on the same Node,\nso there needs to be a way of automatically reconciling changes among Pods so that your\napplications continue to function.\n\n_A Kubernetes Service is an abstraction layer which defines a logical set of Pods and\nenables external traffic exposure, load balancing and service discovery for those Pods._\n\nA [Service](/docs/concepts/services-networking/service/) in Kubernetes is an abstraction\nwhich defines a logical set of Pods and a policy by which to access them. Services\nenable a loose coupling between dependent Pods. A Service is defined using YAML or JSON,\nlike all Kubernetes object manifests. The set of Pods targeted by a Service is usually\ndetermined by a _label selector_ (see below for why you might want a Service without\nincluding a `selector` in the spec).\n\nAlthough each Pod has a unique IP address, those IPs are not exposed outside the\ncluster without a Service. Services allow your applications to receive traffic.\nServices can be exposed in different ways by specifying a `type` in the `spec` of the Service:\n\n* _ClusterIP_ (default) - Exposes the Service on an internal IP in the cluster. This\ntype makes the Service only reachable from within the cluster.\n\n* _NodePort_ - Exposes the Service on the same port of each selected Node in the cluster using NAT.\nMakes a Service accessible from outside the cluster using `NodeIP:NodePort`. Superset of ClusterIP.\n\n* _LoadBalancer_ - Creates an external load balancer in the current cloud (if supported)\nand assigns a fixed, external IP to the Service. Superset of NodePort.\n\n* _ExternalName_ - Maps the Service to the contents of the `externalName` field\n(e.g. `foo.bar.example.com`), by returning a `CNAME` record with its value.\nNo proxying of any kind is set up.\n\nMore information about the different types of Services can be found in the\n[Using Source IP](/docs/tutorials/services/source-ip/) tutorial. Also see\n[Connecting Applications with Services](/docs/tutorials/services/connect-applications-service/).\n\nAdditionally, note that there are some use cases with Services that involve not defining\na `selector` in the spec. A Service created without `selector` will also not create\nthe corresponding Endpoints object. This allows users to manually map a Service to\nspecific endpoints. Another possibility why there may be no selector is you are strictly\nusing `type: ExternalName`.\n\n## Services and Labels\n\nA Service routes traffic across a set of Pods. Services are the abstraction that allows\npods to die and replicate in Kubernetes without impacting your application. Discovery\nand routing among dependent Pods (such as the frontend and backend components in an application)\nare handled by Kubernetes Services.\n\nServices match a set of Pods using\n[labels and selectors](/docs/concepts/overview/working-with-objects/labels), a grouping\nprimitive that allows logical operation on objects in Kubernetes. Labels are key/value\npairs attached to objects and can be used in any number of ways:\n\n* Designate objects for development, test, and production\n* Embed version tags\n* Classify an object using tags\n\nLabels can be attached to objects at creation time or later on. They can be modified\nat any time. Let's expose our application now using a Service and apply some labels.\n\n### Step 1: Creating a new Service\n\nLet’s verify that our application is running. We’ll use the `kubectl get` command\nand look for existing Pods:\n\n```shell\nkubectl get pods\n```\n\nIf no Pods are running then it means the objects from thLine truncated
{"text": "Seccomp stands for secure computing mode and has been a feature of the Linux\nkernel since version 2.6.12. It can be used to sandbox the privileges of a\nprocess, restricting the calls it is able to make from userspace into the\nkernel. Kubernetes lets you automatically apply seccomp profiles loaded onto a\nnode to your Pods and containers.\n\nIdentifying the privileges required for your workloads can be difficult. In this\ntutorial, you will go through how to load seccomp profiles into a local\nKubernetes cluster, how to apply them to a Pod, and how you can begin to craft\nprofiles that give only the necessary privileges to your container processes.\n\n##\n\n* Learn how to load seccomp profiles on a node\n* Learn how to apply a seccomp profile to a container\n* Observe auditing of syscalls made by a container process\n* Observe behavior when a missing profile is specified\n* Observe a violation of a seccomp profile\n* Learn how to create fine-grained seccomp profiles\n* Learn how to apply a container runtime default seccomp profile\n\n##\n\nIn order to complete all steps in this tutorial, you must install\n[kind](/docs/tasks/tools/#kind) and [kubectl](/docs/tasks/tools/#kubectl).\n\nThe commands used in the tutorial assume that you are using\n[Docker](https://www.docker.com/) as your container runtime. (The cluster that `kind` creates may\nuse a different container runtime internally). You could also use\n[Podman](https://podman.io/) but in that case, you would have to follow specific\n[instructions](https://kind.sigs.k8s.io/docs/user/rootless/) in order to complete the tasks\nsuccessfully.\n\nThis tutorial shows some examples that are still beta (since v1.25) and\nothers that use only generally available seccomp functionality. You should\nmake sure that your cluster is\n[configured correctly](https://kind.sigs.k8s.io/docs/user/quick-start/#setting-kubernetes-version)\nfor the version you are using.\n\nThe tutorial also uses the `curl` tool for downloading examples to your computer.\nYou can adapt the steps to use a different tool if you prefer.\n\nIt is not possible to apply a seccomp profile to a container running with\n`privileged: true` set in the container's `securityContext`. Privileged containers always\nrun as `Unconfined`.\n\n## Download example seccomp profiles {#download-profiles}\n\nThe contents of these profiles will be explored later on, but for now go ahead\nand download them into a directory named `profiles/` so that they can be loaded\ninto the cluster.\n\nRun these commands:\n\n```shell\nmkdir ./profiles\ncurl -L -o profiles/audit.json https://k8s.io/examples/pods/security/seccomp/profiles/audit.json\ncurl -L -o profiles/violation.json https://k8s.io/examples/pods/security/seccomp/profiles/violation.json\ncurl -L -o profiles/fine-grained.json https://k8s.io/examples/pods/security/seccomp/profiles/fine-grained.json\nls profiles\n```\n\nYou should see three profiles listed at the end of the final step:\n```\naudit.json fine-grained.json violation.json\n```\n\n## Create a local Kubernetes cluster with kind\n\nFor simplicity, [kind](https://kind.sigs.k8s.io/) can be used to create a single\nnode cluster with the seccomp profiles loaded. Kind runs Kubernetes in Docker,\nso each node of the cluster is a container. This allows for files\nto be mounted in the filesystem of each container similar to loading files\nonto a node.\n\nDownload that example kind configuration, and save it to a file named `kind.yaml`:\n```shell\ncurl -L -O https://k8s.io/examples/pods/security/seccomp/kind.yaml\n```\n\nYou can set a specific Kubernetes version by setting the node's container image.\nSee [Nodes](https://kind.sigs.k8s.io/docs/user/configuration/#nodes) within the\nkind documentation about configuration for more details on this.\nThis tutorial assumes you are using Kubernetes .\n\nAs a beta feature, you can configure Kubernetes to use the profile that the\ncontainer runtime\nprefers by default, rather than falling back to `Unconfined`.\nIf you want to try that, see\n[enable the use of `RuntimeDefault` as the default seccomp profile for all workloads](#enable-the-use-of-runtimedefault-as-the-default-seccomp-profile-for-all-workloads)\nbefore you continue.\n\nOnce you have a kind configuration in place, create the kind cluster with\nthat configuration:\n\n```shell\nkind create cluster --config=kind.yaml\n```\n\nAfter the new Kubernetes cluster is ready, identify the Docker container running\nas the single node cluster:\n\n```shell\ndocker ps\n```\n\nYou should see output indicating that a container is running with name\n`kind-control-plane`. The output is similar to:\n\n```\nCONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES\n6a96207fed4b kindest/node:v1.18.2 \"/usr/local/bin/entr…\" 27 seconds ago Up 24 seconds 127.0.0.1:42223->6443/tcp kind-control-plane\n```\n\nIf observing the filesystem of that container, you should see that the\n`profiles/` directory has been successfully loaded into theLine truncated
{"text": "This page shows how to create a Kubernetes Service object that exposes an\nexternal IP address.\n\n##\n\n* Install [kubectl](/docs/tasks/tools/).\n* Use a cloud provider like Google Kubernetes Engine or Amazon Web Services to\ncreate a Kubernetes cluster. This tutorial creates an\n[external load balancer](/docs/tasks/access-application-cluster/create-external-load-balancer/),\nwhich requires a cloud provider.\n* Configure `kubectl` to communicate with your Kubernetes API server. For instructions, see the\ndocumentation for your cloud provider.\n\n##\n\n* Run five instances of a Hello World application.\n* Create a Service object that exposes an external IP address.\n* Use the Service object to access the running application.\n\n## Creating a service for an application running in five pods\n\n1. Run a Hello World application in your cluster:\n\n```shell\nkubectl apply -f https://k8s.io/examples/service/load-balancer-example.yaml\n```\nThe preceding command creates a\nDeployment\nand an associated\nReplicaSet.\nThe ReplicaSet has five\nPods\neach of which runs the Hello World application.\n\n1. Display information about the Deployment:\n\n```shell\nkubectl get deployments hello-world\nkubectl describe deployments hello-world\n```\n\n1. Display information about your ReplicaSet objects:\n\n```shell\nkubectl get replicasets\nkubectl describe replicasets\n```\n\n1. Create a Service object that exposes the deployment:\n\n```shell\nkubectl expose deployment hello-world --type=LoadBalancer --name=my-service\n```\n\n1. Display information about the Service:\n\n```shell\nkubectl get services my-service\n```\n\nThe output is similar to:\n\n```console\nNAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE\nmy-service LoadBalancer 10.3.245.137 104.198.205.71 8080/TCP 54s\n```\n\nThe `type=LoadBalancer` service is backed by external cloud providers, which is not covered in this example. Please refer to [setting `type: LoadBalancer` for your Service](/docs/concepts/services-networking/service/#loadbalancer) for the details.\n\nIf the external IP address is shown as \\ , wait for a minute and enter the same command again.\n\n1. Display detailed information about the Service:\n\n```shell\nkubectl describe services my-service\n```\n\nThe output is similar to:\n\n```console\nName: my-service\nNamespace: default\nLabels: app.kubernetes.io/name=load-balancer-example\nAnnotations:\nSelector: app.kubernetes.io/name=load-balancer-example\nType: LoadBalancer\nIP: 10.3.245.137\nLoadBalancer Ingress: 104.198.205.71\nPort: 8080/TCP\nNodePort: 32377/TCP\nEndpoints: 10.0.0.6:8080,10.0.1.6:8080,10.0.1.7:8080 + 2 more...\nSession Affinity: None\nEvents:\n```\n\nMake a note of the external IP address (`LoadBalancer Ingress`) exposed by\nyour service. In this example, the external IP address is 104.198.205.71.\nAlso note the value of `Port` and `NodePort`. In this example, the `Port`\nis 8080 and the `NodePort` is 32377.\n\n1. In the preceding output, you can see that the service has several endpoints:\n10.0.0.6:8080,10.0.1.6:8080,10.0.1.7:8080 + 2 more. These are internal\naddresses of the pods that are running the Hello World application. To\nverify these are pod addresses, enter this command:\n\n```shell\nkubectl get pods --output=wide\n```\n\nThe output is similar to:\n\n```console\nNAME ... IP NODE\nhello-world-2895499144-1jaz9 ... 10.0.1.6 gke-cluster-1-default-pool-e0b8d269-1afc\nhello-world-2895499144-2e5uh ... 10.0.1.8 gke-cluster-1-default-pool-e0b8d269-1afc\nhello-world-2895499144-9m4h1 ... 10.0.0.6 gke-cluster-1-default-pool-e0b8d269-5v7a\nhello-world-2895499144-o4z13 ... 10.0.1.7 gke-cluster-1-default-pool-e0b8d269-1afc\nhello-world-2895499144-segjf ... 10.0.2.5 gke-cluster-1-default-pool-e0b8d269-cpuc\n```\n\n1. Use the external IP address (`LoadBalancer Ingress`) to access the Hello\nWorld application:\n\n```shell\ncurl http:// :\n```\n\nwhere ` ` is the external IP address (`LoadBalancer Ingress`)\nof your Service, and ` ` is the value of `Port` in your Service\ndescription.\nIf you are using minikube, typing `minikube service my-service` will\nautomatically open the Hello World application in a browser.\n\nThe response to a successful request is a hello message:\n\n```console\nHello, world!\nVersion: 2.0.0\nHostname: 0bd46b45f32f\n```\n\n##\n\nTo delete the Service, enter this command:\n\n```shell\nkubectl delete services my-service\n```\n\nTo delete the Deployment, the ReplicaSet, and the Pods that are running\nthe Hello World application, enter this command:\n\n```shell\nkubectl delete deployment hello-world\n```\n\n##\n\nLearn more about\n[connecting applications with services](/docs/tutorials/services/connect-applications-service/).\nTry [Deploy a Canary Release](/docs/tutorials/stateless-application/canary-deployment/) to learn how to safely test new application versions in production.", "source": "content/en/docs/tutorials/stateless-application/expose-external-ip-address.md", "commit": "f2db56e570a59d1afb0bacabd0f26Line truncated
{"text": "GET /api/v1/ is a Kubernetes API operation. get available resources. Its operation ID is getCoreV1APIResources. Response 200: OK Response 401: Unauthorized", "source": "paths/api/v1/.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "DELETE /api/v1/namespaces/{namespace}/configmaps is a Kubernetes API operation. delete collection of ConfigMap. Its operation ID is deleteCoreV1CollectionNamespacedConfigMap. Parameters: dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed. Response 200: OK Response 401: Unauthorized", "source": "paths/api/v1/namespaces/{namespace}/configmaps.delete", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "DELETE /api/v1/namespaces/{namespace}/configmaps/{name} is a Kubernetes API operation. delete a ConfigMap. Its operation ID is deleteCoreV1NamespacedConfigMap. Parameters: dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed. Response 200: OK Response 202: Accepted Response 401: Unauthorized", "source": "paths/api/v1/namespaces/{namespace}/configmaps/{name}.delete", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "DELETE /api/v1/namespaces/{namespace}/endpoints/{name} is a Kubernetes API operation. delete Endpoints. Its operation ID is deleteCoreV1NamespacedEndpoints. Parameters: dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed. Response 200: OK Response 202: Accepted Response 401: Unauthorized", "source": "paths/api/v1/namespaces/{namespace}/endpoints/{name}.delete", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /api/v1/namespaces/{namespace}/limitranges is a Kubernetes API operation. list or watch objects of kind LimitRange. Its operation ID is listCoreV1NamespacedLimitRange. Response 200: OK Response 401: Unauthorized", "source": "paths/api/v1/namespaces/{namespace}/limitranges.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "PATCH /api/v1/namespaces/{namespace}/pods/{name}/proxy is a Kubernetes API operation. connect PATCH requests to proxy of Pod. Its operation ID is connectCoreV1PatchNamespacedPodProxy. Response 200: OK Response 401: Unauthorized", "source": "paths/api/v1/namespaces/{namespace}/pods/{name}/proxy.patch", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /api/v1/namespaces/{namespace}/pods/{name}/status is a Kubernetes API operation. read status of the specified Pod. Its operation ID is readCoreV1NamespacedPodStatus. Response 200: OK Response 401: Unauthorized", "source": "paths/api/v1/namespaces/{namespace}/pods/{name}/status.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /api/v1/namespaces/{namespace}/podtemplates/{name} is a Kubernetes API operation. read the specified PodTemplate. Its operation ID is readCoreV1NamespacedPodTemplate. Response 200: OK Response 401: Unauthorized", "source": "paths/api/v1/namespaces/{namespace}/podtemplates/{name}.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "PATCH /api/v1/namespaces/{namespace}/services/{name}/status is a Kubernetes API operation. partially update status of the specified Service. Its operation ID is patchCoreV1NamespacedServiceStatus. Parameters: dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed; fieldValidation (query, optional): fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.. Response 200: OK Response 201: Created Response 401: Unauthorized", "source": "paths/api/v1/namespaces/{namespace}/services/{name}/status.patch", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "DELETE /api/v1/namespaces/{name} is a Kubernetes API operation. delete a Namespace. Its operation ID is deleteCoreV1Namespace. Parameters: dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed. Response 200: OK Response 202: Accepted Response 401: Unauthorized", "source": "paths/api/v1/namespaces/{name}.delete", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /api/v1/persistentvolumeclaims is a Kubernetes API operation. list or watch objects of kind PersistentVolumeClaim. Its operation ID is listCoreV1PersistentVolumeClaimForAllNamespaces. Response 200: OK Response 401: Unauthorized", "source": "paths/api/v1/persistentvolumeclaims.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "DELETE /api/v1/persistentvolumes/{name} is a Kubernetes API operation. delete a PersistentVolume. Its operation ID is deleteCoreV1PersistentVolume. Parameters: dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed. Response 200: OK Response 202: Accepted Response 401: Unauthorized", "source": "paths/api/v1/persistentvolumes/{name}.delete", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /api/v1/serviceaccounts is a Kubernetes API operation. list or watch objects of kind ServiceAccount. Its operation ID is listCoreV1ServiceAccountForAllNamespaces. Response 200: OK Response 401: Unauthorized", "source": "paths/api/v1/serviceaccounts.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /api/v1/watch/endpoints is a Kubernetes API operation. watch individual changes to a list of Endpoints. deprecated: use the 'watch' parameter with a list operation instead. Its operation ID is watchCoreV1EndpointsListForAllNamespaces. Response 200: OK Response 401: Unauthorized", "source": "paths/api/v1/watch/endpoints.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /api/v1/watch/events is a Kubernetes API operation. watch individual changes to a list of Event. deprecated: use the 'watch' parameter with a list operation instead. Its operation ID is watchCoreV1EventListForAllNamespaces. Response 200: OK Response 401: Unauthorized", "source": "paths/api/v1/watch/events.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /api/v1/watch/namespaces/{namespace}/replicationcontrollers/{name} is a Kubernetes API operation. watch changes to an object of kind ReplicationController. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. Its operation ID is watchCoreV1NamespacedReplicationController. Response 200: OK Response 401: Unauthorized", "source": "paths/api/v1/watch/namespaces/{namespace}/replicationcontrollers/{name}.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /api/v1/watch/namespaces/{namespace}/secrets is a Kubernetes API operation. watch individual changes to a list of Secret. deprecated: use the 'watch' parameter with a list operation instead. Its operation ID is watchCoreV1NamespacedSecretList. Response 200: OK Response 401: Unauthorized", "source": "paths/api/v1/watch/namespaces/{namespace}/secrets.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /api/v1/watch/namespaces/{namespace}/services is a Kubernetes API operation. watch individual changes to a list of Service. deprecated: use the 'watch' parameter with a list operation instead. Its operation ID is watchCoreV1NamespacedServiceList. Response 200: OK Response 401: Unauthorized", "source": "paths/api/v1/watch/namespaces/{namespace}/services.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /api/v1/watch/secrets is a Kubernetes API operation. watch individual changes to a list of Secret. deprecated: use the 'watch' parameter with a list operation instead. Its operation ID is watchCoreV1SecretListForAllNamespaces. Response 200: OK Response 401: Unauthorized", "source": "paths/api/v1/watch/secrets.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /apis/admissionregistration.k8s.io/v1/mutatingadmissionpolicybindings is a Kubernetes API operation. list or watch objects of kind MutatingAdmissionPolicyBinding. Its operation ID is listAdmissionregistrationV1MutatingAdmissionPolicyBinding. Response 200: OK Response 401: Unauthorized", "source": "paths/apis/admissionregistration.k8s.io/v1/mutatingadmissionpolicybindings.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "PATCH /apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name} is a Kubernetes API operation. partially update the specified MutatingWebhookConfiguration. Its operation ID is patchAdmissionregistrationV1MutatingWebhookConfiguration. Parameters: dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed; fieldValidation (query, optional): fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.. Response 200: OK Response 201: Created Response 401: Unauthorized", "source": "paths/apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name}.patch", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "DELETE /apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies/{name} is a Kubernetes API operation. delete a ValidatingAdmissionPolicy. Its operation ID is deleteAdmissionregistrationV1ValidatingAdmissionPolicy. Parameters: dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed. Response 200: OK Response 202: Accepted Response 401: Unauthorized", "source": "paths/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies/{name}.delete", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /apis/admissionregistration.k8s.io/v1/validatingadmissionpolicybindings is a Kubernetes API operation. list or watch objects of kind ValidatingAdmissionPolicyBinding. Its operation ID is listAdmissionregistrationV1ValidatingAdmissionPolicyBinding. Response 200: OK Response 401: Unauthorized", "source": "paths/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicybindings.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "PUT /apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name} is a Kubernetes API operation. replace the specified ValidatingWebhookConfiguration. Its operation ID is replaceAdmissionregistrationV1ValidatingWebhookConfiguration. Parameters: body (body, required); dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed; fieldValidation (query, optional): fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.. Response 200: OK Response 201: Created Response 401: Unauthorized", "source": "paths/apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name}.put", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /apis/admissionregistration.k8s.io/v1/watch/validatingadmissionpolicies is a Kubernetes API operation. watch individual changes to a list of ValidatingAdmissionPolicy. deprecated: use the 'watch' parameter with a list operation instead. Its operation ID is watchAdmissionregistrationV1ValidatingAdmissionPolicyList. Response 200: OK Response 401: Unauthorized", "source": "paths/apis/admissionregistration.k8s.io/v1/watch/validatingadmissionpolicies.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "PATCH /apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicies/{name} is a Kubernetes API operation. partially update the specified MutatingAdmissionPolicy. Its operation ID is patchAdmissionregistrationV1alpha1MutatingAdmissionPolicy. Parameters: dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed; fieldValidation (query, optional): fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.. Response 200: OK Response 201: Created Response 401: Unauthorized", "source": "paths/apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicies/{name}.patch", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /apis/apiregistration.k8s.io/v1/apiservices/{name} is a Kubernetes API operation. read the specified APIService. Its operation ID is readApiregistrationV1APIService. Response 200: OK Response 401: Unauthorized", "source": "paths/apis/apiregistration.k8s.io/v1/apiservices/{name}.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "POST /apis/apps/v1/namespaces/{namespace}/controllerrevisions is a Kubernetes API operation. create a ControllerRevision. Its operation ID is createAppsV1NamespacedControllerRevision. Parameters: body (body, required); dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed; fieldValidation (query, optional): fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.. Response 200: OK Response 201: Created Response 202: Accepted Response 401: Unauthorized", "source": "paths/apis/apps/v1/namespaces/{namespace}/controllerrevisions.post", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "DELETE /apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name} is a Kubernetes API operation. delete a ControllerRevision. Its operation ID is deleteAppsV1NamespacedControllerRevision. Parameters: dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed. Response 200: OK Response 202: Accepted Response 401: Unauthorized", "source": "paths/apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}.delete", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status is a Kubernetes API operation. read status of the specified DaemonSet. Its operation ID is readAppsV1NamespacedDaemonSetStatus. Response 200: OK Response 401: Unauthorized", "source": "paths/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "PUT /apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status is a Kubernetes API operation. replace status of the specified DaemonSet. Its operation ID is replaceAppsV1NamespacedDaemonSetStatus. Parameters: body (body, required); dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed; fieldValidation (query, optional): fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.. Response 200: OK Response 201: Created Response 401: Unauthorized", "source": "paths/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status.put", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /apis/apps/v1/namespaces/{namespace}/replicasets/{name} is a Kubernetes API operation. read the specified ReplicaSet. Its operation ID is readAppsV1NamespacedReplicaSet. Response 200: OK Response 401: Unauthorized", "source": "paths/apis/apps/v1/namespaces/{namespace}/replicasets/{name}.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "PATCH /apis/apps/v1/namespaces/{namespace}/statefulsets/{name} is a Kubernetes API operation. partially update the specified StatefulSet. Its operation ID is patchAppsV1NamespacedStatefulSet. Parameters: dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed; fieldValidation (query, optional): fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.. Response 200: OK Response 201: Created Response 401: Unauthorized", "source": "paths/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}.patch", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "PUT /apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/status is a Kubernetes API operation. replace status of the specified StatefulSet. Its operation ID is replaceAppsV1NamespacedStatefulSetStatus. Parameters: body (body, required); dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed; fieldValidation (query, optional): fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.. Response 200: OK Response 201: Created Response 401: Unauthorized", "source": "paths/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/status.put", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /apis/apps/v1/watch/namespaces/{namespace}/deployments is a Kubernetes API operation. watch individual changes to a list of Deployment. deprecated: use the 'watch' parameter with a list operation instead. Its operation ID is watchAppsV1NamespacedDeploymentList. Response 200: OK Response 401: Unauthorized", "source": "paths/apis/apps/v1/watch/namespaces/{namespace}/deployments.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /apis/apps/v1/watch/namespaces/{namespace}/deployments/{name} is a Kubernetes API operation. watch changes to an object of kind Deployment. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. Its operation ID is watchAppsV1NamespacedDeployment. Response 200: OK Response 401: Unauthorized", "source": "paths/apis/apps/v1/watch/namespaces/{namespace}/deployments/{name}.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /apis/apps/v1/watch/namespaces/{namespace}/replicasets/{name} is a Kubernetes API operation. watch changes to an object of kind ReplicaSet. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. Its operation ID is watchAppsV1NamespacedReplicaSet. Response 200: OK Response 401: Unauthorized", "source": "paths/apis/apps/v1/watch/namespaces/{namespace}/replicasets/{name}.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /apis/apps/v1/watch/namespaces/{namespace}/statefulsets/{name} is a Kubernetes API operation. watch changes to an object of kind StatefulSet. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. Its operation ID is watchAppsV1NamespacedStatefulSet. Response 200: OK Response 401: Unauthorized", "source": "paths/apis/apps/v1/watch/namespaces/{namespace}/statefulsets/{name}.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /apis/authentication.k8s.io/ is a Kubernetes API operation. get information of a group. Its operation ID is getAuthenticationAPIGroup. Response 200: OK Response 401: Unauthorized", "source": "paths/apis/authentication.k8s.io/.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /apis/autoscaling/v2/ is a Kubernetes API operation. get available resources. Its operation ID is getAutoscalingV2APIResources. Response 200: OK Response 401: Unauthorized", "source": "paths/apis/autoscaling/v2/.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "DELETE /apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers is a Kubernetes API operation. delete collection of HorizontalPodAutoscaler. Its operation ID is deleteAutoscalingV2CollectionNamespacedHorizontalPodAutoscaler. Parameters: dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed. Response 200: OK Response 401: Unauthorized", "source": "paths/apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers.delete", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "POST /apis/batch/v1/namespaces/{namespace}/jobs is a Kubernetes API operation. create a Job. Its operation ID is createBatchV1NamespacedJob. Parameters: body (body, required); dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed; fieldValidation (query, optional): fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.. Response 200: OK Response 201: Created Response 202: Accepted Response 401: Unauthorized", "source": "paths/apis/batch/v1/namespaces/{namespace}/jobs.post", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "PUT /apis/batch/v1/namespaces/{namespace}/jobs/{name} is a Kubernetes API operation. replace the specified Job. Its operation ID is replaceBatchV1NamespacedJob. Parameters: body (body, required); dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed; fieldValidation (query, optional): fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.. Response 200: OK Response 201: Created Response 401: Unauthorized", "source": "paths/apis/batch/v1/namespaces/{namespace}/jobs/{name}.put", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /apis/certificates.k8s.io/v1/certificatesigningrequests is a Kubernetes API operation. list or watch objects of kind CertificateSigningRequest. Its operation ID is listCertificatesV1CertificateSigningRequest. Response 200: OK Response 401: Unauthorized", "source": "paths/apis/certificates.k8s.io/v1/certificatesigningrequests.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "PUT /apis/certificates.k8s.io/v1/certificatesigningrequests/{name} is a Kubernetes API operation. replace the specified CertificateSigningRequest. Its operation ID is replaceCertificatesV1CertificateSigningRequest. Parameters: body (body, required); dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed; fieldValidation (query, optional): fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.. Response 200: OK Response 201: Created Response 401: Unauthorized", "source": "paths/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}.put", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "PUT /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval is a Kubernetes API operation. replace approval of the specified CertificateSigningRequest. Its operation ID is replaceCertificatesV1CertificateSigningRequestApproval. Parameters: body (body, required); dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed; fieldValidation (query, optional): fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.. Response 200: OK Response 201: Created Response 401: Unauthorized", "source": "paths/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval.put", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /apis/certificates.k8s.io/v1/clustertrustbundles/{name} is a Kubernetes API operation. read the specified ClusterTrustBundle. Its operation ID is readCertificatesV1ClusterTrustBundle. Response 200: OK Response 401: Unauthorized", "source": "paths/apis/certificates.k8s.io/v1/clustertrustbundles/{name}.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "DELETE /apis/certificates.k8s.io/v1/clustertrustbundles/{name} is a Kubernetes API operation. delete a ClusterTrustBundle. Its operation ID is deleteCertificatesV1ClusterTrustBundle. Parameters: dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed. Response 200: OK Response 202: Accepted Response 401: Unauthorized", "source": "paths/apis/certificates.k8s.io/v1/clustertrustbundles/{name}.delete", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "DELETE /apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name} is a Kubernetes API operation. delete a PodCertificateRequest. Its operation ID is deleteCertificatesV1NamespacedPodCertificateRequest. Parameters: dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed. Response 200: OK Response 202: Accepted Response 401: Unauthorized", "source": "paths/apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name}.delete", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "PUT /apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name}/status is a Kubernetes API operation. replace status of the specified PodCertificateRequest. Its operation ID is replaceCertificatesV1NamespacedPodCertificateRequestStatus. Parameters: body (body, required); dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed; fieldValidation (query, optional): fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.. Response 200: OK Response 201: Created Response 401: Unauthorized", "source": "paths/apis/certificates.k8s.io/v1/namespaces/{namespace}/podcertificaterequests/{name}/status.put", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests is a Kubernetes API operation. list or watch objects of kind PodCertificateRequest. Its operation ID is listCertificatesV1beta1NamespacedPodCertificateRequest. Response 200: OK Response 401: Unauthorized", "source": "paths/apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /apis/certificates.k8s.io/v1beta1/watch/clustertrustbundles is a Kubernetes API operation. watch individual changes to a list of ClusterTrustBundle. deprecated: use the 'watch' parameter with a list operation instead. Its operation ID is watchCertificatesV1beta1ClusterTrustBundleList. Response 200: OK Response 401: Unauthorized", "source": "paths/apis/certificates.k8s.io/v1beta1/watch/clustertrustbundles.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /apis/coordination.k8s.io/ is a Kubernetes API operation. get information of a group. Its operation ID is getCoordinationAPIGroup. Response 200: OK Response 401: Unauthorized", "source": "paths/apis/coordination.k8s.io/.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "POST /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases is a Kubernetes API operation. create a Lease. Its operation ID is createCoordinationV1NamespacedLease. Parameters: body (body, required); dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed; fieldValidation (query, optional): fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.. Response 200: OK Response 201: Created Response 202: Accepted Response 401: Unauthorized", "source": "paths/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases.post", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "DELETE /apis/coordination.k8s.io/v1alpha2/namespaces/{namespace}/leasecandidates/{name} is a Kubernetes API operation. delete a LeaseCandidate. Its operation ID is deleteCoordinationV1alpha2NamespacedLeaseCandidate. Parameters: dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed. Response 200: OK Response 202: Accepted Response 401: Unauthorized", "source": "paths/apis/coordination.k8s.io/v1alpha2/namespaces/{namespace}/leasecandidates/{name}.delete", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /apis/coordination.k8s.io/v1alpha2/watch/namespaces/{namespace}/leasecandidates is a Kubernetes API operation. watch individual changes to a list of LeaseCandidate. deprecated: use the 'watch' parameter with a list operation instead. Its operation ID is watchCoordinationV1alpha2NamespacedLeaseCandidateList. Response 200: OK Response 401: Unauthorized", "source": "paths/apis/coordination.k8s.io/v1alpha2/watch/namespaces/{namespace}/leasecandidates.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /apis/coordination.k8s.io/v1beta1/leasecandidates is a Kubernetes API operation. list or watch objects of kind LeaseCandidate. Its operation ID is listCoordinationV1beta1LeaseCandidateForAllNamespaces. Response 200: OK Response 401: Unauthorized", "source": "paths/apis/coordination.k8s.io/v1beta1/leasecandidates.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "POST /apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates is a Kubernetes API operation. create a LeaseCandidate. Its operation ID is createCoordinationV1beta1NamespacedLeaseCandidate. Parameters: body (body, required); dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed; fieldValidation (query, optional): fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.. Response 200: OK Response 201: Created Response 202: Accepted Response 401: Unauthorized", "source": "paths/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates.post", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "DELETE /apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates/{name} is a Kubernetes API operation. delete a LeaseCandidate. Its operation ID is deleteCoordinationV1beta1NamespacedLeaseCandidate. Parameters: dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed. Response 200: OK Response 202: Accepted Response 401: Unauthorized", "source": "paths/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates/{name}.delete", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /apis/events.k8s.io/v1/ is a Kubernetes API operation. get available resources. Its operation ID is getEventsV1APIResources. Response 200: OK Response 401: Unauthorized", "source": "paths/apis/events.k8s.io/v1/.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "POST /apis/events.k8s.io/v1/namespaces/{namespace}/events is a Kubernetes API operation. create an Event. Its operation ID is createEventsV1NamespacedEvent. Parameters: body (body, required); dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed; fieldValidation (query, optional): fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.. Response 200: OK Response 201: Created Response 202: Accepted Response 401: Unauthorized", "source": "paths/apis/events.k8s.io/v1/namespaces/{namespace}/events.post", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "PUT /apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name} is a Kubernetes API operation. replace the specified FlowSchema. Its operation ID is replaceFlowcontrolApiserverV1FlowSchema. Parameters: body (body, required); dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed; fieldValidation (query, optional): fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.. Response 200: OK Response 201: Created Response 401: Unauthorized", "source": "paths/apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name}.put", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "POST /apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations is a Kubernetes API operation. create a PriorityLevelConfiguration. Its operation ID is createFlowcontrolApiserverV1PriorityLevelConfiguration. Parameters: body (body, required); dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed; fieldValidation (query, optional): fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.. Response 200: OK Response 201: Created Response 202: Accepted Response 401: Unauthorized", "source": "paths/apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations.post", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions/{name} is a Kubernetes API operation. watch changes to an object of kind StorageVersion. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. Its operation ID is watchInternalApiserverV1alpha1StorageVersion. Response 200: OK Response 401: Unauthorized", "source": "paths/apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions/{name}.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name} is a Kubernetes API operation. read the specified EvictionRequest. Its operation ID is readLifecycleV1alpha1NamespacedEvictionRequest. Response 200: OK Response 401: Unauthorized", "source": "paths/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictionrequests/{name}.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "DELETE /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name} is a Kubernetes API operation. delete an Eviction. Its operation ID is deleteLifecycleV1alpha1NamespacedEviction. Parameters: dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed. Response 200: OK Response 202: Accepted Response 401: Unauthorized", "source": "paths/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name}.delete", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "PATCH /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name} is a Kubernetes API operation. partially update the specified Eviction. Its operation ID is patchLifecycleV1alpha1NamespacedEviction. Parameters: dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed; fieldValidation (query, optional): fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.. Response 200: OK Response 201: Created Response 401: Unauthorized", "source": "paths/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name}.patch", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "PUT /apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name}/status is a Kubernetes API operation. replace status of the specified Eviction. Its operation ID is replaceLifecycleV1alpha1NamespacedEvictionStatus. Parameters: body (body, required); dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed; fieldValidation (query, optional): fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.. Response 200: OK Response 201: Created Response 401: Unauthorized", "source": "paths/apis/lifecycle.k8s.io/v1alpha1/namespaces/{namespace}/evictions/{name}/status.put", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /apis/lifecycle.k8s.io/v1alpha1/watch/namespaces/{namespace}/evictionrequests is a Kubernetes API operation. watch individual changes to a list of EvictionRequest. deprecated: use the 'watch' parameter with a list operation instead. Its operation ID is watchLifecycleV1alpha1NamespacedEvictionRequestList. Response 200: OK Response 401: Unauthorized", "source": "paths/apis/lifecycle.k8s.io/v1alpha1/watch/namespaces/{namespace}/evictionrequests.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /apis/networking.k8s.io/v1/ is a Kubernetes API operation. get available resources. Its operation ID is getNetworkingV1APIResources. Response 200: OK Response 401: Unauthorized", "source": "paths/apis/networking.k8s.io/v1/.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /apis/networking.k8s.io/v1/ingressclasses is a Kubernetes API operation. list or watch objects of kind IngressClass. Its operation ID is listNetworkingV1IngressClass. Response 200: OK Response 401: Unauthorized", "source": "paths/apis/networking.k8s.io/v1/ingressclasses.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "DELETE /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses is a Kubernetes API operation. delete collection of Ingress. Its operation ID is deleteNetworkingV1CollectionNamespacedIngress. Parameters: dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed. Response 200: OK Response 401: Unauthorized", "source": "paths/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses.delete", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status is a Kubernetes API operation. read status of the specified Ingress. Its operation ID is readNetworkingV1NamespacedIngressStatus. Response 200: OK Response 401: Unauthorized", "source": "paths/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "DELETE /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies is a Kubernetes API operation. delete collection of NetworkPolicy. Its operation ID is deleteNetworkingV1CollectionNamespacedNetworkPolicy. Parameters: dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed. Response 200: OK Response 401: Unauthorized", "source": "paths/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies.delete", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name} is a Kubernetes API operation. read the specified NetworkPolicy. Its operation ID is readNetworkingV1NamespacedNetworkPolicy. Response 200: OK Response 401: Unauthorized", "source": "paths/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "PATCH /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name} is a Kubernetes API operation. partially update the specified NetworkPolicy. Its operation ID is patchNetworkingV1NamespacedNetworkPolicy. Parameters: dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed; fieldValidation (query, optional): fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.. Response 200: OK Response 201: Created Response 401: Unauthorized", "source": "paths/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}.patch", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses/{name} is a Kubernetes API operation. watch changes to an object of kind Ingress. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. Its operation ID is watchNetworkingV1NamespacedIngress. Response 200: OK Response 401: Unauthorized", "source": "paths/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses/{name}.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /apis/node.k8s.io/v1/runtimeclasses/{name} is a Kubernetes API operation. read the specified RuntimeClass. Its operation ID is readNodeV1RuntimeClass. Response 200: OK Response 401: Unauthorized", "source": "paths/apis/node.k8s.io/v1/runtimeclasses/{name}.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "DELETE /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets is a Kubernetes API operation. delete collection of PodDisruptionBudget. Its operation ID is deletePolicyV1CollectionNamespacedPodDisruptionBudget. Parameters: dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed. Response 200: OK Response 401: Unauthorized", "source": "paths/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets.delete", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "PATCH /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/status is a Kubernetes API operation. partially update status of the specified PodDisruptionBudget. Its operation ID is patchPolicyV1NamespacedPodDisruptionBudgetStatus. Parameters: dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed; fieldValidation (query, optional): fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.. Response 200: OK Response 201: Created Response 401: Unauthorized", "source": "paths/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/status.patch", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings is a Kubernetes API operation. list or watch objects of kind RoleBinding. Its operation ID is listRbacAuthorizationV1NamespacedRoleBinding. Response 200: OK Response 401: Unauthorized", "source": "paths/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "DELETE /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings is a Kubernetes API operation. delete collection of RoleBinding. Its operation ID is deleteRbacAuthorizationV1CollectionNamespacedRoleBinding. Parameters: dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed. Response 200: OK Response 401: Unauthorized", "source": "paths/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings.delete", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "DELETE /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name} is a Kubernetes API operation. delete a RoleBinding. Its operation ID is deleteRbacAuthorizationV1NamespacedRoleBinding. Parameters: dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed. Response 200: OK Response 202: Accepted Response 401: Unauthorized", "source": "paths/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}.delete", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "POST /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles is a Kubernetes API operation. create a Role. Its operation ID is createRbacAuthorizationV1NamespacedRole. Parameters: body (body, required); dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed; fieldValidation (query, optional): fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.. Response 200: OK Response 201: Created Response 202: Accepted Response 401: Unauthorized", "source": "paths/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles.post", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /apis/rbac.authorization.k8s.io/v1/watch/rolebindings is a Kubernetes API operation. watch individual changes to a list of RoleBinding. deprecated: use the 'watch' parameter with a list operation instead. Its operation ID is watchRbacAuthorizationV1RoleBindingListForAllNamespaces. Response 200: OK Response 401: Unauthorized", "source": "paths/apis/rbac.authorization.k8s.io/v1/watch/rolebindings.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "DELETE /apis/resource.k8s.io/v1/deviceclasses is a Kubernetes API operation. delete collection of DeviceClass. Its operation ID is deleteResourceV1CollectionDeviceClass. Parameters: dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed. Response 200: OK Response 401: Unauthorized", "source": "paths/apis/resource.k8s.io/v1/deviceclasses.delete", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "PUT /apis/resource.k8s.io/v1/devicetaintrules/{name}/status is a Kubernetes API operation. replace status of the specified DeviceTaintRule. Its operation ID is replaceResourceV1DeviceTaintRuleStatus. Parameters: body (body, required); dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed; fieldValidation (query, optional): fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.. Response 200: OK Response 201: Created Response 401: Unauthorized", "source": "paths/apis/resource.k8s.io/v1/devicetaintrules/{name}/status.put", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /apis/resource.k8s.io/v1/watch/resourceclaims is a Kubernetes API operation. watch individual changes to a list of ResourceClaim. deprecated: use the 'watch' parameter with a list operation instead. Its operation ID is watchResourceV1ResourceClaimListForAllNamespaces. Response 200: OK Response 401: Unauthorized", "source": "paths/apis/resource.k8s.io/v1/watch/resourceclaims.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "DELETE /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name} is a Kubernetes API operation. delete a DeviceTaintRule. Its operation ID is deleteResourceV1alpha3DeviceTaintRule. Parameters: dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed. Response 200: OK Response 202: Accepted Response 401: Unauthorized", "source": "paths/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}.delete", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "PUT /apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests/{name}/status is a Kubernetes API operation. replace status of the specified ResourcePoolStatusRequest. Its operation ID is replaceResourceV1alpha3ResourcePoolStatusRequestStatus. Parameters: body (body, required); dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed; fieldValidation (query, optional): fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.. Response 200: OK Response 201: Created Response 401: Unauthorized", "source": "paths/apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests/{name}/status.put", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "PATCH /apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests/{name}/status is a Kubernetes API operation. partially update status of the specified ResourcePoolStatusRequest. Its operation ID is patchResourceV1alpha3ResourcePoolStatusRequestStatus. Parameters: dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed; fieldValidation (query, optional): fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.. Response 200: OK Response 201: Created Response 401: Unauthorized", "source": "paths/apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests/{name}/status.patch", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /apis/resource.k8s.io/v1beta2/deviceclasses/{name} is a Kubernetes API operation. read the specified DeviceClass. Its operation ID is readResourceV1beta2DeviceClass. Response 200: OK Response 401: Unauthorized", "source": "paths/apis/resource.k8s.io/v1beta2/deviceclasses/{name}.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "DELETE /apis/resource.k8s.io/v1beta2/devicetaintrules is a Kubernetes API operation. delete collection of DeviceTaintRule. Its operation ID is deleteResourceV1beta2CollectionDeviceTaintRule. Parameters: dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed. Response 200: OK Response 401: Unauthorized", "source": "paths/apis/resource.k8s.io/v1beta2/devicetaintrules.delete", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "PUT /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name} is a Kubernetes API operation. replace the specified ResourceClaim. Its operation ID is replaceResourceV1beta2NamespacedResourceClaim. Parameters: body (body, required); dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed; fieldValidation (query, optional): fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.. Response 200: OK Response 201: Created Response 401: Unauthorized", "source": "paths/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}.put", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "PATCH /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name} is a Kubernetes API operation. partially update the specified ResourceClaim. Its operation ID is patchResourceV1beta2NamespacedResourceClaim. Parameters: dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed; fieldValidation (query, optional): fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.. Response 200: OK Response 201: Created Response 401: Unauthorized", "source": "paths/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}.patch", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "PATCH /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}/status is a Kubernetes API operation. partially update status of the specified ResourceClaim. Its operation ID is patchResourceV1beta2NamespacedResourceClaimStatus. Parameters: dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed; fieldValidation (query, optional): fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.. Response 200: OK Response 201: Created Response 401: Unauthorized", "source": "paths/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}/status.patch", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "PATCH /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name} is a Kubernetes API operation. partially update the specified ResourceClaimTemplate. Its operation ID is patchResourceV1beta2NamespacedResourceClaimTemplate. Parameters: dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed; fieldValidation (query, optional): fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.. Response 200: OK Response 201: Created Response 401: Unauthorized", "source": "paths/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name}.patch", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /apis/resource.k8s.io/v1beta2/watch/resourceclaims is a Kubernetes API operation. watch individual changes to a list of ResourceClaim. deprecated: use the 'watch' parameter with a list operation instead. Its operation ID is watchResourceV1beta2ResourceClaimListForAllNamespaces. Response 200: OK Response 401: Unauthorized", "source": "paths/apis/resource.k8s.io/v1beta2/watch/resourceclaims.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /apis/scheduling.k8s.io/v1/priorityclasses/{name} is a Kubernetes API operation. read the specified PriorityClass. Its operation ID is readSchedulingV1PriorityClass. Response 200: OK Response 401: Unauthorized", "source": "paths/apis/scheduling.k8s.io/v1/priorityclasses/{name}.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "PUT /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name} is a Kubernetes API operation. replace the specified CompositePodGroup. Its operation ID is replaceSchedulingV1alpha3NamespacedCompositePodGroup. Parameters: body (body, required); dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed; fieldValidation (query, optional): fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.. Response 200: OK Response 201: Created Response 401: Unauthorized", "source": "paths/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name}.put", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "PATCH /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name} is a Kubernetes API operation. partially update the specified CompositePodGroup. Its operation ID is patchSchedulingV1alpha3NamespacedCompositePodGroup. Parameters: dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed; fieldValidation (query, optional): fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.. Response 200: OK Response 201: Created Response 401: Unauthorized", "source": "paths/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name}.patch", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "PUT /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name}/status is a Kubernetes API operation. replace status of the specified CompositePodGroup. Its operation ID is replaceSchedulingV1alpha3NamespacedCompositePodGroupStatus. Parameters: body (body, required); dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed; fieldValidation (query, optional): fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.. Response 200: OK Response 201: Created Response 401: Unauthorized", "source": "paths/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name}/status.put", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "PATCH /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name}/status is a Kubernetes API operation. partially update status of the specified CompositePodGroup. Its operation ID is patchSchedulingV1alpha3NamespacedCompositePodGroupStatus. Parameters: dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed; fieldValidation (query, optional): fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.. Response 200: OK Response 201: Created Response 401: Unauthorized", "source": "paths/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/compositepodgroups/{name}/status.patch", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "PATCH /apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name} is a Kubernetes API operation. partially update the specified PodGroup. Its operation ID is patchSchedulingV1alpha3NamespacedPodGroup. Parameters: dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed; fieldValidation (query, optional): fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.. Response 200: OK Response 201: Created Response 401: Unauthorized", "source": "paths/apis/scheduling.k8s.io/v1alpha3/namespaces/{namespace}/podgroups/{name}.patch", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /apis/scheduling.k8s.io/v1alpha3/watch/namespaces/{namespace}/compositepodgroups is a Kubernetes API operation. watch individual changes to a list of CompositePodGroup. deprecated: use the 'watch' parameter with a list operation instead. Its operation ID is watchSchedulingV1alpha3NamespacedCompositePodGroupList. Response 200: OK Response 401: Unauthorized", "source": "paths/apis/scheduling.k8s.io/v1alpha3/watch/namespaces/{namespace}/compositepodgroups.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "PUT /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/compositepodgroups/{name} is a Kubernetes API operation. replace the specified CompositePodGroup. Its operation ID is replaceSchedulingV1beta1NamespacedCompositePodGroup. Parameters: body (body, required); dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed; fieldValidation (query, optional): fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.. Response 200: OK Response 201: Created Response 401: Unauthorized", "source": "paths/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/compositepodgroups/{name}.put", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "DELETE /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/compositepodgroups/{name} is a Kubernetes API operation. delete a CompositePodGroup. Its operation ID is deleteSchedulingV1beta1NamespacedCompositePodGroup. Parameters: dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed. Response 200: OK Response 202: Accepted Response 401: Unauthorized", "source": "paths/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/compositepodgroups/{name}.delete", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups is a Kubernetes API operation. list or watch objects of kind PodGroup. Its operation ID is listSchedulingV1beta1NamespacedPodGroup. Response 200: OK Response 401: Unauthorized", "source": "paths/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "DELETE /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name} is a Kubernetes API operation. delete a PodGroup. Its operation ID is deleteSchedulingV1beta1NamespacedPodGroup. Parameters: dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed. Response 200: OK Response 202: Accepted Response 401: Unauthorized", "source": "paths/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name}.delete", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "PUT /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name}/status is a Kubernetes API operation. replace status of the specified PodGroup. Its operation ID is replaceSchedulingV1beta1NamespacedPodGroupStatus. Parameters: body (body, required); dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed; fieldValidation (query, optional): fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.. Response 200: OK Response 201: Created Response 401: Unauthorized", "source": "paths/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name}/status.put", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "PATCH /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name}/status is a Kubernetes API operation. partially update status of the specified PodGroup. Its operation ID is patchSchedulingV1beta1NamespacedPodGroupStatus. Parameters: dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed; fieldValidation (query, optional): fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.. Response 200: OK Response 201: Created Response 401: Unauthorized", "source": "paths/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/podgroups/{name}/status.patch", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "POST /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads is a Kubernetes API operation. create a Workload. Its operation ID is createSchedulingV1beta1NamespacedWorkload. Parameters: body (body, required); dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed; fieldValidation (query, optional): fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.. Response 200: OK Response 201: Created Response 202: Accepted Response 401: Unauthorized", "source": "paths/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads.post", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads/{name} is a Kubernetes API operation. read the specified Workload. Its operation ID is readSchedulingV1beta1NamespacedWorkload. Response 200: OK Response 401: Unauthorized", "source": "paths/apis/scheduling.k8s.io/v1beta1/namespaces/{namespace}/workloads/{name}.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "DELETE /apis/storage.k8s.io/v1/csidrivers/{name} is a Kubernetes API operation. delete a CSIDriver. Its operation ID is deleteStorageV1CSIDriver. Parameters: dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed. Response 200: OK Response 202: Accepted Response 401: Unauthorized", "source": "paths/apis/storage.k8s.io/v1/csidrivers/{name}.delete", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "DELETE /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities is a Kubernetes API operation. delete collection of CSIStorageCapacity. Its operation ID is deleteStorageV1CollectionNamespacedCSIStorageCapacity. Parameters: dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed. Response 200: OK Response 401: Unauthorized", "source": "paths/apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities.delete", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /apis/storage.k8s.io/v1/watch/csidrivers is a Kubernetes API operation. watch individual changes to a list of CSIDriver. deprecated: use the 'watch' parameter with a list operation instead. Its operation ID is watchStorageV1CSIDriverList. Response 200: OK Response 401: Unauthorized", "source": "paths/apis/storage.k8s.io/v1/watch/csidrivers.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /apis/storage.k8s.io/v1/watch/namespaces/{namespace}/csistoragecapacities is a Kubernetes API operation. watch individual changes to a list of CSIStorageCapacity. deprecated: use the 'watch' parameter with a list operation instead. Its operation ID is watchStorageV1NamespacedCSIStorageCapacityList. Response 200: OK Response 401: Unauthorized", "source": "paths/apis/storage.k8s.io/v1/watch/namespaces/{namespace}/csistoragecapacities.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /apis/storage.k8s.io/v1/watch/storageclasses/{name} is a Kubernetes API operation. watch changes to an object of kind StorageClass. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. Its operation ID is watchStorageV1StorageClass. Response 200: OK Response 401: Unauthorized", "source": "paths/apis/storage.k8s.io/v1/watch/storageclasses/{name}.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /apis/storagemigration.k8s.io/v1/watch/storageversionmigrations is a Kubernetes API operation. watch individual changes to a list of StorageVersionMigration. deprecated: use the 'watch' parameter with a list operation instead. Its operation ID is watchStoragemigrationV1StorageVersionMigrationList. Response 200: OK Response 401: Unauthorized", "source": "paths/apis/storagemigration.k8s.io/v1/watch/storageversionmigrations.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "DELETE /apis/storagemigration.k8s.io/v1beta1/storageversionmigrations/{name} is a Kubernetes API operation. delete a StorageVersionMigration. Its operation ID is deleteStoragemigrationV1beta1StorageVersionMigration. Parameters: dryRun (query, optional): When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed. Response 200: OK Response 202: Accepted Response 401: Unauthorized", "source": "paths/apis/storagemigration.k8s.io/v1beta1/storageversionmigrations/{name}.delete", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GET /version/ is a Kubernetes API operation. get the version information for this server. Its operation ID is getCodeVersion. Response 200: OK Response 401: Unauthorized", "source": "paths/version/.get", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "MatchCondition is a Kubernetes object (admissionregistration/v1). MatchCondition represents a condition which must by fulfilled for a request to be sent to a webhook. Field expression (string): expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:\n\n'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\nDocumentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/\n\nRequired. Field name (string): name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')\n\nRequired.", "source": "definitions/io.k8s.api.admissionregistration.v1.MatchCondition", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "MutatingAdmissionPolicyBindingSpec is a Kubernetes object (admissionregistration/v1). MutatingAdmissionPolicyBindingSpec defines the specification of the MutatingAdmissionPolicyBinding. Field matchResources (MatchResources): matchResources limits what resources match this binding and may be mutated by it. Note that if matchResources matches a resource, the resource must also match a policy's matchConstraints and matchConditions before the resource may be mutated. When matchResources is unset, it does not constrain resource matching, and only the policy's matchConstraints and matchConditions must match for the resource to be mutated. Additionally, matchResources.resourceRules are optional and do not constraint matching when unset. Note that this is differs from MutatingAdmissionPolicy matchConstraints, where resourceRules are required. The CREATE, UPDATE and CONNECT operations are allowed. The DELETE operation may not be matched. '*' matches CREATE, UPDATE and CONNECT. Field paramRef (ParamRef): paramRef specifies the parameter resource used to configure the admission control policy. It should point to a resource of the type specified in spec.ParamKind of the bound MutatingAdmissionPolicy. If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the MutatingAdmissionPolicy applied. If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param. Field policyName (string): policyName references a MutatingAdmissionPolicy name which the MutatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.", "source": "definitions/io.k8s.api.admissionregistration.v1.MutatingAdmissionPolicyBindingSpec", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "NamedRuleWithOperations is a Kubernetes object (admissionregistration/v1). NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames. Field apiGroups (array): apiGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. Field apiVersions (array): apiVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. Field operations (array): operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required. Field resourceNames (array): resourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. Field resources (array): resources is a list of resources this rule applies to.\n\nFor example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nDepending on the enclosing object, subresources might not be allowed. Required. Field scope (string): scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", "source": "definitions/io.k8s.api.admissionregistration.v1.NamedRuleWithOperations", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "ParamKind is a Kubernetes object (admissionregistration/v1). ParamKind is a tuple of Group Kind and Version. Field apiVersion (string): apiVersion is the API group version the resources belong to. In format of \"group/version\". Required. Field kind (string): kind is the API kind the resources belong to. Required.", "source": "definitions/io.k8s.api.admissionregistration.v1.ParamKind", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "ParamRef is a Kubernetes object (admissionregistration/v1). ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding. Field name (string): name is the name of the resource being referenced.\n\nOne of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.\n\nA single parameter used for all admission requests can be configured by setting the `name` field, leaving `selector` blank, and setting namespace if `paramKind` is namespace-scoped. Field namespace (string): namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields.\n\nA per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty.\n\n- If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error.\n\n- If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error. Field parameterNotFoundAction (string): parameterNotFoundAction controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy.\n\nAllowed values are `Allow` or `Deny`\n\nRequired Field selector (LabelSelector): selector can be used to match multiple param objects based on their labels. Supply selector: {} to match all resources of the ParamKind.\n\nIf multiple params are found, they are all evaluated with the policy expressions and the results are ANDed together.\n\nOne of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.", "source": "definitions/io.k8s.api.admissionregistration.v1.ParamRef", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "ServiceReference is a Kubernetes object (admissionregistration/v1). ServiceReference holds a reference to Service.legacy.k8s.io Field name (string): name is the name of the service. Required Field namespace (string): namespace is the namespace of the service. Required Field path (string): path is an optional URL path which will be sent in any request to this service. Field port (integer): port is the port on the service that hosts the webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).", "source": "definitions/io.k8s.api.admissionregistration.v1.ServiceReference", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "Variable is a Kubernetes object (admissionregistration/v1alpha1). Variable is the definition of a variable that is used for composition. Field expression (string): expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation. Field name (string): name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo`", "source": "definitions/io.k8s.api.admissionregistration.v1alpha1.Variable", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "MutatingAdmissionPolicyBindingList is a Kubernetes object (admissionregistration/v1beta1). MutatingAdmissionPolicyBindingList is a list of MutatingAdmissionPolicyBinding. Field apiVersion (string): APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources Field items (array): List of PolicyBinding. Field kind (string): Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Field metadata (ListMeta): metadata is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "source": "definitions/io.k8s.api.admissionregistration.v1beta1.MutatingAdmissionPolicyBindingList", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "SelfSubjectReview is a Kubernetes object (authentication/v1). SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase. Field apiVersion (string): APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources Field kind (string): Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Field metadata (ObjectMeta): metadata is standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata Field status (SelfSubjectReviewStatus): status is filled in by the server with the user attributes.", "source": "definitions/io.k8s.api.authentication.v1.SelfSubjectReview", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "NonResourceAttributes is a Kubernetes object (authorization/v1). NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface Field path (string): path is the URL path of the request Field verb (string): verb is the standard HTTP verb", "source": "definitions/io.k8s.api.authorization.v1.NonResourceAttributes", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "SubjectAccessReviewStatus is a Kubernetes object (authorization/v1). SubjectAccessReviewStatus Field allowed (boolean): allowed is true if the action would be allowed, false otherwise. allowed=true is mutually exclusive with denied=true and conditionalDecision != nil. Field conditionalDecision (ConditionsAwareDecision): conditionalDecision represents a conditional decision returned by the authorizer. When conditionalDecision is set, allowed, denied, reason and evaluationError must have their zero values. The top-level decision type should be ConditionsAwareDecisionTypeConditionsMap or ConditionsAwareDecisionTypeUnion, as Allow/Deny/NoOpinion decisions can be represented with SubjectAccessReviewStatus.Allowed and SubjectAccessReviewStatus.Denied alone. May only be set if spec.authorizationOptions.handledDecisionTypes includes `ConditionsMap` and `Union`. Requires the ConditionalAuthorization feature to be enabled. Field denied (boolean): denied is optional. True if the action would be denied, otherwise false If allowed is false, denied is false, and conditionalDecision is unset, then the authorizer has no opinion on whether to authorize the action. denied=true is mutually exclusive with allowed=true and conditionalDecision != nil. Field evaluationError (string): evaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. Field reason (string): reason is optional. It indicates why a request was allowed or denied.", "source": "definitions/io.k8s.api.authorization.v1.SubjectAccessReviewStatus", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "HorizontalPodAutoscalerSpec is a Kubernetes object (autoscaling/v1). specification of a horizontal pod autoscaler. Field maxReplicas (integer): maxReplicas is the upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas. Field minReplicas (integer): minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available. Field scaleTargetRef (CrossVersionObjectReference): scaleTargetRef is the reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource. Field targetCPUUtilizationPercentage (integer): targetCPUUtilizationPercentage is the target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used.", "source": "definitions/io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerSpec", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "HorizontalPodAutoscalerList is a Kubernetes object (autoscaling/v2). HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects. Field apiVersion (string): APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources Field items (array): items is the list of horizontal pod autoscaler objects. Field kind (string): Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Field metadata (ListMeta): metadata is the standard list metadata.", "source": "definitions/io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerList", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "CertificateSigningRequestList is a Kubernetes object (certificates/v1). CertificateSigningRequestList is a collection of CertificateSigningRequest objects Field apiVersion (string): APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources Field items (array): items is a collection of CertificateSigningRequest objects Field kind (string): Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Field metadata (ListMeta).", "source": "definitions/io.k8s.api.certificates.v1.CertificateSigningRequestList", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "PodCertificateRequestStatus is a Kubernetes object (certificates/v1beta1). PodCertificateRequestStatus describes the status of the request, and holds the certificate data if the request is issued. Field beginRefreshAt (Time): beginRefreshAt is the time at which the kubelet should begin trying to refresh the certificate. This field is set via the /status subresource, and must be set at the same time as certificateChain. Once populated, this field is immutable.\n\nThis field is only a hint. Kubelet may start refreshing before or after this time if necessary. Field certificateChain (string): certificateChain is populated with an issued certificate by the signer. This field is set via the /status subresource. Once populated, this field is immutable.\n\nIf the certificate signing request is denied, a condition of type \"Denied\" is added and this field remains empty. If the signer cannot issue the certificate, a condition of type \"Failed\" is added and this field remains empty.\n\nValidation requirements:\n 1. certificateChain must consist of one or more PEM-formatted certificates.\n 2. Each entry must be a valid PEM-wrapped, DER-encoded ASN.1 Certificate as\n described in section 4 of RFC5280.\n\nIf more than one block is present, and the definition of the requested spec.signerName does not indicate otherwise, the first block is the issued certificate, and subsequent blocks should be treated as intermediate certificates and presented in TLS handshakes. When projecting the chain into a pod volume, kubelet will drop any data in-between the PEM blocks, as well as any PEM block headers. Field conditions (array): conditions applied to the request.\n\nThe types \"Issued\", \"Denied\", and \"Failed\" have special handling. At most one of these conditions may be present, and they must have status \"True\".\n\nIf the request is denied with `Reason=UnsupportedKeyType`, the signer may suggest a key type that will work in the message field. Field notAfter (Time): notAfter is the time at which the certificate expires. The value must be the same as the notAfter value in the leaf certificate in certificateChain. This field is set via the /status subresource. Once populated, it is immutable. The signer must set this field at the same time it sets certificateChain. Field notBefore (Time): notBefore is the time at which the certificate becomes valid. The value must be the same as the notBefore value in the leaf certificate in certificateChain. This field is set via the /status subresource. Once populated, it is immutable. The signer must set this field at the same time it sets certificateChain.", "source": "definitions/io.k8s.api.certificates.v1beta1.PodCertificateRequestStatus", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "LeaseCandidate is a Kubernetes object (coordination/v1alpha2). LeaseCandidate defines a candidate for a Lease object. Candidates are created such that coordinated leader election will pick the best leader from the list of candidates. Field apiVersion (string): APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources Field kind (string): Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Field metadata (ObjectMeta): metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata Field spec (LeaseCandidateSpec): spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", "source": "definitions/io.k8s.api.coordination.v1alpha2.LeaseCandidate", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "AzureFileVolumeSource is a Kubernetes object (core/v1). AzureFile represents an Azure File Service mount on the host and bind mount to the pod. Field readOnly (boolean): readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. Field secretName (string): secretName is the name of secret that contains Azure Storage Account Name and Key Field shareName (string): shareName is the azure share Name", "source": "definitions/io.k8s.api.core.v1.AzureFileVolumeSource", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "Binding is a Kubernetes object (core/v1). Binding assigns a pod to a node. Field apiVersion (string): APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources Field kind (string): Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Field metadata (ObjectMeta): metadata is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata Field target (ObjectReference): target is the node that you want to bind the pod to.", "source": "definitions/io.k8s.api.core.v1.Binding", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "CSIVolumeSource is a Kubernetes object (core/v1). Represents a source location of a volume to mount, managed by an external CSI driver Field driver (string): driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. Field fsType (string): fsType to mount. Ex. \"ext4\", \"xfs\", \"ntfs\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. Field nodePublishSecretRef (LocalObjectReference): nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. Field readOnly (boolean): readOnly specifies a read-only configuration for the volume. Defaults to false (read/write). Field volumeAttributes (object): volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.", "source": "definitions/io.k8s.api.core.v1.CSIVolumeSource", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "ConfigMapNodeConfigSource is a Kubernetes object (core/v1). ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node. This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration Field kubeletConfigKey (string): kubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases. Field name (string): name is the metadata.name of the referenced ConfigMap. This field is required in all cases. Field namespace (string): namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases. Field resourceVersion (string): resourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. Field uid (string): uid is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.", "source": "definitions/io.k8s.api.core.v1.ConfigMapNodeConfigSource", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "ContainerPort is a Kubernetes object (core/v1). ContainerPort represents a network port in a single container. Field containerPort (integer): containerPort is the number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. Field hostIP (string): hostIP is the host IP to bind the external port to. Field hostPort (integer): hostPort is the number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. Field name (string): name is the name of the port. If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. Field protocol (string): protocol is the protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\".", "source": "definitions/io.k8s.api.core.v1.ContainerPort", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "ContainerRestartRuleOnExitCodes is a Kubernetes object (core/v1). ContainerRestartRuleOnExitCodes describes the condition for handling an exited container based on its exit codes. Field operator (string): operator represents the relationship between the container exit code(s) and the specified values. Possible values are: - In: the requirement is satisfied if the container exit code is in the\n set of specified values.\n- NotIn: the requirement is satisfied if the container exit code is\n not in the set of specified values. Field values (array): values specifies the set of values to check for container exit codes. At most 255 elements are allowed.", "source": "definitions/io.k8s.api.core.v1.ContainerRestartRuleOnExitCodes", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "ContainerStatus is a Kubernetes object (core/v1). ContainerStatus contains details for the current status of this container. Field allocatedResources (object): allocatedResources represents the compute resources allocated for this container by the node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission and after successfully admitting desired pod resize. Field allocatedResourcesStatus (array): allocatedResourcesStatus represents the status of various resources allocated for this Pod. Field containerID (string): containerID is the ID of the container in the format '<type>://<container_id>'. Where type is a container runtime identifier, returned from Version call of CRI API (for example \"containerd\"). Field image (string): image is the name of container image that the container is running. The container image may not match the image used in the PodSpec, as it may have been resolved by the runtime. More info: https://kubernetes.io/docs/concepts/containers/images. Field imageID (string): imageID is the image ID of the container's image. The image ID may not match the image ID of the image used in the PodSpec, as it may have been resolved by the runtime. Field lastState (ContainerState): lastState holds the last termination state of the container to help debug container crashes and restarts. This field is not populated if the container is still running and RestartCount is 0. Field name (string): name is a DNS_LABEL representing the unique name of the container. Each container in a pod must have a unique name across all container types. Cannot be updated. Field ready (boolean): ready specifies whether the container is currently passing its readiness check. The value will change as readiness probes keep executing. If no readiness probes are specified, this field defaults to true once the container is fully started (see Started field).\n\nThe value is typically used to determine whether a container is ready to accept traffic. Field resources (ResourceRequirements): resources represents the compute resource requests and limits that have been successfully enacted on the running container after it has been started or has been successfully resized. Field restartCount (integer): restartCount holds the number of times the container has been restarted. Kubelet makes an effort to always increment the value, but there are cases when the state may be lost due to node restarts and then the value may be reset to 0. The value is never negative. Field started (boolean): started indicates whether the container has finished its postStart lifecycle hook and passed its startup probe. Initialized as false, becomes true after startupProbe is considered successful. Resets to false when the container is restarted, or if kubelet loses state temporarily. In both cases, startup probes will run again. Is always true when no startupProbe is defined and container is running and has passed the postStart lifecycle hook. The null value must be treated the same as false. Field state (ContainerState): state holds details about the container's current condition. Field stopSignal (string): stopSignal reports the effective stop signal for this container Field user (ContainerUser): user represents user identity information initially attached to the first process of the container Field volumeMounts (array): volumeMounts represents the status of volume mounts.", "source": "definitions/io.k8s.api.core.v1.ContainerStatus", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "EventList is a Kubernetes object (core/v1). EventList is a list of events. Field apiVersion (string): APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources Field items (array): List of events Field kind (string): Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Field metadata (ListMeta): Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "source": "definitions/io.k8s.api.core.v1.EventList", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "LimitRange is a Kubernetes object (core/v1). LimitRange sets resource usage limits for each kind of resource in a Namespace. Field apiVersion (string): APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources Field kind (string): Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Field metadata (ObjectMeta): metadata is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata Field spec (LimitRangeSpec): spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", "source": "definitions/io.k8s.api.core.v1.LimitRange", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "LocalObjectReference is a Kubernetes object (core/v1). LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. Field name (string): name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", "source": "definitions/io.k8s.api.core.v1.LocalObjectReference", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "NamespaceSpec is a Kubernetes object (core/v1). NamespaceSpec describes the attributes on a Namespace. Field finalizers (array): finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/", "source": "definitions/io.k8s.api.core.v1.NamespaceSpec", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "NodeFeatures is a Kubernetes object (core/v1). NodeFeatures describes the set of features implemented by the CRI implementation. The features contained in the NodeFeatures should depend only on the cri implementation independent of runtime handlers. Field supplementalGroupsPolicy (boolean): supplementalGroupsPolicy is set to true if the runtime supports SupplementalGroupsPolicy and ContainerUser.", "source": "definitions/io.k8s.api.core.v1.NodeFeatures", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "PersistentVolumeClaimSpec is a Kubernetes object (core/v1). PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes Field accessModes (array): accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 Field dataSource (TypedLocalObjectReference): dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. If the namespace is specified, then dataSourceRef will not be copied to dataSource. Field dataSourceRef (TypedObjectReference): dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the dataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, when namespace isn't specified in dataSourceRef, both fields (dataSource and dataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. When namespace is specified in dataSourceRef, dataSource isn't set to the same value and must be empty. There are three important differences between dataSource and dataSourceRef: * While dataSource only allows two specific types of objects, dataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While dataSource ignores disallowed values (dropping them), dataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n* While dataSource only allows local objects, dataSourceRef allows objects\n in any namespaces.\n(Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled. Field resources (VolumeResourceRequirements): resources represents the minimum resources the volume should have. Users are allowed to specify resource requirements that are lower than previous value but must still be higher than capacity recorded in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources Field selector (LabelSelector): selector is a label query over volumes to consider for binding. Field storageClassName (string): storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 Field volumeAttributesClassName (string): volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string or nil value indicates that no VolumeAttributesClass will be applied to the claim. If the claim enters an Infeasible error state, this field can be reset to its previous value (including nil) to cancel the modification. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ Field volumeMode (string): volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. Field volumeName (string): volumeName is the binding reference to the PersistentVolume backing this claim.", "source": "definitions/io.k8s.api.core.v1.PersistentVolumeClaimSpec", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "PersistentVolumeSpec is a Kubernetes object (core/v1). PersistentVolumeSpec is the specification of a persistent volume. Field accessModes (array): accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes Field awsElasticBlockStore (AWSElasticBlockStoreVolumeSource): awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod.\n\nDeprecated: AWSElasticBlockStore is deprecated. All operations for the in-tree awsElasticBlockStore type are redirected to the ebs.csi.aws.com CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore Field azureDisk (AzureDiskVolumeSource): azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.\n\nDeprecated: AzureDisk is deprecated. All operations for the in-tree azureDisk type are redirected to the disk.csi.azure.com CSI driver. Field azureFile (AzureFilePersistentVolumeSource): azureFile represents an Azure File Service mount on the host and bind mount to the pod.\n\nDeprecated: AzureFile is deprecated. All operations for the in-tree azureFile type are redirected to the file.csi.azure.com CSI driver. Field capacity (object): capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity Field cephfs (CephFSPersistentVolumeSource): cephfs represents a Ceph FS mount on the host that shares a pod's lifetime.\n\nDeprecated: CephFS is deprecated and the in-tree cephfs type is no longer supported. Field cinder (CinderPersistentVolumeSource): cinder represents a cinder volume attached and mounted on kubelets host machine.\n\nDeprecated: Cinder is deprecated. All operations for the in-tree cinder type are redirected to the cinder.csi.openstack.org CSI driver. More info: https://examples.k8s.io/mysql-cinder-pd/README.md Field claimRef (ObjectReference): claimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding Field csi (CSIPersistentVolumeSource): csi represents storage that is handled by an external CSI driver. Field fc (FCVolumeSource): fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. Field flexVolume (FlexPersistentVolumeSource): flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.\n\nDeprecated: FlexVolume is deprecated. Consider using a CSIDriver instead. Field flocker (FlockerVolumeSource): flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running.\n\nDeprecated: Flocker is deprecated and the in-tree flocker type is no longer supported. Field gcePersistentDisk (GCEPersistentDiskVolumeSource): gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin.\n\nDeprecated: GCEPersistentDisk is deprecated. All operations for the in-tree gcePersistentDisk type are redirected to the pd.csi.storage.gke.io CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk Field glusterfs (GlusterfsPersistentVolumeSource): glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin.\n\nDeprecated: Glusterfs is deprecated and the in-tree glusterfs type is no longer supported. More info: https://examples.k8s.io/volumes/glusterfs/README.md Field hostPath (HostPathVolumeSource): hostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath Field iscsi (ISCSIPersistentVolumeSource): iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. Field local (LocalVolumeSource): local represents directly-attached storage with node affinity Field mountOptions (array): mountOptions is the list of mount options, e.g. [\"ro\", \"soft\"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options Field nfs (NFSVolumeSource): nfs represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs Field nodeAffinity (VolumeNodeAffinity): nodeAffinity defines constraints that limit what nodes this volume can be accessed frLine truncated
{"text": "PodReadinessGate is a Kubernetes object (core/v1). PodReadinessGate contains the reference to a pod condition Field conditionType (string): conditionType refers to a condition in the pod's condition list with matching type.", "source": "definitions/io.k8s.api.core.v1.PodReadinessGate", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "PodResourceClaimStatus is a Kubernetes object (core/v1). PodResourceClaimStatus is stored in the PodStatus for each PodResourceClaim which references a ResourceClaimTemplate. It stores the generated name for the corresponding ResourceClaim. Field name (string): name uniquely identifies this resource claim inside the pod. This must match the name of an entry in pod.spec.resourceClaims, which implies that the string must be a DNS_LABEL. Field resourceClaimName (string): resourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod.\n\nWhen the DRAWorkloadResourceClaims feature is enabled and the corresponding PodResourceClaim matches a PodGroupResourceClaim made by the Pod's PodGroup, then this is the name of the ResourceClaim generated and reserved for the PodGroup.\n\nIf this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case.", "source": "definitions/io.k8s.api.core.v1.PodResourceClaimStatus", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "PodSchedulingGroup is a Kubernetes object (core/v1). PodSchedulingGroup identifies the runtime scheduling group instance that a Pod belongs to. The scheduler uses this information to apply workload-aware scheduling semantics. Exactly one field must be specified. Field podGroupName (string): podGroupName specifies the name of the standalone PodGroup object that represents the runtime instance of this group. Must be a DNS subdomain.", "source": "definitions/io.k8s.api.core.v1.PodSchedulingGroup", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "PodTemplateList is a Kubernetes object (core/v1). PodTemplateList is a list of PodTemplates. Field apiVersion (string): APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources Field items (array): List of pod templates Field kind (string): Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Field metadata (ListMeta): Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "source": "definitions/io.k8s.api.core.v1.PodTemplateList", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "RBDVolumeSource is a Kubernetes object (core/v1). Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling. Field fsType (string): fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd Field image (string): image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it Field keyring (string): keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it Field monitors (array): monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it Field pool (string): pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it Field readOnly (boolean): readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it Field secretRef (LocalObjectReference): secretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it Field user (string): user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", "source": "definitions/io.k8s.api.core.v1.RBDVolumeSource", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "ServiceAccount is a Kubernetes object (core/v1). ServiceAccount binds together: * a name, understood by users, and perhaps by peripheral systems, for an identity * a principal that can be authenticated and authorized * a set of secrets Field apiVersion (string): APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources Field automountServiceAccountToken (boolean): automountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level. Field imagePullSecrets (array): imagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod Field kind (string): Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Field metadata (ObjectMeta): metadata is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata Field secrets (array): secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use. Pods are only limited to this list if this service account has a \"kubernetes.io/enforce-mountable-secrets\" annotation set to \"true\". The \"kubernetes.io/enforce-mountable-secrets\" annotation is deprecated since v1.32. Prefer separate namespaces to isolate access to mounted secrets. This field should not be used to find auto-generated service account token secrets for use outside of pods. Instead, tokens can be requested directly using the TokenRequest API, or service account token secrets can be manually created. More info: https://kubernetes.io/docs/concepts/configuration/secret", "source": "definitions/io.k8s.api.core.v1.ServiceAccount", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "Endpoint is a Kubernetes object (discovery/v1). Endpoint represents a single logical \"backend\" implementing a service. Field addresses (array): addresses of this endpoint. For EndpointSlices of addressType \"IPv4\" or \"IPv6\", the values are IP addresses in canonical form. The syntax and semantics of other addressType values are not defined. This must contain at least one address but no more than 100. EndpointSlices generated by the EndpointSlice controller will always have exactly 1 address. No semantics are defined for additional addresses beyond the first, and kube-proxy does not look at them. Field conditions (EndpointConditions): conditions contains information about the current status of the endpoint. Field deprecatedTopology (object): deprecatedTopology contains topology information part of the v1beta1 API. This field is deprecated, and will be removed when the v1beta1 API is removed (no sooner than kubernetes v1.24). While this field can hold values, it is not writable through the v1 API, and any attempts to write to it will be silently ignored. Topology information can be found in the zone and nodeName fields instead. Field hints (EndpointHints): hints contains information associated with how an endpoint should be consumed. Field hostname (string): hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS Label (RFC 1123) validation. Field nodeName (string): nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node. Field targetRef (ObjectReference): targetRef is a reference to a Kubernetes object that represents this endpoint. Field zone (string): zone is the name of the Zone this endpoint exists in.", "source": "definitions/io.k8s.api.discovery.v1.Endpoint", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "Eviction is a Kubernetes object (lifecycle/v1alpha1). Eviction initiates an eviction process, which should ideally result in a graceful eviction of a .spec.target (e.g. termination of a pod).\n\nThe evictionrequest-controller observes intents of all EvictionRequests and transforms them into Evictions. It manages the Eviction lifecycle. Requesters are preserved in .status.requesters even after they have withdrawn their request. If all requesters withdraw their eviction intent for a common target, the eviction will be canceled. Once all EvictionRequest corresponding to this Eviction .spec.target have been removed, this Eviction object will eventually be garbage collected.\n\nIf the target is a pod, the .status.targetResponders is populated from Pod's .spec.evictionResponders.\n\nResponders should observe and communicate through the .status to help with the eviction of the target when they see their state == Active in .status.targetResponders. ResponderStatus struct should then be periodically updated to indicate the progress or completion of the eviction process by each responder in .status.responders. If .status.responders[].heartbeatTime is not updated within the heartbeat deadline defined by the Eviction API (currently 20 minutes), the eviction is passed over to the next responder with a lower priority.\n\nIf there are no other responders and the target is a pod, the last default imperative-eviction.k8s.io/evictor responder with a priority of 100 will evict the pod using the imperative Eviction API (pods/<name>/eviction subresource). Field apiVersion (string): APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources Field kind (string): Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Field metadata (ObjectMeta): metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. .metadata.name set by the evictionrequest-controller is purely informative and subject to change. .spec.target field should be used to identify the target precisesly.\n\nThe requester and responder names will be used as label keys and added to the labels of the eviction in one of the following formats: 1. acme.io/foo: \"requester\" 2. acme.io/foo: \"responder\" 3. acme.io/foo: \"requester-responder\"\n\nPlease see EvictionParticipantRole for available role label values. Field spec (EvictionSpec): spec defines the eviction specification. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status Field status (EvictionStatus): status represents the most recently observed status of the eviction. Populated by responders and evictionrequest-controller. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", "source": "definitions/io.k8s.api.lifecycle.v1alpha1.Eviction", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "IngressBackend is a Kubernetes object (networking/v1). IngressBackend describes all endpoints for a given service and port. Field resource (TypedLocalObjectReference): resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, a service.Name and service.Port must not be specified. This is a mutually exclusive setting with \"Service\". Field service (IngressServiceBackend): service references a service as a backend. This is a mutually exclusive setting with \"Resource\".", "source": "definitions/io.k8s.api.networking.v1.IngressBackend", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "ClusterRoleBindingList is a Kubernetes object (rbac/v1). ClusterRoleBindingList is a collection of ClusterRoleBindings Field apiVersion (string): APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources Field items (array): Items is a list of ClusterRoleBindings Field kind (string): Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Field metadata (ListMeta): Standard object's metadata.", "source": "definitions/io.k8s.api.rbac.v1.ClusterRoleBindingList", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "CapacityRequestPolicyRange is a Kubernetes object (resource/v1). CapacityRequestPolicyRange defines a valid range for consumable capacity values.\n\nIf the DRAFractionalCapacityRange feature gate is enabled and at least one of Min, Max, or Step is a fractional quantity (i.e. its value is not an integer), milli-unit arithmetic is used instead, supporting values with up to 3 decimal places (e.g. 100m = 0.1). The largest supported value then is 1000 times smaller compared to using 64-bit integers. Otherwise, all comparisons use 64-bit integer arithmetic via resource.Quantity.Value().\n\n - If the requested amount is less than Min, it is rounded up to the Min value.\n - If Step is set and the requested amount is between Min and Max but not aligned with Step,\n it will be rounded up to the next value equal to Min + (n * Step).\n - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set).\n - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy,\n and the device cannot be allocated. Field max (Quantity): max defines the upper limit for capacity that can be requested.\n\nMax must be less than or equal to the capacity value. Min and requestPolicy.default must be less than or equal to the maximum. Field min (Quantity): min specifies the minimum capacity allowed for a consumption request.\n\nMin must be greater than or equal to zero, and less than or equal to the capacity value. requestPolicy.default must be more than or equal to the minimum. Field step (Quantity): step defines the step size between valid capacity amounts within the range.\n\nMax (if set) and requestPolicy.default must be a multiple of Step. Min + Step must be less than or equal to the capacity value.", "source": "definitions/io.k8s.api.resource.v1.CapacityRequestPolicyRange", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "CapacityRequirements is a Kubernetes object (resource/v1). CapacityRequirements defines the capacity requirements for a specific device request. Field requests (object): requests represent individual device capacity requests for distinct resources. Each requested name must be defined as a device capacity and/or a shared capacity (referenced by a device through consumesCounters).\n\nFor a per-device capacity, this value is used as an additional filtering condition against the available capacity on the device. This is semantically equivalent to a CEL selector with `device.capacity[<domain>].<name>.compareTo(quantity(<request quantity>)) >= 0`. For example, device.capacity['test-driver.cdi.k8s.io'].counters.compareTo(quantity('2')) >= 0.\n\nWith DRASharedConsumableCapacity enabled, a requested capacity may be provided as a shared capacity instead of a per-device capacity. If it is defined as both, the request must be satisfied by both independently.\n\nThe domain prefix can be omitted, in which case it defaults to the driver of the device under evaluation. For example, \"bandwidth: 1Gi\" is equivalent to \"<driver>/bandwidth: 1Gi\" for a device published by driver \"<driver>\", regardless of which other, differently-domained \"bandwidth\" capacities that device might also have. To request one of those, the domain must be given explicitly, for example \"example.com/bandwidth\". Requesting the same driver capacity with and without the driver name as domain, for example \"bandwidth: 1Gi\" and \"<driver>/bandwidth: 2Gi\", is ambiguous and causes scheduling to fail with an error. For the sake of consistency there's no exception for such a conflict where the value is the same - that is still an error.\n\nWhen a requestPolicy is defined, the requested amount is adjusted upward to the nearest valid value based on the policy. If the requested amount cannot be adjusted to a valid value—because it exceeds what the requestPolicy allows— the device is considered ineligible for allocation.\n\nFor any capacity that is not explicitly requested: - If no requestPolicy is set, the default consumed capacity is equal to the full device capacity\n (i.e., the whole device is claimed).\n- If a requestPolicy is set, the default consumed capacity is determined according to that policy.\n\nIf the device allows multiple allocation, the aggregated amount across all requests must not exceed the capacity value. The consumed capacity, which may be adjusted based on the requestPolicy if defined, is recorded in the resource claim's status.devices[*].consumedCapacity field.\n\nRequests may have at most 32 entries. The values must not be negative.", "source": "definitions/io.k8s.api.resource.v1.CapacityRequirements", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "DeviceCounterConsumption is a Kubernetes object (resource/v1). DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet. Field compatibilityGroups (array): compatibilityGroups is a list of opaque group names for this counter set consumption.\n\nDevices that consume counters from the same counter set may only be allocated at the same time (\"co-allocated\") if they all share at least one common group: the intersection of the CompatibilityGroups of all co-allocated devices on that counter set must be non-empty. Devices that consume from different counter sets are never compared via this field.\n\nAn unset field, an explicit nil, and an empty list are equivalent and mean \"no groups\": such a device is only co-allocatable with sibling devices on the same counter set that also have no groups, and is never co-allocatable with a device that declares one or more groups.\n\nGroup names are opaque and meaningful only within the publishing driver's pool.\n\nThe maximum number of groups is 2, and the names must be unique. Field counterSet (string): counterSet is the name of the set from which the counters defined will be consumed. Field counters (object): counters defines the counters that will be consumed by the device.\n\nThe maximum number of counters is 32.", "source": "definitions/io.k8s.api.resource.v1.DeviceCounterConsumption", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "NodeAllocatableMapping is a Kubernetes object (resource/v1). NodeAllocatableMapping defines how a DRA allocation directly translates into a node allocatable resource quantity. The mapping can be derived from either the count of allocated devices (via deviceMultiplier) or the specific capacity consumed (via capacityKey and capacityMultiplier). These options are mutually exclusive. The scheduler records the mapped quantity in the pod's `status.extraNodeAllocatableResources`: once in the requests and limits of the pod level entry, and in the limits of the container entry of each container referencing the claim, so that each of these containers can use all of it while the pod level entry caps their total usage. Field capacityKey (string): capacityKey references a capacity name defined as a key in the `spec.devices[*].capacity` map. When this field is set, the value associated with this key in the `status.allocation.devices.results[*].consumedCapacity` map (for a specific claim allocation) determines the base quantity for the node allocatable resource. `capacityMultiplier` must also be set and is multiplied with the base quantity.\n\nFor example, if `spec.devices[*].capacity` has an entry \"dra.example.com/memory\": \"128Gi\", and this field is set to \"dra.example.com/memory\", then for a claim allocation that consumes { \"dra.example.com/memory\": \"4Gi\" } the base quantity for the node allocatable resource mapping will be \"4Gi\". The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`.\n\nIn this example, \"dra.example.com/memory\" is a fictional standardized capacity name. For driver-specific capacities the driver name can be omitted. As defined for consumedCapacity, the capacity consumption may be recorded there with or without the driver name. Field capacityMultiplier (Quantity): capacityMultiplier is used as a multiplier for the allocated capacity consumed. It is only valid if `capacityKey` is set. The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `capacityMultiplier`. For example, if a Device's capacity \"dra.example.com/cores\" is consumed, and each \"core\" provides 2 \"cpu\"s, the mapping would be: {ResourceName: \"cpu\", capacityKey: \"dra.example.com/cores\", capacityMultiplier: \"2\"}. If a claim consumes 8 \"dra.example.com/cores\", the CPU footprint is 8 * 2 = 16. Field deviceMultiplier (Quantity): deviceMultiplier is used as a multiplier for the allocated device count in the claim. The final node allocatable resource amount is `deviceCount` * `deviceMultiplier`. For example, a DRA driver representing each cache complex (CCX) as a device would have {ResourceName: \"cpu\", deviceMultiplier: \"8\"} in its `nodeAllocatableResources`. If 2 devices (CCX) are allocated to the claim, 2 * 8 = 16 CPUs would be considered as allocated. It is only valid when `capacityKey` and `capacityMultiplier` are not set.", "source": "definitions/io.k8s.api.resource.v1.NodeAllocatableMapping", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "NodeAllocatableOverhead is a Kubernetes object (resource/v1). NodeAllocatableOverhead defines auxiliary resource overheads incurred when allocating a device. Overheads can be specified as a fixed cost per pod referencing the claim, a variable cost per container reference, or both. The scheduler records the overhead in the pod's `status.extraNodeAllocatableResources`, as described for perContainer. Field perContainer (Quantity): perContainer is applied per container reference to the claim. This models overhead scaling linearly with the number of containers actively using the device. When both PerPod and PerContainer are specified, the total overhead allocated for each pod referencing the claim is computed as: Quantity = PerPod + (PerContainer * NumReferences) The scheduler records this overhead in the pod's `status.extraNodeAllocatableResources`: - The pod level entry (requests and limits) gets PerPod + (PerContainer * NumReferences).\n PerContainer of a non-restartable init container counts towards the pod's peak resource\n calculation (see Pod `spec.initContainers`), not for the pod's entire duration.\n- The container entry of each referencing container gets PerContainer in its requests,\n and PerPod + PerContainer in its limits.\nThis allows any single container to use the pod level overhead, while the pod level entry caps the total usage to account for PerPod exactly once. Field perPod (Quantity): perPod is overhead applied once per pod referencing the claim on this node. This is a flat overhead incurred for every pod referencing the claim.", "source": "definitions/io.k8s.api.resource.v1.NodeAllocatableOverhead", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "ResourceClaimList is a Kubernetes object (resource/v1). ResourceClaimList is a collection of claims. Field apiVersion (string): APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources Field items (array): Items is the list of resource claims. Field kind (string): Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Field metadata (ListMeta): Standard list metadata", "source": "definitions/io.k8s.api.resource.v1.ResourceClaimList", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "ResourceClaimTemplate is a Kubernetes object (resource/v1). ResourceClaimTemplate is used to produce ResourceClaim objects. Field apiVersion (string): APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources Field kind (string): Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Field metadata (ObjectMeta): metadata is the standard object's metadata. Field spec (ResourceClaimTemplateSpec): spec describes the ResourceClaim that is to be generated.\n\nThis field is immutable. A ResourceClaim will get created by the control plane for a Pod when needed and then not get updated anymore.", "source": "definitions/io.k8s.api.resource.v1.ResourceClaimTemplate", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "ResourceSlice is a Kubernetes object (resource/v1). ResourceSlice represents one or more resources in a pool of similar resources, managed by a common driver. A pool may span more than one ResourceSlice, and exactly how many ResourceSlices comprise a pool is determined by the driver.\n\nAt the moment, the only supported resources are devices with attributes and capacities. Each device in a given pool, regardless of how many ResourceSlices, must have a unique name. The ResourceSlice in which a device gets published may change over time. The unique identifier for a device is the tuple <driver name>, <pool name>, <device name>.\n\nWhenever a driver needs to update a pool, it increments the pool.Spec.Pool.Generation number and updates all ResourceSlices with that new number and new resource definitions. A consumer must only use ResourceSlices with the highest generation number and ignore all others.\n\nWhen allocating all resources in a pool matching certain criteria or when looking for the best solution among several different alternatives, a consumer should check the number of ResourceSlices in a pool (included in each ResourceSlice) to determine whether its view of a pool is complete and if not, should wait until the driver has completed updating the pool.\n\nFor resources that are not local to a node, the node name is not set. Instead, the driver may use a node selector to specify where the devices are available. Field apiVersion (string): APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources Field kind (string): Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Field metadata (ObjectMeta): metadata is the standard object's metadata. Field spec (ResourceSliceSpec): spec contains the information published by the driver.\n\nChanging the spec automatically increments the metadata.generation number.", "source": "definitions/io.k8s.api.resource.v1.ResourceSlice", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "AllocationResult is a Kubernetes object (resource/v1beta2). AllocationResult contains attributes of an allocated resource. Field allocationTimestamp (Time): allocationTimestamp stores the time when the resources were allocated. This field is not guaranteed to be set, in which case that time is unknown. Field devices (DeviceAllocationResult): devices is the result of allocating devices. Field nodeSelector (NodeSelector): nodeSelector defines where the allocated resources are available. If unset, they are available everywhere.", "source": "definitions/io.k8s.api.resource.v1beta2.AllocationResult", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "DeviceAllocationConfiguration is a Kubernetes object (resource/v1beta2). DeviceAllocationConfiguration gets embedded in an AllocationResult. Field opaque (OpaqueDeviceConfiguration): opaque provides driver-specific configuration parameters. Field requests (array): requests lists the names of requests where the configuration applies. If empty, its applies to all requests.\n\nReferences to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the configuration applies to all subrequests. Field source (string): source records whether the configuration comes from a class and thus is not something that a normal user would have been able to set or from a claim.", "source": "definitions/io.k8s.api.resource.v1beta2.DeviceAllocationConfiguration", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "DeviceCapacity is a Kubernetes object (resource/v1beta2). DeviceCapacity describes a quantity associated with a device. Field requestPolicy (CapacityRequestPolicy): requestPolicy defines how this DeviceCapacity must be consumed when the device is allowed to be shared by multiple allocations.\n\nThe Device must have allowMultipleAllocations set to true in order to set a requestPolicy.\n\nIf unset, capacity requests are unconstrained: requests can consume any amount of capacity, as long as the total consumed across all allocations does not exceed the device's defined capacity. If request is also unset, default is the full capacity value. Field value (Quantity): value defines how much of a certain capacity that device has.\n\nThis field reflects the fixed total capacity and does not change. The consumed amount is tracked separately by scheduler and does not affect this value.", "source": "definitions/io.k8s.api.resource.v1beta2.DeviceCapacity", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "DeviceDerivedAttribute is a Kubernetes object (resource/v1beta2). DeviceDerivedAttribute defines a derived attribute computed via CEL. Field expression (string): expression is a CEL expression evaluated against each candidate device. The expression must evaluate to a primitive scalar (string, integer, boolean, or semver) or a list of these scalars ([]string, []int64, []bool, []semver) to act as a virtual grouping key. Any other return type is an error and causes CEL evaluation for the device to fail.\n\nThe expression's input is an object named \"device\", which carries the same properties as in a CELDeviceSelector.\n\nWhen pod scheduling encounters CEL runtime errors (such as looking up an attribute that isn't defined) for some devices, it will abort allocation and fail scheduling for the Pod. Surfacing evaluation errors immediately prevents silent topology matching failures that are extremely hard to detect. A robust expression should, for example, check for the existence of attributes before referencing them to avoid runtime evaluation errors.\n\nThe expression gets evaluated after a device has passed the other selector expressions for the request in which this expression is used. This allows writing expressions that are tailored towards the specific devices being requested (for example, by assuming the device is from a certain vendor and skipping those checks).\n\nThe length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps; the combined cost of all derived attributes in a claim is capped by a shared CEL cost budget. Field name (string): name is the identifier for this derived attribute, used in constraints.\n\nIt must be a DNS subdomain followed by a slash (\"/\") followed by a C identifier (e.g. \"example.com/numaNode\" or \"derived/numaNode\").\n\nIf the chosen name matches an existing physical attribute from a driver, the derived attribute's expression will shadow the physical attribute, and its evaluated value will be used in constraints instead. When the goal is to define a derived attribute that is only used within the ResourceClaim and not meant to shadow an existing attribute, use a domain prefix that no DRA driver should be using (e.g. \"derived/myAttribute\").\n\nIt is not valid to define a derived attribute that isn't used in at least one constraint.", "source": "definitions/io.k8s.api.resource.v1beta2.DeviceDerivedAttribute", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "DeviceRequest is a Kubernetes object (resource/v1beta2). DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices. With FirstAvailable it is also possible to provide a prioritized list of requests. Field exactly (ExactDeviceRequest): exactly specifies the details for a single request that must be met exactly for the request to be satisfied.\n\nOne of Exactly or FirstAvailable must be set. Field firstAvailable (array): firstAvailable contains subrequests, of which exactly one will be selected by the scheduler. It tries to satisfy them in the order in which they are listed here. So if there are two entries in the list, the scheduler will only check the second one if it determines that the first one can not be used.\n\nDRA does not yet implement scoring, so the scheduler will select the first set of devices that satisfies all the requests in the claim. And if the requirements can be satisfied on more than one node, other scheduling features will determine which node is chosen. This means that the set of devices allocated to a claim might not be the optimal set available to the cluster. Scoring will be implemented later. Field name (string): name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim.\n\nReferences using the name in the DeviceRequest will uniquely identify a request when the Exactly field is set. When the FirstAvailable field is set, a reference to the name of the DeviceRequest will match whatever subrequest is chosen by the scheduler.\n\nMust be a DNS label.", "source": "definitions/io.k8s.api.resource.v1beta2.DeviceRequest", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "DeviceTaint is a Kubernetes object (resource/v1beta2). The device this taint is attached to has the \"effect\" on any claim which does not tolerate the taint and, through the claim, to pods using the claim. Field effect (string): effect is the effect of the taint on claims that do not tolerate the taint and through such claims on the pods using them.\n\nValid effects are None, NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here. More effects may get added in the future. Consumers must treat unknown effects like None. Field key (string): key is the taint key to be applied to a device. Must be a label name. Field timeAdded (Time): timeAdded represents the time at which the taint was added or (only in a DeviceTaintRule) the effect was modified. Added automatically during create or update if not set.\n\nIn addition, in a DeviceTaintRule a value provided during an update gets replaced with the current time if the provided value is the same as the old one and the new effect is different. Changing the key and/or value while keeping the effect unchanged is possible and does not update the time stamp because the eviction which uses it is either already started (NoExecute) or not started yet (NoEffect, NoSchedule). Field value (string): value is the taint value corresponding to the taint key. Must be a label value.", "source": "definitions/io.k8s.api.resource.v1beta2.DeviceTaint", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "ResourceSliceList is a Kubernetes object (resource/v1beta2). ResourceSliceList is a collection of ResourceSlices. Field apiVersion (string): APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources Field items (array): Items is the list of resource ResourceSlices. Field kind (string): Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Field metadata (ListMeta): Standard list metadata", "source": "definitions/io.k8s.api.resource.v1beta2.ResourceSliceList", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "GangSchedulingPolicy is a Kubernetes object (scheduling/v1alpha3). GangSchedulingPolicy defines the parameters for gang scheduling. Field minCount (integer): minCount is the minimum number of pods that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer. This field is mutable to support workload scaling.\n\nNote that the scheduler operates on an eventually consistent model. Updates to minCount may not be immediately reflected in scheduling decisions due to propagation delays. If minCount is updated while a scheduling cycle is in progress for that group, the new value may not take effect until the next cycle. Moreover, minCount is only enforced during scheduling, meaning that modifications to this field do not affect already-scheduled pods, applying only to those evaluated in future cycles.", "source": "definitions/io.k8s.api.scheduling.v1alpha3.GangSchedulingPolicy", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "PodGroupSchedulingConstraints is a Kubernetes object (scheduling/v1alpha3). PodGroupSchedulingConstraints defines scheduling constraints (e.g. topology) for a PodGroup. Field topology (array): topology defines the topology constraints for the pod group. Currently only a single topology constraint can be specified. This may change in the future.", "source": "definitions/io.k8s.api.scheduling.v1alpha3.PodGroupSchedulingConstraints", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "TopologyConstraint is a Kubernetes object (scheduling/v1beta1). TopologyConstraint defines a topology constraint for a PodGroup. Field key (string): key specifies the key of the node label representing the topology domain. All pods within the PodGroup must be colocated within the same domain instance. Different PodGroups can land on different domain instances even if they derive from the same PodGroupTemplate. Nodes where this label is missing or has an empty value do not belong to any domain instance, so pods within the PodGroup cannot be scheduled onto them. Examples: \"topology.kubernetes.io/rack\"", "source": "definitions/io.k8s.api.scheduling.v1beta1.TopologyConstraint", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "CSIDriverList is a Kubernetes object (storage/v1). CSIDriverList is a collection of CSIDriver objects. Field apiVersion (string): APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources Field items (array): items is the list of CSIDriver Field kind (string): Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Field metadata (ListMeta): Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", "source": "definitions/io.k8s.api.storage.v1.CSIDriverList", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "CustomResourceSubresourceStatus is a Kubernetes object (apiextensions/v1). CustomResourceSubresourceStatus defines how to serve the status subresource for CustomResources. Status is represented by the `.status` JSON path inside of a CustomResource. When set, * exposes a /status subresource for the custom resource * PUT requests to the /status subresource take a custom resource object, and ignore changes to anything except the status stanza * PUT/POST/PATCH requests to the custom resource ignore changes to the status stanza", "source": "definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresourceStatus", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "SelectableField is a Kubernetes object (apiextensions/v1). SelectableField specifies the JSON path of a field that may be used with field selectors. Field jsonPath (string): jsonPath is a simple JSON path which is evaluated against each custom resource to produce a field selector value. Only JSON paths without the array notation are allowed. Must point to a field of type string, boolean or integer. Types with enum values and strings with formats are allowed. If jsonPath refers to absent field in a resource, the jsonPath evaluates to an empty string. Must not point to metdata fields. Required.", "source": "definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.SelectableField", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "WebhookConversion is a Kubernetes object (apiextensions/v1). WebhookConversion describes how to call a conversion webhook Field clientConfig (WebhookClientConfig): clientConfig is the instructions for how to call the webhook if strategy is `Webhook`. Field conversionReviewVersions (array): conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail.", "source": "definitions/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.WebhookConversion", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "Patch is a Kubernetes object (meta/v1). Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", "source": "definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "WatchEvent is a Kubernetes object (meta/v1). Event represents a single event to a watched resource. Field object (RawExtension): Object is:\n * If Type is Added or Modified: the new state of the object.\n * If Type is Deleted: the state of the object immediately before deletion.\n * If Type is Error: *Status is recommended; other types may make sense\n depending on context. Field type (string).", "source": "definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "APIService is a Kubernetes object (apiregistration/v1). APIService represents a server for a particular GroupVersion. Name must be \"version.group\". Field apiVersion (string): APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources Field kind (string): Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Field metadata (ObjectMeta): Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata Field spec (APIServiceSpec): Spec contains information for locating and communicating with a server Field status (APIServiceStatus): Status contains derived information about an API server", "source": "definitions/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService", "commit": "80d51ceb32d28aa2d3df01ed80a649533add021b", "sha256": "a5ffd0509edb2be823776fd0432bd480de8d0783038331a8087435c8ac1de66f", "license": "Apache-2.0", "from": "kubernetes-openapi.jsonl"}
{"text": "Prometheus has an official [Go client library](https://github.com/prometheus/client_golang) that you can use to instrument Go applications. In this guide, we'll create a simple Go application that exposes Prometheus metrics via HTTP.\n\nNOTE: For comprehensive API documentation, see the [GoDoc](https://godoc.org/github.com/prometheus/client_golang) for Prometheus' various Go libraries.\n\n## Installation\n\nYou can install the `prometheus`, `promauto`, and `promhttp` libraries necessary for the guide using [`go get`](https://golang.org/doc/articles/go_command.html):\n\n```bash\ngo get github.com/prometheus/client_golang/prometheus\ngo get github.com/prometheus/client_golang/prometheus/promauto\ngo get github.com/prometheus/client_golang/prometheus/promhttp\n```\n\n## How Go exposition works\n\nTo expose Prometheus metrics in a Go application, you need to provide a `/metrics` HTTP endpoint. You can use the [`prometheus/promhttp`](https://godoc.org/github.com/prometheus/client_golang/prometheus/promhttp) library's HTTP [`Handler`](https://godoc.org/github.com/prometheus/client_golang/prometheus/promhttp#Handler) as the handler function.\n\nThis minimal application, for example, would expose the default metrics for Go applications via `http://localhost:2112/metrics`:\n\n```go\npackage main\n\nimport (\n \"net/http\"\n\n \"github.com/prometheus/client_golang/prometheus\"\n \"github.com/prometheus/client_golang/prometheus/collectors\"\n \"github.com/prometheus/client_golang/prometheus/promhttp\"\n)\n\nfunc main() {\n reg := prometheus.NewRegistry()\n reg.MustRegister(\n collectors.NewGoCollector(),\n collectors.NewProcessCollector(collectors.ProcessCollectorOpts{}),\n )\n http.Handle(\"/metrics\", promhttp.HandlerFor(reg, promhttp.HandlerOpts{}))\n http.ListenAndServe(\":2112\", nil)\n}\n```\n\nTo start the application:\n\n```bash\ngo run main.go\n```\n\nTo access the metrics:\n\n```bash\ncurl http://localhost:2112/metrics\n```\n\n## Adding your own metrics\n\nThe application [above](#how-go-exposition-works) exposes only the default Go metrics. You can also register your own custom application-specific metrics. This example application exposes a `myapp_processed_ops_total` [counter](/docs/concepts/metric_types/#counter) that counts the number of operations that have been processed thus far. Every 2 seconds, the counter is incremented by one.\n\n```go\npackage main\n\nimport (\n \"net/http\"\n \"time\"\n\n \"github.com/prometheus/client_golang/prometheus\"\n \"github.com/prometheus/client_golang/prometheus/promauto\"\n \"github.com/prometheus/client_golang/prometheus/promhttp\"\n)\n\ntype metrics struct {\n opsProcessed prometheus.Counter\n}\n\nfunc newMetrics(reg prometheus.Registerer) *metrics {\n m := &metrics{\n opsProcessed: promauto.With(reg).NewCounter(prometheus.CounterOpts{\n Name: \"myapp_processed_ops_total\",\n Help: \"The total number of processed events\",\n }),\n }\n return m\n}\n\nfunc recordMetrics(m *metrics) {\n go func() {\n for {\n m.opsProcessed.Inc()\n time.Sleep(2 * time.Second)\n }\n }()\n}\n\nfunc main() {\n reg := prometheus.NewRegistry()\n m := newMetrics(reg)\n recordMetrics(m)\n\n http.Handle(\"/metrics\", promhttp.HandlerFor(reg, promhttp.HandlerOpts{}))\n http.ListenAndServe(\":2112\", nil)\n}\n```\n\nTo run the application:\n\n```bash\ngo run main.go\n```\n\nTo access the metrics:\n\n```bash\ncurl http://localhost:2112/metrics\n```\n\nIn the metrics output, you'll see the help text, type information, and current value of the `myapp_processed_ops_total` counter:\n\n```\n# HELP myapp_processed_ops_total The total number of processed events\n# TYPE myapp_processed_ops_total counter\nmyapp_processed_ops_total 5\n```\n\nYou can [configure](/docs/prometheus/latest/configuration/configuration/#scrape_config) a locally running Prometheus instance to scrape metrics from the application. Here's an example `prometheus.yml` configuration:\n\n```yaml\nscrape_configs:\n- job_name: myapp\n scrape_interval: 10s\n static_configs:\n - targets:\n - localhost:2112\n```\n\n## Other Go client features\n\nIn this guide we covered just a small handful of features available in the Prometheus Go client libraries. You can also expose other metrics types, such as [gauges](https://godoc.org/github.com/prometheus/client_golang/prometheus#Gauge) and [histograms](https://godoc.org/github.com/prometheus/client_golang/prometheus#Histogram), [non-global registries](https://godoc.org/github.com/prometheus/client_golang/prometheus#Registry), functions for [pushing metrics](https://godoc.org/github.com/prometheus/client_golang/prometheus/push) to Prometheus [PushGateways](/docs/instrumenting/pushing/), bridging Prometheus and [Graphite](https://godoc.org/github.com/prometheus/client_golang/prometheus/graphite), and more.\n\n## Summary\n\nIn this guide, you created two sample Go applications that expose metrics to Prometheus---one that exposes only the default Go metrics and one that also exposes a custom PLine truncated
{"text": "- Version: 1.0\n- Status: Published\n- Date: April 2023\n\nThis document is intended to define and standardise the API, wire format, protocol and semantics of the existing, widely and organically adopted protocol, and not to propose anything new.\n\nThe remote write specification is intended to document the standard for how Prometheus and Prometheus remote-write-compatible agents send data to a Prometheus or Prometheus remote-write compatible receiver.\n\nThe key words \"MUST\", \"MUST NOT\", \"REQUIRED\", \"SHALL\", \"SHALL NOT\", \"SHOULD\", \"SHOULD NOT\", \"RECOMMENDED\", \"MAY\", and \"OPTIONAL\" in this document are to be interpreted as described in [RFC 2119](https://datatracker.ietf.org/doc/html/rfc2119).\n\n> NOTE: This specification has a 2.0 version available, see [here](./remote_write_spec_2_0.md).\n\n## Introduction\n### Background\n\nThe remote write protocol is designed to make it possible to reliably propagate samples in real-time from a sender to a receiver, without loss.\n\nThe Remote-Write protocol is designed to be stateless; there is strictly no inter-message communication. As such the protocol is not considered \"streaming\". To achieve a streaming effect multiple messages should be sent over the same connection using e.g. HTTP/1.1 or HTTP/2. \"Fancy\" technologies such as gRPC were considered, but at the time were not widely adopted, and it was challenging to expose gRPC services to the internet behind load balancers such as an AWS EC2 ELB.\n\nThe remote write protocol contains opportunities for batching, e.g. sending multiple samples for different series in a single request. It is not expected that multiple samples for the same series will be commonly sent in the same request, although there is support for this in the protocol.\n\nThe remote write protocol is not intended for use by applications to push metrics to Prometheus remote-write-compatible receivers. It is intended that a Prometheus remote-write-compatible sender scrapes instrumented applications or exporters and sends remote write messages to a server.\n\nA test suite can be found at https://github.com/prometheus/compliance/tree/main/remotewrite/sender.\n\n### Glossary\n\nFor the purposes of this document the following definitions MUST be followed:\n\n- a \"Sender\" is something that sends Prometheus Remote Write data.\n- a \"Receiver\" is something that receives Prometheus Remote Write data.\n- a \"Sample\" is a pair of (timestamp, value).\n- a \"Label\" is a pair of (key, value).\n- a \"Series\" is a list of samples, identified by a unique set of labels.\n\n## Definitions\n### Protocol\n\nThe Remote Write Protocol MUST consist of RPCs with the following signature:\n\n```\nfunc Send(WriteRequest)\n\nmessage WriteRequest {\n repeated TimeSeries timeseries = 1;\n // Cortex uses this field to determine the source of the write request.\n // We reserve it to avoid any compatibility issues.\n reserved 2;\n\n // Prometheus uses this field to send metadata, but this is\n // omitted from v1 of the spec as it is experimental.\n reserved 3;\n}\n\nmessage TimeSeries {\n repeated Label labels = 1;\n repeated Sample samples = 2;\n}\n\nmessage Label {\n string name = 1;\n string value = 2;\n}\n\nmessage Sample {\n double value = 1;\n int64 timestamp = 2;\n}\n```\n\nRemote write Senders MUST encode the Write Request in the body of a HTTP POST request and send it to the Receivers via HTTP at a provided URL path. The Receiver MAY specify any HTTP URL path to receive metrics.\n\nTimestamps MUST be int64 counted as milliseconds since the Unix epoch. Values MUST be float64.\n\nThe following headers MUST be sent with the HTTP request:\n\n- `Content-Encoding: snappy`\n- `Content-Type: application/x-protobuf`\n- `User-Agent: `\n- `X-Prometheus-Remote-Write-Version: 0.1.0`\n\nClients MAY allow users to send custom HTTP headers; they MUST NOT allow users to configure them in such a way as to send reserved headers. For more info see https://github.com/prometheus/prometheus/pull/8416.\n\nThe remote write request in the body of the HTTP POST MUST be compressed with [Google’s Snappy](https://github.com/google/snappy). The block format MUST be used - the framed format MUST NOT be used.\n\nThe remote write request MUST be encoded using Google Protobuf 3, and MUST use the schema defined above. Note [the Prometheus implementation](https://github.com/prometheus/prometheus/blob/v2.24.0/prompb/remote.proto) uses [gogoproto optimisations](https://github.com/gogo/protobuf) - for receivers written in languages other than Golang the gogoproto types MAY be substituted for line-level equivalents.\n\nThe response body from the remote write receiver SHOULD be empty; clients MUST ignore the response body. The response body is RESERVED for future use.\n\n### Backward and forward compatibility\n\nThe protocol follows [semantic versioning 2.0](https://semver.org/): any 1.x compatible receivers MUST be able to read any 1.x compatible sender and so on. BreakinLine truncated
{"text": "The expression browser is available at `/graph` on the Prometheus server, allowing you\nto enter any expression and see its result either in a table or graphed over time.\n\nThis is primarily useful for ad-hoc queries and debugging. For graphs, use\n[Grafana](/docs/visualization/grafana/) or [Console templates](/docs/visualization/consoles/).", "project": "prometheus-docs", "source": "docs/visualization/browser.md", "commit": "31957d4da93dd215cad8c91be3e5205181dd11f1", "license": "Apache-2.0", "from": "deployment-docs.jsonl"}
{"text": "[Perses](https://perses.dev) is an open-source dashboard and visualization platform designed for observability, with\nnative support for Prometheus as a data source.\nIt enables users to create, manage, and share dashboards for monitoring metrics and visualizing data.\nPerses aims to provide a simple, flexible, and extensible alternative to other dashboarding tools, focusing on ease of\nuse, community-driven development, GitOps capabilities and dashboard as code approach.\n\nHere is an example of a Perses dashboard querying Prometheus for data:\n\n[![Perses screenshot](/assets/docs/perses_prometheus.png)](/assets/docs/perses_prometheus.png)\n\n## Installing\n\nTo install Perses, see the official [Perses documentation](https://perses.dev/perses/docs/installation/in-a-container/).\n\n## Using\n\nBy default, Perses will be listening on port `8080`. You can access the web UI at `http://localhost:8080`. There is no\nlogin by default.\n\n### Creating a Prometheus data source\n\nTo learn about how to set up a data source in Perses, please refer\nto [Perses documentation](https://perses.dev/perses/docs/concepts/datasource/).\nOnce this connection to your Prometheus instance is configured, you are able to query it from the Dashboard and Explore\nviews.\n\n### Importing pre-built dashboards\n\nPerses is providing a set of pre-built dashboards that you can import into your instance. These dashboards are\nmaintained by the community and can be found in\nthe [Perses dashboard repository](https://github.com/perses/community-dashboards)", "project": "prometheus-docs", "source": "docs/visualization/perses.md", "commit": "31957d4da93dd215cad8c91be3e5205181dd11f1", "license": "Apache-2.0", "from": "deployment-docs.jsonl"}
{"text": "Active Directory / LDAP Access Management\n\n :local:\n :depth: 2\n\nMinIO supports configuring a single Active Directory or LDAP (AD/LDAP) service for external management of user identities.\nEnabling AD/LDAP external identity management disables the MinIO internal IDP <minio-internal-idp>.\n\nFor identities managed by the external AD/LDAP provider, MinIO uses the user's Distinguished Name and attempts to map it against an existing policy <minio-policy>.\n\nIf the AD/LDAP configuration includes the necessary settings to query the user's AD/LDAP group membership, MinIO *also* uses those group Distinguished Names and attempts to map each against an existing policy <minio-policy>.\n\nMinIO by default denies access to all actions or resources not explicitly allowed by a user's assigned or inherited policies <minio-policy>.\nUsers managed by an AD/LDAP provider must specify the necessary policies as part of the user profile data.\nIf no policies match either the user DN or group DNs, MinIO blocks all access to actions and resources on the deployment.\n\nThe specific AD/LDAP queries MinIO issues to authenticate the user and retrieve it's group membership are configured as part of deploying the cluster with Active Directory / LDAP identity management <minio-external-iam-ad-ldap>.\nThis page covers creation of MinIO policies to match the possible returned Distinguished Names.\n\nAuthentication and Authorization Flow\n\nThe login flow for an application using Active Directory / LDAP\ncredentials is as follows:\n\n1. Specify the AD/LDAP credentials to the MinIO Security Token Service (STS)\n minio-sts-assumerolewithldapidentity API endpoint.\n\n2. MinIO verifies the provided credentials against the AD/LDAP server.\n\n3. MinIO checks for any policy <minio-policy> whose name matches the\n user Distinguished Name (DN) and assigns that policy to the authenticated\n user.\n\n If configured to perform group queries, MinIO also queries for a list of\n AD/LDAP groups in which the user has membership. MinIO checks for any policy\n whose name matches a returned group DN and assigns that\n policy to the authenticated user.\n\n4. MinIO returns temporary credentials in the STS API response in the form of an\n access key, secret key, and session token. The credentials have permissions\n matching those policies whose name matches either the authenticated user DN\n *or* a group DN.\n\nMinIO provides an example Go application\nldap.go <minio/blob/master/docs/sts/ldap.go> that handles the\nfull login flow.\n\nAD/LDAP users can alternatively create access keys <minio-idp-service-account> associated to their AD/LDAP user Distinguished Name.\nAccess Keys are long-lived credentials which inherit their privileges from the parent user.\nThe parent user can further restrict those privileges while creating the access keys.\nUse either of the following methods to create a new access key:\n\nUse the mc admin user svcacct add command to create the access keys.\nSpecify the user Distinguished Name as the username to which to associate the access keys.\n\nMapping Policies to User DN\n\nThe following commands use mc idp ldap policy attach to associate an existing MinIO policy <minio-policy> to an AD/LDAP User DN.\n\n mc idp ldap policy attach myminio consoleAdmin \\\n --user='cn=sisko,cn=users,dc=example,dc=com'\n\n mc idp ldap policy attach myminio readwrite,diagnostics \\\n --user='cn=dax,cn=users,dc=example,dc=com'\n\n- MinIO would assign an authenticated user with DN matching\n ``cn=sisko,cn=users,dc=example,dc=com`` the consoleAdmin\n policy, granting complete access to the MinIO server.\n\n- MinIO would assign an authenticated user with DN matching\n ``cn=dax,cn=users,dc=example,dc=com`` both the readwrite and\n diagnostics policies, granting general read/write access to the\n MinIO server *and* access to diagnostic administrative operations.\n\n- MinIO would assign no policies to an authenticated user with DN matching\n ``cn=quark,cn=users,dc=example,dc=com`` and deny all access to API operations.\n\nMapping Policies to Group DN\n\nThe following commands use mc idp ldap policy attach to associate an existing MinIO policy <minio-policy> to an AD/LDAP Group DN.\n\n mc idp ldap policy attach myminio consoleAdmin \\\n --group='cn=ops,cn=groups,dc=example,dc=com'\n\n mc idp ldap policy attach myminio diagnostics \\\n --group='cn=engineering,cn=groups,dc=example,dc=com'\n\n- MinIO would assign any authenticating user with membership in the\n ``cn=ops,cn=groups,dc=example,dc=com`` AD/LDAP group the\n consoleAdmin policy, granting complete access to the MinIO\n server.\n\n- MinIO would assign any authenticating user with membership in the\n ``cn=engineering,cn=groups,dc=example,dc=com`` AD/LDAP group the\n diagnostics policy, granting access to diagnostic administrative\n operations.", "project": "minio-docs", "source": "source/administration/identity-access-management/ad-ldap-access-management.rst", "commit": "0f20cb5c667a6a5c833e6b369aLine truncated
{"text": "MinIO Identity Management\n\n :local:\n :depth: 2\n\nMinIO includes a built-in IDentity Provider (IDP) that provides core identity\nmanagement functionality. The MinIO IDP supports creating an arbitrary number of\nlong-lived users on the deployment for supporting client authentication.\n\nEach user consists of a unique access key (username) and corresponding secret\nkey (password). Clients must authenticate their identity by specifying both\na valid access key (username) and the corresponding secret key (password) of\nan existing MinIO user.\n\nAdministrators use the mc admin user command to create and manage\nMinIO users.\n\nMinIO also supports creating :ref:`access keys\n<minio-idp-service-account>`. Access Keys are child identities of an\nauthenticated parent user and inherit their permissions from the parent.\n\nMinIO by default denies access to all actions or resources not explicitly\nallowed by a user's assigned or inherited policies <minio-policy>. You\nmust either explicitly assign a policy <minio-policy> describing the\nuser's authorized actions and resources *or* assign the user to :ref:`groups\n<minio-groups>` which have associated policies. See\nminio-access-management for more information.\n\n :class: note\n\n MinIO supports external management of identities using either an\n OpenID Connect (OIDC) or Active Directory/LDAP IDentity Provider (IDP).\n For more information, see:\n\n - minio-external-identity-management-openid\n - minio-external-identity-management-ad-ldap\n\n AD/LDAP and OIDC configurations are mutually exclusive.\n Furthermore, enabling AD/LDAP external identity management disables the MinIO internal IDP, with the exception of creating :ref:`access keys\n <minio-idp-service-account>`.\n You can configure multiple OIDC providers while maintaining MinIO-managed users.\n\n :titlesonly:\n :hidden:\n\n /administration/identity-access-management/minio-user-management.rst\n /administration/identity-access-management/minio-group-management.rst", "project": "minio-docs", "source": "source/administration/identity-access-management/minio-identity-management.rst", "commit": "0f20cb5c667a6a5c833e6b369addb9a08f0440a7", "license": "CC-BY-4.0", "from": "deployment-docs.jsonl"}
{"text": "MinIO External Identity Management Plugin\n\n :local:\n :depth: 1\n\nOverview\n\nThe MinIO Identity Management Plugin provides a REST interface for offloading authentication to an external identity manager through a webhook service.\n\nOnce enabled, client applications use the ``AssumeRoleWithCustomToken`` STS API extension to generate access tokens for MinIO.\nMinIO verifies this token by making a POST request to the configured plugin endpoint and uses the returned response to determine the authentication status of the client.\n\nConfiguration Settings\n\nYou can configure the MinIO Identity Management Plugin using the following environment variables or configuration settings:\n\n Specify the following environment variables <minio-server-envvar-external-identity-management-plugin> to each MinIO server in the deployment:\n\n :class: copyable\n\n MINIO_IDENTITY_PLUGIN_URL=\"https://external-auth.example.net:8080/auth\"\n MINIO_IDENTITY_PLUGIN_ROLE_POLICY=\"consoleAdmin\"\n\n # All other envvars are optional\n MINIO_IDENTITY_PLUGIN_TOKEN=\"Bearer TOKEN\"\n MINIO_IDENTITY_PLUGIN_ROLE_ID=\"external-auth-provider\"\n MINIO_IDENTITY_PLUGIN_COMMENT=\"External Identity Management using PROVIDER\"\n\n Set the following configuration settings using the mc admin config set command:\n\n :class: copyable\n\n mc admin config set identity_plugin \\\n url=\"https://external-auth.example.net:8080/auth\" \\\n role_policy=\"consoleAdmin\" \\\n\n # All other config settings are optional\n token=\"Bearer TOKEN\" \\\n role_id=\"external-auth-provider\" \\\n comment=\"External Identity Management using PROVIDER\"\n\nAuthentication and Authorization Flow\n\nThe login flow for an application is as follows:\n\n1. Make a POST request using the minio-sts-assumerolewithcustomtoken API.\n\n The request includes a token used by the configured external identity manager for authenticating the client.\n\n2. MinIO makes a POST call to the configured identity plugin URL using the token specified to the STS API.\n\n3. On successful authentication, the identity manager returns a ``200 OK`` response with an ``application/json`` content-type and body with the following structure:\n\n {\n \"user\": \"<string>\",\n \"maxValiditySeconds\": 3600,\n \"claims\": {\"KEY\": \"VALUE\", ...}\n }\n\n :stub-columns: 1\n :widths: 30 70\n :width: 100%\n\n * - ``user``\n - The owner of the requested credentials\n\n * - ``maxValiditySeconds``\n - The maximum allowed expiry duration for the returned credentials\n\n * - ``claims``\n - A JSON string of ``\"key\": \"value\"`` pair claims associated with the requested credentials.\n MinIO reserves and ignores the ``exp``, ``parent``, and ``sub`` claims objects if present.\n\n4. MinIO returns a response to the STS API request that includes temporary credentials for use with making authenticated requests.\n\nIf the identity manager rejects the authentication request or otherwise encounters an error, the response *must* return a ``403 FORBIDDEN`` HTTP status code with an ``application/json`` content-type and body with the following structure:\n\n {\n \"reason\": \"<string>\"\n }\n\nThe ``\"reason\"`` field should include the reason for the 403.\n\nCreating Policies to Match Claims\n\nUse the mc admin policy command to create policies that match one or more claim values.", "project": "minio-docs", "source": "source/administration/identity-access-management/pluggable-authentication.rst", "commit": "0f20cb5c667a6a5c833e6b369addb9a08f0440a7", "license": "CC-BY-4.0", "from": "deployment-docs.jsonl"}
{"text": "Publish Events to AMQP (RabbitMQ)\n\n :local:\n :depth: 1\n\nMinIO supports publishing :ref:`bucket notification\n<minio-bucket-notifications>` events to a `AMQP 0-9-1 <https://www.amqp.org/>`__\nservice endpoint such as `RabbitMQ <https://www.rabbitmq.com>`__.\n\nMinIO relies on the streadway/amqp project for AMQP connectivity. The\nproject is primarily tested against `RabbitMQ <https://www.rabbitmq.com/>`__\ndeployments, though other `AMQP 0-9-1-compatible <https://www.amqp.org/>`__\nservices *may* also work. The procedures on this page assume a RabbitMQ\ndeployment using the AMQP 0-9-1 protocol as the service endpoint.\n\nAdd an AMQP Endpoint to a MinIO Deployment\n\nThe following procedure adds a new AMQP service endpoint for supporting\nbucket notifications <minio-bucket-notifications> in a MinIO\ndeployment.\n\nPrerequisites\n\nAMQP 0-9-1 Service Endpoint\n\nMinIO relies on the streadway/amqp project for AMQP connectivity. The\nproject is primarily tested against `RabbitMQ <https://www.rabbitmq.com/>`__\ndeployments, though other `AMQP 0-9-1-compatible <https://www.amqp.org/>`__\nservices *may* also work. This procedure assumes a RabbitMQ deployment\nusing the 0-9-1 protocol as the service endpoint.\n\nIf the AMQP service requires authentication, you *must* provide an appropriate\nusername and password during the configuration process to grant MinIO access\nto the service.\n\nMinIO ``mc`` Command Line Tool\n\nThis procedure uses the mc command line tool for certain actions.\nSee the ``mc`` Quickstart <mc-install> for installation instructions.\n\n1) Add the AMQP Endpoint to MinIO\n\nYou can configure a new AMQP service endpoint using either environment variables\n*or* by setting runtime configuration settings.\n\n MinIO supports specifying the AMQP service endpoint and associated\n configuration settings using\n :ref:`environment variables\n <minio-server-envvar-bucket-notification-amqp>`. The\n minio server process applies the specified settings on its\n next startup.\n\n The following example code sets *all* environment variables\n related to configuring an AMQP service endpoint. The minimum\n *required* variables are\n MINIO_NOTIFY_AMQP_ENABLE and MINIO_NOTIFY_AMQP_URL:\n\n :class: copyable\n\n set MINIO_NOTIFY_AMQP_ENABLE_<IDENTIFIER>=\"on\"\n set MINIO_NOTIFY_AMQP_URL_<IDENTIFIER>=\"<ENDPOINT>\"\n set MINIO_NOTIFY_AMQP_EXCHANGE_<IDENTIFIER>=\"<string>\"\n set MINIO_NOTIFY_AMQP_EXCHANGE_TYPE_<IDENTIFIER>=\"<string>\"\n set MINIO_NOTIFY_AMQP_ROUTING_KEY_<IDENTIFIER>=\"<string>\"\n set MINIO_NOTIFY_AMQP_MANDATORY_<IDENTIFIER>=\"<string>\"\n set MINIO_NOTIFY_AMQP_DURABLE_<IDENTIFIER>=\"<string>\"\n set MINIO_NOTIFY_AMQP_NO_WAIT_<IDENTIFIER>=\"<string>\"\n set MINIO_NOTIFY_AMQP_INTERNAL_<IDENTIFIER>=\"<string>\"\n set MINIO_NOTIFY_AMQP_AUTO_DELETED_<IDENTIFIER>=\"<string>\"\n set MINIO_NOTIFY_AMQP_DELIVERY_MODE_<IDENTIFIER>=\"<string>\"\n set MINIO_NOTIFY_AMQP_QUEUE_DIR_<IDENTIFIER>=\"<string>\"\n set MINIO_NOTIFY_AMQP_QUEUE_LIMIT_<IDENTIFIER>=\"<string>\"\n set MINIO_NOTIFY_AMQP_COMMENT_<IDENTIFIER>=\"<string>\"\n\n :class: copyable\n\n export MINIO_NOTIFY_AMQP_ENABLE_<IDENTIFIER>=\"on\"\n export MINIO_NOTIFY_AMQP_URL_<IDENTIFIER>=\"<ENDPOINT>\"\n export MINIO_NOTIFY_AMQP_EXCHANGE_<IDENTIFIER>=\"<string>\"\n export MINIO_NOTIFY_AMQP_EXCHANGE_TYPE_<IDENTIFIER>=\"<string>\"\n export MINIO_NOTIFY_AMQP_ROUTING_KEY_<IDENTIFIER>=\"<string>\"\n export MINIO_NOTIFY_AMQP_MANDATORY_<IDENTIFIER>=\"<string>\"\n export MINIO_NOTIFY_AMQP_DURABLE_<IDENTIFIER>=\"<string>\"\n export MINIO_NOTIFY_AMQP_NO_WAIT_<IDENTIFIER>=\"<string>\"\n export MINIO_NOTIFY_AMQP_INTERNAL_<IDENTIFIER>=\"<string>\"\n export MINIO_NOTIFY_AMQP_AUTO_DELETED_<IDENTIFIER>=\"<string>\"\n export MINIO_NOTIFY_AMQP_DELIVERY_MODE_<IDENTIFIER>=\"<string>\"\n export MINIO_NOTIFY_AMQP_QUEUE_DIR_<IDENTIFIER>=\"<string>\"\n export MINIO_NOTIFY_AMQP_QUEUE_LIMIT_<IDENTIFIER>=\"<string>\"\n export MINIO_NOTIFY_AMQP_COMMENT_<IDENTIFIER>=\"<string>\"\n\n - Replace ``<IDENTIFIER>`` with a unique descriptive string for the\n AMQP service endpoint. Use the same ``<IDENTIFIER>`` value for all\n environment variables related to the new AMQP service endpoint.\n The following examples assume an identifier of ``PRIMARY``.\n\n If the specified ``<IDENTIFIER>`` matches an existing AMQP service\n endpoint on the MinIO deployment, the new settings *override*\n any existing settings for that endpoint. Use\n mc admin config get notify_amqp <mc admin config get> to\n review the currently configured AMQP endpoints on the MinIO deployment.\n\n - Replace ``<ENDPOINT>`` with the URL of the AMQP service endpoint.\n For example:\n\n ``amqp://user:password@hostname:port``\n\n See :ref:`AMQP Service for Bucket Notifications\n <minio-server-envvar-bucket-notification-amqp>` for complete documentation\n on each environment variable.\n\n MinIO supports adding or updating AMQP endpoints on a running\n minio server process using the mc admin config set command\n and the notLine truncated
{"text": "Publish Events to Elasticsearch\n\n :local:\n :depth: 1\n\nMinIO supports publishing :ref:`bucket notification\n<minio-bucket-notifications>` events to an\n`Elasticsearch <https://www.elastic.co/>`__ service endpoint.\n\nMinIO relies on the elastic/go-elasticsearch v7 project for Elastic\nconnectivity.\n\nAdd a Elasticsearch Endpoint to a MinIO Deployment\n\nThe following procedure adds a new Elasticsearch service endpoint for supporting\nbucket notifications <minio-bucket-notifications> in a MinIO\ndeployment.\n\nPrerequisites\n\nElasticsearch v7.0 and later\n\nMinIO relies on the olivere/elastic v7 project for Elastic\nconnectivity. The ``elastic/v7`` library specifically targets Elasticsearch\nv7.0 and is *not compatible with earlier Elasticsearch versions*.\n\nMinIO ``mc`` Command Line Tool\n\nThis procedure uses the mc command line tool for certain actions.\nSee the ``mc`` Quickstart <mc-install> for installation instructions.\n\n1) Add the Elasticsearch Endpoint to MinIO\n\nYou can configure a new Elasticsearch service endpoint using either environment variables\n*or* by setting runtime configuration settings.\n\n MinIO supports specifying the Elasticsearch service endpoint and associated\n configuration settings using\n :ref:`environment variables\n <minio-server-envvar-bucket-notification-elasticsearch>`. The\n minio server process applies the specified settings on its\n next startup.\n\n The following example code sets *all* environment variables\n related to configuring an Elasticsearch service endpoint. The minimum\n *required* variables are:\n\n - MINIO_NOTIFY_ELASTICSEARCH_ENABLE\n - MINIO_NOTIFY_ELASTICSEARCH_URL\n - MINIO_NOTIFY_ELASTICSEARCH_INDEX\n - MINIO_NOTIFY_ELASTICSEARCH_FORMAT\n\n :class: copyable\n\n set MINIO_NOTIFY_ELASTICSEARCH_ENABLE_<IDENTIFIER>=\"on\"\n set MINIO_NOTIFY_ELASTICSEARCH_URL_<IDENTIFIER>=\"<ENDPOINT>\"\n set MINIO_NOTIFY_ELASTICSEARCH_INDEX_<IDENTIFIER>=\"<string>\"\n set MINIO_NOTIFY_ELASTICSEARCH_FORMAT_<IDENTIFIER>=\"<string>\"\n set MINIO_NOTIFY_ELASTICSEARCH_USERNAME_<IDENTIFIER>=\"<string>\"\n set MINIO_NOTIFY_ELASTICSEARCH_PASSWORD_<IDENTIFIER>=\"<string>\"\n set MINIO_NOTIFY_ELASTICSEARCH_QUEUE_DIR_<IDENTIFIER>=\"<string>\"\n set MINIO_NOTIFY_ELASTICSEARCH_QUEUE_LIMIT_<IDENTIFIER>=\"<string>\"\n set MINIO_NOTIFY_ELASTICSEARCH_COMMENT_<IDENTIFIER>=\"<string>\"\n\n :class: copyable\n\n export MINIO_NOTIFY_ELASTICSEARCH_ENABLE_<IDENTIFIER>=\"on\"\n export MINIO_NOTIFY_ELASTICSEARCH_URL_<IDENTIFIER>=\"<ENDPOINT>\"\n export MINIO_NOTIFY_ELASTICSEARCH_INDEX_<IDENTIFIER>=\"<string>\"\n export MINIO_NOTIFY_ELASTICSEARCH_FORMAT_<IDENTIFIER>=\"<string>\"\n export MINIO_NOTIFY_ELASTICSEARCH_USERNAME_<IDENTIFIER>=\"<string>\"\n export MINIO_NOTIFY_ELASTICSEARCH_PASSWORD_<IDENTIFIER>=\"<string>\"\n export MINIO_NOTIFY_ELASTICSEARCH_QUEUE_DIR_<IDENTIFIER>=\"<string>\"\n export MINIO_NOTIFY_ELASTICSEARCH_QUEUE_LIMIT_<IDENTIFIER>=\"<string>\"\n export MINIO_NOTIFY_ELASTICSEARCH_COMMENT_<IDENTIFIER>=\"<string>\"\n\n - Replace ``<IDENTIFIER>`` with a unique descriptive string for the\n TARGET service endpoint. Use the same ``<IDENTIFIER>`` value for all\n environment variables related to the new target service endpoint.\n The following examples assume an identifier of ``PRIMARY``.\n\n If the specified ``<IDENTIFIER>`` matches an existing Elasticsearch\n service endpoint on the MinIO deployment, the new settings *override*\n any existing settings for that endpoint. Use\n mc admin config get notify_elasticsearch <mc admin config get>\n to review the currently configured Elasticsearch endpoints on the MinIO\n deployment.\n\n - Replace ``<ENDPOINT>`` with the URL of the Elasticsearch service endpoint.\n For example:\n\n See :ref:`Elasticsearch Service for Bucket Notifications\n <minio-server-envvar-bucket-notification-elasticsearch>` for complete\n documentation on each environment variable.\n\n MinIO supports adding or updating Elasticsearch endpoints on a running\n minio server process using the mc admin config set command\n and the notify_elasticsearch configuration key. You must restart the\n minio server process to apply any new or updated configuration\n settings.\n\n The following example code sets *all* settings related to configuring an\n Elasticsearch service endpoint. The minimum *required* settings are:\n\n - url <notify_elasticsearch.url>\n - index <notify_elasticsearch.index>\n - format <notify_elasticsearch.format>\n\n :class: copyable\n\n mc admin config set ALIAS/ notify_elasticsearch:IDENTIFIER \\\n url=\"ENDPOINT\" \\\n index=\"<string>\" \\\n format=\"<string>\" \\\n username=\"<string>\" \\\n password=\"<string>\" \\\n queue_dir=\"<string>\" \\\n queue_limit=\"<string>\" \\\n comment=\"<string>\"\n\n - Replace ``IDENTIFIER`` with a unique descriptive string for the\n Elasticsearch service endpoint. The following examples in this procedure\n assume an identifier of ``PRIMARY``.\n\n If the specified ``IDENTIFIER`` matches an existing Elasticsearch Line truncated
{"text": "- /monitoring/bucket-notifications/publish-events-to-amqp.rst\n\n /reference/minio-cli/minio-mc/mc-rm.rst\n /reference/minio-cli/minio-mc/mc-mv.rst\n /reference/minio-cli/minio-mc/mc-mirror.rst\n\n|command| relies on the mc removal API for deleting objects. As part of\nremoving the last object in a bucket prefix, mc also recursively removes\neach empty part of the prefix up to the bucket root. mc only applies the\nrecursive removal to prefixes created *implicitly* as part of object write\noperations - that is, the prefix was not created using an explicit directory\ncreation command such as mc mb.\n\nFor example, consider a bucket ``photos`` with the following object prefixes:\n\n- ``photos/2021/january/myphoto.jpg``\n- ``photos/2021/february/myotherphoto.jpg``\n- ``photos/NYE21/NewYears.jpg``\n\n``photos/NYE21`` is the *only* prefix explicitly created using mc mb.\nAll other prefixes were *implicitly* created as part of writing the object\nlocated at that prefix.\n\nIf an mc command removes ``myphoto.jpg``, the removal API automatically\ntrims the empty ``/january`` prefix. If a subsequent mc command removes\n``myotherphoto.jpg``, the removal API automatically trims both the ``/february``\nprefix *and* the now-empty ``/2021`` prefix. If an mc command removes\n``NewYears.jpg``, the ``/NYE21`` prefix remains in place since it was\n*explicitly* created.\n\nIf using |command| for operations on a filesystem, mc applies this same\nbehavior by recursively trimming empty directory paths up to the root. However,\nthe mc remove API cannot distinguish between an explicitly created\ndirectory path and an implicitly created one. If |command| deletes the last\nobject at a filesystem path, mc recursively deletes all empty directories\nwithin that path up to the root as part of the removal operation.\n\n - administration/object-management.rst\n - administration/concepts.rst\n - operations/concepts.rst\n - operations/data-recovery.rst\n - operations/checklists/hardware.rst\n - operations/checklists/software.rst\n - operations/concepts/availability-and-resiliency.rst\n - operations/concepts/erasure-coding.rst\n - operations/data-recover/recover-after-drive-failure.rst\n - operations/data-recover/recover-after-node-failure.rst\n - operations/install-deploy-manage/deploy-minio-multi-node-multi-drive.rst\n - operations/install-deploy-manage/deploy-minio-single-node-multi-drive.rst\n - operations/install-deploy-manage/deploy-minio-single-node-single-drive.rst\n - operations/install-deploy-manage/deploy-minio-tenant.rst\n - operations/install-deploy-manage/expand-minio-deployment.rst\n - operations/install-deploy-manage/expand-minio-tenant.rst\n - glossary.rst\n\n :class: warning\n\n MinIO **requires** *exclusive* access to the drives or volumes provided for object storage.\n No other processes, software, scripts, or persons should perform *any* actions directly on the drives or volumes provided to MinIO or the objects or files MinIO places on them.\n\n Unless directed by MinIO Engineering, do not use scripts or tools to directly modify, delete, or move any of the data shards, parity shards, or metadata files on the provided drives, including from one drive or node to another.\n Such operations are very likely to result in widespread corruption and data loss beyond MinIO's ability to heal.", "project": "minio-docs", "source": "source/includes/common-admonitions.rst", "commit": "0f20cb5c667a6a5c833e6b369addb9a08f0440a7", "license": "CC-BY-4.0", "from": "deployment-docs.jsonl"}
{"text": "This procedure deploys a Single-Node Single-Drive <minio-installation-comparison> MinIO server onto |OS| for early development and evaluation of MinIO Object Storage and its S3-compatible API layer.\n\nFor instructions on deploying to production environments, see deploy-minio-distributed.\n\nPrerequisites\n\n- `Podman <https://podman.io/getting-started/installation.html>`_ or `Docker <https://docs.docker.com/get-docker/>`_ installed.\n- Read, write, and delete access to the folder or drive used for the persistent volume.\n\nProcedure\n\n#. Start the container\n\n Select a container type to view instructions to create the container.\n Instructions are available for either GNU/Linux and MacOS or for Windows.\n\n :name: podman-root-rootless\n\n These steps work for both rootfull and rootless containers.\n\n :class: copyable\n\n mkdir -p ~/minio/data\n\n podman run \\\n -p 9000:9000 \\\n -p 9001:9001 \\\n -v ~/minio/data:/data \\\n -e \"MINIO_ROOT_USER=ROOTNAME\" \\\n -e \"MINIO_ROOT_PASSWORD=CHANGEME123\" \\\n quay.io/minio/minio server /data --console-address \":9001\"\n\n The example above works this way:\n\n - ``podman run`` starts the container.\n The process is attached to the terminal session and ends when exiting the terminal.\n - ``-p`` binds a local port to a container port.\n - ``-v`` sets a file path as a persistent volume location for the container to use.\n When MinIO writes data to ``/data``, that data mirrors to the local path ``~/minio/data``, allowing it to persist between container restarts.\n You can set any file path to which the user has read, write, and delete permissions to use.\n - ``-e`` sets the environment variables MINIO_ROOT_USER and MINIO_ROOT_PASSWORD, respectively.\n These set the root user credentials <minio-users-root>.\n Change the example values to use for your container.\n\n :class: copyable\n\n podman run \\\n -p 9000:9000 \\\n -p 9001:9001 \\\n -v D:\\minio\\data:/data \\\n -e \"MINIO_ROOT_USER=ROOTNAME\" \\\n -e \"MINIO_ROOT_PASSWORD=CHANGEME123\" \\\n quay.io/minio/minio server /data --console-address \":9001\"\n\n The example above works this way:\n\n - ``podman run`` starts the container.\n - ``-p`` binds a local port to a container port.\n - ``-v`` sets a file path as a persistent volume location for the container to use.\n When MinIO writes data to ``/data``, that data mirrors to the local path ``D:\\minio\\data``, allowing it to persist between container restarts.\n You can set any file path to which the user has read, write, and delete permissions to use.\n - ``-e`` sets the environment variables MINIO_ROOT_USER and MINIO_ROOT_PASSWORD, respectively.\n These set the root user credentials <minio-users-root>.\n Change the example values to use for your container.\n\n :name: docker-rootfull\n\n :class: copyable\n\n mkdir -p ~/minio/data\n\n docker run \\\n -p 9000:9000 \\\n -p 9001:9001 \\\n --name minio \\\n -v ~/minio/data:/data \\\n -e \"MINIO_ROOT_USER=ROOTNAME\" \\\n -e \"MINIO_ROOT_PASSWORD=CHANGEME123\" \\\n quay.io/minio/minio server /data --console-address \":9001\"\n\n The example above works this way:\n\n - ``mkdir`` creates a new local directory at ``~/minio/data`` in your home directory.\n - ``docker run`` starts the MinIO container.\n - ``-p`` binds a local port to a container port.\n - ``-name`` creates a name for the container.\n - ``-v`` sets a file path as a persistent volume location for the container to use.\n When MinIO writes data to ``/data``, that data mirrors to the local path ``~/minio/data``, allowing it to persist between container restarts.\n You can replace ``~/minio/data`` with another local file location to which the user has read, write, and delete access.\n - ``-e`` sets the environment variables MINIO_ROOT_USER and MINIO_ROOT_PASSWORD, respectively.\n These set the root user credentials <minio-users-root>.\n Change the example values to use for your container.\n\n :class: copyable\n\n docker run \\\n -p 9000:9000 \\\n -p 9001:9001 \\\n --name minio1 \\\n -v D:\\minio\\data:/data \\\n -e \"MINIO_ROOT_USER=ROOTUSER\" \\\n -e \"MINIO_ROOT_PASSWORD=CHANGEME123\" \\\n quay.io/minio/minio server /data --console-address \":9001\"\n\n The example above works this way:\n\n - ``docker run`` starts the MinIO container.\n - ``-p`` binds a local port to a container port.\n - ``-v`` sets a file path as a persistent volume location for the container to use.\n When MinIO writes data to ``/data``, that data mirrors to the local path ``D:\\minio\\data``, allowing it to persist between container restarts.\n You can replace ``D:\\minio\\data`` with another local file location to which the user has read, write, and delete access.\n - ``-e`` sets the environment variables MINIO_ROOT_USER and MINIO_ROOT_PASSWORD, respectively.\n These set the root user credentials <minio-users-root>.\n Change the example values to use for your container.\n\n :name: docker-rootless\n\n :class: copyable\n\n mkdir -p ${HOME}/minio/data\n\n docker run \\\n -p 9000:Line truncated
{"text": "MinIO does not support using mc admin commands with other\nS3-compatible services, regardless of their claimed compatibility with MinIO\ndeployments.", "project": "minio-docs", "source": "source/includes/facts-mc-admin.rst", "commit": "0f20cb5c667a6a5c833e6b369addb9a08f0440a7", "license": "CC-BY-4.0", "from": "deployment-docs.jsonl"}
{"text": "Directs |command| to operate only on the object version(s) that\nexisted at specified point-in-time.\n\n- To rewind to a specific date in the past, specify the date as an\n ISO8601-formatted timestamp. For example: ``--rewind \"2020.03.24T10:00\"``.\n\n- To rewind a duration in time, specify the duration as a string in\n ``#d#hh#mm#ss`` format. For example: ``--rewind \"1d2hh3mm4ss\"``.\n\n|rewind| requires that the specified |alias| be an S3-compatible service\nthat supports minio-bucket-versioning. For MinIO deployments, use\nmc version to enable or disable bucket versioning.\n\nDirects |command| to operate on all object versions that exist in the\nbucket.\n\n|versions| requires that the specified |alias| be an S3-compatible service\nthat supports minio-bucket-versioning. For MinIO deployments, use\nmc version to enable or disable bucket versioning.\n\nDirects |command| to operate only on the specified object version.\n\n|versionid| requires that the specified |alias| be an S3-compatible service\nthat supports minio-bucket-versioning. For MinIO deployments, use\nmc version to enable or disable bucket versioning.\n\n :class: note\n\n |command| requires bucket versioning <minio-bucket-versioning> to\n use this feature. Use mc version to enable versioning on a bucket.", "project": "minio-docs", "source": "source/includes/facts-versioning.rst", "commit": "0f20cb5c667a6a5c833e6b369addb9a08f0440a7", "license": "CC-BY-4.0", "from": "deployment-docs.jsonl"}
{"text": "This procedure assumes an existing supported KMS installation <#supported-kms-targets> accessible from the Kubernetes cluster.\n\n- For deployments within the same Kubernetes cluster as the MinIO Tenant, you can use Kubernetes service names to allow the MinIO Tenant to establish connectivity to the target KMS service.\n\n- For deployments external to the Kubernetes cluster, you must ensure the cluster supports routing communications between Kubernetes services and pods and the external network.\n This may require configuration or deployment of additional Kubernetes network components and/or enabling access to the public internet.\n\nDefer to the documentation for your chosen KMS solution for guidance on deployment and configuration.\n\nYou can use either the MinIO Tenant Console or the MinIO mc CLI to enable bucket-default SSE-KMS with the generated key:\n\n Connect to the MinIO Tenant Console service <create-tenant-connect-tenant> and log in.\n For clients internal to the Kubernetes cluster, you can specify the service DNS name <concepts/services-networking/dns-pod-service/#a-aaaa-records>.\n For clients external to the Kubernetes cluster, specify the hostname of the service exposed by Ingress, Load Balancer, or similar Kubernetes network control component.\n\n Once logged in, create a new Bucket and name it to your preference.\n Select the Gear gear icon to open the management view.\n\n Select the pencil pencil icon next to the Encryption field to open the modal for configuring a bucket default SSE scheme.\n\n Select SSE-KMS, then enter the name of the key created in the previous step.\n\n Once you save your changes, try to upload a file to the bucket.\n When viewing that file in the object browser, note that in the sidebar the metadata includes the SSE encryption scheme and information on the key used to encrypt that object.\n This indicates the successful encrypted state of the object.\n\n Use the MinIO API Service <create-tenant-connect-tenant> to create a new alias <alias> for the MinIO deployment.\n You can then use the mc encrypt set command to enable SSE-KMS encryption for a bucket:\n\n :class: copyable\n\n mc alias set k8s https://minio.minio-tenant-1.svc.cluster-domain.example:443 ROOTUSER ROOTPASSWORD\n\n mc mb k8s/encryptedbucket\n mc encrypt set SSE-KMS encrypted-bucket-key k8s/encryptedbucket\n\n For clients external to the Kubernetes cluster, specify the hostname of the service exposed by Ingress, Load Balancer, or similar Kubernetes network control component.\n\n Write a file to the bucket using mc cp or any S3-compatible SDK with a ``PutObject`` function.\n You can then run mc stat on the file to confirm the associated encryption metadata.\n\n :class: important\n\n If required by your chosen provider, you must unseal the backing vault instance before creating new encryption keys.\n See the documentation for your chosen KMS solution for more information.\n\nMinIO requires that the |EK| for a given bucket or object exist on the root KMS *before* performing |SSE| operations using that key.\nYou can use the mc admin kms key create command against the MinIO Tenant.\n\nYou must ensure your local host can access the MinIO Tenant pods and services before using mc to manage the Tenant.\nFor hosts internal to the Kubernetes cluster, you can use the service DNS name <concepts/services-networking/dns-pod-service/#a-aaaa-records>.\nFor hosts external to the Kubernetes cluster, specify the hostname of the service exposed by Ingress, Load Balancer, or similar Kubernetes network control component.\n\nRun this command in a separate Terminal or Shell:\n\n :class: copyable\n\n # Replace '-n minio' with the namespace of the MinIO deployment\n # If you deployed the Tenant without TLS you may need to change the port range\n\n # You can validate the ports in use by running\n # kubectl get svc/minio -n minio\n\n kubectl port forward svc/minio 443:443 -n minio\n\nThe following commands in a new Terminal or Shell window:\n\n- Connect a local mc client to the Tenant.\n\n- Create the encryption key.\n\nSee mc-install for instructions on installing ``mc`` on your local host.\n\n :class: copyable\n\n # Replace USERNAME and PASSWORD with a user on the tenant with administrative permissions\n # such as the root user\n\n mc alias add k8s https://localhost:443 ROOTUSER ROOTPASSWORD\n\n # Replace my-new-key with the name of the key you want to use for SSE-KMS\n mc admin kms key create k8s encrypted-bucket-key", "project": "minio-docs", "source": "source/includes/k8s/common-minio-kes.rst", "commit": "0f20cb5c667a6a5c833e6b369addb9a08f0440a7", "license": "CC-BY-4.0", "from": "deployment-docs.jsonl"}
{"text": "This procedure deploys a Single-Node Single-Drive MinIO server onto |OS| for early development and evaluation of MinIO Object Storage and its S3-compatible API layer.\n\nUse the MinIO Operator <minio-operator-installation> to deploy and manage production-ready MinIO tenants on Kubernetes.\n\nPrerequisites\n\n- An existing Kubernetes deployment where *at least* one Worker Node has a locally-attached drive.\n- A local ``kubectl`` installation configured to create and access resources on the target Kubernetes deployment.\n- Familiarity with Kubernetes environments\n- Familiarity with using a Terminal or Shell environment\n\nProcedure\n\n#. **Download the MinIO Object**\n\n Download `minio-dev.yaml <https://raw.githubusercontent.com/minio/docs/master/source/extra/examples/minio-dev.yaml>`__ to your host machine:\n\n :class: copyable\n\n curl https://raw.githubusercontent.com/minio/docs/master/source/extra/examples/minio-dev.yaml -O\n\n The file describes two Kubernetes resources:\n\n - A new namespace ``minio-dev``, and\n - A MinIO pod using a drive or volume on the Worker Node for serving data\n\n Select the Overview of the MinIO Object YAML for a more detailed description of the object.\n\n The ``minio-dev.yaml`` contains the following Kubernetes resources:\n\n :language: yaml\n\n The object deploys two resources:\n\n - A new namespace ``minio-dev``, and\n - A MinIO pod using a drive or volume on the Worker Node for serving data\n\n The MinIO resource definition uses Kubernetes Node Selectors and Labels <concepts/scheduling-eviction/assign-pod-node/#built-in-node-labels> to restrict the pod to a node with matching hostname label.\n Use ``kubectl get nodes --show-labels`` to view all labels assigned to each node in the cluster.\n\n The MinIO Pod uses a hostPath <concepts/storage/volumes/#hostpath> volume for storing data. This path *must* correspond to a local drive or folder on the Kubernetes worker node.\n\n Users familiar with Kubernetes scheduling and volume provisioning may modify the ``spec.nodeSelector``, ``volumeMounts.name``, and ``volumes`` fields to meet more specific requirements.\n\n#. **Apply the MinIO Object Definition**\n\n The following command applies the ``minio-dev.yaml`` configuration and deploys the objects to Kubernetes:\n\n :class: copyable\n\n kubectl apply -f minio-dev.yaml\n\n The command output should resemble the following:\n\n namespace/minio-dev created\n pod/minio created\n\n You can verify the state of the pod by running ``kubectl get pods``:\n\n :class: copyable\n\n kubectl get pods -n minio-dev\n\n The output should resemble the following:\n\n NAME READY STATUS RESTARTS AGE\n minio 1/1 Running 0 77s\n\n You can also use the following commands to retrieve detailed information on the pod status:\n\n :class: copyable\n\n kubectl describe pod/minio -n minio-dev\n\n kubectl logs pod/minio -n minio-dev\n\n#. **Temporarily Access the MinIO S3 API and Console**\n\n Use the ``kubectl port-forward`` command to temporarily forward traffic from the MinIO pod to the local machine:\n\n :class: copyable\n\n kubectl port-forward pod/minio 9000 9090 -n minio-dev\n\n The command forwards the pod ports ``9000`` and ``9090`` to the matching port on the local machine while active in the shell.\n The ``kubectl port-forward`` command only functions while active in the shell session.\n Terminating the session closes the ports on the local machine.\n\n The following steps of this procedure assume an active ``kubectl port-forward`` command.\n\n To configure long term access to the pod, configure Ingress <concepts/services-networking/ingress/> or similar network control components within Kubernetes to route traffic to and from the pod. Configuring Ingress is out of the scope for this documentation.\n\n#. **Connect your Browser to the MinIO Server**\n\n Access the minio-console by opening a browser on the local machine and navigating to ``http://127.0.0.1:9001``.\n\n Log in to the Console with the credentials ``minioadmin | minioadmin``.\n These are the default root user <minio-users-root> credentials.\n\n#. **(Optional) Connect the MinIO Client**\n\n If your local machine has mc installed <mc-install>, use the mc alias set command to authenticate and connect to the MinIO deployment:\n\n :class: copyable\n\n mc alias set k8s-minio-dev http://127.0.0.1:9000 minioadmin minioadmin\n mc admin info k8s-minio-dev\n\n - The name of the alias\n - The hostname or IP address and port of the MinIO server\n - The Access Key for a MinIO user <minio-users>\n - The Secret Key for a MinIO user <minio-users>\n\nNext Steps\n\n- Connect your applications to MinIO <minio-drivers>\n- Configure Object Retention <minio-object-retention>\n- Configure Security <minio-authentication-and-identity-management>\n- Deploy MinIO for Production Environments <deploy-minio-distributed>", "project": "minio-docs", "source": "source/includes/k8s/quickstart.rst", "commit": "0f20cb5c667a6a5c833e6b369addb9a08f0440a7", "license": "CCLine truncated
{"text": "Object Scanner\n\n :local:\n :depth: 1\n\nOverview\n\nMinIO uses the built-in scanner to check objects for healing and to take any scheduled object actions.\nSuch actions may include:\n\n- calculate data usage on drives\n- evaluate and apply configured lifecycle management <minio-lifecycle-management> or object retention <minio-object-retention> rules\n- perform bucket <minio-bucket-replication> or site <minio-site-replication-overview> replication\n- check objects for missing or corrupted data or parity shards and perform healing <minio-concepts-healing>\n\nThe scanner performs these functions at two levels: cluster and bucket.\nAt the cluster level, the scanner splits all buckets into groups and scans one group of buckets at a time.\nThe scanner starts with any new buckets added since the last scan, then randomizes the scanning of other buckets.\nThe scanner completes checks on all bucket groups before starting over with a new set of scans.\n\nAt the bucket level, the scanner groups items in buckets and scans selected items from that bucket.\nThe scanner selects objects for a scan based on a hash of the object name.\nOver a span of 16 scans, MinIO checks every object in the namespace.\nMinIO fully scans any prefixes known to be new since the last scan.\n\nScan Length\n\nMultiple factors impact the time it takes for a scan to complete.\n\nSome of these factors include:\n\n- Type of drives provided to MinIO\n- Throughput and iops (input/output operations per second) available\n- Number and size of objects\n- Other activity on the MinIO Server\n\nFor example, by default, MinIO pauses the scanner to make I/O operations available for read and write requests.\nThis can lengthen the time it takes for a scan to complete.\n\nMinIO waits between each scan by a factor multiplication of the time it takes each scan operation to complete.\nBy default, the value of this factor is ``10.0``, meaning MinIO waits 10x the length of an operation after one scan completes before starting the next scan.\nThe value of this factor changes depending on the configured scanner speed setting <minio-scanner-speed-options>.\n\nScanner Performance\n\nMany factors impact the scanner performance.\nSome of these factors include:\n\n- available node resources\n- size of the cluster\n- number of erasure sets compared to the number of drives\n- complexity of bucket hierarchy (objects and prefixes).\n\nFor example, a cluster that starts with 100TB of data and then grows to 200TB of data may require more time to scan the entire namespace of buckets and objects given the same hardware and workload.\nLikewise, a single erasure set of 16 drives takes longer to scan than the same number of drives split into two erasure sets of 8 drives each.\n\nMinIO treats the scanner as a background task and pauses it in favor of completing read and write requests on the cluster.\nAs the cluster or workload increases, scanner performance decreases as it yields more frequently to ensure priority of normal S3 operations.\n\n :start-after: start-scanner-speed-config\n :end-before: end-scanner-speed-config\n\nScanner Metrics\n\nMinIO provides a number of `metrics related to the scanner <https://docs.min.io/community/minio-object-store/operations/monitoring/metrics-v2.html#scanner-metrics>`__.\n\nUse ``mc admin scanner info`` to see the current status of the scanner and the time since the last full scan.\nThis can help in understanding the metrics provided by the scanner operation.\n\nScanner metrics, including usage metrics, reflect the last completed scan.\n``PUT`` or ``DELETE`` operations since the last scan do not update in the usage until the next scan of the affected bucket(s).\n\nThe output resembles the following:\n\n Overall Statistics\n Last full scan time: 0d0h14m; Estimated 2885.28/month\n Current cycle: 70464; Started: 2024-04-19 20:02:34.568479139 +0000 UTC\n Active drives: 2\n\n Last Minute Statistics\n Objects Scanned: 620 objects; Avg: 124.929µs; Rate: 892800/day\n Versions Scanned: 620 versions; Avg: 2.801µs; Rate: 892800/day\n Versions Heal Checked: 0 versions; Avg: 0ms\n Read Metadata: 621 objects; Avg: 88.416µs, Size:\n ILM checks: 656 versions; Avg: 663ns\n Check Replication: 656 versions; Avg: 1.061µs\n Verify Deleted: 0 folders; Avg: 0ms\n Yield: 3.086s total; Avg: 4.705ms/obj", "project": "minio-docs", "source": "source/operations/concepts/scanner.rst", "commit": "0f20cb5c667a6a5c833e6b369addb9a08f0440a7", "license": "CC-BY-4.0", "from": "deployment-docs.jsonl"}
{"text": "Decommission Server Pools\n\n :local:\n :depth: 1\n\nMinIO supports decommissioning and removing server pools <minio-intro-server-pool> from a deployment with two or more pools.\nTo decommission, there must be at least one remaining pool with sufficient available space to receive the objects from the decommissioned pools.\n\nStarting with ``RELEASE.2023-01-18T04-36-38Z``, MinIO supports queueing multiple pools <minio-decommission-multiple-pools> in a single decommission command.\nEach listed pool immediately enters a read-only status, but draining occurs one pool at a time.\n\nDecommissioning is designed for removing an older server pool whose hardware is no longer sufficient or performant compared to the pools in the deployment.\nMinIO automatically migrates data from the decommissioned pools to the remaining pools in the deployment based on the ratio of free space available in each pool.\n\nDuring the decommissioning process, MinIO routes read operations (e.g. ``GET``, ``LIST``, ``HEAD``) normally.\nMinIO routes write operations (e.g. ``PUT``, versioned ``DELETE``) to the remaining \"active\" pools in the deployment.\nVersioned objects maintain their ordering throughout the migration process.\n\nThe procedures on this page decommission and remove one or more server pools from a distributed <deploy-minio-distributed> MinIO deployment with *at least* two server pools.\n\n :class: important\n\n Once MinIO begins decommissioning a pool, it marks that pool as *permanently* inactive (\"draining\").\n Cancelling or otherwise interrupting the decommissioning procedure does **not** restore the pool to an active state.\n Use extra caution when decommissioning multiple pools.\n\n Decommissioning is a major administrative operation that requires care in planning and execution, and is not a trivial or 'daily' task.\n\n `MinIO SUBNET <https://min.io/pricing?jmp=docs>`__ users can `log in <https://subnet.min.io/>`__ and create a new issue related to decommissioning.\n Coordination with MinIO Engineering via SUBNET can ensure successful decommissioning, including performance testing and health diagnostics.\n\n Community users can seek support on the `MinIO Community Slack <https://slack.min.io>`__.\n Community Support is best-effort only and has no SLAs around responsiveness.\n\nPrerequisites\n\nBack Up Cluster Settings First\n\nUse the mc admin cluster bucket export and mc admin cluster iam export commands to take a snapshot of the bucket metadata and IAM configurations respectively prior to starting decommissioning.\nYou can use these snapshots to restore bucket/IAM settings to recover from user or process errors as necessary.\n\nNetworking and Firewalls\n\nEach node should have full bidirectional network access to every other node in\nthe deployment. For containerized or orchestrated infrastructures, this may\nrequire specific configuration of networking and routing components such as\ningress or load balancers. Certain operating systems may also require setting\nfirewall rules. For example, the following command explicitly opens the default\nMinIO server API port ``9000`` on servers using ``firewalld``:\n\n :class: copyable\n\n firewall-cmd --permanent --zone=public --add-port=9000/tcp\n firewall-cmd --reload\n\nIf you set a static MinIO Console <minio-console> port (e.g. ``:9001``)\nyou must *also* grant access to that port to ensure connectivity from external\nclients.\n\nMinIO **strongly recomends** using a load balancer to manage connectivity to the\ncluster. The Load Balancer should use a \"Least Connections\" algorithm for\nrouting requests to the MinIO deployment, since any MinIO node in the deployment\ncan receive, route, or process client requests.\n\nThe following load balancers are known to work well with MinIO:\n\n- `NGINX <https://www.nginx.com/products/nginx/load-balancing/>`__\n- `HAProxy <https://cbonte.github.io/haproxy-dconv/2.3/intro.html#3.3.5>`__\n\nConfiguring firewalls or load balancers to support MinIO is out of scope for\nthis procedure.\n\nDeployment Must Have Sufficient Storage\n\nThe decommissioning process migrates objects from the target pool to other pools in the deployment.\nThe total available storage on the deployment *must* exceed the total storage of the decommissioned pool.\n\nUse the `Erasure Code Calculator <https://min.io/product/erasure-code-calculator>`__ to determine the usable storage capacity.\nThen reduce that by the size of the objects already on the deployment.\n\nFor example, consider a deployment with the following distribution of used and free storage:\n\n :stub-columns: 1\n :widths: 30 30 30\n :width: 100%\n\n * - Pool 1\n - 100TB Used\n - 200TB Total\n\n * - Pool 2\n - 100TB Used\n - 200TB Total\n\n * - Pool 3\n - 100TB Used\n - 200TB Total\n\nDecommissioning Pool 1 requires distributing the 100TB of used storage across the remaining pools.\nPool 2 and Pool 3 each have 100TB of unused storage space and can safely absorb the data stored on Pool 1.\n\nHoweLine truncated
{"text": "Expand a MinIO Tenant\n\n :local:\n :depth: 1\n\nThis procedure documents expanding the available storage capacity of an existing MinIO tenant by deploying an additional pool of MinIO pods in the Kubernetes infrastructure.\n\n The MinIO Operator Console is deprecated and removed in Operator 6.0.0.\n\n See minio-k8s-modify-minio-tenant for instructions on migrating Tenants installed via the Operator Console to Kustomization.\n\nPrerequisites\n\nMinIO Kubernetes Operator\n\nThis procedure on this page *requires* a valid installation of the MinIO Kubernetes Operator and assumes the local host has a matching installation of the MinIO Kubernetes Operator.\nThis procedure assumes the latest stable Operator, version |operator-version-stable|.\n\nSee deploy-operator-kubernetes for complete documentation on deploying the MinIO Operator.\n\nAvailable Worker Nodes\n\nMinIO deploys additional minio server <minio.server> pods as part of the new Tenant pool.\nThe Kubernetes cluster *must* have sufficient available worker nodes on which to schedule the new pods.\n\nThe MinIO Operator provides configurations for controlling pod affinity and anti-affinity to direct scheduling to specific workers.\n\nPersistent Volumes\n\n :start-after: start-exclusive-drive-access\n :end-before: end-exclusive-drive-access\n\nMinIO can use any Kubernetes Persistent Volume (PV) <concepts/storage/persistent-volumes> that supports the ReadWriteOnce <concepts/storage/persistent-volumes/#access-modes> access mode.\nMinIO's consistency guarantees require the exclusive storage access that ``ReadWriteOnce`` provides.\n\nFor Kubernetes clusters where nodes have Direct Attached Storage, MinIO strongly recommends using the `DirectPV CSI driver <https://min.io/directpv?ref=docs>`__.\nDirectPV provides a distributed persistent volume manager that can discover, format, mount, schedule, and monitor drives across Kubernetes nodes.\nDirectPV addresses the limitations of manually provisioning and monitoring local persistent volumes <concepts/storage/volumes/#local>.\n\n MinIO Tenants on EKS must use the EBS CSI Driver <kubernetes-sigs/aws-ebs-csi-driver> to provision the necessary underlying persistent volumes.\n MinIO strongly recommends using SSD-backed EBS volumes for best performance.\n For more information on EBS resources, see `EBS Volume Types <https://aws.amazon.com/ebs/volume-types/>`__.\n\nProcedure\n\nThe MinIO Operator supports expanding a MinIO Tenant by adding additional pools.\n\n #. Review the Kustomization object which describes the Tenant object (``tenant.yaml``).\n\n The ``spec.pools`` array describes the current pool topology.\n\n #. Add a new entry to the ``spec.pools`` array.\n\n The new pool must reflect your intended combination of Worker nodes, volumes per server, storage class, and affinity/scheduler settings.\n See minio-operator-crd for more complete documentation on Pool-related configuration settings.\n\n #. Apply the updated Tenant configuration\n\n Use the ``kubectl apply`` command to update the Tenant:\n\n kubectl apply -k ~/kustomization/TENANT-NAME\n\n Modify the path to the Kustomization directory to match your local configuration.\n\n #. Review the Helm ``values.yaml`` file.\n\n The ``tenant.pools`` array describes the current pool topology.\n\n #. Add a new entry to the ``tenant.pools`` array.\n\n The new pool must reflect your intended combination of Worker nodes, volumes per server, storage class, and affinity/scheduler settings.\n See minio-tenant-chart-values for more complete documentation on Pool-related configuration settings.\n\n #. Apply the updated Tenant configuration\n\n Use the ``helm upgrade`` command to update the Tenant:\n\n helm upgrade TENANT-NAME minio-operator/tenant -f values.yaml -n TENANT-NAMESPACE\n\n The command above assumes use of the MinIO Operator Chart repository.\n If you installed the Chart manually or by using a different repository name, specify that chart or name in the command.\n\n Replace ``TENANT-NAME`` and ``TENANT-NAMESPACE`` with the name and namespace of the Tenant respectively.\n You can use ``helm list -n TENANT-NAMESPACE`` to validate the Tenant name.\n\nYou can use the ``kubectl get events -n TENANT-NAMESPACE --watch`` to monitor the progress of expansion.\nThe MinIO Operator updates services to route connections appropriately across the new nodes.\nIf you use customized services, routes, ingress, or similar Kubernetes network components, you may need to update those components for the new pod hostname ranges.", "project": "minio-docs", "source": "source/operations/deployments/k8s-expand-minio-tenant-on-kubernetes.rst", "commit": "0f20cb5c667a6a5c833e6b369addb9a08f0440a7", "license": "CC-BY-4.0", "from": "deployment-docs.jsonl"}
{"text": "Configure MinIO for Authentication using OpenID\n\n :local:\n :depth: 1\n\nOverview\n\nMinIO supports using an OpenID Connect (OIDC) compatible IDentity Provider (IDP) such as Okta, KeyCloak, Dex, Google, or Facebook for external management of user identities.\n\nThis page has procedures for configuring OIDC for MinIO deployments in Kubernetes and Baremetal infrastructures.\n\nThis procedure covers:\n\n- Configuring a MinIO cluster for an external OIDC provider.\n- Using the MinIO ``AssumeRoleWithWebIdentity`` Security Token Service (STS) API to generate temporary credentials for use by applications.\n\nThis procedure is generic for OIDC compatible providers.\nDefer to the documentation for the OIDC provider of your choice for specific instructions or procedures on authentication and JWT retrieval.\n\nPrerequisites\n\nOpenID-Connect (OIDC) Compatible IDentity Provider\n\nThis procedure assumes an existing OIDC provider such as Okta, KeyCloak, Dex, Google, or Facebook.\nInstructions on configuring these services are out of scope for this procedure.\n\nThe MinIO cluster must have bidirectional access to the OIDC provider.\n\nReview Access Management Behavior\n\nEnsure each user identity intended for use with MinIO has the appropriate claim <minio-external-identity-management-openid-access-control> configured such that MinIO can associate a policy <minio-policy> to the authenticated user.\nAn OpenID user with no assigned policy has no permission to access any action or resource on the MinIO cluster.\n\nFor JWT claim-based authentication, MinIO only supports OIDC flows using the `OpenID Authorization Code Flow <https://openid.net/specs/openid-connect-core-1_0.html#CodeFlowAuth>`__.\n\nAccess to MinIO Cluster\n\nThis procedure uses mc for performing operations on the MinIO cluster.\nInstall ``mc`` on a machine with network access to the cluster.\nSee the ``mc`` Installation Quickstart <mc-install> for instructions on downloading and installing ``mc``.\nThis procedure assumes a configured alias <mc alias> for the MinIO cluster.\n\nConfigure MinIO with OpenID External Identity Management\n\n1. Create a new OpenID Configuration\n\n Use the mc idp openid add command to create a new OIDC configuration for the MinIO cluster.\n The following example command assumes using the JWT claims returned by the OIDC provider for authorization through policy assignment <minio-external-identity-management-openid-access-control>.\n\n :class: copyable\n\n mc idp openid add ALIAS \\\n client_id=minio-oidc-client-id \\\n client_secret=minio-oidc-client-secret \\\n config_url=\"https://openid-provider.example.net/REALM/.well-known/openid-configuration\" \\\n claim_name=\"minio-policies\" \\\n scopes=\"openid,groups\"\n\n You can also configure ``RoleArn``-based functionality where all authenticated users have a single policy dictated by the ``role_policy`` setting.\n For example, set ``role_policy=\"readOnly\"`` to assign all authenicated users the built-in read-only policy.\n\n2. Review the MinIO Server logs\n\n The MinIO process restarts as part of the new configuration.\n Examine the logs to ensure the OIDC configuration persisted successfully.\n\n If configuring ``role_policy`` for one or more configurations, the output includes an ARN for use with the STS API.\n\n3. Generate S3-Compatible Temporary Credentials using OIDC Credentials\n\n MinIO requires clients authenticate using AWS Signature Version 4 protocol <sig-v4-authenticating-requests.html> with support for the deprecated Signature Version 2 protocol.\n Specifically, clients must present a valid access key and secret key to access any S3 or MinIO administrative API, such as ``PUT``, ``GET``, and ``DELETE`` operations.\n\n Applications can generate temporary access credentials as-needed using the minio-sts-assumerolewithwebidentity Security Token Service (STS) API endpoint and the JSON Web Token (JWT) returned by the OIDC (OpenID Connect) provider.\n\n The application must provide a workflow for logging into the OIDC (OpenID Connect) provider and retrieving the JSON Web Token (JWT) associated to the authentication session.\n Defer to the provider documentation for obtaining and parsing the JWT token after successful authentication. MinIO provides an example Go application web-identity.go <minio/blob/master/docs/sts/web-identity.go> with an example of managing this workflow.\n\n Once the application retrieves the JWT token, use the ``AssumeRoleWithWebIdentity`` endpoint to generate the temporary credentials:\n\n :class: copyable\n\n POST https://minio.example.net?Action=AssumeRoleWithWebIdentity\n &WebIdentityToken=TOKEN\n &Version=2011-06-15\n &DurationSeconds=86400\n &Policy=Policy\n\n - Replace the ``TOKEN`` with the JWT token returned in the previous step.\n - Replace the ``DurationSeconds`` with the duration in seconds until the temporary credentials expire. The example above specifies a period of ``86400`` seconds, or 24 hours.\n - Replace the ``Policy`` withLine truncated
{"text": "cert-manager\n\n :local:\n :depth: 1\n\nTLS certificate management with cert-manager\n\nThis guide shows you how to install cert-manager for TLS certificate management.\nThe guide assumes a new or fresh MinIO Operator installation.\n\n This guide uses a self-signed ``Cluster Issuer``.\n You can also use `other Issuers supported by cert-manager <https://cert-manager.io/docs/configuration/issuers/>`__.\n\n The main difference is that you must provide that ``Issuer`` CA certificate to MinIO, instead of the CA's mentioned in this guide.\n\nRefer to the `cert-manager documentation <https://cert-manager.io>`__ and your own organization's certificate requirements for more advanced configurations.\n\ncert-manager manages certificates within Kubernetes clusters.\nThe MinIO Operator supports using cert-manager for managing and provisioning certificates as an alternative to the MinIO Operator managing certificates for itself and its tenants.\n\ncert-manager obtains valid certificates from an ``Issuer`` or ``ClusterIssuer`` and can automatically renew certificates prior to expiration.\n\nA ``ClusterIssuer`` issues certificates for multiple namespaces.\nAn ``Issuer`` only mints certificates for its own namespace.\n\nThe following graphic depicts how cert-manager provides certificates in namespaces across a Kubernetes cluster.\n\n- A ``ClusterIssuer`` exists at the root level of the Kubernetes cluster, typically the ``default`` namespace, to provide certificates to all other namespaces.\n- The ``minio-operator`` namespace receives its own, local ``Issuer``.\n- Each tenant's namespace receives its own, local ``Issuer``.\n- The certificates issued by each tenant namespace must be made known to and trusted by the MinIO Operator.\n\n :width: 600px\n :alt: A graph of the namespaces in a Kubernetes cluster showing the relationship between the root level ClusterIssuer and three other namespaces with their own Issuer.\n :align: center\n\nPrerequisites\n\n- A `supported version of Kubernetes <https://kubernetes.io/releases/>`__.\n- `kustomize <https://kustomize.io/>`__ installed\n- ``kubectl`` access to your ``k8s`` cluster\n\nSetup cert-manager\n\nInstall cert-manager\n\nThe following command installs version 1.12.13 using ``kubectl``.\n\n :class: copyable\n\n kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.12.13/cert-manager.yaml\n\n`Release 1.12.X LTS <https://cert-manager.io/docs/releases/release-notes/release-notes-1.12/>`__ is preferred, but you may install the latest version.\nFor more details on installing cert-manager, see their `installation instructions <https://cert-manager.io/docs/installation/>`__.\n\nCreate a self-signed Cluster Issuer for the cluster\n\nThe ``Cluster Issuer`` is the top level Issuer from which all other certificates in the cluster derive.\n\n1. Request cert-manager to generate this by creating a ``ClusterIssuer`` resource.\n\n Create a file called ``selfsigned-root-clusterissuer.yaml`` with the following contents:\n\n :class: copyable\n\n # selfsigned-root-clusterissuer.yaml\n apiVersion: cert-manager.io/v1\n kind: ClusterIssuer\n metadata:\n name: selfsigned-root\n spec:\n selfSigned: {}\n\n2. Apply the resource to the cluster:\n\n :class: copyable\n\n kubectl apply -f selfsigned-root-clusterissuer.yaml\n\nNext steps\n\nSet up cert-manager for the MinIO Operator <minio-certmanager-operator>.\n\n :titlesonly:\n :hidden:\n\n /operations/cert-manager/cert-manager-operator\n /operations/cert-manager/cert-manager-tenants", "project": "minio-docs", "source": "source/operations/network-encryption/cert-manager.rst", "commit": "0f20cb5c667a6a5c833e6b369addb9a08f0440a7", "license": "CC-BY-4.0", "from": "deployment-docs.jsonl"}
{"text": "Enable Multiple Domain TLS for MinIO\n\n :local:\n :depth: 1\n\nMinIO supports Transport Layer Security (TLS) 1.2+ encryption of incoming and outgoing traffic.\n\n :class: parent\n\n :sync: k8s\n\n The MinIO Operator supports the following approaches to enabling TLS on a MinIO Tenant:\n\n - Automatic TLS provisioning using Kubernetes Cluster Signing Certificates\n - User-specified TLS using Kubernetes secrets\n - Certmanager-managed TLS certificates\n\n The MinIO Operator supports attaching user-specified TLS certificates when deploying <minio-k8s-deploy-minio-tenant-security> or modifying <minio-k8s-modify-minio-tenant-security> the MinIO Tenant.\n\n These custom certificates support `Server Name Indication (SNI) <https://en.wikipedia.org/wiki/Server_Name_Indication>`__, where the MinIO server identifies which certificate to use based on the hostname specified by the connecting client.\n For example, you can generate certificates signed by your organization's preferred Certificate Authority (CA) and attach those to the MinIO Tenant.\n Applications which trust that CA (Certificate Authority) can connect to the MinIO Tenant and fully validate the Tenant TLS certificates.\n\n :sync: baremetal\n\n MinIO automatically detects TLS certificates in the configured or default directory and starts with TLS enabled.\n\n The MinIO server supports multiple TLS certificates, where the server uses `Server Name Indication (SNI) <https://en.wikipedia.org/wiki/Server_Name_Indication>`__ to identify which certificate to use when responding to a client request.\n When a client connects using a specific hostname, MinIO uses SNI (Server Name Indication) to select the appropriate TLS certificate for that hostname.\n\nThis procedure documents enabling TLS for multiple domains in MinIO.\nFor instructions on TLS for single domains, see TODO\n\nPrerequisites\n\nAccess to MinIO Cluster\n\n :sync: k8s\n\n You must have access to the Kubernetes cluster, with administrative permissions associated to your ``kubectl`` configuration.\n\n This procedure assumes your permission sets extends sufficiently to support deployment or modification of MinIO-associated resources on the Kubernetes cluster, including but not limited to pods, statefulsets, replicasets, deployments, and secrets.\n\n :sync: baremetal\n\n This procedure uses mc for performing operations on the MinIO cluster.\n Install ``mc`` on a machine with network access to the cluster.\n See the ``mc`` Installation Quickstart <mc-install> for instructions on downloading and installing ``mc``.\n\n This procedure assumes a configured alias <mc alias> for the MinIO cluster.\n\n This procedure also assumes SSH or similar shell-level access with administrative permissions to each MinIO host server.\n\nTLS Certificates\n\nProvision the necessary TLS certificates with a supported cipher suite <minio-TLS-supported-cipher-suites> for use by MinIO.\n\n :sync: k8s\n\n See minio-tls-kubernetes for more complete guidance on the supported Tenant TLS configurations.\n\n :sync: baremetal\n\n Provision certificate susing your preferred path, such as through your organizations internal Certificate Authority or by using a well-known global provider such as Digicert or Verisign.\n\n You can create self-signed certificates using ``openssl`` or the MinIO certgen <certgen> tool.\n\n For example, the following command generates a self-signed certificate with a set of IP and DNS Subject Alternate Names (SANs) associated to the MinIO Server hosts:\n\n certgen -host \"localhost,minio-*.example.net\"\n\n See minio-tls-baremetal for more complete guidance on certificate generation and placement.\n\nProcedure\n\n :sync: k8s\n\n The MinIO Operator supports three methods of TLS certificate management on MinIO Tenants:\n\n - MinIO automatic TLS certificate generation\n - User-specified TLS certificates\n - ``cert-manager`` managed TLS certificates\n\n You can also deploy MinIO Tenants without TLS enabled.\n\n The following steps apply to both new and existing MinIO Deployments using ``Kustomize``:\n\n 1. Review the Tenant CRD <minio-operator-crd> ``TenantSpec.requestAutoCert`` and ``TenantSpec.certConfig`` fields.\n\n For existing MinIO Tenants, review the Kustomize resources used to create the Tenant and introspect those fields and their current configuration, if any.\n\n 2. Create or Modify your Tenant YAML to set the values of ``requestAutoCert`` and ``certConfig`` as necessary.\n For example:\n\n spec:\n requestAutoCert: true\n certConfig:\n commonName: \"CN=MinioTenantCommonName\"\n organizationName: \"O=MyOrganizationName\"\n dnsNames:\n - 'minio-tenant.domain.tld'\n - '*.kubernete.cluster.dns.path.tld'\n\n The ``spec.certConfig.dnsNames`` should contain a list of SAN (Subject Alternate Names) the TLS certificate covers.\n\n See the Kustomize Tenant base YAML <operator/blob/master/examples/kustomization/base/tenant.yaml> for a baseline template for guidance in creating or modifying your Tenant resourceLine truncated
{"text": "Server-Side Object Encryption with KES\n\n :local:\n :depth: 1\n\n :description: Deploy MinIO with Server-Side Object Encryption\n :keywords: encryption, security, hashicorp, keyvault, azure\n\n :class: parent\n\n :sync: k8s\n\n This procedure assumes you have access to a Kubernetes cluster with an active MinIO Operator installation.\n For instructions on running KES, see the KES docs <tutorials/getting-started/>.\n\n As part of this procedure, you will:\n\n #. Create or modify a MinIO deployment with support for |SSE| using |KES|.\n Defer to the Deploy Distributed MinIO <minio-mnmd> tutorial for guidance on production-ready MinIO deployments.\n\n #. Use the MinIO Operator Console to create or manage a MinIO Tenant.\n #. Access the Encryption settings for that tenant and configure |SSE| using a supported Key Management System <#supported-kms-targets>.\n #. Create a new |EK| for use with |SSE|.\n #. Configure automatic bucket-default SSE-KMS <minio-encryption-sse-kms>.\n\n :sync: baremetal\n\n This procedure provides guidance for deploying MinIO configured to use KES and enable Server Side Encryption <minio-sse-data-encryption>.\n For instructions on running KES, see the KES docs <tutorials/getting-started/>.\n\n As part of this procedure, you will:\n\n #. Create a new |EK| for use with |SSE|.\n\n #. Create or modify a MinIO deployment with support for |SSE| using |KES|.\n Defer to the Deploy Distributed MinIO <minio-mnmd> tutorial for guidance on production-ready MinIO deployments.\n\n #. Configure automatic bucket-default SSE-KMS <minio-encryption-sse-kms>\n\n :start-after: start-kes-encrypted-backend-desc\n :end-before: end-kes-encrypted-backend-desc\n\nPrerequisites\n\nAccess to MinIO Cluster\n\n :sync: k8s\n\n You must have access to the Kubernetes cluster, with administrative permissions associated to your ``kubectl`` configuration.\n\n This procedure assumes your permission sets extends sufficiently to support deployment or modification of MinIO-associated resources on the Kubernetes cluster, including but not limited to pods, statefulsets, replicasets, deployments, and secrets.\n\n :sync: baremetal\n\n This procedure uses mc for performing operations on the MinIO cluster.\n Install ``mc`` on a machine with network access to the cluster.\n See the ``mc`` Installation Quickstart <mc-install> for instructions on downloading and installing ``mc``.\n\n This procedure assumes a configured alias <mc alias> for the MinIO cluster.\n\nEnsure KES Access to a Supported KMS Target\n\n :sync: k8s\n\n This procedure assumes an existing supported KMS installation <#supported-kms-targets> accessible from the Kubernetes cluster.\n\n - For deployments within the same Kubernetes cluster as the MinIO Tenant, you can use Kubernetes service names to allow the MinIO Tenant to establish connectivity to the target KMS service.\n\n - For deployments external to the Kubernetes cluster, you must ensure the cluster supports routing communications between Kubernetes services and pods and the external network.\n This may require configuration or deployment of additional Kubernetes network components and/or enabling access to the public internet.\n\n Defer to the documentation for your chosen KMS solution for guidance on deployment and configuration.\n\n :sync: baremetal\n\n This procedure assumes an existing KES installation connected to a supported |KMS| installation accessible, both accessible from the local host.\n Refer to the installation instructions for your supported KMS target <#supported-kms-targets> to deploy KES and connect it to a KMS solution.\n\n :class: important\n\n Some supported |KMS| targets allow you to seal or unseal the vault instance.\n KES returns an error if the configured |KMS| service is sealed.\n\n If you restart or otherwise seal your vault instance, KES cannot perform any cryptographic operations against the vault.\n You must unseal the Vault to ensure normal operations.\n\n See the documentation for your chosen |KMS| solution for more information on whether unsealing may be required.\n\nRefer to the configuration instruction in the KES documentation <> for your chosen supported |KMS|:\n\n- AWS Secrets Manager <integrations/aws-secrets-manager/>\n- Azure KeyVault <integrations/azure-keyvault/>\n- Entrust KeyControl <integrations/entrust-keycontrol/>\n- Fortanix SDKMS <integrations/fortanix-sdkms/>\n- Google Cloud Secret Manager <integrations/google-cloud-secret-manager/>\n- HashiCorp Vault <integrations/hashicorp-vault-keystore/>\n- Thales CipherTrust Manager (formerly Gemalto KeySecure) <integrations/thales-ciphertrust/>\n\nProcedure\n\nThis procedure provides instructions for configuring and enabling Server-Side Encryption using your selected `supported KMS solution <https://docs.min.io/community/minio-kes/#supported-kms-targets>`__ in production environments.\nSpecifically, this procedure assumes the following:\n\n- An existing production-grade KMS target\n- One or more KES servers conneLine truncated
{"text": "``mc admin bucket remote``\n\n :local:\n :depth: 2\n\n - ``mc admin bucket remote add`` replaced by mc replicate add\n - ``mc admin bucket remote update`` replaced by mc replicate update\n - ``mc admin bucket remote rm`` replaced by mc replicate rm\n - ``mc admin bucket remote ls`` replaced by mc replicate ls\n\n - ``mc admin bucket remote bandwidth`` replaced by mc replicate status\n\n Replication related statistics are moving to the ``mc replicate status`` command.\n\nDescription\n\nThe mc admin bucket remote command manages the ``ARN`` resources\nfor use with bucket replication <mc replicate>.\n\n :class: note\n\n :start-after: start-minio-only\n :end-before: end-minio-only\n\nExamples\n\nAdd a New Replication Target\n\nUse mc admin bucket remote add to create a new replication target\nARN for use with mc replicate add:\n\n :class: copyable\n\n mc admin bucket remote add SOURCE/BUCKET DESTINATION/BUCKET\n\n- Replace SOURCE <mc admin bucket remote add SOURCE> with the\n alias <mc alias> of the MinIO deployment to use as the replication\n target. Replace ``BUCKET`` with the full path of the bucket into which MinIO\n replicates objects from the ``DESTINATION``.\n\n- Replace DESTINATION <mc admin bucket remote add DESTINATION> with the\n alias <mc alias> of the MinIO deployment to use as the\n replication source. Replace ``BUCKET`` with the full path of the bucket from\n which MinIO replicates objects into the ``SOURCE``.\n\nRemove an Existing Replication Target\n\nUse mc admin bucket remote rm to remove a replication target from a\nbucket:\n\n :class: copyable\n\n mc admin bucket remote rm SOURCE/BUCKET --arn ARN\n\n- Replace SOURCE <mc admin bucket remote rm SOURCE> with the\n alias <mc alias> of the MinIO deployment being used as the\n replication source. Replace ``BUCKET`` with the full path of the bucket from\n which MinIO replicates objects.\n\n- Replace ARN <mc admin bucket remote rm ARN> with the\n ARN of the remote target.\n\nRemoving the target halts all in-progress\nbucket replication <mc replicate> to the target.\n\nRetrieve Configured Replication Targets\n\nUse mc replicate ls to list a bucket's configured replication targets:\n\n :class: copyable\n\n mc replicate ls ALIAS/PATH\n\n- Replace ALIAS <mc replicate ls ALIAS> with the alias <mc alias> of the MinIO deployment being used as the\n replication source.\n Replace ``PATH`` with the full path of the bucket from which MinIO replicates objects.\n\nSyntax\n\n :fullpath:\n\n - ``mc admin bucket remote add`` replaced by mc replicate add\n\n Adds a remote target to a bucket on a MinIO deployment. The\n command has the following syntax:\n\n :class: copyable\n\n mc admin bucket remote add SOURCE DESTINATION --service \"replication\" [FLAGS]\n\n The command accepts the following arguments:\n\n *Required*\n\n The full path to the bucket to which the command adds the remote target.\n Specify the alias <mc alias> of a configured MinIO deployment as\n the prefix to the bucket path. For example:\n\n :class: copyable\n\n mc admin bucket remote add play/mybucket\n\n *Required*\n\n The target MinIO deployment and bucket.\n\n Specify the full URL to the destination MinIO deployment and bucket\n using the following format:\n\n :class: copyable\n\n http(s)://ACCESSKEY:SECRETKEY@DESTHOSTNAME/DESTBUCKET\n\n - Replace ``ACCESSKEY`` with the access key for a user on the\n destination MinIO deployment.\n\n - Replace ``SECRETKEY`` with the secret key for a user on the\n destination MinIO deployment.\n\n - Replace ``DESTHOSTNAME`` with the hostname and port of the MinIO\n deployment (i.e. ``minio-server.example.net:9000``).\n\n - Replace ``DESTBUCKET`` with the bucket on the\n destination.\n\n *Required*\n\n Specify ``\"replication\"``.\n\n The region of the ~mc admin bucket remote add DESTINATION.\n\n Mutually exclusive with ~mc admin bucket remote add\n\n The bucket path lookup supported by the destination server. Specify\n one of the following:\n\n - ``on``\n - ``off``\n - ``auto`` (Default)\n\n Mutually exclusive with\n ~mc admin bucket remote add\n\n Enables synchronous replication, where MinIO attempts to replicate\n the object *prior* to returning the PUT object response. Synchronous\n replication may increase the time spent waiting for PUT operations\n to return successfully.\n\n By default, mc admin bucket remote add operates in\n asynchronous mode, where MinIO attempts replicating objects\n *after* returning the PUT object response.\n\n :fullpath:\n\n - ``mc admin bucket remote ls`` replaced by mc replicate ls\n\n Lists all remote targets associated to a bucket on the MinIO deployment.\n Use ``mc admin bucket remote ls --help`` for usage syntax.\n\n :fullpath:\n\n - ``mc admin bucket remote rm`` replaced by mc replicate rm\n\n Removes a remote target for a bucket on the MinIO deployment. The\n command has the following syntax:\n\n :class: copyable\n\n mc admin bucket remote rm SOURCE --arn ARN\n\n The command accepts the following arguments:\n\n *RLine truncated
{"text": "``mc admin profile``\n\n :local:\n :depth: 2\n\n This command has been replaced by mc support profile as of `mc` RELEASE.2023-04-06T16-51-10Z.\n\nDescription\n\nThe mc admin profile command generates profiling data for debugging\npurposes.\n\n :class: note\n\n :start-after: start-minio-only\n :end-before: end-minio-only\n\nProfile Data Format\n\nmc admin profile produces a ``ZIP`` archive ``profile.zip`` that\ncontains one or more ``.pprof`` files. Use the\n`pprof <https://github.com/google/pprof>`__ ``go`` utility to read the\nprofile data.\n\nExamples\n\nProfile Data for Single Resource\n\nUse mc admin profile start with the\n~mc admin profile start type flag to start profiling the\nresource:\n\n :class: copyable\n\n mc admin profile start --type \"TYPE\" ALIAS\n\n- Replace ALIAS <mc admin profile start TARGET> with the\n alias <mc alias> of the MinIO host.\n\n- Replace TYPE <mc admin profile start type> with the resource to\n profile.\n\nUse mc admin profile stop to stop profiling data from the specified\nresource and output the results:\n\n :class: copyable\n\n mc admin profile stop\n\nThe command outputs the profiled data as ``profile.zip``.\n\nProfile Data for Multiple Resources\n\nUse mc admin profile start with the\n~mc admin profile start type flag to start profiling the\nresources:\n\n :class: copyable\n\n mc admin profile start --type \"TYPE,[TYPE...]\" ALIAS\n\n- Replace ALIAS <mc admin profile start TARGET> with the\n alias <mc alias> of the MinIO host.\n\n- Replace TYPE <mc admin profile start type> with the resources to\n profile. Specify multiple resources as a comma-separated list.\n\nUse mc admin profile stop to stop profiling data from the specified\nresources and output the results:\n\n :class: copyable\n\n mc admin profile stop\n\nThe command outputs the profiled data as ``profile.zip``.\n\nSyntax\n\nmc admin profile has the following syntax:\n\n :class: copyable\n\n mc admin profile SUBCOMMAND\n\nmc admin profile supports the following subcommands:\n\n :fullpath:\n\n Starts collecting profiling data on the target MinIO deployment. The\n command has the following syntax:\n\n :class: copyable\n\n mc admin profile start [FLAGS] TARGET\n\n mc admin profile start supports the following arguments:\n\n The alias <mc alias> of a configured MinIO deployment from\n which the command collects profiling data.\n\n The type(s) of profiling data to collect from the\n ~mc admin profile start TARGET MinIO deployment.\n\n Specify one or more of the following supported types as a comma-separated\n list:\n\n - ``cpu``\n - ``mem``\n - ``block``\n - ``mutex``\n - ``trace``\n - ``threads``\n - ``goroutines``\n\n Defaults to ``cpu,mem,block`` if omitted.\n\n :fullpath:\n\n Stops the profiling process and returns the collected data as\n ``profile.zip``. The ``zip`` file contains one or more\n ``.pprof`` files which are readable with programs like the ``go``\n `pprof <https://github.com/google/pprof>`__ utility.\n\n The command has the following syntax:\n\n :class: copyable\n\n mc admin profile stop TARGET\n\n The command supports the following arguments:\n\n The alias <mc alias> of a configured MinIO deployment from\n which the command returns available profiling data.", "project": "minio-docs", "source": "source/reference/deprecated/mc-admin-profile.rst", "commit": "0f20cb5c667a6a5c833e6b369addb9a08f0440a7", "license": "CC-BY-4.0", "from": "deployment-docs.jsonl"}
{"text": "``mc ilm edit``\n\n :local:\n :depth: 2\n\n ``mc ilm edit`` replaced by mc ilm rule edit.\n\nSyntax\n\nThe mc ilm edit command modifies an existing object lifecycle management\nrule on a MinIO bucket.\n\n The following command modifies existing lifecycle management rules for\n the ``mydata`` bucket on the ``myminio`` deployment:\n\n :class: copyable\n\n mc ilm edit --id \"c79ntj94b0t6rukh6lr0\" --expiry-days 90 mydata/myminio\n\n mc ilm edit --id \"c79nu2p4b0t6qko19rgg\" --expired-object-delete-marker mydata/myminio\n\n mc ilm edit --id \"c79n19dn10dnab109fg1\" --transition-days 30 --tier \"COLDTIER\"\n\n The command modifies the specified rules as follows:\n\n - Delete objects more than 90 days old.\n - Delete ``DeleteMarker`` tombstones if that object has no other versions\n remaining.\n - Transition objects more than 30 days old to the ``COLDTIER`` remote\n tier.\n\n The command has the following syntax:\n\n :class: copyable\n\n mc [GLOBALFLAGS] ilm edit \\\n --id \"string\" \\\n [--prefix \"string\"] \\\n [--enable] \\\n [--disable] \\\n [--expiry-days \"string\" | --expired-object-delete-marker] \\\n [--transition-days \"string\"] --tier \"string\" \\\n [--noncurrentversion-expiration-days \"string\"] \\\n [--noncurrentversion-transition-days \"string\" --noncurrentversion-tier \"string\"] \\\n [--tags] \\\n ALIAS\n\n :start-after: start-minio-syntax\n :end-before: end-minio-syntax\n\nParameters\n\n :required:\n\n The alias <alias> and full path to the bucket on the MinIO\n deployment to which to modify the object lifecycle management rule. For\n example:\n\n mc ilm edit myminio/mydata\n\n :required:\n\n The unique ID of the rule. Use mc ilm rule ls to list bucket\n rules and retrieve the ``id`` for the rule you want to modify.\n\n :optional:\n\n Stop using the rule, but retain the rule for future use.\n Objects do not transition or expire when a rule is disabled.\n\n :optional:\n\n Use a rule to transition or expire objects.\n\n :optional:\n\n Restrict the management rule to a specific bucket prefix.\n\n For example:\n\n mc ilm edit --prefix \"meetingnotes/\" myminio/mydata/ --expiry-days \"90\"\n\n The command modifies a rule that expires objects in the ``mydata`` bucket of the ``myminio`` ALIAS after 90 days for any object with the ``meetingnotes/`` prefix.\n\n :optional:\n\n The number of days to retain an object after being created. MinIO\n marks the object for deletion after the specified number of days pass.\n\n Exercise caution when using this option, as its behavior can result in\n immediate expiration of uploaded objects. Any objects created *after*\n the specified expiration date are automatically eligible for expiration.\n Similarly, specifying a calendar date that is *prior* to the current\n system host datetime marks all objects covered by the rule for deletion.\n Consider immediately removing any ILM rule using this option once the\n specified calendar date has passed.\n\n For versioned buckets, the expiry rule applies only to the *current*\n object version. Use the\n ~mc ilm edit --noncurrentversion-expiration-days option\n to apply expiration behavior to noncurrent object versions.\n\n MinIO uses a scanner process <minio-concepts-scanner> to check objects against all configured\n lifecycle management rules. Slow scanning due to high IO workloads or\n limited system resources may delay application of lifecycle management\n rules. See minio-lifecycle-management-scanner for more information.\n\n Mutually exclusive with the following options:\n\n - ~mc ilm edit --expired-object-delete-marker\n\n See minio-object-delete for more information.\n\n :optional:\n\n Specify this option to direct MinIO to remove delete markers for\n objects with no remaining object versions. Specifically, the delete marker is\n the *only* remaining \"version\" of the given object.\n\n This option is mutually exclusive with the following option:\n\n - ~mc ilm edit --tags\n - ~mc ilm edit --expiry-days\n\n MinIO uses a scanner process <minio-concepts-scanner> to check objects against all configured\n lifecycle management rules. Slow scanning due to high IO workloads or\n limited system resources may delay application of lifecycle management\n rules. See minio-lifecycle-management-scanner and minio-object-delete for more information.\n\n :optional:\n\n The number of days to retain an object version after becoming\n *non-current* (i.e. a different version of that object is now the `HEAD`).\n MinIO marks noncurrent object versions for deletion after the specified\n number of days pass.\n\n This option has the same behavior as the\n S3 ``NoncurrentVersionExpiration`` action.\n\n MinIO uses a scanner process <minio-concepts-scanner> to check objects against all configured\n lifecycle management rules. Slow scanning due to high IO workloads or\n limited system resources may delay application of lifecycle management\n rules. See minio-lifecycle-management-scanner for more information.\n\n :optional:\n\n The numbLine truncated
{"text": "``mc ilm export``\n\n :local:\n :depth: 2\n\n ``mc ilm export`` replaced by mc ilm rule export.\n\nSyntax\n\nThe mc ilm export command exports the object lifecycle management\nconfiguration for a MinIO bucket.\n\nThe mc ilm export command outputs to ``STDOUT`` by default. You can\noutput the contents to a ``.json`` file for archival or ingestion using\nmc ilm import.\n\n The following command exports the lifecycle management configuration\n of the ``mydata`` bucket on the ``myminio`` deployment to the\n ``mydata-lifecycle-config.json`` file:\n\n :class: copyable\n\n mc ilm export myminio/mydata > mydata-lifecycle-config.json\n\n The command has the following syntax:\n\n :class: copyable\n\n mc [GLOBALFLAGS] ilm export ALIAS > STDOUT\n\n :start-after: start-minio-syntax\n :end-before: end-minio-syntax\n\nParameters\n\n *Required* The alias <alias> and full path to the bucket on the MinIO\n deployment for which to export object lifecycle management rules. For\n example:\n\n mc ilm export myminio/mydata > bucket-lifecycle.json\n\nGlobal Flags\n\n :start-after: start-minio-mc-globals\n :end-before: end-minio-mc-globals\n\nExamples\n\nExport the Bucket Lifecycle Management Configuration\n\n The following command exports the bucket lifecycle management\n configuration to the ``bucket-lifecycle.json`` file:\n\n :class: copyable\n\n mc ilm export myminio/mybucket > bucket-lifecycle.json\n\n :class: copyable\n\n mc ilm export ALIAS > file.json\n\n - Replace ``ALIAS`` with the alias <alias> of the MinIO\n deployment and the bucket for which to export object lifecycle\n management rules:\n\n ``myminio/mydata``\n\n - Replace ``file.json`` with the name of the file to which to export the\n lifecycle management rules.\n\nBehavior\n\nS3 Compatibility\n\n :start-after: start-minio-mc-s3-compatibility\n :end-before: end-minio-mc-s3-compatibility", "project": "minio-docs", "source": "source/reference/deprecated/mc-ilm-export.rst", "commit": "0f20cb5c667a6a5c833e6b369addb9a08f0440a7", "license": "CC-BY-4.0", "from": "deployment-docs.jsonl"}
{"text": "``mc encrypt clear``\n\n :local:\n :depth: 2\n\nSyntax\n\nThe mc encrypt clear command removes the current default\nencryption settings for a bucket.\n\n The following command removes the default encryption settings for\n the ``mydata`` bucket on the MinIO deployment associated with the\n ``myminio`` alias <alias>:\n\n :class: copyable\n\n mc encrypt clear myminio/mydata\n\n The command has the following syntax:\n\n :class: copyable\n\n mc [GLOBALFLAGS] encrypt clear ALIAS\n\n :start-after: start-minio-syntax\n :end-before: end-minio-syntax\n\nParameters\n\n The full path to the bucket on which to remove the default SSE mode.\n Specify the alias <alias> of the MinIO deployment as the prefix to the\n ALIAS path. For example:\n\n mc encrypt clear play/mybucket\n\nGlobal Flags\n\n :start-after: start-minio-mc-globals\n :end-before: end-minio-mc-globals\n\nExamples\n\nRemove the Automatic Server-Side Encryption Settings for a Bucket\n\n :class: copyable\n\n mc encrypt clear myminio/data\n\n :class: copyable\n\n mc encrypt clear ALIAS\n\n - Replace ``ALIAS`` with the alias <alias> of the\n MinIO deployment on which to remove automatic server-side bucket\n encryption.\n\nBehavior\n\nModifying Bucket Encryption Settings Does Not Affect Encrypted Objects\n\nDisabling automatic bucket encryption does *not* decrypt any objects in the\nbucket.\n\nTo permanently decrypt objects in the bucket, you can perform an in-place\ncopy after disabling object decryption. For versioned buckets, the\nprevious object versions remain encrypted.\n\nS3 Compatibility\n\n :start-after: start-minio-mc-s3-compatibility\n :end-before: end-minio-mc-s3-compatibility", "project": "minio-docs", "source": "source/reference/minio-mc/mc-encrypt-clear.rst", "commit": "0f20cb5c667a6a5c833e6b369addb9a08f0440a7", "license": "CC-BY-4.0", "from": "deployment-docs.jsonl"}
{"text": "``mc idp ldap accesskey create``\n\n :local:\n :depth: 2\n\nDescription\n\nThe mc idp ldap accesskey create allows you to add LDAP access key pairs.\n\n The following example creates a new access key pair with the same policy as the authenticated user on the ``minio`` alias <alias>:\n\n :class: copyable\n\n mc idp ldap accesskey create minio/\n\n The command has the following syntax:\n\n :class: copyable\n\n mc [GLOBALFLAGS] idp ldap accesskey create \\\n ALIAS \\\n [--access-key <value>] \\\n [--secret-key <value>] \\\n [--policy <value>] \\\n [--name <value>] \\\n [--description <value>] \\\n [--expiry <value>] \\\n [--expiry-duration <value>]\n\n - Replace ``ALIAS`` with the alias <alias> of a MinIO deployment configured for AD/LDAP integration.\n\n :start-after: start-minio-syntax\n :end-before: end-minio-syntax\n\nParameters\n\n :required:\n\n The alias <alias> of the MinIO deployment configured for AD/LDAP.\n\n For example:\n\n mc idp ldap accesskey create minio\n\n :optional:\n\n An access key to use for the account.\n The access key cannot contain the characters ``=`` (equal sign) or ``,`` (comma).\n\n Requires ~mc idp ldap accesskey create --secret-key\n\n :optional:\n\n A secret to use for the account.\n\n Requires ~mc idp ldap accesskey create --access-key\n\n :optional:\n\n File path to the JSON-formatted policy to use for the account.\n\n If not specified, the account uses the same policy as the authenticated user.\n\n :optional:\n\n A human-readable name to use for the account.\n\n :optional:\n\n Add a description for the service account.\n For example, you might specify the reason the access key exists.\n\n :optional:\n\n Length of time the access key pair should remain valid for use in ``#d#h#s`` format.\n\n For example, ``7d``, ``24h``, ``5d12h30s`` are valid strings.\n\n Mutually exclusive with ~mc idp ldap accesskey create --expiry.\n\n :optional:\n\n The date after which the access key expires.\n Enter the date in YYYY-MM-DD format.\n\n For example, to expire the credentials after December 31, 2024, enter ``2024-12-31``.\n\n Mutually exclusive with ~mc idp ldap accesskey create --expiry-duration.\n\n :optional:\n\n Use mc idp ldap accesskey create-with-login to access the functionality previously provided by this parameter.\n\n Prompts the user to log in using the LDAP credentials to use to generate the access key.\n Specify the URL of the LDAP-configured MinIO Server to use for the login prompt.\n\n Requires an interactive terminal.\n\nGlobal Flags\n\n :start-after: start-minio-mc-globals\n :end-before: end-minio-mc-globals\n\nBehavior\n\nS3 Compatibility\n\n :start-after: start-minio-mc-s3-compatibility\n :end-before: end-minio-mc-s3-compatibility\n\nExamples\n\nCreate a new access-key pair for the authenticated user\n\nThe following command creates a new access key pair to use with the currently authenticated user on the ``minio`` alias.\nThe command outputs a randomly generated access key and secret key.\n\n :class: copyable\n\n mc idp ldap accesskey create minio\n\nCreate a new access-key pair with a custom access key and secret key\n\nThe following command creates a new access key pair with both an access key and secret key that you specify for the user currently authenticated on the ``minio`` alias.\n\n :class: copyable\n\n mc idp ldap accesskey create minio/ --access-key my-access-key-change-me --secret-key my-secret-key-change-me\n\nCreate a new access-key pair that expires after 24 hours\n\nThe following command creates a new access key pair to use with the currently authenticated user on the ``minio`` alias.\nThe credentials expire after 24 hours.\n\nThe command outputs a randomly generated access key and secret key.\n\n :class: copyable\n\n mc idp ldap accesskey create minio --expiry-duration 24h\n\nCreate a new access-key and prompt to login as the user\n\nThe following command creates a new access key pair.\nThe MinIO Client will first ask you to log in as the user the access key is for on the MinIO site configured for LDAP at ``minio.example.com``.\n\nThe command outputs a randomly generated access key and secret key.\n\n :class: copyable\n\n mc idp ldap accesskey create minio --login minio.example.com\n\nCreate a new access-key pair that expires after a date\n\nThe following command creates a new access key pair to use with the currently authenticated user on the ``minio`` alias.\nThe credentials expire after February 29, 2024.\n\nThe command outputs a randomly generated access key and secret key.\n\n :class: copyable\n\n mc idp ldap accesskey create minio --expiry 2024-02-29", "project": "minio-docs", "source": "source/reference/minio-mc/mc-idp-ldap-accesskey-create.rst", "commit": "0f20cb5c667a6a5c833e6b369addb9a08f0440a7", "license": "CC-BY-4.0", "from": "deployment-docs.jsonl"}
{"text": "``mc ilm rule import``\n\n :local:\n :depth: 2\n\n ``mc ilm rule import`` replaces ``mc ilm import``.\n\nSyntax\n\nThe mc ilm rule import command imports an object lifecycle management\nconfiguration and applies it to a MinIO bucket.\n\nThe mc ilm rule import command imports from ``STDIN`` by default.\nYou can input the contents from a ``.json`` file, such as one produced by mc ilm rule export.\n\n The following command imports the lifecycle management configuration from\n ``mydata-lifecycle-config.json`` and applies it to the ``mydata`` bucket on the ``myminio`` deployment:\n\n :class: copyable\n\n mc ilm rule import myminio/mydata < mydata-lifecycle-config.json\n\n The command has the following syntax:\n\n :class: copyable\n\n mc [GLOBALFLAGS] ilm rule import ALIAS < STDIN\n\n :start-after: start-minio-syntax\n :end-before: end-minio-syntax\n\nParameters\n\n :required:\n\n The alias <alias> and full path to the bucket on the MinIO deployment into which to import object lifecycle management rules.\n For example:\n\n mc ilm rule import myminio/mydata < bucket-lifecycle.json\n\nGlobal Flags\n\n :start-after: start-minio-mc-globals\n :end-before: end-minio-mc-globals\n\nExamples\n\nImport the Bucket Lifecycle Management Configuration\n\n The following command imports the bucket lifecycle management\n configuration from the ``bucket-lifecycle.json`` file:\n\n :class: copyable\n\n mc ilm rule import myminio/mybucket < bucket-lifecycle.json\n\n :class: copyable\n\n mc ilm rule import ALIAS < file.json\n\n - Replace ``ALIAS`` with the alias <alias> of the MinIO\n deployment and the bucket into which to import object lifecycle\n management rules:\n\n ``myminio/mydata``\n\n - Replace ``file.json`` with the name of the file from which to import the\n lifecycle management rules.\n\nRequired Permissions\n\nFor permissions required to import rules, refer to the required permissions <minio-mc-ilm-rule-permissions> on the parent command.\n\nBehavior\n\nImporting Configuration Overrides Existing Rules\n\nmc ilm rule import replaces the current bucket lifecycle management\nrules with those defined in the imported JSON configuration.\n\nS3 Compatibility\n\n :start-after: start-minio-mc-s3-compatibility\n :end-before: end-minio-mc-s3-compatibility", "project": "minio-docs", "source": "source/reference/minio-mc/mc-ilm-rule-import.rst", "commit": "0f20cb5c667a6a5c833e6b369addb9a08f0440a7", "license": "CC-BY-4.0", "from": "deployment-docs.jsonl"}
{"text": "``mc ilm tier info``\n\n :local:\n :depth: 2\n\nDescription\n\nThe mc ilm tier info command outputs statistics about a tier or all tiers for a deployment.\n\nRequired Permissions\n\nMinIO requires the following permissions scoped to to the bucket or buckets\nfor which you are creating lifecycle management rules.\n\n- s3:PutLifecycleConfiguration\n- s3:GetLifecycleConfiguration\n\nMinIO also requires the following administrative permissions on the cluster\nin which you are creating remote tiers for object transition lifecycle\nmanagement rules:\n\n- admin:SetTier\n- admin:ListTier\n\nFor example, the following policy provides permission for configuring object\ntransition lifecycle management rules on any bucket in the cluster:.\n\n :language: json\n :class: copyable\n\nSyntax\n\nThe command has the following syntax:\n\n The following example outputs the configuration for an existing remote tier called ``WARM-TIER`` on the ``myminio`` deployment.\n\n :class: copyable\n\n mc ilm tier info myminio WARM-TIER\n\n The command has the following syntax:\n\n :class: copyable\n\n mc ilm tier info TARGET TIER_NAME\n\nParameters\n\nThe command accepts the following arguments:\n\n :required:\n\n The alias <mc alias> of a configured MinIO deployment on which the desired tier exists.\n\n :optional:\n\n The name of an existing remote tier to display.\n\n You **must** specify the tier in all-caps, e.g. ``WARM_TIER``.\n\n If not specified, MinIO lists statistics for all existing tiers on the deployment.\n\nGlobal Flags\n\n :start-after: start-minio-mc-globals\n :end-before: end-minio-mc-globals\n\nExample\n\nDisplay the Statistics for an Existing Tier\n\nThe following example displays the statistics of the tier ``WARM-TIER`` on the ``myminio`` deployment.\n\n :class: copyable\n\n mc ilm tier info myminio WARM-TIER\n\nDisplay the Statistics for all Existing Tiers on a Deployment\n\nThe following example displays the statistics of all existing tiers on the ``myminio`` deployment.\n\n :class: copyable\n\n mc ilm tier info myminio\n\nS3 Compatibility\n\n :start-after: start-minio-mc-s3-compatibility\n :end-before: end-minio-mc-s3-compatibility\n\nRequired Permissions\n\nFor permissions required to review a tier, refer to the required permissions <minio-mc-ilm-tier-permissions> on the parent command.", "project": "minio-docs", "source": "source/reference/minio-mc/mc-ilm-tier-info.rst", "commit": "0f20cb5c667a6a5c833e6b369addb9a08f0440a7", "license": "CC-BY-4.0", "from": "deployment-docs.jsonl"}
{"text": "``mc pipe``\n\n :local:\n :depth: 2\n\nSyntax\n\nThe mc pipe command streams content from `STDIN <https://www.gnu.org/software/libc/manual/html_node/Standard-Streams.html>`__ to a target object.\n\n The following command writes contents of ``STDIN`` to an S3 compatible storage.\n\n :class: copyable\n\n echo \"My Meeting Notes\" | mc pipe s3/engineering/meeting-notes.txt\n\n The command has the following syntax:\n\n :class: copyable\n\n mc [GLOBALFLAGS] pipe \\\n TARGET \\\n [--attr \"string\"] \\\n [--checksum \"string\"] \\\n [--enc-kms \"string\"] \\\n [--enc-s3 \"string\"] \\\n [--enc-c \"string\"] \\\n [--storage-class, --sc \"string\"] \\\n [--tags \"string\"]\n\n :start-after: start-minio-syntax\n :end-before: end-minio-syntax\n\n ``mc pipe`` now supports concurrent uploads for better throughput of large streams.\n\nParameters\n\n :required:\n\n The full path to the alias <minio-mc-alias> or prefix where the command should run.\n\n :optional:\n\n Add custom metadata for the object.\n\n Specify key-value pairs as ``KEY=VALUE\\;``, separating each pair with a back slash and semicolon (``\\;``).\n For example, ``--attr key1=value1\\;key2=value2\\;key3=value3``.\n\n :optional:\n\n Add a checksum to an uploaded object.\n\n Valid values are:\n - ``MD5``\n - ``CRC32``\n - ``CRC32C``\n - ``SHA1``\n - ``SHA256``\n\n The flag requires server trailing headers and works with AWS or MinIO targets.\n\n :start-after: start-minio-mc-sse-options\n :end-before: end-minio-mc-sse-options\n\n :optional:\n\n Set the storage class for the new object at the ~mc pipe TARGET.\n\n See Amazons documentation <AmazonS3/latest/dev/storage-class-intro.html> for more information on S3 storage classes.\n\n :optional:\n\n Applies one or more tags to the TARGET.\n\n Specify an ampersand-separated list of key-value pairs as ``KEY1=VALUE1&KEY2=VALUE2``, where each pair represents one tag to assign to the objects.\n\nGlobal Flags\n\n :start-after: start-minio-mc-globals\n :end-before: end-minio-mc-globals\n\nExamples\n\nWrite Contents of ``STDIN`` to the Local Filesystem\n\nThe following command writes the contents of STDIN to the ``/tmp`` folder on the local filesystem.\n\n :class: copyable\n\n mc pipe /tmp/hello-world.go\n\nCopy an ISO Image to S3 Storage\n\nThe following command first streams the contents of an iso image for Debian and then uses the stream to create the object at an S3 path.\n\n :class: copyable\n\n cat debian-live-11.5.0-amd64-mate.iso | mc pipe s3/opensource-isos/debian-11-5.iso\n\nStream MySQL Database Dump to S3\n\nThe following command first streams a MySQL database and uses the stream to create a backup on S3 with mc pipe:\n\n :class: copyable\n\n mysqldump -u root -p ******* accountsdb | mc pipe s3/sql-backups/backups/accountsdb-sep-28-2022.sql\n\nWrite a File to a Reduced Redundancy Storage Class\n\nThe following command takes the STDIN stream and creates an object on the Reduced Redundancy storage class on S3.\n\n :class: copyable\n\n mc pipe --storage-class REDUCED_REDUNDANCY s3/personalbuck/meeting-notes.txt\n\nCopy a File to a MinIO Deployment with Metadata\n\nThe following command uploads an MP3 file to a MinIO deployment with an ALIAS of ``myminio`` and a ``music`` bucket.\nThe object writes with some metadata for ``Cache-Control`` and ``Artist``.\n\n :class: copyable\n\n cat music.mp3 | mc pipe --attr \"Cache-Control=max-age=90000,min-fresh=9000;Artist=Unknown\" myminio/music/guitar.mp3\n\nSet Tags on Uploaded Objects\n\nThe following command creates an object on a MinIO deployment with an ALIAS of ``myminio`` in bucket ``mybucket`` with two tags.\nMinIO supports adding up to 10 custom tags to an object.\n\n :class: copyable\n\n tar cvf - . | mc pipe --tags \"category=prod&type=backup\" myminio/mybucket/backup.tar", "project": "minio-docs", "source": "source/reference/minio-mc/mc-pipe.rst", "commit": "0f20cb5c667a6a5c833e6b369addb9a08f0440a7", "license": "CC-BY-4.0", "from": "deployment-docs.jsonl"}
{"text": "``mc retention clear``\n\n :local:\n :depth: 2\n\nSyntax\n\nThe mc retention clear command removes the\nWrite-Once Read-Many (WORM) locking <minio-object-locking> settings for\nan object or object(s) in a bucket. You can also remove the default object lock\nsettings for a bucket.\n\nTo change the retention status of an object under\nlegal hold <minio-object-locking-legalhold>, use\nmc legalhold clear.\n\n The following command removes the default object lock configuration for\n the ``mydata`` bucket on the ``myminio`` MinIO deployment:\n\n :class: copyable\n\n mc retention clear --default myminio/mydata\n\n The command has the following syntax:\n\n :class: copyable\n\n mc [GLOBALFLAGS] retention clear \\\n [--default] \\\n [--recursive] \\\n [--rewind \"string\"] \\\n [--version-id \"string\"]* \\\n [--versions] \\\n ALIAS\n\n :start-after: start-minio-syntax\n :end-before: end-minio-syntax\n\n mc retention clear --version-id is mutually exclusive with\n multiple other parameters. See the reference documentation for more\n information.\n\nParameters\n\n :required:\n\n The full path to the object or objects for which to clear\n the object lock configuration. Specify the alias <mc alias> of a\n configured S3-compatible service as the prefix to the ``ALIAS`` bucket\n path. For example:\n\n mc retention clear play/mybucket/object.txt\n\n - If the ``ALIAS`` specifies a bucket or bucket prefix, include\n ~mc retention clear --recursive to clear the object lock\n settings to the bucket contents.\n\n - If the ``ALIAS`` bucket has versioning enabled,\n mc retention clear by default applies to only the latest\n object version. Use ~mc retention clear --version-id or\n ~mc retention clear --versions to clear the object lock\n settings for a specific version or for all versions of the object.\n\n :optional:\n\n Clears the default object lock settings for the bucket specified\n to ~mc retention clear ALIAS.\n\n If specifying ~mc retention clear --default,\n mc retention clear ignores all other flags.\n\n :optional:\n\n Recursively clears the object lock settings for all objects in the\n specified ~mc retention clear ALIAS path.\n\n Mutually exclusive with ~mc retention clear --version-id.\n\n :optional:\n\n :start-after: start-rewind-desc\n :end-before: end-rewind-desc\n\n :optional:\n\n :start-after: start-version-id-desc\n :end-before: end-version-id-desc\n\n Mutually exclusive with any of the following flags:\n\n - ~mc retention clear --versions\n - ~mc retention clear --rewind\n - ~mc retention clear --recursive\n\n :optional:\n\n :start-after: start-versions-desc\n :end-before: end-versions-desc\n\n Use ~mc retention clear --versions and\n ~mc retention clear --rewind together to remove the\n retention settings from all object versions that existed at a\n specific point-in-time.\n\nGlobal Flags\n\n :start-after: start-minio-mc-globals\n :end-before: end-minio-mc-globals\n\nExamples\n\nClear Object Lock Settings for an Object or Object(s)\n\n :class: copyable\n\n mc retention clear ALIAS/PATH\n\n - Replace ALIAS <mc retention clear ALIAS> with the\n alias <mc alias> of a configured S3-compatible host.\n\n - Replace PATH <mc retention clear ALIAS> with the path to the\n object.\n\n Use mc retention clear with\n ~mc retention clear --recursive to clear the retention\n settings from all objects in a bucket:\n\n :class: copyable\n\n mc retention clear --recursive ALIAS/PATH\n\n - Replace ALIAS <mc retention clear ALIAS> with the\n alias <mc alias> of a configured S3-compatible host.\n\n - Replace PATH <mc retention clear ALIAS> with the path to the\n bucket.\n\n :start-after: start-command-requires-locking-desc\n :end-before: end-command-requires-locking-desc\n\nS3 Compatibility\n\n :start-after: start-minio-mc-s3-compatibility\n :end-before: end-minio-mc-s3-compatibilit", "project": "minio-docs", "source": "source/reference/minio-mc/mc-retention-clear.rst", "commit": "0f20cb5c667a6a5c833e6b369addb9a08f0440a7", "license": "CC-BY-4.0", "from": "deployment-docs.jsonl"}
{"text": "``mc retention``\n\n :local:\n :depth: 2\n\nDescription\n\nThe mc retention command configures the Write-Once Read-Many (WORM) locking <minio-object-locking> settings for an object or object(s) in a bucket.\nYou can also set the default object lock settings for a bucket, where all objects without explicit object lock settings inherit the bucket default.\n\nSubcommands\n\nmc retention includes the following subcommands:\n\n :header-rows: 1\n :widths: 30 70\n :width: 100%\n\n * - Subcommand\n - Description\n\n * - ~mc retention clear\n - .. include:: /reference/minio-mc/mc-retention-clear.rst\n :start-after: start-mc-retention-clear-desc\n :end-before: end-mc-retention-clear-desc\n\n * - ~mc retention info\n - .. include:: /reference/minio-mc/mc-retention-info.rst\n :start-after: start-mc-retention-info-desc\n :end-before: end-mc-retention-info-desc\n\n * - ~mc retention set\n - .. include:: /reference/minio-mc/mc-retention-set.rst\n :start-after: start-mc-retention-set-desc\n :end-before: end-mc-retention-set-desc\n\n :titlesonly:\n :hidden:\n\n /reference/minio-mc/mc-retention-set\n /reference/minio-mc/mc-retention-info\n /reference/minio-mc/mc-retention-clear", "project": "minio-docs", "source": "source/reference/minio-mc/mc-retention.rst", "commit": "0f20cb5c667a6a5c833e6b369addb9a08f0440a7", "license": "CC-BY-4.0", "from": "deployment-docs.jsonl"}
{"text": "``mc sql``\n\n :local:\n :depth: 2\n\nSyntax\n\nThe mc sql command provides an S3 Select interface for performing sql queries on objects in the specified MinIO deployment.\n\nSee Selecting content from objects <selecting-content-from-objects> for more information on S3 Select behavior and limitations.\n\n The following command queries all objects in the ``mydata`` bucket on the ``myminio`` MinIO deployment:\n\n :class: copyable\n\n mc sql --recursive --query \"select * from S3Object\" myminio/mydata\n\n The command has the following syntax:\n\n :class: copyable\n\n mc [GLOBALFLAGS] mc sql \\\n --query \"string\" \\\n [--csv-input \"string\"] \\\n [--compression \"string\"] \\\n [--csv-output \"string\"] \\\n [--csv-output-header \"string\"] \\\n [--enc-c \"string\"] \\\n [--json-input \"string\"] \\\n [--json-output \"string\"] \\\n [--recursive] \\\n ALIAS\n\n :start-after: start-minio-syntax\n :end-before: end-minio-syntax\n\nParameters\n\n :required:\n\n The full path to the bucket or object to run the SQL query against.\n Specify the alias <alias> of a configured S3 service as the prefix to the ``ALIAS`` path.\n For example:\n\n mc sql [FLAGS] play/mybucket\n\n :required:\n\n The SQL statement to execute on the specified ~mc sql ALIAS directory or object.\n Wrap the entire SQL query in double quotes ``\"``.\n\n Defaults to ``\"select * from S3Object\"``.\n\n :optional:\n\n The data format for ``.csv`` input objects.\n Specify a string of comma-seperated ``key=value,...`` pairs.\n See mc-sql-csv-format for more information on valid keys.\n\n :optional:\n\n The compression type of the input object.\n Specify one of the following supported values:\n\n - ``GZIP``\n - ``BZIP2``\n - ``NONE`` (default)\n\n Compression schemes supported by MinIO backend only:\n\n - ``ZSTD`` `Zstandard <https://facebook.github.io/zstd/>`__\n - ``LZ4`` `LZ4 <https://lz4.github.io/lz4/>`__ stream\n - ``S2`` `S2 <https://github.com/klauspost/compress/tree/master/s2#s2-compression>`__ framed stream\n - ``SNAPPY`` `Snappy <http://google.github.io/snappy/>`__ framed stream\n\n :optional:\n\n The data format for ``.csv`` output.\n Specify a string of comma-seperated ``key=value,...`` pairs.\n See mc-sql-csv-format for more information on valid keys.\n\n See the S3 API CSVOutput <API_CSVOutput.html> for more information.\n\n :optional:\n\n The header row of the ``.csv`` output file.\n Specify a string of comma-separated fields as ``field1,field2,...``.\n\n Omit to output a ``.csv`` with no header row.\n\n :start-after: start-minio-mc-sse-c-only\n :end-before: end-minio-mc-sse-options\n\n :optional:\n\n The data format for ``.json`` or ``.ndjson`` input objects.\n Specify the type of the JSON contents as ``type=<VALUE>``.\n The value can be either:\n\n - ``DOCUMENT`` - JSON `document <https://www.json.org/json-en.html>`__.\n - ``LINES`` - JSON `lines <http://jsonlines.org/>`__.\n\n See the S3 API JSONInput <API_JSONInput.html> for more information.\n\n :optional:\n\n The data format for the ``.json`` output.\n Supports the ``rd=value`` key, where ``rd`` is the ``RecordDelimiter`` for the JSON document.\n\n Omit to use the default newline character ``\\n``.\n\n See the S3 API JSONOutput <API_JSONOutput.html> for more information.\n\n :optional:\n\n Recursively searches the specified ~mc sql ALIAS directory using the ~mc sql --query SQL statement.\n\nGlobal Flags\n\n :start-after: start-minio-mc-globals\n :end-before: end-minio-mc-globals\n\nExamples\n\nSelect all Columns in all Objects in a Bucket\n\nUse mc sql with the ~mc sql --recursive and ~mc sql --query options to apply the query to all objects in a bucket:\n\n :class: copyable\n\n mc sql --recursive --query \"select * from S3Object\" ALIAS/PATH\n\n- Replace ALIAS <mc sql ALIAS> with the alias <alias> of the MinIO deployment.\n\n- Replace PATH <mc sql ALIAS> with the path to the bucket on the MinIO deployment.\n\nRun an Aggregation Query on an Object\n\nUse mc sql with the ~mc sql --query option to query an object on an MinIO deployment:\n\n mc sql --query \"select count(s.power) from S3Object\" ALIAS/PATH\n\n- Replace ALIAS <mc sql ALIAS> with the alias <alias> of the MinIO deployment.\n\n- Replace PATH <mc sql ALIAS> with the path to the object on the MinIO deployment.\n\nBehavior\n\nInput Formats\n\nmc sql supports the following input formats:\n\n :header-rows: 1\n\n * - Type\n - ``content-type`` Value\n\n * - ``.csv``\n - ``text/csv``\n\n * - ``.json``\n - ``application/json``\n\n * - ``.parquet``\n - none\n\nFor ``.csv`` file types, use mc sql --csv-input to specify the CSV data format.\nSee mc-sql-csv-format for more information on CSV formatting fields.\n\nFor ``.json`` file types, use mc sql --json-input to specify the JSON data format.\n\nFor ``.parquet`` file types, mc sql automatically interprets the data format.\n\nmc sql determines the type by the file extension of the target object.\nFor example, an object named ``data.json`` is interpreted as a JSON file.\nLine truncated
{"text": "``mc tree``\n\n :local:\n :depth: 2\n\nSyntax\n\nThe mc tree command lists all prefixes inside a MinIO bucket in a tree\nformat. The command optionally supports listing all objects inside of bucket\nat each prefix, including the bucket root.\n\nYou can also use mc tree against a local filesystem directory to\nproduce similar results to the ``tree`` commandline tool.\n\n The following command prints a complete tree of all objects at any\n depth in the ``mydata`` bucket on the ``myminio`` MinIO deployment:\n\n :class: copyable\n\n mc tree --files myminio/mydata\n\n The command has the following syntax:\n\n :class: copyable\n\n mc [GLOBALFLAGS] tree \\\n [--depth int] \\\n [--files] \\\n [--rewind \"string\"] \\\n\n :start-after: start-minio-syntax\n :end-before: end-minio-syntax\n\nParameters\n\n *Required* The alias <alias> of a MinIO deployment and the\n full path to the bucket to list the tree hierarchy. For example:\n\n mc tree myminio/mybucket\n\n You can specify multiple targets to the mc tree command. For\n example:\n\n mc tree myminio/mybucket myminio/myotherbucket\n\n For retrieving the tree heirarchy of a local filesystem directory,\n specify the full path to that directory. For example:\n\n mc tree ~/minio/mydata/\n\n *Optional* Limit the tree depth to the specified integer value.\n\n Defaults to ``-1`` or unlimited depth.\n\n *Optional* Includes files in the object or directory in the mc tree\n output.\n\n :optional:\n\n :start-after: start-rewind-desc\n :end-before: end-rewind-desc\n\nExamples\n\n :class: copyable\n\n mc tree ALIAS/PATH\n\n- Replace ALIAS <mc tree ALIAS> with the alias <alias>\n of the MinIO deployment.\n\n- Replace PATH <mc tree ALIAS> with the path to the bucket on the\n MinIO deployment.\n\nBehavior\n\nS3 Compatibility\n\n :start-after: start-minio-mc-s3-compatibility\n :end-before: end-minio-mc-s3-compatibility", "project": "minio-docs", "source": "source/reference/minio-mc/mc-tree.rst", "commit": "0f20cb5c667a6a5c833e6b369addb9a08f0440a7", "license": "CC-BY-4.0", "from": "deployment-docs.jsonl"}
{"text": "``mc admin kms key``\n\n :local:\n :depth: 2\n\nDescription\n\nThe mc admin kms key command performs cryptographic key management\noperations through the MinIO Key Encryption Service (KES).\n\n :class: note\n\n :start-after: start-minio-only\n :end-before: end-minio-only\n\n Return to this section as part of the KES documentation. There's a lot here\n that only makes sense once we can link to KES overview + config.\n\nSyntax\n\n :fullpath:\n\n Creates a new master key on a Key Management System (KMS).\n\n The command has the following syntax:\n\n :class: copyable\n\n mc admin kms key create TARGET [KEY_NAME]\n\n The command accepts the following arguments:\n\n Specify the alias <mc alias> of a configured MinIO deployment.\n\n The ``TARGET`` deployment **must** include a configured\n MinIO Key Encryption Service (KES) server.\n\n Specify the name of the new master key.\n\n :fullpath:\n\n Requests information on a Key Management System (KMS) master key.\n\n The command has the following syntax:\n\n :class: copyable\n\n mc admin kms key status TARGET [KEY_NAME]\n\n The command accepts the following arguments:\n\n Specify the alias <mc alias> of a configured MinIO deployment.\n\n The ``TARGET`` deployment **must** include a configured MinIO Key\n Encryption Service (KES) server.\n\n Specify the name of a master key on the KMS.\n\n Omit this argument to return the default master key on the\n ~mc admin kms key status TARGET deployment.\n\n :fullpath:\n\n List all Key Management System (KMS) keys for a MinIO instance.\n\n The command has the following syntax:\n\n :class: copyable\n\n mc admin kms key list TARGET\n\n The command accepts the following argument:\n\n Specify the alias <mc alias> of a configured MinIO deployment.\n\n The ``TARGET`` deployment **must** include a configured MinIO Key Encryption Service (KES) server.", "project": "minio-docs", "source": "source/reference/minio-mc-admin/mc-admin-kms-key.rst", "commit": "0f20cb5c667a6a5c833e6b369addb9a08f0440a7", "license": "CC-BY-4.0", "from": "deployment-docs.jsonl"}
{"text": "``mc admin policy attach``\n\n :local:\n :depth: 2\n\nSyntax\n\nAttaches one or more IAM policies to either a MinIO-managed user or a group <minio-users>.\n\n To successfully attach a policy, the referenced user or group must exist.\n\nExactly one ~mc admin policy attach --user or one ~mc admin policy attach --group is required.\n\n The following command attaches the ``readonly`` policy to the user ``james`` on the deployment at alias ``myminio``.\n\n :class: copyable\n\n mc admin policy attach myminio readonly --user james\n\n The command has the following syntax:\n\n :class: copyable\n\n mc admin policy attach \\\n TARGET \\\n POLICY \\\n [POLICY...] \\\n [--user USER | --group GROUP]\n\n :start-after: start-minio-syntax\n :end-before: end-minio-syntax\n\n This command is intended for managing policy associations for MinIO-managed <minio-users> users only.\n\n For attaching policies to OpenID-managed users, see minio-external-identity-management-openid.\n\n For attaching policies to Active Directory/LDAP users or groups, use mc idp ldap policy attach.\n\nParameters\n\nThe mc admin policy attach command accepts the following arguments:\n\n :required:\n\n The alias <mc alias> of a configured MinIO deployment with the user or group for which you want to attach one or more policies.\n\n :required:\n\n The name of the policy to attach to either the user or the group.\n\n You may attach multiple policies at once by separating each policy name with a space.\n\n MinIO deployments include the following built-in policies <minio-policy-built-in> by default:\n\n - readonly\n - readwrite\n - diagnostics\n - writeonly\n\n :optional:\n\n The username of the identity you want to attach the policy or policies to.\n You may only list one user.\n\n You must include either the ``--user`` flag or the ``--group`` flag.\n You may not use the ``--user`` flag at the same time as the ``--group`` flag.\n\n :optional:\n\n The name of the group identity you want to attach the policy or policies to.\n You may only list one group.\n\n All users with membership in the group inherit the policies associated to the group.\n\n You must include either the ``--group`` flag or the ``--user`` flag.\n You may not use the ``--group`` flag at the same time as the ``--user`` flag.\n\nGlobal Flags\n\n :start-after: start-minio-mc-globals\n :end-before: end-minio-mc-globals\n\nExamples\n\nAttach the ``readonly`` policy to user ``james`` on the deployment at alias ``myminio``.\n\n :class: copyable\n\n mc admin policy attach myminio readonly --user james\n\nAttach the ``audit-policy`` and ``acct-policy`` policies to group ``legal`` on the deployment at alias ``myminio``.\n\n :class: copyable\n\n mc admin policy attach myminio audit-policy acct-policy --group legal", "project": "minio-docs", "source": "source/reference/minio-mc-admin/mc-admin-policy-attach.rst", "commit": "0f20cb5c667a6a5c833e6b369addb9a08f0440a7", "license": "CC-BY-4.0", "from": "deployment-docs.jsonl"}
{"text": "``mc admin prometheus metrics``\n\n :local:\n :depth: 2\n\nDescription\n\nThe mc admin prometheus metrics command prints Prometheus metrics for a cluster.\n\nThe output includes additional information about each metric, such as if its value is a ``counter`` or ``gauge``.\n\nFor more complete documentation on using MinIO with Prometheus, see How to monitor MinIO server with Prometheus <minio-metrics-collect-using-prometheus>\n\nStarting with MinIO Server RELEASE.2024-07-15T19-02-30Z and MinIO Client RELEASE.2024-07-11T18-01-28Z, metrics version 3 (v3) <minio-metrics-and-alerts> provides additional endpoints and metrics.\nTo print v3 metrics use the ``--api_version v3`` option.\n\nMinIO recommends new deployments use version 3 (v3) <minio-metrics-and-alerts>.\nExisting deployments can continue to use metrics version 2 <minio-metrics-v2>\n\n :class: note\n\n :start-after: start-minio-only\n :end-before: end-minio-only\n\n The following command prints cluster metrics from the deployment at alias ``myminio``:\n\n :class: copyable\n\n mc admin prometheus metrics myminio cluster\n\n The command has the following syntax:\n\n :class: copyable\n\n mc [GLOBALFLAGS] admin prometheus metrics \\\n ALIAS \\\n [TYPE] \\\n [--api_version v3] \\\n [--bucket <bucket name>]\n\n :start-after: start-minio-syntax\n :end-before: end-minio-syntax\n\nParameters\n\n :required:\n\n The alias <mc alias> of a configured MinIO deployment for which the command prints metrics.\n\n :optional:\n\n To print version 3 (v3) <minio-metrics-and-alerts> metrics, include an ``--api-version v3`` parameter.\n ``v3`` is the only accepted value.\n\n Omit ``--api-version`` to print version 2 (v2) <minio-metrics-v2> metrics.\n\n :optional:\n\n Requires ~mc admin prometheus metrics --api-version.\n For v3 metric types that return bucket-level metrics, specify a bucket name.\n\n ``--bucket`` works for the following v3 metric types:\n\n - ``api``\n - ``replication``\n\n The following example prints API metrics for the bucket ``mybucket``:\n\n :class: copyable\n\n mc admin prometheus metrics ALIAS api --bucket mybucket --api-version v3\n\n :optional:\n\n The type of metrics to print.\n\n Valid values for metrics version 3 are:\n\n - ``api``\n - ``audit``\n - ``cluster``\n - ``debug``\n - ``ilm``\n - ``logger``\n - ``notification``\n - ``replication``\n - ``scanner``\n - ``system``\n\n If not specified, a ``v3`` command returns all metrics.\n\n Valid values for metrics version 2 are:\n\n - ``bucket``\n - ``cluster``\n - ``node``\n - ``resource``\n\n If not specified, a ``v2`` command returns cluster metrics.\n Cluster metrics include rollups of certain node metrics.\n\nGlobal flags\n\n :start-after: start-minio-mc-globals\n :end-before: end-minio-mc-globals\n\nExamples\n\nPrint v3 metrics\n\nUse mc admin prometheus metrics --api-version v3 <mc admin prometheus metrics --api-version> to print all available v3 metrics and their current values for a MinIO deployment:\n\n :class: copyable\n\n mc admin prometheus metrics ALIAS --api-version v3\n\n- Replace ``ALIAS`` with the alias <mc alias> of the MinIO deployment.\n\nTo print a specific type of metrics, include the ~mc admin prometheus metrics TYPE.\nThe following prints all scanner metrics for a deployment:\n\n :class: copyable\n\n mc admin prometheus metrics ALIAS scanner --api-version v3\n\nPrint v3 API or bucket replication metrics\n\nCertain v3 metric types accept a ~mc admin prometheus metrics --bucket parameter to specify the bucket for which to print metrics.\nThe following example prints v3 replication metrics for bucket ``mybucket``:\n\n :class: copyable\n\n mc admin prometheus metrics ALIAS replication --bucket mybucket --api-version v3\n\n- Replace ``ALIAS`` with the alias <mc alias> of the MinIO deployment.\n\nTo print API metrics for the bucket, replace ``replication`` with ``api``.\n\nPrint v2 cluster metrics\n\nBy default, mc admin prometheus metrics prints v2 cluster metrics:\n\n :class: copyable\n\n mc admin prometheus metrics ALIAS\n\n- Replace ``ALIAS`` with the alias <mc alias> of the MinIO deployment.\n\nPrint other types of v2 metrics\n\nTo print another type of v2 metrics, specify the desired ~mc admin prometheus metrics TYPE.\nThe following example prints v2 bucket metrics:\n\n :class: copyable\n\n mc admin prometheus metrics ALIAS bucket\n\nAccepted values are ``bucket``, ``cluster``, ``node``, and ``resource``.", "project": "minio-docs", "source": "source/reference/minio-mc-admin/mc-admin-prometheus-metrics.rst", "commit": "0f20cb5c667a6a5c833e6b369addb9a08f0440a7", "license": "CC-BY-4.0", "from": "deployment-docs.jsonl"}
{"text": "MinIO Client\n\n :local:\n :depth: 1\n\n - `Introduction to the MinIO Client (MC) Commands <https://www.youtube.com/watch?v=pukQgDdXfqA>`__\n - `Installing and Running MinIO on Linux <https://www.youtube.com/watch?v=74usXkZpNt8&list=PLFOIsHSSYIK1BnzVY66pCL-iJ30Ht9t1o>`__\n\nThe MinIO Client mc command line tool provides a modern alternative\nto UNIX commands like ``ls``, ``cat``, ``cp``, ``mirror``, and ``diff`` with\nsupport for both filesystems and Amazon S3-compatible cloud storage services.\n\n :start-after: start-minio-mc-s3-compatibility\n :end-before: minio-mc-s3-compatibility\n\nmc has the following syntax:\n\n mc [GLOBALFLAGS] COMMAND --help\n\nSee minio-mc-commands for a list of supported commands.\n\nVersion Alignment with MinIO Server\n\nThe MinIO Client releases separately from the MinIO Server.\n\nFor best functionality and compatibility, use a MinIO Client version released closely to your MinIO Server version.\nFor example, a MinIO Client released the same day or later than your MinIO Server version.\n\nYou can install a version of the MinIO Client that is more recent than the MinIO Server version.\nHowever, if the MinIO Client version skews too far from the MinIO Server version, you may see increased warnings or errors as a result of the differences.\nFor example, while core S3 APIs around copying (mc cp) may remain unchanged, some features or flags may only be available or stable if the client and server versions are aligned.\n\nQuickstart\n\n1) Install ``mc``\n\nInstall the mc command line tool onto the host machine. Click\nthe tab that corresponds to the host machine operating system or environment:\n\n2) Create an Alias for the S3-Compatible Service\n\n The following example temporarily disables the bash history to mitigate the\n risk of authentication credentials leaking in plain text. This is a basic\n security measure and does not mitigate all possible attack vectors. Defer to\n security best practices for your operating system for inputting sensitive\n information on the command line.\n\nUse the mc alias set command to add an Amazon S3-compatible service\nto the mc configuration <mc-configuration>.\n\n :class: copyable\n\n bash +o history\n mc alias set ALIAS HOSTNAME ACCESS_KEY SECRET_KEY\n bash -o history\n\n- Replace ``ALIAS`` with a name to associate to the S3 service.\n mc commands typically require ``ALIAS`` as an argument for\n identifying which S3 service to execute against.\n\n- Replace ``HOSTNAME`` with the URL endpoint or IP address of the S3 service.\n\n- Replace ``ACCESS_KEY`` and ``SECRET_KEY`` with the access and secret\n keys for a user on the S3 service.\n\nReplace each argument with the required values.\nIf you omit the ``ACCESS_KEY`` and ``SECRET_KEY``, the command prompts you to enter those values in the CLI.\n\nEach of the following tabs contains a provider-specific example:\n\n :class: copyable\n\n mc alias set myminio https://minioserver.example.net ACCESS_KEY SECRET_KEY\n\n :class: copyable\n\n mc alias set myS3 https://s3.{your-region-code}.amazonaws.com/endpoint ACCESS_KEY SECRET_KEY\n\n :class: copyable\n\n mc alias set myGCS https://storage.googleapis.com/endpoint ACCESS_KEY SECRET_KEY\n\n3) Test the Connection\n\nUse the mc admin info command to test the connection to\nthe newly added MinIO deployment:\n\n :class: copyable\n\n mc admin info myminio\n\nThe command returns information on the S3 service if successful. If\nunsuccessful, check each of the following:\n\n- The host machine has connectivity to the S3 service URL (i.e. using ``ping``\n or ``traceroute``).\n\n- The specified ``ACCESSKEY`` and ``SECRETKEY`` correspond to a user on the\n S3 service. The user must have permission to perform actions on the\n service.\n\n For MinIO deployments, see minio-access-management\n for more information on user access permissions. For other S3-compatible\n services, defer to the documentation for that service.\n\nCommand Quick Reference\n\nThe following table lists mc commands:\n\n The MinIO Client also includes an administration extension for managing MinIO deployments.\n See mc admin for more complete documentation.\n\n The below table does not include those commands.\n\n :header-rows: 1\n :widths: 30 70\n :width: 100%\n\n * - Command\n - Description\n\n * - | mc alias list\n | mc alias remove\n | mc alias set\n | mc alias import\n | mc alias export\n - .. include:: /reference/minio-mc/mc-alias.rst\n :start-after: start-mc-alias-desc\n :end-before: end-mc-alias-desc\n\n * - | mc anonymous get\n | mc anonymous get-json\n | mc anonymous links\n | mc anonymous list\n | mc anonymous set\n | mc anonymous set-json\n - .. include:: /reference/minio-mc/mc-anonymous.rst\n :start-after: start-mc-anonymous-desc\n :end-before: end-mc-anonymous-desc\n\n * - | mc batch describe\n | mc batch generate\n | mc batch list\n | mc batch start\n | mc batch status\n - .. include:: /reference/minio-mc/mc-batch.rst\n :start-after: start-mc-batch-desc\n :end-before: end-mc-bLine truncated
{"text": "`cainjector` helps to configure the CA certificates for:\n[Mutating Webhooks],\n[Validating Webhooks]\n[Conversion Webhooks] and [API Services]\n\nIn particular, `cainjector` populates the `caBundle` field of four API types:\n`ValidatingWebhookConfiguration`,\n`MutatingWebhookConfiguration`\n`CustomResourceDefinition` and `APIService`.\nThe first three resource types are used to configure how the Kubernetes API server connects to webhooks.\nThis `caBundle` data is loaded by the Kubernetes API server and used to verify the serving certificates of webhook API servers.\n`APIService` is used to represent an [Extension API Server]. `caBundle` of `APIService` can be populated with CA cert that can be used to validate the API server's serving certificate.\n\nWe will refer to these four API types as *injectable* resources.\n\nAn *injectable* resource MUST have one of these annotations:\n`cert-manager.io/inject-ca-from`,\n`cert-manager.io/inject-ca-from-secret`, or\n`cert-manager.io/inject-apiserver-ca`, depending on the injection *source*.\nThis is explained in more detail below.\n\n`cainjector` copies CA data from one of three *sources*:\na Kubernetes `Secret`,\na cert-manager `Certificate`, or from\nthe Kubernetes API server CA certificate (which `cainjector` itself uses to verify its TLS connection to the Kubernetes API server).\n\nIf the *source* is a Kubernetes `Secret`, that resource MUST also have an `cert-manager.io/allow-direct-injection: \"true\"` annotation.\nThe three *source* types are explained in more detail below.\n\n## Examples\n\nHere are examples demonstrating how to use the three `cainjector` *sources*.\nIn each case we use `ValidatingWebhookConfiguration` as the *injectable*,\nbut you can substitute `MutatingWebhookConfiguration` or `CustomResourceDefinition` definition instead.\n\n### Injecting CA data from a Certificate resource\n\nHere is an example of a `ValidatingWebhookConfiguration`\nconfigured with the annotation `cert-manager.io/inject-ca-from`,\nwhich will make `cainjector` populate the `caBundle` field using CA data from a cert-manager `Certificate`.\n\nNOTE: This example does not deploy a webhook server,\nit only deploys a partial webhook configuration,\nbut it should be sufficient to help you understand what `cainjector` does:\n\n```yaml\napiVersion: v1\nkind: Namespace\nmetadata:\n name: example1\n\n---\n\napiVersion: admissionregistration.k8s.io/v1\nkind: ValidatingWebhookConfiguration\nmetadata:\n name: webhook1\n annotations:\n cert-manager.io/inject-ca-from: example1/webhook1-certificate\nwebhooks:\n- name: webhook1.example.com\n admissionReviewVersions:\n - v1\n clientConfig:\n service:\n name: webhook1\n namespace: example1\n path: /validate\n port: 443\n sideEffects: None\n\n---\n\napiVersion: cert-manager.io/v1\nkind: Certificate\nmetadata:\n name: webhook1-certificate\n namespace: example1\nspec:\n secretName: webhook1-certificate\n dnsNames:\n - webhook1.example1\n issuerRef:\n name: selfsigned\n\n---\n\napiVersion: cert-manager.io/v1\nkind: Issuer\nmetadata:\n name: selfsigned\n namespace: example1\nspec:\n selfSigned: {}\n```\n\nYou should find that the `caBundle` value is now identical to the CA value in the `Secret` for the `Certificate`:\n\n```\nkubectl get validatingwebhookconfigurations.admissionregistration.k8s.io webhook1 -o yaml | grep caBundle\nkubectl -n example1 get secret webhook1-certificate -o yaml | grep ca.crt\n```\n\nAnd after a short time, the Kubernetes API server will read that new `caBundle` value and use it to verify a TLS connection to the webhook server.\n\n### Injecting CA data from a Secret resource\n\nHere is another example of a `ValidatingWebhookConfiguration`\nthis time configured with the annotation `cert-manager.io/inject-ca-from-secret`,\nwhich will make `cainjector` populate the `caBundle` field using CA data from a Kubernetes `Secret`.\n\nNOTE: This example does not deploy a webhook server,\nit only deploys a partial webhook configuration,\nbut it should be sufficient to help you understand what `cainjector` does:\n\n```yaml\napiVersion: v1\nkind: Namespace\nmetadata:\n name: example2\n\n---\n\napiVersion: admissionregistration.k8s.io/v1\nkind: ValidatingWebhookConfiguration\nmetadata:\n name: webhook2\n annotations:\n cert-manager.io/inject-ca-from-secret: example2/example-ca\nwebhooks:\n- name: webhook2.example.com\n admissionReviewVersions:\n - v1\n clientConfig:\n service:\n name: webhook2\n namespace: example2\n path: /validate\n port: 443\n sideEffects: None\n\n---\n\napiVersion: v1\nkind: Secret\nmetadata:\n name: example-ca\n namespace: example2\n annotations:\n cert-manager.io/allow-direct-injection: \"true\"\ntype: kubernetes.io/tls\ndata:\n ca.crt: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUM5akNDQWQ2Z0F3SUJBZ0lRTkdJZ24yM3BQYVpNbk9MUjJnVmZHakFOQmdrcWhraUc5dzBCQVFzRkFEQVYKTVJNd0VRWURWUVFERXdwRmVHRnRjR3hsSUVOQk1CNFhEVEl3TURreU5ERTFOREEwTVZvWERUSXdNVEl5TXpFMQpOREEwTVZvd0ZURVRNQkVHQTFVRUF4TUtSWGhoYlhCc1pTQkRRVENDQVNJdLine truncated
{"text": "`Issuers`, and `ClusterIssuers`, are Kubernetes resources that represent\ncertificate authorities (CAs) that are able to generate signed certificates by honoring\ncertificate signing requests. All cert-manager certificates require a referenced\nissuer that is in a ready condition to attempt to honor the request.\n\nAn example of an `Issuer` type is `CA`. A simple `CA` `Issuer` is as follows:\n\n```yaml\napiVersion: cert-manager.io/v1\nkind: Issuer\nmetadata:\n name: ca-issuer\n namespace: mesh-system\nspec:\n ca:\n secretName: ca-key-pair\n```\n\nThis is a simple `Issuer` that will sign certificates based on a private key.\nThe certificate stored in the secret `ca-key-pair` can then be used to trust\nnewly signed certificates by this `Issuer` in a Public Key Infrastructure (PKI)\nsystem.\n\n## Namespaces\n\nAn `Issuer` is a namespaced resource, and it is not possible to issue\ncertificates from an `Issuer` in a different namespace. This means you will need\nto create an `Issuer` in each namespace you wish to obtain `Certificates` in.\n\nIf you want to create a single `Issuer` that can be consumed in multiple\nnamespaces, you should consider creating a `ClusterIssuer` resource. This is\nalmost identical to the `Issuer` resource, however is non-namespaced so it\ncan be used to issue `Certificates` across all namespaces.\n\n## Supported Issuers\n\ncert-manager supports a number of 'in-tree', as well as 'out-of-tree' `Issuer`\ntypes. An exhaustive list of these `Issuer` types can be found in the\ncert-manager [configuration documentation](../configuration/README.md).", "project": "cert-manager-website", "source": "content/docs/concepts/issuer.md", "commit": "cda032e36a7de880aa455ce6bbdb24aa4c3e061f", "license": "Apache-2.0", "from": "deployment-docs.jsonl"}
{"text": "## Configuring DNS01 Challenge Provider\n\nThis page contains details on the different options available on the `Issuer`\nresource's DNS01 challenge solver configuration.\n\nFor more information on configuring ACME `Issuers` and their API format, read the\n[ACME Issuers](../README.md) documentation.\n\nDNS01 provider configuration must be specified on the `Issuer` resource, similar\nto the examples in the setting up documentation.\n\nYou can read about how the DNS01 challenge type works on the [Let's Encrypt\nchallenge types\npage](https://letsencrypt.org/docs/challenge-types/#dns-01-challenge).\n\n```yaml\napiVersion: cert-manager.io/v1\nkind: Issuer\nmetadata:\n name: example-issuer\nspec:\n acme:\n email: user@example.com\n server: https://acme-staging-v02.api.letsencrypt.org/directory\n privateKeySecretRef:\n name: example-issuer-account-key\n solvers:\n - dns01:\n cloudDNS:\n project: my-project\n serviceAccountSecretRef:\n name: prod-clouddns-svc-acct-secret\n key: service-account.json\n```\n\nEach issuer can specify multiple different DNS01 challenge providers, and\nit is also possible to have multiple instances of the same DNS provider on a\nsingle `Issuer` (e.g. two CloudDNS accounts could be set, each with their own\nname).\n\nFor more information on utilizing multiple solver types on a single `Issuer`,\nread the multiple-solver-types section.\n\n## Setting Nameservers for DNS01 Self Check\n\ncert-manager will check the correct DNS records exist before attempting a DNS01\nchallenge. By default cert-manager will use the recursive nameservers taken\nfrom `/etc/resolv.conf` to query for the authoritative nameservers, which it will\nthen query directly to verify the DNS records exist.\n\nIf this is not desired (for example with multiple authoritative nameservers or\nsplit-horizon DNS), the cert-manager controller exposes two flags that allows\nyou alter this behavior:\n\n`--dns01-recursive-nameservers` Comma separated string with host and port of the\nrecursive nameservers cert-manager should query.\n\n`--dns01-recursive-nameservers-only` Forces cert-manager to only use the\nrecursive nameservers for verification. Enabling this option could cause the DNS01\nself check to take longer due to caching performed by the recursive nameservers.\n\nExample usage:\n```bash\n--dns01-recursive-nameservers-only --dns01-recursive-nameservers=8.8.8.8:53,1.1.1.1:53\n```\n\nIf you're using the `cert-manager` helm chart, you can set recursive nameservers\nthrough `.Values.extraArgs` or at the command at helm install/upgrade time\nwith `--set`:\n\n```bash\n--set 'extraArgs={--dns01-recursive-nameservers-only,--dns01-recursive-nameservers=8.8.8.8:53\\,1.1.1.1:53}'\n```\n\n## Delegated Domains for DNS01\n\nBy default, cert-manager will not follow CNAME records pointing to subdomains.\n\nIf granting cert-manager access to the root DNS zone is not desired, then the\n`_acme-challenge.example.com` subdomain can instead be delegated to some other,\nless privileged domain (`less-privileged.example.org`). This could be achieved in the following way. Say, one has two zones:\n\n* `example.com`\n* `less-privileged.example.org`\n\n1. Create a CNAME record pointing to this less privileged domain:\n```\n_acme-challenge.example.com IN CNAME _acme-challenge.less-privileged.example.org.\n```\n\n2. Grant cert-manager rights to update less privileged `less-privileged.example.org` zone\n\n3. Provide configuration/credentials for updating this less privileged zone\nand add an additional field into the relevant `dns01` solver. Note that `selector`\nfield is still working for the original `example.com`, while credentials are provided for\n`less-privileged.example.org`\n\n```yaml\napiVersion: cert-manager.io/v1\nkind: Issuer\nmetadata:\n ...\nspec:\n acme:\n ...\n solvers:\n - selector:\n dnsZones:\n - 'example.com'\n dns01:\n # Valid values are None and Follow\n cnameStrategy: Follow\n route53:\n region: eu-central-1\n accessKeyID:\n hostedZoneID:\n secretAccessKeySecretRef:\n ...\n```\n\nIf you have a multitude of (sub)domains requiring separate certificates,\nit is possible to share an aliased less-privileged domain. To achieve it one should\ncreate a CNAME record for each (sub)domain like this:\n\n```txt\n_acme-challenge.example.com IN CNAME _acme-challenge.less-privileged.example.org.\n_acme-challenge.www.example.com IN CNAME _acme-challenge.less-privileged.example.org.\n_acme-challenge.foo.example.com IN CNAME _acme-challenge.less-privileged.example.org.\n_acme-challenge.bar.example.com IN CNAME _acme-challenge.less-privileged.example.org.\n```\n\nWith this configuration cert-manager will follow CNAME records recursively in order to determine\nwhich DNS zone to update during DNS01 challenges.\n\n> ⚠️ With `cnameStrategy: Follow`, cert-manager follows *any* CNAME record\n> found at `_acme-challenge. `, including one synthesized by a\n> wildcard record. For example, a record like\n> `*.example.com IN CNAME lb.example.org` alsLine truncated
{"text": "cert-manager can create and then delete DNS-01 records in Azure DNS but it needs to authenticate to Azure first.\nThere are four authentication methods available:\n\n- [Managed Identity Using AAD Workload Identity](#managed-identity-using-aad-workload-identity) (recommended)\n- [Managed Identity Using AAD Pod Identities](#managed-identity-using-aad-pod-identities) (deprecated)\n- [Managed Identity Using AKS Kubelet Identity](#managed-identity-using-aks-kubelet-identity)\n- [Service Principal](#service-principal)\n\n## Managed Identity Using AAD Workload Identity\n\n> ℹ️ This feature is available in cert-manager `>= v1.11.0`.\n>\n> 📖 Read the [AKS + LoadBalancer + Let's Encrypt tutorial](../../../tutorials/getting-started-aks-letsencrypt/README.md) for an end-to-end example of this authentication method.\n\nAzure AD workload identity (preview) on Azure Kubernetes Service (AKS) allows cert-manager to authenticate to Azure using a Kubernetes ServiceAccount Token and then to manage DNS-01 records in Azure DNS.\nThis is the recommended authentication method because it is more secure and easier to maintain than the other methods.\n\n### Reconfigure the cluster\n\nEnable the workload identity federation features on your cluster.\nIf you have an Azure AKS cluster you can use the following command:\n\n```bash\naz aks update \\\n --name ${CLUSTER} \\\n --enable-oidc-issuer \\\n --enable-workload-identity\n```\n\n> ℹ️ You can [install the Azure workload identity extension on other managed and self-managed clusters](https://azure.github.io/azure-workload-identity/docs/installation.html) if you are not using Azure AKS.\n>\n> 📖 Read [Deploy and configure workload identity on an Azure Kubernetes Service (AKS) cluster](https://learn.microsoft.com/en-us/azure/aks/workload-identity-deploy-cluster) for more information about the `--enable-workload-identity` feature.\n>\n### Reconfigure cert-manager\n\nLabel the cert-manager controller Pod for the attention of the Azure Workload Identity webhook,\nwhich will result in the cert-manager controller Pod having an extra volume containing a Kubernetes ServiceAccount token which it will use to authenticate with Azure.\n\nIf you installed cert-manager using Helm, the label can be configured using Helm values:\n\n```yaml\n# values.yaml\npodLabels:\n azure.workload.identity/use: \"true\"\n```\n\nIf successful, the cert-manager Pod will have some new environment variables set,\nand the Azure workload-identity ServiceAccount token as a projected volume:\n\n```bash\nkubectl describe pod -n cert-manager -l app.kubernetes.io/component=controller\n```\n\n```terminal\nContainers:\n ...\n cert-manager-controller:\n ...\n Environment:\n ...\n AZURE_CLIENT_ID:\n AZURE_TENANT_ID: f99bd6a4-665c-41cf-aff1-87a89d5c62d4\n AZURE_FEDERATED_TOKEN_FILE: /var/run/secrets/azure/tokens/azure-identity-token\n AZURE_AUTHORITY_HOST: https://login.microsoftonline.com/\n Mounts:\n /var/run/secrets/azure/tokens from azure-identity-token (ro)\nVolumes:\n ...\n azure-identity-token:\n Type: Projected (a volume that contains injected data from multiple sources)\n TokenExpirationSeconds: 3600\n```\n\n> 📖 Read about [the role of the Mutating Admission Webhook](https://azure.github.io/azure-workload-identity/docs/installation/mutating-admission-webhook.html) in Azure AD Workload Identity for Kubernetes.\n\n### Create a Managed Identity\n\nIn order for cert-manager to use the Azure API and manipulate the records in the Azure DNS zone,\nit needs an Azure account and the best type of account to use is called a \"Managed Identity\".\nThis account does not come with a password or an API key and it is designed for use by machines rather than humans.\n\nChoose a managed identity name and create the Managed Identity:\n\n```bash\nexport IDENTITY_NAME=cert-manager\nexport IDENTITY_RESOURCE_GROUP= # ❗ Replace with your Azure resource group\naz identity create --name \"${IDENTITY_NAME}\" --resource-group \"${IDENTITY_RESOURCE_GROUP}\"\n```\n\nGrant it permission to modify the DNS zone records:\n\n```bash\nexport IDENTITY_CLIENT_ID=$(az identity show --name \"${IDENTITY_NAME}\" --resource-group \"${IDENTITY_RESOURCE_GROUP}\" --query 'clientId' -o tsv)\naz role assignment create \\\n --role \"DNS Zone Contributor\" \\\n --assignee $IDENTITY_CLIENT_ID \\\n --scope $(az network dns zone show --name $DOMAIN_NAME -o tsv --query id)\n```\n\n> 📖 Read [What are managed identities for Azure resources?](https://learn.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/overview)\n> for an overview of managed identities and their uses.\n>\n> 📖 Read [Azure built-in roles](https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles) to learn about the \"DNS Zone Contributor\" role.\n>\n> 📖 Read more about [the `az identity` command](https://learn.microsoft.com/en-us/cli/azure/identity).\n\n### Add a Federated Identity\n\nNow associate a federated identity with tLine truncated
{"text": "The following list contains all known cert-manager issuer integrations.\n\n| Tier | Controller | Docs | Issuer | cert-manager version used in tutorial[^1] | Released within 12 months[^2] | Is Open Source |\n|------|-----------------------------|-------------------------------------|------------------------------------------------------------------------|---------------------------------------------------|--------------------------------------|----------------|\n| 🥇 | acme-issuer (in-tree) | [📄][config:acme-issuer] | [ACME][ca:acme] | [latest][production:acme-issuer] | [✔️][release:cert-manager] | ✔️ |\n| 🥇 | venafi-enhanced-issuer | [📄][config:venafi-enhanced-issuer] | [CyberArk Certificate Manager][ca:venafi-enhanced-issuer] | [v1.12.1][production:venafi-enhanced-issuer] | [✔️][release:venafi-enhanced-issuer] | ❌ |\n| 🥇 | origin-ca-issuer | [📄][config:origin-ca-issuer] | [Cloudflare Origin CA][ca:origin-ca-issuer] | [supported][production:origin-ca-issuer] | [✔️][release:origin-ca-issuer] | ✔️ |\n| 🥈 | adcs-issuer | [📄][config:adcs-issuer] | [Microsoft Active Directory Certificate Service][ca:adcs-issuer] | - | [✔️][release:adcs-issuer] | ✔️ |\n| 🥈 | akeyless-issuer | [📄][config:akeyless-issuer] | [Akeyless PKI][ca:akeyless-issuer] | - | [✔️][release:akeyless-issuer] | ✔️ |\n| 🥈 | aws-privateca-issuer | [📄][config:aws-privateca-issuer] | [AWS Private Certificate Authority][ca:aws-privateca-issuer] | - | [✔️][release:aws-privateca-issuer] | ✔️ |\n| 🥈 | ca-issuer (in-tree) | [📄][config:ca-issuer] | CA issuer | - | [✔️][release:cert-manager] | ✔️ |\n| 🥈 | czertainly-issuer | [📄][config:czertainly-issuer] | [CZERTAINLY][ca:czertainly-issuer] | [supported][production:czertainly-issuer] | [✔️][release:czertainly-issuer] | ✔️ |\n| 🥈 | command-issuer | [📄][config:command-issuer] | [Keyfactor Command][ca:command-issuer] | - | [✔️][release:command-issuer] | ✔️ |\n| 🥈 | cview-issuer | [📄][config:cview-issuer] | [CView-issuer][ca:cview-issuer] | - | [✔️][release:cview-issuer] | ❌ |\n| 🥈 | digi-issuer | [📄][config:digi-issuer] | [DigiCert][ca:digi-issuer] | - | [✔️][release:digi-issuer] | ✔️ |\n| 🥈 | ejbca-issuer | [📄][config:ejbca-issuer] | [EJBCA][ca:ejbca-issuer] | - | [✔️][release:ejbca-issuer] | ✔️ |\n| 🥈 | google-cas-issuer | [📄][config:google-cas-issuer] | [Google Cloud Certificate Authority Service][ca:google-cas-issuer] | - | [✔️][release:google-cas-issuer] | ✔️ |\n| 🥈 | gs-atlas-issuer | [📄][config:gs-atlas-issuer] | [GlobalSign CA][ca:gs-atlas-issuer] | - | [✔️][release:gs-atlas-issuer] | ✔️ |\n| 🥈 | horizon-issuer | [📄][config:horizon-issuer] | [EVERTRUST Horizon][ca:horizon-issuer] | - | [✔️][release:horizon-issuer] | ✔️ |\n| 🥈 | ncm-issuer | [📄][config:ncm-issuer] | [Nokia Netguard Certificate Manager][ca:ncm-issuer] | - | [✔️][release:ncm-issuer] | ✔️ |\n| 🥈 | selfsigned-issuer (in-tree) | [📄][config:selfsigned-issuer] | Self-Signed issuer | - | [✔️][release:cert-manager] | ✔️ |\n| 🥈 | step-issuer | [📄][config:step-issuer] | [Certificate Authority server][ca:step-issuer] | - | [✔️][release:step-issuer] | ✔️ |\n| 🥈 | vault-issuer (in-tree) | [📄][config:vault-issuer] | [HashiCorp Vault][ca:vault-issuer] | - | [✔️][release:cert-manager] | ✔️ |\n| 🥈 | venafi-issuer (in-tree) | [📄][config:venafi-issuer] | [Venafi TLS Protect][ca:venafi-issuer] | - | [✔️][release:cert-manager] | ✔️ |\n| 🥈 | cfssl-issuer | [📄][config:cfssl-issuer] | [CFSSL][ca:cfssl-issuer] | - | [✔️][release:cfssl-issuer] | ✔️ |\n| 🥈 | cfmtls-issuer | [📄][config:cfmtls-issuer] | [CFMTLS][ca:cfmtls-issuer] | - | [✔️][release:cfmtls-issuer] | ✔️ |\n| 🥈 | zerossl-issuer | [📄][config:zerossl-issuer] | [ZeroSSL][ca:zerossl-issuer] | - | [✔️][release:zerossl-issuer] | ✔️ |\n| 🥉 | tcs-issuer | [📄][config:tcs-issuer] | [Intel's SGX technology][ca:tcs-issuer] | - | [❌][release:tcs-issuer] | ✔️ |\n| 🥉 | freeipa-issuer | [📄][config:freeipa-issuer] | [FreeIPA][ca:freeipa-issuer] | - | [❌][release:freeipa-issuer] | ✔️ |\n| 🥉 | kms-issuer | [📄][config:kms-issuer] | [AWS KMS][ca:kms-issuer] | - | [❌][release:kms-issuer] | ✔️ |\n| 🥉 | keyvault-issuer | [📄][config:keyvault-issuer] | [Azure Key Vault][ca:keyvault-issuer] | - | [❌][release:keyvault-issuer] | ✔️ |\n\n[production:venafi-enhanced-issuer]: https://docs.venafi.cloud/vaas/k8s-components/c-vei-overview/\n[production:acme-issuer]: ../tutorials/getting-started-aks-letsencrypt/README.md\n[production:origin-ca-issuer]: https://github.com/cloudflare/origin-ca-issuer/blob/trunk/README.org\n[production:czertainly-issuer]: https://docs.czertainly.com/docs/certificate-key/integration-guides/cert-manager-issuer/overview\n\n[//]: # (ConfiguratLine truncated
{"text": "cert-manager aims to abide by the same API compatibility policy as upstream Kubernetes APIs as documented in the [Kubernetes Deprecation Policy](https://kubernetes.io/docs/reference/using-api/deprecation-policy/#deprecating-parts-of-the-api).\n\nThis is to ensure a smooth upgrade and downgrade experience for users, i.e to make sure that users' cert-manager custom resources keep functioning in the same way\nafter an upgrade or downgrade of cert-manager.\n\nIn some cases, we may need to require users to take actions before upgrading or may need to diverge from the API compatibility promise but we'll treat this as an absolute\nlast resort. In general the main criteria by which we'd determine whether a change is acceptable would be user value.\n\nHere are the breaking changes we have made to the `v1` API:\n* [cert-manger 1.18](../releases/release-notes/release-notes-1.18.md): The default value of `Certificate.Spec.PrivateKey.RotationPolicy` changed from `Never` to `Always`.\n\n## Alpha / Beta API Versions\n\nAs in upstream Kubernetes, We don't commit to preserving alpha or beta API versions indefinitely.\n\nIn cert-manager v1.7 [all alpha and beta API versions prior to `v1` were removed](https://github.com/cert-manager/cert-manager/pull/4635).\n\nNB: The Kubernetes deprecation policy notes that API removal introduces an issue with objects stored at the removed versions. To fix this, we wrote a [custom tool](https://cert-manager.io/docs/releases/upgrading/remove-deprecated-apis/) that users could run once to migrate their resources.", "project": "cert-manager-website", "source": "content/docs/contributing/api-compatibility.md", "commit": "cda032e36a7de880aa455ce6bbdb24aa4c3e061f", "license": "Apache-2.0", "from": "deployment-docs.jsonl"}
{"text": "cert-manager, like most Go projects, delegates almost all stylistic choices to `gofmt`,\nwith `goimports` on top for organizing imports. Broadly speaking, if you set your editor to run\n`goimports` when you save a file, your code will be stylistically correct.\n\ncert-manager generally also follows the Kubernetes\n[coding conventions](https://www.kubernetes.dev/docs/guide/coding-convention/) and the Google\n[Go code review comments](https://github.com/golang/go/wiki/CodeReviewComments).\n\n## Organizing Imports\n\nImports should be organized into 3 blocks, with each block separated by two newlines:\n\n```go\nimport (\n \"stdlib\"\n\n \"external\"\n\n \"internal\"\n)\n```\n\nAn example might be the following, taken from\n[`pkg/acme/accounts/client.go`](https://github.com/cert-manager/cert-manager/blob/0c71fe7795858b96cabcddabf706d997cd2fba3f/pkg/acme/accounts/client.go):\n\n```go\nimport (\n \"crypto/rsa\"\n \"crypto/tls\"\n \"net\"\n \"net/http\"\n \"time\"\n\n acmeapi \"golang.org/x/crypto/acme\"\n\n acmecl \"github.com/cert-manager/cert-manager/pkg/acme/client\"\n acmeutil \"github.com/cert-manager/cert-manager/pkg/acme/util\"\n cmacme \"github.com/cert-manager/cert-manager/pkg/apis/acme/v1\"\n \"github.com/cert-manager/cert-manager/pkg/metrics\"\n \"github.com/cert-manager/cert-manager/pkg/util\"\n)\n```\n\nOnce this manual split of standard library, external and internal imports has been made, it will be\nenforced automatically by `goimports` when executed in the future.\n\n## UK vs. US spelling\n\nFor the sake of consistency, cert-manager uses en-US spelling for the\ndocumentation in https://cert-manager.io as well as within the cert-manager\ncodebase. A comprehensive list of en-GB → en-US word substitution is available\non Ubuntu's\n[`WordSubstitution`](https://wiki.ubuntu.com/EnglishTranslation/WordSubstitution)\npage.", "project": "cert-manager-website", "source": "content/docs/contributing/coding-conventions.md", "commit": "cda032e36a7de880aa455ce6bbdb24aa4c3e061f", "license": "Apache-2.0", "from": "deployment-docs.jsonl"}
{"text": "**Event**: [ContribFest: Dive Into cert-manager and Start Contributing!](https://kccnceu2026.sched.com/event/2EF7L/contribfest-dive-into-cert-manager-and-start-contributing-richard-wall-mladen-rusev-palo-alto-networks)\n**Date**: Tuesday, March 24, 2026\n**Time**: 16\\:15 - 17\\:30 CET\n**Location**: KubeCon + CloudNativeCon Europe 2026, Amsterdam, Netherlands\n**Presenters**: Richard Wall & Mladen Rusev (Palo Alto Networks)\n\n---\n\nWelcome to the cert-manager ContribFest at KubeCon EU 2026! Whether you're joining us in person in Amsterdam or participating remotely, we're excited to help you make your first contribution to cert-manager.\n\n## Getting Started\n\n📋 **[Good First Issues Shortlist](shortlist.md)** — Curated list of beginner-friendly issues across cert-manager projects\n\n🛠️ **[Setup Guide](setup.md)** — Get your development environment ready (local setup recommended)\n\n📅 **[Session Agenda](agenda.md)** — What to expect during the 75-minute session\n\n## What is ContribFest?\n\nContribFest is an opportunity to join project maintainers and community contributors to explore good first issues, hunt bugs, discuss improvements, and pair program with maintainers to contribute directly to CNCF projects.\n\nAt this year's cert-manager ContribFest, Palo Alto Networks' Richard Wall and Mladen Rusev will be on hand to show users of all experience levels how to get involved with the cert-manager project.\n\n## Join the Community\n\n- **Slack**: Join [Kubernetes Slack](https://slack.k8s.io/) and find us in `#cert-manager-dev`\n- **BlueSky**: [@cert-manager.bsky.social](https://bsky.app/profile/cert-manager.bsky.social)\n- **Mastodon**: [`@CertManager@infosec.exchange`](https://infosec.exchange/@CertManager)\n- **Twitter/X**: [@certmanager](https://twitter.com/certmanager)\n\n## Planning Resources\n\n- **Tracking Issue**: [`cert-manager#8641`](https://github.com/cert-manager/cert-manager/issues/8641)\n- **Planning Board**: [ContribFest KubeCon EU 2026](https://github.com/orgs/cert-manager/projects/10) (maintainers only)\n\n---\n\n**See you at ContribFest! 🎉**", "project": "cert-manager-website", "source": "content/docs/contributing/contribfest-kubecon-eu-2026/README.md", "commit": "cda032e36a7de880aa455ce6bbdb24aa4c3e061f", "license": "Apache-2.0", "from": "deployment-docs.jsonl"}
{"text": "**Event**: [ContribFest: Dive Into cert-manager and Start Contributing!](https://kccnceu2026.sched.com/event/2EF7L/contribfest-dive-into-cert-manager-and-start-contributing-richard-wall-mladen-rusev-palo-alto-networks)\n**Date**: Tuesday, March 24, 2026\n**Time**: 16\\:15 - 17\\:30 CET (75 minutes)\n**Presenters**: Richard Wall & Mladen Rusev (Palo Alto Networks)\n\n---\n\n## Session Goals\n\n### For Maintainers\n- **Grow the contributor base**: Welcome new contributors to the cert-manager community\n- **Get help with backlog issues**: Make progress on good-first-issue backlog\n- **Build community engagement**: Create positive first-contribution experiences\n- **Identify potential new maintainers**: Find contributors who might become long-term participants\n\n### For Attendees\n- **Learn Kubernetes internals hands-on**: See how cert-manager works under the hood\n- **Get a CNCF contribution on resume**: Real contribution to a graduated CNCF project\n- **Network with maintainers**: Direct access to project experts\n- **Gain confidence contributing to open source**: Supportive environment for first-timers\n\n**⚠️ PRESENTER REMINDER**: State these goals clearly during the introduction!\n\n---\n\n## Pre-Session Checklist\n\n### For Maintainers (Before Event)\n\n- [ ] Test Slack #cert-manager-dev channel access (in case attendees need help)\n- [ ] Ensure shortlist gist is publicly accessible\n- [ ] Make GitHub Project public (or keep private and use gist only)\n- [ ] Prepare printed/projected shortlist for in-person reference\n- [ ] Have cert-manager laptop stickers/swag ready (if available)\n\n### For Attendees (Recommended Setup)\n\nWe recommend attendees prepare before the session to maximize hands-on time:\n\n- [ ] Bring laptop with:\n - Git installed and configured\n - GitHub account with SSH/HTTPS access configured\n - Go 1.21+ (for Go issues) or Node.js 20+ (for website issues)\n - Code editor (VS Code, vim, etc.)\n- [ ] Join [Kubernetes Slack](https://slack.k8s.io/) and find `#cert-manager-dev`\n- [ ] Review the [Contributor Guide](https://cert-manager.io/docs/contributing/)\n- [ ] Browse the [good first issues shortlist](shortlist.md)\n\n---\n\n## Session Outline\n\n### 16\\:15 - 16\\:25 | Welcome & Introduction (10 min)\n\n**Presenters introduce themselves and the session:**\n\n- Welcome to ContribFest and cert-manager!\n- Who are we? (Richard & Mladen backgrounds)\n- What is cert-manager?\n - Graduated CNCF project\n - X.509 certificate management for Kubernetes\n - Widely deployed, active community\n- **STATE THE GOALS** (see above)\n - Why we're here as maintainers\n - What attendees will gain from this session\n\n**Quick poll:**\n- Who's used cert-manager in production?\n- Who's contributed to open-source before?\n- Who's here for their first contribution?\n\n---\n\n### 16\\:25 - 16\\:40 | Getting Started (15 min)\n\n**Quick setup check and orientation:**\n\n1. **Environment Check** (5 min)\n - Raise hands: who has Go installed? Node.js? Git configured?\n - Point to setup guide if needed (post link in Slack)\n - Helpers circulate to assist with setup issues\n\n2. **Finding an Issue** (10 min)\n - Walk through the [shortlist](shortlist.md)\n - Explain categories:\n - **No Go Required**: Docs, Helm, YAML (good for beginners)\n - **Go — Well Scoped**: Self-contained Go fixes\n - **Stretch Goals**: Larger features for experienced contributors\n - How to claim an issue:\n - Comment on the GitHub issue: \"I'd like to work on this for ContribFest\"\n - Ask questions in comments or Slack\n - **Live demo**: Walk through one \"No Go Required\" issue from start to PR\n\n---\n\n### 16\\:40 - 17\\:20 | Hands-On Contribution Time (40 min)\n\n**Attendees work on their chosen issues:**\n\n- Maintainers circulate to help with:\n - Choosing an appropriate issue\n - Setting up development environment\n - Understanding the codebase\n - Testing changes\n - Creating pull requests\n\n**Milestones to celebrate:**\n- First repo clone\n- First local build\n- First test run\n- First commit\n- First PR opened\n\n**Slack channel**:\n- Post in `#cert-manager-dev` with questions\n- Tag Richard (`@wallrj`) or Mladen (`@mladen-rusev-cyberark`) for help\n\n**Common questions to address:**\n- \"I'm stuck on Go module errors\" → Point to contributor guide's Go setup\n- \"How do I run tests?\" → Show repo-specific test commands\n- \"Is this change correct?\" → Quick code review on the spot\n- \"I don't know Go, what can I do?\" → Steer to website/docs issues\n\n---\n\n### 17\\:20 - 17\\:30 | Wrap-Up & Next Steps (10 min)\n\n**Celebrate contributions:**\n- Quick round: Who opened their first PR?\n- Who made their first cert-manager contribution?\n- Who learned something new about Kubernetes?\n\n**What happens next:**\n- Maintainers will review all ContribFest PRs within the next week\n- Continue working on your issue after the session — no rush!\n- Join `#cert-manager-dev` for ongoing support\n- Follow cert-maLine truncated
{"text": "How to reproduce and refine the issue shortlist in `shortlist.md`.\n\n---\n\n## Prerequisites\n\n- `gh` CLI, authenticated: `gh auth status`\n- `jq`: `/usr/bin/jq`\n\n---\n\n## Step 1: Discover active repos\n\nList all public cert-manager repos, then manually exclude archived, inactive, or\nnon-code repos (e.g. `community`, `website` may warrant separate treatment):\n\n```bash\ngh repo list cert-manager --limit 100 --json name,isArchived,updatedAt \\\n --jq '.[] | select(.isArchived == false) | [.updatedAt, .name] | @tsv' | sort -r\n```\n\nThe repos included in the 2026-03-21 fetch were:\n\n```\ncert-manager/approver-policy\ncert-manager/aws-privateca-issuer\ncert-manager/cert-manager # main repo — fetched separately (see note below)\ncert-manager/cmctl\ncert-manager/csi-driver\ncert-manager/csi-driver-spiffe\ncert-manager/google-cas-issuer\ncert-manager/issuer-lib\ncert-manager/istio-csr\ncert-manager/openshift-routes\ncert-manager/trust-manager\ncert-manager/website\n```\n\n---\n\n## Step 2: Fetch issues\n\n### Satellite repos (supports reactionGroups for thumbs-up counts)\n\n```bash\nREPOS=\"approver-policy aws-privateca-issuer cmctl csi-driver csi-driver-spiffe google-cas-issuer issuer-lib istio-csr openshift-routes trust-manager website\"\n\nfor repo in $REPOS; do\n gh issue list \\\n --repo cert-manager/$repo \\\n --state open \\\n --limit 200 \\\n --json number,title,updatedAt,comments,assignees,reactionGroups,url,labels \\\n --jq \"[.[] | {\n repo: \\\"cert-manager/$repo\\\",\n number: .number,\n title: .title,\n url: .url,\n updatedAt: .updatedAt,\n thumbsUp: ((.reactionGroups[] | select(.content == \\\"THUMBS_UP\\\") | .users.totalCount) // 0),\n comments: .comments,\n assigned: (.assignees | length > 0),\n goodFirstIssue: (.labels | map(.name) | contains([\\\"good first issue\\\"])),\n labels: (.labels | map(.name))\n }]\"\ndone > /tmp/issues-raw.json\n\n/usr/bin/jq -s 'add' /tmp/issues-raw.json > issues-satellite.json\n```\n\n### Main cert-manager/cert-manager repo\n\nThe `reactionGroups` field causes GraphQL timeouts on this large repo.\nFetch without it (thumbsUp will be 0):\n\n```bash\ngh issue list \\\n --repo cert-manager/cert-manager \\\n --state open \\\n --limit 200 \\\n --json number,title,updatedAt,comments,assignees,url,labels \\\n --jq '[.[] | {\n repo: \"cert-manager/cert-manager\",\n number: .number,\n title: .title,\n url: .url,\n updatedAt: .updatedAt,\n thumbsUp: 0,\n comments: (.comments | length),\n assigned: (.assignees | length > 0),\n goodFirstIssue: (.labels | map(.name) | contains([\"good first issue\"])),\n labels: (.labels | map(.name))\n }]' > issues-main.json\n```\n\n### Merge\n\n```bash\n/usr/bin/jq -s '.[0] + .[1]' issues-satellite.json issues-main.json > issues.json\n/usr/bin/jq length issues.json # sanity check total count\n```\n\n---\n\n## Step 3: Explore the data\n\n### All good-first-issue labelled issues, sorted by thumbs-up\n\n```bash\n/usr/bin/jq -r '\n [\"REPO\", \"#\", \"TITLE\", \"👍\", \"💬\", \"ASSIGNED\"],\n (\n .[]\n | select(.goodFirstIssue == true)\n | [.repo, .number, .title[:55], .thumbsUp, .comments, (if .assigned then \"yes\" else \"\" end)]\n )\n | @tsv\n' issues.json | column -t -s $'\\t'\n```\n\n### All issues with any thumbs-up, not yet assigned\n\n```bash\n/usr/bin/jq -r '\n [\"REPO\", \"#\", \"TITLE\", \"👍\", \"💬\", \"GFI\"],\n (\n .[]\n | select(.thumbsUp > 0 and .assigned == false)\n | [.repo, .number, .title[:55], .thumbsUp, .comments, (if .goodFirstIssue then \"★\" else \"\" end)]\n )\n | @tsv\n' issues.json | sort -t $'\\t' -k4 -rn | column -t -s $'\\t'\n```\n\n### Issues by repo\n\n```bash\n/usr/bin/jq -r '[.[].repo] | group_by(.) | map({repo: .[0], count: length}) | .[] | [.repo, .count] | @tsv' \\\n issues.json | column -t -s $'\\t'\n```\n\n### Filter to a specific repo\n\n```bash\n/usr/bin/jq -r '.[] | select(.repo == \"cert-manager/cert-manager\") | [.number, .title[:60]] | @tsv' \\\n issues.json | column -t -s $'\\t'\n```\n\n---\n\n## Step `3b`: Search for TODO/FIXME/XXX comments in source code\n\nGitHub issues don't capture everything. Searching source code for TODO comments can surface\nwell-scoped, forgotten tasks that are good first issues but have never been filed.\n\n```bash\n# Search all Go source (excluding tests and vendor) across all checked-out repos\nrg \"// (TODO|FIXME|XXX)[:\\s]\" \\\n --type go \\\n --glob \"!*_test.go\" \\\n --glob \"!*/test/*\" \\\n --glob \"!*/vendor/*\" \\\n /home/richard/projects/github.com/cert-manager/\n```\n\nAssess each result by reading the surrounding context (10–20 lines) and asking:\n- Is the fix described clearly enough to attempt without deep domain knowledge?\n- Is the change contained within one or two files?\n- Would completing it meaningfully improve the project?\n\nTODOs that describe **design decisions**, **migration risks**, or **future features** are\ngenerally not suitable. TODOs that describe a **specific missing check**, **wrong log message**,\nLine truncated
{"text": "## Creating DNS Providers\n\nDue to the large number of requests to support DNS providers to resolve DNS\nchallenges, it became impractical and infeasible to maintain and test all DNS\nproviders in the main cert-manager repository.\n\nFor this reason, it was decided that new DNS providers should be supported out-of-tree\nby way of external webhooks.\n\nTo implement an external DNS provider webhook, it is recommended to base your\nimplementation on the [cert-manager webhook-example](https://github.com/cert-manager/webhook-example).\n\nThere's further information available in the configuration section:\n\n- [ACME DNS01 via webhook](../configuration/acme/dns01/README.md#webhook)\n- [Configuring an ACME issuer with external webhook](../configuration/acme/dns01/webhook.md)\n\nIf you're struggling with creating a new DNS webhook, reach out on [Slack](./README.md#slack)!", "project": "cert-manager-website", "source": "content/docs/contributing/dns-providers.md", "commit": "cda032e36a7de880aa455ce6bbdb24aa4c3e061f", "license": "Apache-2.0", "from": "deployment-docs.jsonl"}
{"text": "cert-manager is written in Go, and uses Go modules. You _can_ import it as a Go module, and in some cases\nthat's fine or even encouraged, but as a rule we generally recommend against importing cert-manager.\n\nGenerally speaking, except for the cases listed below under [When You Might Import cert-manager](#when-you-might-import-cert-manager),\ncode in the cert-manager repository is *not* covered under any Go module compatibility guarantee. We can and will make breaking\nchanges, even in publicly exported Go code and even in a minor or patch release of cert-manager. We have made breaking changes like\nthis in the past.\n\nNote that this doesn't affect _running_ cert-manager. Our commitment on compatibility is to not break the runtime\nfunctionality of cert-manager, and we take that seriously.\n\nIf you're certain that you *do* need to import cert-manager as a module, see [Module Import Paths](#module-import-paths)\nbelow for a note on how to do that.\n\n## When You Might Import cert-manager\n\nYou might need to import cert-manager if you're writing Go code which:\n\n- uses cert-manager custom resources, so you want to import something under `pkg/apis`\n- implements an external DNS solver webhook, as in the [webhook-example](https://github.com/cert-manager/webhook-example)\n- implements an external issuer, as in the [sample-external-issuer](https://github.com/cert-manager/sample-external-issuer)\n\nIf you think you really need to import other parts of the code, please do reach out and [talk to us](./README.md#slack) so we're\naware of this need! We'll always try to avoid breakage where we can.\n\n## Module Import Paths\n\nFor all supported versions of cert-manager, the module import path is `github.com/cert-manager/cert-manager`.\n\nHistorically, the cert-manager repository was created on GitHub as `https://github.com/jetstack/cert-manager`, and was later\nmigrated to `https://github.com/cert-manager/cert-manager`.\n\nThis means that the Go module import path you need may be different if you're trying to use an older version of cert-manager.\n\nFor cert-manager 1.8 and later, use the new path listed above.\n\nFor cert-manager versions older than 1.8 use the old path: `github.com/jetstack/cert-manager`", "project": "cert-manager-website", "source": "content/docs/contributing/importing.md", "commit": "cda032e36a7de880aa455ce6bbdb24aa4c3e061f", "license": "Apache-2.0", "from": "deployment-docs.jsonl"}
{"text": "The cert-manager project has a number of [satellite projects](https://github.com/cert-manager)\nthat extend the project's functionality, and complement the core cert-manager feature-set.\n\nThese tools help with security, compliance and control.\n\n- [istio-csr](https://github.com/cert-manager/istio-csr) ([docs](../usage/istio-csr/README.md)): Secure Istio service mesh with istio-csr which is\n an agent that allows for [Istio](https://istio.io) workload and control plane\n components to be secured using cert-manager.\n- [approver-policy](https://github.com/cert-manager/approver-policy) ([docs](../policy/approval/approver-policy/README.md)):\n a cert-manager **approver** that will automatically approve or deny\n certificate requests based on defined policy.\n- [csi-driver](https://github.com/cert-manager/csi-driver) ([docs](../usage/csi-driver/README.md)):\n a Container Storage Interface (CSI) driver plugin for Kubernetes to work along\n cert-manager. The goal for this plugin is to seamlessly request and mount\n certificate key pairs to pods. This is useful for facilitating mTLS, or\n otherwise securing connections of pods with guaranteed present certificates\n whilst having all of the features that cert-manager provides.\n- [csi-driver-spiffe](https://github.com/cert-manager/csi-driver-spiffe) ([docs](../usage/csi-driver-spiffe/README.md)):\n another CSI driver plugin to work along cert-manager. This CSI driver\n transparently delivers [SPIFFE](https://spiffe.io/)\n [SVIDs](https://spiffe.io/docs/latest/spiffe-about/spiffe-concepts/#spiffe-verifiable-identity-document-svid)\n in the form of X.509 certificate key pairs to mounting Kubernetes Pods. The\n end result is all and any Pod running in Kubernetes can securely request their\n SPIFFE identity document from a Trust Domain with minimal configuration.\n- [trust-manager](https://github.com/cert-manager/trust-manager) ([docs](../trust/trust-manager/README.md)): the easiest way to manage TLS trust bundles in Kubernetes and OpenShift clusters.", "project": "cert-manager-website", "source": "content/docs/contributing/projects.md", "commit": "cda032e36a7de880aa455ce6bbdb24aa4c3e061f", "license": "Apache-2.0", "from": "deployment-docs.jsonl"}
{"text": "Learn how to optimize cert-manager for your cluster.\n\n## Overview\n\nThe defaults in the Helm chart and YAML manifests are intended for general use.\nYou may want to modify the configuration to suit the size and usage of your Kubernetes cluster.\n\n## Set appropriate memory requests and limits\n\n**When Certificate resources are the dominant use-case**,\nsuch as when workloads need to mount the TLS Secret or when gateway-shim is used,\nthe memory consumption of the cert-manager controller will be roughly\nproportional to the total size of those Secret resources that contain the TLS\nkey pairs.\nWhy? Because the cert-manager controller caches the entire content of these Secret resources in memory.\nIf large TLS keys are used (e.g. RSA 4096) the memory use will be higher than if smaller TLS keys are used (e.g. ECDSA).\n\nThe other Secrets in the cluster, such as those used for Helm chart configurations or for other workloads,\nwill not significantly increase the memory consumption, because cert-manager will only cache the metadata of these Secrets.\n\n**When `CertificateRequest` resources are the dominant use-case**,\nsuch as with csi-driver or with istio-csr,\nthe memory consumption of the cert-manager controller will be much lower,\nbecause there will be fewer TLS Secrets and fewer resources to be cached.\n\n> 📖️ Read [What Everyone Should Know About Kubernetes Memory Limits](https://home.robusta.dev/blog/kubernetes-memory-limit),\n> to learn how to right-size the memory requests.\n\n## Disable client-side rate limiting for Kubernetes API requests\n\nBy default cert-manager [throttles the rate of requests to the Kubernetes API server](https://github.com/cert-manager/cert-manager/blob/b61de55abda95a4c273be0c8d3e6025fe8511573/internal/apis/config/controller/v1alpha1/defaults.go#L59-L60) to 20 queries per second.\nHistorically this was intended to prevent cert-manager from overwhelming the Kubernetes API server,\nbut modern versions of Kubernetes implement [API Priority and Fairness](https://kubernetes.io/docs/concepts/cluster-administration/flow-control/),\nwhich obviates the need for client side throttling.\nYou can increase the threshold of the client-side rate limiter using the following helm values:\n\n```yaml\n# helm-values.yaml\nconfig:\n kubernetesAPIQPS: 10000\n kubernetesAPIBurst: 10000\n```\n\n> ℹ️ This does not technically disable the client-side rate-limiting but configures the QPS and Burst values high enough that they are never reached.\n>\n> 🔗 Read [`cert-manager#6890`: Allow client-side rate-limiting to be disabled](https://github.com/cert-manager/cert-manager/issues/6890);\n> a proposal for a cert-manager configuration option to disable client-side rate-limiting.\n>\n> 🔗 Read [`kubernetes#111880`: Disable client-side rate-limiting when AP&F is enabled](https://github.com/kubernetes/kubernetes/issues/111880);\n> a proposal that the `kubernetes.io/client-go` module should automatically use server-side rate-limiting when it is enabled.\n>\n> 🔗 Read about other projects that disable client-side rate limiting: [Flux](https://github.com/fluxcd/pkg/issues/269).\n>\n> 📖 Read [API documentation for ControllerConfiguration](../reference/api-docs.md#controller.config.cert-manager.io/v1alpha1.ControllerConfiguration) for a description of the `kubernetesAPIQPS` and `kubernetesAPIBurst` configuration options.\n\n## Restrict the use of large RSA keys\n\nCertificates with large RSA keys cause cert-manager to use more CPU resources.\nWhen there are insufficient CPU resources, the reconcile queue length grows,\nwhich delays the reconciliation of all Certificates.\nA user who has permission to create a large number of RSA 4096 certificates,\nmight accidentally or maliciously cause a denial of service for other users on the cluster.\n\n> 📖 Learn [how to enforce an Approval Policy](../policy/approval/README.md), to prevent the use of large RSA keys.\n>\n> 📖 Learn [how to set Certificate defaults automatically](../tutorials/certificate-defaults/README.md), using tools like Kyverno.\n\n## Set `revisionHistoryLimit: 1` on all Certificate resources\n\n> ℹ️ Not needed with cert-manager `>= v1.18.0`, because the default value was changed to `1`.\n\nBy default, cert-manager will keep all the `CertificateRequest` resources that **it** creates\n([`revisionHistoryLimit`](../reference/api-docs.md#cert-manager.io/v1.CertificateSpec)):\n\n> The maximum number of `CertificateRequest` revisions that are maintained in\n> the Certificate's history. Each revision represents a single\n> `CertificateRequest` created by this Certificate, either when it was\n> created, renewed, or Spec was changed. Revisions will be removed by oldest\n> first if the number of revisions exceeds this number.\n> If set, `revisionHistoryLimit` must be a value of `1` or greater. If unset\n> (`nil`), revisions will not be garbage collected. Default value is `nil`.\n\nOn a busy cluster these will eventually overwheLine truncated
{"text": "![issuance flow: policy](/images/issuance-flow-policy.png)\n\ncert-manager integrates with a large number of different certificate issuers, each\nissuer has full autonomy over what issued certificates look like and what properties\nthey have. cert-manager does not require or enforce any specific relationship between\nthe properties in a CertificateRequest/ CertificateSigningRequest and the properties\nin the issued certificate (except for the public key which must match).\n\nFor the core [SelfSigned](../configuration/selfsigned.md) and [CA](../configuration/ca.md) issuers,\ncert-manager implements its own issuing policy. This policy is very simple and is not configurable.\nAll the requested properties will be copied into the issued certificate.\n\nAnother example is the [Let's Encrypt CA issuer](https://letsencrypt.org/) which also implements its own issuing policy. This policy is more complex than a 1:1\ncopy of the requested properties. For example, the Let's Encrypt issuer will always\n[issue certificates with a 90 day validity period](https://letsencrypt.org/2015/11/09/why-90-days).\nAlso, it only supports a [limited set of (extended) key usages](https://community.letsencrypt.org/t/custom-extendedkeyusage-stripped-from-csr-while-generating-cert/17759/2).", "project": "cert-manager-website", "source": "content/docs/policy/issuing.md", "commit": "cda032e36a7de880aa455ce6bbdb24aa4c3e061f", "license": "Apache-2.0", "from": "deployment-docs.jsonl"}
{"text": "You can generally tune [Certificate](../usage/certificate.md) requests by adding annotations to\n[Ingress](../usage/ingress.md) and [Gateway](../usage/gateway.md) resources.\n\n## acme.cert-manager.io/http01-edit-in-place\n- [Ingress](../usage/ingress.md)\n\nthis controls whether the ingress is modified 'in-place', or a new one is created\nspecifically for the HTTP01 challenge. If present, and set to `\"true\"`, the existing\ningress will be modified. Any other value, or the absence of the annotation assumes\n`\"false\"`.\nThis annotation will also add the annotation\n`\"cert-manager.io/issue-temporary-certificate\": \"true\"` onto created certificates\nwhich will cause a\n[temporary certificate](../usage/certificate.md#temporary-certificates-whilst-issuing)\nto be set on the resulting `Secret` until the final signed certificate has been\nreturned.\nThis is useful for keeping compatibility with the `ingress-gce` component.\n\n## acme.cert-manager.io/http01-ingress-class\n- [Ingress](../usage/ingress.md)\n\nAllows the `kubernetes.io/ingress.class` annotation to be configured.\nCustomizing this is useful when you are trying\nto secure internal services, and need to solve challenges using a different ingress class\nto that of the ingress. If not specified and the `acme-http01-edit-in-place` annotation is\nnot set, this defaults to the `http01.ingress.class` defined in the Issuer resource.\n\n## acme.cert-manager.io/http01-ingress-ingressclassname\n\n- [Ingress](../usage/ingress.md)\n\nAllows the Ingress's `spec.ingressClassName` to be configured.\nCustomizing this is useful when you are trying\nto secure internal services, and need to solve challenges using a different ingress class\nto that of the ingress. If not specified and the `acme-http01-edit-in-place` annotation is\nnot set, this defaults to the `http01.ingress.ingressClassName` defined in the Issuer resource.\n\n## acme.cert-manager.io/http01-parentrefkind\n\n- [Certificate](../usage/certificate.md)\n\nThis annotation is automatically added by cert-manager to Certificate resources\nwhen they are created from a [Gateway](../usage/gateway.md) or\n[ListenerSet](../usage/gateway.md#listenerset) resource. It stores the kind of\nthe parent resource (either `Gateway` or `ListenerSet`) that triggered the\ncreation of the Certificate. This is used internally by the ACME HTTP-01 solver\nto know where to attach the temporary HTTPRoute for the challenge.\n\n## acme.cert-manager.io/http01-parentrefname\n\n- [Certificate](../usage/certificate.md)\n\nThis annotation is automatically added by cert-manager to Certificate resources\nwhen they are created from a [Gateway](../usage/gateway.md) or\n[ListenerSet](../usage/gateway.md#listenerset) resource. It stores the name of\nthe parent resource that triggered the creation of the Certificate. This is used\ninternally by the ACME HTTP-01 solver to know where to attach the temporary\nHTTPRoute for the challenge.\n\n## cert-manager.io/allow-direct-injection\n- `Secret`\n\nallows the `cainjector` to inject secret `CA certificate` contents into other objects that have `cert-manager.io/inject-ca-from-secret`.\n\n## cert-manager.io/alt-names\n- [Certificate](../usage/certificate.md)\n\nthis annotation allows you to configure `spec.dnsNames` field for\nthe Certificate to be generated.\nSupports comma-separated values e.g. \"example.com,example.org\"\n\n## cert-manager.io/certificate-name\n- [CertificateRequest](../usage/certificaterequest.md)\n\nname of the related certificate.\n\n## cert-manager.io/certificate-revision\n- [CertificateRequest](../usage/certificaterequest.md)\n\nthe iteration the certificate request.\n\n## cert-manager.io/cluster-issuer\n- [Ingress](../usage/ingress.md)\n- [Gateway](../usage/gateway.md)\n\nthe name of a cert-manager.io ClusterIssuer that should issue the required certificate.\n\n## cert-manager.io/common-name\n- [Ingress](../usage/ingress.md)\n- [Gateway](../usage/gateway.md)\n\nthis annotation allows you to configure `spec.commonName` for the Certificate\nto be generated.\n\n## cert-manager.io/duration\n- [Ingress](../usage/ingress.md)\n- [Gateway](../usage/gateway.md)\n\nthis annotation allows you to configure `spec.duration` field for the\nCertificate to be generated.\n\n## cert-manager.io/email-sans\n- [Ingress](../usage/ingress.md)\n- [Gateway](../usage/gateway.md)\n\nthis annotation allows you to configure `spec.emailAddresses` field for\nthe Certificate to be generated.\nSupports comma-separated values e.g. \"me@example.com,you@example.com\"\n\n## cert-manager.io/ip-sans\n- [Ingress](../usage/ingress.md)\n- [Gateway](../usage/gateway.md)\n\nthis annotation allows you to configure `spec.ipAddresses` field for\nthe Certificate to be generated.\nSupports comma-separated values e.g. \"198.51.100.1,198.51.100.2\"\n\n## cert-manager.io/issuer-group\n- [Ingress](../usage/ingress.md)\n- [Gateway](../usage/gateway.md)\n\nthe API group of the external issuer controller, for example\n`awspLine truncated
{"text": "The `v0.10` release comes quick on the heels of `v0.9`. It continues the work on\nthe new `CertificateRequest` resource type, moving us towards a world where\nout-of-tree Issuer types are first class citizens.\n\nAs a project, we're pushing towards a 'stable' API release and eventually, a\n`v1.0` release. This release, and the releases to follow over the coming months,\nlay the foundation for these milestones. Keep an eye on the releases page over\nthe coming months for some exciting new developments!\n\nYou can get started using the new `CertificateRequest` controllers by enabling\nthe `CertificateRequestControllers` feature gate - all Issuer types are now\nsupported, and your feedback is extremely valuable before we switch the new\nimplementation to be the default in `v0.11`!\n\nWe've also simplified the way we bootstrap TLS certificates for the 'webhook'\ncomponent. Now, instead of creating an `Issuer` and `Certificate` resource for the\nwebhook (requiring you to disable validation on the cert-manager namespace),\nwe've implemented a dedicated `webhookbootstrap` controller which will manage\nTLS assets for the webhook.\n\n---\n\nThis release includes changes from:\n\n* `Alejandro Garrido Mota`\n* `Alpha`\n* `Hans Kristian Flaatten`\n* `James Munnelly`\n* `Jonas-Taha El Sesiy`\n* `JoshVanL`\n* `Marcello Romani`\n* `Moritz Johner`\n* `Nicolas Kowenski`\n* `Olaf Klischat`\n* `Vasilis Remmas`\n* `stuart.warren`\n* `zeeZ`\n\n## Notable Items\n\n### All Issuer types now supported with `CertificateRequests`\n\nThe `CertificateRequest` design proposal, first implemented in `v0.9`, changes the\nway we request certificates from `Issuers` in order to allow out-of-tree Issuer\ntypes.\nThis required us to refactor and adapt our existing in-tree `Issuer` types to\nfollow a similar pattern.\n\nThe `v0.10` release finishes this refactoring so that all `Issuer` types now\nsupport the new format.\n\nAs the feature is currently still in an 'alpha' state, you must set the\n`issuerRef.group` field on your Certificate resources to `certmanager.k8s.io`,\nas well as enabling the `CertificateRequestControllers` feature gate on the\n`controller` component of cert-manager.\n\n### Simplified webhook TLS bootstrapping\n\nIn past releases, we've managed TLS for the webhook component by creating an\ninternal self signed and CA issuer that is used to mint serving certificates\nfor the apiserver to authenticate the webhook's identity.\n\nThis introduced a number of complexities in our installation process and has\ncaused trouble for users in the past.\n\nIn order to simplify this process and to support running a CRD conversion\nwebhook in future (to provide seamless migration between API versions), we've\nintroduced a dedicated `webhookbootstrap` controller that relies on flags and\nSecret resources in order to configure TLS for the webhook.\n\nThis will mean easier installation as well as future-proofing for our upcoming\nplans in future releases.\n\n### `KeyUsages` on Certificate resources\n\nIn order to support a more diverse set of applications, including apps that\nrequire client-auth certificates, a new field `keyUsages` has been added which\naccepts a list of usages that must be present on a Certificate.\n\nThese will be automatically added when certificates are issued, just like any\nother field on the Certificate.\n\nThanks to Stuart Warren from Ocado for this change!\n\n### Preparation for `v1alpha2` and beyond\n\nOver the last few releases, we've been making a number of significant changes\nto our API types (i.e. moving ACME configuration from Certificate resources\nonto the Issuer resource). This has involved deprecating some old API fields.\n\nIn a future release, we'll be removing these deprecated fields altogether,\nrequiring users to update their manifests to utilize the new way to specify\nconfiguration.\n\nA number of steps have been taken in our own code base to support this change,\nand in a future release, you'll be required to update **all** your manifests for\nthis new format. Future API revisions (e.g. `v1beta1` and `v1`) will be\nautomatically converted using a Kubernetes conversion webhook (available in\nbeta from Kubernetes 1.15 onward).\n\n## Action Required\n\nNo special actions are required as part of this release.\n\n## Changelog\n\n### General\n\n- Add `DisableDeprecatedACMECertificates` feature gate to disable the old deprecated ACME configuration format ([#1923](https://github.com/cert-manager/cert-manager/pull/1923), [`@munnerz`](https://github.com/munnerz))\n- chart: fix formatting of values table in `README.md` ([#1936](https://github.com/cert-manager/cert-manager/pull/1936), [`@Starefossen`](https://github.com/Starefossen))\n- Add internal API version and implement machinery for defaulting & conversion ([#2002](https://github.com/cert-manager/cert-manager/pull/2002), [`@munnerz`](https://github.com/munnerz))\n- Fix concurrent map write panic in certificates controller ([#1980](https://gitLine truncated
{"text": "## Issue with older versions of `kubectl`\n`kubectl` versions with patch versions lower than `v1.18.8` `v1.17.11` or `v1.16.14` have issues updating the `v0.16` CRD files, due to [a bug when handling deeply nested CRDs](https://github.com/kubernetes/kubernetes/issues/91615).\nThis bug will make `kubectl apply -f [...]` hang.\n\nThis bug only happens during a re-apply of the v0.16 CRDs. Initial upgrade does not cause issues. If you have this issue please upgrade your `kubectl` to the latest patch release.\nVersions of `kubectl` of `v1.15.x` or below are not being supported anymore as these are unsupported by the Kubernetes community.\n\n### Helm\nHelm users who use `installCRDs=true` MUST upgrade to Helm `v3.3.1` before upgrading.\n\nFrom here on you can follow the [regular upgrade process](../../installation/upgrade.md).", "project": "cert-manager-website", "source": "content/docs/releases/upgrading/upgrading-0.15-0.16.md", "commit": "cda032e36a7de880aa455ce6bbdb24aa4c3e061f", "license": "Apache-2.0", "from": "deployment-docs.jsonl"}
{"text": "Version 0.5 of cert-manager introduces a new 'webhook' component, which is used\nby the Kubernetes apiserver to validate our CRD resource types.\n\nThis should help in future to reduce errors caused by misconfigured Certificate\nand Issuer resources.\n\nWhen upgrading from a previous release using Helm, it is **essential** that\nyou perform one extra step before upgrading.\n\n## Disabling resource validation on the cert-manager namespace\n\nBefore upgrading, you should add the `certmanager.k8s.io/disable-validation: \"true\"`\nlabel to the `cert-manager` namespace.\n\nThis will allow the system resources that cert-manager requires to bootstrap\nTLS to be created in its own namespace.", "project": "cert-manager-website", "source": "content/docs/releases/upgrading/upgrading-0.4-0.5.md", "commit": "cda032e36a7de880aa455ce6bbdb24aa4c3e061f", "license": "Apache-2.0", "from": "deployment-docs.jsonl"}
{"text": "#### Validation of the `rotationPolicy` field\n\nThe field `spec.privateKey.rotationPolicy` on Certificate resources is now validated. Valid options are Never and Always.\n\nBefore upgrading to 1.8.0, you will need to check that all the Certificate YAML manifests you have stored in Git if you are using a GitOps flow (or any other \"source of truth\") have a correct `rotationPolicy` value. To help you find out which Certificate YAML manifests need updating, you can run the following command:\n\n```sh\nkubectl get cert -A -ojson | jq -r \\\n '.items[] | select(.spec.privateKey) | select(.spec.privateKey.rotationPolicy | . != \"Always\" and . != \"Never\") | \"\\(.metadata.name) in namespace \\(.metadata.namespace) has rotationPolicy=\\(.spec.privateKey.rotationPolicy)\"'\n```\n\nThis command will show you, the name and namespace of each Certificate resource that needs to be updated in Git. For example:\n\n```text\nsmoketest-cert in namespace default has rotationPolicy=Foo\n```\n\n#### Server-Side Apply\n\nServer-Side Apply is an alpha feature of cert-manager introduced in 1.8. By\ndefault, the feature is disabled, in which case you can skip this section.\n\nIf you are using Server-Side Apply, i.e., you are running the cert-manager\ncontroller with the flag\n\n```text\n--feature-gates=ServerSideApply=true\n```\n\nThen you need to take action before upgrading to cert-manager 1.8. You will have\nto make sure that there are no Challenge resources currently in the cluster. If\nthere are some, you will need to manually delete them once they are in a 'valid'\nstate.\n\nThe reason the Challenge resources need to be removed before upgrading to 1.8\nwhen using the new Server-Side Apply feature is that cert-manager post-1.8 is\nnot able to clean up Challenge resources that were created pre-1.8.\n\nIf running Kubernetes versions before `v1.22`, the\n[`ServerSideApply`](https://kubernetes.io/docs/reference/using-api/server-side-apply/)\nfeature gate _must_ be enabled in the cluster. This beta feature is enabled by\ndefault on supported versions before `v1.22`.\n\n#### Migrating from the Gateway API v1alpha1 to v1alpha2\n\nThis section only applies to you if you are using the feature gate\n`ExperimentalGatewayAPISupport`.\n\ncert-manager 1.8 drops support for the Gateway API v1alpha1, and now only\nsupports v1alpha2.\n\nBefore upgrading cert-manager, you will need to:\n\n1. remove all existing Gateway API v1alpha1 resources,\n2. upgrade the Gateway API CRDs to v1alpha2,\n3. re-create the Gateway API resources with the v1alpha2.\n\nThis manual intervention is needed because the Gateway API project does not\ncome with a conversion webhook that would allow an easier migration from\nv1alpha1 to v1alpha2.\n\nAfter upgrading cert-manager to 1.8, you will need to remove the `labels` field,\nand add the `parentRefs`:\n\n```diff\n apiVersion: cert-manager.io/v1\n kind: Issuer\n metadata:\n name: letsencrypt\n namespace: default\n spec:\n acme:\n solvers:\n - http01:\n gatewayHTTPRoute:\n- labels:\n- gateway: traefik\n+ parentRefs:\n+ - name: traefik\n+ namespace: traefik\n+ kind: Gateway\n```\n\n## Now, Follow the Regular Upgrade Process\n\nFrom here on you can follow the [regular upgrade process](../../installation/upgrade.md).", "project": "cert-manager-website", "source": "content/docs/releases/upgrading/upgrading-1.7-1.8.md", "commit": "cda032e36a7de880aa455ce6bbdb24aa4c3e061f", "license": "Apache-2.0", "from": "deployment-docs.jsonl"}
{"text": "In this section, you will learn troubleshooting techniques that will help you find the root cause if your Certificate fails to be issued or renewed.\n\nThis section also includes the following guides:\n\n* [Troubleshooting Problems with ACME / Let's Encrypt Certificates](./acme.md):\n Learn more about how the ACME issuer works and how to diagnose problems with it.\n* [Troubleshooting Problems with the Webhook](./webhook.md):\n Learn how to diagnose problems with the cert-manager webhook.\n\n## Overview\n\nWhen troubleshooting cert-manager your best friend is `kubectl describe`, this will give you information on the resources as well as recent events. It is not advised to use the logs as these are quite verbose and only should be looked at if the following steps do not provide help.\n\ncert-manager consists of multiple custom resources that live inside your Kubernetes cluster, these resources are linked together and are often created by one another. When such an event happens it will be reflected in a Kubernetes event, you can see these per-namespace using `kubectl get event`, or in the output of `kubectl describe` when looking at a single resource.\n\n## Troubleshooting a failed certificate request\n\nThere are several resources that are involved in requesting a certificate.\n\n```\n\n ( +---------+ )\n ( | Ingress | ) Optional ACME Only!\n ( +---------+ )\n | |\n | +-------------+ +--------------------+ | +-------+ +-----------+\n |-> | Certificate |----> | CertificateRequest | ----> | | Order | ----> | Challenge |\n +-------------+ +--------------------+ | +-------+ +-----------+\n |\n```\n\nThe cert-manager flow all starts at a `Certificate` resource, you can create this yourself or your Ingress resource will do this for you if you have the [correct annotations](../usage/ingress.md) set.\n\n### 1. Checking the Certificate resource\nFirst we have to check if we have a `Certificate` resource created in our namespace. We can get these using `kubectl get certificate`.\n```console\n$ kubectl get certificate\nNAME READY AGE\nexample-com-tls False 1h\n```\n\nIf none is present and you plan to use the [ingress-shim](../usage/ingress.md): check the ingress annotations more about that is in the [ingress troubleshooting guide](../usage/ingress.md#troubleshooting).\nIf you are not using the ingress-shim: check the output of the command you used to create the certificate.\n\nIf you see one with ready status `False` you can get more info using `kubectl describe certificate`, if the status is `True` that means that cert-manager has successfully issued a certificate.\n```console\n$ kubectl describe certificate\n[...]\nStatus:\n Conditions:\n Last Transition Time: 2020-05-15T21:45:22Z\n Message: Issuing certificate as Secret does not exist\n Reason: DoesNotExist\n Status: False\n Type: Ready\n Next Private Key Secret Name: example-tls-wtlww\nEvents:\n Type Reason Age From Message\n ---- ------ ---- ---- -------\n Normal Issuing 105s cert-manager Issuing certificate as Secret does not exist\n Normal Generated 105s cert-manager Stored new private key in temporary Secret resource \"example-tls-wtlww\"\n Normal Requested 104s cert-manager Created new CertificateRequest resource \"example-tls-bw5t9\"\n```\n\nHere you will find more info about the current certificate status under `Status` as well as detailed information about what happened to it under `Events`. Both will help you determine the current state of the certificate.\nThe last status is `Created new CertificateRequest resource`, it is worth taking a look at in which state `CertificateRequest` is to get more info on why our `Certificate` isn't getting issued.\n\n### 2. Checking the `CertificateRequest`\nThe `CertificateRequest` resource represents a CSR in cert-manager and passes this CSR on onto the issuer.\nYou can find the name of the `CertificateRequest` in the `Certificate` event log or using `kubectl get certificaterequest`\n\nTo get more info we again run `kubectl describe`:\n```console\n$ kubectl describe certificaterequest\nAPI Version: cert-manager.io/v1\nKind: CertificateRequest\nSpec:\n Request: [...]\n Issuer Ref:\n Group: cert-manager.io\n Kind: ClusterIssuer\n Name: letencrypt-production\nStatus:\n Conditions:\n Last Transition Time: 2020-05-15T21:45:36Z\n Message: Waiting on certificate issuance from order example-tls-fqtfg-1165244518: \"pending\"\n Reason: Pending\n Status: False\n Type: Ready\nEvents:\n Type Reason Age From Message\n ---- ------ ---- ---- -------\n Normal OrderCreated 8m20s cert-manager Created Order resource example-tls-fqtfg-1165244518\n```\n\nHere we will see any issue regarding the Issuer configuration as well as Issuer responses.\n\n### 3. Check the issuer state\nIf in the above steps you saw an issuer not ready error you can do the same steps again for (cluster)issuer resources:\n```console\n$ kubectl describe issuer\n$ kubectl describe clusterissuer\n```\n\nThese will allow you to get any error messages regarding acLine truncated
{"text": "The files in this folder are deprecated and will be removed in the future.\nPlease use the files linked in the new istio-csr installation documentation.\n\nWe have to keep these files for now because they are linked from the old installation documentation.\nThe following links were part of the old installation documentation:\n\n```\nkubectl apply -f https://raw.githubusercontent.com/cert-manager/website/master/content/docs/tutorials/istio-csr/example/example-issuer.yaml\n\ncurl -sSL https://raw.githubusercontent.com/cert-manager/website/master/content/docs/tutorials/istio-csr/example/istio-config-getting-started.yaml > istio-install-config.yaml\n```", "project": "cert-manager-website", "source": "content/docs/tutorials/istio-csr/example/DEPRECATED.md", "commit": "cda032e36a7de880aa455ce6bbdb24aa4c3e061f", "license": "Apache-2.0", "from": "deployment-docs.jsonl"}
{"text": "If one disk used by one of the Longhorn replicas is full, that replica will go to the error state, and Longhorn will rebuild another replica on another node/disk.\n\nTo recover from a full disk,\n\n1. Disable the scheduling for the full disk.\n\n Longhorn should have already marked the disk as `unschedulable`.\n\n This step is to make sure the disk will not be scheduled to by accident after more space is freed up.\n\n2. Identify the replicas in the error state on the disk using the Longhorn UI's disk page.\n3. Remove the replicas in the error state.\n\n## Recommended after Recovery\n\nWe recommend adding more disks or more space to the node that had this situation.", "project": "longhorn-website", "source": "content/docs/1.14.0/advanced-resources/data-recovery/full-disk.md", "commit": "34fc6c7bb8e4a161a33af83bbda32d8dc267dbe4", "license": "Apache-2.0", "from": "deployment-docs.jsonl"}
{"text": "If you want to restrict Longhorn components to only run on a particular set of nodes, you can set node selector for all Longhorn components.\nFor example, you want to install Longhorn in a cluster that has both Linux nodes and Windows nodes but Longhorn cannot run on Windows nodes.\nIn this case, you can set the node selector to restrict Longhorn to only run on Linux nodes.\n\nFor more information about how node selector work, refer to the [official Kubernetes documentation.](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector)\n\n# Setting up Node Selector for Longhorn\nLonghorn consists of user-deployed components (for example, Longhorn Manager, Longhorn Driver, and Longhorn UI) and system-managed components (for example, Instance Manager, Backing Image Manager, Share Manager, CSI Driver, and Engine Image).\nYou need to set node selector for both types of components. See more details below.\n\n### Setting up Node Selector During installing Longhorn\n1. Set the node selector for user-deployed components (for example, Longhorn Manager, Longhorn Driver, and Longhorn UI).\n * If you install Longhorn through Rancher, you must copy and paste the following parameters into the YAML on the Rancher UI (click **Edit as YAML** during the installation) to apply the value to all user-deployed components.\n ```yaml\n global:\n nodeSelector:\n label-key1: \"label-value1\"\n ```\n * You can also specify the node selector for each user-deployed component and it will orverride the global setting.\n ```yaml\n longhornManager:\n nodeSelector:\n label-key1: \"label-value1\"\n longhornGlobalManager:\n nodeSelector:\n label-key1: \"label-value1\"\n longhornDriver:\n nodeSelector:\n label-key1: \"label-value1\"\n longhornUI:\n nodeSelector:\n label-key1: \"label-value1\"\n ```\n * If you install Longhorn by using `kubectl` to apply [the deployment YAML](https://raw.githubusercontent.com/longhorn/longhorn/v/deploy/longhorn.yaml), you need to modify the node selector section for Longhorn Manager, Longhorn Global Manager, Longhorn UI, and Longhorn Driver Deployer.\n Then apply the YAMl files.\n * If you install Longhorn using Helm, you can change the Helm values for `global.nodeSelector`, `longhornManager.nodeSelector`, `longhornGlobalManager.nodeSelector`, `longhornUI.nodeSelector`, `longhornDriver.nodeSelector` in the `values.yaml` file before installing the chart.\n\n2. Set the node selector for system-managed components (for example, Instance Manager, Backing Image Manager, Share Manager, CSI Driver, and Engine Image).\n\n Follow the [Customize default settings](../customizing-default-settings/) to set node selector by changing the value for the `system-managed-components-node-selector` default setting\n > Note: Because of the limitation of Rancher 2.5.x, if you are using Rancher UI to install Longhorn, you need to click `Edit As Yaml` and add setting `systemManagedComponentsNodeSelector` to `defaultSettings`.\n >\n > For example:\n > ```yaml\n > defaultSettings:\n > systemManagedComponentsNodeSelector: \"label-key1:label-value1\"\n > ```\n\n### Setting up Node Selector After Longhorn has been installed\n\n> **Warning**:\n> * Since all Longhorn components will be restarted, the Longhorn system is unavailable temporarily.\n> * When all Longhorn volumes are detached, the customized settings are immediately applied to the system-managed components (for example, Instance manager, CSI driver and Engine images).\n> * When one or more Longhorn volumes are still attached, the customized setting is applied to the Instance Manager only when no engines and replica instances are running. You are required to reconfigure the setting after detaching the remaining volumes. Alternatively, you can wait for the next setting synchronization, which will occur in an hour.\n> * Don't operate the Longhorn system while node selector settings are updated and Longhorn components are being restarted.\n\n1. Prepare\n * To ensure that your preferred settings are immediately applied, stop all workloads and detach all Longhorn volumes before applying it.\n\n2. Set the node selector for user-deployed components (for example, Longhorn Manager, Longhorn Driver, and Longhorn UI).\n * If you install Longhorn through Rancher, you must copy and paste the following parameters into the YAML on the Rancher UI (click **Edit as YAML** during the upgrade) to apply the value to all user-deployed components.\n ```yaml\n global:\n nodeSelector:\n label-key1: \"label-value1\"\n ```\n * You can also specify the node selector for each user-deployed component and it will override the global setting.\n ```yaml\n longhornManager:\n nodeSelector:\n label-key1: \"label-value1\"\n longhornGlobalManager:\n nodeSelector:\n label-key1: \"label-value1\"\n longhornDriver:\n nodeSelector:\n label-key1: \"label-value1\"\n longhornUI:\n nodeSelector:\n label-key1: \"label-value1\"\n ```\n * If you install Longhorn by using `kubectl` to apply [the dLine truncated
{"text": "## Use the Prebuilt Binary\n\n1. Download the binary:\n ```bash\n # Choose your architecture (amd64 or arm64).\n ARCH=\"amd64\"\n\n # Download the release binary.\n curl -LO \"https://github.com/longhorn/cli/releases/download/v/longhornctl-linux-${ARCH}\"\n ```\n1. Validate the binary:\n ```bash\n # Download the checksum for your architecture.\n curl -LO \"https://github.com/longhorn/cli/releases/download/v/longhornctl-linux-${ARCH}.sha256\"\n\n # Verify the downloaded binary matches the checksum.\n echo \"$(cat longhornctl-linux-${ARCH}.sha256 | awk '{print $1}') longhornctl-linux-${ARCH}\" | sha256sum --check\n ```\n1. Install the binary:\n ```bash\n sudo install longhornctl-linux-${ARCH} /usr/local/bin/longhornctl\n ```\n1. Verify installation:\n ```bash\n longhornctl version\n ```\n\n## Build From Source\n\nSee [this document](https://github.com/longhorn/cli/tree/?tab=readme-ov-file#build-from-source) in the GitHub repository.", "project": "longhorn-website", "source": "content/docs/1.14.0/advanced-resources/longhornctl/install-longhornctl.md", "commit": "34fc6c7bb8e4a161a33af83bbda32d8dc267dbe4", "license": "Apache-2.0", "from": "deployment-docs.jsonl"}
{"text": "Longhorn supports volume encryption in both `Filesystem` and `Block` modes. Backups created from encrypted volumes are also encrypted.\n\nVolume encryption uses the Linux kernel module `dm_crypt`, the `cryptsetup` utility, and Kubernetes Secrets. `dm_crypt` and `cryptsetup` create and manage encrypted devices. A Secret stores the encryption key and the kubelet supplies that key to the Longhorn node component when the volume is staged, published, or expanded.\n\n# Requirements\n\nTo use encrypted volumes, ensure that the `dm_crypt` kernel module is loaded and that `cryptsetup` is installed on every worker node that can run an encrypted volume.\n\n# Setting up Kubernetes Secrets and StorageClasses\n\nLonghorn uses Kubernetes Secrets for encryption keys. Kubernetes resolves StorageClass Secret parameters when it creates a PV. Configure the node-side Secret parameters on the StorageClass so the resulting PV contains the references needed by the kubelet.\nMetadata-only updates to an existing StorageClass remain possible. StorageClass parameter changes require a same-name replacement because parameters are immutable.\n\nIn the following example, the encryption key is specified as string data in `CRYPTO_KEY_VALUE`. Using string data avoids Base64 encoding before submitting the Secret with kubectl.\n\nBesides `CRYPTO_KEY_VALUE`, `CRYPTO_KEY_CIPHER`, `CRYPTO_KEY_HASH`, `CRYPTO_KEY_SIZE`, `CRYPTO_PBKDF`, `CRYPTO_PBKDF_FORCE_ITERATIONS`, and `CRYPTO_PBKDF_MEMORY` customize volume encryption.\n\n- `CRYPTO_KEY_CIPHER`: Cipher specification. The default for LUKS is `aes-xts-plain64`.\n- `CRYPTO_KEY_HASH`: Passphrase hash for `open`. The default is `sha256`.\n- `CRYPTO_KEY_SIZE`: Key size in bits, as a multiple of 8. The default is `256`.\n- `CRYPTO_PBKDF`: Password-Based Key Derivation Function for the LUKS keyslot. The default is `argon2i`.\n- `CRYPTO_PBKDF_FORCE_ITERATIONS`: Fixed PBKDF iteration count. In FIPS mode, an explicit value such as `200000` helps meet PBKDF2 policy requirements. The Longhorn default is `200000`.\n- `CRYPTO_PBKDF_MEMORY`: Memory cost in KB for memory-hard algorithms such as Argon2. The default is `0` and this parameter is ignored when PBKDF2 is used.\n\nFor more information, see [`cryptsetup(8)`](https://man7.org/linux/man-pages/man8/cryptsetup.8.html).\n\n- Example of an encryption Secret:\n\n ```yaml\n apiVersion: v1\n kind: Secret\n metadata:\n name: longhorn-crypto\n namespace: longhorn-system\n stringData:\n CRYPTO_KEY_VALUE: \"Your encryption passphrase\"\n CRYPTO_KEY_PROVIDER: \"secret\"\n CRYPTO_KEY_CIPHER: \"aes-xts-plain64\"\n CRYPTO_KEY_HASH: \"sha256\"\n CRYPTO_KEY_SIZE: \"256\"\n CRYPTO_PBKDF: \"argon2i\"\n CRYPTO_PBKDF_FORCE_ITERATIONS: \"200000\"\n CRYPTO_PBKDF_MEMORY: \"0\"\n ```\n\n- Example of a StorageClass with a global node-side Secret:\n\n ```yaml\n kind: StorageClass\n apiVersion: storage.k8s.io/v1\n metadata:\n name: longhorn-crypto-global\n provisioner: driver.longhorn.io\n allowVolumeExpansion: true\n parameters:\n numberOfReplicas: \"3\"\n staleReplicaTimeout: \"2880\" # 48 hours in minutes\n fromBackup: \"\"\n encrypted: \"true\"\n csi.storage.k8s.io/node-publish-secret-name: \"longhorn-crypto\"\n csi.storage.k8s.io/node-publish-secret-namespace: \"longhorn-system\"\n csi.storage.k8s.io/node-stage-secret-name: \"longhorn-crypto\"\n csi.storage.k8s.io/node-stage-secret-namespace: \"longhorn-system\"\n csi.storage.k8s.io/node-expand-secret-name: \"longhorn-crypto\"\n csi.storage.k8s.io/node-expand-secret-namespace: \"longhorn-system\"\n ```\n\n- Example of a StorageClass with a volume-specific node-side Secret:\n\n ```yaml\n kind: StorageClass\n apiVersion: storage.k8s.io/v1\n metadata:\n name: longhorn-crypto-per-volume\n provisioner: driver.longhorn.io\n allowVolumeExpansion: true\n parameters:\n numberOfReplicas: \"3\"\n staleReplicaTimeout: \"2880\" # 48 hours in minutes\n fromBackup: \"\"\n encrypted: \"true\"\n csi.storage.k8s.io/node-publish-secret-name: ${pvc.name}\n csi.storage.k8s.io/node-publish-secret-namespace: ${pvc.namespace}\n csi.storage.k8s.io/node-stage-secret-name: ${pvc.name}\n csi.storage.k8s.io/node-stage-secret-namespace: ${pvc.namespace}\n csi.storage.k8s.io/node-expand-secret-name: ${pvc.name}\n csi.storage.k8s.io/node-expand-secret-namespace: ${pvc.namespace}\n ```\n\nKeep the original Secret and all node-side references when updating a StorageClass. Never include Secret values in a manifest export, support bundle, or issue report.\n\n# Secret access for encrypted volumes\n\nThe CSI controller sidecars run with the dedicated `longhorn-csi-service-account`. The base `longhorn-csi-role` and `longhorn-csi-bind` remain Secret-free because the sidecars are separate from the Longhorn manager and node plugin.\n\nThe released Helm chart and static installation manifests grant this service account **cluster-wide `get` access to core Kubernetes Secrets by default** through `longhorn-csi-secret-role` and `longhorn-csi-secret-bind`. The ClusLine truncated
{"text": "We recommend the following setup for deploying Longhorn in production.\n\n> **Important:** We recommend enabling only one data engine (V1 or V2) per cluster. When both data engines are enabled simultaneously, each node runs separate instance-manager pods for V1 and V2, each with its own guaranteed CPU reservation. This significantly increases CPU overhead per node (the V2 instance-manager pod alone consumes at least 1 dedicated CPU core, which is configurable, for the `spdk_tgt` process). If your workloads do not require both engines, disable the unused one to conserve resources. For more information about guaranteed CPU reservations and how CPU consumption differs between V1 and V2 upgrade flows, see [Guaranteed Instance Manager CPU](#guaranteed-instance-manager-cpu).\n\n- [Minimum Recommended Hardware](#minimum-recommended-hardware)\n - [V1 Data Engine](#v1-data-engine)\n - [V2 Data Engine](#v2-data-engine)\n- [Architecture](#architecture)\n- [Operating System](#operating-system)\n- [Kubernetes](#kubernetes)\n - [Kubernetes Version](#kubernetes-version)\n - [CoreDNS Setup](#coredns-setup)\n - [CNI Plugin Compatibility](#cni-plugin-compatibility)\n- [Nodes and Disk Setup](#nodes-and-disk-setup)\n - [Use a Dedicated Disk](#use-a-dedicated-disk)\n - [Minimal Available Storage and Over-provisioning](#minimal-available-storage-and-over-provisioning)\n - [Disk Space Management](#disk-space-management)\n - [Setting up Extra Disks](#setting-up-extra-disks)\n - [V2 Data Engine: Block-Type Disks](#v2-data-engine-block-type-disks)\n- [Configuring Default Disks Before and After Installation](#configuring-default-disks-before-and-after-installation)\n- [Volumes Performance Optimization](#volumes-performance-optimization)\n - [IO Performance](#io-performance)\n - [Space Efficiency](#space-efficiency)\n - [Disaster Recovery](#disaster-recovery)\n- [Deploying Workloads](#deploying-workloads)\n- [Volumes Maintenance](#volumes-maintenance)\n- [Guaranteed Instance Manager CPU](#guaranteed-instance-manager-cpu)\n - [V1 Data Engine](#v1-data-engine-1)\n - [V2 Data Engine](#v2-data-engine-1)\n- [StorageClass](#storageclass)\n- [Scheduling Settings](#scheduling-settings)\n - [Replica Node Level Soft Anti-Affinity](#replica-node-level-soft-anti-affinity)\n - [Allow Volumes Creation with Degraded Availability](#allow-volumes-creation-with-degraded-availability)\n - [Replica Auto-Balance](#replica-auto-balance)\n\n## Minimum Recommended Hardware\n\n### V1 Data Engine\n\n- 3 nodes\n- 4 vCPUs per node\n- 4 GiB per node\n- SSD/NVMe or similar performance block device on the node for storage (recommended)\n- HDD/Spinning Disk or similar performance block device on the node for storage (verified)\n - 500/250 max IOPS per volume (1 MiB I/O)\n - 500/250 max throughput per volume (MiB/s)\n\n> **Warning**: While Longhorn can function with HDDs (spinning disks) as storage, it is important to understand that **latency** plays a much more important role in volume stability than IOPS or throughput. This is because HDDs are mechanical, relying on spinning platters and moving read/write heads to access data. This physical movement introduces inherent delays (seek time and rotational delay), leading to much higher latency compared to the SSDs or NVMe drives, which utilize flash memory and have no moving parts. This can directly cause instability, especially when multiple input-output intensive tasks are running, such as:\n>\n> - Foreground IOs to the replicas\n> - Foreground IOs from the replicas\n> - Rebuilding volumes\n> - Backups or other workloads\n>\n> The increased latency due to the use of HDDs, combined with other input-output workloads, can lead to **volume instability**. Therefore, we recommend **SSD or NVMe** drives for better performance and stability, especially for production workloads.\n>\n> The mentioned IOPS and throughput (500/250 max IOPS per volume and 500/250 max throughput per volume) are intended as general references based on the test setup but **should not be treated as hard requirements**. Latency, not just throughput, is the most important factor in ensuring system stability.\n\n### V2 Data Engine\n\nIn addition to the V1 requirements above, nodes hosting V2 volumes have these additional requirements:\n\n- 3 nodes\n- **Additional 1 CPU core per node** dedicated to each V2 instance-manager pod (the `spdk_tgt` process uses intensive polling and consumes 100% of a dedicated CPU core)\n- **Additional 2 GiB memory per node** reserved for huge pages (1024 × 2 MiB-sized pages)\n- **Local NVMe SSDs** are strongly recommended for V2 volumes to achieve optimal storage performance\n- Linux kernel 6.7 or later for NVMe/TCP support and better stability.\n- Required kernel modules: `vfio_pci`, `uio_pci_generic`, `nvme-tcp`\n- AMD64 CPUs require SSE4.2 instruction support\n> **Warning**:\n>\n> If you are using AWS EC2 Burstable Performance Instances (such as AWS EC2 T-series), it is highly recommended to set `CpuCredits=unLine truncated
{"text": "> **Note**: As of November 2025, the Kubernetes project has announced the retirement of the ingress-nginx controller. For details, [see the official announcement](https://kubernetes.io/blog/2025/11/11/ingress-nginx-retirement/).\n>\n> **Recommended Alternatives**:\n> To ensure continued support and security, we recommend using one of the following methods to expose the Longhorn UI:\n> * **Traefik Ingress**: The current default for RKE2/K3s environments. See [Create an Ingress with Traefik](../longhorn-ingress-traefik).\n> * **Gateway API**: The modern, successor to Ingress for advanced routing. See [Create an HTTPRoute with Gateway API](../longhorn-httproute).\n\nIf you install Longhorn on a Kubernetes cluster with kubectl or Helm, you will need to create an Ingress to allow external traffic to reach the Longhorn UI.\n\nAuthentication is not enabled by default for kubectl and Helm installations. In these steps, you'll learn how to create an Ingress with basic authentication using annotations for the nginx ingress controller.\n\n1. Create a basic auth file `auth`. It's important the file generated is named auth (actually - that the secret has a key `data.auth`), otherwise the Ingress returns a 503.\n ```\n $ USER= ; PASSWORD= ; echo \"${USER}:$(openssl passwd -stdin -apr1 > auth\n ```\n2. Create a secret:\n ```\n $ kubectl -n longhorn-system create secret generic basic-auth --from-file=auth\n ```\n3. Create an Ingress manifest `longhorn-ingress.yml` :\n > Since v1.2.0, Longhorn supports uploading backing image from the UI, so please specify `nginx.ingress.kubernetes.io/proxy-body-size: 10000m` as below to ensure uploading images work as expected.\n\n ```\n apiVersion: networking.k8s.io/v1\n kind: Ingress\n metadata:\n name: longhorn-ingress\n namespace: longhorn-system\n annotations:\n # type of authentication\n nginx.ingress.kubernetes.io/auth-type: basic\n # prevent the controller from redirecting (308) to HTTPS\n nginx.ingress.kubernetes.io/ssl-redirect: 'false'\n # name of the secret that contains the user/password definitions\n nginx.ingress.kubernetes.io/auth-secret: basic-auth\n # message to display with an appropriate context why the authentication is required\n nginx.ingress.kubernetes.io/auth-realm: 'Authentication Required '\n # custom max body size for file uploading like backing image uploading\n nginx.ingress.kubernetes.io/proxy-body-size: 10000m\n spec:\n ingressClassName: nginx\n rules:\n - http:\n paths:\n - pathType: Prefix\n path: \"/\"\n backend:\n service:\n name: longhorn-frontend\n port:\n number: 80\n ```\n4. Create the Ingress:\n ```\n $ kubectl -n longhorn-system apply -f longhorn-ingress.yml\n ```\n\ne.g.:\n```\n$ USER=foo; PASSWORD=bar; echo \"${USER}:$(openssl passwd -stdin -apr1 > auth\n$ cat auth\nfoo:$apr1$FnyKCYKb$6IP2C45fZxMcoLwkOwf7k0\n\n$ kubectl -n longhorn-system create secret generic basic-auth --from-file=auth\nsecret/basic-auth created\n$ kubectl -n longhorn-system get secret basic-auth -o yaml\napiVersion: v1\ndata:\n auth: Zm9vOiRhcHIxJEZueUtDWUtiJDZJUDJDNDVmWnhNY29Md2tPd2Y3azAK\nkind: Secret\nmetadata:\n creationTimestamp: \"2020-05-29T10:10:16Z\"\n name: basic-auth\n namespace: longhorn-system\n resourceVersion: \"2168509\"\n selfLink: /api/v1/namespaces/longhorn-system/secrets/basic-auth\n uid: 9f66233f-b12f-4204-9c9d-5bcaca794bb7\ntype: Opaque\n\n$ echo \"\napiVersion: networking.k8s.io/v1\nkind: Ingress\nmetadata:\n name: longhorn-ingress\n namespace: longhorn-system\n annotations:\n # type of authentication\n nginx.ingress.kubernetes.io/auth-type: basic\n # prevent the controller from redirecting (308) to HTTPS\n nginx.ingress.kubernetes.io/ssl-redirect: 'false'\n # name of the secret that contains the user/password definitions\n nginx.ingress.kubernetes.io/auth-secret: basic-auth\n # message to display with an appropriate context why the authentication is required\n nginx.ingress.kubernetes.io/auth-realm: 'Authentication Required '\nspec:\n rules:\n - http:\n paths:\n - pathType: Prefix\n path: \"/\"\n backend:\n service:\n name: longhorn-frontend\n port:\n number: 80\n\" | kubectl -n longhorn-system create -f -\ningress.networking.k8s.io/longhorn-ingress created\n\n$ kubectl -n longhorn-system get ingress\nNAME HOSTS ADDRESS PORTS AGE\nlonghorn-ingress * 45.79.165.114,66.228.45.37,97.107.142.125 80 2m7s\n\n$ curl -v http://97.107.142.125/\n* Trying 97.107.142.125...\n* TCP_NODELAY set\n* Connected to 97.107.142.125 (97.107.142.125) port 80 (#0)\n> GET / HTTP/1.1\n> Host: 97.107.142.125\n> User-Agent: curl/7.64.1\n> Accept: */*\n>\n\n 401 Authorization Required\n\n 401 Authorization Required\n openresty/1.15.8.1\n\n* Connection #0 to host 97.107.142.125 left intact\n* Closing connection 0\n\n$ curl -v http://97.107.142.125/ -u foo:bar\n* Trying 97.107.142.125...\n* TCP_NODELAY set\n* Connected to 97.107.142.125 (97.107.142.125) port 80 (#0)\n* Server auth using Basic with user 'foo'\n> GET / HTTP/1.1\n> Host: 97.107.142.125\n> Authorization: Basic Line truncated
{"text": "## Prerequisites\n- Your workstation: Install the [Argo CD CLI](https://argo-cd.readthedocs.io/en/stable/cli_installation/).\n- Kubernetes cluster:\n - Ensure that each node fulfills the [installation requirements](../#installation-requirements).\n - Install [Argo CD](https://argo-cd.readthedocs.io/en/stable/).\n\n ```bash\n kubectl create namespace argocd\n kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/core-install.yaml\n ```\n Allow some time for the deployment of Argo CD components in the `argocd` namespace.\n\n> Use [Longhorn Command Line Tool](../../../advanced-resources/longhornctl/) to check the Longhorn environment for potential issues.\n\n## Installing Longhorn\n\n1. Log in to Argo CD.\n\n ```bash\n argocd login --core\n ```\n\n1. Set the current namespace to `argocd`.\n\n ```bash\n kubectl config set-context --current --namespace=argocd\n ```\n\n1. Create the Longhorn Application custom resource.\n\n ```bash\n cat > longhorn-application.yaml <<EOF\n apiVersion: argoproj.io/v1alpha1\n kind: Application\n metadata:\n name: longhorn\n namespace: argocd\n spec:\n syncPolicy:\n syncOptions:\n - CreateNamespace=true\n project: default\n sources:\n - chart: longhorn\n repoURL: https://charts.longhorn.io/\n targetRevision: v # Replace with the Longhorn version you'd like to install or upgrade to\n helm:\n values: |\n preUpgradeChecker:\n jobEnabled: false\n destination:\n server: https://kubernetes.default.svc\n namespace: longhorn-system\n EOF\n kubectl apply -f longhorn-application.yaml\n ```\n\n1. Deploy Longhorn with the configured settings.\n\n ```bash\n argocd app sync longhorn\n ```\n\n1. Verify that Longhorn was installed successfully.\n\n ```bash\n kubectl -n longhorn-system get pod\n ```\n\n Example of a successful Longhorn installation:\n\n ```bash\n NAME READY STATUS RESTARTS AGE\n longhorn-ui-b7c844b49-w25g5 1/1 Running 0 2m41s\n longhorn-manager-pzgsp 1/1 Running 0 2m41s\n longhorn-driver-deployer-6bd59c9f76-lqczw 1/1 Running 0 2m41s\n longhorn-csi-plugin-mbwqz 2/2 Running 0 100s\n csi-snapshotter-588457fcdf-22bqp 1/1 Running 0 100s\n csi-snapshotter-588457fcdf-2wd6g 1/1 Running 0 100s\n csi-provisioner-869bdc4b79-mzrwf 1/1 Running 0 101s\n csi-provisioner-869bdc4b79-klgfm 1/1 Running 0 101s\n csi-resizer-6d8cf5f99f-fd2ck 1/1 Running 0 101s\n csi-provisioner-869bdc4b79-j46rx 1/1 Running 0 101s\n csi-snapshotter-588457fcdf-bvjdt 1/1 Running 0 100s\n csi-resizer-6d8cf5f99f-68cw7 1/1 Running 0 101s\n csi-attacher-7bf4b7f996-df8v6 1/1 Running 0 101s\n csi-attacher-7bf4b7f996-g9cwc 1/1 Running 0 101s\n csi-attacher-7bf4b7f996-8l9sw 1/1 Running 0 101s\n csi-resizer-6d8cf5f99f-smdjw 1/1 Running 0 101s\n instance-manager-b34d5db1fe1e2d52bcfb308be3166cfc 1/1 Running 0 114s\n engine-image-ei-df38d2e5-cv6nc 1/1 Running 0 114s\n ```\n\n1. [Create an NGINX Ingress controller with basic authentication](../../accessing-the-ui/longhorn-ingress) to access the Longhorn UI. Authentication to the Longhorn UI is not enabled by default.\n\n1. [Access the Longhorn UI](../../accessing-the-ui).", "project": "longhorn-website", "source": "content/docs/1.14.0/deploy/install/install-with-argocd.md", "commit": "34fc6c7bb8e4a161a33af83bbda32d8dc267dbe4", "license": "Apache-2.0", "from": "deployment-docs.jsonl"}
{"text": "In this section, you'll learn how to uninstall Longhorn.\n\n- [Prerequisite](#prerequisite)\n- [Uninstalling Longhorn from the Rancher UI](#uninstalling-longhorn-from-the-rancher-ui)\n- [Uninstalling Longhorn using Helm](#uninstalling-longhorn-using-helm)\n- [Uninstalling Longhorn using Helm Controller](#uninstalling-longhorn-using-helm-controller)\n- [Uninstalling Longhorn using Fleet](#uninstalling-longhorn-using-fleet)\n- [Uninstalling Longhorn using Flux](#uninstalling-longhorn-using-flux)\n- [Uninstalling Longhorn using Argo CD](#uninstalling-longhorn-using-argo-cd)\n- [Uninstalling Longhorn using kubectl](#uninstalling-longhorn-using-kubectl)\n- [Troubleshooting](#troubleshooting)\n - [Uninstalling using Rancher UI or Helm failed, I am not sure why](#uninstalling-using-rancher-ui-or-helm-failed-i-am-not-sure-why)\n - [I deleted the Longhorn App from Rancher UI instead of following the uninstallation procedure](#i-deleted-the-longhorn-app-from-rancher-ui-instead-of-following-the-uninstallation-procedure)\n - [Problems with CRDs](#problems-with-crds)\n\n### Prerequisite\nTo prevent Longhorn from being accidentally uninstalled (which leads to data lost),\nwe introduce a new setting, [deleting-confirmation-flag](../../references/settings/#deleting-confirmation-flag).\nIf this flag is **false**, the Longhorn uninstallation job will fail.\nSet this flag to **true** to allow Longhorn uninstallation.\nYou can set this flag using setting page in Longhorn UI or `kubectl -n longhorn-system patch -p '{\"value\": \"true\"}' --type=merge lhs deleting-confirmation-flag`\n\nTo prevent damage to the Kubernetes cluster, we recommend deleting all Kubernetes workloads using Longhorn volumes (PersistentVolume, PersistentVolumeClaim, StorageClass, Deployment, StatefulSet, DaemonSet, etc).\n\n### Uninstalling Longhorn from the Rancher UI\n\nFrom Rancher UI, navigate to `Catalog Apps` tab and delete Longhorn app.\n\n### Uninstalling Longhorn using Helm\n\nRun this command:\n\n```\nhelm uninstall longhorn -n longhorn-system\n```\n\n### Uninstalling Longhorn using Helm Controller\n\nRun this command:\n\n```\nkubectl delete helmchart -n\n```\n\n### Uninstalling Longhorn Using Fleet\n\nRun the following command:\n\n```\nkubectl delete GitRepo longhorn -n fleet-local\n```\n\nAfter the `longhorn-uninstall` job is completed, run the following command:\n\n```\nkubectl delete -f https://raw.githubusercontent.com/longhorn/longhorn/v/deploy/longhorn.yaml\n```\n\n### Uninstalling Longhorn Using Flux\n\nRun the following command:\n\n```\nflux delete helmrelease longhorn-release -n longhorn-system\n```\n\n### Uninstalling Longhorn Using Argo CD\n\nArgo CD currently does not support the PreDelete resource hook. Instead of running `argocd app delete longhorn` directly, you must [uninstall Longhorn using kubectl](#uninstalling-longhorn-using-kubectl) to prevent dangling resources from remaining in the `longhorn-system` namespace.\n\n### Uninstalling Longhorn using kubectl\n\n1. Create the uninstallation job to clean up CRDs from the system and wait for success:\n\n ```\n kubectl create -f https://raw.githubusercontent.com/longhorn/longhorn/v/uninstall/uninstall.yaml\n kubectl get job/longhorn-uninstall -n longhorn-system -w\n ```\n\n Example output:\n ```\n $ kubectl create -f https://raw.githubusercontent.com/longhorn/longhorn/v/uninstall/uninstall.yaml\n serviceaccount/longhorn-uninstall-service-account created\n clusterrole.rbac.authorization.k8s.io/longhorn-uninstall-role created\n clusterrolebinding.rbac.authorization.k8s.io/longhorn-uninstall-bind created\n job.batch/longhorn-uninstall created\n\n $ kubectl get job/longhorn-uninstall -n longhorn-system -w\n NAME COMPLETIONS DURATION AGE\n longhorn-uninstall 0/1 3s 3s\n longhorn-uninstall 1/1 20s 20s\n ```\n\n2. Remove remaining components:\n ```\n kubectl delete -f https://raw.githubusercontent.com/longhorn/longhorn/v/deploy/longhorn.yaml\n kubectl delete -f https://raw.githubusercontent.com/longhorn/longhorn/v/uninstall/uninstall.yaml\n ```\n\n> **Tip:** If you try `kubectl delete -f https://raw.githubusercontent.com/longhorn/longhorn/v/deploy/longhorn.yaml` first and get stuck there,\npressing `Ctrl C` then running `kubectl create -f https://raw.githubusercontent.com/longhorn/longhorn/v/uninstall/uninstall.yaml` can also help you remove Longhorn. Finally, don't forget to cleanup remaining components.\n\n### Troubleshooting\n#### Uninstalling using Rancher UI or Helm failed, I am not sure why\nYou might want to check the logs of the `longhorn-uninstall-xxx` pod inside `longhorn-system` namespace to see why it failed.\nOne reason can be that [deleting-confirmation-flag](../../references/settings/#deleting-confirmation-flag) is `false`.\nYou can set it to `true` by using setting page in Longhorn UI or `kubectl -n longhorn-system patch -p '{\"value\": \"true\"}' --type=merge lhs deleting-confirmation-flag`\nthen retry the Helm/Rancher uninstallation.\n\nIf the uninstallation wLine truncated
{"text": "> **Notice**:\n>\n> This engine upgrade procedure applies only to V1 Data Engine volumes. For V2 Data Engine, see [V2 Data Engine Instance Manager Upgrade](../v2-instance-upgrade/).\n\nSince Longhorn v1.1.1, we provide an option to help you automatically upgrade Longhorn volumes to the new default engine version after upgrading Longhorn manager.\nThis feature reduces the amount of manual work you have to do when upgrading Longhorn.\nThere are a few concepts related to this feature as listed below:\n\n## 1. Concurrent Automatic Engine Upgrade Per Node Limit Setting\n\nThis is a setting that controls how Longhorn automatically upgrades volumes' engines to the new default engine image after upgrading Longhorn manager.\nThe value of this setting specifies the maximum number of engines per node that are allowed to upgrade to the default engine image at the same time.\nIf the value is 0, Longhorn will not automatically upgrade volumes' engines to the default version.\nThe bigger this value is, the faster the engine upgrade process finishes.\n\nHowever, giving a bigger value for this setting will consume more CPU and memory of the node during the engine upgrade process.\nWe recommend setting the value to 3 to leave some room for error but don't overwhelm the system with too many failed upgrades.\n\n## 2. The behavior of Longhorn with different volume conditions\n\nIn the following cases, assume that the `concurrent automatic engine upgrade per node limit` setting is bigger than 0.\n\n1. Attached Volumes\n\n If the volume is in attached state and healthy, Longhorn will automatically do a live upgrade for the volume's engine to the new default engine image.\n\n1. Detached Volumes\n\n Longhorn automatically does an offline upgrade for detached volume.\n\n1. Disaster Recovery Volumes\n\n Longhorn doesn't automatically upgrade [disaster recovery volumes](../../../snapshots-and-backups/setup-disaster-recovery-volumes/) to the new default engine image because it would trigger a full restoration for the disaster recovery volumes.\nThe full restoration might affect the performance of other running Longhorn volumes in the system.\nSo, Longhorn leaves it to you to decide when it is the good time to manually upgrade the engine for disaster recovery volumes (e.g., when the system is idle or during the maintenance time).\n\n However, when you activate the disaster recovery volume, it will be activated and then detached.\nAt this time, Longhorn will automatically do offline upgrade for the volume similar to the detached volume case.\n\n## 3. What Happened If The Upgrade Fails?\n\nIf a volume failed to upgrade its engine, the engine image in volume's spec will remain to be different than the engine image in the volume's status.\nLonghorn will continuously retry to upgrade until it succeeds.\n\nIf there are too many volumes that fail to upgrade per node (i.e., more than the `concurrent automatic engine upgrade per node limit` setting),\nLonghorn will stop upgrading volume on that node.\n\n## 4. Liveness and Cleanup of Old Instance Manager Pods During Automatic Upgrade\n\nFor the liveness and cleanup of old instance manager pods during live upgrade, refer to the [Instance Manager Pods During Upgrade](../instance-manager-pods-during-upgrade) documentation.", "project": "longhorn-website", "source": "content/docs/1.14.0/deploy/upgrade/auto-upgrade-engine.md", "commit": "34fc6c7bb8e4a161a33af83bbda32d8dc267dbe4", "license": "Apache-2.0", "from": "deployment-docs.jsonl"}
{"text": "This section describes how to handle planned node maintenance or upgrading Kubernetes version for the cluster.\n\n- [Updating the Node OS or Container Runtime](#updating-the-node-os-or-container-runtime)\n- [Removing a Disk](#removing-a-disk)\n - [Reusing the Node Name](#reusing-the-node-name)\n- [Removing a Node](#removing-a-node)\n- [Upgrading Kubernetes](#upgrading-kubernetes)\n - [In-place Upgrade](#in-place-upgrade)\n - [Managed Kubernetes](#managed-kubernetes)\n- [Node Drain Policy Recommendations](#node-drain-policy-recommendations)\n - [Important Notes](#important-notes)\n - [Block If Contains Last Replica](#block-if-contains-last-replica)\n - [Allow If Last Replica Is Stopped](#allow-if-last-replica-is-stopped)\n - [Always Allow](#always-allow)\n - [Block For Eviction](#block-for-eviction)\n - [Block For Eviction If Contains Last Replica](#block-for-eviction-if-contains-last-replica)\n\n## Updating the Node OS or Container Runtime\n\n1. Cordon the node. Longhorn will automatically disable the node scheduling when a Kubernetes node is cordoned.\n\n1. Drain the node to move the workload to somewhere else.\n\n It is necessary to use `--ignore-daemonsets` to drain the node. The `--ignore-daemonsets` is needed because Longhorn\n deployed some daemonsets such as `Longhorn manager`, `Longhorn CSI plugin`, `engine image`.\n\n While the drain proceeds, engine processes on the node will be migrated with the workload pods to other nodes.\n\n > **Note:** Volumes that are not attached through the CSI flow on the node (for example, manually attached using\n > UI) will not be automatically attached to new nodes by Kubernetes during the draining. Therefore, Longhorn will\n > prevent the node from completing the drain operation. The user will need to detach these volumes manually to\n > unblock the draining.\n\n While the drain proceeds, replica processes on the node will either continue to run or eventually be evicted and\n stopped based on the [Node Drain Policy](#node-drain-policy-recommendations).\n\n > **Note:** By default, if there is one last healthy replica for a volume on the node, Longhorn will prevent the node\n > from completing the drain operation, to protect the last replica and prevent the disruption of the workload. You\n > can control this behavior with the setting [Node Drain Policy](../../references/settings#node-drain-policy), or\n > [evict the replica to other nodes before draining](../../nodes-and-volumes/nodes/disks-or-nodes-eviction). See [Node Drain Policy\n > Recommendations](#node-drain-policy-recommendations) for considerations when selecting a policy.\n\n After the drain is completed, there should be no engine or replica processes running on the node, as the\n instance-manager pod that was running them will be stopped. Depending on the [Node Drain\n Policy](#node-drain-policy-recommendations), replicas scheduled to the node will either appear as `Failed` or be\n removed in favor of replacements. Workloads using Longhorn volumes will function as expected and enough replicas will\n be running elsewhere to meet the requirements of the policy.\n\n > **Note:** Normally you don't need to evict the replicas before the drain operation, as long as you have healthy\n > replicas on other nodes. The replicas can be reused later, once the node back online and uncordoned. See [Node\n > Drain Policy](#node-drain-policy-recommendations) for further guidance.\n\n1. Perform the necessary maintenance, including shutting down or rebooting the node.\n1. Uncordon the node. Longhorn will automatically re-enable the node scheduling. If there are existing replicas on the\n node, Longhorn might use those replicas to speed up the rebuilding process. You can set the [Replica Replenishment\n Wait Interval](../../references/settings#replica-replenishment-wait-interval) setting to customize how long Longhorn\n should wait for potentially reusable replica to be available.\n\n## Removing a Disk\n\nTo remove a disk:\n\n1. Disable the disk scheduling.\n1. Evict all the replicas on the disk.\n1. Delete the disk.\n\n### Reusing the Node Name\n\nThese steps also apply if you've replaced a node using the same node name. Longhorn will recognize that the disks are\ndifferent once the new node is up. You will need to remove the original disks first and add them back for the new node\nif it uses the same name as the previous node.\n\n## Removing a Node\n\nTo remove a node:\n\n1. Disable the disk scheduling.\n1. Evict all the replicas on the node.\n1. Detach all the volumes on the node.\n\n If the node has been drained, all the workloads should be migrated to another node already.\n\n If there are any other volumes remaining attached, detach them before continuing.\n\n1. Remove the node from Longhorn using the `Delete` in the `Node` tab.\n\n Or, remove the node from Kubernetes, using:\n\n kubectl delete node\n\n1. Longhorn will automatically remove the node from the cluster.\n\n## Upgrading Kubernetes\n\n### In-place ULine truncated
{"text": "## Disk Health Metrics\n\nStarting with Longhorn v1.11.0, disk health monitoring metrics are available for both the V1 and V2 data engines. These metrics provide insights into disk health status.\n\n> **Note:**\n> - Health data is collected periodically (every 10 minutes) by Longhorn’s disk monitor.\n> - Some virtualized or cloud environments (e.g., AWS EBS) may not expose full SMART data, resulting in zero values for certain attributes.\n> - Available health attributes may vary depending on the underlying disk type and hardware.\n> - The full set of collected health data is available in the `nodes.longhorn.io` Custom Resources (CRs).\n\n### Data Sources\n\n- **V1 Data Engine**:\n - Health data is collected using the SMART monitoring tool (`smartctl`).\n- **V2 Data Engine**:\n - **NVMe disks:** Health data is retrieved through SPDK.\n - **AIO disks:** Health data is collected using the SMART monitoring tool (`smartctl`).\n\n> **Note:**\n>\n> Health data is sourced differently depending on disk type:\n> - **V1 disks and V2 AIO disks:** via SMART\n> - **V2 NVMe disks:** via SPDK\n>\n> Available attributes and formats may vary by disk type and hardware. For details:\n> - **SMART attributes:** [smartmontools documentation](https://www.smartmontools.org/wiki/TocDoc)\n> - **SPDK NVMe health data:** [bdev_nvme_get_controller_health_info JSON-RPC](https://github.com/spdk/spdk/blob/v25.09/doc/jsonrpc.md.jinja2#L4805-L4856).\n\n### Health Attributes\n\nThe `longhorn_disk_health_attribute_raw` metric exposes raw attribute values with the following labels:\n- `attribute`: Name of the attribute\n- `attribute_id`: Attribute ID, when provided by the collection method.\n- `disk`: Longhorn disk identifier.\n- `node`: Name of the node.\n\n> **Note:**\n>\n> SMART data may not be available on all platforms (particularly cloud providers). If SMART is not supported, health metrics will appear as `0`.\n\n### References\n\n- Related Github [Issue #12016](https://github.com/longhorn/longhorn/issues/12016).", "project": "longhorn-website", "source": "content/docs/1.14.0/monitoring/disk-heath.md", "commit": "34fc6c7bb8e4a161a33af83bbda32d8dc267dbe4", "license": "Apache-2.0", "from": "deployment-docs.jsonl"}
{"text": "- [Access Modes](#access-modes)\n- [Create Longhorn Volumes](#create-longhorn-volumes)\n - [Creating V1 Longhorn Volumes with kubectl](#creating-v1-longhorn-volumes-with-kubectl)\n - [Creating V2 Longhorn Volumes with kubectl (replication)](#creating-v2-longhorn-volumes-with-kubectl-replication)\n - [Creating V2 Longhorn Volumes with kubectl (sharding)](#creating-v2-longhorn-volumes-with-kubectl-sharding)\n - [Binding Workloads to PVs without a Kubernetes StorageClass](#binding-workloads-to-pvs-without-a-kubernetes-storageclass)\n - [Creating Longhorn Volumes with the Longhorn UI](#creating-longhorn-volumes-with-the-longhorn-ui)\n - [PV/PVC Creation for Existing Longhorn Volume](#pvpvc-creation-for-existing-longhorn-volume)\n - [The Failure of the Longhorn Volume Creation](#the-failure-of-the-longhorn-volume-creation)\n\nIn this tutorial, you'll learn how to create Kubernetes persistent storage resources of PersistentVolumes (PVs) and PersistentVolumeClaims (PVCs) that correspond to Longhorn volumes. You will use kubectl to dynamically provision V1 and V2 volumes for workloads using Longhorn storage classes. For help creating volumes from the Longhorn UI, see the Creating Longhorn Volumes with the [Longhorn UI section](#creating-longhorn-volumes-with-the-longhorn-ui).\n\n> This section assumes that you understand how Kubernetes persistent storage works. For more information, see the [Kubernetes documentation.](https://kubernetes.io/docs/concepts/storage/persistent-volumes/)\n\n## Access Modes\n\nLonghorn supports the following Kubernetes PersistentVolume access modes:\n\n- **ReadWriteOnce (RWO)**: The volume can be mounted as read-write by a single node. Multiple pods on the same node can access the volume. This is the default and most common access mode.\n- **ReadWriteOncePod (RWOP)**: The volume can be mounted as read-write by a single pod in the entire cluster. This provides the strongest isolation guarantee, ensuring only one pod can access the volume at any time. Ideal for stateful workloads requiring single-writer access.\n- **ReadWriteMany (RWX)**: The volume can be mounted as read-write by many nodes simultaneously, enabling shared access across multiple pods. See [ReadWriteMany (RWX) Volume](../rwx-volumes) for more details.\n\n> **Note**: ReadOnlyMany (ROX) is not supported by Longhorn. For read-only access from multiple pods, consider using ReadWriteMany with read-only mount options in your pod specification.\n\n## Create Longhorn Volumes\n\n### Creating V1 Longhorn Volumes with kubectl\n\nBefore creating a V1 volume, ensure that Longhorn has at least one available filesystem-type disk. V1 volumes are scheduled only to filesystem-type disks. For more information, see [Add a Filesystem-Type Disk](../../nodes/multidisk/#add-a-filesystem-type-disk).\n\nFirst, you will create a Longhorn StorageClass. The Longhorn StorageClass contains the parameters to provision PVs.\n\nNext, a PersistentVolumeClaim is created that references the StorageClass. Finally, the PersistentVolumeClaim is mounted as a volume within a Pod.\n\nWhen the Pod is deployed, the Kubernetes master will check the PersistentVolumeClaim to make sure the resource request can be fulfilled. If storage is available, the Kubernetes master will create the Longhorn volume and bind it to the Pod.\n\n1. Use following command to create a StorageClass called `longhorn`:\n\n ```shell\n kubectl create -f https://raw.githubusercontent.com/longhorn/longhorn/v/examples/storageclass.yaml\n ```\n\n The following example StorageClass is created:\n\n ```yaml\n kind: StorageClass\n apiVersion: storage.k8s.io/v1\n metadata:\n name: longhorn\n provisioner: driver.longhorn.io\n allowVolumeExpansion: true\n parameters:\n numberOfReplicas: \"3\"\n staleReplicaTimeout: \"2880\" # 48 hours in minutes\n fromBackup: \"\"\n fsType: \"ext4\"\n # backupTargetName: \"default\"\n # mkfsParams: \"-I 256 -b 4096 -O ^metadata_csum,^64bit\"\n # diskSelector: \"ssd,fast\"\n # nodeSelector: \"storage,fast\"\n # recurringJobSelector: '[\n # {\n # \"name\":\"snap\",\n # \"isGroup\":true,\n # },\n # {\n # \"name\":\"backup\",\n # \"isGroup\":false,\n # }\n # ]'\n ```\n\n In particular, starting with v1.4.0, the parameter `mkfsParams` can be used to specify filesystem format options for each StorageClass.\n Starting with v1.8.0, the parameter `backupTargetName` can be used to specify the backup target. The name of the default backup target (`default`) is used if `backupTargetName` is not specified.\n Parameters may be omitted from the StorageClass specification. When the storage class is used to create a PV and a volume, parameters that are not specified will generally be set using a default value taken from the global settings. See [Storage Class Parameters](../../../references/storage-class-parameters) for the list of storage class parameters, and [Settings](../../../references/settings) for the full list of global settings.\n\n2. Create a Pod that uses Longhorn volumLine truncated
{"text": "Shut down all Kubernetes Pods using Longhorn volumes in order to detach the volumes. The easiest way to achieve this is by deleting all workloads and recreate them later after upgrade. If this is not desirable, some workloads may be suspended.\n\nIn this section, you'll learn how each workload can be modified to shut down its pods.\n\n#### Deployment\nEdit the deployment with `kubectl edit deploy/ `.\n\nSet `.spec.replicas` to `0`.\n\n#### StatefulSet\nEdit the statefulset with `kubectl edit statefulset/ `.\n\nSet `.spec.replicas` to `0`.\n\n#### DaemonSet\nEdit the daemonset with `kubectl edit ds/ `.\n\nAdd a nodeSelector to the pod spec:\n```yaml\nspec:\n template:\n spec:\n nodeSelector:\n no-schedule: \"true\"\n```\n\n#### Pod\nDelete the pod with `kubectl delete pod/ `.\n\nThere is no way to suspend a pod not managed by a workload controller.\n\n#### CronJob\nEdit the cronjob with `kubectl edit cronjob/ `.\n\nSet `.spec.suspend` to `true`.\n\nWait for any currently executing jobs to complete, or terminate them by deleting relevant pods.\n\n#### Job\nConsider allowing the single-run job to complete.\n\nOtherwise, delete the job with `kubectl delete job/ `.\n\n#### ReplicaSet\nEdit the replicaset with `kubectl edit replicaset/ `.\n\nSet `.spec.replicas` to `0`.\n\n#### ReplicationController\nEdit the replicationcontroller with `kubectl edit rc/ `.\n\nSet `.spec.replicas` to `0`.\n\nWait for the volumes using by the Kubernetes to complete detaching.\n\nThen detach all remaining volumes from Longhorn UI. These volumes were most likely created and attached outside of Kubernetes via Longhorn UI or REST API.", "project": "longhorn-website", "source": "content/docs/1.14.0/nodes-and-volumes/volumes/detaching-volumes.md", "commit": "34fc6c7bb8e4a161a33af83bbda32d8dc267dbe4", "license": "Apache-2.0", "from": "deployment-docs.jsonl"}
{"text": "## Values\n\nThe `values.yaml` file contains items used to tweak a deployment of this chart.\n\n### Cattle Settings\n\n| Key | Type | Default | Description |\n|-----|------|---------|-------------|\n| global.cattle.systemDefaultRegistry | string | `\"\"` | Default system registry. |\n| global.cattle.windowsCluster.defaultSetting.systemManagedComponentsNodeSelector | string | `\"kubernetes.io/os:linux\"` | Node selector for system-managed Longhorn components. |\n| global.cattle.windowsCluster.defaultSetting.taintToleration | string | `\"cattle.io/os=linux:NoSchedule\"` | Toleration for system-managed Longhorn components. |\n| global.cattle.windowsCluster.enabled | bool | `false` | Setting that allows Longhorn to run on a Rancher Windows cluster. |\n| global.cattle.windowsCluster.nodeSelector | object | `{\"kubernetes.io/os\":\"linux\"}` | Node selector for Linux nodes that can run user-deployed Longhorn components. |\n| global.cattle.windowsCluster.tolerations | list | `[{\"effect\":\"NoSchedule\",\"key\":\"cattle.io/os\",\"operator\":\"Equal\",\"value\":\"linux\"}]` | Toleration for Linux nodes that can run user-deployed Longhorn components. |\n\n### Network Policies\n\n| Key | Type | Default | Description |\n|-----|------|---------|-------------|\n| networkPolicies.enabled | bool | `false` | Setting that allows you to enable network policies that control access to Longhorn pods. |\n| networkPolicies.restrictInternalTraffic | bool | `true` | Setting that allows you to enable network policies for internal Longhorn components. When enabled, only authorized Longhorn components are allowed to communicate with each other. |\n| networkPolicies.type | string | `\"k3s\"` | Distribution that determines the policy for allowing access for an ingress. (Options: \"k3s\", \"rke2\", \"rke1\") |\n\n### Image Settings\n\n| Key | Type | Default | Description |\n|-----|------|---------|-------------|\n| image.csi.attacher.repository | string | `\"longhornio/csi-attacher\"` | Repository for the CSI attacher image. When unspecified, Longhorn uses the default value. |\n| image.csi.attacher.tag | string | `\"v4.9.0-20250826\"` | Tag for the CSI attacher image. When unspecified, Longhorn uses the default value. |\n| image.csi.livenessProbe.repository | string | `\"longhornio/livenessprobe\"` | Repository for the CSI liveness probe image. When unspecified, Longhorn uses the default value. |\n| image.csi.livenessProbe.tag | string | `\"v2.16.0-20250826\"` | Tag for the CSI liveness probe image. When unspecified, Longhorn uses the default value. |\n| image.csi.nodeDriverRegistrar.repository | string | `\"longhornio/csi-node-driver-registrar\"` | Repository for the CSI Node Driver Registrar image. When unspecified, Longhorn uses the default value. |\n| image.csi.nodeDriverRegistrar.tag | string | `\"v2.14.0-20250826\"` | Tag for the CSI Node Driver Registrar image. When unspecified, Longhorn uses the default value. |\n| image.csi.provisioner.repository | string | `\"longhornio/csi-provisioner\"` | Repository for the CSI Provisioner image. When unspecified, Longhorn uses the default value. |\n| image.csi.provisioner.tag | string | `\"v5.3.0-20250826\"` | Tag for the CSI Provisioner image. When unspecified, Longhorn uses the default value. |\n| image.csi.resizer.repository | string | `\"longhornio/csi-resizer\"` | Repository for the CSI Resizer image. When unspecified, Longhorn uses the default value. |\n| image.csi.resizer.tag | string | `\"v1.14.0-20250826\"` | Tag for the CSI Resizer image. When unspecified, Longhorn uses the default value. |\n| image.csi.snapshotter.repository | string | `\"longhornio/csi-snapshotter\"` | Repository for the CSI Snapshotter image. When unspecified, Longhorn uses the default value. |\n| image.csi.snapshotter.tag | string | `\"v8.3.0-20250826\"` | Tag for the CSI Snapshotter image. When unspecified, Longhorn uses the default value. |\n| image.longhorn.backingImageManager.repository | string | `\"longhornio/backing-image-manager\"` | Repository for the Backing Image Manager image. When unspecified, Longhorn uses the default value. |\n| image.longhorn.backingImageManager.tag | string | `\"v1.10.0\"` | Tag for the Backing Image Manager image. When unspecified, Longhorn uses the default value. |\n| image.longhorn.engine.repository | string | `\"longhornio/longhorn-engine\"` | Repository for the Longhorn Engine image. |\n| image.longhorn.engine.tag | string | `\"v1.10.0\"` | Tag for the Longhorn Engine image. |\n| image.longhorn.instanceManager.repository | string | `\"longhornio/longhorn-instance-manager\"` | Repository for the Longhorn Instance Manager image. |\n| image.longhorn.instanceManager.tag | string | `\"v1.10.0\"` | Tag for the Longhorn Instance Manager image. |\n| image.longhorn.manager.repository | string | `\"longhornio/longhorn-manager\"` | Repository for the Longhorn Manager image. |\n| image.longhorn.manager.tag | string | `\"v1.10.0\"` | Tag for the Longhorn Manager image. |\n| Line truncated
{"text": "A [snapshot](../../concepts/#24-snapshots) is the state of a Kubernetes volume at any given moment in time.\n\n## Snapshot Management via UI\n\nTo create a snapshot of an existing cluster, follow these steps:\n\n1. In the top navigation bar of the Longhorn UI, click **Volume**.\n2. Click the name of the volume for which you want to create a snapshot. This leads to the volume detail page.\n3. Click the **Take Snapshot** button.\n\nOnce the snapshot is created, you will see it in the list of snapshots for the volume before the Volume Head.\n\n### Understanding the Snapshot Chain Visualization\n\nOn the **Volume Details** page, the **Snapshots and Backups** section displays the snapshot history as a chain. By default, the **Show System Snapshots** option is **enabled**, meaning all system-created snapshots are displayed automatically.\n\nEach snapshot in the chain is color-coded to indicate its type or status, following a specific priority (highest status is displayed if multiple apply).\n\n| Snapshot Type | Color | Description | Priority (1 = Highest) |\n| :--- | :--- | :--- | :--- |\n| **Error** | Red | Indicates a snapshot that failed during creation or has an issue. | 1 |\n| **Removed** | Light Grey | A snapshot that has been marked for removal or successfully deleted. | 2 |\n| **System-created** | Orange/Yellow | Snapshots automatically created by Longhorn, often for recurring jobs or internal operations. | 3 |\n| **Backup** | Green | A snapshot that has been backed up to a configured backup target. | 4 |\n| **Default** (User-created) | Blue | A standard, user-initiated snapshot taken manually using the **Take Snapshot** button. | 5 |\nBelow is an example of the snapshot chain visualization:\n\n## Snapshot Management with Custom Resources (CRs)\n\nThis section demonstrates how to create, list, restore, and delete Longhorn snapshots directly via `kubectl` using Longhorn’s **Custom Resources (CRs)**.\n\n> **Note**: Longhorn uses its own `Snapshot` CRD under the `longhorn.io` API group (for example, `v1beta2`), not the generic Kubernetes `VolumeSnapshot` from `snapshot.storage.k8s.io`.\n\n### Create a Snapshot\n\n1. **Prepare the manifest**: Create a file named `longhorn-snapshot.yaml`:\n\n ```yaml\n apiVersion: longhorn.io/v1beta2\n kind: Snapshot\n metadata:\n name: longhorn-test-snapshot\n namespace: longhorn-system\n spec:\n volume: pvc-840804d8-6f11-49fd-afae-54bc5be639de # replace with your actual Longhorn volume name\n createSnapshot: true\n ```\n\n2. **Apply the manifest**:\n\n ```bash\n kubectl apply -f longhorn-snapshot.yaml\n ```\n\n Expected output:\n\n ```bash\n snapshot.longhorn.io/longhorn-test-snapshot created\n ```\n\n > **Note**: If the volume is detached, you will see a brief warning about the engine not running. Longhorn automatically retries, and the snapshot will complete once the volume is attached.\n\n### List Snapshots\n\n```bash\nkubectl get snapshots.longhorn.io -l longhornvolume=pvc-840804d8-6f11-49fd-afae-54bc5be639de -n longhorn-system\n```\n\n### Delete a Snapshot\n\n```bash\nkubectl delete snapshot.longhorn.io longhorn-test-snapshot -n longhorn-system\n```\n\nExpected output:\n\n```\nsnapshot.longhorn.io \"longhorn-test-snapshot\" deleted\n```\n\n> **Note**: Longhorn automatically handles the cleanup of the underlying data.\n\n## Data Engine Behavioral Differences\n\nWhen deleting a snapshot that is the direct parent of the **Volume Head** (the current active state), the behavior of the Snapshot Custom Resource (CR) depends on the Data Engine being used:\n\n| Behavior | v1 Data Engine | v2 Data Engine |\n| :--- | :--- | :--- |\n| **CR Persistence** | The Snapshot CR **remains** in the system. | The Snapshot CR is **immediately removed**. |\n| **Status Fields** | `READYTOUSE` becomes `false` and the snapshot is marked as `Removed`. | Not applicable, because the Snapshot CR is deleted. |\n| **Explanation** | v1 volumes cannot physically merge the parent of a live volume head immediately. The CR remains to track the snapshot data until a later merge or cleanup operation. | v2 volumes support live merging of the parent snapshot into the volume head, allowing for immediate cleanup of both data and metadata. |\n\nThis behavioral difference is expected. In **v2 volumes**, the immediate disappearance of the Snapshot CR indicates that the engine has successfully finalized the deletion and merged the data.\n\nFor a broader comparison, see [Data Engine Comparison](../../data-engine-comparison/).", "project": "longhorn-website", "source": "content/docs/1.14.0/snapshots-and-backups/setup-a-snapshot.md", "commit": "34fc6c7bb8e4a161a33af83bbda32d8dc267dbe4", "license": "Apache-2.0", "from": "deployment-docs.jsonl"}
{"text": "Since v1.4.0, Longhorn replaced the in-house support bundle generation with a general-purpose [support bundle kit](https://github.com/rancher/support-bundle-kit).\n\nYou can click the `Generate Support Bundle` at the bottom of Longhorn UI to download a zip file containing cluster manifests and logs.\n\nDuring support bundle generation, Longhorn will create a Deployment for the support bundle manager.\n\n> **Note:** The support bundle manager will use a dedicated `longhorn-support-bundle` service account and `longhorn-support-bundle` cluster role binding with `cluster-admin` access for bundle collection.\n\nWith the support bundle, you can simulate a mocked Kubernetes cluster that is interactable with the `kubectl` command. See [simulator command](https://github.com/rancher/support-bundle-kit#simulator-command) for more details.\n\n## Limitations\n\nLonghorn currently does not support concurrent generation of multiple support bundles. We recommend waiting until the completion of the ongoing support bundle before initiating a new one. If a new support bundle is created while another one is still in progress, Longhorn will overwrite the older support bundle.\n\n## History\n[Original Feature Request](https://github.com/longhorn/longhorn/issues/2759)\n\nAvailable since v1.4.0", "project": "longhorn-website", "source": "content/docs/1.14.0/troubleshoot/support-bundle.md", "commit": "34fc6c7bb8e4a161a33af83bbda32d8dc267dbe4", "license": "Apache-2.0", "from": "deployment-docs.jsonl"}
{"text": "# CloudNativePG documentation\n\nCloudNativePG documentation is written in Markdown from the `docs` folder. The\n`src` folder contains the sources with the `.md` extension.\n\nWe have adopted [Docusaurus](https://docusaurus.io/) as an open\nsource solution to build the documentation starting from Markdown\nformat.\n\nBefore you submit a pull request for the documentation, you must have\ngone through the following steps:\n\n1. local test of the documentation\n2. run through the spell checker\n\n## How to locally test the documentation\n\nTo ensure your documentation changes look correct before creating a Pull\nRequest, you can build and view the documentation locally using Docker.\n\nExecute the following command in your terminal. This command uses the same\ninfrastructure as the official CloudNativePG documentation website, mounting\nyour local files for preview:\n\n```bash\ndocker run --rm -ti -p 3000:3000 \\\n -v ./src:/website/docs \\\n ghcr.io/cloudnative-pg/docs:latest\n```\n\nOnce the server is running, open your browser and navigate to the local\ndocumentation preview at: `http://127.0.0.1:3000/docs/next/`.\n\nThoroughly check your changes—put yourself in the end user's shoes to verify\nclarity and accuracy. Complete a final spell check, and then proceed with\nsubmitting your pull request.\n\n## How to run the spell checker\n\nEvery time you work on the documentation, please run from the top directory:\n\n``` bash\nmake spellcheck\n```\n\nThis will run a spell checker and highlight all the words that need to be\neither fixed or added to the `.wordlist-en-custom.txt` file.\n\n## Reminders\n\nIf you added samples to `docs/src/samples` or modified existing samples, please\nconsider if they should be included in the curated [list of examples](src/samples.md)\n\nAnd please help keeping the samples in the curated list, as well as any samples\nnamed `cluster-example-*` in runnable condition.\nThese can be a big help for beginners.\n\n## License\n\nThe CloudNativePG documentation and all the work under the `docs` folder is\nlicensed under a Creative Commons Attribution 4.0 International License.", "project": "cloudnative-pg", "source": "docs/README.md", "commit": "e9eec0d3b49adb088f6fbcfa024d4ea288105c6e", "license": "Apache-2.0", "from": "deployment-docs.jsonl"}
{"text": "# Before you start\n\nBefore we get started, it is essential to go over some terminology that is\nspecific to Kubernetes and PostgreSQL.\n\n## Kubernetes terminology\n\n[Node](https://kubernetes.io/docs/concepts/architecture/nodes/)\n: A *node* is a worker machine in Kubernetes, either virtual or physical, where\n all services necessary to run pods are managed by the control plane node(s).\n\n[Postgres Node](architecture.md#reserving-nodes-for-postgresql-workloads)\n: A *Postgres node* is a Kubernetes worker node dedicated to running PostgreSQL\n workloads. This is achieved by applying the `node-role.kubernetes.io` label and\n taint, as [proposed by CloudNativePG](architecture.md#reserving-nodes-for-postgresql-workloads).\n It is also referred to as a `postgres` node.\n\n[Pod](https://kubernetes.io/docs/concepts/workloads/pods/pod/)\n: A *pod* is the smallest computing unit that can be deployed in a Kubernetes\n cluster and is composed of one or more containers that share network and\n storage.\n\n[Service](https://kubernetes.io/docs/concepts/services-networking/service/)\n: A *service* is an abstraction that exposes as a network service an\n application that runs on a group of pods and standardizes important features\n such as service discovery across applications, load balancing, failover, and so\n on.\n\n[Secret](https://kubernetes.io/docs/concepts/configuration/secret/)\n: A *secret* is an object that is designed to store small amounts of sensitive\n data such as passwords, access keys, or tokens, and use them in pods.\n\n[Storage Class](https://kubernetes.io/docs/concepts/storage/storage-classes/)\n: A *storage class* allows an administrator to define the classes of storage in\n a cluster, including provisioner (such as AWS EBS), reclaim policies, mount\n options, volume expansion, and so on.\n\n[Persistent Volume](https://kubernetes.io/docs/concepts/storage/persistent-volumes/)\n: A *persistent volume* (PV) is a resource in a Kubernetes cluster that\n represents storage that has been either manually provisioned by an\n administrator or dynamically provisioned by a *storage class* controller. A PV\n is associated with a pod using a *persistent volume claim* and its lifecycle is\n independent of any pod that uses it. Normally, a PV is a network volume,\n especially in the public cloud. A [*local persistent volume*\n (LPV)](https://kubernetes.io/docs/concepts/storage/volumes/#local) is a\n persistent volume that exists only on the particular node where the pod that\n uses it is running.\n\n[Persistent Volume Claim](https://kubernetes.io/docs/concepts/storage/persistent-volumes/#persistentvolumeclaims)\n: A *persistent volume claim* (PVC) represents a request for storage, which\n might include size, access mode, or a particular storage class. Similar to how\n a pod consumes node resources, a PVC consumes the resources of a PV.\n\n[Namespace](https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/)\n: A *namespace* is a logical and isolated subset of a Kubernetes cluster and\n can be seen as a *virtual cluster* within the wider physical cluster.\n Namespaces allow administrators to create separated environments based on\n projects, departments, teams, and so on.\n\n[RBAC](https://kubernetes.io/docs/reference/access-authn-authz/rbac/)\n: *Role Based Access Control* (RBAC), also known as *role-based security*, is a\n method used in computer systems security to restrict access to the network and\n resources of a system to authorized users only. Kubernetes has a native API to\n control roles at the namespace and cluster level and associate them with\n specific resources and individuals.\n\n[CRD](https://kubernetes.io/docs/concepts/extend-kubernetes/api-extension/custom-resources/)\n: A *custom resource definition* (CRD) is an extension of the Kubernetes API\n and allows developers to create new data types and objects, *called custom\n resources*.\n\n[Operator](https://kubernetes.io/docs/concepts/extend-kubernetes/operator/)\n: An *operator* is a custom resource that automates those steps that are\n normally performed by a human operator when managing one or more applications\n or given services. An operator assists Kubernetes in making sure that the\n resource's defined state always matches the observed one.\n\n[`kubectl`](https://kubernetes.io/docs/reference/kubectl/overview/)\n: `kubectl` is the command-line tool used to manage a Kubernetes cluster.\n\nCloudNativePG requires a Kubernetes version supported by the community. Please refer to the\n[\"Supported releases\"](supported_releases.md) page for details.\n\n## PostgreSQL terminology\n\nInstance\n: A Postgres server process running and listening on a pair \"IP address(es)\"\n and \"TCP port\" (usually 5432).\n\nPrimary\n: A PostgreSQL instance that can accept both read and write operations.\n\nReplica\n: A PostgreSQL instance replicating from the only primary instance in a\n cluster and is kept updated by reading a stream Line truncated
{"text": "# Bootstrap\n\nThis section describes the options available to create a new\nPostgreSQL cluster and the design rationale behind them.\nThere are primarily two ways to bootstrap a new cluster:\n\n- from scratch (`initdb`)\n- from an existing PostgreSQL cluster, either directly (`pg_basebackup`)\n or indirectly through a physical base backup (`recovery`)\n\nThe `initdb` bootstrap also provides the option to import one or more\ndatabases from an existing PostgreSQL cluster, even if it's outside\nKubernetes or running a different major version of PostgreSQL.\nFor more detailed information about this feature, please refer to the\n[\"Importing Postgres databases\"](database_import.md) section.\n\n:::info[Important]\n Bootstrapping from an existing cluster enables the creation of a\n **replica cluster**—an independent PostgreSQL cluster that remains in\n continuous recovery, stays synchronized with the source cluster, and\n accepts read-only connections.\n For more details, refer to the [Replica Cluster section](replica_cluster.md).\n:::\n\n:::warning\n CloudNativePG requires both the `postgres` user and database to\n always exist. Using the local Unix Domain Socket, it needs to connect\n as the `postgres` user to the `postgres` database via `peer` authentication in\n order to perform administrative tasks on the cluster.\n **DO NOT DELETE** the `postgres` user or the `postgres` database!!!\n:::\n\n:::info\n CloudNativePG is gradually introducing support for\n [Kubernetes' native `VolumeSnapshot` API](https://github.com/cloudnative-pg/cloudnative-pg/issues/2081)\n for both incremental and differential copy in backup and recovery\n operations - if supported by the underlying storage classes.\n Please see [\"Recovery from Volume Snapshot objects\"](recovery.md#recovery-from-volumesnapshot-objects)\n for details.\n:::\n\n## The `bootstrap` section\n\nThe *bootstrap* method can be defined in the `bootstrap` section of the cluster\nspecification. CloudNativePG currently supports the following bootstrap methods:\n\n- `initdb`: initialize a new PostgreSQL cluster (default)\n- `recovery`: create a PostgreSQL cluster by restoring from a base backup of an\n existing cluster and, if needed, replaying all the available WAL files or up to\n a given *point in time*\n- `pg_basebackup`: create a PostgreSQL cluster by cloning an existing one of\n the same major version using `pg_basebackup` through the streaming\n replication protocol. This method is particularly useful for migrating\n databases to CloudNativePG, although meeting all requirements can be\n challenging. Be sure to review the warnings in the\n [`pg_basebackup` subsection](#bootstrap-from-a-live-cluster-pg_basebackup)\n carefully.\n\nOnly one bootstrap method can be specified in the manifest.\nAttempting to define multiple bootstrap methods will result in validation errors.\n\nIn contrast to the `initdb` method, both `recovery` and `pg_basebackup`\ncreate a new cluster based on another one (either offline or online) and can be\nused to spin up replica clusters. They both rely on the definition of external\nclusters.\nRefer to the [replica cluster section](replica_cluster.md) for more information.\n\nGiven the amount of possible backup methods and combinations of backup\nstorage that the CloudNativePG operator provides for `recovery`, please refer to\nthe dedicated [\"Recovery\" section](recovery.md) for guidance on each method.\n\n:::note[API reference]\n Please refer to the [\"API reference for the `bootstrap` section](cloudnative-pg.v1.md#bootstrapconfiguration)\n for more information.\n:::\n\n## The `externalClusters` section\n\nThe `externalClusters` section of the cluster manifest can be used to configure\naccess to one or more PostgreSQL clusters as *sources*.\nThe primary use cases include:\n\n1. **Importing Databases:** Specify an external source to be utilized during\n the [importation of databases](database_import.md) via logical backup and\n restore, as part of the `initdb` bootstrap method.\n2. **Cross-Region Replication:** Define a cross-region PostgreSQL cluster\n employing physical replication, capable of extending across distinct Kubernetes\n clusters or traditional VM/bare-metal environments.\n3. **Recovery from Physical Base Backup:** Recover, fully or at a\n given Point-In-Time, a PostgreSQL cluster by referencing a physical base\n backup.\n\n:::info\n Ongoing development will extend the functionality of `externalClusters` to\n accommodate additional use cases, such as logical replication and foreign\n servers in future releases.\n:::\n\nAs far as bootstrapping is concerned, `externalClusters` can be used\nto define the source PostgreSQL cluster for either the `pg_basebackup`\nmethod or the `recovery` one. An external cluster needs to have:\n\n- a name that identifies the external cluster, to be used as a reference via the\n `source` option\n- at least one of the following:\n\n - information about streaming connection\n - information aboLine truncated
{"text": "# Networking\n\nCloudNativePG assumes the underlying Kubernetes cluster has the required\nconnectivity already set up.\nNetworking on Kubernetes is an important and extended topic; please refer to\nthe [Kubernetes documentation](https://kubernetes.io/docs/concepts/services-networking/) for further information.\n\nIf you're following the quickstart guide to install CloudNativePG on a local KinD or K3d cluster, you should not encounter any networking issues as neither\nplatform will add any networking restrictions by default.\n\nHowever, when deploying CloudNativePG on existing infrastructure, networking\nrestrictions might be in place that could impair the communication of the\noperator with PostgreSQL clusters.\nSpecifically, existing [Network Policies](https://kubernetes.io/docs/concepts/services-networking/network-policies/)\nmight restrict certain types of traffic.\n\nOr, you might be interested in adding network policies in your environment for\nincreased security.\nAs mentioned in the [security document](security.md), please ensure the operator can reach every cluster pod on ports 8000 and 5432, and that pods can connect to each other.\n\n## Cross-namespace network policy for the operator\n\nFollowing the quickstart guide or using helm chart for deployment will install the operator in\na dedicated namespace (`cnpg-system` by default).\nWe recommend that you create clusters in a different namespace.\n\nThe operator *must* be able to connect to cluster pods.\nThis might be precluded if there is a `NetworkPolicy` restricting\ncross-namespace traffic.\n\nFor example, the\n[kubernetes guide on network policies](https://kubernetes.io/docs/concepts/services-networking/network-policies/)\ncontains an example policy denying all ingress traffic by default.\n\nIf your local kubernetes setup has this kind of restrictive network policy, you\nwill need to create a `NetworkPolicy` to explicitly allow connection from the\noperator namespace and pod to the cluster namespace and pods. You can find an example in the\n[`networkpolicy-example.yaml`](samples/networkpolicy-example.yaml) file in this repository.\nPlease note, you'll need to adjust the cluster name and cluster namespace to\nmatch your specific setup, and also the operator namespace if it is not\nthe default namespace.\n\n## Cross-cluster networking\n\nWhile [bootstrapping](bootstrap.md) from another cluster or when using the `externalClusters` section,\nensure connectivity among all clusters, object stores, and namespaces involved.\n\nAgain, we refer you to the [Kubernetes documentation](https://kubernetes.io/docs/concepts/services-networking/)\nfor setup information.", "project": "cloudnative-pg", "source": "docs/src/networking.md", "commit": "e9eec0d3b49adb088f6fbcfa024d4ea288105c6e", "license": "Apache-2.0", "from": "deployment-docs.jsonl"}
{"text": "# Supported releases\n\n*This page lists the status, timeline and policy for currently supported\nreleases of CloudNativePG*.\n\nWe are committed to providing support for the latest minor release, with a\ndedication to launching a new minor release every three months. Each release\nremains fully supported until reaching its designated \"End of Life\" date, as\noutlined in the [support status table for CloudNativePG releases](#support-status-of-cloudnativepg-releases).\nThis includes an additional 3-month assistance window to facilitate seamless\nupgrade planning.\n\nSupported releases of CloudNativePG include releases that are in the active\nmaintenance window and are patched for security and bug fixes.\n\nSubsequent patch releases on a minor release contain backward-compatible changes only.\n\n* [Support policy](#support-policy)\n* [Naming scheme](#naming-scheme)\n* [Support status of CloudNativePG releases](#support-status-of-cloudnativepg-releases)\n* [What we mean by support](#what-we-mean-by-support)\n\n## Support Policy\n\nCloudNativePG produces new builds for each commit.\n\nApproximately every two months, we create a minor release that undergoes\nseveral additional tests and a thorough release qualification process. We\nrelease patch versions for issues found in supported minor releases.\n\nBefore an official release, at least one Release Candidate (RC) is built for\n[preview testing](preview_version.md).\nAdditional release candidates may be issued if new bugs are discovered.\nThe Release Candidates are announced on the Slack channel to encourage\ncommunity testing before the final release.\nThe maintainers provide 1-2 weeks for community testing, and if no objections\nare raised, the final release is announced.\n\nDifferent types of releases represent varying levels of product quality and\nassistance from the CloudNativePG community. For details on the support\nprovided by the community, see [What we mean by support](#what-we-mean-by-support).\n\n| Type | Support level | Quality and recommended Use |\n|-------------------|-----------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------|\n| Development Build | No support | Dangerous, might not be fully reliable. Useful to experiment with. |\n| Release Candidate | No support | [Preview version: Not production-ready](preview_version.md). Released for experimentation and testing. |\n| Minor Release | Support provided until 3 months after the N+1 minor release (ex. 1.23 supported until 3 months after 1.24.0 is released)|\n| Patch | Same as the corresponding minor release | Users are encouraged to adopt patch releases as soon as they are available for a given release. |\n| Security Patch | Same as a patch, however, it doesn't contain any additional code other than the security fix from the previous patch | Given the nature of security fixes, users are **strongly** encouraged to adopt security patches after release. |\n\nYou can find available releases on the [releases page](https://github.com/cloudnative-pg/cloudnative-pg/releases).\n\nYou can find high-level more information for each minor and patch release in\nthe [release notes](release_notes.md).\n\nSure, here’s an improved version of the naming scheme section:\n\n## Naming Scheme\n\nOur naming scheme follows [Semantic Versioning 2.0.0](https://semver.org/) and\nis structured as follows:\n\n```\n . .\n```\n\n- ` ` is incremented for each release.\n- ` ` counts the number of patches for the current ` ` release,\n representing small changes relative to the ` ` release.\n\nRelease candidates are indicated by an additional `- ` identifier\nfollowing the patch version, as specified in [Semantic Versioning 2.0.0 - item #9](https://semver.org/#spec-item-9).\n\nGit tags for versions are prefixed with `v`.\n\n## Support status of CloudNativePG releases\n\n| Version | Currently supported | Release date | End of life | Supported Kubernetes versions | Tested, but not supported | Supported Postgres versions |\n|-----------------|----------------------|--------------|-----------------|-------------------------------|---------------------------|-----------------------------|\n| 1.30.x | Yes | 29 Jun 2026 | ~ Mar 2027 | 1.34, 1.35, 1.36 | 1.37, 1.33, 1.32, 1.31 | 15 - 18 |\n| main | No, development only | | | | | 15 - 18 |\n\nThe list of supported Kubernetes versions in the table depends on what\nthe CloudNativePG maintainers think is reasonable to support and to test.\n\nCurrently, the CloudNativePG community does not officially support or test any\nKubernetes distributions beyond the standard/vanilla one - such as Red Hat\nOpenShift. This may change in the future, and if it does, the CloudNativePG\nmaintainers will update the official policy accordingly.\n\nIf you plan to deploy CloudNativePG on Red Hat OpenShift, you can use the\n[cerLine truncated
{"text": "# Running the service via TLS (optional)\n\n## Bring your own certificate\n\nHeadscale can be configured to expose its web service via TLS. To configure the certificate and key file manually, set the `tls.cert_path` and `tls.key_path` configuration parameters. If the path is relative, it will be interpreted as relative to the directory the configuration file was read from.\n\n```yaml title=\"config.yaml\"\ntls:\n cert_path: \"\"\n key_path: \"\"\n```\n\nThe certificate should contain the full chain, else some clients, like the Tailscale Android client, will reject it.\n\n### Reloading the certificate\n\nHeadscale reads the certificate and key again when it receives a SIGHUP signal, so a renewed certificate takes effect without a restart. Either reload Headscale via its systemd service (`sudo systemctl reload headscale`) or send the signal directly (`sudo kill -HUP $(pidof headscale)`). The same signal also [reloads the policy](policy.md). New connections get the new certificate; open connections stay as they are.\n\nIf the files cannot be loaded, or the certificate is expired or not yet valid, Headscale logs an error and keeps serving the previous certificate. `systemctl reload` reports success either way, because it only delivers the signal. Look for `TLS certificate reloaded` in the log, or [check the served certificate](#checking-certificate-expiry).\n\n## Let's Encrypt / ACME\n\nTo get a certificate automatically via [Let's Encrypt](https://letsencrypt.org/), set `tls.acme.hostname` to the desired certificate hostname. This name must resolve to the IP address(es) headscale is reachable on (i.e., it must correspond to the `server_url` configuration parameter). The certificate and Let's Encrypt account credentials will be stored in the directory configured in `tls.acme.cache_dir`. If the path is relative, it will be interpreted as relative to the directory the configuration file was read from.\n\n```yaml title=\"config.yaml\"\ntls:\n acme:\n hostname: \"\"\n http_listen: \":http\"\n cache_dir: /var/lib/headscale/cache\n challenge_type: HTTP-01\n```\n\n### Challenge types\n\nHeadscale supports three values for `tls.acme.challenge_type`: `HTTP-01` (default), `TLS-ALPN-01` and `DNS-01`. `DNS-01` publishes the challenge through the DNS provider in `dns.challenge.provider`.\n\n#### HTTP-01\n\nFor `HTTP-01`, headscale must be reachable on port 80 for the Let's Encrypt automated validation, in addition to whatever port is configured in `listen_addr`. By default, headscale listens on port 80 on all local IPs for Let's Encrypt automated validation.\n\n!!! warning \"`listen_addr` cannot also be port 80\"\n\n `listen_addr` and `tls.acme.http_listen` must not bind the same TCP socket. A common mistake is setting `listen_addr: 0.0.0.0:80` together with `tls.acme.hostname` — both endpoints try to claim port 80, and the second bind fails with `address already in use` even though no other process is involved. Headscale validates this at startup and refuses to launch with a `Fatal config error: listen_addr and tls.acme.http_listen would bind the same TCP socket` message. Use `listen_addr: 0.0.0.0:443` (or any non-80 port) when HTTP-01 is enabled.\n\nIf you need to change the ip and/or port used by headscale for the Let's Encrypt validation process, set `tls.acme.http_listen` to the appropriate value. This can be handy if you are running headscale as a non-root user (or can't run `setcap`). Keep in mind, however, that Let's Encrypt will _only_ connect to port 80 for the validation callback, so if you change `tls.acme.http_listen` you will also need to configure something else (e.g. a firewall rule) to forward the traffic from port 80 to the ip:port combination specified in `tls.acme.http_listen`.\n\n#### TLS-ALPN-01\n\nFor `TLS-ALPN-01`, headscale listens on the ip:port combination defined in `listen_addr`. Let's Encrypt will _only_ connect to port 443 for the validation callback, so if `listen_addr` is not set to port 443, something else (e.g. a firewall rule) will be required to forward the traffic from port 443 to the ip:port combination specified in `listen_addr`.\n\n### Technical description\n\nHeadscale uses [CertMagic](https://github.com/caddyserver/certmagic), a Golang library providing [ACME protocol](https://en.wikipedia.org/wiki/Automatic_Certificate_Management_Environment) verification, to facilitate certificate renewals via [Let's Encrypt](https://letsencrypt.org/about/). Certificates will be renewed automatically, and the following can be expected:\n\n- Certificates provided from Let's Encrypt have a validity of 3 months from date issued.\n- Renewals start when a third of the validity remains.\n- Renewal checks run every 10 minutes.\n- Log lines from the library are logged with `logger=acme`.\n\n#### Checking certificate expiry\n\nIf you want to validate that certificate renewal completed successfully, this can be done either manually, or through external monitoring software. Two examples of doinLine truncated
{"text": "# Development builds\n\n!!! warning\n\n Development builds are created automatically from the latest `main` branch\n and are **not versioned releases**. They may contain incomplete features,\n breaking changes, or bugs. Use them for testing only.\n\nEach push to `main` produces container images and cross-compiled binaries.\nContainer images are multi-arch (amd64, arm64) and use the same distroless\nbase image as official releases.\n\n## Container images\n\nImages are available from both Docker Hub and GitHub Container Registry, tagged\nwith the short commit hash of the build (e.g. `main-abc1234`):\n\n- Docker Hub: `docker.io/headscale/headscale:main- `\n- GitHub Container Registry: `ghcr.io/juanfont/headscale:main- `\n\nTo find the latest available tag, check the\n[GitHub Actions workflow](https://github.com/juanfont/headscale/actions/workflows/container-main.yml)\nor the [GitHub Container Registry package page](https://github.com/juanfont/headscale/pkgs/container/headscale).\n\nFor example, to run a specific development build:\n\n```shell\ndocker run \\\n --name headscale \\\n --detach \\\n --read-only \\\n --tmpfs /tmp \\\n --tmpfs /var/run/headscale \\\n --volume \"$(pwd)/config:/etc/headscale:ro\" \\\n --volume \"$(pwd)/lib:/var/lib/headscale\" \\\n --publish 127.0.0.1:8080:8080 \\\n --publish 127.0.0.1:9090:9090 \\\n --health-cmd \"CMD headscale health\" \\\n docker.io/headscale/headscale:main- \\\n serve\n```\n\nSee [Running headscale in a container](container.md) for full container setup instructions.\n\n## Binaries\n\nPre-built binaries from the latest successful build on `main` are available\nvia [nightly.link](https://nightly.link/juanfont/headscale/workflows/container-main/main):\n\n| OS | Arch | Download |\n| ----- | ----- | -------------------------------------------------------------------------------------------------------------------------- |\n| Linux | amd64 | [headscale-linux-amd64](https://nightly.link/juanfont/headscale/workflows/container-main/main/headscale-linux-amd64.zip) |\n| Linux | arm64 | [headscale-linux-arm64](https://nightly.link/juanfont/headscale/workflows/container-main/main/headscale-linux-arm64.zip) |\n| macOS | amd64 | [headscale-darwin-amd64](https://nightly.link/juanfont/headscale/workflows/container-main/main/headscale-darwin-amd64.zip) |\n| macOS | arm64 | [headscale-darwin-arm64](https://nightly.link/juanfont/headscale/workflows/container-main/main/headscale-darwin-arm64.zip) |\n\nAfter downloading and extracting the archive, make the binary executable and follow the\n[standalone binary installation](official.md#using-standalone-binaries-advanced)\ninstructions for setting up the service.", "project": "headscale", "source": "docs/setup/install/main.md", "commit": "0c304b0632db524356e940fc74dc6230e790d11d", "license": "BSD-3-Clause", "from": "deployment-docs.jsonl"}