Public Repository

Last pushed: 22 days ago
Short Description
用于部署linkerdcos的管理集群
Full Description

linker_dcos_deployer是LinkerDCOS的系统核心组件,用以部署管理集群

创建实例
2.0.0之前版本(以1.1.2-cu版本为例)
docker run -d --privileged --net host --name deployer -v /linker/docker:/linker/docker -v /linker/swarm:/linker/swarm -v /var/log:/var/log linkerrepository/linker_dcos_deployer:1.1.2-cu

2.0.0之后版本(以2.0.0版本为例)
docker run -d --privileged --net host --name deployer -v /linker/docker:/linker/docker -v /linker/swarm:/linker/swarm linkerrepository/linker_dcos_deployer:2.0.0 /linker/entrypoint.sh

参数说明:
--net host 采用host网络模式,Deployer会直接监听10003端口
-v /linker/docker:/linker/docker -v /linker/swarm:/linker/swarm -v /var/log:/var/log Deployer使用到了docker-machine,docker-compose和swarm来创建和配置集群,通过-v参数保存这些主机安装和配置信息; 在宿主机的/var/log/linkerdcos_deployMgmt.log查找deployer运行日志

部署管理集群
管理集群有2种模式:精简和高可用
2.0.0之前版本(以1.1.2-cu版本为例)
curl -X POST -H "Content-Type: application/json" http://[seednodeip]:10003/v1/deploy -d
@managedCluster.json
managedCluster.json内容如下
{
"userName":"sysadmin",
"clusterName":"managedCluster",
"requestId":"",
"pubkeyId":"",
"clusterNumber":1,
"createMode":"reuse",
"isLinkerMgmt":true,
"createCategory":"compact",
"providerInfo":{
"properties":{
"driver":"generic"
}
},
"createNodes":{
"privatekey":"LSdWLSeCRpyJT3BSpdE1pFJJq5FpRSBLRq5WLSdWLQ+NSp6FweFJQ5FBSdNBppqBx7FJpDRdv6u/te2Rx5qBwDRJq72Lv8yeSq2UT627xFFaM85YtdFVTF6dqd+uTracC66KTdWrt72Nzs25TpRVTfN/LeRRzsyWND6UrpFPMducudMbRH9eSpFXw7FsyF2TrsqVNENLQryIr3VfprJ6T51KrDR5r5RdN3liOT68M7mErqqZwbmVv6AZRrRfMgBZyq5hSTuRvryLMqJ4y6yMp6FPMpuWxGNKpdeBTgB5rHu/vQ9cTG+bwDqiR8BNqqNMQf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IM5WSOFB5wGN6pdRhwDNczs2QuEJpR5N/NdWIvEq6wcJsC5i+QpytQcxet4FZu8Ruu72bxEQbt6+2y72Sys6aQgFBQ6uPyEFYRdFHp6JcNetdREWSpsNYzpiNS5xaTcJhw51Kp76qR7mNOsR9Q7Fcr5eeTHFEvHuBMgR7S5pYwGRYv4B7qfaOQcycyguORDAYrplhqCmVSGeIx8ROKdq+y6MgRQ+Oq59eTcqFwsJTMq6VS56epqyTNGNrtd9cwr5eSGehp4uDSq2hRcRKKbW/NH+eqqIaNEqEwHMZR6yvMdajRGqEC6RYwsMZvTRWzpiQqbmgucEbugNDue6FQsufxTF5zEasMGqUwg+Kt7+Bv7hYuGubRDRtw6FDNDtdqgBKTs+spphKxcyHpdyXRFyqSTy+RSmpv8JDOp5bMptdQe2pMgJOq46KyHy4yrdYz52GRq63NexdNcQURFRXxDuOvcusRsNPR19bMeQfv5W6R4xhMdR4Sri3Tr6KzpyBSbmguGmatpQZx8QhyDy7TD6MyTqgp7+bNe2iwd2iqEQhrEy9MTpYQbWQC3mWOEN8rpJJS5i5zpaDxpeCzpuSzpm9OruXud+VS5RSxFFtycFdOpNiSsMhTT2jLdFPw5N9z6RFvD62wH+Jye1Krr5hypWMMs+Rx5VaSSVdRrF5OG6BrpEgx4FNu8BDQcqcQTBXq59ZtduNrq+br6MhtqRWR6R/t4yIQeFZwbWiR19azFJgy66HRGFUMpEhSd2MugJIR5RMx7aNS5JMw7+fOH+tqTBeSDFISsuFu8Btu6+fycdmC3dWLSdWRpiEIFJTQSBQp56rQqRFIEWFrSdWLSdW",
"privateNicName":"eth0",
"nodes":[
{
"ip":"192.168.3.74",
"sshuser":"root",
"hostname":"mCluster",
"port":"22"
}
]
}
}

"clusterNumber":集群节点个数
"addMode":是否使用已有主机创建集群
"createCategory":集群类型(compact or ha)
"privatekey"是使用base64加密上面的私钥 (私钥加密方法参见文档最后部分)
"privatenicname"是主机网卡的名称(默认为eth0)
"ip"这个节点的ip地址
"sshuser":是主机节点的用戶名。
"hostname":设置主机的hostname (可选)
"port":ssh连接的端口 (可选,默认为22)

高可用模式的管理集群跟精简模式不同点在于,集群主机个数不同,高可用模式的管理集群有3个节点,POST命令如下:
managedCluster.json内容如下
{
"userName":"sysadmin",
"clusterName":"managedCluster",
"requestId":"",
"pubkeyId":"",
"clusterNumber":3,
"createMode":"reuse",
"isLinkerMgmt":true,
"createCategory":"ha",
"providerInfo":{
"properties":{
"driver":"generic"
}
},
"createNodes":{
"privatekey":"LSdWLSeCRpyJT3BSpdE1pFJJq5FpRSBLRq5WLSdWLQ+NSp6FweFJQ5FBSdNBppqBx7FJpDRdv6u/te2Rx5qBwDRJq72Lv8yeSq2UT627xFFaM85YtdFVTF6dqd+uTracC66KTdWrt72Nzs25TpRVTfN/LeRRzsyWND6UrpFPMducudMbRH9eSpFXw7FsyF2TrsqVNENLQryIr3VfprJ6T51KrDR5r5RdN3liOT68M7mErqqZwbmVv6AZRrRfMgBZyq5hSTuRvryLMqJ4y6yMp6FPMpuWxGNKpdeBTgB5rHu/vQ9cTG+bwDqiR8BNqqNMQfRaSre+Rqu3r5JXvT2OtsRjODu4RgBHMF6WLe6su5phRGaeRGNHuGiUpGmUzpiTSE6TC8+KxsMaSEFGyTEir4yGwEaWzEeOpfFgSTyUz6Jizp+iNfxbQfNrx8uLr6BYOEJLqeFbTEqiRFJ9Rp+ausy8OplKN72MxTqqpE1ZxrFXpcqeq8BPvd5eLgqgQeNJTdyfuryGtqqDRFFJQ56gSdNBppFXxdFPvGWLrF2Rzr29NHN3qQ+PNcqgRGNGwsuKq62pzr29xfipwrFJr5N6u5mEMrWTwe2Ez7yvSeBsxG9aR5yWz8RdRs9gT6ygt5NLKe6/y6EfC7+8OSleyHqSNg+9v3mspc1dvfe+ydFHzFyhws6dNsRKQeAexH+JTfety5ySQ4RIwSmaOs6iuguWMH+GSgBjv7dKvHuhMeqST46ayT28pH2Vq5xhNcFLqqNTu7atTrNhvdRDq8qhrqpcTFuqNGivwcFGRp1bw5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hMdR4Sri3Tr6KzpyBSbmguGmatpQZx8QhyDy7TD6MyTqgp7+bNe2iwd2iqEQhrEy9MTpYQbWQC3mWOEN8rpJJS5i5zpaDxpeCzpuSzpm9OruXud+VS5RSxFFtycFdOpNiSsMhTT2jLdFPw5N9z6RFvD62wH+Jye1Krr5hypWMMs+Rx5VaSSVdRrF5OG6BrpEgx4FNu8BDQcqcQTBXq59ZtduNrq+br6MhtqRWR6R/t4yIQeFZwbWiR19azFJgy66HRGFUMpEhSd2MugJIR5RMx7aNS5JMw7+fOH+tqTBeSDFISsuFu8Btu6+fycdmC3dWLSdWRpiEIFJTQSBQp56rQqRFIEWFrSdWLSdW",
"privateNicName":"eth0",
"nodes":[
{
"ip":"192.168.3.74",
"sshuser":"root",
"hostname":"mCluster1",
"port":"22"
},
{
"ip":"192.168.3.75",
"sshuser":"root",
"hostname":"mCluster2",
"port":"22"
},
{
"ip":"192.168.3.76",
"sshuser":"root",
"hostname":"mCluster3",
"port":"22"
}
]
}
}

