Commit Graph
9016 Commits
Author SHA1 Message Date
Dasmat Hansda 38f82cdce9 refactor: unify inconsistent variables in apiserver endpoint (#13392) 2026-10-12 06:25:22 +00:00
Jathavedhan 7c57bc015d Enable Calico loadbalancer controller in calico-kube-controllers (#13611)
calico-kube-controllers ran without the loadbalancer controller, so
Service LoadBalancer IPs were never allocated from Calico IP pools.
Add it to both datastore lists on Calico 3.30.0 and later, where the
controller exists, and make the lists configurable.

Signed-off-by: Jathavedhan M <jathavedhan.m@ibm.com>
2026-10-12 04:01:34 +00:00
Jay.HandAli Afsharzadeh 457217aaa0 Allow setting --service-account-extend-token-expiration for kube-apiserver in hardening.yaml (#13616)
* kube-apiserver: add --service-account-extend-token-expiration

* Update docs/ansible/vars.md

Co-authored-by: Ali Afsharzadeh <afsharzadeh8@gmail.com>

* Update docs/operations/hardening.md

* Update docs/operations/hardening.md

Co-authored-by: Ali Afsharzadeh <afsharzadeh8@gmail.com>

---------

Co-authored-by: Ali Afsharzadeh <afsharzadeh8@gmail.com>
2026-10-12 03:57:19 +00:00
Kay Yan 131fd144cc chore: remove unused Vagrant release image (#13625)
* chore: remove unused Vagrant release image

Signed-off-by: Kay Yan <kay.yan@daocloud.io>

* docs: keep Vagrant image retirement in release notes

Signed-off-by: Kay Yan <kay.yan@daocloud.io>

---------

Signed-off-by: Kay Yan <kay.yan@daocloud.io>
2026-10-10 08:17:16 +00:00
MohammadReza b1881b5a3e chore(deps): bump runc to 1.5.2 (#13622) 2026-10-08 19:39:59 +00:00
ERIK d74d180c09 reset: unmount calico cgroup2 fs before deleting /run/calico (#13592)
Signed-off-by: bo.jiang <bo.jiang@daocloud.io>
2026-10-08 12:17:58 +00:00
ChengHao Yang a1102771f8 Docs: update the PR template with k/k (#13619)
Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>
2026-10-08 07:13:59 +00:00
Ali Afsharzadeh d98540de2c Add etcd_feature_gates and restore the etcd 3.5 flag names (#13569)
Signed-off-by: Ali Afsharzadeh <afsharzadeh8@gmail.com>
2026-10-08 03:41:59 +00:00
MohammadReza 5eae65cc2a chore(deps): bump nerdctl to 2.4.1 (#13617) 2026-10-08 02:44:00 +00:00
Frank 1c1ed9562a ci: run the Ansible controller as an unprivileged user (#13527)
* ci: run the Ansible controller as an unprivileged user

* ci: clarify non-root controller check

* ci: make the sudo privilege check fail when sudo succeeds

Bash does not apply errexit to the negated sudo command. The old check could not fail the job even when passwordless sudo worked. Exit explicitly when sudo succeeds.

Remove --break-system-packages from both upgrade pip installs because they run inside the controller virtual environment.
2026-10-07 16:33:59 +00:00
dependabot[bot] 1701e1df8d build(deps): bump cryptography from 50.0.1 to 50.0.2 (#13609)
Bumps [cryptography](https://github.com/pyca/cryptography) from 50.0.1 to 50.0.2.
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pyca/cryptography/compare/50.0.1...50.0.2)

---
updated-dependencies:
- dependency-name: cryptography
  dependency-version: 50.0.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-05 07:02:35 +00:00
MohammadRezaandAli Afsharzadeh 622a1666ed Remove upgrade shims shipped in 2.31.0 and 2.32.0 (#13598)
* chore: remove upgrade shims shipped in 2.31.0 and 2.32.0

* fix(validate_inventory): anchor every name in the removed_vars regex

Co-authored-by: Ali Afsharzadeh <afsharzadeh8@gmail.com>

---------

Co-authored-by: Ali Afsharzadeh <afsharzadeh8@gmail.com>
2026-10-04 10:00:23 +00:00
Farshad Asadpour c58f0aff41 [argocd] Bump ArgoCD version to 3.5.3 (#13591)
Argo CD publishes its tested Kubernetes versions at
https://argo-cd.readthedocs.io/en/stable/operator-manual/tested-kubernetes-versions/

3.5.3 is the latest available Argo CD release. Its matrix covers v1.33
through v1.36, which does not include the v1.37.1 shipped by this
branch, so this is the best available option rather than a combination
upstream has marked as tested. The 2.14 series is no longer listed on
that matrix.

argocd_version is derived from the first entry of
argocd_install_checksums, so adding the checksum for 3.5.3 at the top
of the list selects it.
2026-10-04 07:20:20 +00:00
Ali Afsharzadeh 15ea3a9bba Upload kubeadm ClusterConfiguration before the control plane upgrade (#13594)
kubeadm upgrade reads ClusterConfiguration only from the kubeadm-config
ConfigMap, so it keeps the old etcd version. The etcd version then
changes on all control plane nodes at the same time, and the control
plane stops. Upload the ClusterConfiguration first. Then kubeadm
upgrades etcd on one node at a time.

Signed-off-by: Ali Afsharzadeh <afsharzadeh8@gmail.com>
2026-09-30 09:06:38 +00:00
Kay Yan ebf1560fc0 Revert EL8 Python bootstrap and Calico CI (#13596)
This reverts commit e19d1c9a55.

Allow further maintainer discussion without introducing additional changes.

Signed-off-by: Kay Yan <kay.yan@daocloud.io>
2026-09-30 08:20:38 +00:00
Kay Yan e19d1c9a55 Enable AlmaLinux 8 and Rocky Linux 8 Calico CI with Python 3.12 bootstrap (#13593)
* Enable AlmaLinux 8 and Rocky Linux 8 Calico CI

Install Python 3.12 with yum before gathering facts when the interpreter
selected by Ansible is missing or older than Python 3.9, and add
bootstrap_os_install_python to control distribution-specific Python
bootstrap installation.

EL8 only ships the libselinux Python bindings for the distribution
Python 3.6, so ansible.posix.selinux fails once Kubespray runs with
Python 3.12. Keep using the module when the bindings are importable and
otherwise set the policy in /etc/selinux/config and apply the runtime
state with setenforce.

Enable rockylinux8-calico in regular PR CI, add almalinux8-calico as a
manual job, and document the RHEL 8 family lifecycle.

Signed-off-by: Kay Yan <kay.yan@daocloud.io>

* Fix EL8 containerd compatibility and SELinux runtime transitions

Signed-off-by: Kay Yan <kay.yan@daocloud.io>

---------

Signed-off-by: Kay Yan <kay.yan@daocloud.io>
2026-09-29 10:32:14 +00:00
MohammadReza d5190f6071 refactor: resolve ansible-core 2.19 TODOs now that 2.21 is the minimum (#13588) 2026-09-28 21:35:32 +00:00
MohammadReza ec07470009 Bump registry to 3.1.2 (#13531)
* chore(deps): bump registry to 2.8.3

* chore(deps): bump registry to 3.1.2
2026-09-28 12:36:35 +00:00
Max Gautier cad55c82c6 Cleanup leftover variables from yq removal (#13582) 2026-09-28 08:22:32 +00:00
Dasmat Hansda a9c2b73d31 fix: ensure consistent etcd certificate permissions on first etcd node (#13367)
* fix(etcd): ensure consistent certificate permissions on first etcd node

The etcd certificate generation script runs on the first etcd node and
creates certs with default ownership and permissions. Subsequent copy
tasks set explicit ownership and permissions on the remaining etcd
nodes, resulting in inconsistent permissions across the cluster.

This can cause issues such as etcd backup jobs failing on the first
node due to missing read access to certificate files.

Add an ansible.builtin.file task after cert generation to explicitly
set the correct ownership and permissions on the first etcd node.

* fix(etcd): guard client certificate permissions

* fix(etcd): set certificate permissions during installation
2026-09-28 07:32:33 +00:00
dependabot[bot] b33bb47864 build(deps): bump molecule from 26.8.0 to 26.9.0 in the molecule group (#13586)
Bumps the molecule group with 1 update: [molecule](https://github.com/ansible/molecule).


Updates `molecule` from 26.8.0 to 26.9.0
- [Release notes](https://github.com/ansible/molecule/releases)
- [Commits](https://github.com/ansible/molecule/compare/v26.8.0...v26.9.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-28 04:42:30 +00:00
Max Gautier 384b0e03aa Add guoard to approvers (#13571) 2026-09-28 02:42:30 +00:00
MohammadReza 7215885cb6 chore(deps): drop passlib and the bcrypt pin (#13584) 2026-09-27 12:56:32 +00:00
ERIK 2dbb33a3d7 build: upgrade to Ansible 14 (#13549)
Raise ansible-core support to 2.21 for maintained upstream support through November 2027. This requires Python 3.12-3.14 on control nodes and 3.9-3.14 on targets.

Signed-off-by: bo.jiang <bo.jiang@daocloud.io>
2026-09-26 15:18:27 +00:00
Ali Afsharzadeh baf68247eb Fix network range asserts on Ansible 2.19 (#13575)
Signed-off-by: Ali Afsharzadeh <afsharzadeh8@gmail.com>
2026-09-26 15:04:28 +00:00
Kay Yan 687e1dcbc2 docs: require daily CI before tagging a release (#13207)
* docs: require full CI before tagging a release

Signed-off-by: Kay Yan <kay.yan@daocloud.io>

* docs: use daily CI as release gate

Signed-off-by: Kay Yan <kay.yan@daocloud.io>

* docs: clarify daily CI release check

Signed-off-by: Kay Yan <kay.yan@daocloud.io>

---------

Signed-off-by: Kay Yan <kay.yan@daocloud.io>
2026-09-26 10:14:32 +00:00
Dasmat Hansda e62c778293 fix: correct CiliumBGPNodeConfigOverride CRD wait condition and deprecate legacy BGP Peering Policy (#13366)
* fix: correct CiliumBGPNodeConfigOverride CRD wait condition and deprecate legacy BGP Peering Policy

- Fix copy-paste bug where cilium_bgp_advertisements was used instead of
  cilium_bgp_node_config_overrides when waiting for the
  CiliumBGPNodeConfigOverride CRD. This caused the CRD readiness check
  to be skipped when only node config overrides were configured.
- Add deprecation notices across docs, sample inventory, and defaults
  to guide users away from the legacy v2alpha1 CiliumBGPPeeringPolicy
  toward the supported BGP v2 API variables.

* fix(cilium): simplify BGP node override condition
2026-09-26 10:00:27 +00:00
Mehrdad Biukian d75f23cba3 fix(container-engine/cri-o): flush Restart crio handler inside the role (#13416)
* fix(container-engine/cri-o): flush Restart crio handler inside the role

During a Kubernetes upgrade (e.g. 1.32 -> 1.33) the cri-o systemd service is
not restarted even though the new cri-o binaries are deployed. This leaves the
node running the old cri-o version (reported as crio://1.32.x after kubelet is
upgraded to 1.33.x); a manual 'systemctl restart crio' fixes it.

The cri-o role notifies 'Restart crio' from several tasks (binary copy,
registries, proxy drop-in, service file, etc.) but never flushes the handler
itself. The handler only fired when the kubernetes/node role ran its own
'meta: flush_handlers' later in the same play. That cross-role dependency is
fragile during upgrades: if kubernetes/node is skipped, tagged out, or the
flush is reordered, the restart is silently dropped.

Route every restart through the single handler: crio.conf and config.json now
notify 'Restart crio' and the ad-hoc 'trigger service restart only when needed'
task is dropped (its restart duplicated what the handler already does, and a
restarted unit also starts a stopped one). Then add 'meta: flush_handlers'
right after the service start task so the pending handlers run as part of this
role regardless of any downstream role's flush timing.

Signed-off-by: Mehrdad Biukian Naeini <mehrdadbiukian@gmail.com>

* test(youki): run youki before cri-o in molecule converge

The converge ran container-engine/cri-o before container-engine/youki, the reverse of the order used by the container-engine role, which installs the runtime roles (kata-containers, gvisor, crun, youki) before the container manager role.

With cri-o flushing its restart handler inside the role, cri-o is now restarted while /usr/local/bin/youki does not exist yet: CRI-O skips the runtime whose binary is missing, so the youki runtime handler is never registered and the verify step fails with 'failed to find runtime handler youki from runtime list map[crun:...]'. Running the roles in the playbook order puts the youki binary in place before cri-o starts.

Signed-off-by: Mehrdad Biukian Naeini <mehrdadbiukian@gmail.com>

---------

Signed-off-by: Mehrdad Biukian Naeini <mehrdadbiukian@gmail.com>
2026-09-26 09:50:28 +00:00
Ali Afsharzadeh ac72c82651 Compare the ip var with local IPs as addresses (#13577)
Signed-off-by: Ali Afsharzadeh <afsharzadeh8@gmail.com>
2026-09-26 09:36:28 +00:00
Ali Afsharzadeh 90f7c2505f Set priorityClassName and priority on static pods (#13578)
With priority only (#13490), the API server rejects the mirror pods
and the kubelet does not give the pods the node-critical OOM score.
Set both fields, like kubeadm does for its static pods.

Signed-off-by: Ali Afsharzadeh <afsharzadeh8@gmail.com>
2026-09-26 08:46:28 +00:00
Ali Afsharzadeh 49c7a478e1 Compare Calico pool CIDRs as networks (#13576)
The check compares the Calico IP pool CIDR with the inventory as
strings, so the same network in a different notation fails, for
example fd85:ee78:d8a6:202::1:0000/112 and fd85:ee78:d8a6:202::1:0/112.
Use ipaddr('net') on the two sides.

Signed-off-by: Ali Afsharzadeh <afsharzadeh8@gmail.com>
2026-09-26 07:28:27 +00:00
kubernetes-prow[bot] 3ba157f495 Merge pull request #13572 from VannTen/argocd_cleanup_manifests
argocd: cleanup manifests install
2026-09-25 18:26:27 +00:00
Max Gautier 58be448c63 Remove yq as it's no longer needed
After removing it's use in argocd install, yq is no longer used
anywhere.

Remove it everywhere.
2026-09-25 19:46:04 +02:00
Max Gautier 88b827e58d argocd: simplify manifests apply
ArgoCD upstream manifests do not include namespace for the objects, so
there is no need to override it, and simply using kubectl flags allow to
set it.

Use the upstream file directly , considerably simplifying the argocd
install.

ansible-lint: the refactor apparently newly exposes the password hash
filter to ansible and this needs passlib, so add it to the pre-commit
dependencies.
2026-09-25 19:45:58 +02:00
Max Gautier 7462b8b93b download: hardcode artifacts mode & owner (#13570)
The artifacts acquisition does not need particular owner or mode, it
only needs to be readable by other parts of kubespray actually installing
the artefacts where needed.

Thus, remove all mode / owner specific maniulation in download and
hardcode to 0644/0755 for file/directory.
2026-09-25 13:02:30 +00:00
Ali Afsharzadeh cc65b8d9e3 Upgrade etcd to 3.7 for Kubernetes 1.37 (#13363)
Signed-off-by: Ali Afsharzadeh <afsharzadeh8@gmail.com>
2026-09-25 06:16:30 +00:00
Max Gautier 327e7fde9c collection: rename helm-apps to helm_apps (#13553)
needed for compatibily with Galaxy
2026-09-24 16:40:17 +00:00
Ali Afsharzadeh 6e06a10613 Update youki to 0.7.0 and download the static musl build (#13564)
Add the 0.6.0 and 0.7.0 checksums, drop 0.4.x, and move youki back
into the blocking molecule matrix. The seccomp bug behind the old
FIXME (youki#3479) is fixed in 0.7.0.

The 0.7.0 gnu tarball is linked against glibc 2.39, because cross-rs
moved its base image to Ubuntu 24.04 and youki installs cross from
git. It does not run on EL9, Amazon Linux 2023, Ubuntu 22.04 or
Debian 12, and it needs libseccomp on the host.

The musl tarball is static, has the same default features and no
runtime requirements. It is the build upstream recommends in its
setup docs.

Signed-off-by: Ali Afsharzadeh <afsharzadeh8@gmail.com>
2026-09-24 12:18:20 +00:00
Max Gautier c943bcadf6 downloads: separate etcd and etcd_container (#13555)
Mixing two semantically distincts artefacts makes things harder to read
and to consume from other code.

Needed for clean filtering on container / file.
2026-09-24 10:42:17 +00:00
Ali Afsharzadeh 635d996c2c Support Kubernetes 1.37 (#13561)
Signed-off-by: Ali Afsharzadeh <afsharzadeh8@gmail.com>
2026-09-24 10:22:20 +00:00
Max Gautier 0cbb6f38bf downloads: pre-filter the loop instead of using when (#13563)
This prevent evaluation of the whole item even if not used, and the
tasks scheduling of skipped tasks.
Preventing evaluation in particular helps avoiding irrelevant errors,
like when an unused downloads member has undefined members.
2026-09-24 09:00:21 +00:00
Ali Afsharzadeh dcf5d8e78f Remove obsolete .ansible-lint-ignore (#13556)
Every entry in the file is for the jinja[spacing] rule. That rule has
been in the global skip_list of .ansible-lint since #12848, so the file
has had no effect since then.

Signed-off-by: Ali Afsharzadeh <afsharzadeh8@gmail.com>
2026-09-24 06:54:19 +00:00
Shuu 0839383414 fix: skip None resolvconf paths on Ansible Core 2.19 (#13548)
Empty base/head facts render to None on Ansible Core 2.19, which
difference(['']) does not remove. Use select to drop both.
2026-09-24 03:54:14 +00:00
Max Gautier caba976460 collection: rename bastion-ssh-config role (#13554)
Needed for compatibility with Galaxy
2026-09-23 19:44:16 +00:00
Max Gautier 1cfdc51bb3 Remove compat roles incompatible with galaxy collection (#13551) 2026-09-23 19:04:19 +00:00
Max Gautier ef3ca1aa0e remove_node: rename role to galaxy naming convention (#13552) 2026-09-23 18:56:20 +00:00
Ali Afsharzadeh 6f6b8b4d20 Add helm_archive to update-hashes (#13536)
Signed-off-by: Ali Afsharzadeh <afsharzadeh8@gmail.com>
2026-09-23 18:52:15 +00:00
kubernetes-prow[bot] 7e6c39baf5 Merge pull request #13523 from VannTen/container_merge_repo_tag
downloads/container: merge repo and tag
2026-09-23 17:10:15 +00:00
Max Gautier 2f42f98d22 Update docs and offline scripts for merged repo + tag in downloads 2026-09-23 15:35:00 +02:00
Max Gautier 6ff47af1ce download: Remove checksums for all container
The pull by digest hasn't been working since 800c84dcc (download: use
full hash form (including hash alg), 2025-01-14), where the key was
renamed to checksum, but the download_container still checked sha256.

Stop pretending we pull by digest.
2026-09-23 13:18:50 +02:00