Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Release-1.26] - Update Cilium to v1.15.1 #5476

Closed
mgfritch opened this issue Feb 15, 2024 · 1 comment
Closed

[Release-1.26] - Update Cilium to v1.15.1 #5476

mgfritch opened this issue Feb 15, 2024 · 1 comment
Assignees

Comments

@mgfritch
Copy link
Contributor

Backport fix for Update Cilium to v1.15.1

@aganesh-suse
Copy link

Validated on release-1.26 branch with commit 84264b9

Environment Details

Infrastructure

  • Cloud
  • Hosted

Node(s) CPU architecture, OS, and Version:

$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.2 LTS"

$ uname -m
x86_64

Cluster Configuration:

HA : 3 server / 1 agent

or

1 server/ 1 agent

Config.yaml:

token: xxxx
write-kubeconfig-mode: "0644"
node-external-ip: 1.1.1.1
cni: cilium

Helm chart config to add in manifest folder

apiVersion: helm.cattle.io/v1
kind: HelmChartConfig
metadata:
  name: rke2-cilium
  namespace: kube-system
spec:
  valuesContent: |-
    kubeProxyReplacement: true
    k8sServiceHost: <control_plane_ip_alias_kube_api_server_ip>
    k8sServicePort: 6443
    cni:
      chainingMode: "none"

    encryption:
      enabled: true
      type: wireguard

Testing Steps

  1. Copy config.yaml
$ sudo mkdir -p /etc/rancher/rke2 && sudo cp config.yaml /etc/rancher/rke2

Copy helm chart config into manifest folder: /var/lib/rancher/rke2/server/manifests

  1. Install RKE2
curl -sfL https://get.rke2.io | sudo INSTALL_RKE2_COMMIT='84264b99c14cf8626ee34120fac158e64b58b7e8' INSTALL_RKE2_TYPE='server' INSTALL_RKE2_METHOD=tar sh -
  1. Start the RKE2 service
$ sudo systemctl enable --now rke2-server
or 
$ sudo systemctl enable --now rke2-agent
  1. Check the cilium image version is v1.15.1:
$ POD_NAME=$(/var/lib/rancher/rke2/bin/kubectl --kubeconfig /etc/rancher/rke2/rke2.yaml get pods -n kube-system | grep -i cilium | grep -v helm | awk '{print $1}' | head -n 1)
$/var/lib/rancher/rke2/bin/kubectl --kubeconfig /etc/rancher/rke2/rke2.yaml get pod/"${POD_NAME}" -n kube-system -o yaml | grep -i image

Validation Results:

  • rke2 version used for validation:
$ rke2 -v
rke2 version v1.26.14-rc1+rke2r1 (84264b99c14cf8626ee34120fac158e64b58b7e8)
go version go1.21.7 X:boringcrypto
$     /var/lib/rancher/rke2/bin/kubectl --kubeconfig /etc/rancher/rke2/rke2.yaml get pod/cilium-nv6tq -n kube-system -o yaml | grep -i image
  image: rancher/mirrored-cilium-cilium:v1.15.1

@aganesh-suse aganesh-suse self-assigned this Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants