Compare commits

..

3 Commits

Author SHA1 Message Date
k8s-infra-cherrypick-robot
dd7681c272 Remove the archived debian apt repository (#11220)
Signed-off-by: Kay Yan <kay.yan@daocloud.io>
Co-authored-by: Kay Yan <kay.yan@daocloud.io>
2024-05-21 04:28:05 -07:00
James
e5fc8a933f Fix kube_version in sample inventory (#11026) 2024-05-03 02:20:40 -07:00
Kay Yan
07e19e546b cleanup-for-2.23.3 (#10892) 2024-02-06 06:06:16 -08:00
4 changed files with 16 additions and 5 deletions

View File

@@ -75,11 +75,11 @@ You will then need to use [bind mounts](https://docs.docker.com/storage/bind-mou
to access the inventory and SSH key in the container, like this:
```ShellSession
git checkout v2.23.2
docker pull quay.io/kubespray/kubespray:v2.23.2
git checkout v2.23.3
docker pull quay.io/kubespray/kubespray:v2.23.3
docker run --rm -it --mount type=bind,source="$(pwd)"/inventory/sample,dst=/inventory \
--mount type=bind,source="${HOME}"/.ssh/id_rsa,dst=/root/.ssh/id_rsa \
quay.io/kubespray/kubespray:v2.23.2 bash
quay.io/kubespray/kubespray:v2.23.3 bash
# Inside the container you may now run the kubespray playbooks:
ansible-playbook -i /inventory/inventory.ini --private-key /root/.ssh/id_rsa cluster.yml
```

View File

@@ -2,7 +2,7 @@
namespace: kubernetes_sigs
description: Deploy a production ready Kubernetes cluster
name: kubespray
version: 2.23.3
version: 2.23.4
readme: README.md
authors:
- luksi1

View File

@@ -17,7 +17,7 @@ kube_token_dir: "{{ kube_config_dir }}/tokens"
kube_api_anonymous_auth: true
## Change this to use another Kubernetes version, e.g. a current beta release
kube_version: v1.27.7
kube_version: v1.27.10
# Where the binaries will be downloaded.
# Note: ensure that you've enough disk space (about 1G)

View File

@@ -66,6 +66,17 @@
environment: "{{ proxy_env }}"
when: ansible_pkg_mgr == 'apt'
# ref to https://github.com/kubernetes-sigs/kubespray/issues/11086
- name: Remove the archived debian apt repository
lineinfile:
path: /etc/apt/sources.list
regexp: 'buster-backports'
state: absent
backup: yes
when:
- ansible_os_family == 'Debian'
- ansible_distribution_release == "buster"
- name: Ensure docker-ce repository is enabled
apt_repository:
repo: "{{ item }}"