kubernetes
fluxmq原生支持k8s,部署完成后可通过k8s的api进行动态索扩容操作。
RBAC资源创建
fluxmq需要访问k8s apiserver以获取集群内其他节点的连接信息。
apiVersion: v1
kind: ServiceAccount
metadata:
name: fluxmq
namespace: default
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: fluxmq
namespace: default
rules:
- apiGroups:
- ""
resources: # Here are the resources you can access
- pods
- endpoints
verbs: # That is what you can do with them
- get
- list
- watch
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: fluxmq
namespace: default
roleRef:
kind: Role
name: fluxmq
apiGroup: rbac.authorization.k8s.io
subjects:
- kind: ServiceAccount
name: fluxmq
namespace: default