[Agent][Deploy] - cmii update

This commit is contained in:
zeaslity
2024-06-12 14:09:49 +08:00
parent 4b782328db
commit f1fdfc7777
15 changed files with 51 additions and 17 deletions

View File

@@ -164,3 +164,30 @@ func configMapDeploy(common *z_dep.CommonEnvironmentConfig) {
c_app.DefaultCmiiFrontendConfig.ConfigMapDeploy(common)
}
}
// CmiiEnvironmentDeploy 部署完整的CMII环境的所有组件
func CmiiEnvironmentDeploy() {
// common environment
common := &z_dep.CommonEnvironmentConfig{
WebIP: "lab.uavcmlc.com",
WebPort: "",
HarborIP: image2.CmiiHarborPrefix,
HarborPort: "",
Namespace: "devflight",
TagVersion: "5.5.0",
TenantEnv: "devflight",
}
folderPrefix := "/home/wdd/IdeaProjects/ProjectOctopus/agent-deploy/"
// clear old apply file
// clear all middleware data
// ignore redis rabbitmq mongo nacos emqx
// sync mysql-data
// generate new apply file for specific environment
// apply for them
}

View File

@@ -182,7 +182,7 @@ spec:
{{- if .HarborPort }}
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/dashboard:v2.0.1
{{- else }}
image: {{ .HarborIP }}/cmii/dashboard:v2.0.1
image: {{ .HarborIP }}dashboard:v2.0.1
{{- end }}
ports:
- containerPort: 8443
@@ -267,7 +267,7 @@ spec:
{{- if .HarborPort }}
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/metrics-scraper:v1.0.4
{{- else }}
image: {{ .HarborIP }}/cmii/metrics-scraper:v1.0.4
image: {{ .HarborIP }}metrics-scraper:v1.0.4
{{- end }}
ports:
- containerPort: 8000

View File

@@ -99,7 +99,7 @@ spec:
{{- if .HarborPort }}
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/nfs-subdir-external-provisioner:v4.0.2
{{- else }}
image: {{ .HarborIP }}/cmii/nfs-subdir-external-provisioner:v4.0.2
image: {{ .HarborIP }}nfs-subdir-external-provisioner:v4.0.2
{{- end }}
volumeMounts:
- name: nfs-client-root

View File

@@ -25,7 +25,7 @@ spec:
{{- if .HarborPort }}
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/busybox:latest
{{- else }}
image: {{ .HarborIP }}/cmii/busybox:latest
image: {{ .HarborIP }}busybox:latest
{{- end }}
command:
- "/bin/sh"

View File

@@ -105,7 +105,7 @@ spec:
{{- if .HarborPort }}
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/emqx:5.5.1
{{- else }}
image: {{ .HarborIP }}/cmii/emqx:5.5.1
image: {{ .HarborIP }}emqx:5.5.1
{{- end }}
imagePullPolicy: Always
ports:

View File

@@ -57,7 +57,7 @@ spec:
{{- if .HarborPort }}
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/mongo:5.0
{{- else }}
image: {{ .HarborIP }}/cmii/mongo:5.0
image: {{ .HarborIP }}mongo:5.0
{{- end }}
resources: {}
ports:

View File

@@ -311,7 +311,7 @@ spec:
{{- if .HarborPort }}
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/bitnami-shell:11-debian-11-r136
{{- else }}
image: {{ .HarborIP }}/cmii/bitnami-shell:11-debian-11-r136
image: {{ .HarborIP }}bitnami-shell:11-debian-11-r136
{{- end }}
imagePullPolicy: "Always"
command:
@@ -329,7 +329,7 @@ spec:
{{- if .HarborPort }}
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/mysql:8.1.0-debian-11-r42
{{- else }}
image: {{ .HarborIP }}/cmii/mysql:8.1.0-debian-11-r42
image: {{ .HarborIP }}mysql:8.1.0-debian-11-r42
{{- end }}
imagePullPolicy: "IfNotPresent"
securityContext:

View File

@@ -84,7 +84,7 @@ spec:
{{- if .HarborPort }}
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/nacos-server:v2.1.2
{{- else }}
image: {{ .HarborIP }}/cmii/nacos-server:v2.1.2
image: {{ .HarborIP }}nacos-server:v2.1.2
{{- end }}
ports:
- containerPort: 8848

View File

@@ -195,7 +195,7 @@ spec:
{{- if .HarborPort }}
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/bitnami-shell:11-debian-11-r136
{{- else }}
image: {{ .HarborIP }}/cmii/bitnami-shell:11-debian-11-r136
image: {{ .HarborIP }}bitnami-shell:11-debian-11-r136
{{- end }}
imagePullPolicy: "Always"
command:
@@ -218,7 +218,7 @@ spec:
{{- if .HarborPort }}
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/rabbitmq:3.9.12-debian-10-r3
{{- else }}
image: {{ .HarborIP }}/cmii/rabbitmq:3.9.12-debian-10-r3
image: {{ .HarborIP }}rabbitmq:3.9.12-debian-10-r3
{{- end }}
imagePullPolicy: "Always"
env:

View File

@@ -356,7 +356,7 @@ spec:
{{- if .HarborPort }}
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/redis:6.2.6-debian-10-r0
{{- else }}
image: {{ .HarborIP }}/cmii/redis:6.2.6-debian-10-r0
image: {{ .HarborIP }}redis:6.2.6-debian-10-r0
{{- end }}
imagePullPolicy: "Always"
securityContext:
@@ -494,7 +494,7 @@ spec:
{{- if .HarborPort }}
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/bitnami-shell:6.2.6-debian-10-r0
{{- else }}
image: {{ .HarborIP }}/cmii/bitnami-shell:6.2.6-debian-10-r0
image: {{ .HarborIP }}bitnami-shell:6.2.6-debian-10-r0
{{- end }}
imagePullPolicy: "Always"
securityContext:

View File

@@ -43,7 +43,7 @@ spec:
{{- if .HarborPort }}
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/{{ .AppName }}:{{ .ImageTag }}
{{- else }}
image: {{ .HarborIP }}/cmii/{{ .AppName }}:{{ .ImageTag }}
image: {{ .HarborIP }}{{ .AppName }}:{{ .ImageTag }}
{{- end }}
imagePullPolicy: Always
env:

View File

@@ -33,7 +33,7 @@ spec:
{{- if .HarborPort }}
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/{{ .AppName }}:{{ .ImageTag }}
{{- else }}
image: {{ .HarborIP }}/cmii/{{ .AppName }}:{{ .ImageTag }}
image: {{ .HarborIP }}{{ .AppName }}:{{ .ImageTag }}
{{- end }}
imagePullPolicy: Always
env:

View File

@@ -10,7 +10,11 @@ data:
ingress-config.js: |-
var __GlobalIngressConfig = {
TenantEnvironment: "{{ .TenantEnv }}",
{{- if .WebPort }}
CloudHOST: "{{ .WebIP }}:{{ .WebPort }}",
{{- else }}
CloudHOST: "{{ .WebIP }}",
{{- end }}
{{- if eq .ShortName "pangu" }}
ApplicationShortName: "",
{{- else }}