Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update documentation to include canaries when used with SMI interface #1737

Merged
merged 5 commits into from
May 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions linkerd.io/content/2.14/tasks/flagger.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,47 @@ spec:
EOF
```

In case you are using `ServiceProfile`s (for features not
currently supported with `HttpRoute`s) you will
need to change your `Canary` to use the SMI interface as provider:

```yaml
apiVersion: flagger.app/v1beta1
kind: Canary
metadata:
name: podinfo
namespace: test
spec:
provider: "smi:v1alpha2"
targetRef:
apiVersion: apps/v1
kind: Deployment
name: podinfo
service:
# service port number
port: 9898
# container port number or name (optional)
targetPort: 9898
analysis:
interval: 10s
threshold: 5
stepWeight: 10
maxWeight: 100
metrics:
- name: success-rate
templateRef:
name: success-rate
namespace: test
thresholdRange:
min: 99
interval: 1m
```

This will override the default flagger's mesh provider from `linkerd` to `smi:v1alpha2`.
Flagger will create `TrafficSplit`s instead of `HTTPRoute`s.
Linkerd SMI extension will monitor these `TrafficSplit`s
and will change `dstOverrides` on your `ServiceProfile`s when the deployment is happening.

The Flagger controller is watching these definitions and will create some new
resources on your cluster. To watch as this happens, run:

Expand Down
Loading