1
0
mirror of https://github.com/minio/docs.git synced 2025-11-17 22:22:31 +03:00
Files
docs/source/includes/common/common-k8s-connect-operator-console.rst
2023-02-13 11:43:21 -05:00

2.6 KiB

Port Forwarding

Note

Some Kubernetes deployments may experience issues with timeouts during port-forwarding operations with the Operator Console. Use one of the methods in the other tabs on this section as a work-around. See https://github.com/kubernetes/kubectl/issues/1368 for more information.

Run the kubectl minio proxy command to temporarily forward traffic from the MinIO Operator Console <minio-operator-console> service to your local machine:

k8s and not openshift

kubectl minio proxy

openshift

oc minio proxy

The command output includes a JWT token you must use to log into the Operator Console.

MinIO Operator Console

You can deploy a new MinIO Tenant <minio-k8s-deploy-minio-tenant> from the Operator Dashboard.

Node Ports

Use the following command to identify the NodePorts <concepts/services-networking/service/#type-nodeport> configured for the Operator Console. If your local host does not have the jq utility installed, you can run the first command and locate the spec.ports section of the output.

kubectl get svc/console -n minio-operator -o json | jq -r '.spec.ports'

The output resembles the following:

[
   {
      "name": "http",
      "nodePort": 31055,
      "port": 9090,
      "protocol": "TCP",
      "targetPort": 9090
   },
   {
      "name": "https",
      "nodePort": 31388,
      "port": 9443,
      "protocol": "TCP",
      "targetPort": 9443
   }
]

Use the http or https port depending on whether you deployed the Operator with Console TLS enabled via kubectl minio init --console-tls.

Append the nodePort value to the externally-accessible IP address of a worker node in your Kubernetes cluster.

Use the following command to retrieve the JWT token necessary for logging into the Operator Console:

kubectl get secret/console-sa-secret -n minio-operator -o json | jq -r '.data.token' | base64 -d