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

Check whether the master is ready? failed #24

Open
luogenhua opened this issue Dec 2, 2024 · 1 comment
Open

Check whether the master is ready? failed #24

luogenhua opened this issue Dec 2, 2024 · 1 comment

Comments

@luogenhua
Copy link

  • name: "Check whether the master is ready?"
    shell: "kubectl get node | grep {{ hostvars[item].hostname.split('-')[-2:] | join('-') | lower }}-{{ item }}"
    register: master_status
    until: '"Ready" in master_status.stdout'
    retries: 5
    delay: 3
    delegate_to: "{{ groups['master'][0] }}"
    with_items:
    • "{{ groups['master'] }}"
      tags:
    • create_master_label
    • create_master_taint
    • create_label

执行到这里的时候失败,提示no resource ,有可能是啥原因?我配置了loadbalance.ip有关系吗?

@kubeop
Copy link
Owner

kubeop commented Dec 3, 2024

可以把inventory内容和group_vars/all.yml中loadbalance段的配置贴出来看一下

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

No branches or pull requests

2 participants