Skip to content

thinktainer/ops

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

ops faq

This is my personal ops faq. I dump stuff i find useful in here, so I don't have to remember.

benthos

Q: how do i run benthos in docker, connecting to an existing docker-compose network (kafka)

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

kubernetes

Q: how do i set autodeploy to off?

kubectl label --overwrite namespace `my-namespace` automaticDeployment=off

kafka in kubernetes

Q: how do i run commands in kafka deployed to kubernetes?

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 -- $@
}

cockroach in k8s with secure connection

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'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published