airshipctl/docs/source/cli/airshipctl_phase_apply.md
Kostiantyn Kalynovskyi e4adce2bcf Integrate cli-utils applier with phases.
This will also enable us to wait for kubernetes resources to reach
required state

Relates-To: #238

Change-Id: Ia2c9cebd94ca2ef5bfd9ed5830ae469e6aa6b167
2020-07-15 11:10:37 -05:00

44 lines
1.2 KiB
Markdown

## airshipctl phase apply
Apply phase to a cluster
### Synopsis
Apply specific phase to kubernetes cluster such as control-plane, workloads, initinfra
```
airshipctl phase apply PHASE_NAME [flags]
```
### Examples
```
# Apply initinfra phase to a cluster
airshipctl phase apply initinfra
```
### Options
```
--dry-run don't deliver documents to the cluster, simulate the changes instead
-h, --help help for apply
--prune if set to true, command will delete all kubernetes resources that are not defined in airship documents and have airshipit.org/deployed=apply label
--wait-timeout duration number of seconds to wait for resources to become ready, if set to 0 will not wait (default 2m0s)
```
### Options inherited from parent commands
```
--airshipconf string Path to file for airshipctl configuration. (default "$HOME/.airship/config")
--debug enable verbose output
--kubeconfig string Path to kubeconfig associated with airshipctl configuration. (default "$HOME/.airship/kubeconfig")
```
### SEE ALSO
* [airshipctl phase](airshipctl_phase.md) - Manage phases