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={}).

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by cmoulliard
, 1 year ago
":"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
via GitHub by stevef1uk
, 1 year ago
: 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-example-loan-broke
via GitHub by magick93
, 9 months ago
Failure executing: POST at: https://kubernetes.default/api/v1/namespaces/default/pods. Message: Forbidden!Configured service account doesn't have access. Service account may have been revoked..
via Stack Overflow by Punit Agrawal
, 8 months ago
Failure executing: POST at: https://kubernetes.default/api/v1/namespaces/npd-test/pods. Message: Forbidden!Configured service account doesn't have access. Service account may have been revoked..
via GitHub by stephanosbacon
, 1 year ago
Failure executing: POST at: https://kubernetes.default.svc/oapi/v1/namespaces/default/buildconfigs. Message: Forbidden!Configured service account doesn't have access. Service account may have been revoked..
via Google Groups by Unknown author, 9 months ago
Failure executing: POST at: https://192.168.64.25:8443/oapi/v1/projectrequests. Message: Forbidden! User demo/192-168-64-25:8443 doesn't have permission..
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={}).
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.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.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)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.