feat(gitops): split environments and image version

This commit is contained in:
ximenchuifeng committed 2026-07-06 11:06:52 +08:00
1 parent b70b40ba74
commit 0c46951446
23 files changed
+273 -33

No files matched your search

+49
View File
@@ -0,0 +1,49 @@
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: mixingx-agents
namespace: argocd
spec:
goTemplate: true
goTemplateOptions:
- missingkey=error
generators:
- matrix:
generators:
- git:
repoURL: https://gitee.com/mixing-tech/mixingx.deploy.git
revision: master
files:
- path: environments/demo/agents.yaml
- list:
elementsYaml: '{{ .agents | toJson }}'
template:
metadata:
name: 'mixingx-agent-{{ .id }}'
spec:
project: default
sources:
- repoURL: https://gitee.com/mixing-tech/mixingx.hub.chart.git
targetRevision: master
path: release-charts/mixingx-agent-unit
helm:
releaseName: 'mixingx-agent-{{ .id }}'
valueFiles:
- $values/environments/demo/image-version.yaml
- $values/environments/demo/agent-common-values.yaml
values: |
site: "{{ .id }}"
description: "{{ .description }}"
{{- if .nodeLabel }}
nodeSelector:
mixingx.io/edge-node: "{{ .nodeLabel }}"
{{- end }}
- repoURL: https://gitee.com/mixing-tech/mixingx.deploy.git
targetRevision: master
ref: values
destination:
server: https://kubernetes.default.svc
namespace: mixingx
syncPolicy:
syncOptions:
- CreateNamespace=true
+49
View File
@@ -0,0 +1,49 @@
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: mixingx-edges
namespace: argocd
spec:
goTemplate: true
goTemplateOptions:
- missingkey=error
generators:
- matrix:
generators:
- git:
repoURL: https://gitee.com/mixing-tech/mixingx.deploy.git
revision: master
files:
- path: environments/demo/edges.yaml
- list:
elementsYaml: '{{ .edges | toJson }}'
template:
metadata:
name: 'mixingx-edge-{{ .id }}'
spec:
project: default
sources:
- repoURL: https://gitee.com/mixing-tech/mixingx.hub.chart.git
targetRevision: master
path: release-charts/mixingx-edge-unit
helm:
releaseName: 'mixingx-edge-{{ .id }}'
valueFiles:
- $values/environments/demo/image-version.yaml
- $values/environments/demo/edge-common-values.yaml
values: |
site: "{{ .id }}"
description: "{{ .description }}"
{{- if .nodeLabel }}
nodeSelector:
mixingx.io/edge-node: "{{ .nodeLabel }}"
{{- end }}
- repoURL: https://gitee.com/mixing-tech/mixingx.deploy.git
targetRevision: master
ref: values
destination:
server: https://kubernetes.default.svc
namespace: mixingx
syncPolicy:
syncOptions:
- CreateNamespace=true
+17
View File
@@ -0,0 +1,17 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: longhorn-ui-ingress
namespace: argocd
spec:
project: default
source:
repoURL: https://gitee.com/mixing-tech/mixingx.deploy.git
targetRevision: master
path: networking/longhorn-ui
destination:
server: https://kubernetes.default.svc
namespace: longhorn-system
syncPolicy:
syncOptions:
- CreateNamespace=true
+44
View File
@@ -0,0 +1,44 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: longhorn
namespace: argocd
spec:
project: default
source:
repoURL: https://charts.longhorn.io
chart: longhorn
targetRevision: 1.12.0
helm:
releaseName: longhorn
values: |
service:
ui:
type: NodePort
nodePort: 30880
preUpgradeChecker:
jobEnabled: false
upgradeVersionCheck: false
csi:
kubeletRootDir: /var/lib/kubelet
persistence:
createStorageClass: true
defaultClass: false
defaultClassReplicaCount: 2
defaultDataLocality: disabled
dataEngine: v1
reclaimPolicy: Delete
volumeBindingMode: Immediate
defaultSettings:
defaultDataPath: /var/lib/longhorn/
defaultReplicaCount: '{"v1":"2","v2":"2"}'
v1DataEngine: true
v2DataEngine: false
storageReservedPercentageForDefaultDisk: 10
upgradeChecker: false
destination:
server: https://kubernetes.default.svc
namespace: longhorn-system
syncPolicy:
syncOptions:
- CreateNamespace=true
+25
View File
@@ -0,0 +1,25 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: mixingx-platform
namespace: argocd
spec:
project: default
sources:
- repoURL: https://gitee.com/mixing-tech/mixingx.hub.chart.git
targetRevision: master
path: release-charts/mixingx-platform
helm:
releaseName: mixingx-platform
valueFiles:
- $values/environments/demo/image-version.yaml
- $values/environments/demo/platform-values.yaml
- repoURL: https://gitee.com/mixing-tech/mixingx.deploy.git
targetRevision: master
ref: values
destination:
server: https://kubernetes.default.svc
namespace: mixingx
syncPolicy:
syncOptions:
- CreateNamespace=true
+17
View File
@@ -0,0 +1,17 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: mixingx-storageclasses
namespace: argocd
spec:
project: default
source:
repoURL: https://gitee.com/mixing-tech/mixingx.deploy.git
targetRevision: master
path: storageclasses
destination:
server: https://kubernetes.default.svc
namespace: argocd
syncPolicy:
syncOptions:
- PruneLast=true