Skip to main content

Application profiles

An application profile says where an application runs: the cluster it deploys to and, for image applications, its availability tier. Applications name a profile with profileName, so the same manifest deploys to another cluster when you point it at another profile. Every application and model needs one; the Profile step of the Deploy application wizard picks one for your cluster or creates it with a name already filled in.

Before you start​

In the console​

  1. Open Workloads > Applications > Deploy application, or Workloads > Models > Deploy model. Enter the name and pick the Target Cluster.

  2. On Profile, choose one:

    • Use Existing: pick a profile under Select a profile. Each one shows its cluster and tier. With none for this cluster, the tab says "No compatible profiles".
    • Create New: keep the Profile name filled in for you (<cluster>-profile), or type your own. The step shows "Will be configured for" and the cluster.
    Open zoom view

    The Profile step of Deploy application, creating a profile for the cluster

    The Profile step of Deploy application, creating a profile for the clusterThe Profile step of Deploy application, creating a profile for the cluster
  3. Continue to the next step. The profile is saved with the application when you deploy.

A profile created here targets the cluster you picked, with the Basic tier. To pick another tier, create the profile with astroctl (below) and select it under Use Existing.

Pick the cluster and the profile (Use Existing / Create New)

You should see​

The wizard's header shows the application, its cluster and its profile, for example payments-api · eks-prod · prod-inference, and the manifest on Review carries profileName. The next application on that cluster can pick the same profile under Use Existing.

Open zoom view

The deploy wizard's Review step: the header names the application, its cluster and its profile, and the manifest carries profileName

The deploy wizard's Review step: the header names the application, its cluster and its profile, and the manifest carries profileNameThe deploy wizard's Review step: the header names the application, its cluster and its profile, and the manifest carries profileName

A profile is fixed once used​

  • An application keeps its profile. Applying it with another profileName is refused.
  • A profile keeps its cluster while applications use it. To target other infrastructure, create a new profile.
  • A profile in use cannot be deleted. Delete the applications that use it first.

Other ways in​

  • Nova: ask it, for example "list my application profiles" or "create a profile that targets the eks-prod cluster". Deleting a profile is done in the console or with astroctl.
  • SDK and API: the same operations, in the API reference.

With astroctl​

astroctl app profile template prints an annotated starter profile, and --schema lists every field.

prod-profile.yaml
apiVersion: platform.astropulse.io/v1
kind: ApplicationProfile
spec:
profileName: prod-profile
clusterName: eks-prod
availabilityTier: Standard
Terminal
astroctl app profile apply -f prod-profile.yaml
astroctl app profile get # every profile
astroctl app profile get prod-profile # one profile
astroctl app profile tiers # the tiers installed, can be empty
astroctl app profile delete -n prod-profile

astroctl app profile tiers lists the tiers installed on the platform and your organization's custom tiers. The list can be empty; availabilityTier still takes Basic, Standard or Premium.

See the application profile CLI reference.

Settings​

Profile nameprofileNameRequired

The name applications use in profileName.

Accepts
lowercase letters, digits and -, starting and ending with a letter or digit, at most 50 characters
Default
in the console, <cluster>-profile, then -2, -3 when that name is taken
Target ClusterclusterName

The cluster applications on this profile deploy to. It cannot change while applications use the profile.

Accepts
a cluster in your organization
Default
the cluster picked in the wizard
availabilityTier

The tier image applications on this profile run with: replicas, autoscaling, resources and placement. Other sources ignore it.

Accepts
  • Basic Basic The fewest resources and the lowest scheduling priority, in one zone, for development and tests.
  • Standard Standard More memory and a higher scheduling priority than Basic, in one zone, for production.
  • Premium Premium The most resources and the highest scheduling priority, with replicas that must spread across zones and scale with load, for applications that must stay up.
Default

Basic

cloudProvider

A provider and region (provider, region) instead of a named cluster. When both are set, clusterName wins and cloudProvider is dropped.

Accepts
provider: aws, gcp, azure; region: a region of that provider (astroctl cloud aws regions list)

If it's refused​

"Profile name already exists"
Cause
Another profile in your organization has this name.
Fix
Pick it under Use Existing, or type another Profile name.
"Invalid format: only lowercase letters, numbers and hyphens allowed"
Cause
The Profile name has capitals, spaces or other characters.
Fix
Use lowercase letters, digits and -, for example prod-inference.
"Cannot update application '<app>': Profile '<profile>' cannot be changed (profiles are immutable once set)"
Cause
The manifest names a different profileName from the one the application was deployed with.
Fix
Keep the original profileName. To move the application, delete it and deploy it again with the new profile.
"Cluster targeting of application profile '<profile>' cannot be changed while it is attached (current: …, requested: …). Create a new profile to target different infrastructure"
Cause
The profile's clusterName or cloudProvider changed while applications use it.
Fix
Create a new profile for the other cluster and deploy new applications with it.
"Application profile '<profile>' is in use by <n> application(s): … Delete those applications first"
Cause
Applications still name this profile.
Fix
Delete the applications listed, then delete the profile.
"Application profile <profile> not found"
Cause
The application's profileName names no profile in your organization.
Fix
astroctl app profile get lists the profiles. Fix the name, or create the profile first.
"Cluster <cluster> was not found in this organization."
Cause
The profile's clusterName names a cluster that does not exist. A profile is not checked against your clusters until an application deploys with it.
Fix
Check the name with astroctl infra k8s get, then create a profile with the right one.

Next​