Mirantis Container Cloud (MCC) becomes part of Mirantis OpenStack for Kubernetes (MOSK)!
Starting with MOSK 25.2, the MOSK documentation set covers all product layers, including MOSK management (formerly Container Cloud). This means everything you need is in one place. Some legacy names may remain in the code and documentation and will be updated in future releases. The separate Container Cloud documentation site will be retired, so please update your bookmarks for continued easy access to the latest content.
Set a custom external IP address for the DHCP service¶
Available since MCC 2.25.0 (Cluster release 16.0.0)
This section instructs you on how to set a custom external IP address for
the dhcp-lb service so that it remains the same during management cluster
upgrades and other LCM operations.
The changes of dhcp-lb service address may lead to the necessity of
changing configuration for DHCP relays on ToR switches.
The described procedure allows you to avoid such unwanted changes.
This configuration makes sense when you use multiple DHCP address ranges
on your deployment. See Configure multiple DHCP address ranges for details.
To set a custom external IP address for the dhcp-lb service:
In the
Clusterobject of the management cluster, modify the configuration of thebaremetal-operatorrelease by settingdnsmasq.dedicated_udp_service_address_pooltotrue:spec: ... providerSpec: value: kaas: ... regional: - helmReleases: ... - name: baremetal-operator values: dnsmasq: dedicated_udp_service_address_pool: true ... provider: baremetal ...
In the
MetalLBConfigobject of the management cluster, modify theipAddressPoolsobject list by adding thedhcp-lbobject and theserviceAllocationparameters for thedefaultobject:ipAddressPools: - name: default spec: addresses: - 112.181.11.41-112.181.11.60 autoAssign: true avoidBuggyIPs: false serviceAllocation: serviceSelectors: - matchExpressions: - key: app.kubernetes.io/name operator: NotIn values: - dhcp-lb - name: services-pxe spec: addresses: - 10.0.24.122-10.0.24.140 autoAssign: false avoidBuggyIPs: false - name: dhcp-lb spec: addresses: - 10.0.24.121/32 autoAssign: true avoidBuggyIPs: false serviceAllocation: namespaces: - kaas serviceSelectors: - matchExpressions: - key: app.kubernetes.io/name operator: In values: - dhcp-lb
Select non-overlapping IP addresses for all the
ipAddressPoolsthat you use:default,services-pxe, anddhcp-lb.In the
MetalLBConfigobject of the management cluster, modify thel2Advertisementsobject list by addingdhcp-lbto theipAddressPoolssection in thepxeobject spec:Note
A cluster may have a different
L2Advertisementobject name instead ofpxe.l2Advertisements: ... - name: pxe spec: ipAddressPools: - services-pxe - dhcp-lb ...