Merge "Move kubectl calls to KRM toolbox pt.7"
This commit is contained in:
commit
d76e9dba0e
@ -14,24 +14,17 @@
|
|||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
export KUBECONFIG=${KUBECONFIG:-"$HOME/.airship/kubeconfig"}
|
|
||||||
export KUBECONFIG_TARGET_CONTEXT=${KUBECONFIG_TARGET_CONTEXT:-"target-cluster"}
|
|
||||||
|
|
||||||
echo "Create target k8s cluster resources"
|
echo "Create target k8s cluster resources"
|
||||||
airshipctl phase run controlplane-target --debug
|
airshipctl phase run controlplane-target --debug
|
||||||
|
|
||||||
echo "List all nodes in target cluster"
|
echo "List all nodes in target cluster"
|
||||||
kubectl \
|
# Scripts for this phase placed in manifests/function/phase-helpers/wait_node/
|
||||||
--kubeconfig $KUBECONFIG \
|
# To get ConfigMap for this phase, execute `airshipctl phase render --source config -k ConfigMap`
|
||||||
--context $KUBECONFIG_TARGET_CONTEXT \
|
# and find ConfigMap with name kubectl-get-node
|
||||||
--request-timeout 10s \
|
airshipctl phase run kubectl-get-node-target --debug
|
||||||
get node
|
|
||||||
|
|
||||||
|
|
||||||
echo "List all pods in target cluster"
|
echo "List all pods in target cluster"
|
||||||
kubectl \
|
# Scripts for this phase placed in manifests/function/phase-helpers/get_pods/
|
||||||
--kubeconfig $KUBECONFIG \
|
# To get ConfigMap for this phase, execute `airshipctl phase render --source config -k ConfigMap`
|
||||||
--context $KUBECONFIG_TARGET_CONTEXT \
|
# and find ConfigMap with name kubectl-get-pods
|
||||||
--request-timeout 10s \
|
airshipctl phase run kubectl-get-pods-target --debug
|
||||||
get pods \
|
|
||||||
--all-namespaces
|
|
||||||
|
Loading…
Reference in New Issue
Block a user