Products | Versions |
---|---|
Spotfire Server | 12.4.0 and higher |
When using the Cloud Deployment Kit for Spotfire to deploy Spotfire using containers and Helm charts on a Kubernetes cluster, the default helm charts will create a new database by default. Follow the steps shown below to deploy a new Spotfire Server in a Kubernetes cluster using an existing on-premise database instead.
In this example, the existing on-premise database was initialized on a Windows machine using the 'create_databases.bat' script, which is provided with the Spotfire Server installation kit.
PGHOST: dbhost.company.com PGPORT: 5432 DBSERVER_ADMIN_USERNAME: postgres DBSERVER_ADMIN_PASSWORD: ******** SPOTFIREDB_DBNAME: kubtss SPOTFIREDB_USERNAME: kubsfdbuser SPOTFIREDB_PASSWORD: ******* PSQL_PATH: C:\postgres\15\bin
$ export SF_DB_URL=jdbc:postgresql://dbhost.company.com:5432/kubtss $ export SF_DB_USER=kubsfdbuser $ export SF_DB_PASSWORD=********* $ helm install tss1240existingdb . \ --set acceptEUA=true \ --set global.spotfire.image.registry="localhost:5000" \ --set global.spotfire.image.pullPolicy="Always" \ --set database.bootstrap.databaseUrl="$SF_DB_URL" \ --set database.bootstrap.username="$SF_DB_USER" \ --set database.bootstrap.password="$SF_DB_PASSWORD" \ --set database.create-db.enabled=false \ --set configuration.site.publicAddress="http://localhost"