Starting Kubernetes deployment
Loading configuration: /home/jenkins/agent/workspace/1O0_mall-jenkinsfile-cicd_master/mall-gateway/deploy/mall-gateway-deploy.yaml
ERROR: ERROR: Cannot create property=spec for JavaBean=class V1Deployment {
    apiVersion: apps/v1
    kind: Deployment
    metadata: class V1ObjectMeta {
        annotations: null
        clusterName: null
        creationTimestamp: null
        deletionGracePeriodSeconds: null
        deletionTimestamp: null
        finalizers: null
        generateName: null
        generation: null
        initializers: null
        labels: {app=mall-gateway}
        managedFields: null
        name: mall-gateway
        namespace: mall
        ownerReferences: null
        resourceVersion: null
        selfLink: null
        uid: null
    }
    spec: null
    status: null
}
 in 'reader', line 1, column 1:
    kind: Deployment
    ^
Cannot create property=template for JavaBean=class V1DeploymentSpec {
    minReadySeconds: null
    paused: null
    progressDeadlineSeconds: null
    replicas: 1
    revisionHistoryLimit: null
    selector: class V1LabelSelector {
        matchExpressions: null
        matchLabels: {app=mall-gateway}
    }
    strategy: null
    template: null
}
 in 'reader', line 9, column 3:
      replicas: 1
      ^
Cannot create property=spec for JavaBean=class V1PodTemplateSpec {
    metadata: class V1ObjectMeta {
        annotations: null
        clusterName: null
        creationTimestamp: null
        deletionGracePeriodSeconds: null
        deletionTimestamp: null
        finalizers: null
        generateName: null
        generation: null
        initializers: null
        labels: {app=mall-gateway}
        managedFields: null
        name: null
        namespace: null
        ownerReferences: null
        resourceVersion: null
        selfLink: null
        uid: null
    }
    spec: null
}
 in 'reader', line 14, column 5:
        metadata:
        ^
Cannot create property=containers for JavaBean=class V1PodSpec {
    activeDeadlineSeconds: null
    affinity: null
    automountServiceAccountToken: null
    containers: []
    dnsConfig: null
    dnsPolicy: null
    enableServiceLinks: null
    hostAliases: null
    hostIPC: null
    hostNetwork: null
    hostPID: null
    hostname: null
    imagePullSecrets: null
    initContainers: null
    nodeName: null
    nodeSelector: null
    preemptionPolicy: null
    priority: null
    priorityClassName: null
    readinessGates: null
    restartPolicy: null
    runtimeClassName: null
    schedulerName: null
    securityContext: null
    serviceAccount: null
    serviceAccountName: null
    shareProcessNamespace: null
    subdomain: null
    terminationGracePeriodSeconds: null
    tolerations: null
    volumes: null
}
 in 'reader', line 18, column 7:
          containers:
          ^
Cannot create property=resource for JavaBean=class V1Container {
    args: null
    command: null
    env: null
    envFrom: null
    image: docker.io/1457240466/mall-gateway:latest
    imagePullPolicy: null
    lifecycle: null
    livenessProbe: null
    name: mall-gateway
    ports: [class V1ContainerPort {
        containerPort: 8080
        hostIP: null
        hostPort: null
        name: null
        protocol: TCP
    }]
    readinessProbe: null
    resources: null
    securityContext: null
    stdin: null
    stdinOnce: null
    terminationMessagePath: null
    terminationMessagePolicy: null
    tty: null
    volumeDevices: null
    volumeMounts: null
    workingDir: null
}
 in 'reader', line 19, column 9:
          - name: mall-gateway
            ^
Unable to find property 'resource' on class: io.kubernetes.client.openapi.models.V1Container
 in 'reader', line 25, column 11:
              limits:
              ^

 in 'reader', line 19, column 7:
          - name: mall-gateway
          ^

 in 'reader', line 18, column 7:
          containers:
          ^

 in 'reader', line 14, column 5:
        metadata:
        ^

 in 'reader', line 9, column 3:
      replicas: 1
      ^

