Quickstart
On a fresh VM run the quickstart script:
curl -sfL https://raw.githubusercontent.com/rancher/opni-docs/main/quickstart_files/install_opni.sh | sh -
Kibana UI¶
To view the Kibana UI you will need to port forward it:
export PATH=$PATH:/var/lib/rancher/rke2/bin
kubectl --kubeconfig /etc/rancher/rke2/rke2.yaml \
-n opni-cluster \
port-forward --address 0.0.0.0 svc/opni-es-kibana 5601:5601
Open the following address in a browser
[IPV4_ADDRESS]:5601
export PATH=$PATH:/var/lib/rancher/rke2/bin
kubectl --kubeconfig /etc/rancher/rke2/rke2.yaml \
-n opni-cluster \
get secret opni-es-password --template={{ "{{.data.password}}" }} | base64 -d
Additional Anomaly Injection¶
Using the provided script, you can inject sample anomalies into your cluster. The script can create pods which are unschedulable, have nonexistent images, or exit with non-zero exit codes. Note: If you are not using the quickstart script, you must set the KUBECONFIG environment variable like
export KUBECONFIG=[PATH_TO_KUBECONFIG_FILE]
export PATH=$PATH:[PATH_TO_KUBECTL_BINARY]
sh <(curl -sfL https://raw.githubusercontent.com/rancher/opni-docs/main/quickstart_files/errors_injection.sh)