在我的k8s集群上,在我的M1 Mac上的桌面上,登录到时遇到了问题。
当我尝试登录时,我无法使用默认的脉冲星管理凭据通过登录页面,当我检查该页面时会看到以下内容:
Failed to load resource: the server responded with a status of 404 (Not Found)我认为这个问题与我无法通过端口7750连接后台服务有关,但老实说,我不知道如何解决这个问题。我使用helm图表进行部署,并使用minikube.yaml文件值来保持副本计数等,因为它运行在单一的destop节点上。
是否有人在此之前遇到过这个问题,或知道一个解决方案?如果这个问题已经出现在这里,我希望链接到这条线!
下面我已经列出了集群中运行的内容的一些细节,其他值都与舵机图表中的内容相同。
服务:
k get svc -n pulsar
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
pulsar-mini-bookie ClusterIP None <none> 3181/TCP,8000/TCP 21h
pulsar-mini-broker ClusterIP None <none> 8080/TCP,6650/TCP 21h
pulsar-mini-proxy LoadBalancer 10.102.192.239 localhost 80:30132/TCP,6650:30925/TCP 21h
pulsar-mini-pulsar-manager LoadBalancer 10.98.70.14 localhost 9527:30322/TCP 21h
pulsar-mini-toolset ClusterIP None <none> <none> 21h
pulsar-mini-zookeeper ClusterIP None <none> 8000/TCP,2888/TCP,3888/TCP,2181/TCP 21hcsrf命令的输出,显示7750中的连接被拒绝,即使我尝试使用脉冲星-微型脉冲星管理器舱的kubectl端口(虽然这可能不是正确的方法):
% CSRF_TOKEN=$(curl http://localhost:7750/pulsar-manager/csrf-token)
curl \
-H "X-XSRF-TOKEN: $CSRF_TOKEN" \
-H "Cookie: XSRF-TOKEN=$CSRF_TOKEN;" \
-H 'Content-Type: application/json' \
-X PUT http://localhost:7750/pulsar-manager/users/superuser \
-d '{"name": "admin", "password": "apachepulsar", "description": "test", "email": "username@test.org"}'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (7) Failed to connect to localhost port 7750: Connection refused
curl: (7) Failed to connect to localhost port 7750: Connection refused当我从本地机器运行bin/pulsar管理命令时,一切正常。由于某些原因,我无法访问命令或UI。一些命令的输出如下:
$ bin/pulsar-admin topics list-partitioned-topics apache/pulsar
"persistent://apache/pulsar/test-topic"
/apache-pulsar-2.9.1
$ bin/pulsar-admin namespaces list apache
"apache/pulsar"
"apache/tester"
$ bin/pulsar-admin topics create-partitioned-topic apache/pulsar/test-topic-2 -p 4
$ bin/pulsar-admin topics list-partitioned-topics apache/pulsar
"persistent://apache/pulsar/test-topic"
"persistent://apache/pulsar/test-topic-2"发布于 2022-02-09 15:15:07
那是正确的端口吗?您的PM配置是什么?日志里有什么吗?
https://kubernetes.io/docs/tasks/access-application-cluster/port-forward-access-application-cluster/
9527:30322/TCP
https://pulsar.apache.org/docs/en/administration-pulsar-manager/
在码头,我们必须指定第二个端口。
码头运行-it
-p 9527:9527 -p 7750:7750
-e SPRING_CONFIGURATION_FILE=/pulsar-manager/pulsar-manager/application.properties
apachepulsar/脉冲星管理器:v0.2.0
您只有9527端口特定的
https://stackoverflow.com/questions/70879825
复制相似问题