cluster/kube: calico: fix etcd endpoints

Change-Id: Ia93d355ca343fa5a42ec37fbcae9135cb5304f6e
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1285
Reviewed-by: implr <implr@hackerspace.pl>
This commit is contained in:
q3k 2022-04-04 18:28:35 +00:00 committed by q3k
parent 0544d27c04
commit b0e3693c0e

View file

@ -29,7 +29,12 @@ local bindServiceAccountClusterRole(sa, cr) = kube.ClusterRoleBinding(cr.metadat
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",