如果POST成功,則返回200,精简模式的管理集群就正在安裝了。

2.0.0之后版本(以2.0.0版本为例)
curl -X POST -H "Content-Type: application/json" http://[seednodeip]:10003/v1/deploy -d
@managedCluster.json
managedCluster.json内容如下
{
"userName":"sysadmin",
"clusterName":"qamgmt",
"masterCount":1,
"sharedCount":0,
"pureslaveCount":0,
"isLinkerMgmt":true,
"createMode":"reuse",
"createCategory":"compact",
"masterNodes":
[
{
"ip":"10.140.0.13",
"hostname":"testlinkerdcos-1",
"sshUser":"linker",
"port":"22",
"privateKey":"LSdWLSeCRpyJT3BSpdE1pFJJq5FpRSBLRq5WLSdWLQ+NSp6FwgyJQ5FBSdNBppqBxcRFyd2gt66+xp69z7iMRcBYq5WvypiNNbmfv5NIrp+HTe5ZRH28x7JTts22pG+YC5NHxGVdr5yKxgIdqqxaR8RhuHyNST1USfeKS42EpGepyDN5Ndebzpqeuq6DTrNRyrNEuDqLOG5YTfu5TD5iqptKNGRLpFIYwcBgMdEcTf6vNsFH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67pfmeNgFDSGaOQd6GzFJeNcpcuA+JN4RQuqN9T7yHM82Yt5miLeJ+vGi5M8Acpfhgr7yiT7Qhv6yuyH2iur6My5WZTGiSydiXNfeNuphappmbrTAfC4qKq6pYyqxYrF+HM3mTRg+fqHB2Q6Ncrs6Trp63RqufRFRVQddYMEN8rpqBxr2Kt6xbSf6hxHFOvEudqDyiRHpKq4Rute9evdmCNcperH+aMf+Vw8phNGaGpq5ay7iLQ6J4NHqMpEQgug9hrq2aQ6NVueRVTqNTrSWQzEy2xTpirA+IqfJPte+7r5a3Qd9ctdaIw72ZRdNbprqtwH6dt8J5S4qBTFQaxsJcKdIeTHyqwrqCNdqgxf6/r5aNOqRbTgBDC56iQ72gSrqpuq+8qSWKvEq/r51gxTqcQfyuQ7+TuCWCR3ldNGJrqeytz7uYRgJIREuKuruqtfWUyqBLuq2IMEIKu4BfMs+qrGqWQ7RSTrJQudyRvCWrwq2RwD2cvqBuQphiKfauxTurRdaczpiBNTFMMdW2NTJ5TrejM6qtqHRRtZ+9z8FUNTyNR5qsQgEhz7hUzF+gp7m5v6pYx7Zdts+gzSmQuq5ZrTNXrGMcMg+Hv75exfqWT56UqFxYNdaHvE6GC7JFzDMeppWCudNNKgJWScyDwp2ZQqAUSeMeRGqguTJfMTRWQexgxc2cpfu5vcJMu4FdTGquv7RYpGqjue28qdQKvEmOSDxfzr+uOTNfyeQhq5iIR8Fez5eaqg+9v8ucR5JbwEZiNFR3QeyirraTpsq5NfxfvH1bSH+MucJTQctaNZ+upqBQuHFQwsRsqHBNTq6cr4tcwE2gwdJatp6Du59YTsy/xFN5vExbwcJDxq+KMgNUt7JNC3dWLSdWRpiEIFJTQSBQp56rQqRFIEWFrSdWLSdWC1==",
"privateNicName":"eth0"
}
],
"addMode":"reuse"
}

"masterCount": master节点的个数
"sharedCount": 共享节点的个数
"pureslaveCount": agent节点的个数
其他字段意义不变

创建高可用模式的管理集群,对应的json文件如下
{
"userName":"sysadmin",
"clusterName":"qamgmt",
"masterCount":3,
"sharedCount":0,
"pureslaveCount":0,
"isLinkerMgmt":true,
"createMode":"reuse",
"createCategory":"ha",
"masterNodes":
[
{
"ip":"10.140.0.13",
"hostname":"testlinkerdcos-1",
"sshUser":"linker",
"port":"22",
"privateKey":"LSdWLSeCRpyJT3BSpdE1pFJJq5FpRSBLRq5WLSdWLQ+NSp6FwgyJQ5FBSdNBppqBxcRFyd2gt66+xp69z7iMRcBYq5WvypiNNbmfv5NIrp+HTe5ZRH28x7JTts22pG+YC5NHxGVdr5yKxgIdqqxaR8RhuHyNST1USfeKS42EpGepyDN5Ndebzpqeuq6DTrNRyrNEuDqLOG5YTfu5TD5iqptKNGRLpFIYwcBgMdEcTf6vNsFHr6qgw3mBTeBjpduDKd6vuG2/u7q9we+NwrWdzGeHQ8+YNrVhxcqXvGFuugBrNQ+WypeTwfF8pcuLu8Biqq5cR7yRqEiMOHF/MEe3ufmGy5NOrr2vT8RTTDqKS7ucv5+Ev5ytReqQqgMUR62MqguUC8tcy4qbMrIcuD2Iwp+8NcyYvd6bw5aRqfm+MD5UR8B/N5lUqGF8ODyaxdpUp7aETTqiT6B5qrNhTEWXOFy9r6EKMd6WM6yay4JUSEW9wTyKQfa6ys6EMG1ixrqLRcNCwdJsxfeXvsyJREFRQpJBwd6CQpuNLgBNyrpezsBqpgxayA9br8qUzq1fzpIUxD2/pg2OrrF2MG+Jycy/Mr2OzTqrOrFUOEdbTpJcTdeYM8NqrsyWNp+vw6IUM7+fr4N2peNjC6qbvqJZyfMUysq5vdabzF9br7q5ufmaMs+qw7EZT7F5tsQgzqF9qpu+zGJ8wf2hTDMgyf+iqrRiN3mUQ45dpDpKRDIgOFR9udq8y62MT8FMtdWttpeYRsRqygqIMfi2SExfReBFqTJ6RfaIKfpgw526TcF9r8tgLeFSRfF7vHuUNQ+hODyFSf+Dwc2UwfFTx7uaz42FNdmVu8+vR6qSOENBw7eOugR8yH1cte2uq8tUyGeTpdyBwENRzptZS7igTguRC8yELeqPMeJSpGyGL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QaxsJcKdIeTHyqwrqCNdqgxf6/r5aNOqRbTgBDC56iQ72gSrqpuq+8qSWKvEq/r51gxTqcQfyuQ7+TuCWCR3ldNGJrqeytz7uYRgJIREuKuruqtfWUyqBLuq2IMEIKu4BfMs+qrGqWQ7RSTrJQudyRvCWrwq2RwD2cvqBuQphiKfauxTurRdaczpiBNTFMMdW2NTJ5TrejM6qtqHRRtZ+9z8FUNTyNR5qsQgEhz7hUzF+gp7m5v6pYx7Zdts+gzSmQuq5ZrTNXrGMcMg+Hv75exfqWT56UqFxYNdaHvE6GC7JFzDMeppWCudNNKgJWScyDwp2ZQqAUSeMeRGqguTJfMTRWQexgxc2cpfu5vcJMu4FdTGquv7RYpGqjue28qdQKvEmOSDxfzr+uOTNfyeQhq5iIR8Fez5eaqg+9v8ucR5JbwEZiNFR3QeyirraTpsq5NfxfvH1bSH+MucJTQctaNZ+upqBQuHFQwsRsqHBNTq6cr4tcwE2gwdJatp6Du59YTsy/xFN5vExbwcJDxq+KMgNUt7JNC3dWLSdWRpiEIFJTQSBQp56rQqRFIEWFrSdWLSdWC1==",
"privateNicName":"eth0"
}
],
"addMode":"reuse"
}

linkerdcos私钥加密方法:
私钥放置于一个当前用户可访问的目录,如:/tmp/key.pem, 执行如下命令
docker run -v /tmp:/tmp linkerrepository/dcos_encrypt encode /tmp/key.pem
返回私钥的加密结果

Docker Pull Command
Owner
linkerrepository

Comments (0)