连接到管理控制台
连接到Redis Enterprise管理控制台以管理您的Redis Enterprise集群。
Redis Enterprise Software admin console 的用户名和密码存储在 Kubernetes secret 中。在获取您的凭据后,您可以使用端口转发连接到管理控制台。
注意:
有几种方法可以访问管理控制台。端口转发是最简单的,但不是长期使用的最有效方法。您还可以使用负载均衡器服务或Ingress。-
切换到包含您的Redis Enterprise集群(REC)的命名空间。
kubectl config set-context --current --namespace=<namespace-of-rec>
-
从您的密钥列表中找到您的集群名称。
kubectl get secret
在这个例子中,集群名称是
rec
。 -
从密钥中提取并解码您的凭据。
kubectl get secret <cluster-name> -o jsonpath='{.data.username}' | base64 --decode kubectl get secret <cluster-name> -o jsonpath='{.data.password}' | base64 --decode
-
在服务定义文件的
spec:ports
部分找到REC UI服务的端口。kubectl get service/<cluster-name>-ui -o yaml
注意:默认端口是8443。
-
使用
kubectl port-forward
将本地端口转发到服务端口。kubectl port-forward service/<cluster-name>-ui <local-port>:<service-port>
-
从本地机器上的网页浏览器查看管理控制台,访问
https://localhost:8443
。