[Agent][Deploy] - support pure hostmode
This commit is contained in:
@@ -65,7 +65,7 @@ func CmiiAppDeploy() {
|
|||||||
WebIP: "36.133.201.78",
|
WebIP: "36.133.201.78",
|
||||||
WebPort: "8888",
|
WebPort: "8888",
|
||||||
HarborIP: "192.168.0.14",
|
HarborIP: "192.168.0.14",
|
||||||
HarborPort: "8033",
|
HarborPort: "",
|
||||||
Namespace: "xjyd",
|
Namespace: "xjyd",
|
||||||
TagVersion: "5.5.0",
|
TagVersion: "5.5.0",
|
||||||
TenantEnv: "",
|
TenantEnv: "",
|
||||||
@@ -80,8 +80,9 @@ func CmiiAppDeploy() {
|
|||||||
|
|
||||||
backendDeploy(common, backendImageVersionMap)
|
backendDeploy(common, backendImageVersionMap)
|
||||||
frontendDeploy(common, frontendImageVersionMap)
|
frontendDeploy(common, frontendImageVersionMap)
|
||||||
|
//utils.BeautifulPrint(frontendImageVersionMap)
|
||||||
|
|
||||||
configMapDeploy(common)
|
//configMapDeploy(common)
|
||||||
//c_app.IngressDeploy(common)
|
//c_app.IngressDeploy(common)
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -123,6 +124,7 @@ func backendDeploy(common *z_dep.CommonEnvironmentConfig, backendImageVersionMap
|
|||||||
}
|
}
|
||||||
|
|
||||||
func frontendDeploy(common *z_dep.CommonEnvironmentConfig, frontendImageVersionMap map[string]string) {
|
func frontendDeploy(common *z_dep.CommonEnvironmentConfig, frontendImageVersionMap map[string]string) {
|
||||||
|
|
||||||
os.Remove(c_app.FrontendApplyFilePath)
|
os.Remove(c_app.FrontendApplyFilePath)
|
||||||
|
|
||||||
c_app.FrontendDefaultNginxDeploy(common)
|
c_app.FrontendDefaultNginxDeploy(common)
|
||||||
|
|||||||
@@ -179,11 +179,11 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: kubernetes-dashboard
|
- name: kubernetes-dashboard
|
||||||
{{ if .HarborPort }}
|
{{- if .HarborPort }}
|
||||||
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/dashboard:v2.0.1
|
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/dashboard:v2.0.1
|
||||||
{{ else }}
|
{{- else }}
|
||||||
image: {{ .HarborIP }}/cmii/dashboard:v2.0.1
|
image: {{ .HarborIP }}/cmii/dashboard:v2.0.1
|
||||||
{{ end }}
|
{{- end }}
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8443
|
- containerPort: 8443
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
@@ -264,11 +264,11 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: dashboard-metrics-scraper
|
- name: dashboard-metrics-scraper
|
||||||
{{ if .HarborPort }}
|
{{- if .HarborPort }}
|
||||||
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/metrics-scraper:v1.0.4
|
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/metrics-scraper:v1.0.4
|
||||||
{{ else }}
|
{{- else }}
|
||||||
image: {{ .HarborIP }}/cmii/metrics-scraper:v1.0.4
|
image: {{ .HarborIP }}/cmii/metrics-scraper:v1.0.4
|
||||||
{{ end }}
|
{{- end }}
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8000
|
- containerPort: 8000
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
|||||||
@@ -96,7 +96,11 @@ spec:
|
|||||||
serviceAccountName: nfs-client-provisioner
|
serviceAccountName: nfs-client-provisioner
|
||||||
containers:
|
containers:
|
||||||
- name: nfs-client-provisioner
|
- name: nfs-client-provisioner
|
||||||
|
{{- if .HarborPort }}
|
||||||
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/nfs-subdir-external-provisioner:v4.0.2
|
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/nfs-subdir-external-provisioner:v4.0.2
|
||||||
|
{{- else }}
|
||||||
|
image: {{ .HarborIP }}/cmii/nfs-subdir-external-provisioner:v4.0.2
|
||||||
|
{{- end }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: nfs-client-root
|
- name: nfs-client-root
|
||||||
mountPath: /persistentvolumes
|
mountPath: /persistentvolumes
|
||||||
|
|||||||
@@ -22,7 +22,11 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: test-pod
|
- name: test-pod
|
||||||
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/busybox
|
{{- if .HarborPort }}
|
||||||
|
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/busybox:latest
|
||||||
|
{{- else }}
|
||||||
|
image: {{ .HarborIP }}/cmii/busybox:latest
|
||||||
|
{{- end }}
|
||||||
command:
|
command:
|
||||||
- "/bin/sh"
|
- "/bin/sh"
|
||||||
args:
|
args:
|
||||||
|
|||||||
@@ -102,7 +102,11 @@ spec:
|
|||||||
serviceAccountName: helm-emqxs
|
serviceAccountName: helm-emqxs
|
||||||
containers:
|
containers:
|
||||||
- name: helm-emqxs
|
- name: helm-emqxs
|
||||||
|
{{- if .HarborPort }}
|
||||||
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/emqx:5.5.1
|
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/emqx:5.5.1
|
||||||
|
{{- else }}
|
||||||
|
image: {{ .HarborIP }}/cmii/emqx:5.5.1
|
||||||
|
{{- end }}
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
ports:
|
ports:
|
||||||
- name: mqtt
|
- name: mqtt
|
||||||
|
|||||||
@@ -54,7 +54,11 @@ spec:
|
|||||||
affinity: {}
|
affinity: {}
|
||||||
containers:
|
containers:
|
||||||
- name: helm-mongo
|
- name: helm-mongo
|
||||||
|
{{- if .HarborPort }}
|
||||||
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/mongo:5.0
|
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/mongo:5.0
|
||||||
|
{{- else }}
|
||||||
|
image: {{ .HarborIP }}/cmii/mongo:5.0
|
||||||
|
{{- end }}
|
||||||
resources: {}
|
resources: {}
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 27017
|
- containerPort: 27017
|
||||||
|
|||||||
@@ -308,7 +308,11 @@ spec:
|
|||||||
fsGroup: 1001
|
fsGroup: 1001
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: change-volume-permissions
|
- name: change-volume-permissions
|
||||||
|
{{- if .HarborPort }}
|
||||||
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/bitnami-shell:11-debian-11-r136
|
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/bitnami-shell:11-debian-11-r136
|
||||||
|
{{- else }}
|
||||||
|
image: {{ .HarborIP }}/cmii/bitnami-shell:11-debian-11-r136
|
||||||
|
{{- end }}
|
||||||
imagePullPolicy: "Always"
|
imagePullPolicy: "Always"
|
||||||
command:
|
command:
|
||||||
- /bin/bash
|
- /bin/bash
|
||||||
@@ -322,7 +326,11 @@ spec:
|
|||||||
mountPath: /bitnami/mysql
|
mountPath: /bitnami/mysql
|
||||||
containers:
|
containers:
|
||||||
- name: mysql
|
- name: mysql
|
||||||
|
{{- if .HarborPort }}
|
||||||
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/mysql:8.1.0-debian-11-r42
|
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/mysql:8.1.0-debian-11-r42
|
||||||
|
{{- else }}
|
||||||
|
image: {{ .HarborIP }}/cmii/mysql:8.1.0-debian-11-r42
|
||||||
|
{{- end }}
|
||||||
imagePullPolicy: "IfNotPresent"
|
imagePullPolicy: "IfNotPresent"
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: 1001
|
runAsUser: 1001
|
||||||
|
|||||||
@@ -81,10 +81,18 @@ spec:
|
|||||||
affinity: {}
|
affinity: {}
|
||||||
containers:
|
containers:
|
||||||
- name: nacos-server
|
- name: nacos-server
|
||||||
|
{{- if .HarborPort }}
|
||||||
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/nacos-server:v2.1.2
|
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/nacos-server:v2.1.2
|
||||||
|
{{- else }}
|
||||||
|
image: {{ .HarborIP }}/cmii/nacos-server:v2.1.2
|
||||||
|
{{- end }}
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8848
|
- containerPort: 8848
|
||||||
name: dashboard
|
name: dashboard
|
||||||
|
- containerPort: 9848
|
||||||
|
name: tcp-9848
|
||||||
|
- containerPort: 9849
|
||||||
|
name: tcp-9849
|
||||||
env:
|
env:
|
||||||
- name: NACOS_AUTH_ENABLE
|
- name: NACOS_AUTH_ENABLE
|
||||||
value: "false"
|
value: "false"
|
||||||
|
|||||||
@@ -192,7 +192,11 @@ spec:
|
|||||||
terminationGracePeriodSeconds: 120
|
terminationGracePeriodSeconds: 120
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: volume-permissions
|
- name: volume-permissions
|
||||||
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/bitnami-shell:10-debian-10-r140
|
{{- if .HarborPort }}
|
||||||
|
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/bitnami-shell:11-debian-11-r136
|
||||||
|
{{- else }}
|
||||||
|
image: {{ .HarborIP }}/cmii/bitnami-shell:11-debian-11-r136
|
||||||
|
{{- end }}
|
||||||
imagePullPolicy: "Always"
|
imagePullPolicy: "Always"
|
||||||
command:
|
command:
|
||||||
- /bin/bash
|
- /bin/bash
|
||||||
@@ -211,7 +215,11 @@ spec:
|
|||||||
mountPath: /bitnami/rabbitmq/mnesia
|
mountPath: /bitnami/rabbitmq/mnesia
|
||||||
containers:
|
containers:
|
||||||
- name: rabbitmq
|
- name: rabbitmq
|
||||||
|
{{- if .HarborPort }}
|
||||||
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/rabbitmq:3.9.12-debian-10-r3
|
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/rabbitmq:3.9.12-debian-10-r3
|
||||||
|
{{- else }}
|
||||||
|
image: {{ .HarborIP }}/cmii/rabbitmq:3.9.12-debian-10-r3
|
||||||
|
{{- end }}
|
||||||
imagePullPolicy: "Always"
|
imagePullPolicy: "Always"
|
||||||
env:
|
env:
|
||||||
- name: BITNAMI_DEBUG
|
- name: BITNAMI_DEBUG
|
||||||
|
|||||||
@@ -353,7 +353,11 @@ spec:
|
|||||||
terminationGracePeriodSeconds: 30
|
terminationGracePeriodSeconds: 30
|
||||||
containers:
|
containers:
|
||||||
- name: redis
|
- name: redis
|
||||||
|
{{- if .HarborPort }}
|
||||||
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/redis:6.2.6-debian-10-r0
|
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/redis:6.2.6-debian-10-r0
|
||||||
|
{{- else }}
|
||||||
|
image: {{ .HarborIP }}/cmii/redis:6.2.6-debian-10-r0
|
||||||
|
{{- end }}
|
||||||
imagePullPolicy: "Always"
|
imagePullPolicy: "Always"
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: 1001
|
runAsUser: 1001
|
||||||
@@ -487,7 +491,11 @@ spec:
|
|||||||
terminationGracePeriodSeconds: 30
|
terminationGracePeriodSeconds: 30
|
||||||
containers:
|
containers:
|
||||||
- name: redis
|
- name: redis
|
||||||
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/redis:6.2.6-debian-10-r0
|
{{- 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
|
||||||
|
{{- end }}
|
||||||
imagePullPolicy: "Always"
|
imagePullPolicy: "Always"
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: 1001
|
runAsUser: 1001
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package c_app
|
|||||||
var FrontendShortNameMaps = map[string]string{
|
var FrontendShortNameMaps = map[string]string{
|
||||||
"cmii-suav-platform-supervision": "supervision",
|
"cmii-suav-platform-supervision": "supervision",
|
||||||
"cmii-suav-platform-supervisionh5": "supervisionh5",
|
"cmii-suav-platform-supervisionh5": "supervisionh5",
|
||||||
"cmii-uav-platform": "",
|
"cmii-uav-platform": "pangu",
|
||||||
"cmii-uav-platform-ai-brain": "ai-brain",
|
"cmii-uav-platform-ai-brain": "ai-brain",
|
||||||
"cmii-uav-platform-armypeople": "armypeople",
|
"cmii-uav-platform-armypeople": "armypeople",
|
||||||
"cmii-uav-platform-base": "base",
|
"cmii-uav-platform-base": "base",
|
||||||
|
|||||||
@@ -40,11 +40,11 @@ spec:
|
|||||||
- name: harborsecret
|
- name: harborsecret
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .AppName }}
|
- name: {{ .AppName }}
|
||||||
{{ if .HarborPort }}
|
{{- if .HarborPort }}
|
||||||
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/{{ .AppName }}:{{ .ImageTag }}
|
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/{{ .AppName }}:{{ .ImageTag }}
|
||||||
{{ else }}
|
{{- else }}
|
||||||
image: {{ .HarborIP }}/cmii/{{ .AppName }}:{{ .ImageTag }}
|
image: {{ .HarborIP }}/cmii/{{ .AppName }}:{{ .ImageTag }}
|
||||||
{{ end }}
|
{{- end }}
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
env:
|
env:
|
||||||
- name: K8S_NAMESPACE
|
- name: K8S_NAMESPACE
|
||||||
|
|||||||
@@ -30,11 +30,11 @@ spec:
|
|||||||
- name: harborsecret
|
- name: harborsecret
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .AppName }}
|
- name: {{ .AppName }}
|
||||||
{{ if .HarborPort }}
|
{{- if .HarborPort }}
|
||||||
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/{{ .AppName }}:{{ .ImageTag }}
|
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/{{ .AppName }}:{{ .ImageTag }}
|
||||||
{{ else }}
|
{{- else }}
|
||||||
image: {{ .HarborIP }}/cmii/{{ .AppName }}:{{ .ImageTag }}
|
image: {{ .HarborIP }}/cmii/{{ .AppName }}:{{ .ImageTag }}
|
||||||
{{ end }}
|
{{- end }}
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
env:
|
env:
|
||||||
- name: K8S_NAMESPACE
|
- name: K8S_NAMESPACE
|
||||||
|
|||||||
@@ -11,7 +11,11 @@ data:
|
|||||||
var __GlobalIngressConfig = {
|
var __GlobalIngressConfig = {
|
||||||
TenantEnvironment: "{{ .TenantEnv }}",
|
TenantEnvironment: "{{ .TenantEnv }}",
|
||||||
CloudHOST: "{{ .WebIP }}:{{ .WebPort }}",
|
CloudHOST: "{{ .WebIP }}:{{ .WebPort }}",
|
||||||
|
{{- if eq .ShortName "pangu" }}
|
||||||
|
ApplicationShortName: "",
|
||||||
|
{{- else }}
|
||||||
ApplicationShortName: "{{ .ShortName }}",
|
ApplicationShortName: "{{ .ShortName }}",
|
||||||
|
{{- end }}
|
||||||
AppClientId: "{{ .ClientId }}"
|
AppClientId: "{{ .ClientId }}"
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|||||||
5143
agent-deploy/z_bjtg/k8s-backend.yaml
Normal file
5143
agent-deploy/z_bjtg/k8s-backend.yaml
Normal file
File diff suppressed because it is too large
Load Diff
322
agent-deploy/z_bjtg/k8s-configmap.yaml
Normal file
322
agent-deploy/z_bjtg/k8s-configmap.yaml
Normal file
@@ -0,0 +1,322 @@
|
|||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-qinghaitourism
|
||||||
|
namespace: xjyd
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "36.133.201.78:8888",
|
||||||
|
ApplicationShortName: "qinghaitourism",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-supervisionh5
|
||||||
|
namespace: xjyd
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "36.133.201.78:8888",
|
||||||
|
ApplicationShortName: "supervisionh5",
|
||||||
|
AppClientId: "APP_qqSu82THfexI8PLM"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-emergency
|
||||||
|
namespace: xjyd
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "36.133.201.78:8888",
|
||||||
|
ApplicationShortName: "emergency",
|
||||||
|
AppClientId: "APP_aGsTAY1uMZrpKdfk"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-mws
|
||||||
|
namespace: xjyd
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "36.133.201.78:8888",
|
||||||
|
ApplicationShortName: "mws",
|
||||||
|
AppClientId: "APP_uKniXPELlRERBBwK"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-oms
|
||||||
|
namespace: xjyd
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "36.133.201.78:8888",
|
||||||
|
ApplicationShortName: "oms",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-seniclive
|
||||||
|
namespace: xjyd
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "36.133.201.78:8888",
|
||||||
|
ApplicationShortName: "seniclive",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-media
|
||||||
|
namespace: xjyd
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "36.133.201.78:8888",
|
||||||
|
ApplicationShortName: "media",
|
||||||
|
AppClientId: "APP_4AU8lbifESQO4FD6"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-share
|
||||||
|
namespace: xjyd
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "36.133.201.78:8888",
|
||||||
|
ApplicationShortName: "share",
|
||||||
|
AppClientId: "APP_4lVSVI0ZGxTssir8"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-jiangsuwenlv
|
||||||
|
namespace: xjyd
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "36.133.201.78:8888",
|
||||||
|
ApplicationShortName: "jiangsuwenlv",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-cmsportal
|
||||||
|
namespace: xjyd
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "36.133.201.78:8888",
|
||||||
|
ApplicationShortName: "cmsportal",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-detection
|
||||||
|
namespace: xjyd
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "36.133.201.78:8888",
|
||||||
|
ApplicationShortName: "detection",
|
||||||
|
AppClientId: "APP_FDHW2VLVDWPnnOCy"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-logistics
|
||||||
|
namespace: xjyd
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "36.133.201.78:8888",
|
||||||
|
ApplicationShortName: "logistics",
|
||||||
|
AppClientId: "APP_PvdfRRRBPL8xbIwl"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-multiterminal
|
||||||
|
namespace: xjyd
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "36.133.201.78:8888",
|
||||||
|
ApplicationShortName: "multiterminal",
|
||||||
|
AppClientId: "APP_PvdfRRRBPL8xbIwl"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-traffic
|
||||||
|
namespace: xjyd
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "36.133.201.78:8888",
|
||||||
|
ApplicationShortName: "traffic",
|
||||||
|
AppClientId: "APP_Jc8i2wOQ1t73QEJS"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-security
|
||||||
|
namespace: xjyd
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "36.133.201.78:8888",
|
||||||
|
ApplicationShortName: "security",
|
||||||
|
AppClientId: "APP_JUSEMc7afyWXxvE7"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-securityh5
|
||||||
|
namespace: xjyd
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "36.133.201.78:8888",
|
||||||
|
ApplicationShortName: "securityh5",
|
||||||
|
AppClientId: "APP_N3ImO0Ubfu9peRHD"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-splice
|
||||||
|
namespace: xjyd
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "36.133.201.78:8888",
|
||||||
|
ApplicationShortName: "splice",
|
||||||
|
AppClientId: "APP_zE0M3sTRXrCIJS8Y"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-supervision
|
||||||
|
namespace: xjyd
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "36.133.201.78:8888",
|
||||||
|
ApplicationShortName: "supervision",
|
||||||
|
AppClientId: "APP_qqSu82THfexI8PLM"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-ai-brain
|
||||||
|
namespace: xjyd
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "36.133.201.78:8888",
|
||||||
|
ApplicationShortName: "ai-brain",
|
||||||
|
AppClientId: "APP_rafnuCAmBESIVYMH"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-armypeople
|
||||||
|
namespace: xjyd
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "36.133.201.78:8888",
|
||||||
|
ApplicationShortName: "armypeople",
|
||||||
|
AppClientId: "APP_UIegse6Lfou9pO1U"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-base
|
||||||
|
namespace: xjyd
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "36.133.201.78:8888",
|
||||||
|
ApplicationShortName: "base",
|
||||||
|
AppClientId: "APP_9LY41OaKSqk2btY0"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-open
|
||||||
|
namespace: xjyd
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "36.133.201.78:8888",
|
||||||
|
ApplicationShortName: "open",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-threedsimulation
|
||||||
|
namespace: xjyd
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "36.133.201.78:8888",
|
||||||
|
ApplicationShortName: "threedsimulation",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
1860
agent-deploy/z_bjtg/k8s-frontend.yaml
Normal file
1860
agent-deploy/z_bjtg/k8s-frontend.yaml
Normal file
File diff suppressed because it is too large
Load Diff
@@ -21,11 +21,11 @@ var log = logger.Log
|
|||||||
func init() {
|
func init() {
|
||||||
switch runtime.GOOS {
|
switch runtime.GOOS {
|
||||||
case "linux":
|
case "linux":
|
||||||
ApplyFilePrefix = "/home/wdd/IdeaProjects/ProjectOctopus/agent-operator/deploy/z_bjtg/"
|
ApplyFilePrefix = "/home/wdd/IdeaProjects/ProjectOctopus/agent-deploy/z_bjtg/"
|
||||||
case "darwin": // macOS
|
case "darwin": // macOS
|
||||||
ApplyFilePrefix = "MacOS value"
|
ApplyFilePrefix = "MacOS value"
|
||||||
case "windows":
|
case "windows":
|
||||||
ApplyFilePrefix = "C:\\Users\\wddsh\\Documents\\IdeaProjects\\ProjectOctopus\\agent-operator\\deploy\\z_xjyd\\"
|
ApplyFilePrefix = "C:\\Users\\wddsh\\Documents\\IdeaProjects\\ProjectOctopus\\agent-deploy\\z_xjyd\\"
|
||||||
default:
|
default:
|
||||||
ApplyFilePrefix = "Unknown OS"
|
ApplyFilePrefix = "Unknown OS"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -253,7 +253,7 @@ func TestUpdateCmiiDeploymentImageTag(t *testing.T) {
|
|||||||
// 计算20:00的时间
|
// 计算20:00的时间
|
||||||
now := time.Now()
|
now := time.Now()
|
||||||
|
|
||||||
targetTime := time.Date(now.Year(), now.Month(), now.Day(), 17, 30, 00, 0, now.Location())
|
targetTime := time.Date(now.Year(), now.Month(), now.Day(), 13, 52, 00, 0, now.Location())
|
||||||
|
|
||||||
duration := time.Duration(0)
|
duration := time.Duration(0)
|
||||||
|
|
||||||
@@ -276,7 +276,8 @@ func TestUpdateCmiiDeploymentImageTag(t *testing.T) {
|
|||||||
|
|
||||||
appNameTagMap := map[string]string{
|
appNameTagMap := map[string]string{
|
||||||
//"cmii-uav-multilink": "5.5.0",
|
//"cmii-uav-multilink": "5.5.0",
|
||||||
"cmii-uav-industrial-portfolio": "5.6.0-060301",
|
//"cmii-uav-process": "5.6.0-060601",
|
||||||
|
"cmii-uav-industrial-portfolio": "5.6.0-060601",
|
||||||
}
|
}
|
||||||
|
|
||||||
for appName, newTag := range appNameTagMap {
|
for appName, newTag := range appNameTagMap {
|
||||||
|
|||||||
@@ -46,3 +46,9 @@
|
|||||||
2024-05-10-19-55-00 uavcloud-demo cmii-uav-industrial-portfolio 5.6.0 5.6.0-051001
|
2024-05-10-19-55-00 uavcloud-demo cmii-uav-industrial-portfolio 5.6.0 5.6.0-051001
|
||||||
2024-05-13-18-30-00 uavcloud-demo cmii-uav-industrial-portfolio 5.6.0-sense 5.6.0-051301
|
2024-05-13-18-30-00 uavcloud-demo cmii-uav-industrial-portfolio 5.6.0-sense 5.6.0-051301
|
||||||
2024-06-03-17-31-36 uavcloud-demo cmii-uav-industrial-portfolio 5.6.0-sense-052201 5.6.0-060301
|
2024-06-03-17-31-36 uavcloud-demo cmii-uav-industrial-portfolio 5.6.0-sense-052201 5.6.0-060301
|
||||||
|
2024-06-04-17-42-00 uavcloud-demo cmii-uav-data-post-process 5.6.0 5.6.0-060401
|
||||||
|
2024-06-05-17-45-00 uavcloud-demo cmii-uav-data-post-process 5.6.0-060401 5.6.0-060501
|
||||||
|
2024-06-05-17-46-29 uavcloud-demo cmii-uav-data-post-process 5.6.0-060501 5.6.0-060401
|
||||||
|
2024-06-05-17-48-21 uavcloud-demo cmii-uav-industrial-portfolio 5.6.0-060301 5.6.0-060501
|
||||||
|
2024-06-06-13-53-12 uavcloud-demo cmii-uav-process 5.6.0 5.6.0-060601
|
||||||
|
2024-06-06-13-59-14 uavcloud-demo cmii-uav-industrial-portfolio 5.6.0-060501 5.6.0-060601
|
||||||
|
|||||||
Reference in New Issue
Block a user