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.25] Make klipper-lb image configurable #7714

Closed
brandond opened this issue Jun 8, 2023 · 1 comment
Closed

[release-1.25] Make klipper-lb image configurable #7714

brandond opened this issue Jun 8, 2023 · 1 comment
Assignees
Milestone

Comments

@brandond
Copy link
Member

brandond commented Jun 8, 2023

@VestigeJ
Copy link

Current Release running using klipper-lb v0.4.3

$ sudo INSTALL_K3S_VERSION=v1.25.10+k3s1 INSTALL_K3S_EXEC=server ./install-k3s.sh

[INFO]  Using v1.25.10+k3s1 as release
[INFO]  Downloading hash https://github.com/k3s-io/k3s/releases/download/v1.25.10+k3s1/sha256sum-amd64.txt
[INFO]  Downloading binary https://github.com/k3s-io/k3s/releases/download/v1.25.10+k3s1/k3s
[INFO]  Verifying binary download
[INFO]  Installing k3s to /usr/local/bin/k3s
[INFO]  Skipping installation of SELinux RPM
[INFO]  Creating /usr/local/bin/kubectl symlink to k3s
[INFO]  Creating /usr/local/bin/crictl symlink to k3s
[INFO]  Creating /usr/local/bin/ctr symlink to k3s
[INFO]  Creating killall script /usr/local/bin/k3s-killall.sh
[INFO]  Creating uninstall script /usr/local/bin/k3s-uninstall.sh
[INFO]  env: Creating environment file /etc/systemd/system/k3s.service.env
[INFO]  systemd: Creating service file /etc/systemd/system/k3s.service
[INFO]  systemd: Enabling k3s unit
Created symlink /etc/systemd/system/multi-user.target.wants/k3s.service → /etc/systemd/system/k3s.service.
[INFO]  systemd: Starting k3s

$ sudo /usr/local/bin/crictl -r /var/run/k3s/containerd/containerd.sock images |grep klipper-lb

I0614 22:53:06.338000   28060 util_unix.go:104] "Using this endpoint is deprecated, please consider using full URL format" endpoint="/var/run/k3s/containerd/containerd.sock" URL="unix:///var/run/k3s/containerd/containerd.sock"
docker.io/rancher/klipper-lb                 v0.4.3                 613ae033d1f9c       4.28MB

$ k3s -v

k3s version v1.25.10+k3s1 (613a3bc8)
go version go1.19.9

$ kg no,po -A

NAME                    STATUS   ROLES                       AGE    VERSION
node/ip-1-1-2-2         Ready    control-plane,etcd,master   101s   v1.25.10+k3s1

NAMESPACE     NAME                                          READY   STATUS      RESTARTS   AGE
kube-system   pod/coredns-8b9777675-fjnt5                   1/1     Running     0          85s
kube-system   pod/helm-install-traefik-crd-8hhcl            0/1     Completed   0          86s
kube-system   pod/helm-install-traefik-kbm9n                0/1     Completed   1          86s
kube-system   pod/local-path-provisioner-69dff9496c-mv6mq   1/1     Running     0          85s
kube-system   pod/metrics-server-5f9f776df5-qs42x           1/1     Running     0          85s
kube-system   pod/svclb-traefik-7d91769e-m8dqk              2/2     Running     0          69s
kube-system   pod/traefik-66fd46ccd-87npc                   1/1     Running     0          69s

For this validation i actually reverted the latest version backwards from v0.4.4 which the COMMIT installs by default back to the previous releases v0.4.3

$ curl -fL https://get.k3s.io| INSTALL_K3S_COMMIT=873fc1c77cd3453e06e31eea5652e22f81f1743b sh -s - server --kube-cloud-controller-manager-arg="cloud-config=/etc/rancher/k3s/cloud-config.yaml"

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 32312  100 32312    0     0   124k      0 --:--:-- --:--:-- --:--:--  124k
[INFO]  Using commit 873fc1c77cd3453e06e31eea5652e22f81f1743b as release
[INFO]  Downloading hash https://k3s-ci-builds.s3.amazonaws.com/k3s-873fc1c77cd3453e06e31eea5652e22f81f1743b.sha256sum
[INFO]  Skipping binary downloaded, installed k3s matches hash
[INFO]  Skipping installation of SELinux RPM
[INFO]  Skipping /usr/local/bin/kubectl symlink to k3s, already exists
[INFO]  Skipping /usr/local/bin/crictl symlink to k3s, already exists
[INFO]  Skipping /usr/local/bin/ctr symlink to k3s, already exists
[INFO]  Creating killall script /usr/local/bin/k3s-killall.sh
[INFO]  Creating uninstall script /usr/local/bin/k3s-uninstall.sh
[INFO]  env: Creating environment file /etc/systemd/system/k3s.service.env
[INFO]  systemd: Creating service file /etc/systemd/system/k3s.service
[INFO]  systemd: Enabling k3s unit
Created symlink /etc/systemd/system/multi-user.target.wants/k3s.service → /etc/systemd/system/k3s.service.
[INFO]  systemd: Starting k3s

