Closed datho7561 closed 1 year ago
@datho7561 Can you please share the project you used for testing? And the output of odo version
?
Maybe I missed something, but I just tried to use odo
against MicroShift, and it worked successfully ( see the logs below).
I remember I tried it successfully several months ago when I was looking for a lightweight cluster to use locally - I also tried Kind, but more recently have been using k3d, all without any issues.
I'll try it again
I've been trying https://github.com/openshift-evangelists/Wild-West-Backend with the Spring Boot Devfile. I also ran into the same issue on k3s. I was using odo 3.12.0 before, but upgraded to 3.13.0 and faced the same problem.
I tried the Angular and Go sample projects as well, with the same result.
I'll try updating my crc, maybe that's the issue.
I updated my crc to 2.25.0, and that didn't change anything. I also tried increasing the cluster memory.
Wait, I got it to work, but I changed nothing...
It seems the issue was that I was using the default
namespace. I got odo
to work on microshift and k3s
It seems the issue was that I was using the
default
namespace. I gotodo
to work on microshift and k3sAh yes, indeed,
odo
might not play well with thedefault
namespace/project (due to potential restrictions, e.g.: https://github.com/redhat-developer/odo/issues/6849), hence the warning message we display in this case (https://github.com/redhat-developer/odo/issues/5591). Anyway, great that you figured out the cause of this issue. ~This makes me think that we could document this on our Troubleshooting page.~ (the warning message we display in theodo dev
output should actually serve as a troubleshooting guide, as it clearly states what the issue is and how to fix it - so no need IMO to duplicate this elsewhere).
/kind feature
Which functionality do you think we should add?
It would be really cool if
odo
supported dev mode oncrc
using the MicroShift preset.Currently from my testing,
odo dev
freezes before it reaches the "UseCtrl+C
to stop andp
to manually refresh". Also, according tok9s
/oc get
, the corresponding pod never starts. (I'll do a bit more experimenting to see if I can figure out what's preventing it from launching).Since MicroShift removes many OpenShift features in order to reduce its footprint, it might be impossible or very difficult to get
odo dev
to work on the cluster.Why is this needed?
Many developers don't have enough RAM/CPU/disk space to run a full
crc
OpenShift instance. MicroShift is one potential method to allow these developers to start a cluster where they can experiment with their application on OpenShift/Kubernetes.