Skip to main content

astroctl application apply

Apply application template by file name

Synopsis​

Deploy an application from a YAML specification file.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Application YAML format ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Terminal
apiVersion: platform.astropulse.io/v1
kind: Application
spec:
name: myapp # required: unique within org, lowercase alphanumeric/hyphens
profileName: my-profile # required: application profile (sets cluster + tier)
source:
type: Image # Image | Helm | Repository | YAML | Model
image:
repository: myrepo/myapp # required: registry user and image name
tag: v1.0.0 # required: image tag
namespace: myapp # optional: auto-generated from name if omitted
syncType: Auto # optional: Auto (default) | Manual
externalAccess: # optional: omit if the app needs no external access
domain: example.com # a Verified domain → served at myapp.example.com
# hostname: shop.example.com # OR serve at exactly this (apex or a hostname under a verified domain)
# accessType: None # explicitly internal-only
# exposure: Private # Public (internet-reachable; access policies still apply)
# or Private (only inside the cluster's network)

A LoadBalancer or gateway endpoint is a cloud load balancer, billed by the hour by your cloud provider. On AWS it is always a Network Load Balancer. exposure is omitted to take the default: Public for accessType LoadBalancer, the add-on's exposure on the Ingress and gateway paths. An Ingress endpoint follows the nginx-ingress add-on, which is one load balancer for the whole cluster; a model on the gateway can be Public or Private on its own. Changing exposure replaces the load balancer (new address, DNS follows, a brief drop); --dry-run says so first. Private endpoints still get certificates: the cert-manager add-on proves the hostname over DNS-01.

Terminal
astroctl application apply [flags]

Examples​

Terminal

# Apply from file (manifest format)
astroctl app apply -f application.yaml

# Validate without deploying (dry-run)
astroctl app apply -f application.yaml --dry-run

# Pipe YAML inline (declarative manifest)
echo 'apiVersion: platform.astropulse.io/v1
kind: Application
spec:
name: myapp
profileName: my-profile
source:
type: Image
image:
repository: myrepo/myapp
tag: v1.0.0' | astroctl app apply -f -

# Or pipe a file
cat application.yaml | astroctl app apply -f -

# Record the commit and repository the image was built from. In CI (GitHub
# Actions, GitLab CI, CircleCI, Bitbucket, Jenkins) this happens on its own.
astroctl app apply -f application.yaml --source-commit 3f2a1b2 --source-repository https://github.com/acme/payments

Options​

Terminal
--dry-run Validate the application configuration without deploying
-f, --file string The files that contain the configurations to apply. Use '-' to read from stdin.
-h, --help help for apply
--source-commit string Commit SHA this version was built from, shown in the application's history (detected automatically in CI)
--source-from-git Outside CI, take the source commit and repository from the git checkout in the current directory
--source-repository string Repository that commit belongs to, as a URL or git remote (detected automatically in CI)
-y, --yes Skip confirmation prompts

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​