Adding Your Service
To add Linkerd to your service, run:
deployment.yml
is the Kubernetes config file containing yourapplication. This will add the proxy sidecar along with an thatconfigures iptables to pass all traffic through the proxy. By applying this newconfiguration via kubectl
, a rolling update of your deployment will betriggered replacing each pod with a new one.
You will know that your service has been successfully added to the service meshif it’s pods are reported to be meshed in the Meshed column of the Linkerddashboard.
You can always get to the Linkerd dashboard by running:
Linkerd is capable of proxying all TCP traffic, including WebSockets and HTTPtunneling, and reporting top-line metrics (success rates, latencies, etc) forall HTTP, HTTP/2, and gRPC traffic.
If you’re working with a protocol that can’t be automatically recognized byLinkerd, use the and —skip-outbound-ports
flags whenrunning .
For example, if your application makes requests to a MySQL database running onport 4406, use the command:
Likewise if your application runs an SMTP server that accepts incoming requestson port 35, use the command:
- Applications that use protocols where the server sends data before the clientsends data may require additional configuration. See theProtocol support section above.