This is my personal ops faq. I dump stuff i find useful in here, so I don't have to remember.
Get <compose-network> with docker network ls.
docker run -ti \
-v$PWD/3-s3-kafka.yaml:/benthos.yaml \
-v$PWD/logger.yaml:/logger.yaml \
--network <compose-network> \
<registry>/benthos
kubectl label --overwrite namespace `my-namespace` automaticDeployment=off
add bootstrap server or zookeeper endpoints with either --bootstrap-server=localhost:9092 or --zookeeper=zetcd:2181
function run_in_k8s_kafka () {
cmd = $1;
shift;
kubectl exec -ti kafka-$(( $RANDOM %5 )) -c broker /opt/kafka/bin/$1 -- $@
}
k exec -ti cockroachdb-0 -- /cockroach/cockroach sql \
--url 'postgres://localhost:26257/<database>?sslmode=require&sslcert=/<patch-to-cockroach-certs>/node.crt&sslkey=/<path-to-cockroach-certs>/node.key'