kompose: Error when targeting a different (than 8080) API port
I am useing k3s and by default the kubernetes API listens on port 6443. When trying to do
kompose up
in this situation I get
Error while deploying application: Get http://localhost:8080/api: dial tcp [::1]:8080: connect: connection refused
Is there a way to target a different (than 8080) port?
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 3
- Comments: 23 (9 by maintainers)
A simple solution is to start a proxy to the API that listens on 8080.
If anyone lands here, this version of compose worked for me on
mac:Any status here? We struggle with the same issue
Hello!
@cdrage I am not sure if this is the right place to ask this. I am incredibly new to both
KubernetesandKomposeI have a
docker-compose.ymlfile that does work locally without issue and I was under the impression I would be able to usekompose upon it to spin up my deployment on myminikubelocally.However when I run it I get this output
This is my
docker-compose.ymlfile’s contentsI have tried the work around of running
kubectl proxy --port=8080in a separate terminal window for proxying, but then the output changes to thisApologies if I’m creating a bunch of unrelated noise, I’m just not sure if I’m doing something wrong, or the tool is working incorrectly.
Any guidance is appreciated.
Yeah, this is critical and needs to be fixed. Thank you @greyarch
A lot of clusters use 6443 by default now… you’re totally correct.
Tempory solution:
Finale solution: update code (the library we use is serious out of date, it’s a bit of messy)