Loading deploy/tfs.sh +14 −8 Original line number Diff line number Diff line Loading @@ -197,7 +197,6 @@ kubectl create secret generic redis-secrets --namespace=$TFS_K8S_NAMESPACE \ echo "export REDIS_PASSWORD=${REDIS_PASSWORD}" >> $ENV_VARS_SCRIPT printf "\n" DOCKER_BUILD="docker build" DOCKER_MAJOR_VERSION=$(docker --version | grep -o -E "Docker version [0-9]+\." | grep -o -E "[0-9]+" | cut -c 1-3) Loading @@ -211,8 +210,7 @@ if [[ $DOCKER_MAJOR_VERSION -ge 23 ]]; then echo "If you installed docker through APT package docker.io, consider installing also package docker-buildx" exit 1; fi DOCKER_BUILD="docker buildx build --network=host " DOCKER_BUILD="docker buildx build" fi LINKERD_STATUS="$(microk8s status -a linkerd)" Loading @@ -223,8 +221,12 @@ else fi printf "\n" if [[ "$TFS_COMPONENTS" == *"telemetry"* ]]; then echo "Configuring Telemetry Service..." # Before deployment change the telemetry LOAD_BALANCER_IP sed -i "s|_LOAD_BALANCER_IP_|$LOAD_BALANCER_IP|g" manifests/telemetryservice.yaml fi for COMPONENT in $TFS_COMPONENTS; do echo "Processing '$COMPONENT' component..." Loading Loading @@ -608,8 +610,12 @@ if [[ "$TFS_COMPONENTS" == *"monitoring"* ]] && [[ "$TFS_COMPONENTS" == *"webui" printf "\n\n" fi if [[ "$TFS_COMPONENTS" == *"telemetry"* ]]; then echo "Deconfiguring Telemetry Service..." # Revert _LOAD_BALANCER_IP_ for the next deployment sed -i "s|$LOAD_BALANCER_IP|_LOAD_BALANCER_IP_|g" manifests/telemetryservice.yaml fi echo "Pruning Docker Images..." docker image prune --force Loading Loading
deploy/tfs.sh +14 −8 Original line number Diff line number Diff line Loading @@ -197,7 +197,6 @@ kubectl create secret generic redis-secrets --namespace=$TFS_K8S_NAMESPACE \ echo "export REDIS_PASSWORD=${REDIS_PASSWORD}" >> $ENV_VARS_SCRIPT printf "\n" DOCKER_BUILD="docker build" DOCKER_MAJOR_VERSION=$(docker --version | grep -o -E "Docker version [0-9]+\." | grep -o -E "[0-9]+" | cut -c 1-3) Loading @@ -211,8 +210,7 @@ if [[ $DOCKER_MAJOR_VERSION -ge 23 ]]; then echo "If you installed docker through APT package docker.io, consider installing also package docker-buildx" exit 1; fi DOCKER_BUILD="docker buildx build --network=host " DOCKER_BUILD="docker buildx build" fi LINKERD_STATUS="$(microk8s status -a linkerd)" Loading @@ -223,8 +221,12 @@ else fi printf "\n" if [[ "$TFS_COMPONENTS" == *"telemetry"* ]]; then echo "Configuring Telemetry Service..." # Before deployment change the telemetry LOAD_BALANCER_IP sed -i "s|_LOAD_BALANCER_IP_|$LOAD_BALANCER_IP|g" manifests/telemetryservice.yaml fi for COMPONENT in $TFS_COMPONENTS; do echo "Processing '$COMPONENT' component..." Loading Loading @@ -608,8 +610,12 @@ if [[ "$TFS_COMPONENTS" == *"monitoring"* ]] && [[ "$TFS_COMPONENTS" == *"webui" printf "\n\n" fi if [[ "$TFS_COMPONENTS" == *"telemetry"* ]]; then echo "Deconfiguring Telemetry Service..." # Revert _LOAD_BALANCER_IP_ for the next deployment sed -i "s|$LOAD_BALANCER_IP|_LOAD_BALANCER_IP_|g" manifests/telemetryservice.yaml fi echo "Pruning Docker Images..." docker image prune --force Loading