IN-CORE / incore-helm

Helm chart to deploy the IN-CORE system in kubernetes.
0 stars 0 forks source link

Switch kuberenetes network from weave to canal in dev cluster #171

Closed ywkim312 closed 3 months ago

ywkim312 commented 3 months ago

The weave support will end so the kuberentes network should be switched to canal in tst cluster

ywkim312 commented 3 months ago

Here's the detailed step

  1. pull incore-tst, incore-dev, incore-prod cluster gitlab
  2. change directory to target cluster (under terraform directory)
  3. modify terraform.tfvars
  4. add the line network_plugin = "canal" under #Kuberentes section
  5. terraform fmt
  6. git commit -m "changed from weave to canal" terraform.tfvars
  7. git push
  8. go to https://git.ncsa.illinois.edu/kubernetes/clusters/incore-prod and check the process
  9. wait until process is done
  10. kubectl config use-context incore-*
  11. check if canal is running by kubectl get po -n kube-system
  12. kubectl -n kube-system delete daemonset/weave-net configmaps/weave-net roles/weave-net rolebindings/weave-net controllerrevisions/weave-net clusterrolebindings/weave-net clusterroles/weave-net
  13. ssh to all the nodes (work node first, then control plain node) - use somaek
  14. sudo -s
  15. apt update
  16. apt -y dist-upgrade
  17. reboot
  18. you can check by watch -n 1 kubectl get no -o wide
ywkim312 commented 3 months ago

This has been addressed