Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wait for bootstrap node to be up before launching other nodes #1

Open
wants to merge 2 commits into
base: multiple_bakers_2
Choose a base branch
from

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.

1 participant