Skip to content

Infra nodes - #426

Merged
thoraxe merged 9 commits into
openshift:masterfrom
thoraxe:infra-nodes
Feb 4, 2019
Merged

thoraxe merged 9 commits into
openshift:masterfrom
thoraxe:infra-nodes

Conversation

@thoraxe

@thoraxe thoraxe commented Jan 25, 2019

Copy link
Copy Markdown
Contributor

beginning of creating infra nodes.

@tkatarki Creating the nodes works in drop 1. Most of the infra components' operators do not yet support specifying node selectors. Are you OK with adding this as-is and then I'll work in the background on actually moving things?

@openshift-ci-robot openshift-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jan 25, 2019
Comment thread docs/02-install.md Resolved
Comment thread docs/02-install.md Resolved
Comment thread docs/02-install.md Outdated
# Advnaced Installations
While the OpenShift 4 installer's purpose in life is to streamline operations
in order to guarantee success, there are a few options that you can adjust by
using a configuration file. Namely, you can change the default number of

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.

I think it's worth emphasizing that everything except masters can be (re-)configured with day-2 operations. The associated install-config settings are just a convenience.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@wking I had briefly tried the modify our masters only path with day 2 operations to modify workers, however I found it a bit more work than simply just modifying workers in install-config considering changing a machineset only seems to affect new machines rather than any of the existing machines. (I think the convenience is worth it for something that will commonly deviate from the current default)

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.

@wking you can reconfigure masters, too, depending on what you're trying to change, no? For example, what if you wanted to change the scheduler config? That would be day1 and a "master" change...?

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.

For example, what if you wanted to change the scheduler config?

I don't know how well the cluster-API provider supports these changes, maybe it does. But I know that etcd-joining is not automatic, so anything that ends up deleting a previous instance and provisioning a replacement master is going to leave the etcd cluster degraded. We have long-term plans to support cluster-API-created masters, but we're not there yet.

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.

Yeah but I think the point here is that certain aspects of master are likely to be re-configurable to some degree, so a blanket "except masters" is probably not what we should say?

Comment thread docs/02-install.md Resolved
Comment thread docs/02-install.md Resolved
Comment thread docs/02-install.md Resolved
Comment thread docs/02-install.md Resolved
Comment thread docs/05-infrastructure-nodes.md Resolved
Comment thread docs/05-infrastructure-nodes.md Resolved
Comment thread docs/05-infrastructure-nodes.md Resolved
Comment thread docs/05-infrastructure-nodes.md Resolved
Comment thread docs/05-infrastructure-nodes.md Resolved
Comment thread docs/05-infrastructure-nodes.md Resolved
Comment thread docs/05-infrastructure-nodes.md Resolved
@wking

wking commented Jan 25, 2019

Copy link
Copy Markdown
Member

This is great :). Even as a WIP PR, I feel like I'm going to pointing a lot of people over here ;).

OpenShift components that fall into the infrastructure categorization
include:

* kubernetes and OpenShift control plane services ("masters")

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Are you sure, we already have control plane nodes for this.

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.

Are you sure, we already have control plane nodes for this.

I read those as infrastructure too from a subscription-pricing perspective (not from a node-label perspective).

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.

exactly that. you don't get charged for the masters. you wouldn't, for example, run ES+Kibana on a master. So you'd have masters+ES+Kibana hosts/nodes. "masters" (control plane services) are included in the subscription.

I'm totally open to better/different wording here!

Any node running a container/pod/component not described above is considered
a worker and must be covered by a subscription.

## More MachineSet Details

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Why More where is the first set of details?

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.

Why More where is the first set of details?

In 04-scaling-cluster.md.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Understand MachineSets ?

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.

@abhinavdahiya the scaling the cluster module already describes machinesets. This is quite literally "more machineset details".

Comment thread docs/05-infrastructure-nodes.md Resolved
@jeremyeder

Copy link
Copy Markdown

@akrzos @chaitanyaenr can you please review this?

Comment thread docs/05-infrastructure-nodes.md Resolved
Comment thread docs/02-install.md Outdated
# Advnaced Installations
While the OpenShift 4 installer's purpose in life is to streamline operations
in order to guarantee success, there are a few options that you can adjust by
using a configuration file. Namely, you can change the default number of

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@wking I had briefly tried the modify our masters only path with day 2 operations to modify workers, however I found it a bit more work than simply just modifying workers in install-config considering changing a machineset only seems to affect new machines rather than any of the existing machines. (I think the convenience is worth it for something that will commonly deviate from the current default)

Comment thread docs/02-install.md Resolved
Comment thread docs/05-infrastructure-nodes.md Resolved
Comment thread docs/05-infrastructure-nodes.md Resolved
@thoraxe

thoraxe commented Jan 28, 2019

Copy link
Copy Markdown
Contributor Author

