Products | Versions |
---|---|
Spotfire Server | 12.4.0 and later |
This article assumes you have followed the instructions at..
https://support.tibco.com/s/article/Spotfire-Cloud-Deployment-Kit-with-Minikube-Quick-Start-Guide
..to get a basic Spotfire Server up and running in a local Minikube Kubernetes cluster.
Follow the steps below to make this server accessible via the secure HTTPS protocol. In this case, the Minikube Ingress addon is used.
$ sudo dnf -y install nss-tools $ curl -JLO "https://dl.filippo.io/mkcert/latest?for=linux/amd64" $ chmod +x mkcert-v*-linux-amd64 $ sudo cp mkcert-v*-linux-amd64 /usr/local/bin/mkcert
$ mkcert mymachine.company.com
$ kubectl -n kube-system create secret tls mymachine --key mymachine.company.com-key.pem --cert mymachine.company.com.pem
$ minikube addons configure ingress (enter: kube-system/mymachine) $ minikube addons enable ingress
$ helm upgrade tss1240remotedb . \ --set acceptEUA=true \ --set global.spotfire.image.pullPolicy="Never" \ --set database.bootstrap.databaseUrl="jdbc:postgresql://vanilla-tssdb-postgresql.default.svc.cluster.local/" \ --set database.create-db.databaseUrl="jdbc:postgresql://vanilla-tssdb-postgresql.default.svc.cluster.local/" \ --set database.create-db.adminUsername="postgres" \ --set database.create-db.adminPassword="$POSTGRES_PASSWORD" \ --set database.create-db.enabled=true \ --set configuration.site.publicAddress="https://mymachine.company.com:4443" \ --set ingress.enabled="true" \ --set ingress.hosts[0].host="mymachine.company.com" \ --set haproxy.service.type="LoadBalancer" \ --set ingress.tls[0].hosts[0]="mymachine.company.com" \ --set ingress.tls[0].secretName="mymachine"
$ kubectl get ing NAME CLASS HOSTS ADDRESS PORTS AGE tss1240remotedb-spotfire-server nginx mymachine.company.com 192.168.49.2 80, 443 112s
$ kubectl port-forward --address 0.0.0.0 deployment/ingress-nginx-controller 4443:443 --namespace ingress-nginx