Browse Source

Added script for the missing controlplane_target phase

controlplane_target phase is needed for target cluster more than a
single node

Signed-off-by: James Gu <james.gu@att.com>
Change-Id: I6e77d4268cdee0ebcc65e1f9172ef645ced53337
changes/90/785990/2
James Gu 1 year ago
parent
commit
06609c3180
  1. 2
      docs/source/developers.md
  2. 6
      playbooks/airshipctl-gate-runner.yaml
  3. 6
      tools/airship-in-a-pod/runner/assets/entrypoint.sh
  4. 37
      tools/deployment/34_deploy_controlplane_target.sh
  5. 0
      tools/deployment/35_deploy_worker_node.sh
  6. 0
      tools/deployment/36_deploy_workload.sh
  7. 0
      tools/deployment/37_verify_hwcc_profiles.sh
  8. 8
      zuul.d/jobs.yaml

2
docs/source/developers.md

@ -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

6
playbooks/airshipctl-gate-runner.yaml

@ -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:

6
tools/airship-in-a-pod/runner/assets/entrypoint.sh

@ -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

@ -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

0
tools/deployment/34_deploy_worker_node.sh → tools/deployment/35_deploy_worker_node.sh

0
tools/deployment/35_deploy_workload.sh → tools/deployment/36_deploy_workload.sh

0
tools/deployment/36_verify_hwcc_profiles.sh → tools/deployment/37_verify_hwcc_profiles.sh

8
zuul.d/jobs.yaml

@ -140,9 +140,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:
@ -190,7 +190,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…
Cancel
Save