Merge "Integrate baremetal manager executor with manifest"
This commit is contained in:
commit
a89666a36e
@ -169,3 +169,17 @@ bootstrapContainer:
|
|||||||
image: quay.io/airshipit/capo-ephemeral:latest
|
image: quay.io/airshipit/capo-ephemeral:latest
|
||||||
volume: /tmp:/kube
|
volume: /tmp:/kube
|
||||||
saveKubeconfigFileName: capo.kubeconfig
|
saveKubeconfigFileName: capo.kubeconfig
|
||||||
|
---
|
||||||
|
apiVersion: airshipit.org/v1alpha1
|
||||||
|
kind: BaremetalManager
|
||||||
|
metadata:
|
||||||
|
name: RemoteDirectEphemeral
|
||||||
|
labels:
|
||||||
|
airshipit.org/deploy-k8s: "false"
|
||||||
|
spec:
|
||||||
|
operation: remote-direct
|
||||||
|
hostSelector:
|
||||||
|
name: REPLACE_ME
|
||||||
|
operationOptions:
|
||||||
|
remoteDirect:
|
||||||
|
isoURL: REPLACE_ME
|
||||||
|
@ -236,3 +236,13 @@ config:
|
|||||||
kind: GenericContainer
|
kind: GenericContainer
|
||||||
name: encrypter
|
name: encrypter
|
||||||
documentEntryPoint: target/generator
|
documentEntryPoint: target/generator
|
||||||
|
---
|
||||||
|
apiVersion: airshipit.org/v1alpha1
|
||||||
|
kind: Phase
|
||||||
|
metadata:
|
||||||
|
name: remotedirect-ephemeral
|
||||||
|
config:
|
||||||
|
executorRef:
|
||||||
|
apiVersion: airshipit.org/v1alpha1
|
||||||
|
kind: BaremetalManager
|
||||||
|
name: RemoteDirectEphemeral
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
resources:
|
resources:
|
||||||
- ../kubeconfig
|
- ../kubeconfig
|
||||||
- ../../../phases
|
- ../../../phases
|
||||||
|
## TODO Consider making a catalogue combined with variable substitution instead
|
||||||
|
patchesStrategicMerge:
|
||||||
|
- phase-patch.yaml
|
10
manifests/site/test-site/phases/phase-patch.yaml
Normal file
10
manifests/site/test-site/phases/phase-patch.yaml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
apiVersion: airshipit.org/v1alpha1
|
||||||
|
kind: BaremetalManager
|
||||||
|
metadata:
|
||||||
|
name: RemoteDirectEphemeral
|
||||||
|
spec:
|
||||||
|
hostSelector:
|
||||||
|
name: node02
|
||||||
|
operationOptions:
|
||||||
|
remoteDirect:
|
||||||
|
isoURL: http://localhost:8099/ephemeral.iso
|
@ -18,14 +18,9 @@ set -xe
|
|||||||
export TIMEOUT=${TIMEOUT:-3600}
|
export TIMEOUT=${TIMEOUT:-3600}
|
||||||
export KUBECONFIG=${KUBECONFIG:-"$HOME/.airship/kubeconfig"}
|
export KUBECONFIG=${KUBECONFIG:-"$HOME/.airship/kubeconfig"}
|
||||||
export KUBECONFIG_EPHEMERAL_CONTEXT=${KUBECONFIG_EPHEMERAL_CONTEXT:-"ephemeral-cluster"}
|
export KUBECONFIG_EPHEMERAL_CONTEXT=${KUBECONFIG_EPHEMERAL_CONTEXT:-"ephemeral-cluster"}
|
||||||
export EPHEMERAL_NODE=${EPHEMERAL_NODE:-"node02"}
|
|
||||||
export ISO_URL=${ISO_URL:-"http://localhost:8099/ephemeral.iso"}
|
|
||||||
|
|
||||||
echo "Deploy ephemeral node using redfish with iso"
|
echo "Deploy ephemeral node using redfish with iso"
|
||||||
airshipctl baremetal remotedirect \
|
airshipctl phase run remotedirect-ephemeral --debug
|
||||||
--iso-url $ISO_URL \
|
|
||||||
--name $EPHEMERAL_NODE \
|
|
||||||
--debug
|
|
||||||
|
|
||||||
echo "Wait for apiserver to become available"
|
echo "Wait for apiserver to become available"
|
||||||
N=0
|
N=0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user