mirror of
https://github.com/geerlingguy/ansible-role-kubernetes.git
synced 2024-11-23 19:06:33 +01:00
Try Kubernetes 1.24.4.
This commit is contained in:
parent
57292bdfc8
commit
70e203de3f
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
@ -43,13 +43,13 @@ jobs:
|
||||
include:
|
||||
- distro: rockylinux8
|
||||
playbook: converge.yml
|
||||
# - distro: ubuntu2004
|
||||
# playbook: converge.yml
|
||||
# - distro: debian11
|
||||
# playbook: converge.yml
|
||||
- distro: ubuntu2004
|
||||
playbook: converge.yml
|
||||
- distro: debian11
|
||||
playbook: converge.yml
|
||||
|
||||
# - distro: debian11
|
||||
# playbook: calico.yml
|
||||
- distro: debian11
|
||||
playbook: calico.yml
|
||||
|
||||
steps:
|
||||
- name: Check out the codebase.
|
||||
|
@ -27,8 +27,8 @@ kubernetes_packages:
|
||||
Kubernetes packages to be installed on the server. You can either provide a list of package names, or set `name` and `state` to have more control over whether the package is `present`, `absent`, `latest`, etc.
|
||||
|
||||
```yaml
|
||||
kubernetes_version: '1.25'
|
||||
kubernetes_version_rhel_package: '1.25.0'
|
||||
kubernetes_version: '1.24'
|
||||
kubernetes_version_rhel_package: '1.24.4'
|
||||
```
|
||||
|
||||
The minor version of Kubernetes to install. The plain `kubernetes_version` is used to pin an apt package version on Debian, and as the Kubernetes version passed into the `kubeadm init` command (see `kubernetes_version_kubeadm`). The `kubernetes_version_rhel_package` variable must be a specific Kubernetes release, and is used to pin the version on Red Hat / CentOS servers.
|
||||
|
@ -9,8 +9,8 @@ kubernetes_packages:
|
||||
- name: kubernetes-cni
|
||||
state: present
|
||||
|
||||
kubernetes_version: '1.25'
|
||||
kubernetes_version_rhel_package: '1.25.0'
|
||||
kubernetes_version: '1.24'
|
||||
kubernetes_version_rhel_package: '1.24.4'
|
||||
|
||||
kubernetes_role: control_plane
|
||||
|
||||
|
@ -9,7 +9,7 @@ platforms:
|
||||
image: "geerlingguy/docker-${MOLECULE_DISTRO:-centos7}-ansible:latest"
|
||||
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
||||
volumes:
|
||||
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
||||
- /sys/fs/cgroup:/sys/fs/cgroup:rw
|
||||
- /var/lib/containerd
|
||||
privileged: true
|
||||
pre_build_image: true
|
||||
|
@ -25,21 +25,6 @@
|
||||
{{ kubernetes_kubeadm_init_extra_opts }}
|
||||
register: kubeadmin_init
|
||||
when: (not kubernetes_init_stat.stat.exists) and (kubernetes_ignore_preflight_errors is defined)
|
||||
# failed_when: false # DELETEME START ---
|
||||
# - name: Test
|
||||
# command: systemctl status kubelet
|
||||
# changed_when: false
|
||||
# register: systemctl_result
|
||||
|
||||
# - debug: var=systemctl_result
|
||||
|
||||
# - name: Test 2
|
||||
# command: journalctl --no-pager -xeu kubelet
|
||||
# changed_when: false
|
||||
# register: journalctl_result
|
||||
|
||||
# - debug: var=journalctl_result
|
||||
# # DELETEME END ---
|
||||
|
||||
- name: Print the init output to screen.
|
||||
debug:
|
||||
|
Loading…
Reference in New Issue
Block a user