feat(gitops): split demo platform applications
This commit is contained in:
1 parent
9a1ecc5631
commit
343cdcc4c1
15 files changed
+322
-6
No files matched your search
@@ -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
|
||||
@@ -1,57 +0,0 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: ApplicationSet
|
||||
metadata:
|
||||
name: mixingx-protocol-servers
|
||||
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/protocol-servers.yaml
|
||||
- list:
|
||||
elementsYaml: '{{ .servers | toJson }}'
|
||||
template:
|
||||
metadata:
|
||||
name: 'mixingx-protocol-server-{{ .id }}'
|
||||
spec:
|
||||
project: default
|
||||
sources:
|
||||
- repoURL: https://gitee.com/mixing-tech/mixingx.hub.chart.git
|
||||
targetRevision: master
|
||||
path: release-charts/mixingx-protocol-server-unit
|
||||
helm:
|
||||
releaseName: 'mixingx-protocol-server-{{ .id }}'
|
||||
valueFiles:
|
||||
- $values/environments/demo/image-version.yaml
|
||||
- $values/environments/demo/protocol-server-common-values.yaml
|
||||
values: |
|
||||
type: "{{ .type }}"
|
||||
image: "{{ .image }}"
|
||||
port: {{ .port }}
|
||||
scene: "{{ .scene }}"
|
||||
{{- if hasKey . "args" }}
|
||||
args:
|
||||
{{- range .args }}
|
||||
- {{ . | quote }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- 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
|
||||
Reference in new issue
Block a user