mirror of
https://github.com/geerlingguy/ansible-role-kubernetes.git
synced 2024-11-23 19:06:33 +01:00
Attempt to get tests working with debug.
This commit is contained in:
parent
27837c5671
commit
040a10d252
@ -49,7 +49,7 @@ kubernetes_kubeadm_kubelet_config_file_path: '/etc/kubernetes/kubeadm-kubelet-co
|
||||
|
||||
Path for `<FILE>`. If the directory does not exist, this role will create it.
|
||||
|
||||
The following variables are parsed as options to <FILE>. To understand its syntax, see https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/kubelet-integration and https://kubernetes.io/docs/reference/setup-tools/kubeadm/kubeadm-init/#config-file . The skeleton (`apiVersion`, `kind`) of the config file will be created by this role, so do not define them within the variables. (See `templates/kubeadm-kubelet-config.j2`).
|
||||
The following variables are parsed as options to <FILE>. To understand its syntax, see [kubelet-integration](https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/kubelet-integration) and [kubeadm-config-file](https://kubernetes.io/docs/reference/setup-tools/kubeadm/kubeadm-init/#config-file) . The skeleton (`apiVersion`, `kind`) of the config file will be created by this role, so do not define them within the variables. (See `templates/kubeadm-kubelet-config.j2`).
|
||||
|
||||
```yaml
|
||||
kubernetes_config_init_configuration:
|
||||
|
@ -12,8 +12,8 @@
|
||||
kubernetes_config_kubelet_configuration:
|
||||
cgroupDriver: "systemd"
|
||||
failSwapOn: false
|
||||
cgroupsPerQOS: false
|
||||
enforceNodeAllocatable: ""
|
||||
cgroupsPerQOS: true
|
||||
enforceNodeAllocatable: ['pods']
|
||||
containerd_config_cgroup_driver_systemd: true
|
||||
|
||||
pre_tasks:
|
||||
|
@ -8,8 +8,8 @@
|
||||
kubernetes_config_kubelet_configuration:
|
||||
cgroupDriver: "systemd"
|
||||
failSwapOn: false
|
||||
cgroupsPerQOS: false
|
||||
enforceNodeAllocatable: ""
|
||||
cgroupsPerQOS: true
|
||||
enforceNodeAllocatable: ['pods']
|
||||
containerd_config_cgroup_driver_systemd: true
|
||||
|
||||
pre_tasks:
|
||||
|
@ -11,6 +11,7 @@ platforms:
|
||||
volumes:
|
||||
- /sys/fs/cgroup:/sys/fs/cgroup:rw
|
||||
- /var/lib/containerd
|
||||
cgroupns_mode: host
|
||||
privileged: true
|
||||
pre_build_image: true
|
||||
provisioner:
|
||||
|
@ -29,7 +29,7 @@
|
||||
|
||||
# TODO REMOVE
|
||||
- name: Print kubeadm init output
|
||||
debug: var=kubeadmin_init.stdout
|
||||
debug: var=kubeadmin_init
|
||||
|
||||
# TODO REMOVE
|
||||
- name: Get kubelet status
|
||||
@ -39,7 +39,7 @@
|
||||
|
||||
# TODO REMOVE
|
||||
- name: Print kubelet status
|
||||
debug: var=journalctl.stdout
|
||||
debug: var=journalctl
|
||||
|
||||
- name: Print the init output to screen.
|
||||
debug:
|
||||
|
Loading…
Reference in New Issue
Block a user