Replies: 0 comments 2 replies
-
Sample InCluster experiment. Before apiVersion: iter8.tools/v2alpha1
kind: Experiment
metadata:
name: experiment-1
spec:
target: knative-test/sample-application
strategy:
testingPattern: Canary
deploymentPattern: progressive
actions:
start:
- library: knative
task: updateExperimentInCluster
finish:
- library: common
task: updateInClusterResourcesUsingKubectl
with:
sourceFolder: https://github.com/my/repo/{{ .name }}
criteria:
objectives:
- metric: mean-latency
upperLimit: 2000
- metric: error-rate
upperLimit: "0.01"
duration:
intervalSeconds: 3600
maxIterations: 336 After apiVersion: iter8.tools/v2alpha1
kind: Experiment
metadata:
name: experiment-1
spec:
target: knative-test/sample-application
strategy:
testingPattern: Canary
deploymentPattern: progressive
actions:
start:
- library: knative
task: updateExperimentInCluster
finish:
- library: common
task: updateInClusterResourcesUsingKubectl
with:
sourceFolder: https://github.com/my/repo/{{ .name }}
criteria:
objectives:
- metric: mean-latency
upperLimit: 2000
- metric: error-rate
upperLimit: "0.01"
duration:
intervalSeconds: 3600
maxIterations: 336
versionInfo:
baseline:
name: current # names of versions MUST be unique
variables:
- name: revision
value: sample-application-v1
weightObjRef:
apiVersion: serving.knative.dev/v1
kind: Service
name: sample-application
namespace: knative-test
fieldPath: /spec/traffic/0/percent
candidates:
- name: candidate
variables:
- name: revision
value: sample-application-v2
weightObjRef:
apiVersion: serving.knative.dev/v1
kind: Service
name: sample-application
namespace: knative-test
fieldPath: /spec/traffic/1/percent |
Beta Was this translation helpful? Give feedback.
0 replies
-
Summarizing CRD changes
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Sample GitOps-enabled experiment.
Before
start
action is invoked.After
start
action is invoked and GitOps operator has finished syncing.Beta Was this translation helpful? Give feedback.
All reactions