Skip to content

Commit

Permalink
feat: Update Kubernetes deployment instructions for DocsGPT
Browse files Browse the repository at this point in the history
  • Loading branch information
dartpain committed May 24, 2024
1 parent e13d4da commit 2790bda
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions docs/pages/Deploying/Kubernetes-Deploying.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,8 @@ The `k8s` folder contains the necessary deployment and service configuration fil

After deploying the services, you need to update the environment variable `VITE_API_HOST` in your deployment file `deployments/docsgpt-deploy.yaml` with the actual endpoint URL created by your `docsgpt-api-service`.

You can get the value of the `docsgpt-api-service` by running:

```sh
kubectl get services/docsgpt-api-service | awk 'NR>1 {print $4}'
```

Update the `<your-api-endpoint>` field with your API endpoint URL by running this command and pasting endpoint from previous command:

```sh
read -p "Enter the API endpoint: " api_endpoint && sed -i "s|<your-api-endpoint>|$api_endpoint|g" deployments/docsgpt-deploy.yaml
```sh
kubectl get services/docsgpt-api-service -o jsonpath='{.status.loadBalancer.ingress[0].ip}' | xargs -I {} sed -i "s|<your-api-endpoint>|{}|g" deployments/docsgpt-deploy.yaml
```

7. **Rerun Deployment**
Expand Down

0 comments on commit 2790bda

Please sign in to comment.