cluster/kube: calico: fix etcd endpoints
Change-Id: Ia93d355ca343fa5a42ec37fbcae9135cb5304f6e
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1285
Reviewed-by: implr <implr@hackerspace.pl>
diff --git a/cluster/kube/lib/calico.libsonnet b/cluster/kube/lib/calico.libsonnet
index d580197..eb813a8 100644
--- a/cluster/kube/lib/calico.libsonnet
+++ b/cluster/kube/lib/calico.libsonnet
@@ -29,7 +29,12 @@
imageNode: "calico/node:" + cfg.version,
// TODO(implr): migrate calico from etcd to apiserver
etcd: {
- endpoints: ["https://bc01n%02d.hswaw.net:2379" % n for n in std.range(1, 3)],
+ endpoints: [
+ "https://bc01n01.hswaw.net:2379",
+ "https://bc01n02.hswaw.net:2379",
+ "https://dcr01s22.hswaw.net:2379",
+ "https://dcr01s24.hswaw.net:2379",
+ ],
ca: importstr "../../certs/ca-etcd.crt",
cert: importstr "../../certs/etcd-calico.cert",
key: importstr "../../secrets/plain/etcd-calico.key",