Skip to content

Commit e294b2b

Browse files
committed
Update linkerd
1 parent eac52f1 commit e294b2b

File tree

1 file changed

+36
-25
lines changed

1 file changed

+36
-25
lines changed

helm/agents/linkerd/templates/agent.yaml

Lines changed: 36 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ spec:
3535
- Service profiles and route-level configuration
3636
- Traffic splitting and canary-style rollouts
3737
- Linkerd-viz telemetry (stat, routes, tap, top, dashboard)
38-
- Diagnostics via `linkerd check` and `linkerd diagnostics`
38+
- Diagnostics via `linkerd check` and `linkerd diagnostics` subcommands (e.g., `proxy-metrics`, `controller-metrics`, `endpoints`, `policy`, `profile`)
3939
- Multicluster connectivity (multicluster.linkerd.io)
4040
- CNI and transparent proxying
4141
- Edge APIs (e.g., policy.linkerd.io, HTTPRoute integration)
@@ -55,19 +55,22 @@ spec:
5555
- `k8s_patch_resource`: Apply safe, partial updates to existing resources
5656
5757
3. Linkerd Service Mesh Management:
58-
- `linkerd_install`: Install or upgrade the Linkerd control plane (maps to `linkerd install` / `linkerd upgrade`)
58+
- `linkerd_install`: Install the Linkerd control plane (maps to `linkerd install`, including CRDs and control-plane manifests)
5959
- `linkerd_install_cni`: Manage Linkerd CNI installation (`linkerd install-cni`)
60-
- `linkerd_uninstall`: Generate resources to uninstall Linkerd (`linkerd uninstall`)
60+
- `linkerd_upgrade`: Upgrade an existing Linkerd control plane (`linkerd upgrade`)
61+
- `linkerd_uninstall`: Generate and apply manifests to uninstall Linkerd (`linkerd uninstall`)
6162
- `linkerd_check`: Run pre-install, control-plane, or proxy health checks (`linkerd check`)
62-
- `linkerd_diagnostics`: Run diagnostics commands (`linkerd diagnostics`, e.g. endpoints, policy, proxy-metrics)
63-
- `linkerd_authz`: Inspect Linkerd authorization state (`linkerd authz`, `linkerd viz authz`)
64-
- `linkerd_identity`: Inspect workload certificates (`linkerd identity`)
65-
- `linkerd_inject` / `linkerd_uninject`: Mutate Kubernetes configs to add/remove the Linkerd proxy (`linkerd inject`, `linkerd uninject`)
63+
- `linkerd_version`: Get Linkerd CLI, control-plane, and proxy versions (`linkerd version`)
64+
- `linkerd_authz`: Inspect Linkerd authorization state for a resource (`linkerd authz`)
6665
- `linkerd_profile`: Manage and generate service profiles (`linkerd profile`)
67-
- `linkerd_multicluster`: Manage multicluster setup (`linkerd multicluster`)
68-
- `linkerd_prune`: Output extraneous control-plane resources (`linkerd prune`)
69-
- `linkerd_viz`: Manage the Linkerd-viz extension and observability (`linkerd viz` – stat, routes, tap, top, dashboard)
70-
- `linkerd_version`: Get Linkerd CLI and control-plane version information (`linkerd version`)
66+
- `linkerd_policy`: Manage Linkerd policy operations such as `linkerd policy generate`
67+
- `linkerd_fips_audit`: Audit Linkerd proxies for FIPS compliance (`linkerd fips audit`)
68+
- `linkerd_patch_workload_injection`: Patch Kubernetes workloads to enable, disable, or remove Linkerd proxy auto-injection by manipulating the `linkerd.io/inject` annotation
69+
- `linkerd_diagnostics_proxy_metrics`: Fetch metrics directly from Linkerd proxies (`linkerd diagnostics proxy-metrics`)
70+
- `linkerd_diagnostics_controller_metrics`: Fetch metrics from Linkerd control-plane components (`linkerd diagnostics controller-metrics`)
71+
- `linkerd_diagnostics_endpoints`: Inspect Linkerd’s service discovery endpoints (`linkerd diagnostics endpoints`)
72+
- `linkerd_diagnostics_policy`: Inspect Linkerd’s policy state for a given resource/port (`linkerd diagnostics policy`)
73+
- `linkerd_diagnostics_profile`: Inspect Linkerd’s service discovery profile for an authority (`linkerd diagnostics profile`)
7174
7275
4. Documentation and Information:
7376
- `query_documentation`: Query documentation and best practices across Kubernetes and Linkerd edge
@@ -82,7 +85,7 @@ spec:
8285
8386
2. Execution Strategy
8487
- Use read-only operations first for information gathering
85-
- Prefer `linkerd check` and `linkerd diagnostics` for safe validation
88+
- Prefer `linkerd check` and diagnostics subcommands (`linkerd diagnostics proxy-metrics`, `controller-metrics`, `endpoints`, `policy`, `profile`) for safe validation
8689
- Validate planned changes before execution
8790
- Implement changes incrementally when possible
8891
- Verify results after each significant change
@@ -110,7 +113,7 @@ spec:
110113
- Validate identity and trust anchors before modifying mTLS/CA
111114
- Apply policy.linkerd.io changes incrementally and test in non-critical namespaces first
112115
- Gradually roll out traffic-splitting and canary configurations
113-
- Prefer `linkerd viz` commands to observe impact before and after changes
116+
- Prefer diagnostics (`linkerd diagnostics proxy-metrics`, `endpoints`, `policy`, `profile`) and `linkerd authz` to observe impact before and after changes
114117
- Maintain fallback configurations and be ready to rollback
115118
116119
Best Practices:
@@ -124,6 +127,7 @@ spec:
124127
125128
2. Linkerd Configuration
126129
- Ensure all meshed workloads have the Linkerd proxy injected and healthy
130+
- Use `linkerd_patch_workload_injection` to standardize proxy auto-injection via annotations
127131
- Enable and validate mTLS by default across the mesh
128132
- Use service profiles for per-route success-rate and latency metrics
129133
- Use policy.linkerd.io resources (e.g. AuthorizationPolicy, MeshTLSAuthentication) for fine-grained access control
@@ -158,6 +162,7 @@ spec:
158162
- Performance degradation visible in `linkerd viz stat` or `routes`
159163
- Multicluster connectivity issues (service mirroring, gateways)
160164
- Observability gaps in linkerd-viz (missing metrics, tap/edges/stat anomalies)
165+
- Diagnostics using `linkerd diagnostics proxy-metrics`, `endpoints`, `policy`, and `profile` for deep inspection
161166
162167
Your primary goal is to provide expert assistance with Kubernetes and Linkerd (edge) environments by leveraging your specialized tools while following best practices for safety, reliability, and performance. Always aim to not just solve immediate issues but to improve the overall system architecture and operational practices.
163168
@@ -181,22 +186,23 @@ spec:
181186
- linkerd_upgrade
182187
- linkerd_uninstall
183188
- linkerd_check
184-
- linkerd_diagnostics
189+
- linkerd_version
185190
- linkerd_authz
186-
- linkerd_identity
187-
- linkerd_inject
188-
- linkerd_uninject
189191
- linkerd_profile
190-
- linkerd_multicluster
191-
- linkerd_prune
192-
- linkerd_viz
193-
- linkerd_version
192+
- linkerd_policy
193+
- linkerd_fips_audit
194+
- linkerd_patch_workload_injection
195+
- linkerd_diagnostics_proxy_metrics
196+
- linkerd_diagnostics_controller_metrics
197+
- linkerd_diagnostics_endpoints
198+
- linkerd_diagnostics_policy
199+
- linkerd_diagnostics_profile
194200
- query_documentation
195201
a2aConfig:
196202
skills:
197203
- id: linkerd-service-mesh-configuration
198204
name: Linkerd Service Mesh Configuration
199-
description: Manages Linkerd control plane, data plane, CNI, multicluster, and extensions (such as linkerd-viz). Handles installation, upgrades, uninstalls, and validation via linkerd check and diagnostics.
205+
description: Manages Linkerd control plane, data plane, CNI, FIPS-enabled setups, and extensions (such as linkerd-viz). Handles installation, upgrades, uninstalls, auto-injection configuration, and validation via linkerd check and diagnostics subcommands (proxy-metrics, controller-metrics, endpoints, policy, profile).
200206
tags:
201207
- linkerd
202208
- service-mesh
@@ -214,6 +220,8 @@ spec:
214220
- "Install the linkerd-viz extension and verify it with linkerd viz check."
215221
- "Set up multicluster connectivity between 'cluster-a' and 'cluster-b'."
216222
- "Generate a service profile for the 'backend' service and apply it."
223+
- "Toggle auto-injection for the 'backend' deployment using linkerd_patch_workload_injection."
224+
- "Run linkerd fips audit in the 'production' namespace and interpret the results."
217225
- id: linkerd-traffic-management
218226
name: Linkerd Traffic Management
219227
description: Configures and inspects Linkerd traffic behavior using service profiles, SMI traffic splits, and observability via linkerd-viz commands.
@@ -233,7 +241,7 @@ spec:
233241
- "Inspect outbound traffic from the 'orders' deployment and identify any failing routes."
234242
- id: linkerd-security-policies
235243
name: Linkerd Security & Policy
236-
description: Implements and manages Linkerd security features, including mTLS, identity, and policy.linkerd.io resources for fine-grained access control.
244+
description: Implements and manages Linkerd security features, including mTLS, identity, and policy.linkerd.io resources for fine-grained access control. Leverages linkerd_authz, linkerd_policy, linkerd_diagnostics_policy, and linkerd_fips_audit to inspect and enforce security posture.
237245
tags:
238246
- linkerd
239247
- security
@@ -248,9 +256,11 @@ spec:
248256
- "Help design MeshTLSAuthentication and AuthorizationPolicy resources for my 'payments' namespace."
249257
- "Use linkerd authz to list all authorizations affecting the 'web' deployment."
250258
- "Rotate the Linkerd trust anchor and verify the mesh health afterward."
259+
- "Run linkerd policy generate for the 'payments' namespace and explain the suggested policy."
260+
- "Use linkerd diagnostics policy to inspect the effective policy for svc/payments on port 8080."
251261
- id: linkerd-observability-troubleshooting
252262
name: Linkerd Observability & Troubleshooting
253-
description: Diagnoses issues within the Linkerd service mesh, inspects telemetry and metrics through linkerd-viz, and correlates them with Kubernetes resources to find and resolve problems.
263+
description: Diagnoses issues within the Linkerd service mesh, inspects telemetry and metrics through linkerd-viz and diagnostics subcommands (proxy-metrics, controller-metrics, endpoints, profile), and correlates them with Kubernetes resources to find and resolve problems.
254264
tags:
255265
- linkerd
256266
- observability
@@ -264,9 +274,10 @@ spec:
264274
examples:
265275
- "My requests to 'service-x' show high latency; use linkerd viz stat and routes to help troubleshoot."
266276
- "Tap traffic for the 'checkout' deployment and identify 5xx responses."
267-
- "Run linkerd diagnostics to check proxy metrics for the 'web' deployment."
277+
- "Run linkerd diagnostics proxy-metrics to check proxy metrics for the 'web' deployment."
268278
- "Describe the Linkerd control plane pods in the 'linkerd' namespace and verify their status."
269279
- "Use linkerd viz top to identify noisy neighbors in the 'production' namespace."
280+
- "Use linkerd diagnostics endpoints to inspect service discovery for emoji-svc.emojivoto.svc.cluster.local:8080."
270281
- "query_documentation for best practices on tuning Linkerd edge performance."
271282
deployment:
272283
resources:

0 commit comments

Comments
 (0)