mirror of
https://github.com/geerlingguy/ansible-role-kubernetes.git
synced 2024-11-18 19:10:39 +01:00
Use kubelet configuration for swap control and other vars.
This commit is contained in:
parent
219c089243
commit
27837c5671
@ -73,7 +73,7 @@ kubernetes_config_kubelet_configuration:
|
|||||||
cgroupDriver: systemd
|
cgroupDriver: systemd
|
||||||
```
|
```
|
||||||
|
|
||||||
Options to configure kubelet on any nodes in your cluster through the `kubeadm init` process. To get the syntax of this options see https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file and https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/kubelet-integration.
|
Options to configure kubelet on any nodes in your cluster through the `kubeadm init` process. For syntax options read the [kubelet config file](https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file) and [kubelet integration](https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/kubelet-integration) documentation.
|
||||||
|
|
||||||
NOTE: This is the recommended way to do the kubelet-configuration. Most command-line-options are deprecated.
|
NOTE: This is the recommended way to do the kubelet-configuration. Most command-line-options are deprecated.
|
||||||
|
|
||||||
@ -92,7 +92,7 @@ kubernetes_kubelet_extra_args: ""
|
|||||||
kubernetes_kubelet_extra_args_config_file: /etc/default/kubelet
|
kubernetes_kubelet_extra_args_config_file: /etc/default/kubelet
|
||||||
```
|
```
|
||||||
|
|
||||||
Extra args to pass to `kubelet` during startup. E.g. to allow `kubelet` to start up even if there is swap is enabled on your server, set this to: `"--fail-swap-on=false"`. Or to specify the node-ip advertised by `kubelet`, set this to `"--node-ip={{ ansible_host }}"`. *This is deprecated. Please use `kubernetes_config_kubelet_configuration` instead.*
|
Extra args to pass to `kubelet` during startup. E.g. to allow `kubelet` to start up even if there is swap is enabled on your server, set this to: `"--fail-swap-on=false"`. Or to specify the node-ip advertised by `kubelet`, set this to `"--node-ip={{ ansible_host }}"`. **This option is deprecated. Please use `kubernetes_config_kubelet_configuration` instead.**
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
kubernetes_kubeadm_init_extra_opts: ""
|
kubernetes_kubeadm_init_extra_opts: ""
|
||||||
|
@ -9,11 +9,11 @@
|
|||||||
cidr: '192.168.0.0/16'
|
cidr: '192.168.0.0/16'
|
||||||
|
|
||||||
# Allow swap in test environments (hard to control in some envs).
|
# Allow swap in test environments (hard to control in some envs).
|
||||||
kubernetes_kubelet_extra_args: >-
|
kubernetes_config_kubelet_configuration:
|
||||||
--fail-swap-on=false
|
cgroupDriver: "systemd"
|
||||||
--cgroup-driver=systemd
|
failSwapOn: false
|
||||||
--cgroups-per-qos=false
|
cgroupsPerQOS: false
|
||||||
--enforce-node-allocatable=""
|
enforceNodeAllocatable: ""
|
||||||
containerd_config_cgroup_driver_systemd: true
|
containerd_config_cgroup_driver_systemd: true
|
||||||
|
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
|
@ -5,11 +5,11 @@
|
|||||||
|
|
||||||
vars:
|
vars:
|
||||||
# Allow swap in test environments (hard to control in some envs).
|
# Allow swap in test environments (hard to control in some envs).
|
||||||
kubernetes_kubelet_extra_args: >-
|
kubernetes_config_kubelet_configuration:
|
||||||
--fail-swap-on=false
|
cgroupDriver: "systemd"
|
||||||
--cgroup-driver=systemd
|
failSwapOn: false
|
||||||
--cgroups-per-qos=false
|
cgroupsPerQOS: false
|
||||||
--enforce-node-allocatable=""
|
enforceNodeAllocatable: ""
|
||||||
containerd_config_cgroup_driver_systemd: true
|
containerd_config_cgroup_driver_systemd: true
|
||||||
|
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
|
Loading…
Reference in New Issue
Block a user