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

pkg/tfvars/aws: Drop custom subnets #698

Closed
wants to merge 1 commit into from

Conversation

wking
Copy link
Member

@wking wking commented Nov 18, 2018

This functionality was originally from 8324c21 (coreos/tectonic-installer#267), but we haven't exposed it in openshift-install (which has never used the parsers removed by f7a4e68, #403).

Currently we are unable to scale masters post-install, because auto-scaling etcd is difficult. Depending on how long that takes us to get working, we may need to re-enable this for masters later.

Workers are already managable via the cluster API and MachineSets, so folks who need custom worker subnets can create a cluster without workers and then launch their worker machine-sets directly as a day-2 operation. The cluster-API type chain is:

which is nice and generic, but a dead-end for structured configuration ;). Jumping over to the OpenShift AWS provider, there is an AWSMachineProviderConfig.Subnet. I don't see code for auto-creating those subnets, but an admin could manually create the subnet wherever they wanted and then use the cluster API to launch new workers into that subnet. And maybe there will be generic tooling to automate that subnet creation (setting up routing, etc.) to make that less tedious/error-prone.

Also in this space, see kubernetes/kops#1333 and here.

This functionality was originally from 8324c21 (AWS: VPC subnets with
custom CIDRs and AZs per workers / masters, 2017-04-20,
coreos/tectonic-installer#267), but we haven't exposed it in
openshift-install (which has never used the parsers removed by
f7a4e68, pkg/types/config: Drop ParseConfig and other Parse* methods,
2018-10-02, openshift#403).

Currently we are unable to scale masters post-install, because
auto-scaling etcd is difficult.  Depending on how long that takes us
to get working, we may need to re-enable this for masters later.

Workers are already managable via the cluster API and MachineSets, so
folks who need custom worker subnets can create a cluster without
workers and then launch their worker machine-sets directly as a day-2
operation.  The cluster-API type chain is:

* MachineSet.Spec [1]
* MachineSetSpec.Template [2]
* MachineTemplateSpec.Spec [3]
* MachineSpec.ProviderConfig [4]
* ProviderConfig.Value [5]
* RawExtension

which is nice and generic, but a dead-end for structured configuration
;).  Jumping over to the OpenShift AWS provider, there is an
AWSMachineProviderConfig.Subnet [6].  I don't see code for
auto-creating those subnets, but an admin could manually create the
subnet wherever they wanted and then use the cluster API to launch new
workers into that subnet.  And maybe there will be generic tooling to
automate that subnet creation (setting up routing, etc.) to make that
less tedious/error-prone.

Also in this space, see [7,8]

[1]: https://github.com/kubernetes-sigs/cluster-api/blob/0734939e05aeb64ab198e3feeee8b4e90ee5cbb2/pkg/apis/cluster/v1alpha1/machineset_types.go#L42
[2]: https://github.com/kubernetes-sigs/cluster-api/blob/0734939e05aeb64ab198e3feeee8b4e90ee5cbb2/pkg/apis/cluster/v1alpha1/machineset_types.go#L68-L71
[3]: https://github.com/kubernetes-sigs/cluster-api/blob/0734939e05aeb64ab198e3feeee8b4e90ee5cbb2/pkg/apis/cluster/v1alpha1/machineset_types.go#L84-L87
[4]: https://github.com/kubernetes-sigs/cluster-api/blob/0734939e05aeb64ab198e3feeee8b4e90ee5cbb2/pkg/apis/cluster/v1alpha1/machine_types.go#L62-L64
[5]: https://github.com/kubernetes-sigs/cluster-api/blob/0734939e05aeb64ab198e3feeee8b4e90ee5cbb2/pkg/apis/cluster/v1alpha1/common_types.go#L29-L34
[6]: https://github.com/openshift/cluster-api-provider-aws/blob/e6986093d1fbac2084c50b04fe2f78125ffca582/pkg/apis/awsproviderconfig/v1alpha1/awsmachineproviderconfig_types.go#L130-L131
[7]: kubernetes/kops#1333
[8]: https://github.com/kubernetes-sigs/cluster-api/blob/0734939e05aeb64ab198e3feeee8b4e90ee5cbb2/pkg/apis/cluster/v1alpha1/cluster_types.go#L62-L82
@openshift-ci-robot openshift-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Nov 18, 2018
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: wking

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 18, 2018
@wking wking force-pushed the drop-new-subnet-configs branch from 0178f20 to efbc74c Compare November 18, 2018 08:00
@openshift-ci-robot
Copy link
Contributor

@wking: PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci-robot openshift-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 3, 2018
@openshift-ci-robot
Copy link
Contributor

@wking: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
ci/prow/rhel-images efbc74c link /test rhel-images

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@wking
Copy link
Member Author

wking commented Feb 4, 2019

This was covered by #654.

@wking wking closed this Feb 4, 2019
@wking wking deleted the drop-new-subnet-configs branch February 4, 2019 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. platform/aws size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants