mirror of https://github.com/hashicorp/consul
backport of commit 58b23a5515
(#16048)
Co-authored-by: Jared Kirschner <85913323+jkirschner-hashicorp@users.noreply.github.com>pull/16076/head
parent
e076fbb8f5
commit
9d2b958093
|
@ -60,14 +60,14 @@ spec:
|
||||||
<Tab heading="Consul OSS">
|
<Tab heading="Consul OSS">
|
||||||
|
|
||||||
Set default connection limits and mesh gateway mode across all upstreams
|
Set default connection limits and mesh gateway mode across all upstreams
|
||||||
of "counting", and also override the mesh gateway mode used when dialing
|
of "dashboard", and also override the mesh gateway mode used when dialing
|
||||||
the "dashboard" service.
|
its upstream "counting" service.
|
||||||
|
|
||||||
<CodeTabs tabs={[ "HCL", "Kubernetes YAML", "JSON" ]}>
|
<CodeTabs tabs={[ "HCL", "Kubernetes YAML", "JSON" ]}>
|
||||||
|
|
||||||
```hcl
|
```hcl
|
||||||
Kind = "service-defaults"
|
Kind = "service-defaults"
|
||||||
Name = "counting"
|
Name = "dashboard"
|
||||||
|
|
||||||
UpstreamConfig = {
|
UpstreamConfig = {
|
||||||
Defaults = {
|
Defaults = {
|
||||||
|
@ -83,7 +83,7 @@ UpstreamConfig = {
|
||||||
|
|
||||||
Overrides = [
|
Overrides = [
|
||||||
{
|
{
|
||||||
Name = "dashboard"
|
Name = "counting"
|
||||||
MeshGateway = {
|
MeshGateway = {
|
||||||
Mode = "remote"
|
Mode = "remote"
|
||||||
}
|
}
|
||||||
|
@ -96,7 +96,7 @@ UpstreamConfig = {
|
||||||
apiVersion: consul.hashicorp.com/v1alpha1
|
apiVersion: consul.hashicorp.com/v1alpha1
|
||||||
kind: ServiceDefaults
|
kind: ServiceDefaults
|
||||||
metadata:
|
metadata:
|
||||||
name: counting
|
name: dashboard
|
||||||
spec:
|
spec:
|
||||||
upstreamConfig:
|
upstreamConfig:
|
||||||
defaults:
|
defaults:
|
||||||
|
@ -107,7 +107,7 @@ spec:
|
||||||
maxPendingRequests: 512
|
maxPendingRequests: 512
|
||||||
maxConcurrentRequests: 512
|
maxConcurrentRequests: 512
|
||||||
overrides:
|
overrides:
|
||||||
- name: dashboard
|
- name: counting
|
||||||
meshGateway:
|
meshGateway:
|
||||||
mode: remote
|
mode: remote
|
||||||
```
|
```
|
||||||
|
@ -115,7 +115,7 @@ spec:
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"Kind": "service-defaults",
|
"Kind": "service-defaults",
|
||||||
"Name": "counting",
|
"Name": "dashboard",
|
||||||
"UpstreamConfig": {
|
"UpstreamConfig": {
|
||||||
"Defaults": {
|
"Defaults": {
|
||||||
"MeshGateway": {
|
"MeshGateway": {
|
||||||
|
@ -129,7 +129,7 @@ spec:
|
||||||
},
|
},
|
||||||
"Overrides": [
|
"Overrides": [
|
||||||
{
|
{
|
||||||
"Name": "dashboard",
|
"Name": "counting",
|
||||||
"MeshGateway": {
|
"MeshGateway": {
|
||||||
"Mode": "remote"
|
"Mode": "remote"
|
||||||
}
|
}
|
||||||
|
@ -145,14 +145,15 @@ spec:
|
||||||
<Tab heading="Consul Enterprise">
|
<Tab heading="Consul Enterprise">
|
||||||
|
|
||||||
Set default connection limits and mesh gateway mode across all upstreams
|
Set default connection limits and mesh gateway mode across all upstreams
|
||||||
of "counting" and also override the mesh gateway mode used when dialing
|
of "dashboard" in the "product" namespace,
|
||||||
the "dashboard" service in the "frontend" namespace.
|
and also override the mesh gateway mode used when dialing
|
||||||
|
its upstream "counting" service in the "backend" namespace.
|
||||||
|
|
||||||
<CodeTabs tabs={[ "HCL", "Kubernetes YAML", "JSON" ]}>
|
<CodeTabs tabs={[ "HCL", "Kubernetes YAML", "JSON" ]}>
|
||||||
|
|
||||||
```hcl
|
```hcl
|
||||||
Kind = "service-defaults"
|
Kind = "service-defaults"
|
||||||
Name = "counting"
|
Name = "dashboard"
|
||||||
Namespace = "product"
|
Namespace = "product"
|
||||||
|
|
||||||
UpstreamConfig = {
|
UpstreamConfig = {
|
||||||
|
@ -169,8 +170,8 @@ UpstreamConfig = {
|
||||||
|
|
||||||
Overrides = [
|
Overrides = [
|
||||||
{
|
{
|
||||||
Name = "dashboard"
|
Name = "counting"
|
||||||
Namespace = "frontend"
|
Namespace = "backend"
|
||||||
MeshGateway = {
|
MeshGateway = {
|
||||||
Mode = "remote"
|
Mode = "remote"
|
||||||
}
|
}
|
||||||
|
@ -183,7 +184,7 @@ UpstreamConfig = {
|
||||||
apiVersion: consul.hashicorp.com/v1alpha1
|
apiVersion: consul.hashicorp.com/v1alpha1
|
||||||
kind: ServiceDefaults
|
kind: ServiceDefaults
|
||||||
metadata:
|
metadata:
|
||||||
name: counting
|
name: dashboard
|
||||||
namespace: product
|
namespace: product
|
||||||
spec:
|
spec:
|
||||||
upstreamConfig:
|
upstreamConfig:
|
||||||
|
@ -195,8 +196,8 @@ spec:
|
||||||
maxPendingRequests: 512
|
maxPendingRequests: 512
|
||||||
maxConcurrentRequests: 512
|
maxConcurrentRequests: 512
|
||||||
overrides:
|
overrides:
|
||||||
- name: dashboard
|
- name: counting
|
||||||
namespace: frontend
|
namespace: backend
|
||||||
meshGateway:
|
meshGateway:
|
||||||
mode: remote
|
mode: remote
|
||||||
```
|
```
|
||||||
|
@ -204,7 +205,7 @@ spec:
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"Kind": "service-defaults",
|
"Kind": "service-defaults",
|
||||||
"Name": "counting",
|
"Name": "dashboard",
|
||||||
"Namespace": "product",
|
"Namespace": "product",
|
||||||
"UpstreamConfig": {
|
"UpstreamConfig": {
|
||||||
"Defaults": {
|
"Defaults": {
|
||||||
|
@ -219,8 +220,8 @@ spec:
|
||||||
},
|
},
|
||||||
"Overrides": [
|
"Overrides": [
|
||||||
{
|
{
|
||||||
"Name": "dashboard",
|
"Name": "counting",
|
||||||
"Namespace": "frontend",
|
"Namespace": "backend",
|
||||||
"MeshGateway": {
|
"MeshGateway": {
|
||||||
"Mode": "remote"
|
"Mode": "remote"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue