Linkerd

Definition

Linkerd is an open-source service mesh designed to provide observability, security, and reliability for cloud-native applications. It operates by managing service-to-service communication within a Kubernetes cluster, offering features such as automatic TLS encryption, traffic routing, and failure handling. Linkerd is lightweight and designed to be easy to deploy and operate, making it a popular choice for enhancing the security and performance of microservices architectures.

Secure Settings Example

apiVersion: linkerd.io/v1alpha2
kind: ServiceProfile
metadata:
  name: my-service.default.svc.cluster.local
  namespace: default
spec:
  routes:
  - name: GET /secure-endpoint
    condition:
      method: GET
      pathRegex: /secure-endpoint
    isRetryable: false
    timeout: 1s
  - name: POST /data
    condition:
      method: POST
      pathRegex: /data
    isRetryable: true
    timeout: 2s

Insecure Settings Example

apiVersion: linkerd.io/v1alpha2
kind: ServiceProfile
metadata:
  name: my-service.default.svc.cluster.local
  namespace: default
spec:
  routes:
  - name: GET /insecure-endpoint
    condition:
      method: GET
      pathRegex: /insecure-endpoint
    isRetryable: true
    timeout: 0s
  - name: POST /data
    condition:
      method: POST
      pathRegex: /data
    isRetryable: false
    timeout: 0s