io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: POST at: https://192.168.64.12:8443/apis/extensions/v1beta1/namespaces/itest-c2bebd31-2a48-4b8a-b0af-7572bf735479/deployments. Message: Deployment.extensions "camel-spring" is invalid: spec.template.spec.containers: Required value. Received status: Status(apiVersion=v1, code=422, details=StatusDetails(causes=[StatusCause(field=spec.template.spec.containers, message=Required value, reason=FieldValueRequired, additionalProperties={})], group=extensions, kind=Deployment, name=camel-spring, retryAfterSeconds=null, additionalProperties={}), kind=Status, message=Deployment.extensions "camel-spring" is invalid: spec.template.spec.containers: Required value, metadata=ListMeta(resourceVersion=null, selfLink=null, additionalProperties={}), reason=Invalid, status=Failure, additionalProperties={}).. Deployment(apiVersion=extensions/v1beta1, kind=Deployment, metadata=ObjectMeta(annotations={fabric8.io/iconUrl=img/icons/camel.svg, fabric8.io/metrics-path=dashboard/file/camel-routes.json/?var-project=camel-spring&var-version=1.0-SNAPSHOT}, creationTimestamp=null, deletionGracePeriodSeconds=null, deletionTimestamp=null, generateName=null, generation=null, labels={project=camel-spring, provider=fabric8, version=1.0-SNAPSHOT, group=io.fabric8.quickstarts}, name=camel-spring, namespace=null, resourceVersion=null, selfLink=null, uid=null, additionalProperties={}), spec=DeploymentSpec(minReadySeconds=null, paused=null, replicas=1, revisionHistoryLimit=null, rollbackTo=null, selector=LabelSelector(matchExpressions=[], matchLabels={project=camel-spring, provider=fabric8, group=io.fabric8.quickstarts}, additionalProperties={}), strategy=null, template=PodTemplateSpec(metadata=ObjectMeta(annotations=null, creationTimestamp=null, deletionGracePeriodSeconds=null, deletionTimestamp=null, generateName=null, generation=null, labels={project=camel-spring, provider=fabric8, version=1.0-SNAPSHOT, group=io.fabric8.quickstarts}, name=null, namespace=null, resourceVersion=null, selfLink=null, uid=null, additionalProperties={}), spec=PodSpec(activeDeadlineSeconds=null, containers=[], dnsPolicy=null, host=null, hostIPC=null, hostNetwork=null, hostPID=null, imagePullSecrets=[], nodeName=null, nodeSelector=null, restartPolicy=null, securityContext=null, serviceAccount=null, serviceAccountName=null, terminationGracePeriodSeconds=null, volumes=[], additionalProperties={}), additionalProperties={}), additionalProperties={}), status=null, additionalProperties={})

