March 2020
Intermediate to advanced
626 pages
14h 45m
English
A service profile is implemented as a Custom Resource Definition (CRD) in Kubernetes and is used to define a list of routes for a service that can then be used by the Linkerd proxy to report per-route metrics and configure retries and timeouts.
Service profiles can be generated automatically if you have swagger or protobuf specifications for your services. For example, the following code will create a service profile from a webapp.swagger or web.proto file for the webapp service. This is then fed to kubectl to generate the service profile:
$ linkerd profile --open-api webapp.swagger webapp | kubectl apply -f -$ linkerd profile --proto webapp.proto webapp | kubectl apply -f -
If no service profile specifications exist,
Read now
Unlock full access