今天是我第一次接触云效DevOps,学习过程很坎坷,主要原因还是我本身不太懂Kubernetes操作。
Kubernetes发布失败,日志打印:
[executionStep begins at 2023-11-26 08:00:37]
[INFO] PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[08:00:37] [SUCCESS] 获取 Credential 成功
[08:00:37] [INFO] 使用工作路径/root/workspace/wyg-cloud_docker
[08:00:37] [INFO] 执行步骤
[08:00:37] [INFO] PIPELINE_ID=2739453
[08:00:37] [INFO] PIPELINE_NAME=wyg-cloud-dev
[08:00:37] [INFO] BUILD_NUMBER=20
[08:00:37] [INFO] EMPLOYEE_ID=6561dba7654eaaddc60b1816
[08:00:37] [INFO] WORK_SPACE=/root/workspace
[08:00:37] [INFO] PROJECT_DIR=/root/workspace/wyg-cloud_docker
[08:00:37] [INFO] PLUGIN_DIR=/root/plugins
[08:00:37] [INFO] BUILD_JOB_ID=169481356
[08:00:37] [INFO] DEBUG=false
[08:00:37] [INFO] USE_REPLACE=true
[08:00:37] [INFO] SKIP_UNDEFINE_VARIABLE=true
[08:00:37] [INFO] ENABLE_APPSTACK_RELEASE_ORDER=false
[08:00:37] [INFO] SYSTEM_STEPS_STANDALONE_MODE=true
[08:00:37]
[08:00:37] ====================================
[08:00:37] CLUSTER TYPE ack
[08:00:37] ====================================
[08:00:37]
[08:00:37]
[08:00:37] [USER] KUBECTL_VERSION=v1.23.6
[08:00:37] [USER] CLUSTER_TYPE=ack
[08:00:37] [USER] NAMESPACE=default
[08:00:37] [USER] PATH_TO_YAML=/root/workspace/wyg-cloud_docker/
[08:00:37] [USER] INSECURE_SKIP_TLS_VERIFY=true
[08:00:37]
[08:00:37] [INFO] Kubernetes集群基本信息
[08:00:37] Client Version: v1.23.6
[08:00:37] Server Version: v1.26.3-aliyun.1
[08:00:37] WARNING: version difference between client (1.23) and server (1.26) exceeds the supported minor version skew of +/-1
[08:00:37]
[08:00:37] [INFO] 准备应用Manifests定义文件
[08:00:37] [INFO] 创建发布资源缓存目录.manifest
[08:00:37] {}
[08:00:37] [INFO] YAML模板处理成功 /root/workspace/wyg-cloud_docker/ -> .manifest
[08:00:37] [INFO] 所有部署资源:
[08:00:37] /root/workspace/wyg-cloud_docker/.manifest:
[08:00:37] total 0
[08:00:37] [ERROR] 没有找到发布的资源,请检查YAML路径配置
[08:00:37] [ERROR] BUILD ERROR
[08:00:37] [ERROR] 169481356
[08:00:37] [ERROR] 步骤运行失败,返回码: 1
日志中所提的YAML文件确实不懂,隐约有印象,但是不知道在哪里