March 2020
Intermediate to advanced
626 pages
14h 45m
English
Take a look at the following configuration, which is used to define protocol and gateway defaults for an existing service. These are identified through Name:
Kind = "service-defaults"Name = "web"Protocol = "http"MeshGateway = { mode = "local"}
The preceding configuration is valid for both Kubernetes and non-Kubernetes environments. It is created automatically through the consul-connect-inject-init init-container when a Consul sidecar Envoy proxy is injected when a deployment is created. The following is an example of this:
Init Containers: consul-connect-inject-init:... # Create the central config's service registration cat <<EOF >/consul/connect-inject/central-config.hcl kind = "service-defaults" name = "web" protocol = ...
Read now
Unlock full access