A purpose-built proxy for the Linkerd service mesh. Written in Rust.
Go to file
Joakim Roubert 444174a194
Makefile: Use STRIP variable with strip as default (#475)
If we run make in a cross-compile environment where the strip binary we
want to use is something else than strip, it is useful to have a STRIP
variable in the Makefile. If STRIP is not set, the default value is the
common strip.

Signed-off-by: Joakim Roubert <joakim.roubert@axis.com>
2020-04-14 14:03:33 -07:00
.github docker: Use buildkit for caching (#472) 2020-04-13 14:57:58 -07:00
hyper-balance internal: Spilt app from linkerd2-proxy (#375) 2019-10-16 15:39:39 -07:00
linkerd Add liveness endpoint to admin server (#470) 2020-04-13 10:48:51 -07:00
linkerd2-proxy Add a `mock-orig-dst` feature flag (#466) 2020-03-31 11:00:27 -07:00
opencensus-proto Remove the LINKERD2_PROXY_INBOUND_FORWARD config (#379) 2019-10-21 12:46:45 -07:00
profiling Upgrade to Rust 1.41 (#437) 2020-02-24 15:06:01 -08:00
.dockerignore profiling: add benchmark and profiling scripts (#406) 2020-02-19 11:34:29 -08:00
.gitattributes Migrate `conduit-proxy` to `linkerd2-proxy` 2018-07-07 22:45:21 +00:00
.gitignore Migrate `conduit-proxy` to `linkerd2-proxy` 2018-07-07 22:45:21 +00:00
CONTRIBUTING.md Update for linkerd2 slack channel (#168) 2019-01-03 08:43:24 +05:30
Cargo.lock Wire authority override coming from discovery (#462) 2020-03-25 16:58:38 +02:00
Cargo.toml Introduce a backpressure-propagating buffer (#451) 2020-03-06 12:23:17 -08:00
DCO Add contributing doc and DCO file (#88) 2017-12-22 14:54:27 -08:00
Dockerfile docker: Use buildkit for caching (#472) 2020-04-13 14:57:58 -07:00
GOVERNANCE.md Adopt Linkerd2's governance (#2) 2018-07-10 15:59:12 -07:00
LICENSE Introducing Conduit, the ultralight service mesh 2017-12-05 00:24:55 +00:00
MAINTAINERS.md Update maintainers.md (#366) 2019-10-01 15:15:36 -07:00
Makefile Makefile: Use STRIP variable with strip as default (#475) 2020-04-14 14:03:33 -07:00
README.md internal: Spilt app from linkerd2-proxy (#375) 2019-10-16 15:39:39 -07:00
rust-toolchain Upgrade to Rust 1.41 (#437) 2020-02-24 15:06:01 -08:00
update-rust-version.sh docker: Use buildkit for caching (#472) 2020-04-13 14:57:58 -07:00

README.md

linkerd2

GitHub license Slack Status

This repo contains the transparent proxy component of Linkerd2. While the Linkerd2 proxy is heavily influenced by the Linkerd 1.X proxy, it comprises an entirely new codebase implemented in the Rust programming language.

This proxy's features include:

  • Transparent, zero-config proxying for HTTP, HTTP/2, and arbitrary TCP protocols.
  • Automatic Prometheus metrics export for HTTP and TCP traffic;
  • Transparent, zero-config WebSocket proxying;
  • Automatic, latency-aware, layer-7 load balancing;
  • Automatic layer-4 load balancing for non-HTTP traffic;
  • Automatic TLS (experimental);
  • An on-demand diagnostic tap API.

This proxy is primarily intended to run on Linux in containerized environments like Kubernetes, though it may also work on other Unix-like systems (like macOS).

The proxy supports service discovery via DNS and the linkerd2 Destination gRPC API.

The Linkerd project is hosted by the Cloud Native Computing Foundation (CNCF).

Building the project

A Makefile is provided to automate most build tasks. It provides the following targets:

  • make build -- Compiles the proxy on your local system using cargo
  • make clean -- Cleans the build target on the local system using cargo clean
  • make test -- Runs unit and integration tests on your local system using cargo
  • make test-flakey -- Runs all tests, including those that may fail spuriously
  • make package -- Builds a tarball at target/release/linkerd2-proxy-${PACKAGE_VERSION}.tar.gz. If PACKAGE_VERSION is not set in the environment, the local git SHA is used.
  • make docker -- Builds a Docker container image that can be used for testing. If the DOCKER_TAG environment variable is set, the image is given this name. Otherwise, the image is not named.

Cargo

Usually, Cargo, Rust's package manager, is used to build and test this project. If you don't have Cargo installed, we suggest getting it via https://rustup.rs/.

Repository Structure

This project is broken into many small libraries, or crates, so that components may be compiled & tested independently. The following crate targets are especially important:

Code of conduct

This project is for everyone. We ask that our users and contributors take a few minutes to review our code of conduct.

License

linkerd2-proxy is copyright 2018 the linkerd2-proxy authors. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use these files except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.