Integrate baremetal manager executor with manifest
Change-Id: Ib1b3c49c440363d37de4bd47ed6e940be22def40
This commit is contained in:
parent
f0e80cfdc5
commit
26c37807ba
@ -169,3 +169,17 @@ bootstrapContainer:
|
||||
image: quay.io/airshipit/capo-ephemeral:latest
|
||||
volume: /tmp:/kube
|
||||
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
|
||||
name: encrypter
|
||||
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:
|
||||
- ../kubeconfig
|
||||
- ../../../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 KUBECONFIG=${KUBECONFIG:-"$HOME/.airship/kubeconfig"}
|
||||
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"
|
||||
airshipctl baremetal remotedirect \
|
||||
--iso-url $ISO_URL \
|
||||
--name $EPHEMERAL_NODE \
|
||||
--debug
|
||||
airshipctl phase run remotedirect-ephemeral --debug
|
||||
|
||||
echo "Wait for apiserver to become available"
|
||||
N=0
|
||||
|
Loading…
Reference in New Issue
Block a user