ccyunchina-deploy/roles/kubernetes/storage-glusterfs/templates/command.txt

35 lines
765 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

手工步骤:
1进入heketi容器中
该容器位于kube-system命名空间下 heketi部署下。
2在heketi容器中配置glusterfs集群
a: 配置临时环境变量 命令如下:
export HEKETI_CLI_SERVER=http://localhost:8080
b:创建toplogy.json文件下附命令并加载toplogy.json配置运行命令heketi-cli topology load --json=topology.json
cat<<EOF>topology.json
{
"clusters": [
{
"nodes": [
{% for node in groups['kube-storage-node'] %}
{
"node": {
"hostnames": {
"manage": [
"{{node}}"
],
"storage": [
"{{node}}"
]
},
"zone": 1
},
"devices": [
"{{gfs_device}}"
]
}{% if not loop.last %},{% endif %}
{% endfor %}
]
}
]
}
EOF