forked from hswaw/hscloud
cluster/crdb: make init job 'idempotent'
This enables its redeployment with a newer crdb image. Change-Id: If039992674f401af53738c80d22cc2ca2818fe00master
parent
64de7afe32
commit
3b8935378a
|
@ -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: [
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue