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.29] - rke2 ingress upgrade fails 1.31.4 -> 1.31.5 #7661

Closed
brandond opened this issue Feb 4, 2025 · 1 comment
Closed

[Release-1.29] - rke2 ingress upgrade fails 1.31.4 -> 1.31.5 #7661

brandond opened this issue Feb 4, 2025 · 1 comment
Assignees

Comments

@brandond
Copy link
Member

brandond commented Feb 4, 2025

Backport fix for rke2 ingress upgrade fails 1.31.4 -> 1.31.5

@fmoral2
Copy link
Contributor

fmoral2 commented Feb 14, 2025

Validated on Version:

-$ rke2 version v1.29.14+dev.f2d44443 (f2d4444392cbc09cc050c81a3e996828bca3e067)

Environment Details

Infrastructure
Cloud EC2 instance

Node(s) CPU architecture, OS, and Version:
NAME="SLES"
VERSION="15-SP5"
VERSION_ID="15.5"
PRETTY_NAME="SUSE Linux Enterprise Server 15 SP5"
ID="sles"
ID_LIKE="suse"

Cluster Configuration:
1 node servers

Steps to validate the fix

  1. Install rke2
  2. Ensure cluster is up
  3. Update /var/lib/rancher/rke2/server/manifests/rke2-ingress-nginx.yaml with defaultBackend.enabled: "true"
  4. Ensure helm-install-rke2-ingress-nginx-* pod is in Completed state

Validation Results:

   
   ~$ rke2 -v
rke2 version v1.29.14+dev.f2d44443 (f2d4444392cbc09cc050c81a3e996828bca3e067)
go version go1.22.12 X:boringcrypto



~$  helm list --all-namespaces | grep rke2-ingress
rke2-ingress-nginx          	kube-system	1       	2025-02-14 11:18:30.661738134 +0000 UTC	deployed	rke2-ingress-nginx-4.12.004         	1.12.0
 

update /var/lib/rancher/rke2/server/manifests/rke2-ingress-nginx.yaml with defaultBackend.enabled: "true"

 
spec:
  valuesContent: |-
    defaultBackend:
      enabled: true
      autoscaling:
        enabled: false
      image:
        repository: cerit.io/cerit/default-backend
        tag: "v1.1"
        readOnlyRootFilesystem: false
 


 
 

 /$ kubectl get pods -A | grep rke2-ingress
kube-system   helm-install-rke2-ingress-nginx-pvtbj                   0/1     Completed   0          54s
kube-system   rke2-ingress-nginx-controller-7l7dj                     1/1     Running     0          33s
kube-system   rke2-ingress-nginx-defaultbackend-66b6588745-8zv98      1/1     Running     0          45s


$ kgn
NAME               STATUS   ROLES                       AGE   VERSION
ip-   Ready    control-plane,etcd,master   54m   v1.29.14+rke2r1
ec2-user@ip-172-31-25-217:/$ kgp -A
NAMESPACE     NAME                                                    READY   STATUS      RESTARTS   AGE
kube-system   cloud-controller-manager-ip-               1/1     Running     0          54m
kube-system   etcd-ip-                                   1/1     Running     0          53m
kube-system   helm-install-rke2-canal-j4f4g                           0/1     Completed   0          54m
kube-system   helm-install-rke2-coredns-2l2hc                         0/1     Completed   0          54m
kube-system   helm-install-rke2-ingress-nginx-pvtbj                   0/1     Completed   0          108s
kube-system   helm-install-rke2-metrics-server-6sb9n                  0/1     Completed   0          54m
kube-system   helm-install-rke2-runtimeclasses-fzk6m                  0/1     Completed   0          54m
kube-system   helm-install-rke2-snapshot-controller-crd-9zv7b         0/1     Completed   0          54m
kube-system   helm-install-rke2-snapshot-controller-kbktr             0/1     Completed   0          54m
kube-system   kube-apiserver-ip-                         1/1     Running     0          54m
kube-system   kube-controller-manager-ip-                1/1     Running     0          54m
kube-system   kube-proxy-ip-                             1/1     Running     0          42m
kube-system   kube-scheduler-ip-                         1/1     Running     0          54m
kube-system   rke2-canal-269vp                                        2/2     Running     0          54m
kube-system   rke2-coredns-rke2-coredns-58664888cf-5ctwd              1/1     Running     0          54m
kube-system   rke2-coredns-rke2-coredns-autoscaler-7dfbb46d5d-l6j8l   1/1     Running     0          54m
kube-system   rke2-ingress-nginx-controller-7l7dj                     1/1     Running     0          87s
kube-system   rke2-ingress-nginx-defaultbackend-66b6588745-8zv98      1/1     Running     0          99s
kube-system   rke2-metrics-server-8599b78c6d-n7knv                    1/1     Running     0          53m
kube-system   rke2-snapshot-controller-55d765465-j7tml                1/1     Running     0          53m


    ```

@fmoral2 fmoral2 closed this as completed Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants