Add BaremetalHost scheduling annotations

This commit is contained in:
Kostiantyn Kalynovskyi 2020-11-18 17:56:36 -06:00
parent 18bd86645c
commit fd03725e01
2 changed files with 19 additions and 7 deletions

View File

@ -90,7 +90,7 @@ More information on how to install kind binary can be found be found [here](http
# kubectl get nodes
```
### Deploy sip operator on top of kind cluster
### Deploy SIP operator on top of kind cluster
kind-load-image target will build docker image from the current state of your local
git repository and upload it to kind cluster to be available for kubelet.
@ -101,13 +101,13 @@ git repository and upload it to kind cluster to be available for kubelet.
Now you have a working k8s cluster with sip installed on it with your changes to SIP operator
### Deliver sip CRs to kubernetes
### Deliver SIP CRs to kubernetes
Now you are ready to craft and add BaremetalHost CRs into cluster, check samples directory
to find BaremetalHost examples there.
Use kubectl apply to deliver SIP CRs and BaremetalHost CRDs to kubernetes cluster
```
# kubectl apply -f config/samples/airship_v1beta1_sipcluster.yaml
# kubectl apply -f config/samples/bmh/baremetalhosts.metal3.io.yaml
# kustomize build config/samples | kubectl apply -f -
```
Now you are ready to craft and add BaremetalHost CRs into cluster, check samples directory
to find BaremetalHost examples there.

View File

@ -5,6 +5,8 @@ metadata:
labels:
airshipit.org/vino-flavor: master
sip.airshipit.org/sip-scheduled: "false"
sip.airshipit.org/rack: r006
sip.airshipit.org/server: rdm9r006o002
spec:
online: true
bmc:
@ -25,6 +27,8 @@ metadata:
labels:
airshipit.org/vino-flavor: master
sip.airshipit.org/sip-scheduled: "false"
sip.airshipit.org/rack: r006
sip.airshipit.org/server: rdm9r006o001
spec:
online: true
bmc:
@ -45,6 +49,8 @@ metadata:
labels:
airshipit.org/vino-flavor: master
sip.airshipit.org/sip-scheduled: "false"
sip.airshipit.org/rack: r007
sip.airshipit.org/server: rdm9r007o001
spec:
online: true
bmc:
@ -65,6 +71,8 @@ metadata:
labels:
airshipit.org/vino-flavor: worker
sip.airshipit.org/sip-scheduled: "false"
sip.airshipit.org/rack: r007
sip.airshipit.org/server: rdm9r007o002
spec:
online: true
bmc:
@ -85,6 +93,8 @@ metadata:
labels:
airshipit.org/vino-flavor: worker
sip.airshipit.org/sip-scheduled: "false"
sip.airshipit.org/rack: r008
sip.airshipit.org/server: rdm9r008o002
spec:
online: true
bmc:
@ -105,6 +115,8 @@ metadata:
labels:
airshipit.org/vino-flavor: worker
sip.airshipit.org/sip-scheduled: "false"
sip.airshipit.org/rack: r009
sip.airshipit.org/server: rdm9r009o002
spec:
online: true
bmc:
@ -116,4 +128,4 @@ spec:
namespace: sipcluster-system
userData:
name: controlplane-l5vvf
namespace: sipcluster-system
namespace: sipcluster-system