model-registry Custom Experiments¶
This page provides templates for writing custom chaos experiments targeting model-registry.
model-registry-operator¶
apiVersion: chaos.operatorchaos.io/v1alpha1
kind: ChaosExperiment
metadata:
name: model-registry-operator-custom
spec:
target:
operator: model-registry
component: model-registry-operator
steadyState:
checks:
- type: conditionTrue
apiVersion: apps/v1
kind: Deployment
name: model-registry-operator-controller-manager
namespace: odh-model-registries
conditionType: Available
timeout: "60s"
injection:
type: PodKill # Change to desired injection type
parameters:
labelSelector: app=model-registry-operator
ttl: "300s"
hypothesis:
description: >-
Describe the expected behavior after fault injection.
recoveryTimeout: 120s
Running Custom Experiments¶
- Save your experiment YAML to a file
- Run:
chaos-cli run --experiment <file> - Check results:
chaos-cli results --latest