mirror of
https://github.com/hoshikawa2/agent_platform_oci.git
synced 2026-09-07 18:23:46 +00:00
Testes de Carga: /deploy/oke/load-test
This commit is contained in:
15
deploy/oke/load-test/scripts/configure_kubeconfig.sh
Normal file
15
deploy/oke/load-test/scripts/configure_kubeconfig.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../../.." && pwd)"
|
||||
ENV="$ROOT/deploy/oke/load-test/.env.runtime"
|
||||
[[ -f "$ENV" ]] || { echo "Run prepare_env.sh first"; exit 1; }
|
||||
set -a; source "$ENV"; set +a
|
||||
oci ce cluster create-kubeconfig \
|
||||
--cluster-id "$OKE_CLUSTER_OCID" \
|
||||
--file "$HOME/.kube/config" \
|
||||
--region "$OCI_REGION" \
|
||||
--token-version 2.0.0 \
|
||||
--kube-endpoint PUBLIC_ENDPOINT \
|
||||
--profile "${OCI_CLI_PROFILE:-DEFAULT}"
|
||||
kubectl cluster-info
|
||||
kubectl get nodes -o wide
|
||||
Reference in New Issue
Block a user