mirror of https://github.com/hashicorp/consul
Move consul resource page + redirect
parent
dd833d9a36
commit
96acee81eb
|
@ -9,9 +9,11 @@ description: >-
|
|||
|
||||
Command: `consul resource`
|
||||
|
||||
Use the `resource` command to apply, list, read, and delete resources when interacting with Consul's v2 catalog through the command line. For more information, refer to [v2 catalog API](/consul/docs/concept/catalog/v2).
|
||||
<Note>
|
||||
You must enable the [v2 catalog API](/consul/docs/concept/catalog/v2) to use this command.
|
||||
</Note>
|
||||
|
||||
The `consul resource` command has usage limitations in Consul v1.17.0. The CLI does not accept the partition and namespace arguments, but the v2 catalog outputs this information when you add the `read` or `list` subcommand. In addition, do not use the `apply` and `delete` commands with Consul on Kubernetes in this release. Use the `kubectl` command to apply or delete resources instead. Refer to [configure multi-port services](/consul/docs/k8s/multiport/configure) for an example of the workflow to apply resources.
|
||||
Use the `resource` command to apply, list, read, and delete resources when interacting with Consul's v2 catalog through the command line. For more information, refer to [v2 catalog API](/consul/docs/concept/catalog/v2).
|
||||
|
||||
## Usage
|
||||
|
||||
|
@ -28,8 +30,6 @@ Subcommands:
|
|||
read Read resource information
|
||||
```
|
||||
|
||||
On Kubernetes deployments, you must use a `kubectl exec` command to open a shell to the Consul server's container before you can run this Consul CLI command.
|
||||
|
||||
## Subcommands
|
||||
|
||||
You can issue the following subcommands with the `consul resource` command.
|
|
@ -494,6 +494,10 @@
|
|||
"title": "reload",
|
||||
"path": "reload"
|
||||
},
|
||||
{
|
||||
"title": "resource",
|
||||
"path": "resource"
|
||||
},
|
||||
{
|
||||
"title": "rtt",
|
||||
"path": "rtt"
|
||||
|
|
|
@ -1557,10 +1557,6 @@
|
|||
{
|
||||
"title": "Reference",
|
||||
"routes": [
|
||||
{
|
||||
"title": "Consul resource command",
|
||||
"path": "k8s/multiport/reference/resource-command"
|
||||
},
|
||||
{
|
||||
"title": "GRPCRoute resource",
|
||||
"path": "k8s/multiport/reference/grpcroute"
|
||||
|
|
|
@ -212,4 +212,14 @@ module.exports = [
|
|||
destination: '/consul/docs/v1.8.x/agent/config-entries/:slug',
|
||||
permanent: true,
|
||||
},
|
||||
{
|
||||
source: '/consul/docs/k8s/multiport/reference/resource-command/:slug',
|
||||
destination: '/consul/commands/resource/:slug',
|
||||
permanent: true,
|
||||
},
|
||||
{
|
||||
source: '/consul/commands/:version(v1\.(?:8|9|10|11|12|13|14|15|16|17)\.x)/resource/:slug*',
|
||||
destination: '/consul/docs/:version/k8s/multiport/reference/resource-command/:slug',
|
||||
permanent: true
|
||||
},
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue