Skip to main content

Application Profile Resource

The Astro platform utilizes application profile resources as runtime blueprints for deploying and running applications. These profiles abstract the runtime configuration, ensuring that the application resources remain independent of choices such as secret providers and cluster selection. As organization-level resources, profiles require meticulous configuration due to their substantial impact on running applications. The platform incorporates validation mechanisms to detect and rectify any potential mistakes.

Application Profile

These profiles contain:

  • Profile Name: Follows DNS naming conventions.

  • Cluster Selection:
    • Cluster Name: Specifies a pre-selected cluster. This field is immutable once selected.

      Find Cluster
      astroctl clusters list
    • Cloud Provider: Defines provider and region for intelligent cluster selection. This field is immutable once selected.

      Supported Cloud Provider

      astroctl providers list

      Supported Region
      AWS
      astroctl providers regions list  -p aws 
      GCP
      astroctl providers regions list  -p gcp
    • Automatic selection based on user proximity if neither is specified. This field is immutable once selected

  • Resources (Memory): Configures memory allocation.

    info

    Only availabile if application resource manifest uses source type image

  • Availability Tier: Different tiers for application deployment.

    Availability Tiers

    Only available if the application resource manifest uses the source type image.

    astroctl availability tiers
    astroctl availability tiers basic -ojson

Changes to a profile automatically apply to all associated applications, ensuring consistent, up-to-date configurations across the organization. This approach streamlines deployment processes, maintains consistency, and enables quick adaptation to changing infrastructure requirements.

Manifest Example

This section provides various examples of application profile resources. Please choose the relevant example based on your requirements.

Examples

Pre Select Cluster

The file name is dev-profile.yaml and it contains the following content:

profileName: dev-profile
clusterName: dev-stack-aws.k8s.local # change as required

Deploy

astroctl app profile apply -f dev-profile.yaml

Specific Cloud Provider

The file name is gcp-us-west2-profile.yaml and it contains the following content:

profileName: gcp-us-west2-profile
cloudProvider:
provider: gcp
region: us-west2

Deploy

astroctl app profile apply -f gcp-us-west2-profile.yaml

Platform Selected

The file name is astro-platform-profile.yaml and it contains the following content:

profileName: astro-platform-profile

Deploy

astroctl app profile apply -f gcp-us-west2-profile.yaml

Deploy

The CLI supports different subcommands to manage the application profile resource.

astroctl CLI
astroctl app profile apply -f applicaiton.yaml

or

Check the CLI doc for more information

Delete

You can delete a profile in your own organization. If you are added to the organization, you need to ask the admin of that organization to delete it or you need to have an admin role to delete.

API

More information about the API can be found here.

PROFILE DELETION

Deleting the profile resource will have an impact on the running applications that rely on it.