1KUBERNETES(1)               General Commands Manual              KUBERNETES(1)
2
3
4

NAME

6       kube-apiserver - Provides the API for kubernetes orchestration.
7
8
9

SYNOPSIS

11       kube-apiserver [OPTIONS]
12
13
14

DESCRIPTION

16       The Kubernetes API server validates and configures data for the api
17       objects which include pods, services, replicationcontrollers, and
18       others. The API Server services REST operations and provides the
19       frontend to the cluster's shared state through which all other
20       components interact.
21
22
23       kube-apiserver [flags]
24
25
26

OPTIONS

28       **--address ip                                              The IP
29       address on which to serve the insecure --port (set to 0.0.0.0 for all
30       IPv4 interfaces and **
31           : for all IPv6 interfaces). (default 127.0.0.1) (DEPRECATED: see
32       --bind-address instead.)
33
34
35       --admission-control strings                               Admission is
36       divided into two phases. In the first phase, only mutating admission
37       plugins run. In the second phase, only validating admission plugins
38       run. The names in the below list may represent a validating plugin, a
39       mutating plugin, or both. The order of plugins in which they are passed
40       to this flag does not matter. Comma-delimited list of
41            AlwaysAdmit, AlwaysDeny, AlwaysPullImages, DefaultStorageClass,
42       DefaultTolerationSeconds, DenyEscalatingExec, DenyExecOnPrivileged,
43       EventRateLimit, ExtendedResourceToleration, ImagePolicyWebhook,
44       Initializers, LimitPodHardAntiAffinityTopology, LimitRanger,
45       MutatingAdmissionWebhook, NamespaceAutoProvision, NamespaceExists,
46       NamespaceLifecycle, NodeRestriction,
47       OwnerReferencesPermissionEnforcement, PersistentVolumeClaimResize,
48       PersistentVolumeLabel, PodNodeSelector, PodPreset, PodSecurityPolicy,
49       PodTolerationRestriction, Priority, ResourceQuota, SecurityContextDeny,
50       ServiceAccount, StorageObjectInUseProtection,
51       ValidatingAdmissionWebhook. (DEPRECATED: Use --enable-admission-plugins
52       or --disable-admission-plugins instead. Will be removed in a future
53       version.)
54
55
56                --admission-control-config-file string                    File with admission control configuration.
57                --advertise-address ip                                    The IP address on which to advertise the apiserver to members of the cluster. This address must be reachable by the rest of the cluster. If blank, the --bind-address will be used. If --bind-address is unspecified, the host's default interface will be used.
58                --allow-privileged                                        If true, allow privileged containers. [default=false]
59
60
61
62       --anonymous-auth                                          Enables
63       anonymous requests to the secure port of the API server. Requests that
64       are not rejected by another authentication method are treated as
65       anonymous requests. Anonymous requests have a username of system
66           anonymous, and a group name of system:unauthenticated. (default
67       true)
68
69
70                --apiserver-count int                                     The number of apiservers running in the cluster, must be a positive number. (In use when --endpoint-reconciler-type=master-count is enabled.) (default 1)
71                --audit-log-batch-buffer-size int                         The size of the buffer to store events before batching and writing. Only used in batch mode. (default 10000)
72                --audit-log-batch-max-size int                            The maximum size of a batch. Only used in batch mode. (default 1)
73                --audit-log-batch-max-wait duration                       The amount of time to wait before force writing the batch that hadn't reached the max size. Only used in batch mode.
74                --audit-log-batch-throttle-burst int                      Maximum number of requests sent at the same moment if ThrottleQPS was not utilized before. Only used in batch mode.
75                --audit-log-batch-throttle-enable                         Whether batching throttling is enabled. Only used in batch mode.
76                --audit-log-batch-throttle-qps float32                    Maximum average number of batches per second. Only used in batch mode.
77                --audit-log-format string                                 Format of saved audits. "legacy" indicates 1-line text format for each event. "json" indicates structured json format. Known formats are legacy,json. (default "json")
78                --audit-log-maxage int                                    The maximum number of days to retain old audit log files based on the timestamp encoded in their filename.
79                --audit-log-maxbackup int                                 The maximum number of old audit log files to retain.
80                --audit-log-maxsize int                                   The maximum size in megabytes of the audit log file before it gets rotated.
81                --audit-log-mode string                                   Strategy for sending audit events. Blocking indicates sending events should block server responses. Batch causes the backend to buffer and write events asynchronously. Known modes are batch,blocking. (default "blocking")
82                --audit-log-path string                                   If set, all requests coming to the apiserver will be logged to this file.  '-' means standard out.
83                --audit-log-truncate-enabled                              Whether event and batch truncating is enabled.
84                --audit-log-truncate-max-batch-size int                   Maximum size of the batch sent to the underlying backend. Actual serialized size can be several hundreds of bytes greater. If a batch exceeds this limit, it is split into several batches of smaller size. (default 10485760)
85                --audit-log-truncate-max-event-size int                   Maximum size of the audit event sent to the underlying backend. If the size of an event is greater than this number, first request and response are removed, and if this doesn't reduce the size enough, event is discarded. (default 102400)
86                --audit-log-version string                                API group and version used for serializing audit events written to log. (default "audit.k8s.io/v1beta1")
87                --audit-policy-file string                                Path to the file that defines the audit policy configuration.
88                --audit-webhook-batch-buffer-size int                     The size of the buffer to store events before batching and writing. Only used in batch mode. (default 10000)
89                --audit-webhook-batch-max-size int                        The maximum size of a batch. Only used in batch mode. (default 400)
90                --audit-webhook-batch-max-wait duration                   The amount of time to wait before force writing the batch that hadn't reached the max size. Only used in batch mode. (default 30s)
91                --audit-webhook-batch-throttle-burst int                  Maximum number of requests sent at the same moment if ThrottleQPS was not utilized before. Only used in batch mode. (default 15)
92                --audit-webhook-batch-throttle-enable                     Whether batching throttling is enabled. Only used in batch mode. (default true)
93                --audit-webhook-batch-throttle-qps float32                Maximum average number of batches per second. Only used in batch mode. (default 10)
94                --audit-webhook-config-file string                        Path to a kubeconfig formatted file that defines the audit webhook configuration.
95                --audit-webhook-initial-backoff duration                  The amount of time to wait before retrying the first failed request. (default 10s)
96                --audit-webhook-mode string                               Strategy for sending audit events. Blocking indicates sending events should block server responses. Batch causes the backend to buffer and write events asynchronously. Known modes are batch,blocking. (default "batch")
97                --audit-webhook-truncate-enabled                          Whether event and batch truncating is enabled.
98                --audit-webhook-truncate-max-batch-size int               Maximum size of the batch sent to the underlying backend. Actual serialized size can be several hundreds of bytes greater. If a batch exceeds this limit, it is split into several batches of smaller size. (default 10485760)
99                --audit-webhook-truncate-max-event-size int               Maximum size of the audit event sent to the underlying backend. If the size of an event is greater than this number, first request and response are removed, and if this doesn't reduce the size enough, event is discarded. (default 102400)
100                --audit-webhook-version string                            API group and version used for serializing audit events written to webhook. (default "audit.k8s.io/v1beta1")
101                --authentication-token-webhook-cache-ttl duration         The duration to cache responses from the webhook token authenticator. (default 2m0s)
102                --authentication-token-webhook-config-file string         File with webhook configuration for token authentication in kubeconfig format. The API server will query the remote service to determine authentication for bearer tokens.
103
104
105
106       --authorization-mode strings                              Ordered list
107       of plug-ins to do authorization on secure port. Comma-delimited list of
108            AlwaysAllow,AlwaysDeny,ABAC,Webhook,RBAC,Node. (default
109       [AlwaysAllow])
110
111
112                --authorization-policy-file string                        File with authorization policy in csv format, used with --authorization-mode=ABAC, on the secure port.
113                --authorization-webhook-cache-authorized-ttl duration     The duration to cache 'authorized' responses from the webhook authorizer. (default 5m0s)
114                --authorization-webhook-cache-unauthorized-ttl duration   The duration to cache 'unauthorized' responses from the webhook authorizer. (default 30s)
115                --authorization-webhook-config-file string                File with webhook configuration in kubeconfig format, used with --authorization-mode=Webhook. The API server will query the remote service to determine access on the API server's secure port.
116                --azure-container-registry-config string                  Path to the file containing Azure container registry configuration information.
117                --basic-auth-file string                                  If set, the file that will be used to admit requests to the secure port of the API server via http basic authentication.
118
119
120
121       **--bind-address ip                                         The IP
122       address on which to listen for the --secure-port port. The associated
123       interface(s) must be reachable by the rest of the cluster, and by
124       CLI/web clients. If blank, all interfaces will be used (0.0.0.0 for all
125       IPv4 interfaces and **
126           : for all IPv6 interfaces). (default 0.0.0.0)
127
128
129                --cert-dir string                                         The directory where the TLS certs are located. If --tls-cert-file and --tls-private-key-file are provided, this flag will be ignored. (default "/var/run/kubernetes")
130                --client-ca-file string                                   If set, any request presenting a client certificate signed by one of the authorities in the client-ca-file is authenticated with an identity corresponding to the CommonName of the client certificate.
131                --cloud-config string                                     The path to the cloud provider configuration file. Empty string for no configuration file.
132                --cloud-provider string                                   The provider for cloud services. Empty string for no provider.
133                --contention-profiling                                    Enable lock contention profiling, if profiling is enabled
134                --cors-allowed-origins strings                            List of allowed origins for CORS, comma separated.  An allowed origin can be a regular expression to support subdomain matching. If this list is empty CORS will not be enabled.
135                --default-watch-cache-size int                            Default watch cache size. If zero, watch cache will be disabled for resources that do not have a default watch size set. (default 100)
136                --delete-collection-workers int                           Number of workers spawned for DeleteCollection call. These are used to speed up namespace cleanup. (default 1)
137                --deserialization-cache-size int                          Number of deserialized json objects to cache in memory.
138
139
140
141       --disable-admission-plugins strings                       admission
142       plugins that should be disabled although they are in the default
143       enabled plugins list (NamespaceLifecycle, LimitRanger, ServiceAccount,
144       Priority, DefaultTolerationSeconds, DefaultStorageClass,
145       PersistentVolumeClaimResize, MutatingAdmissionWebhook,
146       ValidatingAdmissionWebhook, ResourceQuota). Comma-delimited list of
147       admission plugins
148            AlwaysAdmit, AlwaysDeny, AlwaysPullImages, DefaultStorageClass,
149       DefaultTolerationSeconds, DenyEscalatingExec, DenyExecOnPrivileged,
150       EventRateLimit, ExtendedResourceToleration, ImagePolicyWebhook,
151       Initializers, LimitPodHardAntiAffinityTopology, LimitRanger,
152       MutatingAdmissionWebhook, NamespaceAutoProvision, NamespaceExists,
153       NamespaceLifecycle, NodeRestriction,
154       OwnerReferencesPermissionEnforcement, PersistentVolumeClaimResize,
155       PersistentVolumeLabel, PodNodeSelector, PodPreset, PodSecurityPolicy,
156       PodTolerationRestriction, Priority, ResourceQuota, SecurityContextDeny,
157       ServiceAccount, StorageObjectInUseProtection,
158       ValidatingAdmissionWebhook. The order of plugins in this flag does not
159       matter.
160
161
162       --enable-admission-plugins strings                        admission
163       plugins that should be enabled in addition to default enabled ones
164       (NamespaceLifecycle, LimitRanger, ServiceAccount, Priority,
165       DefaultTolerationSeconds, DefaultStorageClass,
166       PersistentVolumeClaimResize, MutatingAdmissionWebhook,
167       ValidatingAdmissionWebhook, ResourceQuota). Comma-delimited list of
168       admission plugins
169            AlwaysAdmit, AlwaysDeny, AlwaysPullImages, DefaultStorageClass,
170       DefaultTolerationSeconds, DenyEscalatingExec, DenyExecOnPrivileged,
171       EventRateLimit, ExtendedResourceToleration, ImagePolicyWebhook,
172       Initializers, LimitPodHardAntiAffinityTopology, LimitRanger,
173       MutatingAdmissionWebhook, NamespaceAutoProvision, NamespaceExists,
174       NamespaceLifecycle, NodeRestriction,
175       OwnerReferencesPermissionEnforcement, PersistentVolumeClaimResize,
176       PersistentVolumeLabel, PodNodeSelector, PodPreset, PodSecurityPolicy,
177       PodTolerationRestriction, Priority, ResourceQuota, SecurityContextDeny,
178       ServiceAccount, StorageObjectInUseProtection,
179       ValidatingAdmissionWebhook. The order of plugins in this flag does not
180       matter.
181
182
183                --enable-aggregator-routing                               Turns on aggregator routing requests to endpoints IP rather than cluster IP.
184                --enable-bootstrap-token-auth                             Enable to allow secrets of type 'bootstrap.kubernetes.io/token' in the 'kube-system' namespace to be used for TLS bootstrapping authentication.
185                --enable-garbage-collector                                Enables the generic garbage collector. MUST be synced with the corresponding flag of the kube-controller-manager. (default true)
186                --enable-logs-handler                                     If true, install a /logs handler for the apiserver logs. (default true)
187                --enable-swagger-ui                                       Enables swagger ui on the apiserver at /swagger-ui
188                --endpoint-reconciler-type string                         Use an endpoint reconciler (master-count, lease, none) (default "lease")
189                --etcd-cafile string                                      SSL Certificate Authority file used to secure etcd communication.
190                --etcd-certfile string                                    SSL certification file used to secure etcd communication.
191                --etcd-compaction-interval duration                       The interval of compaction requests. If 0, the compaction request from apiserver is disabled. (default 5m0s)
192                --etcd-count-metric-poll-period duration                  Frequency of polling etcd for number of resources per type. 0 disables the metric collection. (default 1m0s)
193                --etcd-keyfile string                                     SSL key file used to secure etcd communication.
194                --etcd-prefix string                                      The prefix to prepend to all resource paths in etcd. (default "/registry")
195
196
197
198       --etcd-servers strings                                    List of etcd
199       servers to connect with (scheme
200           //ip:port), comma separated.
201
202
203       --etcd-servers-overrides strings                          Per-resource
204       etcd servers overrides, comma separated. The individual override format
205            group/resource#servers, where servers are URLs, semicolon
206       separated.
207
208
209                --event-ttl duration                                      Amount of time to retain events. (default 1h0m0s)
210                --experimental-encryption-provider-config string          The file containing configuration for encryption providers to be used for storing secrets in etcd
211                --external-hostname string                                The hostname to use when generating externalized URLs for this master (e.g. Swagger API Docs).
212
213
214
215       --feature-gates mapStringBool                             A set of
216       key=value pairs that describe feature gates for alpha/experimental
217       features. Options are
218
219
220                                                                          APIListChunking=true|false (BETA - default=true)
221                                                                          APIResponseCompression=true|false (ALPHA - default=false)
222                                                                          AllAlpha=true|false (ALPHA - default=false)
223                                                                          AppArmor=true|false (BETA - default=true)
224                                                                          AttachVolumeLimit=true|false (BETA - default=true)
225                                                                          BalanceAttachedNodeVolumes=true|false (ALPHA - default=false)
226                                                                          BlockVolume=true|false (ALPHA - default=false)
227                                                                          CPUManager=true|false (BETA - default=true)
228                                                                          CRIContainerLogRotation=true|false (BETA - default=true)
229                                                                          CSIBlockVolume=true|false (ALPHA - default=false)
230                                                                          CSIDriverRegistry=true|false (ALPHA - default=false)
231                                                                          CSINodeInfo=true|false (ALPHA - default=false)
232                                                                          CSIPersistentVolume=true|false (BETA - default=true)
233                                                                          CustomCPUCFSQuotaPeriod=true|false (ALPHA - default=false)
234                                                                          CustomPodDNS=true|false (BETA - default=true)
235                                                                          CustomResourceSubresources=true|false (BETA - default=true)
236                                                                          CustomResourceValidation=true|false (BETA - default=true)
237                                                                          DebugContainers=true|false (ALPHA - default=false)
238                                                                          DevicePlugins=true|false (BETA - default=true)
239                                                                          DryRun=true|false (ALPHA - default=false)
240                                                                          DynamicKubeletConfig=true|false (BETA - default=true)
241                                                                          EnableEquivalenceClassCache=true|false (ALPHA - default=false)
242                                                                          ExpandInUsePersistentVolumes=true|false (ALPHA - default=false)
243                                                                          ExpandPersistentVolumes=true|false (BETA - default=true)
244                                                                          ExperimentalCriticalPodAnnotation=true|false (ALPHA - default=false)
245                                                                          ExperimentalHostUserNamespaceDefaulting=true|false (BETA - default=false)
246                                                                          GCERegionalPersistentDisk=true|false (BETA - default=true)
247                                                                          HugePages=true|false (BETA - default=true)
248                                                                          HyperVContainer=true|false (ALPHA - default=false)
249                                                                          Initializers=true|false (ALPHA - default=false)
250                                                                          KubeletPluginsWatcher=true|false (BETA - default=true)
251                                                                          LocalStorageCapacityIsolation=true|false (BETA - default=true)
252                                                                          MountContainers=true|false (ALPHA - default=false)
253                                                                          NodeLease=true|false (ALPHA - default=false)
254                                                                          PersistentLocalVolumes=true|false (BETA - default=true)
255                                                                          PodPriority=true|false (BETA - default=true)
256                                                                          PodReadinessGates=true|false (BETA - default=true)
257                                                                          PodShareProcessNamespace=true|false (BETA - default=true)
258                                                                          ProcMountType=true|false (ALPHA - default=false)
259                                                                          QOSReserved=true|false (ALPHA - default=false)
260                                                                          ResourceLimitsPriorityFunction=true|false (ALPHA - default=false)
261                                                                          ResourceQuotaScopeSelectors=true|false (BETA - default=true)
262                                                                          RotateKubeletClientCertificate=true|false (BETA - default=true)
263                                                                          RotateKubeletServerCertificate=true|false (BETA - default=true)
264                                                                          RunAsGroup=true|false (ALPHA - default=false)
265                                                                          RuntimeClass=true|false (ALPHA - default=false)
266                                                                          SCTPSupport=true|false (ALPHA - default=false)
267                                                                          ScheduleDaemonSetPods=true|false (BETA - default=true)
268                                                                          ServiceNodeExclusion=true|false (ALPHA - default=false)
269                                                                          StreamingProxyRedirects=true|false (BETA - default=true)
270                                                                          SupportPodPidsLimit=true|false (ALPHA - default=false)
271                                                                          Sysctls=true|false (BETA - default=true)
272                                                                          TTLAfterFinished=true|false (ALPHA - default=false)
273                                                                          TaintBasedEvictions=true|false (ALPHA - default=false)
274                                                                          TaintNodesByCondition=true|false (BETA - default=true)
275                                                                          TokenRequest=true|false (BETA - default=true)
276                                                                          TokenRequestProjection=true|false (BETA - default=true)
277                                                                          ValidateProxyRedirects=true|false (ALPHA - default=false)
278                                                                          VolumeScheduling=true|false (BETA - default=true)
279                                                                          VolumeSnapshotDataSource=true|false (ALPHA - default=false)
280                                                                          VolumeSubpathEnvExpansion=true|false (ALPHA - default=false)
281
282
283
284       -h, --help                                                    help for
285       kube-apiserver
286             --http2-max-streams-per-connection int                    The
287       limit that the server gives to clients for the maximum number of
288       streams in an HTTP/2 connection. Zero means to use golang's default.
289       **--insecure-bind-address ip                                The IP
290       address on which to serve the --insecure-port (set to 0.0.0.0 for all
291       IPv4 interfaces and **
292           : for all IPv6 interfaces). (default 127.0.0.1) (DEPRECATED: This
293       flag will be removed in a future version.)
294
295
296       --insecure-port int                                       The port on
297       which to serve unsecured, unauthenticated access. (default 8080)
298       (DEPRECATED
299            This flag will be removed in a future version.)
300
301
302                --kubelet-certificate-authority string                    Path to a cert file for the certificate authority.
303                --kubelet-client-certificate string                       Path to a client cert file for TLS.
304                --kubelet-client-key string                               Path to a client key file for TLS.
305                --kubelet-https                                           Use https for kubelet connections. (default true)
306                --kubelet-preferred-address-types strings                 List of the preferred NodeAddressTypes to use for kubelet connections. (default [Hostname,InternalDNS,InternalIP,ExternalDNS,ExternalIP])
307
308
309
310       --kubelet-read-only-port uint                             DEPRECATED
311            kubelet port. (default 10255)
312
313
314                --kubelet-timeout duration                                Timeout for kubelet operations. (default 5s)
315                --kubernetes-service-node-port int                        If non-zero, the Kubernetes master service (which apiserver creates/maintains) will be of type NodePort, using this as the value of the port. If zero, the Kubernetes master service will be of type ClusterIP.
316                --log-flush-frequency duration                            Maximum number of seconds between log flushes (default 5s)
317
318
319
320       --master-service-namespace string                         DEPRECATED
321            the namespace from which the kubernetes master services should be
322       injected into pods. (default "default")
323
324
325                --max-connection-bytes-per-sec int                        If non-zero, throttle each user connection to this number of bytes/sec. Currently only applies to long-running requests.
326                --max-mutating-requests-inflight int                      The maximum number of mutating requests in flight at a given time. When the server exceeds this, it rejects requests. Zero for no limit. (default 200)
327                --max-requests-inflight int                               The maximum number of non-mutating requests in flight at a given time. When the server exceeds this, it rejects requests. Zero for no limit. (default 400)
328                --min-request-timeout int                                 An optional field indicating the minimum number of seconds a handler must keep a request open before timing it out. Currently only honored by the watch request handler, which picks a randomized value above this number as the connection timeout, to spread out load. (default 1800)
329                --oidc-ca-file string                                     If set, the OpenID server's certificate will be verified by one of the authorities in the oidc-ca-file, otherwise the host's root CA set will be used.
330                --oidc-client-id string                                   The client ID for the OpenID Connect client, must be set if oidc-issuer-url is set.
331                --oidc-groups-claim string                                If provided, the name of a custom OpenID Connect claim for specifying user groups. The claim value is expected to be a string or array of strings. This flag is experimental, please see the authentication documentation for further details.
332                --oidc-groups-prefix string                               If provided, all groups will be prefixed with this value to prevent conflicts with other authentication strategies.
333                --oidc-issuer-url string                                  The URL of the OpenID issuer, only HTTPS scheme will be accepted. If set, it will be used to verify the OIDC JSON Web Token (JWT).
334                --oidc-required-claim mapStringString                     A key=value pair that describes a required claim in the ID Token. If set, the claim is verified to be present in the ID Token with a matching value. Repeat this flag to specify multiple claims.
335
336
337
338       --oidc-signing-algs strings
339       Comma-separated list of allowed JOSE asymmetric signing algorithms.
340       JWTs with a 'alg' header value not in this list will be rejected.
341       Values are defined by RFC 7518 https
342           //tools.ietf.org/html/rfc7518#section-3.1. (default [RS256])
343
344
345                --oidc-username-claim string                              The OpenID claim to use as the user name. Note that claims other than the default ('sub') is not guaranteed to be unique and immutable. This flag is experimental, please see the authentication documentation for further details. (default "sub")
346                --oidc-username-prefix string                             If provided, all usernames will be prefixed with this value. If not provided, username claims other than 'email' are prefixed by the issuer URL to avoid clashes. To skip any prefixing, provide the value '-'.
347
348
349
350       --port int                                                The port on
351       which to serve unsecured, unauthenticated access. Set to 0 to disable.
352       (default 8080) (DEPRECATED
353            see --secure-port instead.)
354
355
356       --profiling                                               Enable
357       profiling via web interface host
358           port/debug/pprof/ (default true)
359
360
361                --proxy-client-cert-file string                           Client certificate used to prove the identity of the aggregator or kube-apiserver when it must call out during a request. This includes proxying requests to a user api-server and calling out to webhook admission plugins. It is expected that this cert includes a signature from the CA in the --requestheader-client-ca-file flag. That CA is published in the 'extension-apiserver-authentication' configmap in the kube-system namespace. Components receiving calls from kube-aggregator should use that CA to perform their half of the mutual TLS verification.
362                --proxy-client-key-file string                            Private key for the client certificate used to prove the identity of the aggregator or kube-apiserver when it must call out during a request. This includes proxying requests to a user api-server and calling out to webhook admission plugins.
363                --request-timeout duration                                An optional field indicating the duration a handler must keep a request open before timing it out. This is the default request timeout for requests but may be overridden by flags such as --min-request-timeout for specific types of requests. (default 1m0s)
364                --requestheader-allowed-names strings                     List of client certificate common names to allow to provide usernames in headers specified by --requestheader-username-headers. If empty, any client certificate validated by the authorities in --requestheader-client-ca-file is allowed.
365
366
367
368       --requestheader-client-ca-file string                     Root
369       certificate bundle to use to verify client certificates on incoming
370       requests before trusting usernames in headers specified by
371       --requestheader-username-headers. WARNING
372            generally do not depend on authorization being already done for
373       incoming requests.
374
375
376                --requestheader-extra-headers-prefix strings              List of request header prefixes to inspect. X-Remote-Extra- is suggested.
377                --requestheader-group-headers strings                     List of request headers to inspect for groups. X-Remote-Group is suggested.
378                --requestheader-username-headers strings                  List of request headers to inspect for usernames. X-Remote-User is common.
379                --runtime-config mapStringString                          A set of key=value pairs that describe runtime configuration that may be passed to apiserver. <group>/<version> (or <version> for the core group) key can be used to turn on/off specific api versions. api/all is special key to control all api versions, be careful setting it false, unless you know what you do. api/legacy is deprecated, we will remove it in the future, so stop using it.
380                --secure-port int                                         The port on which to serve HTTPS with authentication and authorization.It cannot be switched off with 0. (default 6443)
381                --service-account-api-audiences strings                   Identifiers of the API. The service account token authenticator will validate that tokens used against the API are bound to at least one of these audiences.
382                --service-account-issuer string                           Identifier of the service account token issuer. The issuer will assert this identifier in "iss" claim of issued tokens. This value is a string or URI.
383                --service-account-key-file stringArray                    File containing PEM-encoded x509 RSA or ECDSA private or public keys, used to verify ServiceAccount tokens. The specified file can contain multiple keys, and the flag can be specified multiple times with different files. If unspecified, --tls-private-key-file is used. Must be specified when --service-account-signing-key is provided
384                --service-account-lookup                                  If true, validate ServiceAccount tokens exist in etcd as part of authentication. (default true)
385                --service-account-max-token-expiration duration           The maximum validity duration of a token created by the service account token issuer. If an otherwise valid TokenRequest with a validity duration larger than this value is requested, a token will be issued with a validity duration of this value.
386                --service-account-signing-key-file string                 Path to the file that contains the current private key of the service account token issuer. The issuer will sign issued ID tokens with this private key. (Requires the 'TokenRequest' feature gate.)
387                --service-cluster-ip-range ipNet                          A CIDR notation IP range from which to assign service cluster IPs. This must not overlap with any IP ranges assigned to nodes for pods. (default 10.0.0.0/24)
388
389
390
391       --service-node-port-range portRange                       A port range
392       to reserve for services with NodePort visibility. Example
393            '30000-32767'. Inclusive at both ends of the range. (default
394       30000-32767)
395
396
397       --storage-backend string                                  The storage
398       backend for persistence. Options
399            'etcd3' (default), 'etcd2'.
400
401
402                --storage-media-type string                               The media type to use to store objects in storage. Some resources or storage backends may only support a specific media type and will ignore this setting. (default "application/vnd.kubernetes.protobuf")
403                --target-ram-mb int                                       Memory limit for apiserver in MB (used to configure sizes of caches, etc.)
404                --tls-cert-file string                                    File containing the default x509 Certificate for HTTPS. (CA cert, if any, concatenated after server cert). If HTTPS serving is enabled, and --tls-cert-file and --tls-private-key-file are not provided, a self-signed certificate and key are generated for the public address and saved to the directory specified by --cert-dir.
405
406
407
408       --tls-cipher-suites strings
409       Comma-separated list of cipher suites for the server. If omitted, the
410       default Go cipher suites will be use.  Possible values
411            TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305,TLS_ECDHE_ECDSA_WITH_RC4_128_SHA,TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305,TLS_ECDHE_RSA_WITH_RC4_128_SHA,TLS_RSA_WITH_3DES_EDE_CBC_SHA,TLS_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_128_CBC_SHA256,TLS_RSA_WITH_AES_128_GCM_SHA256,TLS_RSA_WITH_AES_256_CBC_SHA,TLS_RSA_WITH_AES_256_GCM_SHA384,TLS_RSA_WITH_RC4_128_SHA
412
413
414       --tls-min-version string                                  Minimum TLS
415       version supported. Possible values
416            VersionTLS10, VersionTLS11, VersionTLS12
417
418
419                --tls-private-key-file string                             File containing the default x509 private key matching --tls-cert-file.
420
421
422
423       --tls-sni-cert-key namedCertKey                           A pair of
424       x509 certificate and private key file paths, optionally suffixed with a
425       list of domain patterns which are fully qualified domain names,
426       possibly with prefixed wildcard segments. If no domain patterns are
427       provided, the names of the certificate are extracted. Non-wildcard
428       matches trump over wildcard matches, explicit domain patterns trump
429       over extracted names. For multiple key/certificate pairs, use the
430       --tls-sni-cert-key multiple times. Examples
431            "example.crt,example.key" or "foo.crt,foo.key:*.foo.com,foo.com".
432       (default [])
433
434
435                --token-auth-file string                                  If set, the file that will be used to secure the secure port of the API server via token authentication.
436                --version version[=true]                                  Print version information and quit
437                --watch-cache                                             Enable watch caching in the apiserver (default true)
438
439
440
441       --watch-cache-sizes strings                               List of watch
442       cache sizes for every resource (pods, nodes, etc.), comma separated.
443       The individual override format
444            resource[.group]#size, where resource is lowercase plural (no
445       version), group is optional, and size is a number. It takes effect when
446       watch-cache is enabled. Some resources (replicationcontrollers,
447       endpoints, nodes, pods, services, apiservices.apiregistration.k8s.io)
448       have system defaults set by heuristics, others default to
449       default-watch-cache-size
450
451
452

EXAMPLES

454       /usr/bin/kube-apiserver --logtostderr=true --v=0 --etcd_servers=
455http://127.0.0.1:4001⟩ --insecure_bind_address=127.0.0.1
456       --insecure_port=8080 --kubelet_port=10250
457       --service-cluster-ip-range=10.1.1.0/24 --allow_privileged=false
458
459
460
461                            kubernetes User Manuals              KUBERNETES(1)
Impressum