io.fabric8.kubernetes.client.KubernetesClientException

Failure executing: POST at: https://192.168.64.13:8443/oapi/v1/namespaces/default/deploymentconfigs. Message: DeploymentConfig "simple-config-map" is invalid: spec.template.metadata.labels: Invalid value: {"component":"simple-config-map","container":"vertx","expose":"true","group":"vertx-demo","project":"simple-config-map","provider":"fabric8","version":"1.0.0-SNAPSHOT"}: `selector` does not match template `labels`. Received status: Status(apiVersion=v1, code=422, details=StatusDetails(causes=[StatusCause(field=spec.template.metadata.labels, message=Invalid value: {"component":"simple-config-map","container":"vertx","expose":"true","group":"vertx-demo","project":"simple-config-map","provider":"fabric8","version":"1.0.0-SNAPSHOT"}: `selector` does not match template `labels`, reason=FieldValueInvalid, additionalProperties={})], group=null, kind=DeploymentConfig, name=simple-config-map, retryAfterSeconds=null, additionalProperties={}), kind=Status, message=DeploymentConfig "simple-config-map" is invalid: spec.template.metadata.labels: Invalid value: {"component":"simple-config-map","container":"vertx","expose":"true","group":"vertx-demo","project":"simple-config-map","provider":"fabric8","version":"1.0.0-SNAPSHOT"}: `selector` does not match template `labels`, metadata=ListMeta(resourceVersion=null, selfLink=null, additionalProperties={}), reason=Invalid, status=Failure, additionalProperties={}).

Solutions on the web85

  • ":"vertx","expose":"true","group":"vertx-demo","project":"simple-config-map","provider":"fabric8","version":"1.0.0-SNAPSHOT"}: `selector` does not match template `labels`. Received status: Status(apiVersion=v1, code=422, details=StatusDetails(causes
  • . Received status: Status(apiVersion=v1, code=422, details=StatusDetails(causes=[StatusCause(field=status.latestVersion, message=Invalid value: 0: latestVersion cannot be decremented, reason=FieldValueInvalid, additionalProperties={})], group=null, kind
  • . 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
  • Stack trace

    • io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: POST at: https://192.168.64.13:8443/oapi/v1
    • amespaces/default/deploymentconfigs. Message: DeploymentConfig "simple-config-map" is invalid: spec.template.metadata.labels: Invalid value: {"component":"simple-config-map","container":"vertx","expose":"true","group":"vertx-demo","project":"simple-config-map","provider":"fabric8","version":"1.0.0-SNAPSHOT"}: `selector` does not match template `labels`. Received status: Status(apiVersion=v1, code=422, details=StatusDetails(causes=[StatusCause(field=spec.template.metadata.labels, message=Invalid value: {"component":"simple-config-map","container":"vertx","expose":"true","group":"vertx-demo","project":"simple-config-map","provider":"fabric8","version":"1.0.0-SNAPSHOT"}: `selector` does not match template `labels`, reason=FieldValueInvalid, additionalProperties={})], group=null, kind=DeploymentConfig, name=simple-config-map, retryAfterSeconds=null, additionalProperties={}), kind=Status, message=DeploymentConfig "simple-config-map" is invalid: spec.template.metadata.labels: Invalid value: {"component":"simple-config-map","container":"vertx","expose":"true","group":"vertx-demo","project":"simple-config-map","provider":"fabric8","version":"1.0.0-SNAPSHOT"}: `selector` does not match template `labels`, metadata=ListMeta(resourceVersion=null, selfLink=null, additionalProperties={}), reason=Invalid, status=Failure, additionalProperties={}). at io.fabric8.kubernetes.client.dsl.base.OperationSupport.requestFailure(OperationSupport.java:314) at io.fabric8.kubernetes.client.dsl.base.OperationSupport.assertResponseCode(OperationSupport.java:267) at io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:236) at io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:229) at io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleCreate(OperationSupport.java:207) at io.fabric8.kubernetes.client.dsl.base.BaseOperation.handleCreate(BaseOperation.java:547) at io.fabric8.kubernetes.client.dsl.base.BaseOperation.create(BaseOperation.java:243) at io.fabric8.kubernetes.api.Controller.doCreateResource(Controller.java:938) at io.fabric8.kubernetes.api.Controller.applyResource(Controller.java:927) at io.fabric8.kubernetes.api.Controller.applyEntity(Controller.java:255) at io.fabric8.kubernetes.api.Controller.apply(Controller.java:231) at io.fabric8.maven.plugin.DeployMojo.applyEntities(DeployMojo.java:299) at io.fabric8.maven.plugin.DeployMojo.executeInternal(DeployMojo.java:266) at io.fabric8.maven.plugin.AbstractFabric8Mojo.execute(AbstractFabric8Mojo.java:49) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216) at org.apache.maven.cli.MavenCli.main(MavenCli.java:160) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.