How Can I launch an experiment using Golang/Python? #1265
-
I'm newbee here, I followed Tutorials here, and here is my question: In v0.7, I can setup CRDs in kubernetes cluster, and launch experiments by setup Experiment CR, how can I do that in v0.10? If I need launch experiments and report results in my app (written by golang or python ...), how can I make it work using a iter8 SDK(something like that) OR just setup CRD and CR instead of a binary Many thanks if you have any suggestions. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi there! Welcome to Iter8! In v0.10, you do not need a CRD to run experiments inside Kubernetes. Iter8 v0.10 uses a combination of namespace scoped built-in Kubernetes resources (like secrets and jobs) to run the experiment inside Kubernetes. The In the Golang source for Iter8, launching Kubernetes experiments is enabled by this method. For an example of how this method is used, please see here. Perhaps the Golang SDK for launching experiments should be better documented in the README? If you think this documentation would help, could you please create a documentation issue in this repo? We are happy to work on these docs if it would be useful for you. |
Beta Was this translation helpful? Give feedback.
-
@sriumcp BTW, How can I setup custom metrics? I want to use several custom metrics in prometheus, not only built-in HTTP latency and error-related metrics. Should I setup a new task, and could you provide a official progress on setup |
Beta Was this translation helpful? Give feedback.
Hi there! Welcome to Iter8!
In v0.10, you do not need a CRD to run experiments inside Kubernetes. Iter8 v0.10 uses a combination of namespace scoped built-in Kubernetes resources (like secrets and jobs) to run the experiment inside Kubernetes.
The
iter8
binary enables you to set up Kubernetes experiments in addition to local experiments. Please refer to https://iter8.tools/0.10/tutorials/load-test-http/kubernetesusage/ and https://iter8.tools/0.10/tutorials/load-test-grpc/kubernetesusage/. Both of these are examples of launching experiments inside Kubernetes.In the Golang source for Iter8, launching Kubernetes experiments is enabled by this method. For an example of how this method is…