GitHub | jstrachan | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    better error message if we don't generate any containers in the generated D / DC / RS / RC

    GitHub | 7 months ago | jstrachan
    io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: POST at: https://192.168.64.12:8443/apis/extensions/v1beta1/namespaces/itest-c2bebd31-2a48-4b8a-b0af-7572bf735479/deployments. Message: Deployment.extensions "camel-spring" is invalid: spec.template.spec.containers: Required value. Received status: Status(apiVersion=v1, code=422, details=StatusDetails(causes=[StatusCause(field=spec.template.spec.containers, message=Required value, reason=FieldValueRequired, additionalProperties={})], group=extensions, kind=Deployment, name=camel-spring, retryAfterSeconds=null, additionalProperties={}), kind=Status, message=Deployment.extensions "camel-spring" is invalid: spec.template.spec.containers: Required value, metadata=ListMeta(resourceVersion=null, selfLink=null, additionalProperties={}), reason=Invalid, status=Failure, additionalProperties={}).. Deployment(apiVersion=extensions/v1beta1, kind=Deployment, metadata=ObjectMeta(annotations={fabric8.io/iconUrl=img/icons/camel.svg, fabric8.io/metrics-path=dashboard/file/camel-routes.json/?var-project=camel-spring&var-version=1.0-SNAPSHOT}, creationTimestamp=null, deletionGracePeriodSeconds=null, deletionTimestamp=null, generateName=null, generation=null, labels={project=camel-spring, provider=fabric8, version=1.0-SNAPSHOT, group=io.fabric8.quickstarts}, name=camel-spring, namespace=null, resourceVersion=null, selfLink=null, uid=null, additionalProperties={}), spec=DeploymentSpec(minReadySeconds=null, paused=null, replicas=1, revisionHistoryLimit=null, rollbackTo=null, selector=LabelSelector(matchExpressions=[], matchLabels={project=camel-spring, provider=fabric8, group=io.fabric8.quickstarts}, additionalProperties={}), strategy=null, template=PodTemplateSpec(metadata=ObjectMeta(annotations=null, creationTimestamp=null, deletionGracePeriodSeconds=null, deletionTimestamp=null, generateName=null, generation=null, labels={project=camel-spring, provider=fabric8, version=1.0-SNAPSHOT, group=io.fabric8.quickstarts}, name=null, namespace=null, resourceVersion=null, selfLink=null, uid=null, additionalProperties={}), spec=PodSpec(activeDeadlineSeconds=null, containers=[], dnsPolicy=null, host=null, hostIPC=null, hostNetwork=null, hostPID=null, imagePullSecrets=[], nodeName=null, nodeSelector=null, restartPolicy=null, securityContext=null, serviceAccount=null, serviceAccountName=null, terminationGracePeriodSeconds=null, volumes=[], additionalProperties={}), additionalProperties={}), additionalProperties={}), status=null, additionalProperties={})
  2. 0

    [openshift-client] Instantiating BuildConfig with BuildRequest returns "resourceVersion may not be set on objects to be created"

    GitHub | 8 months ago | donovanmuller
    io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: POST at: https://172.28.128.4:8443/oapi/v1/namespaces/default/builds. Message: resourceVersion may not be set on objects to be created. Received status: Status(apiVersion=v1, code=500, details=null, kind=Status, message=resourceVersion may not be set on objects to be created, metadata=ListMeta(resourceVersion=null, selfLink=null, additionalProperties={}), reason=null, status=Failure, additionalProperties={}).
  3. 0

    Jenkins's slave doesn't work on kubernetes cluster

    Stack Overflow | 2 months ago | prophet
    io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: POST at: http://192.168.10.209:8080/api/v1/namespaces/default/pods. Message: Pod "jnlp-slave-22b6bd19556f0d" is invalid: spec.containers[0].name: Required value. Received status: Status(apiVersion=v1, code=422, details=StatusDetails(causes=[StatusCause(field=spec.containers[0].name, message=Required value, reason=FieldValueRequired, additionalProperties={})], group=null, kind=Pod, name=jnlp-slave-22b6bd19556f0d, retryAfterSeconds=null, additionalProperties={}), kind=Status, message=Pod "jnlp-slave-22b6bd19556f0d" is invalid: spec.containers[0].name: Required value, metadata=ListMeta(resourceVersion=null, selfLink=null, additionalProperties={}), reason=Invalid, status=Failure, additionalProperties={}).
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    kubernetes-api: default values not supported

    GitHub | 1 year ago | WinstonSureChill
    io.fabric8.kubernetes.client.KubernetesClientException: Namespace not specified. But operation requires namespace.
  6. 0

    Unable to create project in CI/CD pipeline

    GitHub | 1 year ago | rhopp
    java.lang.RuntimeException: Failed to create BuildConfig from from project testNodeJSProject. io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: POST at: https://kubernetes.default.svc/oapi/v1/namespaces/default/buildconfigs. Message: BuildConfig "testNodeJSProject" is invalid: metadata.name: invalid value 'testNodeJSProject', Details: must be a DNS subdomain (at most 253 characters, matching regex [a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*): e.g. "example.com". Received status: Status(apiVersion=v1, code=422, details=StatusDetails(causes=[StatusCause(field=metadata.name, message=invalid value 'testNodeJSProject', Details: must be a DNS subdomain (at most 253 characters, matching regex [a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*): e.g. "example.com", reason=FieldValueInvalid, additionalProperties={})], kind=BuildConfig, name=testNodeJSProject, retryAfterSeconds=null, additionalProperties={}), kind=Status, message=BuildConfig "testNodeJSProject" is invalid: metadata.name: invalid value 'testNodeJSProject', Details: must be a DNS subdomain (at most 253 characters, matching regex [a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*): e.g. "example.com", metadata=ListMeta(resourceVersion=null, selfLink=null, additionalProperties={}), reason=Invalid, status=Failure, additionalProperties={}).

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. io.fabric8.kubernetes.client.KubernetesClientException

      Failure executing: POST at: https://192.168.64.12:8443/apis/extensions/v1beta1/namespaces/itest-c2bebd31-2a48-4b8a-b0af-7572bf735479/deployments. Message: Deployment.extensions "camel-spring" is invalid: spec.template.spec.containers: Required value. Received status: Status(apiVersion=v1, code=422, details=StatusDetails(causes=[StatusCause(field=spec.template.spec.containers, message=Required value, reason=FieldValueRequired, additionalProperties={})], group=extensions, kind=Deployment, name=camel-spring, retryAfterSeconds=null, additionalProperties={}), kind=Status, message=Deployment.extensions "camel-spring" is invalid: spec.template.spec.containers: Required value, metadata=ListMeta(resourceVersion=null, selfLink=null, additionalProperties={}), reason=Invalid, status=Failure, additionalProperties={}).

      at io.fabric8.kubernetes.client.dsl.base.OperationSupport.requestFailure()
    2. io.fabric8.kubernetes
      BaseOperation.create
      1. io.fabric8.kubernetes.client.dsl.base.OperationSupport.requestFailure(OperationSupport.java:310)
      2. io.fabric8.kubernetes.client.dsl.base.OperationSupport.assertResponseCode(OperationSupport.java:263)
      3. io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:232)
      4. io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleCreate(OperationSupport.java:207)
      5. io.fabric8.kubernetes.client.dsl.base.BaseOperation.handleCreate(BaseOperation.java:547)
      6. io.fabric8.kubernetes.client.dsl.base.BaseOperation.create(BaseOperation.java:243)
      6 frames
    3. Fabric8 :: Kubernetes Client API
      Controller.apply
      1. io.fabric8.kubernetes.api.Controller.doCreateResource(Controller.java:826)
      2. io.fabric8.kubernetes.api.Controller.applyResource(Controller.java:815)
      3. io.fabric8.kubernetes.api.Controller.applyEntity(Controller.java:273)
      4. io.fabric8.kubernetes.api.Controller.apply(Controller.java:222)
      4 frames
    4. io.fabric8.arquillian
      SessionListener.start
      1. io.fabric8.arquillian.kubernetes.SessionListener.applyConfiguration(SessionListener.java:315)
      2. io.fabric8.arquillian.kubernetes.SessionListener.start(SessionListener.java:143)
      2 frames
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      4 frames
    6. Arquillian Core Implementation Base
      EventImpl.fire
      1. org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
      2. org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
      3. org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
      4. org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145)
      5. org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116)
      6. org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)
      6 frames
    7. io.fabric8.arquillian
      SuiteListener.start
      1. io.fabric8.arquillian.kubernetes.SuiteListener.start(SuiteListener.java:44)
      1 frame
    8. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      4 frames
    9. Arquillian Core Implementation Base
      EventContextImpl.proceed
      1. org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
      2. org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
      3. org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
      3 frames
    10. Arquillian Test Implementation Base
      TestContextHandler.createSuiteContext
      1. org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:73)
      1 frame
    11. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      4 frames
    12. Arquillian Core Implementation Base
      ManagerImpl.fire
      1. org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
      2. org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
      3. org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145)
      4. org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116)
      4 frames
    13. Arquillian Test Implementation Base
      EventTestRunnerAdaptor.beforeSuite
      1. org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.beforeSuite(EventTestRunnerAdaptor.java:75)
      1 frame
    14. Arquillian TestRunner JUnit Core
      Arquillian.run
      1. org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:115)
      1 frame
    15. JUnit4 Provider
      JUnit4Provider.invoke
      1. org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
      2. org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
      3. org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
      4. org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
      4 frames
    16. SureFire
      ForkedBooter.main
      1. org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
      2. org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
      3. org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
      3 frames