$ kg no,po -A

NAME                    STATUS   ROLES                       AGE     VERSION
node/ip-1-1-6-143   Ready    control-plane,etcd,master   2m29s   v1.25.10+k3s-873fc1c7

NAMESPACE     NAME                                          READY   STATUS      RESTARTS   AGE
kube-system   pod/coredns-8b9777675-rlj78                   1/1     Running     0          2m15s
kube-system   pod/helm-install-traefik-b5xkb                0/1     Completed   1          2m16s
kube-system   pod/helm-install-traefik-crd-fmkpw            0/1     Completed   0          2m16s
kube-system   pod/local-path-provisioner-69dff9496c-wtf7j   1/1     Running     0          2m15s
kube-system   pod/metrics-server-854c559bd-fwwxt            0/1     Running     0          2m15s

$ sudo /usr/local/bin/crictl -r /var/run/k3s/containerd/containerd.sock images |grep klipper-lb

I0614 23:01:59.047670   27723 util_unix.go:104] "Using this endpoint is deprecated, please consider using full URL format" endpoint="/var/run/k3s/containerd/containerd.sock" URL="unix:///var/run/k3s/containerd/containerd.sock"
docker.io/rancher/klipper-lb                 v0.4.3                 613ae033d1f9c       4.28MB

$ k3s -v

k3s version v1.25.10+k3s-873fc1c7 (873fc1c7)
go version go1.19.9

$ sudo cat /etc/rancher/k3s/cloud-config.yaml

{
  "lbEnabled": true,
  "lbImage": "rancher/klipper-lb:v0.4.3",
  "lbNamespace": "kube-system",
  "nodeEnabled": true,
  "rootless": false
}

For posterity showing same commit ID installation reporting newer klipper-lb version

$ sudo INSTALL_K3S_COMMIT=873fc1c77cd3453e06e31eea5652e22f81f1743b INSTALL_K3S_EXEC=server ./install-k3s.sh

[INFO]  Using commit 873fc1c77cd3453e06e31eea5652e22f81f1743b as release
[INFO]  Downloading hash https://k3s-ci-builds.s3.amazonaws.com/k3s-873fc1c77cd3453e06e31eea5652e22f81f1743b.sha256sum
[INFO]  Downloading binary https://k3s-ci-builds.s3.amazonaws.com/k3s-873fc1c77cd3453e06e31eea5652e22f81f1743b
[INFO]  Verifying binary download
[INFO]  Installing k3s to /usr/local/bin/k3s
[INFO]  Skipping installation of SELinux RPM
[INFO]  Creating /usr/local/bin/kubectl symlink to k3s
[INFO]  Creating /usr/local/bin/crictl symlink to k3s
[INFO]  Creating /usr/local/bin/ctr symlink to k3s
[INFO]  Creating killall script /usr/local/bin/k3s-killall.sh
[INFO]  Creating uninstall script /usr/local/bin/k3s-uninstall.sh
[INFO]  env: Creating environment file /etc/systemd/system/k3s.service.env
[INFO]  systemd: Creating service file /etc/systemd/system/k3s.service
[INFO]  systemd: Enabling k3s unit
Created symlink /etc/systemd/system/multi-user.target.wants/k3s.service → /etc/systemd/system/k3s.service.
[INFO]  systemd: Starting k3s

$ sudo /usr/local/bin/crictl -r /var/run/k3s/containerd/containerd.sock images |grep klipper-lb

I0614 23:06:40.057962   31118 util_unix.go:104] "Using this endpoint is deprecated, please consider using full URL format" endpoint="/var/run/k3s/containerd/containerd.sock" URL="unix:///var/run/k3s/containerd/containerd.sock"
docker.io/rancher/klipper-lb                 v0.4.4                 af74bd845c4a8       4.92MB

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