简体   繁体   English

如何在kubernetes上的lagom部署中设置cassandara和kafka身份验证

[英]How to setup cassandara and kafka authentication at lagom deployment on kubernetes

I try to deploy a few µServices with lagom and kubernetes. 我尝试部署一些带有lagom和kubernetes的µServices。 The kubernetes cluster is ready. kubernetes集群已准备就绪。 Now my question HOW I config the access to cassandra and kafka. 现在我的问题是如何配置对cassandra和kafka的访问。

For cassandra I found out these (application.conf) 对于卡桑德拉,我发现了这些(application.conf)

is that the correct way and how I configure a kafka (setup on kuberentes) access? 那是正确的方式以及如何配置kafka(在kuberentes上进行设置)访问吗?

thank you 谢谢

my-service.cassandra {
  authentication {
    username = "some-user"
    password = "some-password"
  }
}

lagom.persistence.read-side.cassandra {
  authentication = ${my-service.cassandra.authentication}
}

cassandra-journal {
  authentication = ${my-service.cassandra.authentication}
}

cassandra-snapshot-store {
  authentication = ${my-service.cassandra.authentication}
}

This is the right way. 这是正确的方法。 A few hours of searching and testing. 几个小时的搜索和测试。 Start it with external_service _cql._tcp.cassandra.NAME.svc.cluster.local will work 使用external_service _cql._tcp.cassandra.NAME.svc.cluster.local启动

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM