Skip to content

Conversation

@nicolasochem
Copy link
Owner

We replace the bootstrap service with a headless service and have
all nodes connect directly to the pod ips.

This exposes a bug where nodes are stuck with zero connections if
they try to connect too early. This was previously masked by kubeproxy.

We fix that by adding an init container which waits for the first
bootstrap node to accept connections.

The bootstrap attribute is now declarative: we no longer consider
every baking node as bootstrap. The bootstrap: true must be passed
in values.yaml

We add headless services in order to give the pods a meaningful FQDN.

Rename "bootstrap" statefulset to "baker" to reflect this new model.

Other changes:

  • do not hardcode the protocol version in the key-importer script,
    pass it as a variable instead

  • In values.yaml, baker nodes and regular nodes are now listed
    separately, which simplifies the code in other places.

  • invited values always has one node even though the main topology
    may have several. To add more nodes to an invite, edit the yaml
    manually. fix Invite yaml should only contain a single peer node oxheadalpha/tezos-k8s#69

We replace the bootstrap service with a headless service and have
all nodes connect directly to the pod ips.

This exposes a bug where nodes are stuck with zero connections if
they try to connect too early. This was previously masked by kubeproxy.

We fix that by adding an init container which waits for the first
bootstrap node to accept connections.

The bootstrap attribute is now declarative: we no longer consider
every baking node as bootstrap. The bootstrap: true must be passed
in values.yaml

We add headless services in order to give the pods a meaningful FQDN.

Rename "bootstrap" statefulset to "baker" to reflect this new model.

Other changes:

* do not hardcode the protocol version in the key-importer script,
pass it as a variable instead

* In values.yaml, baker nodes and regular nodes are now listed
separately, which simplifies the code in other places.

* invited values always has one node even though the main topology
may have several. To add more nodes to an invite, edit the yaml
manually. fix oxheadalpha#69
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants