Installation Note 69657: Persist environment variables from the global settings in SAS® Event Stream Processing Studio and SAS® Event Stream Processing Manager
The Global Settings section of the Settings page for SAS Event Stream Processing Studio and SAS Event Stream Manager enables an administrator to add environment variables. These environment variables are set for every ESP server that is created by the ESP operator. The environment variables are saved in the sas-esp-operator ESPConfig custom resource. This ESPConfig custom resource is originally created during the deployment of SAS Event Stream Processing. If the deployment is redeployed due to a configuration change, patch update, or version update, then the ESPConfig custom resource is returned to its original state. In this scenario, the environment variables that were added or changed by an administrator are not persisted.
To persist environment variables after redeploying, use one of following methods:
Method 1 (For SAS® Viya® Deployments or Lightweight Deployments)
- Save the ESPConfig element for the sas-esp-operator with the updated global settings to a file in the /tmp directory:
ns=esp-viya
kubectl -n $ns get $( kubectl -n $ns get espconfigs.iot.sas.com --output=name) --output=json | jq --compact-output '[ del(.metadata.annotations["kubectl.kubernetes.io/last-applied-configuration"],.metadata.creationTimestamp,.metadata.generation,.metadata.managedFields,.metadata.resourceVersion,.metadata.uid,.status)]' | yq --output-format yaml '.[]' > /tmp/esp-config-cleaned.yaml
- Verify that the Kubernetes resources file will apply cleanly:
kubectl apply --filename=/tmp/esp-resources-cleaned.yaml --dry-run=server
- Redeploy.
- Apply Kubernetes resources from the file:
kubectl apply --filename=/tmp/esp-resources-cleaned.yaml
Method 2 (For SAS® Viya® Deployments Only)
Follow the directions in the $deploy/sas-bases/examples/sas-esp-operator/ESPConfig/README.md file to configure the environment variables during the deployment with a transformer. See Deploying with Other SAS Products for more information.
Operating System and Release Information
| SAS System | SAS Event Stream Manager | Linux for x64 | 2021.2 | 2022.1.3 | Viya | Viya |
| SAS System | SAS Event Stream Processing Engine | Linux for x64 | 2021.2 | 2022.1.3 | | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
| Type: | Installation Note |
| Priority: | medium |
| Date Modified: | 2022-11-17 08:53:57 |
| Date Created: | 2022-11-01 11:50:07 |