7820 Commits

Author SHA1 Message Date
R. P. Taylor
b5f3f2de38
[2.26] Update to last patch versions (runc, nerdctl, etcd) (#11576) (#12817)
* Update etcd, containerd, runc, nerdctl versions

* Update etcd and containerd versions in README

Co-authored-by: janosbabik <143906591+janosbabik@users.noreply.github.com>
2026-01-02 14:26:35 +05:30
k8s-infra-cherrypick-robot
d744e3fb92
Fix: Change "empty" definition for PodSecurity Admission configuration (#12477)
Fixes a bug where `kube-apiserver` fails to start if the PodSecurity
configuration file doesn't have the `apiVersion` and `kind` keys.

Signed-off-by: Alejandro Macedo <alex.macedopereira@gmail.com>
Co-authored-by: Alejandro Macedo <alex.macedopereira@gmail.com>
2025-08-19 03:45:36 -07:00
k8s-infra-cherrypick-robot
6921b70a22
Add version pinning for AWS tf provider to fix CI (#12325)
Co-authored-by: Chad Swenson <chadswen@gmail.com>
2025-06-19 19:24:51 -07:00
k8s-infra-cherrypick-robot
6f9d003999
fix manage-offline-container-images.sh get image_id (#12315)
Co-authored-by: DearJay <zhongtianjieyi143@gmail.com>
2025-06-15 08:00:57 -07:00
Max Gautier
8a685bd9b6
Move 'pretend certificates' **after** cert distribution (#12222)
The link target will only exist after we distribute the certs on each node.
2025-05-16 20:23:13 -07:00
ChengHao Yang
1d6a6c86f9
Bump ingress-nginx to 1.11.5 and certgen to 1.5.2 (#12081)
Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>
2025-05-12 01:41:14 -07:00
k8s-infra-cherrypick-robot
0b2488dfaa
Workaround missing etcd certds on control plane node (#12193)
Co-authored-by: Max Gautier <mg@max.gautier.name>
2025-05-06 09:15:14 -07:00
Max Gautier
30e1878d27
Revert "Limit nodes in gather ansible_default_ipv4 (#11370)" (#12063)
This reverts commit 2d194af85e1a7cf63042f08783cc619fade77e2d.
2025-03-21 14:26:31 -07:00
k8s-infra-cherrypick-robot
9a506636e3
fix: kubecontrollersconfigurations list permission (#12038)
[WARNING][1] kube-controllers/runconfig.go 193: unable to list KubeControllersConfiguration(default) error=connection is unauthorized: kubecontrollersconfigurations.crd.projectcalico.org "default" is forbidden: User "system:serviceaccount:kube-system:calico-kube-controllers" cannot list resource "kubecontrollersconfigurations" in API group "crd.projectcalico.org" at the cluster scope

Co-authored-by: darkobas <marko@datafund.io>
2025-03-15 09:15:47 -07:00
ChengHao Yang
f7af33fac4
[release-2.26] Remove: tox testing from pre-commit (#12029)
* Remove amazon-linux2 from CI: issue with vm creation

Co-authored-by: ant31 <2t.antoine@gmail.com>

* Remove tox related-test from pre-commit

---------

Co-authored-by: ant31 <2t.antoine@gmail.com>
2025-03-13 02:21:46 -07:00
k8s-infra-cherrypick-robot
184b15f8ae
Revert "apiserver: fix incorrect path to admission plugins config files (#11779)" (#11811)
This reverts commit 742409e6634b8403818281a78af90f308a5bf464.

Co-authored-by: Max Gautier <mg@max.gautier.name>
2024-12-18 18:10:10 +01:00
k8s-infra-cherrypick-robot
ee2d3916f2
apiserver: fix incorrect path to admission plugins config files (#11800)
Co-authored-by: Max Gautier <mg@max.gautier.name>
2024-12-16 10:18:51 +01:00
k8s-infra-cherrypick-robot
75e12e8981
containerd: add After=dbus.service (#11784)
This is needed for shutdown ordering: while at startup, it's not a
problem that containerd start before dbus (the dbus socket already
exists) it needs to shutdown before dbus to do its cleanup (asking
systemd via dbus to cleanup cgroups).

Co-authored-by: Max Gautier <mg@max.gautier.name>
2024-12-11 16:32:03 +00:00
k8s-infra-cherrypick-robot
b35a3ff924
Bump version of community.general (#11726)
We use the persistent option of modprobe, which was introduced in 7.0.0

Co-authored-by: Max Gautier <mg@max.gautier.name>
2024-11-18 14:00:53 +00:00
k8s-infra-cherrypick-robot
cd26b379fe
Fix the pretty-printing of (core|nodelocal)dns (#11723)
When using
dns_upstream_forward_extra_opts:
  prefer_udp: "" # the option as no value so use empty string to just
                 # put the key

This is rendered in the dns configmap as ($ for end-of-line)

...
  prefer_udp $
...

Note the trailing space.
This triggers https://github.com/kubernetes/kubernetes/issues/36222,
which makes the configmap hardly readable when editing them manually or
simply putting them in a yaml file for inspection.

Trim the concatenation of option + value to get rid of any trailing
space.

Co-authored-by: Max Gautier <mg@max.gautier.name>
2024-11-18 08:12:54 +00:00
k8s-infra-cherrypick-robot
0b9872cd27
fix task naming in bootstrap-os (#11719)
Signed-off-by: bo.jiang <bo.jiang@daocloud.io>
Co-authored-by: bo.jiang <bo.jiang@daocloud.io>
2024-11-17 18:06:52 +00:00
k8s-infra-cherrypick-robot
6b487d513e
Include scripts and conf files in the ansible collection (#11717)
We use shell scripts and conf files in some roles (notably, certificates
provisioning), so we need to include them in order for the collection to
work when using the configurations depending on those roles.

Co-authored-by: Max Gautier <mg@max.gautier.name>
2024-11-16 20:36:52 +00:00
Robert Volkmann
e5bdb3b0b7
Add hashes for Kubernetes 1.30.6 (new default), 1.30.5, 1.29.8-10, 1.28.13-15 (#11673) 2024-10-31 08:25:26 +00:00
k8s-infra-cherrypick-robot
552c6bb975
update calico template (#11676)
Signed-off-by: KubeKyrie <shaolong.qin@daocloud.io>
Co-authored-by: KubeKyrie <shaolong.qin@daocloud.io>
2024-10-31 08:21:26 +00:00
k8s-infra-cherrypick-robot
5ad38a4d0d
[release-2.26] Fix debian11-custom-cni failing test & upgrade debian12-custom-cni-helm chart version (#11658)
* Test: update custom_cni values

Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>

* Test: fix cilium require kube_owner set to root

Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>

* Test: update custom_cni render manifests

Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>

* Test: fix render template pre-commit

Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>

* Test: update debian12-custom-cni-helm chart version to 1.16.3

Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>

---------

Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>
Co-authored-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>
2024-10-25 03:08:51 +01:00
Robert Volkmann
6c553d75d2
Bump containerd to 1.7.23 (#11643) 2024-10-19 15:15:03 +01:00
k8s-infra-cherrypick-robot
3f44293f69
Fix: cannot stop & remove all cri containers via remove_node.yml (#11637)
Before adding these changes, `ansible_facts.services["containerd.service"]` will not defined and fail to check for triggering the container stop and delete behaviors.

Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>
Co-authored-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>
2024-10-16 03:31:03 +01:00
k8s-infra-cherrypick-robot
84324f50be
Always copy cert generation scripts to first etcd (#11615)
If we don't, existing installation would not pick up fix to that script,
such as dc33a1971d.

Co-authored-by: Max Gautier <mg@max.gautier.name>
2024-10-09 12:52:23 +01:00
k8s-infra-cherrypick-robot
4577ee4a5d
fix elastx cleanup security groups (#11536)
Co-authored-by: Kay Yan <kay.yan@daocloud.io>
2024-09-16 08:43:14 +01:00
k8s-infra-cherrypick-robot
d80686acb0
[release-2.26] Refactor and expand download_hash.py (#11538)
* download_hash.py: generalized and data-driven

The script is currently limited to one hardcoded URL for kubernetes
related binaries, and a fixed set of architectures.

The solution is three-fold:
1. Use an url template dictionary for each download -> this allow to easily
   add support for new downloads.
2. Source the architectures to search from the existing data
3. Enumerate the existing versions in the data and start searching from
   the last one until no newer version is found (newer in the version
   order sense, irrespective of actual age)

* download_hash.py: support for 'multi-hash' file + runc

runc upstream does not provide one hash file per assets in their
releases, but one file with all the hashes.
To handle this (and/or any arbitrary format from upstreams), add a
dictionary mapping the name of the download to a lambda function which
transform the file provided by upstream into a dictionary of hashes,
keyed by architecture.

* download_hash: argument handling with argparse

Allow the script to be called with a list of components, to only
download new versions checksums for those.
By default, we get new versions checksums for all supported (by the
script) components.

* download_hash: propagate new patch versions to all archs

* download_hash: add support for 'simple hash' components

* download_hash: support 'multi-hash' components

* download_hash: document missing support

* download_hash: use persistent session

This allows to reuse http connection and be more efficient.
From rough measuring it saves around 25-30% of execution time.

* download_hash: cache request for 'multi-hash' files

This avoid re-downloading the same file for different arch and
re-parsing it

* download_hash: document usage

---------

Co-authored-by: Max Gautier <mg@max.gautier.name>
2024-09-16 08:39:14 +01:00
Max Gautier
f9ebd45c74
boostrap-os: use import_tasks instead of symlinks (#11508)
Working symlinks are dependant on git configuration (when using the playbook as
a git repository, which is common), precisely `git config
core.symlinks`.

While this is enabled by default, some company policies will disable it.

Instead, use import_tasks which should avoid that class of bugs.
v2.26.0
2024-09-05 08:24:49 +01:00
Max Gautier
7f527f6195
Drop support for RHEL 7 / CentOS 7 (#11246)
* Simplify docker systemd unit

systemd handles missing unit by ignoring the dependency so we don't need
to template them.

* Remove RHEL 7/CentOS 7 support

- remove ref in kubespray roles
- move CI from centos 7 to 8
- remove docs related to centos7

* Remove container-storage-setup

Only used for RHEL 7 and CentOS 7
2024-09-05 07:41:01 +01:00
刘旭
3da6c4fc18
Allow for configuring etcd progress notify interval and default set to 5s (#11499) 2024-09-05 06:29:05 +01:00
Max Gautier
e744a117d6
Remove systemd version + ostree check for docker TasksMax (#11493)
systemd ignores unknown keys (with a warning) so version checking is not
necessary.
There is no rationale for excluding it from ostree systems either.
2024-09-02 13:16:57 +01:00
Jongwoo Han
03372d883a
upgrade nerdctl to v1.7.6 (#11492)
Signed-off-by: Jongwoo Han <jongwooo.han@gmail.com>
2024-09-01 11:20:44 +01:00
ChengHao Yang
8a961a60c2
Feat: Gateway API CRDs install support (#11376)
* Feat: add Gateway API CRDs installation

Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>

* Feat: add Gateway API CRDs variable in inventory

Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>

---------

Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>
2024-08-31 08:24:45 +01:00
ERIK
db0138b2f9
fix: incorrect member matching when removing etcd nodes (#11488)
Signed-off-by: bo.jiang <bo.jiang@daocloud.io>
2024-08-31 08:20:44 +01:00
Max Gautier
b0be5f2dad
Print the name of faulty jinja templates in pre-commit (#11484) 2024-08-30 06:43:30 +01:00
Kay Yan
27c7dc7008
upgrade helm to v3.15.4 (#11486) 2024-08-30 06:39:30 +01:00
Lihai Tu
acc5e579f6
Add conditional checking on ubuntu kernel unattended_upgrades disabling (#11479)
Signed-off-by: tu1h <lihai.tu@daocloud.io>
2024-08-29 15:47:39 +01:00
Takuya Murakami
60b323b17f
[CI] Add a CI job to test cluster upgrading, and fix bug of testcases_run.sh (#11458)
* Fix: fix testcases_run.sh for upgrade tests

Need to git checkout ${CI_COMMIT_SHA} before running upgrade playbook (revert #11173 partially)

* feat: add CI job to test upgrade

Add a packet_ubuntu22-calico-all-in-one-upgrade job
2024-08-29 15:47:32 +01:00
Ehsan Golpayegani
924a979955
Calico v3.28.[0-1] checksums and change calico default version (#11234)
* make calico api server manifest backward compatible with version older than 3.27.3

Add 3.28.1 checksums
Add 3.28.0 checksums
Change default version to 3.27.3

* change default calico version to 3.28.1

* Set mount type to DirectoryOrCreate for hostPath needed by Calico
2024-08-29 12:10:28 +01:00
Max Gautier
5fe8714f05
Adding myself (VannTen) as approver (#11483) 2024-08-29 10:30:29 +01:00
Kay Yan
6acb44eeaf
update containerd 1.7.21 (#11478) 2024-08-29 04:22:29 +01:00
Takuya Murakami
c89ea7e4c7
Fix: remove --config option from kubeadm upgrade (#11350) (#11352)
We can't mix some options with --config for kubeadm upgrade.
The --config on upgrade is deprecated, and should be removed.
2024-08-29 03:08:29 +01:00
Selçuk Arıbalı
3d9e4951ce
fix static api server advertise address (#11457) 2024-08-28 15:20:56 +01:00
Max Gautier
776b40a329
Adjust task name since we allow empty kube_node (#11474) 2024-08-28 06:35:02 +01:00
Max Gautier
a3d0ba230d
Remove kubeadm_version and use kube_version instead (#11473)
We explicitly check for equality so customizing kubeadm_version does not
work at the moment.

Use only one variable instead.
2024-08-28 06:34:56 +01:00
Vlad Korolev
9a7b021eb8
Do not use ‘yes/no’ for boolean values (#11472)
Consistent boolean values in ansible playbooks
2024-08-28 06:30:56 +01:00
R. P. Taylor
5c5421e453
fix double pop of access_ip (#11435) 2024-08-27 16:28:57 +01:00
dependabot[bot]
1798989f99
Bump molecule from 24.7.0 to 24.8.0 (#11460)
Bumps [molecule](https://github.com/ansible-community/molecule) from 24.7.0 to 24.8.0.
- [Release notes](https://github.com/ansible-community/molecule/releases)
- [Commits](https://github.com/ansible-community/molecule/compare/v24.7.0...v24.8.0)

---
updated-dependencies:
- dependency-name: molecule
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-27 14:32:56 +01:00
kyrie
961a6a8c9e
fix reset network for tencent OS (#11459)
Signed-off-by: KubeKyrie <shaolong.qin@daocloud.io>
2024-08-26 15:32:08 +01:00
Lola Delannoy
2f84567a69
Add containerd config options (#11080)
* chore(containerd): add some config debug options

See: https://github.com/containerd/containerd/blob/v1.7.15/docs/man/containerd-config.toml.5.md

* chore(containerd): add CRI config options

See: https://github.com/containerd/containerd/blob/v1.7.15/docs/man/containerd-config.toml.5.md
See: https://github.com/containerd/containerd/blob/v1.7.15/docs/cri/config.md
2024-08-21 05:13:05 +01:00
dependabot[bot]
171b0e60aa
Bump tox from 4.17.1 to 4.18.0 (#11461)
Bumps [tox](https://github.com/tox-dev/tox) from 4.17.1 to 4.18.0.
- [Release notes](https://github.com/tox-dev/tox/releases)
- [Changelog](https://github.com/tox-dev/tox/blob/main/docs/changelog.rst)
- [Commits](https://github.com/tox-dev/tox/compare/4.17.1...4.18.0)

---
updated-dependencies:
- dependency-name: tox
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-20 02:35:44 -07:00
Mohamed Omar Zaian
c4338687e1
[ingress-nginx] upgrade to 1.11.2 (#11463) 2024-08-19 06:10:27 -07:00