I just pushed a bunch of the suggestions/changes into this PR.

Comment thread docs/02-install.md Resolved
Comment thread docs/02-install.md
The installer provides a guided experience for provisioning the cluster on a
particular platform. As of this writing, only AWS is a supported target.
The scope of the new OpenShift 4 installer is purposefully narrow. It is
designed for simplicity and ensured success. Many of the items and

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

designed for simplicity and ensured success

/cc @crawford

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Many of the items and configurations that were previously handled by the installer are now expected to be "Day 1" operations, performed just after the installation of the control plane and basic workers completes.

what is this previous installer. all configuration is Day-2... Day-1 vs Day-2

/cc @crawford

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.

@abhinavdahiya openshift-ansible is the "previous installer" referred to. It was capable of a large quantity of Day0 (install) configuration.

Comment thread docs/02-install.md
designed for simplicity and ensured success. Many of the items and
configurations that were previously handled by the installer are now expected
to be "Day 1" operations, performed just after the installation of the
control plane and basic workers completes. The installer provides a guided

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The installer provides a guided experience for provisioning the cluster on a particular platform.

this line has become redundant?

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.

It's unclear from the displayed snippet what makes it redundant. I don't think the fact that the experience is guided (as opposed to non-interactive) is redundant -- this is the first time we talk about the process for execution of the installer.

Comment thread docs/02-install.md Resolved
Comment thread docs/02-install.md Resolved
Comment thread docs/02-install.md
openshift-install --dir /path/to/something create install-config
```

After following the same interactive prompts you saw earlier when performing

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

After following the same interactive prompts as [basic-installation],

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 don't think we need to link on the same page? That seems excessive?

Comment thread docs/02-install.md
section at the bottom of the file. That section is for per-platform cluster
config for non-machine properties.

Let's modify our config file to specify that we want 6 initial workers, all

@abhinavdahiya abhinavdahiya Jan 28, 2019 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You can modify the config file to increase the worker count to 6 and also specify their instance size [link to aws instance sizes] like c5.xlarge

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.

Comment thread docs/02-install.md Resolved
Comment thread docs/02-install.md
aws:
type: m5.large
rootVolume:
iops: 700

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

ques: how did we choose these values? users might just reuse these values and it would be nice if these are based on some internal recommendations?

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.

These values were provided by someone else as examples. They are not for any particular/specific use case, but I don't know.

@@ -0,0 +1,326 @@
# OpenShift Infrastructure Nodes
The OpenShift subscription model allows customers to run various core

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hmm, do you think installer repo is the right place to point this BZs behavior?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

We can define Infrastructure Nodes as node that run OpenShift core components, which include
list at https://github.com/openshift/training/pull/426/files#diff-37208a9588b8cdc5a7b273b09418a3c3R11

and keep the subscription out?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Oops, thought this was installer repo :P

but I still think separating the BZ subscription requirements from definition here will be more useful.

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 can't agree with you here. The whole point of presenting the commentary on infrastructure nodes is because this is a common scenario that OCP4 customers are going to need to work through. The purpose of the training repo is to guide customers through common scenarios with OpenShift 4. Without the background on subscriptions and why they would create infrastructure nodes I think the exercise would seem like a waste of time. But it's important.

Comment thread docs/05-infrastructure-nodes.md Resolved
Comment thread docs/05-infrastructure-nodes.md Outdated
a worker and must be covered by a subscription.

## More MachineSet Details
In [the cluster-scaling excercises](04-scaling-cluster.md) you explored the

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The [cluster-scaling excercises](04-scaling-cluster.md) explore using

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 don't see the reason for this change? This seems like a grammar change suggestion but I'm not sure why.

Comment thread docs/05-infrastructure-nodes.md Resolved
Comment thread docs/05-infrastructure-nodes.md Resolved
Comment thread docs/05-infrastructure-nodes.md Resolved
generation: 1
labels:
sigs.k8s.io/cluster-api-cluster: 190125-3
sigs.k8s.io/cluster-api-machine-role: worker

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.

The cluster-api stack reads only sigs.k8s.io/cluster-api-machine-type label to determine if a machine manages a master node or not. On the other hand, sigs.k8s.io/cluster-api-machine-role is ignored. So unless it is used by another component, it has no value and can be removed. @enxebre WDYT? The role label was used in the past to get the right security groups/subnets. Though, we have refactored that code out in favor of awsproviderconfig in the providerSpec field.

@openshift-ci-robot openshift-ci-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jan 29, 2019
@thoraxe thoraxe changed the title [WIP] Infra nodes Infra nodes Feb 4, 2019
@openshift-ci-robot openshift-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 4, 2019
@thoraxe

thoraxe commented Feb 4, 2019

Copy link
Copy Markdown
Contributor Author

Merging for now. Seems good enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants