Attempt to get tests working with debug.

This commit is contained in:
Jeff Geerling 2022-10-26 12:38:20 -05:00
parent 27837c5671
commit 040a10d252
5 changed files with 8 additions and 7 deletions

View File

@ -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. 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 ```yaml
kubernetes_config_init_configuration: kubernetes_config_init_configuration:

View File

@ -12,8 +12,8 @@
kubernetes_config_kubelet_configuration: kubernetes_config_kubelet_configuration:
cgroupDriver: "systemd" cgroupDriver: "systemd"
failSwapOn: false failSwapOn: false
cgroupsPerQOS: false cgroupsPerQOS: true
enforceNodeAllocatable: "" enforceNodeAllocatable: ['pods']
containerd_config_cgroup_driver_systemd: true containerd_config_cgroup_driver_systemd: true
pre_tasks: pre_tasks:

View File

@ -8,8 +8,8 @@
kubernetes_config_kubelet_configuration: kubernetes_config_kubelet_configuration:
cgroupDriver: "systemd" cgroupDriver: "systemd"
failSwapOn: false failSwapOn: false
cgroupsPerQOS: false cgroupsPerQOS: true
enforceNodeAllocatable: "" enforceNodeAllocatable: ['pods']
containerd_config_cgroup_driver_systemd: true containerd_config_cgroup_driver_systemd: true
pre_tasks: pre_tasks:

View File

@ -11,6 +11,7 @@ platforms:
volumes: volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw - /sys/fs/cgroup:/sys/fs/cgroup:rw
- /var/lib/containerd - /var/lib/containerd
cgroupns_mode: host
privileged: true privileged: true
pre_build_image: true pre_build_image: true
provisioner: provisioner:

View File

@ -29,7 +29,7 @@
# TODO REMOVE # TODO REMOVE
- name: Print kubeadm init output - name: Print kubeadm init output
debug: var=kubeadmin_init.stdout debug: var=kubeadmin_init
# TODO REMOVE # TODO REMOVE
- name: Get kubelet status - name: Get kubelet status
@ -39,7 +39,7 @@
# TODO REMOVE # TODO REMOVE
- name: Print kubelet status - name: Print kubelet status
debug: var=journalctl.stdout debug: var=journalctl
- name: Print the init output to screen. - name: Print the init output to screen.
debug: debug: