Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

怎么用 goctl 生成消息队列消费者的 k8s 的yaml文件 #107

Closed
csl30003small opened this issue Apr 11, 2023 · 2 comments
Closed

Comments

@csl30003small
Copy link

我用的是 RabbitMQ,rmq 的etc 的 video.yaml 文件是这样的:

ListenerConf:
  Username: guest
  Password: guest
  Host: 192.168.130.100
  Port: 5672
  ListenerQueues:
    -
      Name: barrageQueue

ExchangeConf:
  ExchangeName: barrageExchange
  Type: direct
  Queues:
    -
      Name: barrageQueue

比如我用 goctl 生成 rpc 的 yaml是这样写:

goctl kube deploy -replicas 3 -requestCpu 200 -requestMem 50 -limitCpu 300 -limitMem 100 -name video-rpc -namespace giligili -image giligili-video-rpc:v1 -o video-rpc.yaml -port 9002 --serviceAccount find-endpoints

那我 goctl 生成消息队列消费者应该怎么写?它不用暴露端口,只是一直监听消息队列的消息。

@Mikaelemmmm
Copy link
Owner

直接生成deployment就行了,开放port nodeport

@csl30003small
Copy link
Author

直接生成deployment就行了,开放port nodeport

感谢你

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants