创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。如果未按模板创建问题,管理员有权关闭问题。
确保帖子格式清晰易读,用 markdown code block 语法格式化代码块。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。
操作系统信息
物理机,Centos7.9/Ubuntu22.04,8C/16G
Kubernetes版本信息
Client Version: version.Info{Major:“1”, Minor:“22”, GitVersion:“v1.22.12”, GitCommit:“b058e1760c79f46a834ba59bd7a3486ecf28237d”, GitTreeState:“clean”, BuildDate:“2022-07-13T14:59:18Z”, GoVersion:“go1.16.15”, Compiler:“gc”, Platform:“linux/amd64”}
Server Version: version.Info{Major:“1”, Minor:“22”, GitVersion:“v1.22.12”, GitCommit:“b058e1760c79f46a834ba59bd7a3486ecf28237d”, GitTreeState:“clean”, BuildDate:“2022-07-13T14:53:39Z”, GoVersion:“go1.16.15”, Compiler:“gc”, Platform:“linux/amd64”}
容器运行时
Client:
Version: 24.0.9
API version: 1.43
Go version: go1.20.13
Git commit: 2936816
Built: Thu Feb 1 00:47:46 2024
OS/Arch: linux/amd64
Context: default
Server: Docker Engine - Community
Engine:
Version: 24.0.9
API version: 1.43 (minimum version 1.12)
Go version: go1.20.13
Git commit: fca702d
Built: Thu Feb 1 00:49:16 2024
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: v1.7.13
GitCommit: 7c3aca7a610df76212171d200ca3811ff6096eb8
runc:
Version: 1.1.12
GitCommit: v1.1.12-0-g51d5e94
docker-init:
Version: 0.19.0
GitCommit: de40ad0
KubeSphere版本信息
v3.4.1。在线安装。使用kk安装。
问题是什么
通过ClusterStepTemplates创建Jenkins第三方插件Steps出现问题
ClusterStepTemplates模板
apiVersion: devops.kubesphere.io/v1alpha3
kind: ClusterStepTemplate
metadata:
annotations:
devops.kubesphere.io/descriptionEN: Deploy a WAR to Tomcat
devops.kubesphere.io/descriptionZH: 部署WAR包到Tomcat
devops.kubesphere.io/displayNameEN: DeployWarTomcat
devops.kubesphere.io/displayNameZH: DeployWarTomcat
meta.helm.sh/release-name: devops
meta.helm.sh/release-namespace: kubesphere-devops-system
labels:
app.kubernetes.io/managed-by: Helm
step.devops.kubesphere.io/category: Deploy
name: deploy-war-tomcat
spec:
parameters:
- display: Tomcat URL
name: url
type: string
required: true
- display: Credential Name
name: credentialsId
type: secret
- display: Manager Context Path
name: path
required: false
- display: War File
name: war
defaultValue: '**/*.war'
required: true
- display: War Context Path
name: context
required: false
runtime: dsl
template: |
{
"arguments": [
{
"key": "adapters",
"value": {
"isLiteral": false,
"value": "[tomcat7(path: '{{.param.path}}', url: '{{.param.url}}', credentialsId: '{{.param.credentialsId.name}}']"
}
},
{
"key": "war",
"value": {
"isLiteral": false,
"value": '{{.param.war}}'
}
},
{
"key": "onFailure",
"value": {
"isLiteral": true,
"value": false
}
}
],
"name": "deploy"
}
目前在kubesphere-system跟kubesphere-devops-system中的相关pod都未找到具体报错日志
在kubesphere的web页面保存该step的时候请求的render接口也正常返回,但网页右上角提示错误(上图)
所使用的Jenkins插件已经在devops系统的Jenkins里安装
该插件对应语法
https://www.jenkins.io/doc/pipeline/steps/deploy/
请问这种情况应该怎么debug呢?