1
0
Fork 0

cluster/crdb: make init job 'idempotent'

This enables its redeployment with a newer crdb image.

Change-Id: If039992674f401af53738c80d22cc2ca2818fe00
master
q3k 2021-03-17 21:48:28 +00:00
parent 64de7afe32
commit 3b8935378a
1 changed files with 1 additions and 1 deletions

View File

@ -334,7 +334,7 @@ local policies = import "../../../kube/policies.libsonnet";
command: [
"/bin/bash",
"-ecx",
"/cockroach/cockroach init --host=%s.cluster.local:%d" % [cluster.servers[0].service.host, cluster.cfg.portServe],
"/cockroach/cockroach init --host=%s.cluster.local:%d || true" % [cluster.servers[0].service.host, cluster.cfg.portServe],
],
volumeMounts: [
{