@@ -30,21 +30,11 @@ To create an exporter and save the config locally, run the following command:
3030``` bash
3131# Creates an exporter called "testing" and saves the config
3232$ jmp admin create exporter testing --save
33+ ```
3334
34- # Usage for jmp admin create exporter
35- $ jmp admin create exporter
36- --help
37- Usage: jmp admin create exporter [OPTIONS] [NAME]
38-
39- Create an exporter object in the Kubernetes cluster
35+ ## Usage for jmp admin create exporter
4036
41- Options:
42- -s, --save Save the config file for the created exporter.
43- -o, --out FILE Specify an output file for the exporter config.
44- -n, --namespace TEXT Kubernetes namespace to use
45- --kubeconfig FILENAME path to the kubeconfig file
46- --context TEXT Kubernetes context to use
47- --help Show this message and exit.
37+ ``` {command-output} jmp admin create exporter --help
4838```
4939
5040### Edit the Exporter Config
@@ -99,24 +89,11 @@ To connect to the new exporter, a client must be created. We can also use the
9989` ` ` bash
10090# This will create a client called "hello", allow unsafe drivers, and save the config
10191$ jmp admin create client hello --save --unsafe
92+ ` ` `
10293
103- # Usage for jmp admin create client
104- jmp admin create client --help
105- Usage: jmp admin create client [OPTIONS] [NAME]
106-
107- Create a client object in the Kubernetes cluster
94+ # # Usage for jmp admin create client
10895
109- Options:
110- -s, --save Save the config file for the created client.
111- -a, --allow TEXT A comma-separated list of driver client packages to
112- load.
113- --unsafe Should all driver client packages be allowed to load
114- (UNSAFE!).
115- -o, --out FILE Specify an output file for the client config.
116- -n, --namespace TEXT Kubernetes namespace to use
117- --kubeconfig FILENAME path to the kubeconfig file
118- --context TEXT Kubernetes context to use
119- --help Show this message and exit.
96+ ` ` ` {command-output} jmp admin create client --help
12097` ` `
12198
12299# # Connect to the Exporter
@@ -130,33 +107,11 @@ Python API.
130107` ` ` bash
131108# Spawn a shell using the "hello" client
132109$ jmp shell --client hello --selector example.com/board=foo
110+ ` ` `
133111
134- # Usage for jmp shell
135- $ jmp shell --help
136- Usage: jmp shell [OPTIONS]
137-
138- Spawns a shell connecting to a local or remote exporter
112+ # # Usage for jmp shell
139113
140- Options:
141- --exporter-config PATH Path of exporter config
142- --exporter TEXT Alias of exporter config
143- --client-config PATH Path to client config
144- --client TEXT Alias of client config
145- --lease TEXT
146- -l, --selector TEXT Selector (label query) to filter on, supports '=',
147- '==', and '!=' (e.g. -l key1=value1,key2=value2).
148- Matching objects must satisfy all of the specified
149- label constraints.
150- --duration DURATION Accepted duration formats:
151-
152- PnYnMnDTnHnMnS - ISO 8601 duration format
153- HH:MM:SS - time in hours, minutes, seconds
154- D days, HH:MM:SS - time prefixed by X days
155- D d, HH:MM:SS - time prefixed by X d
156-
157- See https://docs.rs/speedate/latest/speedate/ for
158- details [default: (00:30:00)]
159- --help Show this message and exit.
114+ ` ` ` {command-output} jmp shell --help
160115` ` `
161116
162117Once a lease is acquired, we can interact with the drivers hosted by the exporter
0 commit comments