cockroachdb / k8s

Images and utilities to run cockroach on kubernetes
Apache License 2.0
26 stars 25 forks source link

Don't fail if the ca.crt symlink already exists #8

Closed a-robinson closed 6 years ago

a-robinson commented 6 years ago

In https://www.youtube.com/watch?v=JMCCeAb9eY4, Joe forcefully killed a VM that a cockroach pod was on by writing to /proc/sysrq-trigger. After the machine came back up, the cockroachdb pod's init container got into a crash loop because the symlink for ca.crt already existed. While I'm still not quite sure how the certs volume got into this state, there's no reason for us to fail in such situations.

@mberhault