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

Update flannel version to 0.22.2 #8218

Closed
manuelbuil opened this issue Aug 18, 2023 · 1 comment
Closed

Update flannel version to 0.22.2 #8218

manuelbuil opened this issue Aug 18, 2023 · 1 comment
Assignees
Milestone

Comments

@manuelbuil
Copy link
Contributor

Is your feature request related to a problem? Please describe.

I want to use the latest flannel

Describe the solution you'd like

Latest flannel

Describe alternatives you've considered

Additional context

@aganesh-suse
Copy link

Validated on master branch with commit 79fd746

Environment Details

Infrastructure

  • Cloud
  • Hosted

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

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

Cluster Configuration:

HA: 3 server/1 agent

Config.yaml:

token: blah
cluster-init: true
write-kubeconfig-mode: "0644"
node-label:
- k3s-upgrade=server

Additional files

Testing Steps

  1. Copy config.yaml
$ sudo mkdir -p /etc/rancher/k3s && sudo cp config.yaml /etc/rancher/k3s
  1. Install k3s
$ curl -sfL https://get.k3s.io | sudo INSTALL_K3S_COMMIT='79fd7469e5ce956d21d6ef48b1f3ce531ed92384' sh -s - server
  1. Get Flannel Version using:
/var/lib/rancher/k3s/data/current/bin/flannel -v
  1. Apply a test workload - clusterip.yaml
    Sample yaml:
apiVersion: v1
kind: Pod
metadata:
  name: clusterip-pod-demo
  labels:
    app1: clusterip-demo
    app.kubernetes.io/name: clusterip1
    app.kubernetes.io/kind: pod
    common: app
spec:
  initContainers:
  - name: init-myservice
    image: busybox:1.28
    command: ['sh', '-c', "sleep 5"]
  containers:
  - name: nginx-container
    image: nginx

Validation Results:

  • k3s version used for validation:
k3s -v
k3s version v1.27.4+k3s-79fd7469 (79fd7469)
go version go1.20.6
/var/lib/rancher/k3s/data/current/bin/flannel -v
CNI Plugin flannel version v0.22.2 (linux/amd64) commit HEAD built on 2023-08-18T09:49:26Z
CNI protocol versions supported: 0.1.0, 0.2.0, 0.3.0, 0.3.1, 0.4.0, 1.0.0

As we can see, the flannel version has been updated to v0.22.2 as expected. Marking Verified/Closed.

Server/Agent node/pod status:

$ kubectl get nodes
NAME               STATUS   ROLES                       AGE     VERSION
ip-172-31-17-55    Ready    control-plane,etcd,master   4m46s   v1.27.4+k3s-79fd7469
ip-172-31-18-55    Ready    control-plane,etcd,master   3m41s   v1.27.4+k3s-79fd7469
ip-172-31-23-124   Ready    control-plane,etcd,master   2m55s   v1.27.4+k3s-79fd7469
ip-172-31-25-20    Ready    <none>                      2m22s   v1.27.4+k3s-79fd7469
$ kubectl get pods -A
NAMESPACE     NAME                                     READY   STATUS      RESTARTS   AGE
default       clusterip-pod-demo                        1/1     Running     0          75s
default       clusterip-pod-demo-2                      1/1     Running     0          75s
default       clusterip-pod-demo-3                      1/1     Running     0          75s
kube-system   coredns-77ccd57875-pz969                 1/1     Running     0          3m54s
kube-system   helm-install-traefik-bv5ld               0/1     Completed   2          3m54s
kube-system   helm-install-traefik-crd-4lm72           0/1     Completed   0          3m54s
kube-system   local-path-provisioner-957fdf8bc-hxwln   1/1     Running     0          3m54s
kube-system   metrics-server-648b5df564-bzfjp          1/1     Running     0          3m54s
kube-system   svclb-traefik-764b3413-8569s             2/2     Running     0          3m20s
kube-system   svclb-traefik-764b3413-jg2hb             2/2     Running     0          2m55s
kube-system   svclb-traefik-764b3413-x2g7r             2/2     Running     0          2m21s
kube-system   svclb-traefik-764b3413-z7sf8             2/2     Running     0          3m20s
kube-system   traefik-64f55bb67d-gd4xf                 1/1     Running     0          3m20s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants