Skip to content

Commit

Permalink
Merge pull request #3801 from k0sproject/backport-3800-to-release-1.27
Browse files Browse the repository at this point in the history
[Backport release-1.27] Fix doc configuration.md spec.workerProfiles examples misplaced
  • Loading branch information
jnummelin authored Dec 15, 2023
2 parents f7b6a36 + 834b4f9 commit 064be07
Showing 1 changed file with 44 additions and 42 deletions.
86 changes: 44 additions & 42 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,46 @@ Note that there are several fields that cannot be overridden:
[kubelet-config]: https://kubernetes.io/docs/reference/config-api/kubelet-config.v1beta1/
#### Configuration examples
##### Custom volumePluginDir
```yaml
spec:
workerProfiles:
- name: custom-pluginDir
values:
volumePluginDir: /var/libexec/k0s/kubelet-plugins/volume/exec
```
##### Eviction Policy
```yaml
spec:
workerProfiles:
- name: custom-eviction
values:
evictionHard:
memory.available: "500Mi"
nodefs.available: "1Gi"
imagefs.available: "100Gi"
evictionMinimumReclaim:
memory.available: "0Mi"
nodefs.available: "500Mi"
imagefs.available: "2Gi"
```
##### Unsafe Sysctls
```yaml
spec:
workerProfiles:
- name: custom-eviction
values:
allowedUnsafeSysctls:
- fs.inotify.max_user_instances
```
### `spec.featureGates`
Available components are:
Expand All @@ -345,7 +385,9 @@ If `components` are omitted, propagates to all kube components.
Modifies extraArgs.
#### Example
#### Examples
##### Generic feature gates example
```yaml
spec:
Expand All @@ -359,7 +401,7 @@ spec:
enabled: false
```
#### Kubelet feature gates example
##### Kubelet feature gates example
The below is an example of a k0s config with feature gates enabled:
Expand All @@ -376,46 +418,6 @@ spec:
enabled: false
```
#### Configuration examples
##### Custom volumePluginDir
```yaml
spec:
workerProfiles:
- name: custom-pluginDir
values:
volumePluginDir: /var/libexec/k0s/kubelet-plugins/volume/exec
```
##### Eviction Policy
```yaml
spec:
workerProfiles:
- name: custom-eviction
values:
evictionHard:
memory.available: "500Mi"
nodefs.available: "1Gi"
imagefs.available: "100Gi"
evictionMinimumReclaim:
memory.available: "0Mi"
nodefs.available: "500Mi"
imagefs.available: "2Gi"
```
##### Unsafe Sysctls
```yaml
spec:
workerProfiles:
- name: custom-eviction
values:
allowedUnsafeSysctls:
- fs.inotify.max_user_instances
```
### `spec.images`
Nodes under the `images` key all have the same basic structure:
Expand Down

0 comments on commit 064be07

Please sign in to comment.