Skip to content

Commit

Permalink
feat: prepare for kubernetes
Browse files Browse the repository at this point in the history
  • Loading branch information
Angular2Guy committed Jan 6, 2024
1 parent 5cda6db commit d643d62
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backend/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,8 @@ server.servlet.session.timeout=30s
spring.jackson.parser.allow-unquoted-control-chars=true
spring.ai.openai.api-key=${OPENAI-API-KEY:23418pajkfdsadlöa}

management.endpoint.health.status.http-mapping.DOWN=503
management.endpoint.health.status.http-mapping.OUT_OF_SERVICE=500

embedding-token-limit=2000
document-token-limit=2000
3 changes: 3 additions & 0 deletions helm/helm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
helm delete aidocumentlibrarychat
helm install aidocumentlibrarychat ./ --set serviceType=NodePort
23 changes: 23 additions & 0 deletions helm/minikubeSetup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/sh
# execute helmCommand.sh

kubectl get services
minikube ip
http://<minikube ip>:<node-port>/

minikube config set memory 16384
minikube config set cpu 2
minikube config set driver docker
minikube addons list
minikube addons enable metrics-server
minikube start --extra-config=apiserver.service-node-port-range=1024-65535
kubectl edit deployment -n kube-system metrics-server

kubectl logs --previous <pod-name>
kubectl exec --stdin --tty <mongodb-pod-name> -- /bin/bash
kubectl expose pod <postgresql-pod-name> --port=5432 --type="NodePort"
#psql -d movies -U dbuser -h minikubeip -p dbport < dump.sql


minikube pause
minikube unpause

0 comments on commit d643d62

Please sign in to comment.