kompose: Error while deploying application: the server could not find the requested resource

Hello,

I’m trying to setup kubernetes services using docker-compose file and kompose app, and for test purposes Im using this repository: https://github.com/dockersamples/example-voting-app

using this command: kompose up --verbose --push-image=false -f docker-compose.yml

I have information that all the services were successfully created but there’s fatal error occurred :

FATA Error while deploying application: the server could not find the requested resource

kubectl versions: Client Version: v1.17.1 Server Version: v1.17.1

kompose version: 1.20.0 (f3d54d784)

Also there is one more problem with image tag. As You can see docker-compose in this project contains some sections without image key and tag key which producing an error in building phase. I had to add some randomly names and tags for image. Is it intentional behavior or bug?

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 22 (8 by maintainers)

Most upvoted comments

unable to recognize “internal-networkpolicy.yaml”: no matches for kind “NetworkPolicy” in version “extensions/v1beta1”

I have the same problem with 1.21.0

manually changing the apiVersion to networking.k8s.io/v1 per https://kubernetes.io/blog/2019/07/18/api-deprecations-in-1-16/ seemed to fix my problem.

@masteruser20 This is a known issue, the fixed will be released in the next month. Sorry for your inconvenient

Same error?

This should be fixed in the next release. Use the master branch to build a local binary if you can

okee i’m waiting your fixed release

@hangyan is there some sort of workaround on this? Im trying this sample: https://kompose.io/getting-started/ and I get the same error. First I had to get past this issue: https://github.com/kubernetes/kompose/issues/1131 And then now hitting this.

This is the getting started guide, and it is not working out of the 📦 What can I do to try to get it to work?

Using docker-compose on the file that it provides work. It converts into files aswell, but deploying the yaml files with kompose up, crashes with this error. Cannot find and more detailed errors