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

Switch bash to cloud config #510

Merged
merged 23 commits into from
Feb 8, 2019

Conversation

sfzylad
Copy link
Contributor

@sfzylad sfzylad commented Jan 22, 2019

What this PR does / why we need it:

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #205

Special notes for your reviewer:

Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.

Release note:


@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jan 22, 2019
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jan 22, 2019
@k8s-ci-robot
Copy link
Contributor

Hi @sfzylad. Thanks for your PR.

I'm waiting for a kubernetes-sigs or kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@randomvariable
Copy link
Member

Bit more to this one.

@detiber's been working on a kubeadm module for cloud-init. Probably worth a sync up.

@sfzylad
Copy link
Contributor Author

sfzylad commented Jan 22, 2019

@randomvariable, thanks for heads up.
@detiber, could you point me to the module you worked on?

@vincepri
Copy link
Member

Not sure of the current status, but there is an old PR open around cloud-init #96

@sfzylad
Copy link
Contributor Author

sfzylad commented Jan 23, 2019

Yeah, I've found this one too and I wondered about the status as this PR since the last commit there has been done in September last year.

@ashish-amarnath
Copy link
Contributor

Hi @sfzylad 👋
If you do continue to work on this I have this PR #502 that kinda simplifies the bash script, removing the kubectl commands that are run. This should simplify the switch to cloud-config.

@sfzylad
Copy link
Contributor Author

sfzylad commented Jan 23, 2019

Hi @ashish-amarnath 👋

I've got node to work with cloud-config (I'm about to switch control plane too). It still uses text/template but makes it a bit less magical. Please tell me your thoughts.

pkg/cloud/aws/services/userdata/userdata.go Outdated Show resolved Hide resolved
pkg/cloud/aws/services/userdata/node.go Outdated Show resolved Hide resolved
pkg/cloud/aws/services/userdata/node.go Outdated Show resolved Hide resolved
pkg/cloud/aws/services/userdata/node.go Show resolved Hide resolved
@vincepri
Copy link
Member

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jan 29, 2019
@sfzylad sfzylad force-pushed the cloud-config branch 2 times, most recently from d6dc8d6 to 3b2df18 Compare February 6, 2019 06:01
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Feb 6, 2019
@sfzylad
Copy link
Contributor Author

sfzylad commented Feb 6, 2019

This PR assumes #538 is merged, otherwise ami object in machines.yaml manifest has to be set to custom AMI.

@sfzylad sfzylad changed the title [WIP] Switch bash to cloud config Switch bash to cloud config Feb 7, 2019
@k8s-ci-robot k8s-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 7, 2019
localAPIEndpoint:
advertiseAddress: {{ "{{ ds.meta_data.local_ipv4 }}" }}
bindPort: 6443
kubeadm:
Copy link
Contributor

@ashish-amarnath ashish-amarnath Feb 7, 2019

Choose a reason for hiding this comment

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

can we also keep the --v=10? It was super useful in debugging.

Copy link
Member

Choose a reason for hiding this comment

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

To add support, we'll need to extend the cloud-init module here: https://github.com/detiber/cloud-init/tree/cluster-api

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is it something that we want in scope of solving #205?

Copy link
Member

Choose a reason for hiding this comment

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

I don't think it is in scope for #205 @ashish-amarnath do you mind filing an issue for followup?

Copy link
Contributor

@ashish-amarnath ashish-amarnath Feb 8, 2019

Choose a reason for hiding this comment

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

created #559

@detiber
Copy link
Member

detiber commented Feb 8, 2019

/check-cla

@detiber
Copy link
Member

detiber commented Feb 8, 2019

/approve
/assign @chuckha

Leaving lgtm to @chuckha

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: detiber, sfzylad

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 8, 2019
@chuckha
Copy link
Contributor

chuckha commented Feb 8, 2019

/lgtm

thank you!

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 8, 2019
@k8s-ci-robot k8s-ci-robot merged commit d9e9820 into kubernetes-sigs:master Feb 8, 2019
@sfzylad sfzylad deleted the cloud-config branch February 11, 2019 06:28
damdo pushed a commit to damdo/cluster-api-provider-aws that referenced this pull request May 22, 2024
…-to-log

OCPBUGS-33170: All containers must fallback to logs on error
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Switch machine actuator to use cloud-config rather than startup script
7 participants