BT

Facilitating the spread of knowledge and innovation in professional software development

Contribute

Topics

Choose your language

InfoQ Homepage News HashiCorp Enhances Consul with Topology Maps and Improved Kubernetes Integrations

HashiCorp Enhances Consul with Topology Maps and Improved Kubernetes Integrations

This item in japanese

Bookmarks

Hashicorp has announced the beta release of Consul 1.9, adding new features to their service mesh platform. This release includes enhancements to the intentions model to support Layer 7 constructs, new visualizations for verifying configurations, and custom resources for Kubernetes.

With the introduction of application-aware intentions, policies can now be constructed to support Layer 7 interactions. This includes support to allow or disallow service communication based on HTTP request headers and URL paths. In previous versions, intentions only had support for L4 interactions. It is now possible to mix both L4 and L7 into a single intention declaration:

Kind = "service-intentions"
Name = "api"
Sources = [
  {
    Name   = "hackathon-project"
    Action = "deny"
  },
  {
    Name   = "web"
    Action = "allow"
  },
  {
    Name = "nightly-reconciler"
    Permissions = [
      {
        Action = "allow"
        HTTP {
          PathExact = "/v1/reconcile-data"
          Methods   = ["POST"]
        }
      }
    ]
  }
]

The above example defines intentions for a common destination of "api". The first intention denies connections from the source "hackathon-project" while allowing traffic connections from the source "web". From the source "nightly-reconciler", it is allowing HTTP traffic from only the specified path via the POST method.

Traditionally debugging and troubleshooting the setup and configuration of Consul required relying on error logs, command line output, and sending telemetry to external systems. Consul lacked an easy way to visualize the service mesh topology to streamline troubleshooting. With this release, a new topology tab has been added to the UI. This presents topology diagrams along with key service mesh metrics such as requests, error rates, and timings. More details and best practices are available in the maintenance and monitoring operations guides.

Within the topology map it is possible to view the interactions between services within the mesh. An explicit deny will appear as a red line with an x between the two services. It is possible to adjust denies to allow via the topology map.

The new topology tab in the Consul UI showing a denied connection

The new topology tab in the Consul UI showing a denied connection (credit: Hashicorp)

 

To improve the Kubernetes-first experience, this release will introduce support for Custom Resource Definitions to streamline configuring Consul via Kubernetes-style objects. It will now be possible to manage configurations for services via CRDs. At the time of release, the following configuration entries were available as CRDs:

  • proxy-defaults - controls proxy configuration
  • service-defaults - configures defaults for all the instances of a given service
  • service-resolver - matches service instances with a specific Connect upstream discovery requests
  • service-router - defines where to send layer 7 traffic based on the HTTP route
  • service-splitter - defines how to divide requests for a single HTTP route based on percentages
  • service-intentions - defines restrictions for specific service to service interactions

As an additional improvement to the Kubernetes integration, Consul can now detect health status from Kubernetes via its readiness probe. This will allow for deciding on where traffic should be directed based on both Consul's health checks and now the native Kubernetes health checks on pods.

The introduction of streaming improves both CPU and network bandwidth usage on large-scale deployments of Consul. This change is facilitated by a major architectural improvement in how update notifications for blocking queries are delivered. Streaming is available on the service health HTTP endpoint and can be enabled via configuration flags and the cached URL parameter. Future releases will see streaming added to more endpoints.

Consul 1.9 is available now in beta release. Hashicorp advises that forward compatibility is not guaranteed and as such, it is recommended to install this in a cluster that can be lost. For more details on the release, the changelog is available.

We need your feedback

How might we improve InfoQ for you

Thank you for being an InfoQ reader.

Each year, we seek feedback from our readers to help us improve InfoQ. Would you mind spending 2 minutes to share your feedback in our short survey? Your feedback will directly help us continually evolve how we support you.

Take the Survey

Rate this Article

Adoption
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

BT

Is your profile up-to-date? Please take a moment to review and update.

Note: If updating/changing your email, a validation request will be sent

Company name:
Company role:
Company size:
Country/Zone:
State/Province/Region:
You will be sent an email to validate the new email address. This pop-up will close itself in a few moments.