Merge "Added script for the missing controlplane_target phase"
This commit is contained in:
commit
3d26a7fec3
@ -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
|
||||
|
@ -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:
|
||||
|
@ -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
|
||||
|
37
tools/deployment/34_deploy_controlplane_target.sh
Executable file
37
tools/deployment/34_deploy_controlplane_target.sh
Executable 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
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user