通过 terraform 在 AKS 节点池上运行 shell 脚本或自定义数据
我想通过 terraform 脚本在 AKS 节点池上运行 shell 脚本或自定义数据。我通过 terraform 通过 VMSS(虚拟机规模集)上的自定义数据运行 shell 脚本。同样,我想通过 AKS 节点池运行相同的 shell 脚本。我搜索了很多链接和方法,但找不到任何解决方案。有什么办法或者推荐吗?感谢您的帮助。一个月以来我一直在尝试这个解决方案,但无法得到正确的解决方案。
I would like to run shell script or custom data on AKS node pool via terraform script. I ran shell script via custom data on VMSS (Virtual machine scale set) through terraform.Similarly I would like to run the same shell script via AKS node pool. I searched many link and ways but couldn't get any solution for this. Is there any way or recommended this? Appreciate your help.I have been trying for this solution since a month but couldn't get proper solution.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我通过 deamonset 和 configmap 与 nodeinstaller 获得了解决方案。
下面的链接确实对我有帮助,但不是通过 terraform,因为 AKS 不支持通过 terraform 实现自动化的自定义脚本。(您好,我可以在 AKS 节点组中执行自定义脚本吗?)
参考链接:https://medium.com/@patnaikshekhar/initialize-your- aks-nodes-with-daemonsets-679fa81fd20e
https://github.com/patnaikshekhar/AKSNodeInstaller
daemonset.yml
示例configmap.yml
I have got my solution via deamonset and configmap with nodeinstaller.
Below links really helped me but not through terraform as AKS won't support custom script to automate via terraform.(Hi can I have a custom script to be executed in AKS node group?)
Reference links: https://medium.com/@patnaikshekhar/initialize-your-aks-nodes-with-daemonsets-679fa81fd20e
https://github.com/patnaikshekhar/AKSNodeInstaller
daemonset.yml
sampleconfigmap.yml