hudson.remoting.ProxyException: Cannot create property=spec for JavaBean=class V1Deployment {
    apiVersion: apps/v1
    kind: Deployment
    metadata: class V1ObjectMeta {
        annotations: null
        clusterName: null
        creationTimestamp: null
        deletionGracePeriodSeconds: null
        deletionTimestamp: null
        finalizers: null
        generateName: null
        generation: null
        initializers: null
        labels: {app=mall-gateway}
        managedFields: null
        name: mall-gateway
        namespace: mall
        ownerReferences: null
        resourceVersion: null
        selfLink: null
        uid: null
    }
    spec: null
    status: null
}
 in 'reader', line 1, column 1:
    kind: Deployment
    ^
Cannot create property=template for JavaBean=class V1DeploymentSpec {
    minReadySeconds: null
    paused: null
    progressDeadlineSeconds: null
    replicas: 1
    revisionHistoryLimit: null
    selector: class V1LabelSelector {
        matchExpressions: null
        matchLabels: {app=mall-gateway}
    }
    strategy: null
    template: null
}
 in 'reader', line 9, column 3:
      replicas: 1
      ^
Cannot create property=spec for JavaBean=class V1PodTemplateSpec {
    metadata: class V1ObjectMeta {
        annotations: null
        clusterName: null
        creationTimestamp: null
        deletionGracePeriodSeconds: null
        deletionTimestamp: null
        finalizers: null
        generateName: null
        generation: null
        initializers: null
        labels: {app=mall-gateway}
        managedFields: null
        name: null
        namespace: null
        ownerReferences: null
        resourceVersion: null
        selfLink: null
        uid: null
    }
    spec: null
}
 in 'reader', line 14, column 5:
        metadata:
        ^
Cannot create property=containers for JavaBean=class V1PodSpec {
    activeDeadlineSeconds: null
    affinity: null
    automountServiceAccountToken: null
    containers: []
    dnsConfig: null
    dnsPolicy: null
    enableServiceLinks: null
    hostAliases: null
    hostIPC: null
    hostNetwork: null
    hostPID: null
    hostname: null
    imagePullSecrets: null
    initContainers: null
    nodeName: null
    nodeSelector: null
    preemptionPolicy: null
    priority: null
    priorityClassName: null
    readinessGates: null
    restartPolicy: null
    runtimeClassName: null
    schedulerName: null
    securityContext: null
    serviceAccount: null
    serviceAccountName: null
    shareProcessNamespace: null
    subdomain: null
    terminationGracePeriodSeconds: null
    tolerations: null
    volumes: null
}
 in 'reader', line 18, column 7:
          containers:
          ^
Cannot create property=resource for JavaBean=class V1Container {
    args: null
    command: null
    env: null
    envFrom: null
    image: docker.io/1457240466/mall-gateway:latest
    imagePullPolicy: null
    lifecycle: null
    livenessProbe: null
    name: mall-gateway
    ports: [class V1ContainerPort {
        containerPort: 8080
        hostIP: null
        hostPort: null
        name: null
        protocol: TCP
    }]
    readinessProbe: null
    resources: null
    securityContext: null
    stdin: null
    stdinOnce: null
    terminationMessagePath: null
    terminationMessagePolicy: null
    tty: null
    volumeDevices: null
    volumeMounts: null
    workingDir: null
}
 in 'reader', line 19, column 9:
          - name: mall-gateway
            ^
