diff --git a/remote_cli/README b/remote_cli/README index 0250804..8d963f6 100644 --- a/remote_cli/README +++ b/remote_cli/README @@ -73,7 +73,12 @@ EOF kubectl apply -f admin-login.yaml TOKEN_DATA=$(kubectl -n kube-system describe secret $(kubectl -n kube-system get secret | grep ${USER} | awk '{print $1}') | grep "token:" | awk '{print $2}') source /etc/platform/openrc -OAM_IP=$(system oam-show |grep oam_ip| awk '{print $4}') +OAM_IP=$(system oam-show |grep oam_floating_ip| awk '{print $4}') +if [ -z "$OAM_IP" ]; then + # AIO-SX doesn't use oam_floating_ip, but instead uses just oam_ip + OAM_IP=$(system oam-show |grep oam_ip| awk '{print $4}') +fi + kubectl config --kubeconfig ${OUTPUT_FILE} set-cluster stxcluster --server=https://${OAM_IP}:6443 --insecure-skip-tls-verify kubectl config --kubeconfig ${OUTPUT_FILE} set-credentials ${USER} --token=$TOKEN_DATA @@ -96,11 +101,11 @@ kubectl config --kubeconfig ${OUTPUT_FILE} use-context stxcluster-default By default this will generate a remote_client_openstack.sh file 5. When access to the Kubernetes platform side is required, on your console, - source the platform side generated at step 3. + source the platform side generated at step 4. Example: source remote_client_platform.sh When access to the Openstack application side is required, on your console, - source the platform side generated at step 3. + source the platform side generated at step 4. Example: source remote_client_openstack.sh When prompted, enter your openstack password. diff --git a/remote_cli/client_wrapper.sh b/remote_cli/client_wrapper.sh index b0007ae..6374292 100755 --- a/remote_cli/client_wrapper.sh +++ b/remote_cli/client_wrapper.sh @@ -9,11 +9,11 @@ KUBE_CFG_PATH="/root/.kube/config" if [[ "$CONFIG_TYPE" = "platform" ]]; then - CLIENT_IMAGE_NAME="docker.io/starlingx/stx-platformclients:${DOCKER_IMAGE_TAG}" + CLIENT_IMAGE_NAME="docker.io/starlingx/stx-platformclients:${PLATFORM_DOCKER_IMAGE_TAG}" # We only need to configure the kubernetes authentication file on the platform container VOLUME_LIST="--volume ${OSC_WORKDIR}:/wd --volume ${K8S_CONFIG_FILE}:${KUBE_CFG_PATH}" else - CLIENT_IMAGE_NAME="docker.io/starlingx/stx-openstackclients:${DOCKER_IMAGE_TAG}" + CLIENT_IMAGE_NAME="docker.io/starlingx/stx-openstackclients:${APPLICATION_DOCKER_IMAGE_TAG}" VOLUME_LIST="--volume ${OSC_WORKDIR}:/wd" fi diff --git a/remote_cli/docker_image_version.sh b/remote_cli/docker_image_version.sh index 66c586f..56b2784 100644 --- a/remote_cli/docker_image_version.sh +++ b/remote_cli/docker_image_version.sh @@ -1 +1,2 @@ -export DOCKER_IMAGE_TAG="master-centos-stable-latest" +export PLATFORM_DOCKER_IMAGE_TAG="master-centos-stable-latest" +export APPLICATION_DOCKER_IMAGE_TAG="master-centos-stable-latest"