Skip to content

Commit

Permalink
fix: use pkgs.k8s.io deb repo (#1076)
Browse files Browse the repository at this point in the history
  • Loading branch information
some-things authored May 10, 2024
1 parent 422b557 commit 2be9c40
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions ansible/group_vars/all/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ python_path: ""
# This is also in images/common.yaml as that's where the go code expects it to be.
# If it's not there, the kubernetes_full_version will have "None" for a version number.
kubernetes_version: "1.24.6"
kubernetes_major_minor: "{{ (kubernetes_version.split('.') | map('trim'))[:2] | join('.') }}"
kubernetes_semver: "v{{ kubernetes_version }}"

containerd_version: "1.4.13"
Expand All @@ -21,7 +22,7 @@ nvidia_cuda_version: ""
# The initial revision is 00.
# kubeadm 1.24.6 was released after https://github.com/kubernetes/release/commit/5e6ea972a71975172f1bb91cdec40bd48b2801dc
# merged, and it therefore requires cri-tools >= 1.25.0. However, cri-tools 1.26.0 is incompatible with containerd 1.4.13.
critools_version_deb: "1.25.0-00"
critools_version_deb: "1.25.0-1.1"
# DKP publishes its own RPM packages, which include cri-tools, so KIB
# cannot select a different version.
# critools_version_rpm: n/a
Expand All @@ -42,7 +43,7 @@ package_versions:
enable_repository_installation: "{{ (spec.osPackages.enableAdditionalRepositories if spec.osPackages is defined else true)|default(true)|bool }}"
# the version may contain d2iq specific suffix, remove it when downloading packages
kubernetes_rpm: "{{ kubernetes_version }}-0"
kubernetes_deb: "{{ kubernetes_version }}-00"
kubernetes_deb: "{{ kubernetes_version }}-1.1"
kubenode: "{{ kubernetes_version }}"

# variable used for seeding images
Expand Down
6 changes: 3 additions & 3 deletions ansible/group_vars/all/system.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ kubernetes_rpm_repository_url: "https://packages.d2iq.com/konvoy/stable/linux/re
kubernetes_rpm_gpg_key_url: "https://packages.d2iq.com/konvoy/stable/linux/repos/d2iq-sign-authority-gpg-public-key"

## Debian
kubernetes_deb_repository_url: "https://packages.cloud.google.com/apt/"
kubernetes_deb_gpg_key_url: "https://packages.cloud.google.com/apt/doc/apt-key.gpg"
kubernetes_deb_release_name: "kubernetes-xenial"
kubernetes_deb_repository_url: "https://pkgs.k8s.io/core:/stable:/v{{ kubernetes_major_minor }}/deb/"
kubernetes_deb_gpg_key_url: "https://pkgs.k8s.io/core:/stable:/v{{ kubernetes_major_minor }}/deb/Release.key"
kubernetes_deb_release_name: "/"

# containerd package
# Appstream is enabled by default in rhel8, so install the package from local repositories in that case
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/repo/tasks/debian.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@

- name: add Kubernetes deb repository
apt_repository:
repo: 'deb {{ kubernetes_deb_repository_url }} {{ kubernetes_deb_release_name }} main'
repo: 'deb {{ kubernetes_deb_repository_url }} {{ kubernetes_deb_release_name }}'
retries: 3
delay: 3

0 comments on commit 2be9c40

Please sign in to comment.