Community Conundrum 28: News Engagement is live! Read More

Deployment failed

Level 3
Level 3
Deployment failed

Hi,

I'm trying to deploy my API service, but it fails with the following error:

`selector` does not match template `labels`

What is strange to me is that I have used the same infrastructure to deploy another service an in that case it worked. What I'm missing?

I attach a picture of the logs.

Thanks

0 Kudos
4 Replies
Dataiker
Dataiker

Hi,

can you disable the deployment, update it, then re-enable it, and re-update it?

0 Kudos
Level 3
Level 3
Author

Hi,

I disabled the deployment and updating I get this error:

"error: context "context-cluster-1" does not exist"

If I enable it after that it gives the same error as before, the one of the first message

0 Kudos
Dataiker
Dataiker

a missing K8S context means the cluster has changed. If you can find the deployment for the API service with `kubectl get deployments` , then you can `kubectl delete ...` it and try to activate and update the deployment in DSS. Otherwise we'll need you to send an instance diagnostic from Administration > Maintenance > Diagnostic tool to support.dataiku.com .

0 Kudos
Level 3
Level 3
Author

Sorry if I reply just today, but I was running on my project. At the end I've solved creating an equal service with a different name and the deployment went fine. Maybe I messed up with names or something like that, I'm not relly sure what happened.

However thanks for the help!

0 Kudos
A banner prompting to get Dataiku DSS