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.27] Validate kube-cloud-controller-manager-arg new arg pulled in from k3s #4948

Closed
rancher-max opened this issue Oct 23, 2023 · 2 comments
Assignees

Comments

@rancher-max
Copy link
Contributor

Backport #4947

@fmoral2
Copy link
Contributor

fmoral2 commented Oct 25, 2023

Validated on Version:

-$ rke2 version v1.27.7-rc2+rke2r1 (5fdc8d79f890391e6ce3485a5b92fa4925398210)

Environment Details

Infrastructure
Cloud EC2 instance

Node(s) CPU architecture, OS, and Version:
PRETTY_NAME="Ubuntu 22.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"

Cluster Configuration:
2 node servers

Steps to validate the fix

  1. Install rke2 with cloud controller manager args
  2. Validate if applied
  3. Check the logs
  4. Validate nodes and pods are up and ok

Validation Results:


$ rke2 -v

rke2 version v1.27.7-rc2+rke2r1 (5fdc8d79f890391e6ce3485a5b92fa4925398210)
go version go1.20.10 X:boringcrypto

$ cat /etc/rancher/rke2/config.yaml
write-kubeconfig-mode: "0644"
tls-san:
  - fake.fqdn.value
node-name: ip-172-31-15-209.us-east-2.compute.internal
kube-cloud-controller-manager-arg:
  - allocate-node-cidrs=true
  - authentication-kubeconfig=/var/lib/rancher/rke2/server/cred/cloud-controller.kubeconfig
  - authorization-kubeconfig=/var/lib/rancher/rke2/server/cred/cloud-controller.kubeconfig
  - bind-address=127.0.0.1
  - cloud-config=/var/lib/rancher/rke2/server/etc/cloud-config.yaml
  - cloud-provider=rke2
  - cluster-cidr=10.42.0.0/24
  - configure-cloud-routes=true
  - controllers=*,-route,-service
  - feature-gates=CloudDualStackNodeIPs=true
  - kubeconfig=/var/lib/rancher/rke2/server/cred/cloud-controller.kubeconfig
  - leader-elect-resource-name=rke2-cloud-controller-manager
node-external-ip: 52.14.84.120


$ sudo journalctl -xeu rke2-server.service | grep 'Running cloud'

Oct 25 15:43:25 ip-172-31-15-209 rke2[1770]: time="2023-10-25T15:43:25Z" level=info msg="Running cloud-controller-manager --allocate-node-cidrs=true --authentication-kubeconfig=/var/lib/rancher/rke2/server/cred/cloud-controller.kubeconfig --authorization-kubeconfig=/var/lib/rancher/rke2/server/cred/cloud-controller.kubeconfig --bind-address=127.0.0.1 --cloud-config=/var/lib/rancher/rke2/server/etc/cloud-config.yaml --cloud-provider=rke2 --cluster-cidr=10.42.0.0/24 --configure-cloud-routes=true --controllers=*,-route,-service --feature-gates=CloudDualStackNodeIPs=true --kubeconfig=/var/lib/rancher/rke2/server/cred/cloud-controller.kubeconfig --leader-elect-resource-name=rke2-cloud-controller-manager --node-status-update-frequency=1m0s --profiling=false" 




$ k get nodes 
NAME                                          STATUS     ROLES                       AGE     VERSION
ip-172-31-13-29.us-east-2.compute.internal    Ready   <none>                      24s     v1.27.7+rke2r1
ip-172-31-15-209.us-east-2.compute.internal   Ready      control-plane,etcd,master   6m54s   v1.27.7+rke2r1





@fmoral2 fmoral2 closed this as completed Oct 25, 2023
@fmoral2
Copy link
Contributor

fmoral2 commented Oct 26, 2023

Validated on Version:

-$ rke2 version v1.27.7-rc2+rke2r1 (5fdc8d79f890391e6ce3485a5b92fa4925398210)

Environment Details

Infrastructure
Cloud EC2 instance

Node(s) CPU architecture, OS, and Version:
PRETTY_NAME="Ubuntu 22.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"

Cluster Configuration:
2 node servers

Steps to validate the fix

  1. Install rke2 with cloud controller manager args
  2. Validate if applied
  3. Check the logs
  4. Validate nodes and pods are up and ok

Validation Results:


$ rke2 -v

rke2 version v1.27.7-rc2+rke2r1 (5fdc8d79f890391e6ce3485a5b92fa4925398210)
go version go1.20.10 X:boringcrypto

$ cat /etc/rancher/rke2/config.yaml
write-kubeconfig-mode: "0644"
tls-san:
  - fake.fqdn.value
node-name: ip-172-31-15-209.us-east-2.compute.internal
kube-cloud-controller-manager-arg:
  - allocate-node-cidrs=true
  - authentication-kubeconfig=/var/lib/rancher/rke2/server/cred/cloud-controller.kubeconfig
  - authorization-kubeconfig=/var/lib/rancher/rke2/server/cred/cloud-controller.kubeconfig
  - bind-address=127.0.0.1
  - cloud-config=/var/lib/rancher/rke2/server/etc/cloud-config.yaml
  - cloud-provider=rke2
  - cluster-cidr=10.42.0.0/24
  - configure-cloud-routes=true
  - controllers=*,-route,-service
  - feature-gates=CloudDualStackNodeIPs=true
  - kubeconfig=/var/lib/rancher/rke2/server/cred/cloud-controller.kubeconfig
  - leader-elect-resource-name=rke2-cloud-controller-manager
node-external-ip: 52.14.84.120


$ sudo journalctl -xeu rke2-server.service | grep 'Running cloud'

Oct 25 15:43:25 ip-172-31-15-209 rke2[1770]: time="2023-10-25T15:43:25Z" level=info msg="Running cloud-controller-manager --allocate-node-cidrs=true --authentication-kubeconfig=/var/lib/rancher/rke2/server/cred/cloud-controller.kubeconfig --authorization-kubeconfig=/var/lib/rancher/rke2/server/cred/cloud-controller.kubeconfig --bind-address=127.0.0.1 --cloud-config=/var/lib/rancher/rke2/server/etc/cloud-config.yaml --cloud-provider=rke2 --cluster-cidr=10.42.0.0/24 --configure-cloud-routes=true --controllers=*,-route,-service --feature-gates=CloudDualStackNodeIPs=true --kubeconfig=/var/lib/rancher/rke2/server/cred/cloud-controller.kubeconfig --leader-elect-resource-name=rke2-cloud-controller-manager --node-status-update-frequency=1m0s --profiling=false" 




$ k get nodes 
NAME                                          STATUS     ROLES                       AGE     VERSION
ip-172-31-13-29.us-east-2.compute.internal    Ready   <none>                      24s     v1.27.7+rke2r1
ip-172-31-15-209.us-east-2.compute.internal   Ready      control-plane,etcd,master   6m54s   v1.27.7+rke2r1





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