Repository navigation
Infra nodes - #426
Infra nodes#426
Conversation
| # 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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
@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)
There was a problem hiding this comment.
@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...?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
|
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") |
There was a problem hiding this comment.
Are you sure, we already have control plane nodes for this.
There was a problem hiding this comment.
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).
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Why More where is the first set of details?
There was a problem hiding this comment.
Why
Morewhere is the first set of details?
In 04-scaling-cluster.md.
There was a problem hiding this comment.
@abhinavdahiya the scaling the cluster module already describes machinesets. This is quite literally "more machineset details".
|
@akrzos @chaitanyaenr can you please review this? |
| # 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 |
There was a problem hiding this comment.
@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)
|
I just pushed a bunch of the suggestions/changes into this PR. |
| 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 |
There was a problem hiding this comment.
designed for simplicity and ensured success
/cc @crawford
There was a problem hiding this comment.
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
There was a problem hiding this comment.
@abhinavdahiya openshift-ansible is the "previous installer" referred to. It was capable of a large quantity of Day0 (install) configuration.
| 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 |
There was a problem hiding this comment.
The installer provides a guided experience for provisioning the cluster on a particular platform.
this line has become redundant?
There was a problem hiding this comment.
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.
| openshift-install --dir /path/to/something create install-config | ||
| ``` | ||
|
|
||
| After following the same interactive prompts you saw earlier when performing |
There was a problem hiding this comment.
After following the same interactive prompts as [basic-installation],
There was a problem hiding this comment.
I don't think we need to link on the same page? That seems excessive?
| 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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Are you suggesting a link-out to https://aws.amazon.com/ec2/instance-types/ ?
| aws: | ||
| type: m5.large | ||
| rootVolume: | ||
| iops: 700 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 | |||
There was a problem hiding this comment.
Hmm, do you think installer repo is the right place to point this BZs behavior?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Oops, thought this was installer repo :P
but I still think separating the BZ subscription requirements from definition here will be more useful.
There was a problem hiding this comment.
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.
| a worker and must be covered by a subscription. | ||
|
|
||
| ## More MachineSet Details | ||
| In [the cluster-scaling excercises](04-scaling-cluster.md) you explored the |
There was a problem hiding this comment.
The [cluster-scaling excercises](04-scaling-cluster.md) explore using
There was a problem hiding this comment.
I don't see the reason for this change? This seems like a grammar change suggestion but I'm not sure why.
| generation: 1 | ||
| labels: | ||
| sigs.k8s.io/cluster-api-cluster: 190125-3 | ||
| sigs.k8s.io/cluster-api-machine-role: worker |
There was a problem hiding this comment.
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.
|
Merging for now. Seems good enough. |
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?