Skip to content
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

"oc minio proxy" using the wrong port (redirect broken) #1964

Open
McMac opened this issue Feb 2, 2024 · 0 comments
Open

"oc minio proxy" using the wrong port (redirect broken) #1964

McMac opened this issue Feb 2, 2024 · 0 comments

Comments

@McMac
Copy link

McMac commented Feb 2, 2024

I am using the OpenShift local cluster (4.14) and installed MinIO (5.0.11) via the operator provided in the OperatorHub.

On https://min.io/docs/minio/kubernetes/openshift/operations/installation.html :

5) Access the Operator Console

❯ oc minio proxy
Starting port forward of the Console UI.

To connect open a browser and go to http://localhost:9090

Current JWT to login: eyJh...

however:

curl http://localhost:9090 <a href="https://localhost:9090/">Moved Permanently</a>.

This will never work.

One can use as a workaround:
k port-forward service/console 9090 9443 -n minio-operator

and then get the token via:
kubectl -n minio-operator get secret console-sa-secret -o jsonpath="{.data.token}" | base64 --decode

Fix required: --> change oc minio proxy to forward either 9090 and 9443 or just forward 9443.
(couldn't figure out how to make this change myself)

--edit:

❯ kubectl get svc/console -n minio-operator -o json | jq -r '.spec.ports'
[
  {
    "name": "http",
    "port": 9090,
    "protocol": "TCP",
    "targetPort": 9090
  },
  {
    "name": "https",
    "port": 9443,
    "protocol": "TCP",
    "targetPort": 9443
  }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant