I recently deployed Minio stand-alone on a K0s pod. I can successfully use mc on my laptop to authenticate and create a bucket on my pod’s ip:9000.
But when I try to access the web console and login I get a POST error to ip:9000 and I am unable to login.
Would anyone know what’s causing this?
I've just started a minio container to verify this and it fact there are two ports you need to publish which are
9000and9001.You can reach the admin console on port
9001and the API on port9000, hence yourmccommand which targets port9000works but trying to login on port9000fails.Edit
Now that I understand the problem better thanks to your comments I've tested on my Docker what happens when you login. And in fact there is a
POSTrequest happening when clicking onLoginbut it's not going to port9001not9000, so it seems the your webconsole somehow issues request to the wrong port.Here a screenshot of the Network tab in my DevTools showing the request that's being issued when I press Login.
I've copied the
curlfor this request from the DevTool and added the-iflag so you can see the HTTP response code. You could try this with your appropriateaccessKeyandsecretKeyof course.Expected result: