├── LICENSE ├── cmdb_apiserver └── Dockerfile ├── cmdb_auditcontroller └── Dockerfile ├── cmdb_datacollection └── Dockerfile ├── cmdb_eventserver └── Dockerfile ├── cmdb_hostcontroller └── Dockerfile ├── cmdb_hostserver └── Dockerfile ├── cmdb_objectcontroller └── Dockerfile ├── cmdb_proccontroller └── Dockerfile ├── cmdb_procserver └── Dockerfile ├── cmdb_toposerver └── Dockerfile ├── cmdb_webserver └── Dockerfile └── yamls ├── all-in-one.yaml ├── cmdb-apiserver.yaml ├── cmdb-auditcontroller.yaml ├── cmdb-datacollection.yaml ├── cmdb-eventserver.yaml ├── cmdb-hostcontroller.yaml ├── cmdb-hostserver.yaml ├── cmdb-objectcontroller.yaml ├── cmdb-proccontroller.yaml ├── cmdb-procserver.yaml ├── cmdb-toposerver.yaml └── cmdb-webserver.yaml /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /cmdb_apiserver/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM centos:7.6.1810 2 | COPY . /cmdb_apiserver 3 | WORKDIR /cmdb_apiserver 4 | EXPOSE 8080/tcp 5 | RUN chmod +x start.sh 6 | ENTRYPOINT ./start.sh -------------------------------------------------------------------------------- /cmdb_auditcontroller/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM centos:7.6.1810 2 | COPY . /cmdb_auditcontroller 3 | WORKDIR /cmdb_auditcontroller 4 | EXPOSE 50005/tcp 5 | RUN chmod +x start.sh 6 | ENTRYPOINT ./start.sh -------------------------------------------------------------------------------- /cmdb_datacollection/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM centos:7.6.1810 2 | COPY . /cmdb_datacollection 3 | WORKDIR /cmdb_datacollection 4 | EXPOSE 60005/tcp 5 | RUN chmod +x start.sh 6 | ENTRYPOINT ./start.sh -------------------------------------------------------------------------------- /cmdb_eventserver/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM centos:7.6.1810 2 | COPY . /cmdb_eventserver 3 | WORKDIR /cmdb_eventserver 4 | EXPOSE 60009/tcp 5 | RUN chmod +x start.sh 6 | ENTRYPOINT ./start.sh -------------------------------------------------------------------------------- /cmdb_hostcontroller/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM centos:7.6.1810 2 | COPY . /cmdb_hostcontroller 3 | WORKDIR /cmdb_hostcontroller 4 | EXPOSE 50002/tcp 5 | RUN chmod +x start.sh 6 | ENTRYPOINT ./start.sh -------------------------------------------------------------------------------- /cmdb_hostserver/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM centos:7.6.1810 2 | COPY . /cmdb_hostserver 3 | WORKDIR /cmdb_hostserver 4 | EXPOSE 60001/tcp 5 | RUN chmod +x start.sh 6 | ENTRYPOINT ./start.sh -------------------------------------------------------------------------------- /cmdb_objectcontroller/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM centos:7.6.1810 2 | COPY . /cmdb_objectcontroller 3 | WORKDIR /cmdb_objectcontroller 4 | EXPOSE 50001/tcp 5 | RUN chmod +x start.sh 6 | ENTRYPOINT ./start.sh -------------------------------------------------------------------------------- /cmdb_proccontroller/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM centos:7.6.1810 2 | COPY . /cmdb_proccontroller 3 | WORKDIR /cmdb_proccontroller 4 | EXPOSE 50003/tcp 5 | RUN chmod +x start.sh 6 | ENTRYPOINT ./start.sh -------------------------------------------------------------------------------- /cmdb_procserver/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM centos:7.6.1810 2 | COPY . /cmdb_procserver 3 | WORKDIR /cmdb_procserver 4 | EXPOSE 60003/tcp 5 | RUN chmod +x start.sh 6 | ENTRYPOINT ./start.sh -------------------------------------------------------------------------------- /cmdb_toposerver/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM centos:7.6.1810 2 | COPY . /cmdb_toposerver 3 | WORKDIR /cmdb_toposerver 4 | EXPOSE 60002/tcp 5 | RUN chmod +x start.sh 6 | ENTRYPOINT ./start.sh -------------------------------------------------------------------------------- /cmdb_webserver/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM centos:7.6.1810 2 | COPY . /cmdb_webserver 3 | WORKDIR /cmdb_webserver 4 | EXPOSE 8083/tcp 5 | RUN chmod +x start.sh 6 | ENTRYPOINT ./start.sh -------------------------------------------------------------------------------- /yamls/all-in-one.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: extensions/v1beta1 2 | kind: Deployment 3 | metadata: 4 | name: cmdb-apiserver 5 | labels: 6 | app: cmdb-apiserver 7 | namespace: default 8 | spec: 9 | replicas: 1 10 | template: 11 | metadata: 12 | labels: 13 | app: cmdb-apiserver 14 | spec: 15 | nodeSelector: 16 | kubernetes.io/role: node 17 | containers: 18 | - name: cmdb-apiserver 19 | image: ccr.ccs.tencentyun.com/erik_xu/cmdb-apiserver:3.1.0 20 | env: 21 | - name: ZOOKEEPER_PATH 22 | value: 192.168.132.139:2181 23 | ports: 24 | - containerPort: 8080 25 | 26 | --- 27 | 28 | kind: Service 29 | apiVersion: v1 30 | metadata: 31 | name: cmdb-apiserver 32 | labels: 33 | app: cmdb-apiserver 34 | namespace: default 35 | spec: 36 | selector: 37 | app: cmdb-apiserver 38 | ports: 39 | - name: cmdb-apiserver 40 | targetPort: 8080 41 | port: 8080 42 | protocol: TCP 43 | 44 | --- 45 | 46 | apiVersion: extensions/v1beta1 47 | kind: Deployment 48 | metadata: 49 | name: cmdb-auditcontroller 50 | labels: 51 | app: cmdb-auditcontroller 52 | namespace: default 53 | spec: 54 | replicas: 1 55 | template: 56 | metadata: 57 | labels: 58 | app: cmdb-auditcontroller 59 | spec: 60 | nodeSelector: 61 | kubernetes.io/role: node 62 | containers: 63 | - name: cmdb-auditcontroller 64 | image: ccr.ccs.tencentyun.com/erik_xu/cmdb-auditcontroller:3.1.0 65 | env: 66 | - name: ZOOKEEPER_PATH 67 | value: 192.168.132.139:2181 68 | ports: 69 | - containerPort: 50005 70 | 71 | --- 72 | 73 | kind: Service 74 | apiVersion: v1 75 | metadata: 76 | name: cmdb-auditcontroller 77 | labels: 78 | app: cmdb-auditcontroller 79 | namespace: default 80 | spec: 81 | selector: 82 | app: cmdb-auditcontroller 83 | ports: 84 | - name: cmdb-auditcontroller 85 | targetPort: 50005 86 | port: 50005 87 | protocol: TCP 88 | 89 | --- 90 | 91 | apiVersion: extensions/v1beta1 92 | kind: Deployment 93 | metadata: 94 | name: cmdb-datacollection 95 | labels: 96 | app: cmdb-datacollection 97 | namespace: default 98 | spec: 99 | replicas: 1 100 | template: 101 | metadata: 102 | labels: 103 | app: cmdb-datacollection 104 | spec: 105 | nodeSelector: 106 | kubernetes.io/role: node 107 | containers: 108 | - name: cmdb-datacollection 109 | image: ccr.ccs.tencentyun.com/erik_xu/cmdb-datacollection:3.1.0 110 | env: 111 | - name: ZOOKEEPER_PATH 112 | value: 192.168.132.139:2181 113 | ports: 114 | - containerPort: 60005 115 | 116 | --- 117 | 118 | kind: Service 119 | apiVersion: v1 120 | metadata: 121 | name: cmdb-datacollection 122 | labels: 123 | app: cmdb-datacollection 124 | namespace: default 125 | spec: 126 | selector: 127 | app: cmdb-datacollection 128 | ports: 129 | - name: cmdb-datacollection 130 | targetPort: 60005 131 | port: 60005 132 | protocol: TCP 133 | 134 | --- 135 | 136 | apiVersion: extensions/v1beta1 137 | kind: Deployment 138 | metadata: 139 | name: cmdb-eventserver 140 | labels: 141 | app: cmdb-eventserver 142 | namespace: default 143 | spec: 144 | replicas: 1 145 | template: 146 | metadata: 147 | labels: 148 | app: cmdb-eventserver 149 | spec: 150 | nodeSelector: 151 | kubernetes.io/role: node 152 | containers: 153 | - name: cmdb-eventserver 154 | image: ccr.ccs.tencentyun.com/erik_xu/cmdb-eventserver:3.1.0 155 | env: 156 | - name: ZOOKEEPER_PATH 157 | value: 192.168.132.139:2181 158 | ports: 159 | - containerPort: 60009 160 | 161 | --- 162 | 163 | kind: Service 164 | apiVersion: v1 165 | metadata: 166 | name: cmdb-eventserver 167 | labels: 168 | app: cmdb-eventserver 169 | namespace: default 170 | spec: 171 | selector: 172 | app: cmdb-eventserver 173 | ports: 174 | - name: cmdb-eventserver 175 | targetPort: 60009 176 | port: 60009 177 | protocol: TCP 178 | 179 | --- 180 | 181 | apiVersion: extensions/v1beta1 182 | kind: Deployment 183 | metadata: 184 | name: cmdb-hostcontroller 185 | labels: 186 | app: cmdb-hostcontroller 187 | namespace: default 188 | spec: 189 | replicas: 1 190 | template: 191 | metadata: 192 | labels: 193 | app: cmdb-hostcontroller 194 | spec: 195 | nodeSelector: 196 | kubernetes.io/role: node 197 | containers: 198 | - name: cmdb-hostcontroller 199 | image: ccr.ccs.tencentyun.com/erik_xu/cmdb-hostcontroller:3.1.0 200 | env: 201 | - name: ZOOKEEPER_PATH 202 | value: 192.168.132.139:2181 203 | ports: 204 | - containerPort: 50002 205 | 206 | --- 207 | 208 | kind: Service 209 | apiVersion: v1 210 | metadata: 211 | name: cmdb-hostcontroller 212 | labels: 213 | app: cmdb-hostcontroller 214 | namespace: default 215 | spec: 216 | selector: 217 | app: cmdb-hostcontroller 218 | ports: 219 | - name: cmdb-hostcontroller 220 | targetPort: 50002 221 | port: 50002 222 | protocol: TCP 223 | 224 | --- 225 | 226 | apiVersion: extensions/v1beta1 227 | kind: Deployment 228 | metadata: 229 | name: cmdb-hostserver 230 | labels: 231 | app: cmdb-hostserver 232 | namespace: default 233 | spec: 234 | replicas: 1 235 | template: 236 | metadata: 237 | labels: 238 | app: cmdb-hostserver 239 | spec: 240 | nodeSelector: 241 | kubernetes.io/role: node 242 | containers: 243 | - name: cmdb-hostserver 244 | image: ccr.ccs.tencentyun.com/erik_xu/cmdb-hostserver:3.1.0 245 | env: 246 | - name: ZOOKEEPER_PATH 247 | value: 192.168.132.139:2181 248 | ports: 249 | - containerPort: 60001 250 | 251 | --- 252 | 253 | kind: Service 254 | apiVersion: v1 255 | metadata: 256 | name: cmdb-hostserver 257 | labels: 258 | app: cmdb-hostserver 259 | namespace: default 260 | spec: 261 | selector: 262 | app: cmdb-hostserver 263 | ports: 264 | - name: cmdb-hostserver 265 | targetPort: 60001 266 | port: 60001 267 | protocol: TCP 268 | 269 | --- 270 | 271 | apiVersion: extensions/v1beta1 272 | kind: Deployment 273 | metadata: 274 | name: cmdb-objectcontroller 275 | labels: 276 | app: cmdb-objectcontroller 277 | namespace: default 278 | spec: 279 | replicas: 1 280 | template: 281 | metadata: 282 | labels: 283 | app: cmdb-objectcontroller 284 | spec: 285 | nodeSelector: 286 | kubernetes.io/role: node 287 | containers: 288 | - name: cmdb-objectcontroller 289 | image: ccr.ccs.tencentyun.com/erik_xu/cmdb-objectcontroller:3.1.0 290 | env: 291 | - name: ZOOKEEPER_PATH 292 | value: 192.168.132.139:2181 293 | ports: 294 | - containerPort: 50001 295 | 296 | --- 297 | 298 | kind: Service 299 | apiVersion: v1 300 | metadata: 301 | name: cmdb-objectcontroller 302 | labels: 303 | app: cmdb-objectcontroller 304 | namespace: default 305 | spec: 306 | selector: 307 | app: cmdb-objectcontroller 308 | ports: 309 | - name: cmdb-objectcontroller 310 | targetPort: 50001 311 | port: 50001 312 | protocol: TCP 313 | 314 | --- 315 | 316 | apiVersion: extensions/v1beta1 317 | kind: Deployment 318 | metadata: 319 | name: cmdb-proccontroller 320 | labels: 321 | app: cmdb-proccontroller 322 | namespace: default 323 | spec: 324 | replicas: 1 325 | template: 326 | metadata: 327 | labels: 328 | app: cmdb-proccontroller 329 | spec: 330 | nodeSelector: 331 | kubernetes.io/role: node 332 | containers: 333 | - name: cmdb-proccontroller 334 | image: ccr.ccs.tencentyun.com/erik_xu/cmdb-proccontroller:3.1.0 335 | env: 336 | - name: ZOOKEEPER_PATH 337 | value: 192.168.132.139:2181 338 | ports: 339 | - containerPort: 50003 340 | 341 | --- 342 | 343 | kind: Service 344 | apiVersion: v1 345 | metadata: 346 | name: cmdb-proccontroller 347 | labels: 348 | app: cmdb-proccontroller 349 | namespace: default 350 | spec: 351 | selector: 352 | app: cmdb-proccontroller 353 | ports: 354 | - name: cmdb-proccontroller 355 | targetPort: 50003 356 | port: 50003 357 | protocol: TCP 358 | 359 | --- 360 | 361 | apiVersion: extensions/v1beta1 362 | kind: Deployment 363 | metadata: 364 | name: cmdb-procserver 365 | labels: 366 | app: cmdb-procserver 367 | namespace: default 368 | spec: 369 | replicas: 1 370 | template: 371 | metadata: 372 | labels: 373 | app: cmdb-procserver 374 | spec: 375 | nodeSelector: 376 | kubernetes.io/role: node 377 | containers: 378 | - name: cmdb-procserver 379 | image: ccr.ccs.tencentyun.com/erik_xu/cmdb-procserver:3.1.0 380 | env: 381 | - name: ZOOKEEPER_PATH 382 | value: 192.168.132.139:2181 383 | ports: 384 | - containerPort: 60003 385 | 386 | --- 387 | 388 | kind: Service 389 | apiVersion: v1 390 | metadata: 391 | name: cmdb-procserver 392 | labels: 393 | app: cmdb-procserver 394 | namespace: default 395 | spec: 396 | selector: 397 | app: cmdb-procserver 398 | ports: 399 | - name: cmdb-procserver 400 | targetPort: 60003 401 | port: 60003 402 | protocol: TCP 403 | 404 | --- 405 | 406 | apiVersion: extensions/v1beta1 407 | kind: Deployment 408 | metadata: 409 | name: cmdb-toposerver 410 | labels: 411 | app: cmdb-toposerver 412 | namespace: default 413 | spec: 414 | replicas: 1 415 | template: 416 | metadata: 417 | labels: 418 | app: cmdb-toposerver 419 | spec: 420 | nodeSelector: 421 | kubernetes.io/role: node 422 | containers: 423 | - name: cmdb-toposerver 424 | image: ccr.ccs.tencentyun.com/erik_xu/cmdb-toposerver:3.1.0 425 | env: 426 | - name: ZOOKEEPER_PATH 427 | value: 192.168.132.139:2181 428 | ports: 429 | - containerPort: 60002 430 | 431 | --- 432 | 433 | kind: Service 434 | apiVersion: v1 435 | metadata: 436 | name: cmdb-toposerver 437 | labels: 438 | app: cmdb-toposerver 439 | namespace: default 440 | spec: 441 | selector: 442 | app: cmdb-toposerver 443 | ports: 444 | - name: cmdb-toposerver 445 | targetPort: 60002 446 | port: 60002 447 | protocol: TCP 448 | 449 | --- 450 | 451 | apiVersion: extensions/v1beta1 452 | kind: Deployment 453 | metadata: 454 | name: cmdb-webserver 455 | labels: 456 | app: cmdb-webserver 457 | namespace: default 458 | spec: 459 | replicas: 1 460 | template: 461 | metadata: 462 | labels: 463 | app: cmdb-webserver 464 | spec: 465 | nodeSelector: 466 | kubernetes.io/role: node 467 | containers: 468 | - name: cmdb-webserver 469 | image: ccr.ccs.tencentyun.com/erik_xu/cmdb-webserver:3.1.0 470 | env: 471 | - name: ZOOKEEPER_PATH 472 | value: 192.168.132.139:2181 473 | ports: 474 | - containerPort: 8083 475 | 476 | --- 477 | 478 | kind: Service 479 | apiVersion: v1 480 | metadata: 481 | name: cmdb-webserver 482 | labels: 483 | app: cmdb-webserver 484 | namespace: default 485 | spec: 486 | selector: 487 | app: cmdb-webserver 488 | type: NodePort 489 | ports: 490 | - name: cmdb-webserver 491 | nodePort: 30000 492 | targetPort: 8083 493 | port: 8083 494 | protocol: TCP -------------------------------------------------------------------------------- /yamls/cmdb-apiserver.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: extensions/v1beta1 2 | kind: Deployment 3 | metadata: 4 | name: cmdb-apiserver 5 | labels: 6 | app: cmdb-apiserver 7 | namespace: default 8 | spec: 9 | replicas: 1 10 | template: 11 | metadata: 12 | labels: 13 | app: cmdb-apiserver 14 | spec: 15 | nodeSelector: 16 | kubernetes.io/role: node 17 | containers: 18 | - name: cmdb-apiserver 19 | image: cmdb-apiserver:3.1.0 20 | env: 21 | - name: ZOOKEEPER_PATH 22 | value: 192.168.132.139:2181 23 | ports: 24 | - containerPort: 8080 25 | 26 | --- 27 | 28 | kind: Service 29 | apiVersion: v1 30 | metadata: 31 | name: cmdb-apiserver 32 | labels: 33 | app: cmdb-apiserver 34 | namespace: default 35 | spec: 36 | selector: 37 | app: cmdb-apiserver 38 | ports: 39 | - name: cmdb-apiserver 40 | targetPort: 8080 41 | port: 8080 42 | protocol: TCP -------------------------------------------------------------------------------- /yamls/cmdb-auditcontroller.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: extensions/v1beta1 2 | kind: Deployment 3 | metadata: 4 | name: cmdb-auditcontroller 5 | labels: 6 | app: cmdb-auditcontroller 7 | namespace: default 8 | spec: 9 | replicas: 1 10 | template: 11 | metadata: 12 | labels: 13 | app: cmdb-auditcontroller 14 | spec: 15 | nodeSelector: 16 | kubernetes.io/role: node 17 | containers: 18 | - name: cmdb-auditcontroller 19 | image: cmdb-auditcontroller:3.1.0 20 | env: 21 | - name: ZOOKEEPER_PATH 22 | value: 192.168.132.139:2181 23 | ports: 24 | - containerPort: 50005 25 | 26 | --- 27 | 28 | kind: Service 29 | apiVersion: v1 30 | metadata: 31 | name: cmdb-auditcontroller 32 | labels: 33 | app: cmdb-auditcontroller 34 | namespace: default 35 | spec: 36 | selector: 37 | app: cmdb-auditcontroller 38 | ports: 39 | - name: cmdb-auditcontroller 40 | targetPort: 50005 41 | port: 50005 42 | protocol: TCP -------------------------------------------------------------------------------- /yamls/cmdb-datacollection.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: extensions/v1beta1 2 | kind: Deployment 3 | metadata: 4 | name: cmdb-datacollection 5 | labels: 6 | app: cmdb-datacollection 7 | namespace: default 8 | spec: 9 | replicas: 1 10 | template: 11 | metadata: 12 | labels: 13 | app: cmdb-datacollection 14 | spec: 15 | nodeSelector: 16 | kubernetes.io/role: node 17 | containers: 18 | - name: cmdb-datacollection 19 | image: cmdb-datacollection:3.1.0 20 | env: 21 | - name: ZOOKEEPER_PATH 22 | value: 192.168.132.139:2181 23 | ports: 24 | - containerPort: 60005 25 | 26 | --- 27 | 28 | kind: Service 29 | apiVersion: v1 30 | metadata: 31 | name: cmdb-datacollection 32 | labels: 33 | app: cmdb-datacollection 34 | namespace: default 35 | spec: 36 | selector: 37 | app: cmdb-datacollection 38 | ports: 39 | - name: cmdb-datacollection 40 | targetPort: 60005 41 | port: 60005 42 | protocol: TCP -------------------------------------------------------------------------------- /yamls/cmdb-eventserver.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: extensions/v1beta1 2 | kind: Deployment 3 | metadata: 4 | name: cmdb-eventserver 5 | labels: 6 | app: cmdb-eventserver 7 | namespace: default 8 | spec: 9 | replicas: 1 10 | template: 11 | metadata: 12 | labels: 13 | app: cmdb-eventserver 14 | spec: 15 | nodeSelector: 16 | kubernetes.io/role: node 17 | containers: 18 | - name: cmdb-eventserver 19 | image: cmdb-eventserver:3.1.0 20 | env: 21 | - name: ZOOKEEPER_PATH 22 | value: 192.168.132.139:2181 23 | ports: 24 | - containerPort: 60009 25 | 26 | --- 27 | 28 | kind: Service 29 | apiVersion: v1 30 | metadata: 31 | name: cmdb-eventserver 32 | labels: 33 | app: cmdb-eventserver 34 | namespace: default 35 | spec: 36 | selector: 37 | app: cmdb-eventserver 38 | ports: 39 | - name: cmdb-eventserver 40 | targetPort: 60009 41 | port: 60009 42 | protocol: TCP -------------------------------------------------------------------------------- /yamls/cmdb-hostcontroller.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: extensions/v1beta1 2 | kind: Deployment 3 | metadata: 4 | name: cmdb-hostcontroller 5 | labels: 6 | app: cmdb-hostcontroller 7 | namespace: default 8 | spec: 9 | replicas: 1 10 | template: 11 | metadata: 12 | labels: 13 | app: cmdb-hostcontroller 14 | spec: 15 | nodeSelector: 16 | kubernetes.io/role: node 17 | containers: 18 | - name: cmdb-hostcontroller 19 | image: cmdb-hostcontroller:3.1.0 20 | env: 21 | - name: ZOOKEEPER_PATH 22 | value: 192.168.132.139:2181 23 | ports: 24 | - containerPort: 50002 25 | 26 | --- 27 | 28 | kind: Service 29 | apiVersion: v1 30 | metadata: 31 | name: cmdb-hostcontroller 32 | labels: 33 | app: cmdb-hostcontroller 34 | namespace: default 35 | spec: 36 | selector: 37 | app: cmdb-hostcontroller 38 | ports: 39 | - name: cmdb-hostcontroller 40 | targetPort: 50002 41 | port: 50002 42 | protocol: TCP -------------------------------------------------------------------------------- /yamls/cmdb-hostserver.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: extensions/v1beta1 2 | kind: Deployment 3 | metadata: 4 | name: cmdb-hostserver 5 | labels: 6 | app: cmdb-hostserver 7 | namespace: default 8 | spec: 9 | replicas: 1 10 | template: 11 | metadata: 12 | labels: 13 | app: cmdb-hostserver 14 | spec: 15 | nodeSelector: 16 | kubernetes.io/role: node 17 | containers: 18 | - name: cmdb-hostserver 19 | image: cmdb-hostserver:3.1.0 20 | env: 21 | - name: ZOOKEEPER_PATH 22 | value: 192.168.132.139:2181 23 | ports: 24 | - containerPort: 60001 25 | 26 | --- 27 | 28 | kind: Service 29 | apiVersion: v1 30 | metadata: 31 | name: cmdb-hostserver 32 | labels: 33 | app: cmdb-hostserver 34 | namespace: default 35 | spec: 36 | selector: 37 | app: cmdb-hostserver 38 | ports: 39 | - name: cmdb-hostserver 40 | targetPort: 60001 41 | port: 60001 42 | protocol: TCP -------------------------------------------------------------------------------- /yamls/cmdb-objectcontroller.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: extensions/v1beta1 2 | kind: Deployment 3 | metadata: 4 | name: cmdb-objectcontroller 5 | labels: 6 | app: cmdb-objectcontroller 7 | namespace: default 8 | spec: 9 | replicas: 1 10 | template: 11 | metadata: 12 | labels: 13 | app: cmdb-objectcontroller 14 | spec: 15 | nodeSelector: 16 | kubernetes.io/role: node 17 | containers: 18 | - name: cmdb-objectcontroller 19 | image: cmdb-objectcontroller:3.1.0 20 | env: 21 | - name: ZOOKEEPER_PATH 22 | value: 192.168.132.139:2181 23 | ports: 24 | - containerPort: 50001 25 | 26 | --- 27 | 28 | kind: Service 29 | apiVersion: v1 30 | metadata: 31 | name: cmdb-objectcontroller 32 | labels: 33 | app: cmdb-objectcontroller 34 | namespace: default 35 | spec: 36 | selector: 37 | app: cmdb-objectcontroller 38 | ports: 39 | - name: cmdb-objectcontroller 40 | targetPort: 50001 41 | port: 50001 42 | protocol: TCP -------------------------------------------------------------------------------- /yamls/cmdb-proccontroller.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: extensions/v1beta1 2 | kind: Deployment 3 | metadata: 4 | name: cmdb-proccontroller 5 | labels: 6 | app: cmdb-proccontroller 7 | namespace: default 8 | spec: 9 | replicas: 1 10 | template: 11 | metadata: 12 | labels: 13 | app: cmdb-proccontroller 14 | spec: 15 | nodeSelector: 16 | kubernetes.io/role: node 17 | containers: 18 | - name: cmdb-proccontroller 19 | image: cmdb-proccontroller:3.1.0 20 | env: 21 | - name: ZOOKEEPER_PATH 22 | value: 192.168.132.139:2181 23 | ports: 24 | - containerPort: 50003 25 | 26 | --- 27 | 28 | kind: Service 29 | apiVersion: v1 30 | metadata: 31 | name: cmdb-proccontroller 32 | labels: 33 | app: cmdb-proccontroller 34 | namespace: default 35 | spec: 36 | selector: 37 | app: cmdb-proccontroller 38 | ports: 39 | - name: cmdb-proccontroller 40 | targetPort: 50003 41 | port: 50003 42 | protocol: TCP -------------------------------------------------------------------------------- /yamls/cmdb-procserver.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: extensions/v1beta1 2 | kind: Deployment 3 | metadata: 4 | name: cmdb-procserver 5 | labels: 6 | app: cmdb-procserver 7 | namespace: default 8 | spec: 9 | replicas: 1 10 | template: 11 | metadata: 12 | labels: 13 | app: cmdb-procserver 14 | spec: 15 | nodeSelector: 16 | kubernetes.io/role: node 17 | containers: 18 | - name: cmdb-procserver 19 | image: cmdb-procserver:3.1.0 20 | env: 21 | - name: ZOOKEEPER_PATH 22 | value: 192.168.132.139:2181 23 | ports: 24 | - containerPort: 60003 25 | 26 | --- 27 | 28 | kind: Service 29 | apiVersion: v1 30 | metadata: 31 | name: cmdb-procserver 32 | labels: 33 | app: cmdb-procserver 34 | namespace: default 35 | spec: 36 | selector: 37 | app: cmdb-procserver 38 | ports: 39 | - name: cmdb-procserver 40 | targetPort: 60003 41 | port: 60003 42 | protocol: TCP -------------------------------------------------------------------------------- /yamls/cmdb-toposerver.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: extensions/v1beta1 2 | kind: Deployment 3 | metadata: 4 | name: cmdb-toposerver 5 | labels: 6 | app: cmdb-toposerver 7 | namespace: default 8 | spec: 9 | replicas: 1 10 | template: 11 | metadata: 12 | labels: 13 | app: cmdb-toposerver 14 | spec: 15 | nodeSelector: 16 | kubernetes.io/role: node 17 | containers: 18 | - name: cmdb-toposerver 19 | image: cmdb-toposerver:3.1.0 20 | env: 21 | - name: ZOOKEEPER_PATH 22 | value: 192.168.132.139:2181 23 | ports: 24 | - containerPort: 60002 25 | 26 | --- 27 | 28 | kind: Service 29 | apiVersion: v1 30 | metadata: 31 | name: cmdb-toposerver 32 | labels: 33 | app: cmdb-toposerver 34 | namespace: default 35 | spec: 36 | selector: 37 | app: cmdb-toposerver 38 | ports: 39 | - name: cmdb-toposerver 40 | targetPort: 60002 41 | port: 60002 42 | protocol: TCP -------------------------------------------------------------------------------- /yamls/cmdb-webserver.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: extensions/v1beta1 2 | kind: Deployment 3 | metadata: 4 | name: cmdb-webserver 5 | labels: 6 | app: cmdb-webserver 7 | namespace: default 8 | spec: 9 | replicas: 1 10 | template: 11 | metadata: 12 | labels: 13 | app: cmdb-webserver 14 | spec: 15 | nodeSelector: 16 | kubernetes.io/role: node 17 | containers: 18 | - name: cmdb-webserver 19 | image: cmdb-webserver:3.1.0 20 | env: 21 | - name: ZOOKEEPER_PATH 22 | value: 192.168.132.139:2181 23 | ports: 24 | - containerPort: 8083 25 | 26 | --- 27 | 28 | kind: Service 29 | apiVersion: v1 30 | metadata: 31 | name: cmdb-webserver 32 | labels: 33 | app: cmdb-webserver 34 | namespace: default 35 | spec: 36 | selector: 37 | app: cmdb-webserver 38 | type: NodePort 39 | ports: 40 | - name: cmdb-webserver 41 | nodePort: 30000 42 | targetPort: 8083 43 | port: 8083 44 | protocol: TCP --------------------------------------------------------------------------------