1. Get the management pod name by running the following command:
kubectl -n sisense get pods -l app=management -o name
2. Connect to this pod using the name from the previous output (underlined), e.g.
kubectl -n sisense exec -it pod/management-764c66fbc4-td4db -- bash
3. Import the sisense.sh script:
source /etc/sisense.sh
4. Log in to your Sisense instance with the following command (please keep in mind that the URL will be resolved via DNS, so it must be resolved correctly from this particular environment):
login_sisense https://YOUR_URL (or http://YOUR_URL:port)
5. Provide your Sys.Admin credentials on the prompt
6. As soon as you get the ‘Login succeeded’ message, you are able to run SI CLI commands
Despite the fact that we are not aware of any issues while running SI commands from the management pod, we still recommend using a dedicated Linux host as a bastion for such purpose.
https://docs.sisense.com/main/SisenseLinux/using-sisense-cli-commands.htm
Disclaimer: This post outlines a potential custom workaround for a specific use case or provides instructions regarding a specific task. The solution may not work in all scenarios or Sisense versions, so we strongly recommend testing it in your environment before deployment. If you need further assistance with this, please let us know.