This document covers in-depth custom installation and cluster operations. For a more gentle introduction to the installation process, please check out the Quickstart.
StackBlitz Enterprise is a Kubernetes application. You can install the software on an existing cluster or use our installer that has an embedded, production-ready Kubernetes distribution packaged with it.
Embedded Kubernetes Installation
If you don’t have a cluster, then our install scripts can provide one. The minimum requirements for this is 16 vCPUs, 32 GB memory, and 200 GB storage running Ubuntu LTS.
You should be able to follow the on screen instructions to port 8800 on your server to configure your instance, add additional nodes, check for updates etc.
Existing Cluster Installation
If you have an existing cluster you can run the following command from a workstation that has kubectl access to the cluster.
This will install the kots (Kubernetes off-the-shelf software) plugin on the workstation, then install the StackBlitz Enterprise Admin Console on the cluster and set up a port forward on the ClusterIP to enable you to access the admin from https://localhost:8800. From here you’ll be walked through the preflight checks, configuration and initial deployment of the application.
If you need to use your existing deployment pipeline (i.e. internal image registry, version control system), make custom configuration tweaks and/or deploy to multiple or remote environments: please see our advanced existing cluster installation instructions.
StackBlitz Enterprise has a built-in troubleshooting tool. On the admin console, click on the Troubleshoot tab, and you can download a support bundle. By default this will run through a series of prebuilt analyzers to help identify potential issues. If you’re unable to remediate the issue you can deliver the support bundle to our support team, we can help identify any problems with your StackBlitz Enterprise installation.
Automating Day-2 Operations
Leveraging an Internal Registry
Once the StackBlitz Admin Console is installed you can configure it so that StackBlitz images will be retagged and pushed to your internal registry for further scanning, etc. YAML will be rewritten so that images will be pulled from the specified internal registry at runtime.
Optionally, you can provide a Postgres server. If you choose to bring your own Postgres server, it should be at least Postgres 10.4. If you don’t bring your own, the installer will provision Postgres as a Stateful set in your cluster.
Additional tools and processes
Changing the Admin Console Deployment
To start, you’ll need to bootstrap the process by deploying our Admin Console. The admin console is where you can provide your license. The Admin Console remains running after the installation and will be the place where you can check for updates, configure the application, read release notes, generate support bundles and more. You can reopen the admin panel locally at any time by running
kubectl kots admin-console -n $NAMESPACE.
Once the admin console is running, visit https://localhost:8800 and upload your license. StackBlitz Enterprise is delivered as ready-to-run YAML, but you might need to make some changes for your specific environment. In the Admin Console, click “Config”. This will show a form where you can provide your settings. These will be written as Kubernetes secrets in the deployment manifests.
Sets the DNS hostname thats used to expose the application and its services.
Allows you to pick which database to use. By default, an embedded postgres will be used. You can also choose to provide an inline postgres or postgres via a secret.
An embedded minio is used as bucket by default. You can also provide your own s3 compatible bucket to be used.
You can also configure the bucket names to be used for turbo, bundle hydration caching and image storage.
Here you can provide the certificate to be used for domain you are hosting the app on.
Here you can define the namespace you installed the application in. For embedded installs, the default should be fine. For 'existing cluster' installs, you should provide the namespace.