forked from carvel-dev/kapp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
46081ca
commit dc3d7f2
Showing
3 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
## Cheatsheet | ||
|
||
- `kapp deploy -a app1 -f config/ -c` | ||
- Deploy app named `app1` with configuration from `config/` | ||
|
||
- `ytt -f config/ | kapp deploy -a app1 -f- -c -y` | ||
- Deploy app named `app1` with configuration piped in | ||
|
||
- `kapp deploy -a app1 -f config/ -c --diff-context=10` | ||
- Show more diff context when reviewing changes during deploy | ||
|
||
- `kapp deploy -a app1 -f config/ --diff-run` | ||
- Show diff and exit successfully (without applying any changes) | ||
|
||
- `kapp deploy -a app1 -f config/ --logs-all` | ||
- Show logs from all app `Pods` throughout deploy | ||
|
||
- `kapp deploy -a app1 -f config/ --into-ns app1-ns` | ||
- Rewrite all resources to specify `app1-ns` namespace | ||
|
||
- `kapp inspect -a 'label:'` | ||
- Show all resources in the cluster | ||
|
||
- `kapp inspect -a 'label:tier=web'` | ||
- Show all resources labeled `tier=web` in the cluster | ||
|
||
- `kapp inspect -a 'label:!kapp.k14s.io/app' --filter-kind Deployment` | ||
- Show all `Deployment` resources in the cluster **not** managed by kapp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters