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
- A cluster in your organization. No cluster yet: Create cluster.
In the console
-
Open Workloads > Applications > Deploy application, or Workloads > Models > Deploy model. Enter the name and pick the Target Cluster.
-
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 -
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.
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.
A profile is fixed once used
- An application keeps its profile. Applying it with another
profileNameis 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.
apiVersion: platform.astropulse.io/v1
kind: ApplicationProfile
spec:
profileName: prod-profile
clusterName: eks-prod
availabilityTier: Standard
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
profileNameRequiredThe name applications use in profileName.
-, starting and ending with a letter or digit, at most 50 characters<cluster>-profile, then -2, -3 when that name is takenclusterNameThe cluster applications on this profile deploy to. It cannot change while applications use the profile.
availabilityTierThe tier image applications on this profile run with: replicas, autoscaling, resources and placement. Other sources ignore it.
BasicBasic The fewest resources and the lowest scheduling priority, in one zone, for development and tests.StandardStandard More memory and a higher scheduling priority than Basic, in one zone, for production.PremiumPremium 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.
Basic
cloudProviderA provider and region (provider, region) instead of a named cluster. When both are set, clusterName wins and cloudProvider is dropped.
provider: aws, gcp, azure; region: a region of that provider (astroctl cloud aws regions list)If it's refused
-, for example prod-inference.profileName from the one the application was deployed with.profileName. To move the application, delete it and deploy it again with the new profile.clusterName or cloudProvider changed while applications use it.profileName names no profile in your organization.astroctl app profile get lists the profiles. Fix the name, or create the profile first.clusterName names a cluster that does not exist. A profile is not checked against your clusters until an application deploys with it.astroctl infra k8s get, then create a profile with the right one.