feat(admin-web): add Vue 3 admin console and deployment configs
- Add admin-web/ with Vite + Vue 3 + Element Plus + Vue Router - Add 8 management pages: dashboard, channel subject/account, conversation, person, tag, send record (with test send), inbound flow - Add API client modules for account/channel/crm/send/flow - Add Dockerfile and nginx config for admin-web - Add Dockerfile for mci-server - Add docker-compose.app.yml for one-command app deployment - Add K8s deployment manifests for backend/admin-web/channel-service - Update scripts/local-up.sh with shared network and --with-apps option
This commit is contained in:
30
k8s/admin-web/deployment.yaml
Normal file
30
k8s/admin-web/deployment.yaml
Normal file
@@ -0,0 +1,30 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: mci-admin-web
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: mci-admin-web
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: mci-admin-web
|
||||
spec:
|
||||
containers:
|
||||
- name: mci-admin-web
|
||||
image: sino/mci-admin-web:latest
|
||||
ports:
|
||||
- containerPort: 80
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: mci-admin-web
|
||||
spec:
|
||||
selector:
|
||||
app: mci-admin-web
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 80
|
||||
33
k8s/backend/deployment.yaml
Normal file
33
k8s/backend/deployment.yaml
Normal file
@@ -0,0 +1,33 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: mci-server
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: mci-server
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: mci-server
|
||||
spec:
|
||||
containers:
|
||||
- name: mci-server
|
||||
image: sino/mci-server:latest
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
env:
|
||||
- name: SPRING_PROFILES_ACTIVE
|
||||
value: "dev"
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: mci-server
|
||||
spec:
|
||||
selector:
|
||||
app: mci-server
|
||||
ports:
|
||||
- port: 8080
|
||||
targetPort: 8080
|
||||
33
k8s/channel-service/deployment.yaml
Normal file
33
k8s/channel-service/deployment.yaml
Normal file
@@ -0,0 +1,33 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: mci-channel-service
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: mci-channel-service
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: mci-channel-service
|
||||
spec:
|
||||
containers:
|
||||
- name: mci-channel-service
|
||||
image: sino/mci-channel-service:latest
|
||||
ports:
|
||||
- containerPort: 8000
|
||||
env:
|
||||
- name: MCI_SERVER_URL
|
||||
value: "http://mci-server:8080/msg-platform"
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: mci-channel-service
|
||||
spec:
|
||||
selector:
|
||||
app: mci-channel-service
|
||||
ports:
|
||||
- port: 8000
|
||||
targetPort: 8000
|
||||
Reference in New Issue
Block a user