jepsen.control.k8s

The recommended way is to use SSH to setup and teardown databases. It’s however sometimes conveniet to be able to setup and teardown the databases using kubectl instead, which is what this namespace helps you do. Use at your own risk, this is an unsupported way of running Jepsen.

cp-from

(cp-from context namespace pod-name remote-paths local-path)

Copies files from a pod filesystem to the host.

cp-to

(cp-to context namespace pod-name local-paths remote-path)

Copies files from the host to a pod filesystem.

exec

(exec context namespace pod-name {:keys [cmd], :as opts})

Execute a shell command on a pod.

k8s

(k8s)

Returns a remote that does things via kubectl exec and kubectl cp, in the default context and namespacd.

list-pods

(list-pods context namespace)

A helper function to list all pods in a given context/namespace