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