Kubernetes发布常见问题
发布使用私有镜像
如果发布到 Kubernetes 集群的镜像是私有的用户需要在 Kubernetes 集群中进行配置已支持集群能够拉取私有镜像。阿里云Kubernetes用户请参考:
其它用户请参考Kubernetes官方文档进行配置
https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
使用证书创建集群时跳过TLS校验
当使用证书中声明了insecure-skip-tls-verify时,如下所示:
insecure-skip-tls-verify: true
需要用户在部署配置中手动勾选“跳过TLS校验”,否则发布任务失败并提示:
error: specifying a root certificates file with the insecure flag is not allowed
Kubectl YAML发布状态
云效中提供了使用下发Kubernetes YAML文件到集群中的能力支撑,云效已是否成功下发YAML作为任务执行成功失败条件,但是不校验具体的资源状态,比如通过Deployment创建出的Pod状态等。