I need to run a command in clickhouse database in kubernetes.
When I try it with docker it works ok:
docker run -it yandex/clickhouse-client -h 172.19.0.1 --database=test --query="SYSTEM RELOAD DICTIONARIES"
but when I run it in kub:
kubectl run --quiet -it --rm clickhouse-client --image=yandex/clickhouse-client -- -h clickhouse-server --database=test --query="SYSTEM RELOAD DICTIONARIES"
Second command hangs. The pod is in CrashLoopBackOff with Back-off restarting failed container/ And the logs of container contains the result of query.
Why do the result not flushed to tty?
This command works for me:
kubectl run busybox --quiet -it --rm --restart=Never --image=busybox -- nslookup foobar
What is the difference with click-house client?