Unable to find property 'resource' on class: io.kubernetes.client.openapi.models.V1Container
 in 'reader', line 25, column 11:
              limits:
              ^

 in 'reader', line 19, column 7:
          - name: mall-gateway
          ^

 in 'reader', line 18, column 7:
          containers:
          ^

 in 'reader', line 14, column 5:
        metadata:
        ^

 in 'reader', line 9, column 3:
      replicas: 1
      ^

	at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:270)
	at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.construct(Constructor.java:149)
	at org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.construct(Constructor.java:309)
	at org.yaml.snakeyaml.constructor.BaseConstructor.constructObjectNoCheck(BaseConstructor.java:216)
	at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:205)
	at io.kubernetes.client.util.Yaml$CustomConstructor.constructObject(Yaml.java:337)
	at org.yaml.snakeyaml.constructor.BaseConstructor.constructDocument(BaseConstructor.java:164)
	at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:148)
	at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:525)
	at org.yaml.snakeyaml.Yaml.loadAs(Yaml.java:485)
	at io.kubernetes.client.util.Yaml.loadAs(Yaml.java:224)
	at io.kubernetes.client.util.Yaml.modelMapper(Yaml.java:494)
	at io.kubernetes.client.util.Yaml.loadAll(Yaml.java:272)
	at com.microsoft.jenkins.kubernetes.wrapper.KubernetesClientWrapper.apply(KubernetesClientWrapper.java:236)
	at com.microsoft.jenkins.kubernetes.command.DeploymentCommand$DeploymentTask.doCall(DeploymentCommand.java:172)
	at com.microsoft.jenkins.kubernetes.command.DeploymentCommand$DeploymentTask.call(DeploymentCommand.java:124)
	at com.microsoft.jenkins.kubernetes.command.DeploymentCommand$DeploymentTask.call(DeploymentCommand.java:106)
	at hudson.remoting.UserRequest.perform(UserRequest.java:212)
	at hudson.remoting.UserRequest.perform(UserRequest.java:54)
	at hudson.remoting.Request$2.run(Request.java:369)
	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:93)
	at java.lang.Thread.run(Thread.java:748)
	Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from 10.244.1.96/10.244.1.96:41986
		at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1743)
		at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:357)
		at hudson.remoting.Channel.call(Channel.java:957)
		at hudson.FilePath.act(FilePath.java:1160)
		at com.microsoft.jenkins.kubernetes.command.DeploymentCommand.execute(DeploymentCommand.java:68)
		at com.microsoft.jenkins.kubernetes.command.DeploymentCommand.execute(DeploymentCommand.java:45)
		at com.microsoft.jenkins.azurecommons.command.CommandService.runCommand(CommandService.java:88)
		at com.microsoft.jenkins.azurecommons.command.CommandService.execute(CommandService.java:96)
		at com.microsoft.jenkins.azurecommons.command.CommandService.executeCommands(CommandService.java:75)
		at com.microsoft.jenkins.azurecommons.command.BaseCommandContext.executeCommands(BaseCommandContext.java:77)
		at com.microsoft.jenkins.kubernetes.KubernetesDeploy.perform(KubernetesDeploy.java:42)
		at com.microsoft.jenkins.azurecommons.command.SimpleBuildStepExecution.run(SimpleBuildStepExecution.java:54)
		at com.microsoft.jenkins.azurecommons.command.SimpleBuildStepExecution.run(SimpleBuildStepExecution.java:35)
		at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
		at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
		at java.util.concurrent.FutureTask.run(FutureTask.java:266)
		at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
		at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
		... 1 more
Caused by: hudson.remoting.ProxyException: Cannot create property=template for JavaBean=class V1DeploymentSpec {
    minReadySeconds: null
    paused: null
    progressDeadlineSeconds: null
    replicas: 1
    revisionHistoryLimit: null
    selector: class V1LabelSelector {
        matchExpressions: null
        matchLabels: {app=mall-gateway}
    }
    strategy: null
    template: null
}
 in 'reader', line 9, column 3:
      replicas: 1
      ^
Cannot create property=spec for JavaBean=class V1PodTemplateSpec {
    metadata: class V1ObjectMeta {
        annotations: null
        clusterName: null
        creationTimestamp: null
        deletionGracePeriodSeconds: null
        deletionTimestamp: null
        finalizers: null
        generateName: null
        generation: null
        initializers: null
        labels: {app=mall-gateway}
        managedFields: null
        name: null
        namespace: null
        ownerReferences: null
        resourceVersion: null
        selfLink: null
        uid: null
    }
    spec: null
}
 in 'reader', line 14, column 5:
        metadata:
        ^
