我正试图在我的kubernetes集群上设置一个基本的NATS服务,根据他们的文档。我执行了以下代码:
$ helm install test-nats nats/nats
NAME: test-nats
LAST DEPLOYED: Thu Jul 14 13:18:09 2022
NAMESPACE: default
STATUS: deployed
REVISION: 1
NOTES:
You can find more information about running NATS on Kubernetes
in the NATS documentation website:
在我们的项目中,我们使用NATS ( server -Version2.1.9)作为消息服务器。我们经常在Java客户端中获得一些错误日志,例如:
`ERROR: Subject remapping requires Options.oldRequestStyle() to be set on the Connection`
它来自io.nats.jnats版本2.8 (nats.client.impl.NatsConnection # deliverReply)。
但我们没有注意到我们的系统有任何问题。
所以我的问题是:它怎么会发生,它警告我们什么,我们如何处理它?
当我试图将我的NestJS应用程序部署到Heroku时,我看到了错误Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch。
为什么将url设置为0.0.0.0 使其工作?
const port = process.env.PORT || 5000;
await app.listen(port, '0.0.0.0');
上下文:
当我在没有0.0.0.0的情况下部署时,我的应用程序说Listening at http://127.0.0.1:
本地集群中的一个豆荚无法启动,因为我得到了Unable to attach or mount volumes: unmounted volumes=[nats-data-volume], unattached volumes=[nats-data-volume nats-initdb-volume kube-api-access-5b5cz]: timed out waiting for the condition错误。
$ kubectl get pods
NAME READY STATUS