Custom Slave Node
EN 中
Summary
TMAN CRM Hub Service is based on the Python Flask framework and is designed for containerized deployment using a microservices architecture.
The master node is used to manage master data configurations and distribute business to slave nodes.
Each business node is independently deployed, providing convenience for application scalability. It allows customization of business nodes to meet customer needs without affecting user experience.
Slave Node Architecture Design
Deployment
Regardless of whether it's a direct Docker container deployment or a Kubernetes deployment, it's very convenient. We provide the following YAML deployment configuration file example.
docker-compose
version: '2'
services:
tman-crm-hub-slave:
container_name: tman-crm-hub-slave
image: tmanlab/crm-hub:v2.0
ports:
- "8080:80"
environment:
CRM_HUB_ENV: production
CRM_HUB_NODE_TYPE: slave
CRM_HUB_MASTER_URL: https://apps.tman.work/crmhub
kubernetes
apiVersion: apps/v1
kind: Deployment
metadata:
name: crm-hub-deployment
spec:
replicas: 1
selector:
matchLabels:
app: crm-hub
template:
metadata:
labels:
app: crm-hub
spec:
containers:
- name: svc-crm-hub
image: tmanlab/crm-hub:v2.0
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
env:
- name: CRM_HUB_ENV
value: production
- name: CRM_HUB_NODE_TYPE
value: slave
- name: CRM_HUB_MASTER_URL
value: https://apps.tman.work/crmhub
---
apiVersion: v1
kind: Service
metadata:
name: crm-hub-service
spec:
selector:
app: crm-hub
ports:
- name: http
protocol: TCP
port: 8080
targetPort: 80
nodePort: 30080
type: NodePort
Quick Start
– To Be Written –
– END –