连接到 Admin Console
连接到 Redis Enterprise 管理控制台以管理您的 Redis Enterprise 集群。
适用于 Kubernetes 的 Redis Enterprise |
---|
Redis Enterprise Software 管理控制台的用户名和密码存储在 Kubernetes 密钥中。检索凭据后,您可以使用端口转发连接到 Admin Console。
注意:
有几种方法可用于访问 Admin Console。端口转发是长期使用的最简单但不是最有效的方法。您还可以使用负载均衡器服务或 Ingress。-
切换到包含 Redis Enterprise 集群 (REC) 的命名空间。
kubectl config set-context --current --namespace=<namespace-of-rec>
-
Find your cluster name from your list of secrets.
kubectl get secret
In this example, the cluster name is
rec
. -
Extract and decode your credentials from the secret.
kubectl get secret <cluster-name> -o jsonpath='{.data.username}' | base64 --decode kubectl get secret <cluster-name> -o jsonpath='{.data.password}' | base64 --decode
-
Find the port for the REC UI service in the
spec:ports
section of the service definition file.kubectl get service/<cluster-name>-ui -o yaml
Note:The default port is 8443.
-
Use
kubectl port-forward
to forward your local port to the service port.kubectl port-forward service/<cluster-name>-ui <local-port>:<service-port>
-
View the admin console from a web browser on your local machine at
https://localhost:8443
.