consul_config_entry_service_defaults (Resource)

The consul_config_entry_service_defaults resource configures a service defaults config entry that contains common configuration settings for service mesh services, such as upstreams and gateways.

Example Usage

resource "consul_config_entry_service_defaults" "dashboard" {
  name = "dashboard"

  upstream_config {
    defaults = {
      mesh_gateway = {
        mode = "local"
      }

      limits = {
        max_connections         = 512
        max_pending_requests    = 512
        max_concurrent_requests = 512
      }
    }

    overrides {
      name = "counting"

      mesh_gateway {
        mode = "remote"
      }
    }
  }

}

Schema

Required

Optional

Read-Only

Nested Schema for expose

Optional:

Nested Schema for expose.paths

Optional:

Nested Schema for destination

Required:

Nested Schema for envoy_extensions

Optional:

Nested Schema for mesh_gateway

Required:

Nested Schema for transparent_proxy

Required:

Nested Schema for upstream_config

Optional:

Nested Schema for upstream_config.defaults

Optional:

Nested Schema for upstream_config.defaults.limits

Optional:

Nested Schema for upstream_config.defaults.mesh_gateway

Optional:

Nested Schema for upstream_config.defaults.passive_health_check

Optional:

Nested Schema for upstream_config.overrides

Optional:

Nested Schema for upstream_config.overrides.limits

Optional:

Nested Schema for upstream_config.overrides.mesh_gateway

Optional:

Nested Schema for upstream_config.overrides.passive_health_check

Optional: