You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/content/docs/connect/config-entries/service-defaults.mdx
-9Lines changed: 0 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -82,7 +82,6 @@ The following outline shows how to format the service splitter configuration ent
82
82
-[`metadata`](#metadata): map | no default
83
83
-[`name`](#name): string | no default
84
84
-[`namespace`](#namespace): string | no default | <EnterpriseAlertinline />
85
-
-[`partition`](#partition): string | no default | <EnterpriseAlertinline />
86
85
-[`spec`](#spec): map | no default
87
86
-[`protocol`](#protocol): string | default: `tcp`
88
87
-[`balanceInboundConnections`](#balanceinboundconnections): string | no default
@@ -239,7 +238,6 @@ kind: ServiceDefaults
239
238
metadata:
240
239
name: <name of the service you are configuring>
241
240
namespace: <Consul Enterprise namespace>
242
-
partition: <Consul Enterprise admin partition>
243
241
spec:
244
242
protocol: tcp
245
243
balanceInboundConnnections: exact_balance
@@ -802,13 +800,6 @@ Specifies the Consul namespace that the configuration entry applies to. Refer to
802
800
- Default: `default`
803
801
- Data type: string
804
802
805
-
### `metadata.partition` <Enterprise/>
806
-
807
-
Specifies the name of the name of the Consul admin partition that the configuration entry applies to. Refer to [Consul Enterprise](/consul/docs/k8s/crds#consul-enterprise) for information about how Consul Enterprise on Kubernetes. Consul OSS distributions ignore the `metadata.partition` configuration.
808
-
809
-
- Default: `default`
810
-
- Data type: string
811
-
812
803
### `spec`
813
804
814
805
Map that contains the details about the `ServiceDefaults` configuration entry. The `apiVersion`, `kind`, and `metadata` fields are siblings of the `spec` field. All other configurations are children.
Copy file name to clipboardExpand all lines: website/content/docs/services/usage/define-services.mdx
+85-1Lines changed: 85 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ You must tell Consul about the services deployed to your network if you want the
15
15
16
16
You can define multiple services individually using `service` blocks or group multiple services into the same `services` configuration block. Refer to [Define multiple services in a single file](#define-multiple-services-in-a-single-file) for additional information.
17
17
18
-
If Consul service mesh is enabled in your network, you can use the `service-defaults` configuration entry to specify default global values for services. The configuraiton entry lets you define common service parameter, such as upstreams, namespaces, and partitions. Refer to [Define service defaults](#define-service-defaults) for additional information.
18
+
If Consul service mesh is enabled in your network, you can use the [servicedefaults configuration entry](/consul/docs/connect/config-entries/service-defaults) to specify default global values for services. The configuration entry lets you define common service parameter, such as upstreams, namespaces, and partitions. Refer to [Define service defaults](#define-service-defaults) for additional information.
19
19
20
20
## Requirements
21
21
@@ -145,6 +145,9 @@ If Consul service mesh is enabled in your network, you can define default values
145
145
146
146
Create a file for the configuration entry and specify the required fields. If you are authoring `service-defaults` in HCL or JSON, the `Kind` and `Name` fields are required. On Kubernetes, the `apiVersion`, `kind`, and `metadata.name` fields are required. Refer to [Service Defaults Reference](/consul/docs/connect/config-entries/service-defaults) for details about the configuration options.
147
147
148
+
If you use Consul Enterprise, you can also specify the `Namespace` and `Partition` fields to apply the configuration to services in specific network areas. In Kubernetes environments, For Kubernetes environments, the CRD inherits the partition from the cluster hosting the pods.
149
+
150
+
### Consul OSS example
148
151
The following example instructs services named `counting` to send up to `512` concurrent requests to a mesh gateway:
You can apply your `service-defaults` configuration entry using the [`consul config` command](/consul/commands/config) or by calling the [`/config` API endpoint](/consul/api-docs/config). In Kubernetes environments, apply the `service-defaults` custom resource definitions (CRD) to implement and manage Consul configuration entries.
0 commit comments