sassoftware / viya4-deployment

This project contains Ansible code that creates a baseline in an existing Kubernetes environment for use with the SAS Viya Platform, generates the manifest for an order, and then can also deploy that order into the Kubernetes environment specified.
Apache License 2.0
71 stars 64 forks source link

feat: (IAC-829) Add CAS Auto Restart Option #381

Closed jarpat closed 1 year ago

jarpat commented 1 year ago

Changes

Add a configuration variable to allow users to include the cas-auto-restart.yaml transformer

The behavior when the cas-auto-restart.yaml transformer is NOT included in the kustomization.yaml is that on deployments managed by the SAS Viya deployment operator; the CAS Server pods do not get restarted when an update occurs. The SAS Viya documentation instructs the user to terminate the pods so a fresh instance will get created after the update.

With the inclusion of the cas-auto-restart.yaml transformer, during the update process performed by the SAS Viya deployment operator, the CAS Server pods will get restarted automatically and do not require user intervention.

Some notes:

See the SAS Viya Platform Operations documentation for additional information.

Tests

See internal ticket for additional details

Scenario Task V4_DEPLOYMENT_OPERATOR_ENABLED V4_CFG_CAS_ENABLE_AUTO_RESTART Provider K8s Version Deployment Method From Cadence To Cadence Notes
1 Upgrade with auto restart transformer TRUE TRUE Azure v1.23.8 Ansible 2022.12 2023.01 As expected the kustomize.yaml included the cas auto restart transformer. When I manually updated I saw that all the cas servers were restarted automatically
2 OOTB with DEPLOY:false FALSE TRUE Azure v1.23.8 Ansible 2022.12 n/a As expected the kustomize.yaml did not included the cas auto restart transformer
3 OOTB with DEPLOY:false TRUE FALSE Azure v1.23.8 Ansible 2022.12 n/a As expected the kustomize.yaml did not included the cas auto restart transformer
4 OOTB with DEPLOY:false TRUE TRUE GCP v1.21.14-gke.14600 Docker 2021.2 n/a As expected the kustomize.yaml included the cas auto restart transformer
5 OOTB with DEPLOY:false TRUE TRUE GCP v1.21.14-gke.14600 Docker 2021.1 n/a As expected the kustomize.yaml did not included the cas auto restart transformer
6 OOTB with DEPLOY:false TRUE TRUE Azure v1.23.8 Docker fast n/a As expected the kustomize.yaml included the cas auto restart transformer