mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 11:25:16 +08:00
mirrord: add page (#22401)
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
# mirrord
|
||||
|
||||
> Run code locally as if it were a pod in a Kubernetes cluster.
|
||||
> Skip the build-push-deploy cycle when shipping features or fixing bugs against real services.
|
||||
> More information: <https://metalbear.com/mirrord/docs/getting-started/quick-start#cli>.
|
||||
|
||||
- Run a local binary connected to a remote pod:
|
||||
|
||||
`mirrord exec {{[-t|--target]}} pod/{{pod_name}} -- {{command}} {{argument1 argument2 ...}}`
|
||||
|
||||
- Target a deployment in a specific namespace:
|
||||
|
||||
`mirrord exec {{[-t|--target]}} deployment/{{deployment_name}} {{[-n|--target-namespace]}} {{namespace}} -- {{command}}`
|
||||
|
||||
- Run with a configuration file:
|
||||
|
||||
`mirrord exec {{[-f|--config-file]}} {{path/to/mirrord.json}} -- {{command}}`
|
||||
|
||||
- Forward a local port to a host reachable from inside the cluster:
|
||||
|
||||
`mirrord port-forward {{[-t|--target]}} pod/{{pod_name}} --port-mapping {{local_port}}:{{remote_port}}`
|
||||
|
||||
- Print incoming TCP traffic from specific ports on a remote target:
|
||||
|
||||
`mirrord dump {{[-t|--target]}} pod/{{pod_name}} {{[-p|--ports]}} {{8080}}`
|
||||
|
||||
- Launch the interactive configuration wizard:
|
||||
|
||||
`mirrord wizard`
|
||||
|
||||
- Diagnose mirrord setup and cluster connectivity:
|
||||
|
||||
`mirrord diagnose`
|
||||
Reference in New Issue
Block a user