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

最新master分支,创建只读账号报错 #537

Closed
ilanni2460 opened this issue Apr 27, 2019 · 3 comments
Closed

最新master分支,创建只读账号报错 #537

ilanni2460 opened this issue Apr 27, 2019 · 3 comments

Comments

@ilanni2460
Copy link
Contributor

最新master分支,创建只读账号报错,报错信息如下:

TASK [设置集群参数] *********************************************************************************************************************************************************************************
fatal: [192.168.0.184]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'CLUSTER_NAME' is undefined\n\nThe error appears to have been in '/etc/ansible/roles/deploy/create-read-kubeconfig.yml': line 26, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n # 设置集群参数,指定CA证书和apiserver地址\n - name: 设置集群参数\n ^ here\n\nexception type: <class 'ansible.errors.AnsibleUndefinedVariable'>\nexception: 'CLUSTER_NAME' is undefined"}

应该是没有识别到ansible定义的变量,现在手工处理,把其中的变量给替换掉。

@gjmzj
Copy link
Collaborator

gjmzj commented Apr 29, 2019

感谢提醒,我去测试看看,并尝试修复下

@gjmzj
Copy link
Collaborator

gjmzj commented May 1, 2019

已经优化只读kubeconfig的创建方式,详见提交 881a43a

@ilanni2460
Copy link
Contributor Author

@gjmzj @lixianyang 辛苦二位了

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