
Command will deploy initial inftrastructure that is identified by airshipctl document module, bundle interface, documents will be fitered based on label and annotation, which will indicate that it belongs to initial infrastructure. After the documents are identified, they will be labeled indicating that these resources are deployed by initinfra, if flag `prune` is specified, resources that have initinfra annotation and deployedBy initinfra label, but are not part of the documents supplied by bundle interface will be deleted. If user wants to avoid pruning of some resources he can remove label deployBy manually from the kubernetes resources that should not prunned. Change-Id: I143835291d449be420bfcb2944ba7eaec37c3411
19 lines
596 B
YAML
19 lines
596 B
YAML
apiVersion: metal3.io/v1alpha1
|
|
kind: BareMetalHost
|
|
metadata:
|
|
labels:
|
|
airshipit.org/ephemeral: "true"
|
|
name: master-0
|
|
spec:
|
|
online: true
|
|
bootMACAddress: 00:3b:8b:0c:ec:8b
|
|
bmc:
|
|
address: redfish+http://localhost:8000/redfish/v1/Systems/air-ephemeral
|
|
credentialsName: master-0-bmc-secret
|
|
status:
|
|
provisioning:
|
|
# we need this status to make sure, that the host is not going to be
|
|
# reprovisioned by the ephemeral baremetal operator.
|
|
# when we have more flexible labeling system in place, we will not
|
|
# deliver this document to ephemeral cluster
|
|
state: externally provisioned |