Cannot create property=containers for JavaBean=class V1PodSpec {
    activeDeadlineSeconds: null
    affinity: null
    automountServiceAccountToken: null
    containers: []
    dnsConfig: null
    dnsPolicy: null
    enableServiceLinks: null
    hostAliases: null
    hostIPC: null
    hostNetwork: null
    hostPID: null
    hostname: null
    imagePullSecrets: null
    initContainers: null
    nodeName: null
    nodeSelector: null
    preemptionPolicy: null
    priority: null
    priorityClassName: null
    readinessGates: null
    restartPolicy: null
    runtimeClassName: null
    schedulerName: null
    securityContext: null
    serviceAccount: null
    serviceAccountName: null
    shareProcessNamespace: null
    subdomain: null
    terminationGracePeriodSeconds: null
    tolerations: null
    volumes: null
}
 in 'reader', line 18, column 7:
          containers:
          ^
Cannot create property=resource for JavaBean=class V1Container {
    args: null
    command: null
    env: null
    envFrom: null
    image: docker.io/1457240466/mall-gateway:latest
    imagePullPolicy: null
    lifecycle: null
    livenessProbe: null
    name: mall-gateway
    ports: [class V1ContainerPort {
        containerPort: 8080
        hostIP: null
        hostPort: null
        name: null
        protocol: TCP
    }]
    readinessProbe: null
    resources: null
    securityContext: null
    stdin: null
    stdinOnce: null
    terminationMessagePath: null
    terminationMessagePolicy: null
    tty: null
    volumeDevices: null
    volumeMounts: null
    workingDir: null
}
 in 'reader', line 19, column 9:
          - name: mall-gateway
            ^
Unable to find property 'resource' on class: io.kubernetes.client.openapi.models.V1Container
 in 'reader', line 25, column 11:
              limits:
              ^

 in 'reader', line 19, column 7:
          - name: mall-gateway
          ^

 in 'reader', line 18, column 7:
          containers:
          ^

 in 'reader', line 14, column 5:
        metadata:
        ^

	at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:270)
	at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.construct(Constructor.java:149)
	at org.yaml.snakeyaml.constructor.BaseConstructor.constructObjectNoCheck(BaseConstructor.java:216)
	at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:205)
	at io.kubernetes.client.util.Yaml$CustomConstructor.constructObject(Yaml.java:337)
	at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:247)
	... 25 more
Caused by: hudson.remoting.ProxyException: Cannot create property=spec for JavaBean=class V1PodTemplateSpec {
    metadata: class V1ObjectMeta {
        annotations: null
        clusterName: null
        creationTimestamp: null
        deletionGracePeriodSeconds: null
        deletionTimestamp: null
        finalizers: null
        generateName: null
        generation: null
        initializers: null
        labels: {app=mall-gateway}
        managedFields: null
        name: null
        namespace: null
        ownerReferences: null
        resourceVersion: null
        selfLink: null
        uid: null
    }
    spec: null
}
 in 'reader', line 14, column 5:
        metadata:
        ^
Cannot create property=containers for JavaBean=class V1PodSpec {
    activeDeadlineSeconds: null
    affinity: null
    automountServiceAccountToken: null
    containers: []
    dnsConfig: null
    dnsPolicy: null
    enableServiceLinks: null
    hostAliases: null
    hostIPC: null
    hostNetwork: null
    hostPID: null
    hostname: null
    imagePullSecrets: null
    initContainers: null
    nodeName: null
    nodeSelector: null
    preemptionPolicy: null
    priority: null
    priorityClassName: null
    readinessGates: null
    restartPolicy: null
    runtimeClassName: null
    schedulerName: null
    securityContext: null
    serviceAccount: null
    serviceAccountName: null
    shareProcessNamespace: null
    subdomain: null
    terminationGracePeriodSeconds: null
    tolerations: null
    volumes: null
}
 in 'reader', line 18, column 7:
          containers:
          ^
