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

How do you find the swat.CAS connection host? #243

Closed Akky7 closed 2 years ago

Akky7 commented 2 years ago

How do you find the host for CAS? We have tried what we think it is using port 5570 for SWAT but it doesn't work.

conn = swat.CAS(host, port, username, password)

thpang commented 2 years ago

You would need to provide more context here; however, this repo simply deploys the SAS software into the cluster. You may want to look at the config map area and see if the CAS software is storing away information there it may be using. If possible look through the SAS documentation on the usage of SWAT for Viya 4.

Akky7 commented 2 years ago

We are following https://sassoftware.github.io/python-swat/getting-started.html and at the step:

In [1]: import swat In [2]: conn = swat.CAS(host, port, username, password)

And we need to know how to get the host details for this - conn = swat.CAS(host, port, username, password).

thpang commented 2 years ago

First thing you'll need to do is read the CAS documentation on how to open up the API endpoint in the cluster. Once you've done that you'll then have the information needed. This may be the best place to start.

thpang commented 2 years ago

If you look here you'll also see the V4_CFG_CAS_ENABLE_LOADBALANCER entry. This item does create an external endpoint which would be your host and port if that's no documented on the SAS side of things.