我正在尝试通过章鱼将yaml文件部署到现有的Azure kubernetes集群中,
我使用的命令是在章鱼步骤kubectl apply -f modelservicedeploy.yml
中运行的powershell脚本中
但是我遇到了以下错误,
Calamari.exe : ObjectNotFound: The term 'kubectl' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
kubectl
已安装,并且已将其添加到环境变量PATH中,也尝试从该位置执行它,但仍无法正常工作
有什么想法吗?
谢谢
答案 0 :(得分:0)
使用不同的工具出现相同的错误:
Calamari.exe : ObjectNotFound: The term 'XXX' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
问题原来是此错误:https://github.com/OctopusDeploy/Issues/issues/5755
Windows Server 2019
+ .net framework 4.7.2
的组合会导致脚本在将任何输出写入stdout
时退出并出现上述错误。
解决方案是安装.Net framework 4.8
。