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.
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:
This transformer is only applicable for deployments that are managed by the SAS Viya deployment operator
This transformer was introduced in LTS 2021.2, so supported releases before this should not use this transformer
The new config variable V4_CFG_CAS_ENABLE_AUTO_RESTART will be used to control whether or not the user wants this transformer. (Default true, Only works with DO enabled in valid cadences)
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
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:
V4_CFG_CAS_ENABLE_AUTO_RESTART
will be used to control whether or not the user wants this transformer. (Default true, Only works with DO enabled in valid cadences)See the SAS Viya Platform Operations documentation for additional information.
Tests
See internal ticket for additional details