Skip to content

K8s node distribution standard (#434) - #354

Merged
cah-hbaum merged 1 commit into
mainfrom
issue/434
Nov 8, 2023
Merged

cah-hbaum merged 1 commit into
mainfrom
issue/434

Conversation

@cah-hbaum

Copy link
Copy Markdown
Contributor

This MR adds a standard for distribution of k8s nodes over multiple machines, which should help alleviate failures of whole clusters and the ensuing loss of services and data, therefore ensuring availability of the resources.

Closes #434

@cah-hbaum cah-hbaum added Container Issues or pull requests relevant for Team 2: Container Infra and Tooling standards Issues / ADR / pull requests relevant for standardization & certification SCS is standardized SCS is standardized SCS-VP10 Related to tender lot SCS-VP10 labels Oct 5, 2023
@cah-hbaum cah-hbaum self-assigned this Oct 5, 2023
@cah-hbaum cah-hbaum linked an issue Oct 5, 2023 that may be closed by this pull request
4 tasks done
@mxmxchere

mxmxchere commented Oct 5, 2023 •

Copy link
Copy Markdown

I agree on the distribution of multiple control-plane nodes for large and production clusters.

Maybe we should enlarge our view for other use-cases of k8s-clusters. There can also be very small dev-clusters which may be even disposed on a quick-basis where other controlplane scenarios (single-node or even shared-nodes(kamaji)) may be more suitable (cheaper).

We could reflect those attributes (shared control-plane, dedicated controlplane, dedicated and guaranteed to be split over various failure zones) in different cluster-flavors just as we did with the machine-flavors for openstack.

@cah-hbaum
cah-hbaum force-pushed the issue/434 branch 3 times, most recently from 40b70f9 to ed6237d Compare October 18, 2023 07:25

@anjastrunk anjastrunk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

so called nodes. A cluster is composed of a control plane and at least one worker node.
The control plane manages the worker nodes and therefore the pods in the cluster by making
decisions about scheduling, event detection and rights management. Inside the control plane,
multiple components exist, which can be duplicated and distributed over multiple machines

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMHO we should speak of nodes most of the times until the reader reaches glossary when describing components of an Kubernetes cluster. It may be provided by physical machines or machine flavors on hyperscalers but may also be VM instances also named "instance" instead of a "machine" provided by a classical IaaS. The glossary follows below, so at this time "machine" is fine but still I personally like the k8s name "node" more.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will write node in most of this section now, but just to write why I choose machine. This was based on the Kubernetes documentation here, which states physical or virtual machines as the base of a node.


If the standard is used by a provider, the following decisions are binding and valid:

- The control plane nodes SHOULD be distributed over multiple physical machines. Kubernetes

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the section above the term "failure zone" is used multiple times. I personally have the feeling that "multiple physical machines" does not fit the intention perfectly. We would like that machines (as defined in the glossary, so we mean nodes here) should be placed in different failure zones to not being affected by issues on routers, burning facilities etc. as mentioned below this comment. That means I would remove the word "physical".

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO, I would leave the part about physical machines in. Even if the concept of a failure zone is the important term here to achieve availability security, it's nonetheless dependent on physical separation underneath (since a machine could always fail for some reason). If this wouldn't be defined, a failure zone could just be a few VMs and the next failure zone could be another set of VMs on the same machine. This isn't how failure zones should be used, but it could happen nonetheless.
That's why I would keep the physical seperation in there

@cah-hbaum
cah-hbaum force-pushed the issue/434 branch 2 times, most recently from 97fc767 to fbdec58 Compare November 6, 2023 07:39

@matofeder matofeder left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

just one minor suggestion

This commit adds a standard for distribution of k8s nodes over multiple machines, which should help eleviate failures of whole clusters and ensure high availability.

Signed-off-by: Hannes Baum <[email protected]>
@cah-hbaum
cah-hbaum merged commit 442b6a6 into main Nov 8, 2023
@cah-hbaum
cah-hbaum deleted the issue/434 branch November 8, 2023 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Container Issues or pull requests relevant for Team 2: Container Infra and Tooling SCS is standardized SCS is standardized SCS-VP10 Related to tender lot SCS-VP10 standards Issues / ADR / pull requests relevant for standardization & certification

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

[Standardization] Distributed K8s nodes to ensure Anti-Affinity

6 participants