From 6ab2e4a2ed6eb42ec57064e195a3367a6597d748 Mon Sep 17 00:00:00 2001 From: Minh-Duc Bui Date: Sat, 31 Aug 2024 15:47:58 +0700 Subject: [PATCH] hi --- Jenkinsfile | 5 +++-- README.md | 13 +++++++++---- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3dee1f9..ac94b1e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -68,8 +68,9 @@ pipeline { steps { script { container('helm') { - sh("chmod +x ./cluster.sh") - sh("./cluster.sh") + dir('open-webui') { + sh("kubectl apply -f ./kubernetes/manifest/base -n model-serving") + } } } } diff --git a/README.md b/README.md index be29763..c8067eb 100644 --- a/README.md +++ b/README.md @@ -227,8 +227,7 @@ Next, Deploy the web UI to your GKE cluster: ```bash cd open-webui -kubens model-serving -kubectl apply -f ./kubernetes/manifest/base +kubectl apply -f ./kubernetes/manifest/base -n model-serving ``` ![Deploy Open WebUI](assets/gifs/7-deploy-openwebui.gif) @@ -268,7 +267,7 @@ ssh : Then run the following command to get the password: ```bash -sudo docker exec -it jenkins bash +sudo docker exec -it jenkins-server bash cat /var/jenkins_home/secrets/initialAdminPassword ``` @@ -287,9 +286,15 @@ Install the following plugins to integrate Jenkins with Docker, Kubernetes, and - Docker - Docker Pipeline - Kubernetes -- GCloud SDK + - Google Kubernetes Engine +After installing the plugins, restart Jenkins. + +```bash +sudo docker restart jenkins-server +``` + **4. Configure Jenkins:** Set up your GitHub repository in Jenkins, and add the necessary credentials for DockerHub and GKE.