astroctl application profile apply
Apply application profile template by file name
Synopsis
Create or update an application profile from a YAML specification file.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Application profile YAML format ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Terminal
apiVersion: platform.astropulse.io/v1
kind: ApplicationProfile
spec:
profileName: my-profile # required: unique name, lowercase alphanumeric/hyphens
clusterName: my-cluster # optional: target cluster (takes precedence over cloudProvider)
cloudProvider: # optional: if omitted, nearest region is auto-selected
provider: aws # aws | gcp | azure
region: us-east-1
Re-applying an existing profile updates its tier and resource settings. Cluster targeting is immutable while the target cluster exists. Create a new profile to target different infrastructure.
Terminal
astroctl application profile apply [flags]
Examples
Terminal
# Apply from file
astroctl app profile apply -f application-profile.yaml
# Pipe YAML inline
echo 'apiVersion: platform.astropulse.io/v1
kind: ApplicationProfile
spec:
profileName: my-profile
clusterName: my-cluster' | astroctl app profile apply -f -
# Pipe from file
cat application-profile.yaml | astroctl app profile apply -f -
# Check the profile without applying it
astroctl app profile apply -f application-profile.yaml --dry-run
Options
Terminal
--dry-run Check the profile with AstroPulse without applying it
-f, --file string The files that contain the configurations to apply. Use '-' to read from stdin.
-h, --help help for apply
Options inherited from parent commands
Terminal
-n, --name string name of the application
-o, --output string Output format (table|json|yaml) (default "table")
SEE ALSO
- astroctl application profile - Manage application profile