Troubleshooting a kubernetes resource file creation failure

Source: Internet
Author: User

When creating RC Kubernetes in Jenkins today, check the target Yaml file times for the following error:

 +/opt/jenkins/kube/kubectl-s Http:// 10. xx.xx.xx:8080 create-f./websituationanalysis2.0/src/websituationanalysis/rc.yaml  Error Validating  " ./websituationanalysis2.0/src/websituationanalysis/ Rc.yaml   ": Error validating data: [Unexpected type: object , unexpected type: object , unexpected type: object ]; if  choose to ignore these errors, turn validation off with--validate=false  build step   " execute Shell   "  marked build as Failurefinished:failure  

Check the Yaml file for no syntax errors and find the cause of the problem in the Kubernetes project address:

Updating go-restful to generate

Verify that the Kubectl version on the Jenkins server is 1.2, so upgrade to the 1.3.4 version and re-create RC successfully in Jenkins.

Troubleshooting a kubernetes resource file creation failure

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.