sassoftware / viya4-iac-k8s

This project contains Terraform scripts to provision cloud infrastructure resources, when using vSphere, and Ansible to apply the needed elements of a Kubernetes cluster that are required to deploy SAS Viya platform product offerings.
Apache License 2.0
23 stars 15 forks source link

feat: (IAC-1269) Update K8s node reboot task to not run on non-k8s node VMs #112

Closed jarpat closed 4 months ago

jarpat commented 4 months ago

Changes

Only reboot the K8s nodes in /roles/kubernetes/common/defaults/main.yaml. Allow other nodes to stay online, allows users who run the IAC code from Jump from having their executions interrupted.

Tests

Scenario Provider K8s Version Order Cadence Notes
1 OSS v1.28.6 ** fast:2020 only K8s nodes reboot
jarpat commented 4 months ago

As long as the reboot is not needed on the other extra servers I am fine with this. What testing was done to verify that the jump, nfs, postgres server did not need rebooting?

Hey @thpang,

In my test scenario I made sure that only the machines in the correct group were rebooted and afterwards I performed a Viya deployment and made everything was still working with the new change. The DAC code was able to connect to the jump machine and set up the dirs on the RWX_FILESTORE_PATH. The Viya deployment was also able to successfully connect and make use of the Postgres Server.