Comments (4)
https://kuttl.dev/docs/#pre-requisites
maybe we can consider using this tool?
from kuberay.
@Irvingwangjr Kuttl looks cool! I read the README. It seems suitable for testing some sample YAMLs, but it doesn't seem to support well the case where we need to execute some commands in the Pods to trigger certain behaviors.
from kuberay.
@Irvingwangjr Kuttl looks cool! I read the README. It seems suitable for testing some sample YAMLs, but it doesn't seem to support well the case where we need to execute some commands in the Pods to trigger certain behaviors.
yeah, that might be a problem, right now we use TestStep to execute scripts to trigger behaviors.
here is an example, we try to simulate the eviction of ray head, and check whether the RayJob will eventually enter the failed state:
apiVersion: kuttl.dev/v1beta1
kind: TestStep
commands:
- script: |
pod_name=$(kubectl get pod -l "xx.com/ray-pod-name=mlrayjob-head-failed-on-running-head-0" -n=ns -o jsonpath="{.items[0].metadata.name}")
cmd="kubectl exec -it $pod_name -n=ns -c ray-container -- dd if=/dev/zero of=/tmp/test.txt bs=1M count=100000"
$cmd &
cmd_pid=$!
wait $cmd_pid
exit_code=$?
if [ $exit_code -eq 137 ]; then
echo "the process was killed, exit with return code of 137"
else
echo "the process was killed, exit with return code of $exit_code"
fi
then we assert the RayJob to be in status of failed
apiVersion: kuttl.dev/v1beta1
kind: TestAssert
commands:
- command: kubectl assert exist-enhanced rayjob/mlrayjob-head-failed-on-running -n=ns --field-selector status.phase=Failed
we also use kube-assert here, it might be helpful.
from kuberay.
https://github.com/open-feature/open-feature-operator
OpenFeature(an CNCF project) adopt this tool, it also provides some examples
from kuberay.
Related Issues (20)
- [Bug] no feedback about failure to create submitter pod due to invalid spec HOT 2
- Good repository HOT 1
- [Bug] What's minimum permission set for kuberay-operator? HOT 3
- [Feature] Jupyter ecosystem support on kuberay HOT 4
- [Bug] Can't scaler up when using autoscaler v2 HOT 6
- [Bug] ray cluster getHeadServiceIp failed if "app.kubernetes.io/name" set HOT 2
- [Feature] keep the RayCluster's prefix in the worker pods name HOT 3
- [Feature] REP 54: Implement the ReplicaFailures condition HOT 1
- [CI] Check the consistency between role.yaml and multiple_namespaces_role.yaml HOT 1
- [Feature] REP 54: Donβt assign the rayv1.Failed to the State field HOT 2
- [Refactor] REP 54: Refactor usages of the inconsistentRayClusterStatus function HOT 2
- [Feature] REP 54: Add PodName to the HeadInfo HOT 1
- [Feature] REP 54: Implement the HeadReady condition HOT 2
- [Feature] REP 54: Re-define rayv1.Ready HOT 2
- [Bug] spec.workerGroupSpecs[0].template.spec.containers[0].env: Invalid value: "null" HOT 3
- [Feature] Add API reference documentation for KubeRay custom resources HOT 5
- [Feature] Event record for failed Pod creation HOT 4
- [Bug] Leader Election Lost: Kuberay pod restarts every 5mins! HOT 25
- [Feature] Add a strict parser for YAMLs in CI
- Adding --proxy=off for wget health check
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kuberay.