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.
NetCheckerTargetsConfig¶
Since MOSK 25.2 and management 2.30.0
This section describes the NetCheckerTargetsConfig custom resource (CR)
used in the network connectivity monitoring API for target clusters. The
NetCheckerTargetsConfig object is automatically created and managed by
netchecker-controller on the target cluster in the netchecker
namespace. The name of the object is hardcoded to
mcc-netchecker-targets-config.
Warning
Do not manually create or delete the
NetCheckerTargetsConfig object to prevent overwriting by
netchecker-controller. You can only reconfigure the existing object if
you enable manual configuration as described in Manual configuration of network infrastructure monitoring.
The NetCheckerTargetsConfig object includes information of per-node targets
(other nodes) to be checked by a specific node and using the defined list of
subnets. For more details, see Infrastructure connectivity monitoring.
For demonstration purposes, the NetCheckerTargetsConfig CR is split into
the following sections:
NetCheckerTargetsConfig metadata¶
The NetCheckerTargetsConfig CR metadata contains the following fields:
apiVersionAPI version of the object that is
cnnc.mirantis.com/v1alpha1.
kindObject type that is
NetCheckerTargetsConfig.
metadataObject metadata that contains the following subfields:
nameObject name.
namespaceProject in which the
NetCheckerTargetsConfigobject is created.
Metadata example:
apiVersion: cnnc.mirantis.com/v1alpha1
kind: NetCheckerTargetsConfig
metadata:
name: nctc-sample
namespace: default
NetCheckerTargetsConfig spec¶
The spec object field contains configuration for a
NetCheckerTargetsConfig object and has the following fields:
nodesConfigList of per-node configuration. Contains the following fields:
nodeNameNode name.
nodeSelectorSelector for cluster nodes. If a group of nodes has the same targets, these targets may be grouped by the node selector.
targetsList of target nodes with subnets selected for connectivity monitoring. Contains the following fields:
nodeNameName of the target node.
nodeSelectorNode selector to group target nodes.
subnetTagsList of subnet tags to be used for connectivity monitoring. IP addresses from these subnets will be used as targets for ping checks.
NetCheckerTargetsConfig configuration example:
spec:
nodesConfig:
- nodeName: master-0
targets:
- nodeName: master-1
subnetTags:
- default/k8s-lcm-nics
- default/k8s-pxe-nics
- nodeName: master-2
subnetTags:
- default/k8s-lcm-nics
- default/k8s-pxe-nics
- nodeName: master-1
targets:
- nodeName: master-0
subnetTags:
- default/k8s-lcm-nics
- default/k8s-pxe-nics
- nodeName: master-2
subnetTags:
- default/k8s-lcm-nics
- default/k8s-pxe-nics
- nodeName: master-2
targets:
- nodeName: master-0
subnetTags:
- default/k8s-lcm-nics
- default/k8s-pxe-nics
- nodeName: master-1
subnetTags:
- default/k8s-lcm-nics
- default/k8s-pxe-nics
NetCheckerTargetsConfig status¶
The status field of the NetCheckerTargetsConfig object contains the
current state of the object:
nodesList of per-node statuses. Contains the following fields:
nameNode name.
errorError message in case of issues with obtaining node information. Otherwise, this field is omitted.
targetsCountAmount of targets (nodes and subnets) for a particular node.
objectHelperInfoInformation on how to obtain the Netchecker agent configuration for a particular node.
errorSummary of per-node errors, if any.
NetCheckerTargetsConfig status example:
status:
nodes:
- name: master-0
objectHelperInfo: kubectl -n netchecker get cm -o yaml net-checker-agent-config-master-0
targetsCount: "4"
- name: master-1
objectHelperInfo: kubectl -n netchecker get cm -o yaml net-checker-agent-config-master-1
targetsCount: "4"
- name: master-2
objectHelperInfo: kubectl -n netchecker get cm -o yaml net-checker-agent-config-master-2
targetsCount: "4"