问题描述
我正在使用circleCI进行部署,AKS版本为1.11,管道运行正常,但是在将AKS升级到1.14.6之后,在应用部署和服务对象文件时看到失败.
I am using circleCI for deployments, with AKS version 1.11 , the pipelines were working fine but after the AKS upgradation to 1.14.6, failure is seen while applying the deployment and service object files.
我在kubernetes集群上手动部署,没有出现任何错误,但是在通过circleCI部署时,在使用circleCI版本2时出现了以下错误
I deployed manually at kubernetes cluster, there didn't appear any error but while deploying through circleCI, I am getting following kind of errors while using version 2 of circleCI
error: SchemaError(io.k8s.api.extensions.v1beta1.DeploymentRollback):
invalid object doesn't have additional properties
或其他类型的错误出现-
or the other kind of error appears like -
error: SchemaError(io.k8s.api.core.v1.StorageOSVolumeSource): invalid
object doesn't have additional properties
推荐答案
1.14.6很可能不支持CircleCI中使用的kubectl版本.请注意,kubectl版本必须为1.n
,1.(n+1)
或1.(n-1)
,其中n是集群的次要版本.在这种情况下,您的kubectl必须至少为1.13.x或至多1.15.x
It's most likely that the version of kubectl used in CircleCI isn't supported by 1.14.6. Note that kubectl version must be either 1.n
, 1.(n+1)
or 1.(n-1)
where n is the minor version of the cluster. In this case your kubectl must be at least 1.13.x or at most 1.15.x
结帐 Kubernetes版本和版本倾斜支持政策有关更多详细信息.
Checkout Kubernetes version and version skew support policy for more details.
这篇关于集群从1.11升级到1.14.6后,通过circleCI部署的kubernetes工作部署文件失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!