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

Support for custom kube node hostname during upgrades for AWS cloud provider #2088

Closed
mqasimsarfraz opened this issue Dec 15, 2017 · 3 comments · Fixed by #6347
Closed

Support for custom kube node hostname during upgrades for AWS cloud provider #2088

mqasimsarfraz opened this issue Dec 15, 2017 · 3 comments · Fixed by #6347
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Comments

@mqasimsarfraz
Copy link
Contributor

Is this a BUG REPORT or FEATURE REQUEST? (choose one):
Feature request

Currently there is a limitation to use internal hostnames in the inventory file while deploying kubernetes on AWS. I can understand that the limitation is coming from cloud provider [1][2] itself but it would be great if we can manage the mapping in kubespray. I am able to do fresh installs with custom hostname but since upgrades are doing kubectl node operations there is no way around it except updating the upgrade role to allow custom hostname. For example:

- name: See if node is in ready state
  shell: "{{ bin_dir }}/kubectl get nodes | grep {{ kube_node_name|default(inventory_hostname) }}"
  register: kubectl_nodes
  delegate_to: "{{ groups['kube-master'][0] }}"
  failed_when: false

I can add the tasks to get hostname using ec2_facts but we should leave that as a choice so no current workflow is impacted. Also, the default workflow with inventory_hostname will be retained till kube_node_name is defined.

Please let me know if owners agree to approve the feature request I will be happy to create the PR.

Environment:

  • Cloud provider or hardware configuration:
    AWS
@mqasimsarfraz mqasimsarfraz changed the title Support for custom node hostname during upgrades for AWS cloud provider Support for custom kube node hostname during upgrades for AWS cloud provider Dec 15, 2017
@Atoms Atoms added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Sep 21, 2018
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Apr 10, 2019
@fejta-bot
Copy link

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

@k8s-ci-robot
Copy link
Contributor

@fejta-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants