1
0
mirror of synced 2026-02-06 19:05:55 +00:00

Update flux logs examples

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
Stefan Prodan
2021-03-17 17:28:41 +02:00
committed by Hidde Beydals
parent 043d37921b
commit 185252ba48
3 changed files with 33 additions and 37 deletions

View File

@@ -85,7 +85,7 @@ Command line utility for assembling Kubernetes CD pipelines the GitOps way.
* [flux export](flux_export.md) - Export resources in YAML format
* [flux get](flux_get.md) - Get sources and resources
* [flux install](flux_install.md) - Install or upgrade Flux
* [flux logs](flux_logs.md) - Display formatted logs for toolkit components
* [flux logs](flux_logs.md) - Display formatted logs for Flux components
* [flux reconcile](flux_reconcile.md) - Reconcile sources and resources
* [flux resume](flux_resume.md) - Resume suspended resources
* [flux suspend](flux_suspend.md) - Suspend resources

View File

@@ -1,10 +1,10 @@
## flux logs
Display formatted logs for toolkit components
Display formatted logs for Flux components
### Synopsis
The logs command displays formatted logs from various toolkit components.
The logs command displays formatted logs from various Flux components.
```
flux logs [flags]
@@ -13,20 +13,17 @@ flux logs [flags]
### Examples
```
# Get logs from toolkit components
flux logs
# Print the reconciliation logs of all Flux custom resources in your cluster
flux logs --all-namespaces
# Stream logs from toolkit components
flux logs --follow
# Get logs from toolkit components in a particular namespace
flux logs --flux-namespace my-namespace
# Stream logs for a particular log level
flux logs --follow --level=error --all-namespaces
# Get logs for a particular log level
flux logs --level=info
# Filter logs by kind, name and namespace
flux logs --kind=Kustomization --name=podinfo --namespace=default
# Filter logs by kind, name, or namespace
flux logs --kind=kustomization --name podinfo --namespace default
# Print logs when Flux is installed in a different namespace than flux-system
flux logs --flux-namespace=my-namespace
```
@@ -34,8 +31,8 @@ flux logs [flags]
```
-A, --all-namespaces displays logs for objects across all namespaces
--flux-namespace string the namespace where the Flux components are running. (default "flux-system")
-f, --follow Specifies if the logs should be streamed
--flux-namespace string the namespace where the Flux components are running (default "flux-system")
-f, --follow specifies if the logs should be streamed
-h, --help help for logs
--kind string displays errors of a particular toolkit kind e.g GitRepository
--level logLevel log level, available options are: (debug, info, error)