wf deploy application
wf deploy application
Generates manifests for the deployment of applications to infrastructure
Synopsis
Deploys the application to the specified application environment.
Optionally, you can also generate manifests to stdout (--dry-run) or to disk (--out) without applying them.
wf deploy application [flags]
Examples
# General usage:
# Generate manifests and deploy them:
$ wf deploy application APP APPENV [-w workspace]
# Return manifests to stdout
$ wf deploy application APP APPENV --dry-run
# Save generated manifests to disk
$ wf deploy application APP APPENV --out ./PATH/TO/DIR
# Deploy only the given components
$ wf deploy application APP APPENV --only COMPONENT1 --only COMPONENT2
# Override the tag to be applied to container component images for all components:
$ wf deploy application APP APPENV --image-tag TAG
# Advanced Usage:
# Wayfinder uses Kustomize to generate manifests per-component - you can eject the kustomize
# definitions to disk if you wish to modify them and apply them yourself using kubectl apply -k
# Eject un-Kustomized manifests and kustomization.yaml overlay for the environment to stdout:
$ wf deploy application APP APPENV --eject
# Eject un-Kustomized manifests and kustomization.yaml overlay for the environment to disk:
$ wf deploy application APP APPENV --eject --out ./PATH/TO/DIR
# You can apply the ejected definition as follows (note the addition of the APPENV name at the
# end of the path):
$ kubectl apply -k ./PATH/TO/DIR/APPENV
Options
-a, --application string the application to deploy to
--component-container-image strings override the full image for a component container in the format COMPONENTNAME=CONTAINERNAME=IMAGE, can be specified multiple times for multiple components, e.g. ui=container=ghcr.io/org/project/image:v1.2.3
--component-container-tag strings override the image tag for a component container in the format COMPONENTNAME=CONTAINERNAME=TAG, can be specified multiple times for multiple components, e.g. ui=container=v1.2.5
--component-image strings override the full image for a component in the format COMPONENTNAME=IMAGE, can be specified multiple times for multiple components, e.g. ui=ghcr.io/org/project/image:v1.2.3
--component-tag strings override the image tag for a component in the format COMPONENTNAME=TAG, can be specified multiple times for multiple components, e.g. ui=v1.2.4
--deploy-role string role to assume before deploying (default unless using a access token: namespace.edit)
--dry-run outputs manifests for the application to stdout without applying them (default: false)
--eject returns base manifests, kustomize.yaml, and patches (default: false)
-e, --env string the environment to deploy to
--force force override in the case of ownership conflicts when patching resources on deployment (default: false)
-h, --help help for application
-t, --image-tag string tag for all container component images - shortcut for specifying --component-tag COMPONENTNAME=TAG for all components
--no-role deploys without first assuming a deployment role (default if using a access token, unless --deploy-role specified)
--only strings return only the specified components from the command
-O, --out string the dir to output to
-p, --path string the dir to output to (deprecated: use --out or -O)
--remove removes the objects represented by this application from the environment (default: false)
--wait-for-ready duration Wait for up to the supplied duration for all resources to have a ready status after applying, e.g. 30s
Options inherited from parent commands
--debug Debug / trace logging (default: false)
--no-wait Do not wait for resources to provision
-o, --output string Output format of the resource (json,yaml,table) (default "table")
--profile string Use a profile other than your current - to change current: wf use profile NAME
--show-headers Display headers on table out (default true)
--verbose Verbose logging (default: false)
-w, --workspace string Workspace to use - to change default: wf use workspace NAME
SEE ALSO
- wf deploy - Deploys a resource to Wayfinder