Running a stateful application such as CockroachDB on Kubernetes requires using some of Kubernetes’ more complex features at a beta level of support. There are easier ways to run CockroachDB on Kubernetes for testing purposes, but the method presented here is destined to become a production deployment once Kubernetes matures sufficiently.
Deploying an insecure cluster is not recommended for data in production. We’ll update this page after improving the process to deploy secure clusters.
Read more at Cockroach Labs