我正在尝试将一个示例应用程序推送到Knative,但是我遇到了以下错误消息: Revision "..." failed with message: Unable to fetch image ".": unsupported status code 401; body: Not Authorized Knative在EC2上设置正确,我已经创建了一个服务帐户和密钥来从ECR中拉出。我不确定为什么Knative不能访问我的私有AWS存储库,即使K8s (不是Knative)可以访问。
我最近将我的kubernetes部署服务转换为knative无服务器应用程序。以前,我使用kubectl set image命令将映像从CI更新到部署的最新版本,但它似乎不适用于knative服务,例如,我尝试的命令是:kubectl set image ksvc/hello-worldhello-world=some-new-image --record 有没有办法在不访问原始yaml配置的情况下使用kubectl命令更新knative应用程序的图像?
但是,我正在尝试使用Tekton pipeline作为CI/CD来部署到一个knative服务中,它应该使用knctl或带有knative service yaml的kubectl,而不是部署的yaml就像这样kind: Service name:The namespace the app will use template: