Reference Airship manifests, CICD, and reference architecture.
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

291 linhas
8.9KB

  1. ---
  2. # The purpose of this file is to define all of the NetworkLinks (i.e. layer 1
  3. # devices) and Networks (i.e. layer 3 configurations). The following is standard
  4. # for the logical networks in Airship:
  5. #
  6. # +----------+-----------------------------------+----------------+--------------+-----------------+
  7. # | Network | | Per-rack or | | VLAN tagged |
  8. # | Name | Purpose | per-site CIDR? | Has gateway? | or untagged? |
  9. # +----------+-----------------------------------+----------------+--------------+-----------------+
  10. # | oob | Out of Band devices (iDrac/iLo) | per-site CIDR | Has gateway | Untagged/Native |
  11. # | pxe | PXE boot network | per-site CIDR | No gateway | Untagged/Native |
  12. # | oam | management network | per-site CIDR | Has gateway | tagged |
  13. # | storage | storage network | per-site CIDR | No gateway | tagged |
  14. # | calico | underlay calico net; k8s traffic | per-site CIDR | No gateway | tagged |
  15. # | overlay | overlay network for openstack SDN | per-site CIDR | No gateway | tagged |
  16. # +----------+-----------------------------------+----------------+--------------+-----------------+
  17. #
  18. # For standard Airship deployments, you should not need to modify the number of
  19. # NetworkLinks and Networks in this file. Only the IP addresses and CIDRs should
  20. # need editing.
  21. #
  22. # TODO: Given that we expect all network broadcast domains to span all racks in
  23. # Airship, we should choose network names that do not include the rack number.
  24. #
  25. # TODO: FQDN naming standards for hosts
  26. #
  27. schema: 'drydock/NetworkLink/v1'
  28. metadata:
  29. schema: 'metadata/Document/v1'
  30. name: oob
  31. layeringDefinition:
  32. abstract: false
  33. layer: site
  34. storagePolicy: cleartext
  35. data:
  36. # MaaS doesnt own this network like it does the others, so the noconfig label
  37. # is specified.
  38. labels:
  39. noconfig: enabled
  40. bonding:
  41. mode: disabled
  42. mtu: 1500
  43. linkspeed: auto
  44. trunking:
  45. mode: disabled
  46. default_network: oob
  47. allowed_networks:
  48. - oob
  49. ...
  50. ---
  51. schema: 'drydock/Network/v1'
  52. metadata:
  53. schema: 'metadata/Document/v1'
  54. name: oob
  55. layeringDefinition:
  56. abstract: false
  57. layer: site
  58. storagePolicy: cleartext
  59. data:
  60. # NEWSITE-CHANGEME: Update with the site's out-of-band CIDR
  61. cidr: 10.22.104.0/24
  62. routes:
  63. # NEWSITE-CHANGEME: Update with the site's out-of-band gateway IP
  64. - subnet: '0.0.0.0/0'
  65. gateway: 10.22.104.1
  66. metric: 100
  67. # NEWSITE-CHANGEME: Update with the site's out-of-band IP allocation range
  68. # FIXME: Is this IP range actually used/allocated for anything? The HW already
  69. # has its OOB IPs assigned. None of the Ubuntu OS's should need IPs on OOB
  70. # network either, as they should be routable via the default gw on OAM network
  71. ranges:
  72. - type: static
  73. start: 10.22.104.21
  74. end: 10.22.104.22
  75. ...
  76. ---
  77. schema: 'drydock/NetworkLink/v1'
  78. metadata:
  79. schema: 'metadata/Document/v1'
  80. name: pxe
  81. layeringDefinition:
  82. abstract: false
  83. layer: site
  84. storagePolicy: cleartext
  85. data:
  86. bonding:
  87. mode: disabled
  88. mtu: 1500
  89. linkspeed: auto
  90. trunking:
  91. mode: disabled
  92. default_network: pxe
  93. allowed_networks:
  94. - pxe
  95. ...
  96. ---
  97. schema: 'drydock/Network/v1'
  98. metadata:
  99. schema: 'metadata/Document/v1'
  100. name: pxe
  101. layeringDefinition:
  102. abstract: false
  103. layer: site
  104. storagePolicy: cleartext
  105. data:
  106. # NEWSITE-CHANGEME: Update with the site's PXE network CIDR
  107. # NOTE: The CIDR minimum size = (number of nodes * 2) + 10
  108. cidr: 10.22.70.0/24
  109. routes:
  110. - subnet: 0.0.0.0/0
  111. # NEWSITE-CHANGEME: Set the OAM network gateway IP address
  112. gateway: 10.22.70.1
  113. metric: 100
  114. # NOTE: The first 10 IPs in the subnet are reserved for network infrastructure.
  115. # The remainder of the range is divided between two subnets of equal size:
  116. # one static, and one DHCP.
  117. # The DHCP addresses are used when nodes perform a PXE boot (DHCP address gets
  118. # assigned), and when a node is commissioning in MaaS (also uses DHCP to get
  119. # its IP address). However, when MaaS installs the operating system
  120. # ("Deploying/Deployed" states), it will write a static IP assignment to
  121. # /etc/network/interfaces[.d] with IPs from the "static" subnet defined here.
  122. ranges:
  123. # NEWSITE-CHANGEME: Update to the first 10 IPs in the CIDR
  124. - type: reserved
  125. start: 10.22.70.1
  126. end: 10.22.70.10
  127. # NEWSITE-CHANGEME: Update to the first half of the remaining range after
  128. # excluding the 10 reserved IPs.
  129. - type: static
  130. start: 10.22.70.21
  131. end: 10.22.70.31
  132. # NEWSITE-CHANGEME: Update to the second half of the remaining range after
  133. # excluding the 10 reserved IPs.
  134. - type: dhcp
  135. start: 10.22.70.40
  136. end: 10.22.70.80
  137. dns:
  138. # NEWSITE-CHANGEME: FQDN for bare metal nodes.
  139. # Choose FQDN according to the node FQDN naming conventions at the top of
  140. # this document.
  141. domain: atlantafoundry.com
  142. # List of upstream DNS forwards. Verify you can reach them from your
  143. # environment. If so, you should not need to change them.
  144. # TODO: This should be populated via substitution from common-addresses
  145. servers: '8.8.8.8,8.8.4.4,208.67.222.222'
  146. ...
  147. ---
  148. schema: 'drydock/NetworkLink/v1'
  149. metadata:
  150. schema: 'metadata/Document/v1'
  151. name: data
  152. layeringDefinition:
  153. abstract: false
  154. layer: site
  155. storagePolicy: cleartext
  156. data:
  157. bonding:
  158. mode: disabled
  159. mtu: 1500
  160. linkspeed: auto
  161. trunking:
  162. mode: 802.1q
  163. allowed_networks:
  164. - oam
  165. - storage
  166. - overlay
  167. - calico
  168. ...
  169. ---
  170. schema: 'drydock/Network/v1'
  171. metadata:
  172. schema: 'metadata/Document/v1'
  173. name: oam
  174. layeringDefinition:
  175. abstract: false
  176. layer: site
  177. storagePolicy: cleartext
  178. data:
  179. # NEWSITE-CHANGEME: Set the VLAN ID which the OAM network is on
  180. vlan: '71'
  181. mtu: 1500
  182. # NEWSITE-CHANGEME: Set the CIDR for the OAM network
  183. # NOTE: The CIDR minimum size = number of nodes + 10
  184. cidr: 10.22.71.0/24
  185. routes:
  186. - subnet: 0.0.0.0/0
  187. # NEWSITE-CHANGEME: Set the OAM network gateway IP address
  188. gateway: 10.22.71.1
  189. metric: 100
  190. ranges:
  191. # NEWSITE-CHANGEME: Update to the first 10 IPs in the CIDR
  192. - type: reserved
  193. start: 10.22.71.1
  194. end: 10.22.71.10
  195. # NEWSITE-CHANGEME: Update to the remaining range after excluding the 10
  196. # 10 reserved IPs.
  197. - type: static
  198. start: 10.22.71.21
  199. end: 10.22.71.31
  200. dns:
  201. # NEWSITE-CHANGEME: FQDN for bare metal nodes.
  202. # Choose FQDN according to the node FQDN naming conventions at the top of
  203. # this document.
  204. domain: atlantafoundry.com
  205. # List of upstream DNS forwards. Verify you can reach them from your
  206. # environment. If so, you should not need to change them.
  207. # TODO: This should be populated via substitution from common-addresses
  208. servers: '8.8.8.8,8.8.4.4'
  209. ...
  210. ---
  211. schema: 'drydock/Network/v1'
  212. metadata:
  213. schema: 'metadata/Document/v1'
  214. name: calico
  215. layeringDefinition:
  216. abstract: false
  217. layer: site
  218. storagePolicy: cleartext
  219. data:
  220. # NEWSITE-CHANGEME: Set the VLAN ID which the calico network is on
  221. vlan: '72'
  222. mtu: 1500
  223. # NEWSITE-CHANGEME: Set the CIDR for the calico network
  224. # NOTE: The CIDR minimum size = number of nodes + 10
  225. cidr: 10.22.72.0/24
  226. ranges:
  227. # NEWSITE-CHANGEME: Update to the first 10 IPs in the CIDR
  228. - type: reserved
  229. start: 10.22.72.1
  230. end: 10.22.72.10
  231. # NEWSITE-CHANGEME: Update to the remaining range after excluding the 10
  232. # 10 reserved IPs.
  233. - type: static
  234. start: 10.22.72.21
  235. end: 10.22.72.31
  236. ...
  237. ---
  238. schema: 'drydock/Network/v1'
  239. metadata:
  240. schema: 'metadata/Document/v1'
  241. name: storage
  242. layeringDefinition:
  243. abstract: false
  244. layer: site
  245. storagePolicy: cleartext
  246. data:
  247. # NEWSITE-CHANGEME: Set the VLAN ID which the storage network is on
  248. vlan: '73'
  249. mtu: 1500
  250. # NEWSITE-CHANGEME: Set the CIDR for the storage network
  251. # NOTE: The CIDR minimum size = number of nodes + 10
  252. cidr: 10.22.73.0/24
  253. ranges:
  254. # NEWSITE-CHANGEME: Update to the first 10 IPs in the CIDR
  255. - type: reserved
  256. start: 10.22.73.1
  257. end: 10.22.73.10
  258. # NEWSITE-CHANGEME: Update to the remaining range after excluding the 10
  259. # 10 reserved IPs.
  260. - type: static
  261. start: 10.22.73.21
  262. end: 10.22.73.31
  263. ...
  264. ---
  265. schema: 'drydock/Network/v1'
  266. metadata:
  267. schema: 'metadata/Document/v1'
  268. name: overlay
  269. layeringDefinition:
  270. abstract: false
  271. layer: site
  272. storagePolicy: cleartext
  273. data:
  274. # NEWSITE-CHANGEME: Set the VLAN ID which the overlay network is on
  275. vlan: '74'
  276. mtu: 1500
  277. # NEWSITE-CHANGEME: Set the CIDR for the overlay network
  278. # NOTE: The CIDR minimum size = number of nodes + 10
  279. cidr: 10.22.74.0/24
  280. ranges:
  281. # NEWSITE-CHANGEME: Update to the first 10 IPs in the CIDR
  282. - type: reserved
  283. start: 10.22.74.1
  284. end: 10.22.74.10
  285. # NEWSITE-CHANGEME: Update to the remaining range after excluding the 10
  286. # 10 reserved IPs.
  287. - type: static
  288. start: 10.22.74.21
  289. end: 10.22.74.31
  290. ...