Skip to content

Commit a03a79a

Browse files
authored
Merge pull request #42586 from windsonsea/kubelety
Replace Kubelet with kubelet in kubelet-config-file.md
2 parents 6505def + b6c31f4 commit a03a79a

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

content/en/docs/tasks/administer-cluster/kubelet-config-file.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
reviewers:
33
- mtaufen
44
- dawnchen
5-
title: Set Kubelet parameters via a config file
5+
title: Set Kubelet Parameters Via A Configuration File
66
content_type: task
77
weight: 330
88
---
99

1010
<!-- overview -->
1111

12-
A subset of the Kubelet's configuration parameters may be
12+
A subset of the kubelet's configuration parameters may be
1313
set via an on-disk config file, as a substitute for command-line flags.
1414

1515
Providing parameters via a config file is the recommended approach because
@@ -19,13 +19,13 @@ it simplifies node deployment and configuration management.
1919

2020
## Create the config file
2121

22-
The subset of the Kubelet's configuration that can be configured via a file
22+
The subset of the kubelet's configuration that can be configured via a file
2323
is defined by the
2424
[`KubeletConfiguration`](/docs/reference/config-api/kubelet-config.v1beta1/)
2525
struct.
2626

2727
The configuration file must be a JSON or YAML representation of the parameters
28-
in this struct. Make sure the Kubelet has read permissions on the file.
28+
in this struct. Make sure the kubelet has read permissions on the file.
2929

3030
Here is an example of what this file might look like:
3131
```yaml
@@ -38,10 +38,10 @@ evictionHard:
3838
memory.available: "200Mi"
3939
```
4040
41-
In the example, the Kubelet is configured to serve on IP address 192.168.0.8 and port 20250, pull images in parallel,
41+
In the example, the kubelet is configured to serve on IP address 192.168.0.8 and port 20250, pull images in parallel,
4242
and evict Pods when available memory drops below 200Mi. Since only one of the four evictionHard thresholds is configured,
4343
other evictionHard thresholds are reset to 0 from their built-in defaults.
44-
All other Kubelet configuration values are left at their built-in defaults, unless overridden
44+
All other kubelet configuration values are left at their built-in defaults, unless overridden
4545
by flags. Command line flags which target the same value as a config file will override that value.
4646
4747
{{< note >}}
@@ -51,45 +51,45 @@ will be set to zero. In order to provide custom values, you should provide all
5151
the threshold values respectively.
5252
{{< /note >}}
5353
54-
## Start a Kubelet process configured via the config file
54+
## Start a kubelet process configured via the config file
5555
5656
{{< note >}}
5757
If you use kubeadm to initialize your cluster, use the kubelet-config while creating your cluster with `kubeadm init`.
5858
See [configuring kubelet using kubeadm](/docs/setup/production-environment/tools/kubeadm/kubelet-integration/) for details.
5959
{{< /note >}}
6060

61-
Start the Kubelet with the `--config` flag set to the path of the Kubelet's config file.
62-
The Kubelet will then load its config from this file.
61+
Start the kubelet with the `--config` flag set to the path of the kubelet's config file.
62+
The kubelet will then load its config from this file.
6363

6464
Note that command line flags which target the same value as a config file will override that value.
6565
This helps ensure backwards compatibility with the command-line API.
6666

67-
Note that relative file paths in the Kubelet config file are resolved relative to the
68-
location of the Kubelet config file, whereas relative paths in command line flags are resolved
69-
relative to the Kubelet's current working directory.
67+
Note that relative file paths in the kubelet config file are resolved relative to the
68+
location of the kubelet config file, whereas relative paths in command line flags are resolved
69+
relative to the kubelet's current working directory.
7070

71-
Note that some default values differ between command-line flags and the Kubelet config file.
71+
Note that some default values differ between command-line flags and the kubelet config file.
7272
If `--config` is provided and the values are not specified via the command line, the
7373
defaults for the `KubeletConfiguration` version apply.
7474
In the above example, this version is `kubelet.config.k8s.io/v1beta1`.
7575

76-
## Drop-in directory for Kubelet configuration files {#kubelet-conf-d}
76+
## Drop-in directory for kubelet configuration files {#kubelet-conf-d}
7777

78-
As of Kubernetes v1.28.0, the Kubelet has been extended to support a drop-in configuration directory. The location of it can be specified with
78+
As of Kubernetes v1.28.0, the kubelet has been extended to support a drop-in configuration directory. The location of it can be specified with
7979
`--config-dir` flag, and it defaults to `""`, or disabled, by default.
8080

8181
You can only set `--config-dir` if you set the environment variable `KUBELET_CONFIG_DROPIN_DIR_ALPHA` for the kubelet process (the value of that variable does not matter).
8282
For Kubernetes v{{< skew currentVersion >}}, the kubelet returns an error if you specify `--config-dir` without that variable set, and startup fails.
8383
You cannot specify the drop-in configuration directory using the kubelet configuration file; only the CLI argument `--config-dir` can set it.
8484

85-
One can use the Kubelet configuration directory in a similar way to the Kubelet config file.
85+
One can use the kubelet configuration directory in a similar way to the kubelet config file.
8686
{{< note >}}
87-
The suffix of a valid Kubelet drop-in configuration file must be `.conf`. For instance: `99-kubelet-address.conf`
87+
The suffix of a valid kubelet drop-in configuration file must be `.conf`. For instance: `99-kubelet-address.conf`
8888
{{< /note >}}
8989

90-
For instance, you may want a baseline Kubelet configuration for all nodes, but you may want to customize the `address` field. This can be done as follows:
90+
For instance, you may want a baseline kubelet configuration for all nodes, but you may want to customize the `address` field. This can be done as follows:
9191

92-
Main Kubelet configuration file contents:
92+
Main kubelet configuration file contents:
9393
```yaml
9494
apiVersion: kubelet.config.k8s.io/v1beta1
9595
kind: KubeletConfiguration
@@ -106,10 +106,10 @@ kind: KubeletConfiguration
106106
address: "192.168.0.8"
107107
```
108108

109-
On startup, the Kubelet merges configuration from:
109+
On startup, the kubelet merges configuration from:
110110

111111
* Command line arguments (lowest precedence).
112-
* the Kubelet configuration
112+
* the kubelet configuration
113113
* Drop-in configuration files, according to sort order.
114114
* Feature gates specified over the command line (highest precedence).
115115

0 commit comments

Comments
 (0)