feat(gitops): add demo deployment state
This commit is contained in:
commit
af686a1f63
8 files changed
+208
No files matched your search
@@ -0,0 +1,19 @@
|
|||||||
|
# MixingX Deploy
|
||||||
|
|
||||||
|
This repository is the GitOps environment state for MixingX deployments.
|
||||||
|
|
||||||
|
Responsibilities:
|
||||||
|
|
||||||
|
- `applications/`: Argo CD Application manifests.
|
||||||
|
- `environments/`: environment-specific Helm values.
|
||||||
|
- Helm chart templates live in `mixingx.hub.chart.git`.
|
||||||
|
- Application source code and CI live in `mixingx.hub.git`.
|
||||||
|
|
||||||
|
Demo environment:
|
||||||
|
|
||||||
|
1. Register both repositories in Argo CD:
|
||||||
|
- `git@gitee.com:mixing-tech/mixingx.deploy.git`
|
||||||
|
- `git@gitee.com:mixing-tech/mixingx.hub.chart.git`
|
||||||
|
2. Apply or create `bootstrap/mixingx-demo-root.yaml`.
|
||||||
|
3. Argo CD will create/sync the applications under `applications/`.
|
||||||
|
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: mixingx-agent-demo
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
sources:
|
||||||
|
- repoURL: git@gitee.com:mixing-tech/mixingx.hub.chart.git
|
||||||
|
targetRevision: master
|
||||||
|
path: release-charts/mixingx-agent-unit
|
||||||
|
helm:
|
||||||
|
releaseName: mixingx-agent-demo
|
||||||
|
valueFiles:
|
||||||
|
- $values/environments/demo/agent-demo-values.yaml
|
||||||
|
- repoURL: git@gitee.com:mixing-tech/mixingx.deploy.git
|
||||||
|
targetRevision: master
|
||||||
|
ref: values
|
||||||
|
destination:
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
namespace: mixingx
|
||||||
|
syncPolicy:
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: mixingx-edge-demo
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
sources:
|
||||||
|
- repoURL: git@gitee.com:mixing-tech/mixingx.hub.chart.git
|
||||||
|
targetRevision: master
|
||||||
|
path: release-charts/mixingx-edge-unit
|
||||||
|
helm:
|
||||||
|
releaseName: mixingx-edge-demo
|
||||||
|
valueFiles:
|
||||||
|
- $values/environments/demo/edge-demo-values.yaml
|
||||||
|
- repoURL: git@gitee.com:mixing-tech/mixingx.deploy.git
|
||||||
|
targetRevision: master
|
||||||
|
ref: values
|
||||||
|
destination:
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
namespace: mixingx
|
||||||
|
syncPolicy:
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: mixingx-platform
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
sources:
|
||||||
|
- repoURL: git@gitee.com:mixing-tech/mixingx.hub.chart.git
|
||||||
|
targetRevision: master
|
||||||
|
path: release-charts/mixingx-platform
|
||||||
|
helm:
|
||||||
|
releaseName: mixingx-platform
|
||||||
|
valueFiles:
|
||||||
|
- $values/environments/demo/platform-values.yaml
|
||||||
|
- repoURL: git@gitee.com:mixing-tech/mixingx.deploy.git
|
||||||
|
targetRevision: master
|
||||||
|
ref: values
|
||||||
|
destination:
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
namespace: mixingx
|
||||||
|
syncPolicy:
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: mixingx-demo-root
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
source:
|
||||||
|
repoURL: git@gitee.com:mixing-tech/mixingx.deploy.git
|
||||||
|
targetRevision: master
|
||||||
|
path: applications
|
||||||
|
directory:
|
||||||
|
recurse: true
|
||||||
|
destination:
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
namespace: argocd
|
||||||
|
syncPolicy:
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
registry: 192.168.1.105:8888/mixingx
|
||||||
|
tag: kube-node-frontend-refactor-design-202607030159-33
|
||||||
|
timezone: Asia/Shanghai
|
||||||
|
|
||||||
|
site: demo
|
||||||
|
description: "Demo Agent"
|
||||||
|
|
||||||
|
storage:
|
||||||
|
className: local-path
|
||||||
|
size: 5Gi
|
||||||
|
keep: true
|
||||||
|
|
||||||
|
images:
|
||||||
|
backend: agent
|
||||||
|
frontend: agent-web
|
||||||
|
postgres: 192.168.1.105:8888/library/postgres:17
|
||||||
|
|
||||||
|
sharedInfra:
|
||||||
|
postgres:
|
||||||
|
username: postgres
|
||||||
|
password: "Admin12345"
|
||||||
|
port: 5432
|
||||||
|
redis:
|
||||||
|
host: redis-service
|
||||||
|
port: 6379
|
||||||
|
password: "Admin12345"
|
||||||
|
rabbitmq:
|
||||||
|
host: messaging-service
|
||||||
|
port: 5672
|
||||||
|
username: guest
|
||||||
|
password: guest
|
||||||
|
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
registry: 192.168.1.105:8888/mixingx
|
||||||
|
tag: kube-node-frontend-refactor-design-202607030159-33
|
||||||
|
timezone: Asia/Shanghai
|
||||||
|
|
||||||
|
site: demo
|
||||||
|
description: "Demo Edge"
|
||||||
|
|
||||||
|
storage:
|
||||||
|
className: local-path
|
||||||
|
size: 5Gi
|
||||||
|
keep: true
|
||||||
|
|
||||||
|
images:
|
||||||
|
backend: edge
|
||||||
|
frontend: edge-web
|
||||||
|
postgres: 192.168.1.105:8888/library/postgres:17
|
||||||
|
|
||||||
|
sharedInfra:
|
||||||
|
postgres:
|
||||||
|
username: postgres
|
||||||
|
password: "Admin12345"
|
||||||
|
port: 5432
|
||||||
|
redis:
|
||||||
|
host: redis-service
|
||||||
|
port: 6379
|
||||||
|
password: "Admin12345"
|
||||||
|
rabbitmq:
|
||||||
|
host: messaging-service
|
||||||
|
port: 5672
|
||||||
|
username: guest
|
||||||
|
password: guest
|
||||||
|
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
registry: 192.168.1.105:8888/mixingx
|
||||||
|
tag: kube-node-frontend-refactor-design-202607030159-33
|
||||||
|
timezone: Asia/Shanghai
|
||||||
|
|
||||||
|
storage:
|
||||||
|
className: local-path
|
||||||
|
|
||||||
|
ingress:
|
||||||
|
enabled: true
|
||||||
|
domain: app.mixingx.local
|
||||||
|
gatewayService: gateway-service
|
||||||
|
gatewayPort: 8080
|
||||||
|
|
||||||
|
sharedDatastores:
|
||||||
|
- name: redis
|
||||||
|
image: 192.168.1.105:8888/library/redis:8.6
|
||||||
|
port: 6379
|
||||||
|
storage: 2Gi
|
||||||
|
mountPath: /data
|
||||||
|
- name: mongo
|
||||||
|
image: 192.168.1.105:8888/library/mongo:8.3
|
||||||
|
port: 27017
|
||||||
|
storage: 5Gi
|
||||||
|
mountPath: /data/db
|
||||||
|
- name: messaging
|
||||||
|
image: 192.168.1.105:8888/library/rabbitmq:4.3-management
|
||||||
|
port: 5672
|
||||||
|
storage: 2Gi
|
||||||
|
mountPath: /var/lib/rabbitmq
|
||||||
|
|
||||||
Reference in new issue
Block a user