You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "wolf27w (via GitHub)" <gi...@apache.org> on 2024/03/13 02:46:56 UTC
[I] rocketmq开启acl后plain_acl.yml这个文件如何持久化 [rocketmq-operator]
wolf27w opened a new issue, #215:
URL: https://github.com/apache/rocketmq-operator/issues/215
我是在k8s中部署的rockermq,但是开启acl后,plain_acl.yml这个文件是在conf目录下,我无法映射出来或者修改plain_acl.yml文件的路径,请问一下有其他的方法吗?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] rocketmq开启acl后plain_acl.yml这个文件如何持久化 [rocketmq-operator]
Posted by "RockteMQ-AI (via GitHub)" <gi...@apache.org>.
RockteMQ-AI commented on issue #215:
URL: https://github.com/apache/rocketmq-operator/issues/215#issuecomment-5655102226
**Issue Evaluation**
Category: `type/question`
To persist `plain_acl.yml` in Kubernetes, you can:
1. Use a ConfigMap to mount the ACL configuration file into the broker pod's `conf/` directory
2. Use a PersistentVolumeClaim if the ACL file needs to be modified at runtime
3. Set the ACL configuration via environment variables if the broker image supports it
The operator's broker CR should support additional volume mounts for configuration files. Check if the current CRD version supports `configMapVolumes` or similar fields.
---
*Automated evaluation by github-manager*
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] rocketmq开启acl后plain_acl.yml这个文件如何持久化 [rocketmq-operator]
Posted by "bugsmo (via GitHub)" <gi...@apache.org>.
bugsmo commented on issue #215:
URL: https://github.com/apache/rocketmq-operator/issues/215#issuecomment-2205286106
挂载自定义ACL有了新的姿势。
1. 创建acl configmap,`kubectl create configmap broker-acl --from-file=plain_acl.yml=plain_acl.yml`
2. broker cr配置acl configmap,`kubectl edit brokers.rocketmq.apache.org rocketmq-cluster-test`
```yaml
apiVersion: rocketmq.apache.org/v1alpha1
kind: Broker
...
spec:
volumes:
- configMap:
name: broker-acl
name: broker-acl
```
3. sts挂载acl configmap到pod。`kubectl edit statefulsets.apps rocketmq-cluster-test-0-0`
```yaml
apiVersion: apps/v1
kind: StatefulSet
...
spec:
volumes:
- configMap:
defaultMode: 420
name: broker-acl
name: broker-acl
containers:
volumeMounts:
- mountPath: /root/rocketmq/broker/conf/acl
name: broker-acl
```
可以实现acl配置热加载。
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] rocketmq开启acl后plain_acl.yml这个文件如何持久化 [rocketmq-operator]
Posted by "wolf27w (via GitHub)" <gi...@apache.org>.
wolf27w commented on issue #215:
URL: https://github.com/apache/rocketmq-operator/issues/215#issuecomment-1996332212
明白了,我看他写的有点错误,应该把configmap里的plain_acl.yml替换到/home/rocketmq/rocketmq-4.9.7/conf/plain_acl.yml才是正确的,不需要在开发了
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] rocketmq开启acl后plain_acl.yml这个文件如何持久化 [rocketmq-operator]
Posted by "caigy (via GitHub)" <gi...@apache.org>.
caigy commented on issue #215:
URL: https://github.com/apache/rocketmq-operator/issues/215#issuecomment-1993536405
@wolf27w 目前尚未支持,#200 仍在开发中。可以看看这个方法是否能临时解决?https://github.com/apache/rocketmq-operator/issues/184#issuecomment-1750292679
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] rocketmq开启acl后plain_acl.yml这个文件如何持久化 [rocketmq-operator]
Posted by "caigy (via GitHub)" <gi...@apache.org>.
caigy commented on issue #215:
URL: https://github.com/apache/rocketmq-operator/issues/215#issuecomment-1993529151
duplicated with #184
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] rocketmq开启acl后plain_acl.yml这个文件如何持久化 [rocketmq-operator]
Posted by "RockteMQ-AI (via GitHub)" <gi...@apache.org>.
RockteMQ-AI commented on issue #215:
URL: https://github.com/apache/rocketmq-operator/issues/215#issuecomment-5192840377
**Issue Evaluation**
Category: `question`
To persist `plain_acl.yml` in Kubernetes:
1. Create a ConfigMap with your ACL configuration
2. Mount it as a volume in the broker StatefulSet, overriding the default `conf/plain_acl.yml`
Example:
```yaml
# In your Broker CR or StatefulSet template
volumeMounts:
- name: acl-config
mountPath: /home/rocketmq/rocketmq-4.9.4/conf/plain_acl.yml
subPath: plain_acl.yml
volumes:
- name: acl-config
configMap:
name: broker-acl-config
```
Alternatively, check if the operator CRD supports an `aclConfigMap` field in newer versions.
---
*Automated evaluation by RockteMQ-AI*
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org