Cannot create property=resource for JavaBean=class V1Container {
    args: null
    command: null
    env: null
    envFrom: null
    image: docker.io/1457240466/mall-gateway:latest
    imagePullPolicy: null
    lifecycle: null
    livenessProbe: null
    name: mall-gateway
    ports: [class V1ContainerPort {
        containerPort: 8080
        hostIP: null
        hostPort: null
        name: null
        protocol: TCP
    }]
    readinessProbe: null
    resources: null
    securityContext: null
    stdin: null
    stdinOnce: null
    terminationMessagePath: null
    terminationMessagePolicy: null
    tty: null
    volumeDevices: null
    volumeMounts: null
    workingDir: null
}
 in 'reader', line 19, column 9:
          - name: mall-gateway
            ^
Unable to find property 'resource' on class: io.kubernetes.client.openapi.models.V1Container
 in 'reader', line 25, column 11:
              limits:
              ^

 in 'reader', line 19, column 7:
          - name: mall-gateway
          ^

 in 'reader', line 18, column 7:
          containers:
          ^

	at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:270)
	at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.construct(Constructor.java:149)
	at org.yaml.snakeyaml.constructor.BaseConstructor.constructObjectNoCheck(BaseConstructor.java:216)
	at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:205)
	at io.kubernetes.client.util.Yaml$CustomConstructor.constructObject(Yaml.java:337)
	at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:247)
	... 30 more
Caused by: hudson.remoting.ProxyException: Cannot create property=containers for JavaBean=class V1PodSpec {
    activeDeadlineSeconds: null
    affinity: null
    automountServiceAccountToken: null
    containers: []
    dnsConfig: null
    dnsPolicy: null
    enableServiceLinks: null
    hostAliases: null
    hostIPC: null
    hostNetwork: null
    hostPID: null
    hostname: null
    imagePullSecrets: null
    initContainers: null
    nodeName: null
    nodeSelector: null
    preemptionPolicy: null
    priority: null
    priorityClassName: null
    readinessGates: null
    restartPolicy: null
    runtimeClassName: null
    schedulerName: null
    securityContext: null
    serviceAccount: null
    serviceAccountName: null
    shareProcessNamespace: null
    subdomain: null
    terminationGracePeriodSeconds: null
    tolerations: null
    volumes: null
}
 in 'reader', line 18, column 7:
          containers:
          ^
Cannot create property=resource for JavaBean=class V1Container {
    args: null
    command: null
    env: null
    envFrom: null
    image: docker.io/1457240466/mall-gateway:latest
    imagePullPolicy: null
    lifecycle: null
    livenessProbe: null
    name: mall-gateway
    ports: [class V1ContainerPort {
        containerPort: 8080
        hostIP: null
        hostPort: null
        name: null
        protocol: TCP
    }]
    readinessProbe: null
    resources: null
    securityContext: null
    stdin: null
    stdinOnce: null
    terminationMessagePath: null
    terminationMessagePolicy: null
    tty: null
    volumeDevices: null
    volumeMounts: null
    workingDir: null
}
 in 'reader', line 19, column 9:
          - name: mall-gateway
            ^
Unable to find property 'resource' on class: io.kubernetes.client.openapi.models.V1Container
 in 'reader', line 25, column 11:
              limits:
              ^

 in 'reader', line 19, column 7:
          - name: mall-gateway
          ^

	at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:270)
	at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.construct(Constructor.java:149)
	at org.yaml.snakeyaml.constructor.BaseConstructor.constructObjectNoCheck(BaseConstructor.java:216)
	at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:205)
	at io.kubernetes.client.util.Yaml$CustomConstructor.constructObject(Yaml.java:337)
	at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:247)
	... 35 more
