From d7b160fa522cec9061ed3c3bbd354cff25d5d0cb Mon Sep 17 00:00:00 2001 From: zhlsunshine Date: Tue, 23 Jul 2024 14:26:24 +0800 Subject: [PATCH] revert the shell scripts in ChatQnA again Signed-off-by: zhlsunshine --- ChatQnA/kubernetes/manifests/install_all_gaudi.sh | 12 ++++++++++++ ChatQnA/kubernetes/manifests/install_all_xeon.sh | 12 ++++++++++++ ChatQnA/kubernetes/manifests/remove_all_gaudi.sh | 12 ++++++++++++ ChatQnA/kubernetes/manifests/remove_all_xeon.sh | 12 ++++++++++++ 4 files changed, 48 insertions(+) create mode 100755 ChatQnA/kubernetes/manifests/install_all_gaudi.sh create mode 100755 ChatQnA/kubernetes/manifests/install_all_xeon.sh create mode 100755 ChatQnA/kubernetes/manifests/remove_all_gaudi.sh create mode 100755 ChatQnA/kubernetes/manifests/remove_all_xeon.sh diff --git a/ChatQnA/kubernetes/manifests/install_all_gaudi.sh b/ChatQnA/kubernetes/manifests/install_all_gaudi.sh new file mode 100755 index 0000000000..da140dfffc --- /dev/null +++ b/ChatQnA/kubernetes/manifests/install_all_gaudi.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Copyright (C) 2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +# Array of YAML file names +yaml_files=("qna_configmap_gaudi" "redis-vector-db" "tei_embedding_gaudi_service" "tei_reranking_service" "tgi_gaudi_service" "retriever" "embedding" "reranking" "llm" "chaqna-xeon-backend-server") +for element in ${yaml_files[@]} +do + echo "Applying manifest from ${element}.yaml" + kubectl apply -f "${element}.yaml" +done diff --git a/ChatQnA/kubernetes/manifests/install_all_xeon.sh b/ChatQnA/kubernetes/manifests/install_all_xeon.sh new file mode 100755 index 0000000000..35f79b2ee1 --- /dev/null +++ b/ChatQnA/kubernetes/manifests/install_all_xeon.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Copyright (C) 2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +# Array of YAML file names +yaml_files=("qna_configmap_xeon" "redis-vector-db" "tei_embedding_service" "tei_reranking_service" "tgi_service" "retriever" "embedding" "reranking" "llm" "chaqna-xeon-backend-server") +for element in ${yaml_files[@]} +do + echo "Applying manifest from ${element}.yaml" + kubectl apply -f "${element}.yaml" +done diff --git a/ChatQnA/kubernetes/manifests/remove_all_gaudi.sh b/ChatQnA/kubernetes/manifests/remove_all_gaudi.sh new file mode 100755 index 0000000000..f4feea21cf --- /dev/null +++ b/ChatQnA/kubernetes/manifests/remove_all_gaudi.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Copyright (C) 2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +# Array of YAML file names +yaml_files=("qna_configmap_gaudi" "redis-vector-db" "tei_embedding_gaudi_service" "tei_reranking_service" "tgi_gaudi_service" "retriever" "embedding" "reranking" "llm" "chaqna-xeon-backend-server") +for element in ${yaml_files[@]} +do + echo "Delete manifest from ${element}.yaml" + kubectl delete -f "${element}.yaml" +done diff --git a/ChatQnA/kubernetes/manifests/remove_all_xeon.sh b/ChatQnA/kubernetes/manifests/remove_all_xeon.sh new file mode 100755 index 0000000000..344b343d69 --- /dev/null +++ b/ChatQnA/kubernetes/manifests/remove_all_xeon.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Copyright (C) 2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +# Array of YAML file names +yaml_files=("qna_configmap_xeon" "redis-vector-db" "tei_embedding_service" "tei_reranking_service" "tgi_service" "retriever" "embedding" "reranking" "llm" "chaqna-xeon-backend-server") +for element in ${yaml_files[@]} +do + echo "Delete manifest from ${element}.yaml" + kubectl delete -f "${element}.yaml" +done