This tutorial will walk you through deploying your application to Critical Stack through the UI and making it accessible via a public URL.
Before we get started, you’ll need:
Login to Critical Stack. Under Data Center > Workloads select Deployments. Create a Simple Deployment in Critical Stack. Call the app name whatever you like (in this example I used
my-first-deployment). Next, point to the tagged Docker image recently pushed into the image registry (
docker.io/<your-user-name>/hello-go:0.0.1). Leave the rest of the inputs at their defaults:
Under Data Center > Workloads select Deployments and confirm that the deployment created in the previous step is Available (a non-zero number is visible in the Available column).
Under Data Center > Services and Discovery select Services. Create a Simple Service in Critical Stack.
Under Data Center > Services and Discovery select Endpoints, confirm that the service created has the just created listener configured to the port supported by the app and exposed in the Dockerfile (in this example, port 3000).
Under Data Center > Services and Discovery select Services, check the service listing and note the dynamic port and the DNS Name which was assigned to it. In this example it is port 32151 (but your port number and DNS Name will likely be different). Copy this DNS value as it is the auto-generated, publicly facing domain name.
Note it may take a few minutes for the Load Balancer to be created and for the DNS Name to be available.
Paste the DNS value copied from the previous step into a browser. This confirms that the app we have deployed onto our Critical Stack cluster is fully live and available to the public internet.
We pulled a Docker image into a Critical Stack deployment as a container instance, and accessed the application via a public URL.