-
Notifications
You must be signed in to change notification settings - Fork 772
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error transforming Kubernetes objects #876
Comments
Thanks for pointing this out! Looks like |
what happens if i remove the restart policy from the yml file? here is what happens without the restart policy. how can i fix the warnings?
how can i start the containers on my kubernetes with Minikube? |
With regards to the warnings, yes, you're free to ignore them, but due to using host volumes, Kubernetes doesn't support it. Yup! It should theoretically work (you may have to modify your volumes). Using minikube and doing EDIT: Yes, removing restart, or changing it to |
i installed minicube and can run the sample they have here: i run into the following issue, any why it cannot startup?
|
@Arnold1 for some reason Kompose isn't able to communicate to your Kubernetes cluster. After you run "minikube start" are you able to access your cluster with kubectl? Ex. |
i think i stopped minikube before... here is what i get now, but only grafana is running. alertmanager, go-mux-example, prometheus-server seem to have issues to run?
go-mux-example uses the mux image, which i build as follows:
|
@cdrage any idea? |
@Arnold1 Unfortunately when it comes down to volumes within Docker Compose / Kompose, it get's fairly tricky. Mind posting your full docker-compose example (the one you're using now) and we can go from there? Volumes are the worst part of this entire operation, very difficult to get right since some containers (such as prometheus) rely on them to be EXACT. |
@cdrage do you mean all the files? |
@cdrage i added all files here: https://github.com/Arnold1/prometheus_kubernetes incl. docker-compose.yml steps:
@cdrage can you reproduce it on your machine? |
@Arnold1 , there's no Dockerfile in your repo :(
|
@surajnarwade @cdrage I added the missing dockerfile. can you execute it now? please let me know. |
@cdrage is there a workaround for the meantime? |
@Arnold1 Sorry, it's been quite a busy week for us, we're going to try and get around to it this week. It may involve modifying some of the containers since for some reason they like Docker Compose but now when it's on Kubernetes. I'll try your updated repo it soon 👍 |
@cdrage any update? |
@Arnold1 some of your services has volumes which may contain some file which are necessary for your applcation. Hence, status for your application is So first do and push your image
|
@surajnarwade ok, i currently try to find a workaround. how can i make it work? im not sure how the volumes in the kubernetes files... would it work when i follow your blog? why do you want to push the docker images to some registry? do you mean docker hub or what do you mean? |
@cdrage some time to look into? :) |
@Arnold1 Sorry, I haven't found time to look into this yet :( I did have very brief look and as what @surajnarwade said, it's most likely because the containers are trying to retrieve information that's originally suppose to be passed in through volumes. |
i guess you have some time over christmas? :) |
Any update on this? Same issue here when trying to convert from Docker Compose to Kubernetes for containerized applications that use volume mappings out to OS for persistent data. Thanks |
@d-mcd Unfortunately volumes is very tricky since it's a completely different concept within Kubernetes. One of the solutions is to create a hostPath volumes which were in the PR and issues here: #109 #734 We're still investigating and will most likely push a PR out for adding hostPath volumes by next release. It's a hack to get it working (hostPath volumes are only recommended for development), but it's a solution nevertheless. |
hi, just wondering what is the solution now? can i retry and test it? if so how? |
@hangyan contributed the hostpath volume, so this is solved! 👍 |
@Could you show how to run my example using the change he did? |
@Arnold1 the test compose file and command in the PR might help |
@Arnold1 did you able to run successfully |
have not tested yet, how to test it with latest code? |
I'm still getting the originally mentioned error: "Unknown restart policy unless-stopped for service" I'm using version 2.20. Did that ever get fixed? @cdrage said in this comment from 2.5 years ago:
EDIT: it looks like it only breaks if you're using |
@marner2 If this a supported field in version 2, it's a bug. I will look up into it |
Hi,
i run into some issues with kompose when i run the following command. do you know what is wrong and how to resolve it?
docker-compose.yml:
The text was updated successfully, but these errors were encountered: