Skip to main content

Deploy Application

This section describes the process of deploying an application on the AstroPulse platform. To deploy an application, you need to first create an application profile that provides application-related information and then deploy the application.

Application Profile

The application profile provides application-related information that can be shared with the application. It allows different permutations from the pre-selected cluster and platform based on the user's proximity to predefined regions/providers. Once the platform sets up the cluster, the changes are immutable.

Check Cluster Availability

Make sure the cluster default-cluster is available, otherwise the apply will fail. To check cluster availability, run the following command:

astroctl clusters get

For example, let's create a profile that selects the predefined cluster:

cat << EOF > application.yaml
profileName: default-profile
clusterName: default-cluster
availabilityTier: basic
EOF

Run the following command to apply the profile:

astroctl app profile apply -f profile.yaml

These commands allow you to deploy an application profile for a given organization the user is part of. Make sure you have the necessary configuration set up before running this command.

For more information on deploying applications, refer to the Application Profile Management. This guide helps you deploy an application on the Astro Pulse platform using the CLI command.

Demo Application

Here is an example of an application.yaml file that uses a Docker image to deploy the application. By default, the platform will create a DNS entry for the application, which can be accessed using the DNS name.

cat << EOF > application.yaml
name: hello-world
profileName: default-profile
source:
type: image
image:
registry: docker.io
repository: astropulse/latency
tag: v1.0.0
EOF

Run the following command to apply the application:

astroctl app apply -f application.yaml
Application Endpoint

Once the application is deployed, you can access it using the DNS name with the following bash command:

astroctl app get hello-world | grep endpoint

Open your browser and navigate to the endpoint to access the application.

This command allows you to deploy your application on the AstroPulse platform. Make sure you have the necessary configuration set up before running this command.

For more information on deploying applications, refer to the Application Management Pipeline. This guide helps you to deploy an application on the astro pulse platform using the CLI command

ProfileName immutable

Don't delete the profileName of the running application. The profileName cannot be changed for a running application.

Next Steps

Congratulations! You have successfully deployed an application on the AstroPulse platform. For the complex application deployment process, refer to the Application Management Pipeline guide or Example repository provides a more detailed guide on deploying applications on the AstroPulse platform.