Add eject virtual media phase
If the virtual media is not explicitly ejected, the ephemeral node can reinstall as ephemeral node after converted as a worker or controller during reboot. Change-Id: I9f383a1d8ead6fea6f37ace9eade64e70fcc72e4
This commit is contained in:
parent
db16837902
commit
9abf8ef6ab
@ -34,3 +34,12 @@ replacements:
|
|||||||
kind: BaremetalManager
|
kind: BaremetalManager
|
||||||
name: PowerOffEphemeral
|
name: PowerOffEphemeral
|
||||||
fieldrefs: ["spec.hostSelector.name%EPHEMERAL_NODE%"]
|
fieldrefs: ["spec.hostSelector.name%EPHEMERAL_NODE%"]
|
||||||
|
- source:
|
||||||
|
objref:
|
||||||
|
name: versions-remotedirect
|
||||||
|
fieldref: spec.remotedirect.node
|
||||||
|
target:
|
||||||
|
objref:
|
||||||
|
kind: BaremetalManager
|
||||||
|
name: EjectVirtualMediaEphemeral
|
||||||
|
fieldrefs: ["spec.hostSelector.name%EPHEMERAL_NODE%"]
|
||||||
|
@ -238,6 +238,17 @@ spec:
|
|||||||
name: EPHEMERAL_NODE
|
name: EPHEMERAL_NODE
|
||||||
---
|
---
|
||||||
apiVersion: airshipit.org/v1alpha1
|
apiVersion: airshipit.org/v1alpha1
|
||||||
|
kind: BaremetalManager
|
||||||
|
metadata:
|
||||||
|
name: EjectVirtualMediaEphemeral
|
||||||
|
labels:
|
||||||
|
airshipit.org/deploy-k8s: "false"
|
||||||
|
spec:
|
||||||
|
operation: eject-virtual-media
|
||||||
|
hostSelector:
|
||||||
|
name: EPHEMERAL_NODE
|
||||||
|
---
|
||||||
|
apiVersion: airshipit.org/v1alpha1
|
||||||
kind: GenericContainer
|
kind: GenericContainer
|
||||||
metadata:
|
metadata:
|
||||||
name: iso-cloud-init-data
|
name: iso-cloud-init-data
|
||||||
|
@ -268,6 +268,16 @@ config:
|
|||||||
---
|
---
|
||||||
apiVersion: airshipit.org/v1alpha1
|
apiVersion: airshipit.org/v1alpha1
|
||||||
kind: Phase
|
kind: Phase
|
||||||
|
metadata:
|
||||||
|
name: eject-virtual-media-ephemeral
|
||||||
|
config:
|
||||||
|
executorRef:
|
||||||
|
apiVersion: airshipit.org/v1alpha1
|
||||||
|
kind: BaremetalManager
|
||||||
|
name: EjectVirtualMediaEphemeral
|
||||||
|
---
|
||||||
|
apiVersion: airshipit.org/v1alpha1
|
||||||
|
kind: Phase
|
||||||
metadata:
|
metadata:
|
||||||
name: kubectl-wait-node-ephemeral
|
name: kubectl-wait-node-ephemeral
|
||||||
clusterName: ephemeral-cluster
|
clusterName: ephemeral-cluster
|
||||||
|
@ -95,6 +95,8 @@ phases:
|
|||||||
# To get ConfigMap for this phase, execute `airshipctl phase render --source config -k ConfigMap`
|
# To get ConfigMap for this phase, execute `airshipctl phase render --source config -k ConfigMap`
|
||||||
# and find ConfigMap with name kubectl-wait-cluster
|
# and find ConfigMap with name kubectl-wait-cluster
|
||||||
- name: kubectl-wait-cluster-target
|
- name: kubectl-wait-cluster-target
|
||||||
|
# Eject virtual media Ephemeral baremetal host to ensure it can reused.
|
||||||
|
- name: eject-virtual-media-ephemeral
|
||||||
# Power off Ephemeral baremetal host avoid DHCP conflict
|
# Power off Ephemeral baremetal host avoid DHCP conflict
|
||||||
- name: power-off-ephemeral
|
- name: power-off-ephemeral
|
||||||
# Create target k8s cluster resources
|
# Create target k8s cluster resources
|
||||||
|
Loading…
Reference in New Issue
Block a user