1.1 KiB
1.1 KiB
title | content_type | weight |
---|---|---|
Enable Or Disable A Kubernetes API | task | 200 |
This page shows how to enable or disable an API version from your cluster's {{< glossary_tooltip text="control plane" term_id="control-plane" >}}.
Specific API versions can be turned on or off by passing --runtime-config=api/<version>
as a
command line argument to the API server. The values for this argument are a comma-separated
list of API versions. Later values override earlier values.
The runtime-config
command line argument also supports 2 special keys:
api/all
, representing all known APIsapi/legacy
, representing only legacy APIs. Legacy APIs are any APIs that have been explicitly deprecated.
For example, to turn off all API versions except v1, pass --runtime-config=api/all=false,api/v1=true
to the kube-apiserver
.
{{% heading "whatsnext" %}}
Read the full documentation
for the kube-apiserver
component.