Skip to content

Files

Latest commit

 

History

History

ai-chat-server

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

The AI chat server written in Python, based on Flask and OpenAI API.

1 Build Docker Image

First, ensure you are logged in to your container registry. For example, if using Docker Hub:

docker login

Build the Docker image and push it to the registry:

docker build -t 1098822169/ai-chat-server:latest .
docker push 1098822169/ai-chat-server:latest

2 Deploy the Application

kubectl apply -f ai-chat-deployment.yaml
kubectl apply -f ai-chat-service.yaml

3 Verify the Deployment

Check the status of Pods and Services:

kubectl get pods
kubectl get services