Day 1
Enroll hosts
Make the operator find each new machine and make a Host for it.
Before you start
Section titled “Before you start”- The operator runs in the management cluster, from a site overlay. See Install the operator.
- You have the serial number and the BMC MAC of each machine. Check a BMC shows them.
- Each BMC has a fixed address. See Network checklist.
-
Add one ledger line for each BMC to the ledger file of your overlay. The key is the BMC MAC in lower case.
ledger.yaml "02:00:48:0b:74:83": https://192.0.2.21 -
Apply the overlay. The manager reads the ledger only when it starts. The overlay gives the ledger ConfigMap a new name, and thus the apply restarts the manager.
Terminal window kubectl apply --server-side -k overlays/site -
Make the credentials Secret in the namespace
pk-metal.Terminal window kubectl -n pk-metal create secret generic bmc-factory \--from-literal=username=admin --from-literal=password="$PK_METAL_BMC_PASSWORD" -
Write one Asset for each machine.
sim-0001.yaml apiVersion: metal.platform-kit.org/v1alpha1kind: Assetmetadata:name: sim-0001spec:cid: "ASSET-01"serial: "SIMHW2288V5000397"bmcMac: "02:00:48:0b:74:83"credentialsRef:name: bmc-factory -
Apply the Assets.
Terminal window kubectl apply -f assets/ -
Monitor the endpoints.
Terminal window kubectl get managementendpoints -wThe phase goes from
ConnectingtoReady.
Verify
Section titled “Verify”kubectl get hosts -o wideEach machine has a Host. The name is the serial number in lower case. The phase is Available.
NAME ASSET SERIAL VENDOR PHASE BLOCKED CLAIM AGEsimhw2288v5000397 sim-0001 SIMHW2288V5000397 Huawei Available 2mIf it fails
Section titled “If it fails”| What you see | Go to |
|---|---|
Asset Materialized=False, reason NoLedgerEntry |
Add the ledger line. Do step 2 again. |
Endpoint phase Unreachable |
BMC unreachable. For a certificate error, see BMC certificates. |
Endpoint phase Mismatch, SerialMismatch or MACMismatch |
Host in Mismatch |
Related
Section titled “Related”- Asset, ManagementEndpoint, Host
- Asset controller, ManagementEndpoint controller, Host controller
- Identity and Ledger
- Rotate BMC credentials replaces the factory password after you enroll the hosts.