You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Open-IM-Server/deployments/deploy
Monet Lee 7c7a99f801
build: update kubernetes deployment Run. (#2919)
12 months ago
..
README.md build: update kubernetes deployment Run. (#2919) 12 months ago
clusterRole.yml build: update kubernetes deployment Run. (#2919) 12 months ago
ingress.yml build: update kubernetes deployment Run. (#2919) 12 months ago
kafka-service.yml build: update kubernetes deployment Run. (#2919) 12 months ago
kafka-statefulset.yml build: update kubernetes deployment Run. (#2919) 12 months ago
minio-service.yml build: update kubernetes deployment Run. (#2919) 12 months ago
minio-statefulset.yml build: update kubernetes deployment Run. (#2919) 12 months ago
mongo-service.yml build: update kubernetes deployment Run. (#2919) 12 months ago
mongo-statefulset.yml build: update kubernetes deployment Run. (#2919) 12 months ago
openim-api-deployment.yml build: update kubernetes deployment Run. (#2919) 12 months ago
openim-api-service.yml build: update kubernetes deployment Run. (#2919) 12 months ago
openim-config.yml build: update kubernetes deployment Run. (#2919) 12 months ago
openim-crontask-deployment.yml build: update kubernetes deployment Run. (#2919) 12 months ago
openim-msggateway-deployment.yml build: update kubernetes deployment Run. (#2919) 12 months ago
openim-msggateway-service.yml build: update kubernetes deployment Run. (#2919) 12 months ago
openim-msgtransfer-deployment.yml build: update kubernetes deployment Run. (#2919) 12 months ago
openim-msgtransfer-service.yml build: update kubernetes deployment Run. (#2919) 12 months ago
openim-push-deployment.yml build: update kubernetes deployment Run. (#2919) 12 months ago
openim-push-service.yml build: update kubernetes deployment Run. (#2919) 12 months ago
openim-rpc-auth-deployment.yml build: update kubernetes deployment Run. (#2919) 12 months ago
openim-rpc-auth-service.yml build: update kubernetes deployment Run. (#2919) 12 months ago
openim-rpc-conversation-deployment.yml build: update kubernetes deployment Run. (#2919) 12 months ago
openim-rpc-conversation-service.yml build: update kubernetes deployment Run. (#2919) 12 months ago
openim-rpc-friend-deployment.yml build: update kubernetes deployment Run. (#2919) 12 months ago
openim-rpc-friend-service.yml build: update kubernetes deployment Run. (#2919) 12 months ago
openim-rpc-group-deployment.yml build: update kubernetes deployment Run. (#2919) 12 months ago
openim-rpc-group-service.yml build: update kubernetes deployment Run. (#2919) 12 months ago
openim-rpc-msg-deployment.yml build: update kubernetes deployment Run. (#2919) 12 months ago
openim-rpc-msg-service.yml build: update kubernetes deployment Run. (#2919) 12 months ago
openim-rpc-third-deployment.yml build: update kubernetes deployment Run. (#2919) 12 months ago
openim-rpc-third-service.yml build: update kubernetes deployment Run. (#2919) 12 months ago
openim-rpc-user-deployment.yml build: update kubernetes deployment Run. (#2919) 12 months ago
openim-rpc-user-service.yml build: update kubernetes deployment Run. (#2919) 12 months ago
redis-service.yml build: update kubernetes deployment Run. (#2919) 12 months ago
redis-statefulset.yml build: update kubernetes deployment Run. (#2919) 12 months ago

README.md

Kubernetes Deployment

Resource Requests

  • CPU: 2 cores
  • Memory: 4 GiB
  • Disk usage: 20 GiB (on Node)

Origin Deploy

  1. Enter the target dir cd ./deployments/deploy/

  2. Deploy configs and dependencies Upate your openim-config.yml

Apply all config and dependencies kubectl apply -f ./openim-config.yml

Attation: If you use default namespace, you can excute clusterRile.yml to create a cluster role binding for default service account.

Namespace is modify to discovery.yml in openim-config.yml, you can change kubernetes.namespace to your namespace.

Excute clusterRole.yml kubectl apply -f ./clusterRole.yml

Run infrasturcture components.

kubectl apply -f minio-service.yml -f minio-statefulset.yml -f mongo-service.yml -f mongo-statefulset.yml -f redis-service.yml -f redis-statefulset.yml -f kafka-service.yml -f kafka-statefulset.yml

Note: Ensure that infrastructure services like MinIO, Redis, and Kafka are running before deploying the main applications.

  1. run all deployments and services
kubectl apply \
  -f openim-api-deployment.yml \
  -f openim-api-service.yml \
  -f openim-crontask-deployment.yml \
  -f openim-rpc-user-deployment.yml \
  -f openim-rpc-user-service.yml \
  -f openim-msggateway-deployment.yml \
  -f openim-msggateway-service.yml \
  -f openim-push-deployment.yml \
  -f openim-push-service.yml \
  -f openim-msgtransfer-service.yml \
  -f openim-msgtransfer-deployment.yml \
  -f openim-rpc-conversation-deployment.yml \
  -f openim-rpc-conversation-service.yml \
  -f openim-rpc-auth-deployment.yml \
  -f openim-rpc-auth-service.yml \
  -f openim-rpc-group-deployment.yml \
  -f openim-rpc-group-service.yml \
  -f openim-rpc-friend-deployment.yml \
  -f openim-rpc-friend-service.yml \
  -f openim-rpc-msg-deployment.yml \
  -f openim-rpc-msg-service.yml \
  -f openim-rpc-third-deployment.yml \
  -f openim-rpc-third-service.yml
  1. Verification After deploying the services, verify that everything is running smoothly:
# Check the status of all pods
kubectl get pods

# Check the status of services
kubectl get svc

# Check the status of deployments
kubectl get deployments

# View all resources
kubectl get all
  1. clean all

kubectl delete -f ./

Notes:

  • If you use a specific namespace for your deployment, be sure to append the -n flag to your kubectl commands.