Add script for controlplane_target phase

controlplane_target phase is required for multi-node target cluster.

Signed-off-by: James Gu <james.gu@att.com>
Change-Id: I2af1c815588c1ad457b59af8f2f0cb515ba33ce6
This commit is contained in:
James Gu 2021-04-12 17:49:09 -07:00
parent 73f1e45ed0
commit 3157ba1054
6 changed files with 29 additions and 9 deletions

View File

@ -31,9 +31,9 @@
- ./tools/deployment/31_deploy_initinfra_target_node.sh
- ./tools/deployment/32_cluster_init_target_node.sh
- ./tools/deployment/33_cluster_move_target_node.sh
- ./tools/deployment/34_deploy_worker_node.sh
- ./tools/deployment/35_deploy_workload.sh
- ./tools/deployment/36_verify_hwcc_profiles.sh
- ./tools/deployment/35_deploy_worker_node.sh
- ./tools/deployment/36_deploy_workload.sh
- ./tools/deployment/37_verify_hwcc_profiles.sh
- name: "Run gate scripts"
include_role:

View File

@ -0,0 +1,20 @@
#!/usr/bin/env bash
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
set -ex
: ${AIRSHIPCTL_PROJECT:="../airshipctl"}
cd ${AIRSHIPCTL_PROJECT}
./tools/deployment/34_deploy_controlplane_target.sh

View File

@ -24,7 +24,7 @@ export WORKER_NODE=${WORKER_NODE:-"$(airshipctl phase render workers-target \
sed 's/"//g')"}
cd ${AIRSHIPCTL_PROJECT}
./tools/deployment/34_deploy_worker_node.sh
./tools/deployment/35_deploy_worker_node.sh
hosts=$(`kubectl \
--kubeconfig $KUBECONFIG \

View File

@ -29,4 +29,4 @@ export TARGET_PORT=${TARGET_PORT:-"$(airshipctl phase render controlplane-target
echo $TARGET_IP $TARGET_PORT
cd ${AIRSHIPCTL_PROJECT}
./tools/deployment/35_deploy_workload.sh
./tools/deployment/36_deploy_workload.sh

View File

@ -17,4 +17,4 @@ set -ex
: ${AIRSHIPCTL_PROJECT:="../airshipctl"}
cd ${AIRSHIPCTL_PROJECT}
./tools/deployment/36_verify_hwcc_profiles.sh
./tools/deployment/37_verify_hwcc_profiles.sh

View File

@ -79,9 +79,9 @@
- ./tools/deployment/31_deploy_initinfra_target_node.sh
- ./tools/deployment/32_cluster_init_target_node.sh
- ./tools/deployment/33_cluster_move_target_node.sh
- ./tools/deployment/34_deploy_worker_node.sh
- ./tools/deployment/35_deploy_workload.sh
- ./tools/deployment/36_verify_hwcc_profiles.sh
- ./tools/deployment/35_deploy_worker_node.sh
- ./tools/deployment/36_deploy_workload.sh
- ./tools/deployment/37_verify_hwcc_profiles.sh
serve_dir: /srv/images
serve_port: 8099
voting: false