The SAS Viya Platform Deployment Report generates a web-viewable summary (and JSON-formatted data file) of SAS software deployed
in a Kubernetes cluster. The report includes a list of SAS-deployed components with application resources grouped
together. Overview information is gathered about the Kubernetes cluster into which the SAS components are deployed. If
the report is run with a KUBECONFIG
capable of gathering node resources and/or pod and node metrics, they are
included in the report. Otherwise, un-retrievable information is omitted.
- The tool should be run on a machine from which the Kubernetes command-line interface,
kubectl
, can access the Kubernetes cluster. - The tool requires Python 3.6 or higher.
SAS Viya ARK tools require third-party packages be installed before use. All required packages can be installed using the provided requirements.txt
:
python3 -m pip install -r requirements.txt
Download the latest version of this tool and update required packages with every new software order.
Note: Some information may be omitted or unavailable depending on the permissions granted for the provided
KUBECONFIG
.
The following example produces both the web-viewable report and JSON-formatted data. The namespace containing your SAS
deployment can be specified by including the -n
or --namespace
option.
Note: The sas
namespace used in the example should be replaced with the namespace containing your SAS Viya platform deployment.
python3 viya-ark.py deployment-report --namespace sas
Including the -l
or --include-pod-log-snips
option yields a report with a 10-line log snippet for each pod.
Using this option increases the runtime of the command as well as the size of the resulting files.
Note: The sas
namespace used in the example should be replaced with the namespace containing your SAS Viya platform deployment.
python3 viya-ark.py deployment-report -n sas --include-pod-log-snips
Including the -r
or --include-resource-definitions
option yields a report with the JSON-formatted resource
definitions for all resources found in the deployment. Using this option increases the size of the resulting files.
Note: The sas
namespace used in the example should be replaced with the namespace containing your SAS Viya platform deployment.
python3 viya-ark.py deployment-report -n sas --include-resource-definitions
Including the -d
or --data-file-only
option yields only the JSON-formatted data file. The web-viewable HTML report
is omitted.
Note: The sas
namespace used in the example should be replaced with the namespace containing your SAS Viya platform deployment.
python3 viya-ark.py deployment-report -n sas --data-file-only
By default, the output files are written to the current working directory. Including the -o
or --output-dir
option
redirects the output files to the given location. The provided value should be an existing path and should not include
any file names.
Note: The sas
namespace used in the example should be replaced with the namespace containing your SAS Viya platform deployment.
python3 viya-ark.py deployment-report -n sas --output-dir="/path/to/report/"
The -h
or --help
option can be used to view usage information and list all options available for the report.
python3 viya-ark.py deployment-report --help
This command generates two files upon completion:
- A web-viewable, HTML report:
viya_deployment_report_<timestamp>.html
- A JSON-formatted data file:
viya_deployment_report_data_<timestamp>.json