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.
IPaddr¶
This section describes the IPaddr resource used in the management API. The
IPAddr object describes an IP address and contains all information about
the associated MAC address.
For demonstration purposes, the IPaddr custom resource (CR) is split into
the following major sections:
IPaddr metadata¶
The IPaddr CR metadata contains the following fields:
apiVersionAPI version of the object that is
ipam.mirantis.com/v1alpha1.
kindObject type that is
IPaddr.
metadataThe
metadatafield contains the following subfields:nameName of the
IPaddrobject in theauto-XX-XX-XX-XX-XX-XXformat where XX-XX-XX-XX-XX-XX is the associated MAC address.
namespaceProject in which the
IPaddrobject was created.
labelsKey-value pairs that are attached to the object:
ipam/IPIPv4 address
ipam/IpamHostIDUnique ID of the associated
IpamHostobject
ipam/MACMAC address
ipam/SubnetIDUnique ID of the
Subnetobject
ipam/UIDUnique ID of the
IPAddrobject
Warning
Labels and annotations that are not documented in this API Reference are generated automatically. Do not modify them using the API.
Configuration example:
apiVersion: ipam.mirantis.com/v1alpha1
kind: IPaddr
metadata:
name: auto-0c-c4-7a-a8-b8-18
namespace: default
labels:
ipam/IP: 172.16.48.201
ipam/IpamHostID: 848b59cf-f804-11ea-88c8-0242c0a85b02
ipam/MAC: 0C-C4-7A-A8-B8-18
ipam/SubnetID: 572b38de-f803-11ea-88c8-0242c0a85b02
ipam/UID: 84925cac-f804-11ea-88c8-0242c0a85b02
IPAddr spec¶
The spec object field of the IPAddr resource contains the associated
MAC address and the reference to the Subnet object:
macMAC address in the
XX:XX:XX:XX:XX:XXformat
subnetRefReference to the
Subnetresource in the<subnetProjectName>/<subnetName>format
Configuration example:
spec:
mac: 0C:C4:7A:A8:B8:18
subnetRef: default/kaas-mgmt
IPAddr status¶
The status object field of the IPAddr resource reflects the actual
state of the IPAddr object. In contains the following fields:
addressIP address.
cidrIPv4 CIDR for the
Subnet.
gatewayGateway address for the
Subnet.
macMAC address in the
XX:XX:XX:XX:XX:XXformat.
nameserversList of the IP addresses of name servers of the
Subnet. Each element of the list is a single address, for example, 172.18.176.6.
stateSince MCC 2.23.0 (11.7.0)Message that reflects the current status of the resource. The list of possible values includes the following:
OK- object is operational.ERR- object is non-operational. This status has a detailed description in themessageslist.TERM- object was deleted and is terminating.
messagesSince MCC 2.23.0 (11.7.0)List of error or warning messages if the object state is
ERR.
objCreatedDate, time, and IPAM version of the resource creation.
objStatusUpdatedDate, time, and IPAM version of the last update of the
statusfield in the resource.
objUpdatedDate, time, and IPAM version of the last resource update.
phaseDeprecated since Container Cloud 2.23.0 (Cluster release 11.7.0) and will be removed in one of the following releases in favor of
state. Possible values:Active,Failed, orTerminating.
Configuration example:
status:
address: 172.16.48.201
cidr: 172.16.48.201/24
gateway: 172.16.48.1
objCreated: 2021-10-21T19:09:32Z by v5.1.0-20210930-121522-f5b2af8
objStatusUpdated: 2021-10-21T19:14:18.748114886Z by v5.1.0-20210930-121522-f5b2af8
objUpdated: 2021-10-21T19:09:32.606968024Z by v5.1.0-20210930-121522-f5b2af8
mac: 0C:C4:7A:A8:B8:18
nameservers:
- 172.18.176.6
state: OK
phase: Active