Not able to deploy to Kubernetes cluster using Kompose
I've solved it by replacing all apiversions in the deployment files from v1beta2 to apps/v1 and by adding a selector to each deployment.
selector: matchLabels: app: ...
I then didn't use the command Kompose up
to deploy since this gives me an error, but I used the command kubectl create -f <file(s)>
to deploy and this succeeded without the connection error. There are still some pods crashing but I don't think it has anything to do with this original problem.