Caused by: hudson.remoting.ProxyException: Cannot create property=resource for JavaBean=class V1Container {
    args: null
    command: null
    env: null
    envFrom: null
    image: docker.io/1457240466/mall-gateway:latest
    imagePullPolicy: null
    lifecycle: null
    livenessProbe: null
    name: mall-gateway
    ports: [class V1ContainerPort {
        containerPort: 8080
        hostIP: null
        hostPort: null
        name: null
        protocol: TCP
    }]
    readinessProbe: null
    resources: null
    securityContext: null
    stdin: null
    stdinOnce: null
    terminationMessagePath: null
    terminationMessagePolicy: null
    tty: null
    volumeDevices: null
    volumeMounts: null
    workingDir: null
}
 in 'reader', line 19, column 9:
          - name: mall-gateway
            ^
Unable to find property 'resource' on class: io.kubernetes.client.openapi.models.V1Container
 in 'reader', line 25, column 11:
              limits:
              ^

	at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:270)
	at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.construct(Constructor.java:149)
	at org.yaml.snakeyaml.constructor.BaseConstructor.constructObjectNoCheck(BaseConstructor.java:216)
	at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:205)
	at io.kubernetes.client.util.Yaml$CustomConstructor.constructObject(Yaml.java:337)
	at org.yaml.snakeyaml.constructor.BaseConstructor.constructSequenceStep2(BaseConstructor.java:376)
	at org.yaml.snakeyaml.constructor.BaseConstructor.constructSequence(BaseConstructor.java:360)
	at org.yaml.snakeyaml.constructor.Constructor$ConstructSequence.construct(Constructor.java:516)
	at org.yaml.snakeyaml.constructor.BaseConstructor.constructObjectNoCheck(BaseConstructor.java:216)
	at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:205)
	at io.kubernetes.client.util.Yaml$CustomConstructor.constructObject(Yaml.java:337)
	at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:247)
	... 40 more
Caused by: hudson.remoting.ProxyException: org.yaml.snakeyaml.error.YAMLException: Unable to find property 'resource' on class: io.kubernetes.client.openapi.models.V1Container
	at org.yaml.snakeyaml.introspector.PropertyUtils.getProperty(PropertyUtils.java:159)
	at org.yaml.snakeyaml.introspector.PropertyUtils.getProperty(PropertyUtils.java:148)
	at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.getProperty(Constructor.java:287)
	at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:208)
	... 51 more
Kubernetes deployment ended with HasError

3.1都已经快发版了,如果不是生产环境的话,建议使用更高版本的

    nan-nan 本月会发布,具体信息请关注社区公众号的消息!

    5 天 后

    qinghuan-chain 还是要根据错误提示来解决问题,用kubectl和jenkins插件的区别在于jenkins插件中指定了特定的k8s资源版本,如果这种方法不行的话,建议使用kubectl

    3 个月 后

    解决了没? 碰到同样问题了 K8S 1.19版本 kubesphere 3.1.0的版本一样存在

      JageChen 目前我们不推荐使用 kubernetesDeploy 插件进行部署。正如 @Rick 所说,如果确认资源文件没问题,可以考虑使用 kubectl 进行部署。

        18 天 后
        4 个月 后
        1 个月 后
        10 个月 后

        Rick 现在这问题解决了吗 我用了kubesphere3.3版本,k8s版本v1.20,也出现了此问题

          guolin302
          可以使用持续部署的功能来替代,持续部署利用 argocd,将代码仓库中部署配置部署到 k8s 集群中。
          或者如果在流水线中使用的话,可以将 kubernetesDeploy 替换成:

          withCredentials([kubeconfigFile(credentialsId : 'self' ,variable : 'KUBECONFIG' ,)]) {
                      sh 'envsubst < deploy.yaml | kubectl apply -f -'
                    }
          
          或
          
          withCredentials([kubeconfigContent(credentialsId : 'self' ,variable : 'KUBECONFIG_CONFIG' ,)]) {
                      sh 'mkdir -p ~/.kube/'
                      sh 'echo "$KUBECONFIG_CONFIG" > ~/.kube/config'
                      sh 'envsubst < deploy.yaml | kubectl apply -f -'
                    }