Merge "Added script for the missing controlplane_target phase"

This commit is contained in:
Zuul 2021-04-14 03:31:59 +00:00 committed by Gerrit Code Review
commit 3d26a7fec3
8 changed files with 48 additions and 11 deletions

View File

@ -278,7 +278,7 @@ Make sure the following conditions are met:
8. How to deploy Workloads
Once the Target is Operational, Workloads can be deployed on the Target Cluster.
A small demo workload can be deployed using ./tools/deployment/35_deploy_workload.sh.This demo includes ingress as a workload.
A small demo workload can be deployed using ./tools/deployment/36_deploy_workload.sh.This demo includes ingress as a workload.
To verify execute kubectl command as below:
```Markdown
$ kubectl --kubeconfig /home/user/.airship/kubeconfig --context target-cluster get pods -n ingress

View File

@ -44,9 +44,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

@ -63,8 +63,8 @@ fi
./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
/signal_complete runner

View File

@ -0,0 +1,37 @@
#!/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
export KUBECONFIG=${KUBECONFIG:-"$HOME/.airship/kubeconfig"}
export KUBECONFIG_TARGET_CONTEXT=${KUBECONFIG_TARGET_CONTEXT:-"target-cluster"}
echo "Create target k8s cluster resources"
airshipctl phase run controlplane-target --debug
echo "List all nodes in target cluster"
kubectl \
--kubeconfig $KUBECONFIG \
--context $KUBECONFIG_TARGET_CONTEXT \
--request-timeout 10s \
get node
echo "List all pods in target cluster"
kubectl \
--kubeconfig $KUBECONFIG \
--context $KUBECONFIG_TARGET_CONTEXT \
--request-timeout 10s \
get pods \
--all-namespaces

View File

@ -138,9 +138,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
log_roles:
@ -188,7 +188,7 @@
- ./tools/deployment/provider_common/30_deploy_controlplane.sh
- ./tools/deployment/provider_common/32_cluster_init_target_node.sh
- ./tools/deployment/provider_common/33_cluster_move_target_node.sh
- ./tools/deployment/provider_common/34_deploy_worker_node.sh
- ./tools/deployment/provider_common/35_deploy_worker_node.sh
voting: false
- job:
name: airship-airshipctl-docker-kubebench-conformance