docs: ExportedServices YAML correction (#11883)

* docs: ExportedServices YAML correction

* Add enterprise alert to CRD index
This commit is contained in:
David Yu 2021-12-17 11:29:10 -08:00 committed by GitHub
parent f19695ccc2
commit e1d32b6a9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 21 deletions

View File

@ -6,7 +6,9 @@ description: >-
Settings in this configuration entry can apply to services in any namespace of the specified partition. Write access to the mesh resource is required.
---
# Exported Services <EnterpriseAlert inline />
# Exported Services
<EnterpriseAlert />
This topic describes the `exported-services` configuration entry type. The `exported-services` configuration entry enables Consul to export service instances to other admin partitions from a single file. This enables your services to be networked across admin partitions. See [Admin Partitions](/docs/enterprise/admin-partitions) for additional information.
@ -61,13 +63,14 @@ Services = [
```yaml
apiVersion: consul.hashicorp.com/v1alpha1
Kind: ExportedServices
Partition: <partition containing services to export>
Name: <partition containing services to export>
Services:
- Consumers:
- Partition: <name of the partition that will dial the exported service>
Name: <name of service to export>
Namespace: <namespace in the partition containing the service to export>
metadata:
name: <partition containing services to export>
spec:
services:
- name: <name of service to export>
namespace: <namespace in the partition containing the service to export>
consumers:
- partition: <name of the partition that will dial the exported service>
```
</CodeBlockConfig>
<CodeBlockConfig>
@ -152,19 +155,21 @@ Services = [
<CodeBlockConfig>
```yaml
apiVersion: consul.hashicorp.com/v1alpha1
Kind: ExportedServices
Partition: finance
Name: finance
Services:
- Consumers:
- Partition: frontend
- Partition: backend
Name: billing
Namespace: default
- Consumers:
- Partition: monitoring
Name: '*'
Namespace: '*'
metadata:
name: finance
spec:
services:
- name: mesh-gateway
namespace: default
consumers:
- partition: default
- name: billing
namespace: default
consumers:
- partition: frontend
- partition: backend
```
</CodeBlockConfig>

View File

@ -23,7 +23,7 @@ via Kubernetes Custom Resources. Configuration entries provide cluster-wide defa
You can specify the following values in the `kind` field. Click on a configuration entry to view its documentation:
- [`Mesh`](/docs/connect/config-entries/mesh) (requires Consul 1.10.0+)
- [`ExportedServices`](/docs/connect/config-entries/exported-services)
- [`ExportedServices`](/docs/connect/config-entries/exported-services) <EnterpriseAlert inline />
- [`ProxyDefaults`](/docs/connect/config-entries/proxy-defaults)
- [`ServiceDefaults`](/docs/connect/config-entries/service-defaults)
- [`ServiceSplitter`](/docs/connect/config-entries/service-splitter)