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

how to set up aws instances: instanceType and deviceMapping? #671

Closed
hongkailiu opened this issue Nov 14, 2018 · 6 comments
Closed

how to set up aws instances: instanceType and deviceMapping? #671

hongkailiu opened this issue Nov 14, 2018 · 6 comments

Comments

@hongkailiu
Copy link
Member

Version

$ ./bin/openshift-install version
./bin/openshift-install v0.3.0-208-g54b49cdf0fb6d1150c7a9d4102e2b785d5a0344d
Terraform v0.11.8

Your version of Terraform is out of date! The latest version
is 0.11.10. You can update by downloading from www.terraform.io/downloads.html

Platform (aws|libvirt|openstack):

aws

What happened?

I would like to know how to set up the instance type and device mapping

$ bin/openshift-install create manifests
$ vi ./tectonic/99_openshift-cluster-api_master-machines.yaml
...
        instanceType: m5.xlarge

$ bin/openshift-install create cluster --log-level=debug
  1. the modification on instanceType did not have impact. The created instances are still with the default t2.medium
  2. need a way to set up device mapping
$ oc version
oc v4.0.0-alpha.0+a148deb-572
kubernetes v1.11.0+d4cacc0
features: Basic-Auth GSSAPI Kerberos SPNEGO

Server https://hongkliu-api.devcluster.openshift.com:6443
kubernetes v1.11.0+d4cacc0

$ oc explain machine
error: Couldn't find resource for "cluster.k8s.io/v1alpha1, Kind=Machine"

What you expected to happen?

Would like to see how to set those properties up for aws instances.

How to reproduce it (as minimally and precisely as possible)?

See above.

$ your-commands-here

Anything else we need to know?

This is more of questions instead of bug/issue report.
Would like to know how to do things with installer.

References

  • enter text here.
@abhinavdahiya
Copy link
Contributor

So you can edit install-config be following https://github.com/openshift/installer/blob/master/docs/user/overview.md#multiple-invocations

Definition for options supported by installer:
https://godoc.org/github.com/openshift/installer/pkg/types#InstallConfig

need a way to set up device mapping

I don't think installer supports that option.

@hongkailiu
Copy link
Member Author

Thanks, @abhinavdahiya
It feel that I did the right steps for changing the instanceType (from https://github.com/openshift/installer/blob/master/docs/user/overview.md#multiple-invocations it is not clear which file I should edit for this purpose):

$ bin/openshift-install create manifests
$ vi ./tectonic/99_openshift-cluster-api_master-machines.yaml
...
        instanceType: m5.xlarge

$ bin/openshift-install create cluster --log-level=debug

However, the resulting cluster is still with t2.medium.
Let me know what I missed. Thanks.

@wking
Copy link
Member

wking commented Dec 19, 2018

#792 should fix this.

@akrzos
Copy link

akrzos commented Jan 7, 2019

Do we know when this might be merged so we can change instancetype of the initially deployed machines?

@wking
Copy link
Member

wking commented Jan 18, 2019

Worker handling might be fixed by #1076 if someone wants to give that a spin. #1088 is in flight with docs for adjusting these settings in the install-config.

@akrzos
Copy link

akrzos commented Jan 21, 2019

FWIW I can change the instancetype now:

Ex:

...
machines:
- name: master
  platform:
    aws:
      type: m5.large
  replicas: 3
- name: worker
  platform:
    aws:
      type: m5.large
  replicas: 3
...

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

No branches or pull requests

4 participants