[agent-operator]-无聊的更新内容
This commit is contained in:
91
agent-common/real_project/cmii_external/任一珂前端.yaml
Normal file
91
agent-common/real_project/cmii_external/任一珂前端.yaml
Normal file
@@ -0,0 +1,91 @@
|
|||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: cmii-uav-platform-renyike
|
||||||
|
namespace: uavcloud-devoperation
|
||||||
|
labels:
|
||||||
|
cmii.type: frontend
|
||||||
|
cmii.app: cmii-uav-platform-renyike
|
||||||
|
octopus.control: frontend-app-wdd
|
||||||
|
app.kubernetes.io/app-version: 5.7.0
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
strategy:
|
||||||
|
rollingUpdate:
|
||||||
|
maxUnavailable: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
cmii.type: frontend
|
||||||
|
cmii.app: cmii-uav-platform-renyike
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
cmii.type: frontend
|
||||||
|
cmii.app: cmii-uav-platform-renyike
|
||||||
|
spec:
|
||||||
|
imagePullSecrets:
|
||||||
|
- name: harborsecret
|
||||||
|
containers:
|
||||||
|
- name: cmii-uav-platform-renyike
|
||||||
|
image: harbor.cdcyy.com.cn/cmii/cmii-uav-platform-renyike:6.0.0-20241202
|
||||||
|
imagePullPolicy: Always
|
||||||
|
env:
|
||||||
|
- name: K8S_NAMESPACE
|
||||||
|
value: uavcloud-devoperation
|
||||||
|
- name: APPLICATION_NAME
|
||||||
|
value: cmii-uav-platform-renyike
|
||||||
|
ports:
|
||||||
|
- name: platform-9528
|
||||||
|
containerPort: 9528
|
||||||
|
protocol: TCP
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: "1"
|
||||||
|
memory: 1Gi
|
||||||
|
requests:
|
||||||
|
cpu: 50m
|
||||||
|
memory: 50Mi
|
||||||
|
volumeMounts:
|
||||||
|
- name: nginx-conf
|
||||||
|
mountPath: /etc/nginx/conf.d/nginx.conf
|
||||||
|
subPath: nginx.conf
|
||||||
|
- name: tenant-prefix
|
||||||
|
subPath: ingress-config.js
|
||||||
|
mountPath: /home/cmii-platform/dist/ingress-config.js
|
||||||
|
volumes:
|
||||||
|
- name: nginx-conf
|
||||||
|
configMap:
|
||||||
|
name: nginx-cm
|
||||||
|
items:
|
||||||
|
- key: nginx.conf
|
||||||
|
path: nginx.conf
|
||||||
|
- name: tenant-prefix
|
||||||
|
configMap:
|
||||||
|
name: tenant-prefix-splice
|
||||||
|
items:
|
||||||
|
- key: ingress-config.js
|
||||||
|
path: ingress-config.js
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: cmii-uav-platform-renyike
|
||||||
|
namespace: uavcloud-devoperation
|
||||||
|
labels:
|
||||||
|
cmii.type: frontend
|
||||||
|
cmii.app: cmii-uav-platform-renyike
|
||||||
|
octopus.control: frontend-app-wdd
|
||||||
|
app.kubernetes.io/version: 5.7.0
|
||||||
|
spec:
|
||||||
|
type: NodePort
|
||||||
|
selector:
|
||||||
|
cmii.type: frontend
|
||||||
|
cmii.app: cmii-uav-platform-renyike
|
||||||
|
ports:
|
||||||
|
- name: web-svc-port
|
||||||
|
port: 9528
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: 9528
|
||||||
|
nodePort: 33333
|
||||||
|
---
|
||||||
6255
agent-common/real_project/sdejpt/k8s-backend.yaml
Normal file
6255
agent-common/real_project/sdejpt/k8s-backend.yaml
Normal file
File diff suppressed because it is too large
Load Diff
560
agent-common/real_project/sdejpt/k8s-configmap.yaml
Normal file
560
agent-common/real_project/sdejpt/k8s-configmap.yaml
Normal file
@@ -0,0 +1,560 @@
|
|||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-visualization
|
||||||
|
namespace: sdejpt
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "134.80.124.6:8088",
|
||||||
|
ApplicationShortName: "visualization",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-dispatchh5
|
||||||
|
namespace: sdejpt
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "134.80.124.6:8088",
|
||||||
|
ApplicationShortName: "dispatchh5",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-detection
|
||||||
|
namespace: sdejpt
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "134.80.124.6:8088",
|
||||||
|
ApplicationShortName: "detection",
|
||||||
|
AppClientId: "APP_FDHW2VLVDWPnnOCy"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-multiterminal
|
||||||
|
namespace: sdejpt
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "134.80.124.6:8088",
|
||||||
|
ApplicationShortName: "multiterminal",
|
||||||
|
AppClientId: "APP_PvdfRRRBPL8xbIwl"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-open
|
||||||
|
namespace: sdejpt
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "134.80.124.6:8088",
|
||||||
|
ApplicationShortName: "open",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-splice
|
||||||
|
namespace: sdejpt
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "134.80.124.6:8088",
|
||||||
|
ApplicationShortName: "splice",
|
||||||
|
AppClientId: "APP_zE0M3sTRXrCIJS8Y"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-qinghaitourism
|
||||||
|
namespace: sdejpt
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "134.80.124.6:8088",
|
||||||
|
ApplicationShortName: "qinghaitourism",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-supervision
|
||||||
|
namespace: sdejpt
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "134.80.124.6:8088",
|
||||||
|
ApplicationShortName: "supervision",
|
||||||
|
AppClientId: "APP_qqSu82THfexI8PLM"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-scanner
|
||||||
|
namespace: sdejpt
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "134.80.124.6:8088",
|
||||||
|
ApplicationShortName: "scanner",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-hyper
|
||||||
|
namespace: sdejpt
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "134.80.124.6:8088",
|
||||||
|
ApplicationShortName: "hyper",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-supervisionh5
|
||||||
|
namespace: sdejpt
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "134.80.124.6:8088",
|
||||||
|
ApplicationShortName: "supervisionh5",
|
||||||
|
AppClientId: "APP_qqSu82THfexI8PLM"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-cmsportal
|
||||||
|
namespace: sdejpt
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "134.80.124.6:8088",
|
||||||
|
ApplicationShortName: "cmsportal",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-logistics
|
||||||
|
namespace: sdejpt
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "134.80.124.6:8088",
|
||||||
|
ApplicationShortName: "logistics",
|
||||||
|
AppClientId: "APP_PvdfRRRBPL8xbIwl"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-mws
|
||||||
|
namespace: sdejpt
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "134.80.124.6:8088",
|
||||||
|
ApplicationShortName: "mws",
|
||||||
|
AppClientId: "APP_uKniXPELlRERBBwK"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-seniclive
|
||||||
|
namespace: sdejpt
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "134.80.124.6:8088",
|
||||||
|
ApplicationShortName: "seniclive",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-traffic
|
||||||
|
namespace: sdejpt
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "134.80.124.6:8088",
|
||||||
|
ApplicationShortName: "traffic",
|
||||||
|
AppClientId: "APP_Jc8i2wOQ1t73QEJS"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-jiangsuwenlv
|
||||||
|
namespace: sdejpt
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "134.80.124.6:8088",
|
||||||
|
ApplicationShortName: "jiangsuwenlv",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-classification
|
||||||
|
namespace: sdejpt
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "134.80.124.6:8088",
|
||||||
|
ApplicationShortName: "classification",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-eventsh5
|
||||||
|
namespace: sdejpt
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "134.80.124.6:8088",
|
||||||
|
ApplicationShortName: "eventsh5",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-base
|
||||||
|
namespace: sdejpt
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "134.80.124.6:8088",
|
||||||
|
ApplicationShortName: "base",
|
||||||
|
AppClientId: "APP_9LY41OaKSqk2btY0"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-share
|
||||||
|
namespace: sdejpt
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "134.80.124.6:8088",
|
||||||
|
ApplicationShortName: "share",
|
||||||
|
AppClientId: "APP_4lVSVI0ZGxTssir8"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-threedsimulation
|
||||||
|
namespace: sdejpt
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "134.80.124.6:8088",
|
||||||
|
ApplicationShortName: "threedsimulation",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-smsecret
|
||||||
|
namespace: sdejpt
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "134.80.124.6:8088",
|
||||||
|
ApplicationShortName: "smsecret",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-smauth
|
||||||
|
namespace: sdejpt
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "134.80.124.6:8088",
|
||||||
|
ApplicationShortName: "smauth",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-securityh5
|
||||||
|
namespace: sdejpt
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "134.80.124.6:8088",
|
||||||
|
ApplicationShortName: "securityh5",
|
||||||
|
AppClientId: "APP_N3ImO0Ubfu9peRHD"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-hljtt
|
||||||
|
namespace: sdejpt
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "134.80.124.6:8088",
|
||||||
|
ApplicationShortName: "hljtt",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-uasms
|
||||||
|
namespace: sdejpt
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "134.80.124.6:8088",
|
||||||
|
ApplicationShortName: "uasms",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-mianyangbackend
|
||||||
|
namespace: sdejpt
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "134.80.124.6:8088",
|
||||||
|
ApplicationShortName: "mianyangbackend",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-emergency
|
||||||
|
namespace: sdejpt
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "134.80.124.6:8088",
|
||||||
|
ApplicationShortName: "emergency",
|
||||||
|
AppClientId: "APP_aGsTAY1uMZrpKdfk"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-security
|
||||||
|
namespace: sdejpt
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "134.80.124.6:8088",
|
||||||
|
ApplicationShortName: "security",
|
||||||
|
AppClientId: "APP_JUSEMc7afyWXxvE7"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-blockchain
|
||||||
|
namespace: sdejpt
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "134.80.124.6:8088",
|
||||||
|
ApplicationShortName: "blockchain",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-qingdao
|
||||||
|
namespace: sdejpt
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "134.80.124.6:8088",
|
||||||
|
ApplicationShortName: "qingdao",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-uas
|
||||||
|
namespace: sdejpt
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "134.80.124.6:8088",
|
||||||
|
ApplicationShortName: "uas",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-pilot2cloud
|
||||||
|
namespace: sdejpt
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "134.80.124.6:8088",
|
||||||
|
ApplicationShortName: "pilot2cloud",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-pangu
|
||||||
|
namespace: sdejpt
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "134.80.124.6:8088",
|
||||||
|
ApplicationShortName: "",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-ai-brain
|
||||||
|
namespace: sdejpt
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "134.80.124.6:8088",
|
||||||
|
ApplicationShortName: "ai-brain",
|
||||||
|
AppClientId: "APP_rafnuCAmBESIVYMH"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-armypeople
|
||||||
|
namespace: sdejpt
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "134.80.124.6:8088",
|
||||||
|
ApplicationShortName: "armypeople",
|
||||||
|
AppClientId: "APP_UIegse6Lfou9pO1U"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-media
|
||||||
|
namespace: sdejpt
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "134.80.124.6:8088",
|
||||||
|
ApplicationShortName: "media",
|
||||||
|
AppClientId: "APP_4AU8lbifESQO4FD6"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-oms
|
||||||
|
namespace: sdejpt
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "134.80.124.6:8088",
|
||||||
|
ApplicationShortName: "oms",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-smauth
|
||||||
|
namespace: sdejpt
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "",
|
||||||
|
CloudHOST: "134.80.124.6:8088",
|
||||||
|
ApplicationShortName: "smauth",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
309
agent-common/real_project/sdejpt/k8s-dashboard.yaml
Normal file
309
agent-common/real_project/sdejpt/k8s-dashboard.yaml
Normal file
@@ -0,0 +1,309 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: kube-system
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ServiceAccount
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
k8s-app: kubernetes-dashboard
|
||||||
|
name: kubernetes-dashboard
|
||||||
|
namespace: kube-system
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
kind: Service
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
k8s-app: kubernetes-dashboard
|
||||||
|
kubernetes.io/cluster-service: "true"
|
||||||
|
name: kubernetes-dashboard
|
||||||
|
namespace: kube-system
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- port: 443
|
||||||
|
targetPort: 8443
|
||||||
|
nodePort: 39999
|
||||||
|
selector:
|
||||||
|
k8s-app: kubernetes-dashboard
|
||||||
|
type: NodePort
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
k8s-app: kubernetes-dashboard
|
||||||
|
name: kubernetes-dashboard-certs
|
||||||
|
namespace: kube-system
|
||||||
|
type: Opaque
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
k8s-app: kubernetes-dashboard
|
||||||
|
name: kubernetes-dashboard-csrf
|
||||||
|
namespace: kube-system
|
||||||
|
type: Opaque
|
||||||
|
data:
|
||||||
|
csrf: ""
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
k8s-app: kubernetes-dashboard
|
||||||
|
name: kubernetes-dashboard-key-holder
|
||||||
|
namespace: kube-system
|
||||||
|
type: Opaque
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
k8s-app: kubernetes-dashboard
|
||||||
|
name: kubernetes-dashboard-settings
|
||||||
|
namespace: kube-system
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
kind: Role
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
k8s-app: kubernetes-dashboard
|
||||||
|
name: kubernetes-dashboard
|
||||||
|
namespace: kube-system
|
||||||
|
rules:
|
||||||
|
# Allow Dashboard to get, update and delete Dashboard exclusive secrets.
|
||||||
|
- apiGroups: [""]
|
||||||
|
resources: ["secrets"]
|
||||||
|
resourceNames: ["kubernetes-dashboard-key-holder", "kubernetes-dashboard-certs", "kubernetes-dashboard-csrf"]
|
||||||
|
verbs: ["get", "update", "delete"]
|
||||||
|
# Allow Dashboard to get and update 'kubernetes-dashboard-settings' config map.
|
||||||
|
- apiGroups: [""]
|
||||||
|
resources: ["configmaps"]
|
||||||
|
resourceNames: ["kubernetes-dashboard-settings"]
|
||||||
|
verbs: ["get", "update"]
|
||||||
|
# Allow Dashboard to get metrics.
|
||||||
|
- apiGroups: [""]
|
||||||
|
resources: ["services"]
|
||||||
|
resourceNames: ["heapster", "dashboard-metrics-scraper"]
|
||||||
|
verbs: ["proxy"]
|
||||||
|
- apiGroups: [""]
|
||||||
|
resources: ["services/proxy"]
|
||||||
|
resourceNames: ["heapster", "http:heapster:", "https:heapster:", "dashboard-metrics-scraper", "http:dashboard-metrics-scraper"]
|
||||||
|
verbs: ["get"]
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
kind: ClusterRole
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
k8s-app: kubernetes-dashboard
|
||||||
|
name: kubernetes-dashboard
|
||||||
|
rules:
|
||||||
|
# Allow Metrics Scraper to get metrics from the Metrics server
|
||||||
|
- apiGroups: ["metrics.k8s.io"]
|
||||||
|
resources: ["pods", "nodes"]
|
||||||
|
verbs: ["get", "list", "watch"]
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: RoleBinding
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
k8s-app: kubernetes-dashboard
|
||||||
|
name: kubernetes-dashboard
|
||||||
|
namespace: kube-system
|
||||||
|
roleRef:
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
kind: Role
|
||||||
|
name: kubernetes-dashboard
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: kubernetes-dashboard
|
||||||
|
namespace: kube-system
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: ClusterRoleBinding
|
||||||
|
metadata:
|
||||||
|
name: kubernetes-dashboard
|
||||||
|
roleRef:
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
kind: ClusterRole
|
||||||
|
name: kubernetes-dashboard
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: kubernetes-dashboard
|
||||||
|
namespace: kube-system
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
kind: Deployment
|
||||||
|
apiVersion: apps/v1
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
k8s-app: kubernetes-dashboard
|
||||||
|
name: kubernetes-dashboard
|
||||||
|
namespace: kube-system
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
revisionHistoryLimit: 10
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
k8s-app: kubernetes-dashboard
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
k8s-app: kubernetes-dashboard
|
||||||
|
spec:
|
||||||
|
imagePullSecrets:
|
||||||
|
- name: harborsecret
|
||||||
|
containers:
|
||||||
|
- name: kubernetes-dashboard
|
||||||
|
image: 134.80.124.7:8033/cmii/dashboard:v2.0.1
|
||||||
|
ports:
|
||||||
|
- containerPort: 8443
|
||||||
|
protocol: TCP
|
||||||
|
args:
|
||||||
|
- --auto-generate-certificates
|
||||||
|
- --namespace=kube-system
|
||||||
|
# Uncomment the following line to manually specify Kubernetes API server Host
|
||||||
|
# If not specified, Dashboard will attempt to auto discover the API server and connect
|
||||||
|
# to it. Uncomment only if the default does not work.
|
||||||
|
# - --apiserver-host=http://my-address:port
|
||||||
|
volumeMounts:
|
||||||
|
- name: kubernetes-dashboard-certs
|
||||||
|
mountPath: /certs
|
||||||
|
# Create on-disk volume to store exec logs
|
||||||
|
- mountPath: /tmp
|
||||||
|
name: tmp-volume
|
||||||
|
livenessProbe:
|
||||||
|
httpGet:
|
||||||
|
scheme: HTTPS
|
||||||
|
path: /
|
||||||
|
port: 8443
|
||||||
|
initialDelaySeconds: 30
|
||||||
|
timeoutSeconds: 30
|
||||||
|
securityContext:
|
||||||
|
allowPrivilegeEscalation: false
|
||||||
|
readOnlyRootFilesystem: true
|
||||||
|
runAsUser: 1001
|
||||||
|
runAsGroup: 2001
|
||||||
|
volumes:
|
||||||
|
- name: kubernetes-dashboard-certs
|
||||||
|
secret:
|
||||||
|
secretName: kubernetes-dashboard-certs
|
||||||
|
- name: tmp-volume
|
||||||
|
emptyDir: {}
|
||||||
|
serviceAccountName: kubernetes-dashboard
|
||||||
|
# Comment the following tolerations if Dashboard must not be deployed on master
|
||||||
|
tolerations:
|
||||||
|
- key: node-role.kubernetes.io/master
|
||||||
|
effect: NoSchedule
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
kind: Service
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
k8s-app: dashboard-metrics-scraper
|
||||||
|
name: dashboard-metrics-scraper
|
||||||
|
namespace: kube-system
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- port: 8000
|
||||||
|
targetPort: 8000
|
||||||
|
selector:
|
||||||
|
k8s-app: dashboard-metrics-scraper
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
kind: Deployment
|
||||||
|
apiVersion: apps/v1
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
k8s-app: dashboard-metrics-scraper
|
||||||
|
name: dashboard-metrics-scraper
|
||||||
|
namespace: kube-system
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
revisionHistoryLimit: 10
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
k8s-app: dashboard-metrics-scraper
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
k8s-app: dashboard-metrics-scraper
|
||||||
|
annotations:
|
||||||
|
seccomp.security.alpha.kubernetes.io/pod: 'runtime/default'
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: dashboard-metrics-scraper
|
||||||
|
image: 134.80.124.7:8033/cmii/metrics-scraper:v1.0.4
|
||||||
|
ports:
|
||||||
|
- containerPort: 8000
|
||||||
|
protocol: TCP
|
||||||
|
livenessProbe:
|
||||||
|
httpGet:
|
||||||
|
scheme: HTTP
|
||||||
|
path: /
|
||||||
|
port: 8000
|
||||||
|
initialDelaySeconds: 30
|
||||||
|
timeoutSeconds: 30
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /tmp
|
||||||
|
name: tmp-volume
|
||||||
|
securityContext:
|
||||||
|
allowPrivilegeEscalation: false
|
||||||
|
readOnlyRootFilesystem: true
|
||||||
|
runAsUser: 1001
|
||||||
|
runAsGroup: 2001
|
||||||
|
serviceAccountName: kubernetes-dashboard
|
||||||
|
# Comment the following tolerations if Dashboard must not be deployed on master
|
||||||
|
tolerations:
|
||||||
|
- key: node-role.kubernetes.io/master
|
||||||
|
effect: NoSchedule
|
||||||
|
volumes:
|
||||||
|
- name: tmp-volume
|
||||||
|
emptyDir: {}
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ServiceAccount
|
||||||
|
metadata:
|
||||||
|
name: admin-user
|
||||||
|
namespace: kube-system
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: ClusterRoleBinding
|
||||||
|
metadata:
|
||||||
|
name: admin-user
|
||||||
|
roleRef:
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
kind: ClusterRole
|
||||||
|
name: cluster-admin
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: admin-user
|
||||||
|
namespace: kube-system
|
||||||
@@ -3,20 +3,20 @@ apiVersion: v1
|
|||||||
kind: ServiceAccount
|
kind: ServiceAccount
|
||||||
metadata:
|
metadata:
|
||||||
name: helm-emqxs
|
name: helm-emqxs
|
||||||
namespace: uavcloud-devoperation
|
namespace: sdejpt
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
name: helm-emqxs-env
|
name: helm-emqxs-env
|
||||||
namespace: uavcloud-devoperation
|
namespace: sdejpt
|
||||||
labels:
|
labels:
|
||||||
cmii.type: middleware
|
cmii.type: middleware
|
||||||
cmii.app: helm-emqxs
|
cmii.app: helm-emqxs
|
||||||
cmii.emqx.architecture: cluster
|
cmii.emqx.architecture: cluster
|
||||||
helm.sh/chart: emqx-1.1.0
|
helm.sh/chart: emqx-1.1.0
|
||||||
app.kubernetes.io/managed-by: octopus-control
|
app.kubernetes.io/managed-by: octopus-control
|
||||||
app.kubernetes.io/version: 5.6.0
|
app.kubernetes.io/version: 6.0.0
|
||||||
data:
|
data:
|
||||||
EMQX_CLUSTER__K8S__APISERVER: "https://kubernetes.default.svc.cluster.local:443"
|
EMQX_CLUSTER__K8S__APISERVER: "https://kubernetes.default.svc.cluster.local:443"
|
||||||
EMQX_NAME: "helm-emqxs"
|
EMQX_NAME: "helm-emqxs"
|
||||||
@@ -24,7 +24,7 @@ data:
|
|||||||
EMQX_CLUSTER__K8S__APP_NAME: "helm-emqxs"
|
EMQX_CLUSTER__K8S__APP_NAME: "helm-emqxs"
|
||||||
EMQX_CLUSTER__K8S__SERVICE_NAME: "helm-emqxs-headless"
|
EMQX_CLUSTER__K8S__SERVICE_NAME: "helm-emqxs-headless"
|
||||||
EMQX_CLUSTER__K8S__ADDRESS_TYPE: "dns"
|
EMQX_CLUSTER__K8S__ADDRESS_TYPE: "dns"
|
||||||
EMQX_CLUSTER__K8S__namespace: "uavcloud-devoperation"
|
EMQX_CLUSTER__K8S__namespace: "sdejpt"
|
||||||
EMQX_CLUSTER__K8S__SUFFIX: "svc.cluster.local"
|
EMQX_CLUSTER__K8S__SUFFIX: "svc.cluster.local"
|
||||||
EMQX_ALLOW_ANONYMOUS: "false"
|
EMQX_ALLOW_ANONYMOUS: "false"
|
||||||
EMQX_ACL_NOMATCH: "deny"
|
EMQX_ACL_NOMATCH: "deny"
|
||||||
@@ -33,19 +33,27 @@ apiVersion: v1
|
|||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
name: helm-emqxs-cm
|
name: helm-emqxs-cm
|
||||||
namespace: uavcloud-devoperation
|
namespace: sdejpt
|
||||||
labels:
|
labels:
|
||||||
cmii.type: middleware
|
cmii.type: middleware
|
||||||
cmii.app: helm-emqxs
|
cmii.app: helm-emqxs
|
||||||
cmii.emqx.architecture: cluster
|
cmii.emqx.architecture: cluster
|
||||||
helm.sh/chart: emqx-1.1.0
|
helm.sh/chart: emqx-1.1.0
|
||||||
app.kubernetes.io/managed-by: octopus-control
|
app.kubernetes.io/managed-by: octopus-control
|
||||||
app.kubernetes.io/version: 5.6.0
|
app.kubernetes.io/version: 6.0.0
|
||||||
data:
|
data:
|
||||||
emqx_auth_username.conf: |-
|
emqx_auth_mnesia.conf: |-
|
||||||
auth.user.1.username = cmlc
|
auth.mnesia.password_hash = sha256
|
||||||
auth.user.1.password = 4YPk*DS%+5
|
|
||||||
auth.user.password_hash = sha256
|
# clientid 认证数据
|
||||||
|
# auth.client.1.clientid = admin
|
||||||
|
# auth.client.1.password = 4YPk*DS%+5
|
||||||
|
|
||||||
|
## username 认证数据
|
||||||
|
auth.user.1.username = admin
|
||||||
|
auth.user.1.password = odD8#Ve7.B
|
||||||
|
auth.user.2.username = cmlc
|
||||||
|
auth.user.2.password = odD8#Ve7.B
|
||||||
|
|
||||||
acl.conf: |-
|
acl.conf: |-
|
||||||
{allow, {user, "admin"}, pubsub, ["admin/#"]}.
|
{allow, {user, "admin"}, pubsub, ["admin/#"]}.
|
||||||
@@ -55,7 +63,8 @@ data:
|
|||||||
{allow, all}.
|
{allow, all}.
|
||||||
|
|
||||||
loaded_plugins: |-
|
loaded_plugins: |-
|
||||||
{emqx_auth_username,true}.
|
{emqx_auth_mnesia,true}.
|
||||||
|
{emqx_auth_mnesia,true}.
|
||||||
{emqx_management, true}.
|
{emqx_management, true}.
|
||||||
{emqx_recon, true}.
|
{emqx_recon, true}.
|
||||||
{emqx_retainer, false}.
|
{emqx_retainer, false}.
|
||||||
@@ -68,14 +77,14 @@ apiVersion: apps/v1
|
|||||||
kind: StatefulSet
|
kind: StatefulSet
|
||||||
metadata:
|
metadata:
|
||||||
name: helm-emqxs
|
name: helm-emqxs
|
||||||
namespace: uavcloud-devoperation
|
namespace: sdejpt
|
||||||
labels:
|
labels:
|
||||||
cmii.type: middleware
|
cmii.type: middleware
|
||||||
cmii.app: helm-emqxs
|
cmii.app: helm-emqxs
|
||||||
cmii.emqx.architecture: cluster
|
cmii.emqx.architecture: cluster
|
||||||
helm.sh/chart: emqx-1.1.0
|
helm.sh/chart: emqx-1.1.0
|
||||||
app.kubernetes.io/managed-by: octopus-control
|
app.kubernetes.io/managed-by: octopus-control
|
||||||
app.kubernetes.io/version: 5.6.0
|
app.kubernetes.io/version: 6.0.0
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
serviceName: helm-emqxs-headless
|
serviceName: helm-emqxs-headless
|
||||||
@@ -94,15 +103,15 @@ spec:
|
|||||||
cmii.emqx.architecture: cluster
|
cmii.emqx.architecture: cluster
|
||||||
helm.sh/chart: emqx-1.1.0
|
helm.sh/chart: emqx-1.1.0
|
||||||
app.kubernetes.io/managed-by: octopus-control
|
app.kubernetes.io/managed-by: octopus-control
|
||||||
app.kubernetes.io/version: 5.6.0
|
app.kubernetes.io/version: 6.0.0
|
||||||
spec:
|
spec:
|
||||||
affinity: { }
|
affinity: {}
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: harborsecret
|
- name: harborsecret
|
||||||
serviceAccountName: helm-emqxs
|
serviceAccountName: helm-emqxs
|
||||||
containers:
|
containers:
|
||||||
- name: helm-emqxs
|
- name: helm-emqxs
|
||||||
image: harbor.cdcyy.com.cn/cmii/emqx:5.5.1
|
image: 134.80.124.7:8033/cmii/emqx:4.4.19
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
ports:
|
ports:
|
||||||
- name: mqtt
|
- name: mqtt
|
||||||
@@ -122,19 +131,19 @@ spec:
|
|||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: helm-emqxs-env
|
name: helm-emqxs-env
|
||||||
resources: { }
|
resources: {}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: emqx-data
|
- name: emqx-data
|
||||||
mountPath: "/opt/emqx/data/mnesia"
|
mountPath: "/opt/emqx/data/mnesia"
|
||||||
readOnly: false
|
readOnly: false
|
||||||
- name: helm-emqxs-cm
|
- name: helm-emqxs-cm
|
||||||
mountPath: "/opt/emqx/etc/plugins/emqx_auth_username.conf"
|
mountPath: "/opt/emqx/etc/plugins/emqx_auth_mnesia.conf"
|
||||||
subPath: emqx_auth_username.conf
|
subPath: emqx_auth_mnesia.conf
|
||||||
readOnly: false
|
readOnly: false
|
||||||
# - name: helm-emqxs-cm
|
# - name: helm-emqxs-cm
|
||||||
# mountPath: "/opt/emqx/etc/acl.conf"
|
# mountPath: "/opt/emqx/etc/acl.conf"
|
||||||
# subPath: "acl.conf"
|
# subPath: "acl.conf"
|
||||||
# readOnly: false
|
# readOnly: false
|
||||||
- name: helm-emqxs-cm
|
- name: helm-emqxs-cm
|
||||||
mountPath: "/opt/emqx/data/loaded_plugins"
|
mountPath: "/opt/emqx/data/loaded_plugins"
|
||||||
subPath: loaded_plugins
|
subPath: loaded_plugins
|
||||||
@@ -147,8 +156,8 @@ spec:
|
|||||||
configMap:
|
configMap:
|
||||||
name: helm-emqxs-cm
|
name: helm-emqxs-cm
|
||||||
items:
|
items:
|
||||||
- key: emqx_auth_username.conf
|
- key: emqx_auth_mnesia.conf
|
||||||
path: emqx_auth_username.conf
|
path: emqx_auth_mnesia.conf
|
||||||
- key: acl.conf
|
- key: acl.conf
|
||||||
path: acl.conf
|
path: acl.conf
|
||||||
- key: loaded_plugins
|
- key: loaded_plugins
|
||||||
@@ -158,7 +167,7 @@ kind: Role
|
|||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
metadata:
|
metadata:
|
||||||
name: helm-emqxs
|
name: helm-emqxs
|
||||||
namespace: uavcloud-devoperation
|
namespace: sdejpt
|
||||||
rules:
|
rules:
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- ""
|
- ""
|
||||||
@@ -173,11 +182,11 @@ kind: RoleBinding
|
|||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
metadata:
|
metadata:
|
||||||
name: helm-emqxs
|
name: helm-emqxs
|
||||||
namespace: uavcloud-devoperation
|
namespace: sdejpt
|
||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: helm-emqxs
|
name: helm-emqxs
|
||||||
namespace: uavcloud-devoperation
|
namespace: sdejpt
|
||||||
roleRef:
|
roleRef:
|
||||||
kind: Role
|
kind: Role
|
||||||
name: helm-emqxs
|
name: helm-emqxs
|
||||||
@@ -187,14 +196,14 @@ apiVersion: v1
|
|||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: helm-emqxs
|
name: helm-emqxs
|
||||||
namespace: uavcloud-devoperation
|
namespace: sdejpt
|
||||||
labels:
|
labels:
|
||||||
cmii.type: middleware
|
cmii.type: middleware
|
||||||
cmii.app: helm-emqxs
|
cmii.app: helm-emqxs
|
||||||
cmii.emqx.architecture: cluster
|
cmii.emqx.architecture: cluster
|
||||||
helm.sh/chart: emqx-1.1.0
|
helm.sh/chart: emqx-1.1.0
|
||||||
app.kubernetes.io/managed-by: octopus-control
|
app.kubernetes.io/managed-by: octopus-control
|
||||||
app.kubernetes.io/version: 5.6.0
|
app.kubernetes.io/version: 6.0.0
|
||||||
spec:
|
spec:
|
||||||
type: NodePort
|
type: NodePort
|
||||||
selector:
|
selector:
|
||||||
@@ -205,28 +214,28 @@ spec:
|
|||||||
- port: 1883
|
- port: 1883
|
||||||
name: mqtt
|
name: mqtt
|
||||||
targetPort: 1883
|
targetPort: 1883
|
||||||
nodePort: 31885
|
nodePort: 31883
|
||||||
- port: 18083
|
- port: 18083
|
||||||
name: dashboard
|
name: dashboard
|
||||||
targetPort: 18083
|
targetPort: 18083
|
||||||
nodePort: 38087
|
nodePort: 38085
|
||||||
- port: 8083
|
- port: 8083
|
||||||
name: mqtt-websocket
|
name: mqtt-websocket
|
||||||
targetPort: 8083
|
targetPort: 8083
|
||||||
nodePort: 38085
|
nodePort: 38083
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: helm-emqxs-headless
|
name: helm-emqxs-headless
|
||||||
namespace: uavcloud-devoperation
|
namespace: sdejpt
|
||||||
labels:
|
labels:
|
||||||
cmii.type: middleware
|
cmii.type: middleware
|
||||||
cmii.app: helm-emqxs
|
cmii.app: helm-emqxs
|
||||||
cmii.emqx.architecture: cluster
|
cmii.emqx.architecture: cluster
|
||||||
helm.sh/chart: emqx-1.1.0
|
helm.sh/chart: emqx-1.1.0
|
||||||
app.kubernetes.io/managed-by: octopus-control
|
app.kubernetes.io/managed-by: octopus-control
|
||||||
app.kubernetes.io/version: 5.6.0
|
app.kubernetes.io/version: 6.0.0
|
||||||
spec:
|
spec:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
clusterIP: None
|
clusterIP: None
|
||||||
2695
agent-common/real_project/sdejpt/k8s-frontend.yaml
Normal file
2695
agent-common/real_project/sdejpt/k8s-frontend.yaml
Normal file
File diff suppressed because it is too large
Load Diff
696
agent-common/real_project/sdejpt/k8s-ingress.yaml
Normal file
696
agent-common/real_project/sdejpt/k8s-ingress.yaml
Normal file
@@ -0,0 +1,696 @@
|
|||||||
|
---
|
||||||
|
apiVersion: networking.k8s.io/v1beta1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: frontend-applications-ingress
|
||||||
|
namespace: sdejpt
|
||||||
|
labels:
|
||||||
|
type: frontend
|
||||||
|
octopus.control: all-ingress-config-wdd
|
||||||
|
app.kubernetes.io/managed-by: octopus-control
|
||||||
|
app.kubernetes.io/version: 6.0.0
|
||||||
|
annotations:
|
||||||
|
kubernetes.io/ingress.class: "nginx"
|
||||||
|
nginx.ingress.kubernetes.io/enable-cors: "true"
|
||||||
|
nginx.ingress.kubernetes.io/rewrite-target: /$1
|
||||||
|
nginx.ingress.kubernetes.io/configuration-snippet: |
|
||||||
|
rewrite ^(/supervision)$ $1/ redirect;
|
||||||
|
rewrite ^(/supervisionh5)$ $1/ redirect;
|
||||||
|
rewrite ^(/pangu)$ $1/ redirect;
|
||||||
|
rewrite ^(/ai-brain)$ $1/ redirect;
|
||||||
|
rewrite ^(/armypeople)$ $1/ redirect;
|
||||||
|
rewrite ^(/base)$ $1/ redirect;
|
||||||
|
rewrite ^(/blockchain)$ $1/ redirect;
|
||||||
|
rewrite ^(/classification)$ $1/ redirect;
|
||||||
|
rewrite ^(/cmsportal)$ $1/ redirect;
|
||||||
|
rewrite ^(/detection)$ $1/ redirect;
|
||||||
|
rewrite ^(/dispatchh5)$ $1/ redirect;
|
||||||
|
rewrite ^(/emergency)$ $1/ redirect;
|
||||||
|
rewrite ^(/eventsh5)$ $1/ redirect;
|
||||||
|
rewrite ^(/hljtt)$ $1/ redirect;
|
||||||
|
rewrite ^(/hyper)$ $1/ redirect;
|
||||||
|
rewrite ^(/jiangsuwenlv)$ $1/ redirect;
|
||||||
|
rewrite ^(/logistics)$ $1/ redirect;
|
||||||
|
rewrite ^(/media)$ $1/ redirect;
|
||||||
|
rewrite ^(/mianyangbackend)$ $1/ redirect;
|
||||||
|
rewrite ^(/multiterminal)$ $1/ redirect;
|
||||||
|
rewrite ^(/mws)$ $1/ redirect;
|
||||||
|
rewrite ^(/oms)$ $1/ redirect;
|
||||||
|
rewrite ^(/open)$ $1/ redirect;
|
||||||
|
rewrite ^(/pilot2cloud)$ $1/ redirect;
|
||||||
|
rewrite ^(/qingdao)$ $1/ redirect;
|
||||||
|
rewrite ^(/qinghaitourism)$ $1/ redirect;
|
||||||
|
rewrite ^(/scanner)$ $1/ redirect;
|
||||||
|
rewrite ^(/security)$ $1/ redirect;
|
||||||
|
rewrite ^(/securityh5)$ $1/ redirect;
|
||||||
|
rewrite ^(/seniclive)$ $1/ redirect;
|
||||||
|
rewrite ^(/share)$ $1/ redirect;
|
||||||
|
rewrite ^(/smauth)$ $1/ redirect;
|
||||||
|
rewrite ^(/smsecret)$ $1/ redirect;
|
||||||
|
rewrite ^(/splice)$ $1/ redirect;
|
||||||
|
rewrite ^(/threedsimulation)$ $1/ redirect;
|
||||||
|
rewrite ^(/traffic)$ $1/ redirect;
|
||||||
|
rewrite ^(/uas)$ $1/ redirect;
|
||||||
|
rewrite ^(/uasms)$ $1/ redirect;
|
||||||
|
rewrite ^(/visualization)$ $1/ redirect;
|
||||||
|
rewrite ^(/smauth)$ $1/ redirect;
|
||||||
|
spec:
|
||||||
|
rules:
|
||||||
|
- host: fake-domain.sdejpt.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform
|
||||||
|
servicePort: 9528
|
||||||
|
- path: /supervision/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-suav-platform-supervision
|
||||||
|
servicePort: 9528
|
||||||
|
- path: /supervisionh5/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-suav-platform-supervisionh5
|
||||||
|
servicePort: 9528
|
||||||
|
- path: /pangu/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform
|
||||||
|
servicePort: 9528
|
||||||
|
- path: /ai-brain/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-ai-brain
|
||||||
|
servicePort: 9528
|
||||||
|
- path: /armypeople/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-armypeople
|
||||||
|
servicePort: 9528
|
||||||
|
- path: /base/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-base
|
||||||
|
servicePort: 9528
|
||||||
|
- path: /blockchain/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-blockchain
|
||||||
|
servicePort: 9528
|
||||||
|
- path: /classification/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-classification
|
||||||
|
servicePort: 9528
|
||||||
|
- path: /cmsportal/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-cms-portal
|
||||||
|
servicePort: 9528
|
||||||
|
- path: /detection/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-detection
|
||||||
|
servicePort: 9528
|
||||||
|
- path: /dispatchh5/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-dispatchh5
|
||||||
|
servicePort: 9528
|
||||||
|
- path: /emergency/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-emergency-rescue
|
||||||
|
servicePort: 9528
|
||||||
|
- path: /eventsh5/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-eventsh5
|
||||||
|
servicePort: 9528
|
||||||
|
- path: /hljtt/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-hljtt
|
||||||
|
servicePort: 9528
|
||||||
|
- path: /hyper/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-hyperspectral
|
||||||
|
servicePort: 9528
|
||||||
|
- path: /jiangsuwenlv/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-jiangsuwenlv
|
||||||
|
servicePort: 9528
|
||||||
|
- path: /logistics/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-logistics
|
||||||
|
servicePort: 9528
|
||||||
|
- path: /media/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-media
|
||||||
|
servicePort: 9528
|
||||||
|
- path: /mianyangbackend/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-mianyangbackend
|
||||||
|
servicePort: 9528
|
||||||
|
- path: /multiterminal/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-multiterminal
|
||||||
|
servicePort: 9528
|
||||||
|
- path: /mws/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-mws
|
||||||
|
servicePort: 9528
|
||||||
|
- path: /oms/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-oms
|
||||||
|
servicePort: 9528
|
||||||
|
- path: /open/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-open
|
||||||
|
servicePort: 9528
|
||||||
|
- path: /pilot2cloud/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-pilot2-to-cloud
|
||||||
|
servicePort: 9528
|
||||||
|
- path: /qingdao/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-qingdao
|
||||||
|
servicePort: 9528
|
||||||
|
- path: /qinghaitourism/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-qinghaitourism
|
||||||
|
servicePort: 9528
|
||||||
|
- path: /scanner/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-scanner
|
||||||
|
servicePort: 9528
|
||||||
|
- path: /security/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-security
|
||||||
|
servicePort: 9528
|
||||||
|
- path: /securityh5/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-securityh5
|
||||||
|
servicePort: 9528
|
||||||
|
- path: /seniclive/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-seniclive
|
||||||
|
servicePort: 9528
|
||||||
|
- path: /share/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-share
|
||||||
|
servicePort: 9528
|
||||||
|
- path: /smauth/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-smauth
|
||||||
|
servicePort: 9528
|
||||||
|
- path: /smsecret/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-smsecret
|
||||||
|
servicePort: 9528
|
||||||
|
- path: /splice/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-splice
|
||||||
|
servicePort: 9528
|
||||||
|
- path: /threedsimulation/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-threedsimulation
|
||||||
|
servicePort: 9528
|
||||||
|
- path: /traffic/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-traffic
|
||||||
|
servicePort: 9528
|
||||||
|
- path: /uas/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-uas
|
||||||
|
servicePort: 9528
|
||||||
|
- path: /uasms/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-uasms
|
||||||
|
servicePort: 9528
|
||||||
|
- path: /visualization/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-visualization
|
||||||
|
servicePort: 9528
|
||||||
|
- path: /smauth/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: uavms-security-center-web
|
||||||
|
servicePort: 9528
|
||||||
|
---
|
||||||
|
apiVersion: networking.k8s.io/v1beta1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: backend-applications-ingress
|
||||||
|
namespace: sdejpt
|
||||||
|
labels:
|
||||||
|
type: backend
|
||||||
|
octopus.control: all-ingress-config-wdd
|
||||||
|
app.kubernetes.io/managed-by: octopus-control
|
||||||
|
app.kubernetes.io/version: 6.0.0
|
||||||
|
annotations:
|
||||||
|
kubernetes.io/ingress.class: "nginx"
|
||||||
|
nginx.ingress.kubernetes.io/enable-cors: "true"
|
||||||
|
spec:
|
||||||
|
rules:
|
||||||
|
- host: cmii-admin-data.uavcloud-sdejpt.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-admin-data
|
||||||
|
servicePort: 8080
|
||||||
|
- host: cmii-admin-gateway.uavcloud-sdejpt.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-admin-gateway
|
||||||
|
servicePort: 8080
|
||||||
|
- host: cmii-admin-user.uavcloud-sdejpt.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-admin-user
|
||||||
|
servicePort: 8080
|
||||||
|
- host: cmii-app-release.uavcloud-sdejpt.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-app-release
|
||||||
|
servicePort: 8080
|
||||||
|
- host: cmii-open-gateway.uavcloud-sdejpt.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-open-gateway
|
||||||
|
servicePort: 8080
|
||||||
|
- host: cmii-suav-supervision.uavcloud-sdejpt.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-suav-supervision
|
||||||
|
servicePort: 8080
|
||||||
|
- host: cmii-uas-gateway.uavcloud-sdejpt.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uas-gateway
|
||||||
|
servicePort: 8080
|
||||||
|
- host: cmii-uas-lifecycle.uavcloud-sdejpt.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uas-lifecycle
|
||||||
|
servicePort: 8080
|
||||||
|
- host: cmii-uav-airspace.uavcloud-sdejpt.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-airspace
|
||||||
|
servicePort: 8080
|
||||||
|
- host: cmii-uav-alarm.uavcloud-sdejpt.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-alarm
|
||||||
|
servicePort: 8080
|
||||||
|
- host: cmii-uav-autowaypoint.uavcloud-sdejpt.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-autowaypoint
|
||||||
|
servicePort: 8080
|
||||||
|
- host: cmii-uav-brain.uavcloud-sdejpt.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-brain
|
||||||
|
servicePort: 8080
|
||||||
|
- host: cmii-uav-bridge.uavcloud-sdejpt.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-bridge
|
||||||
|
servicePort: 8080
|
||||||
|
- host: cmii-uav-cloud-live.uavcloud-sdejpt.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-cloud-live
|
||||||
|
servicePort: 8080
|
||||||
|
- host: cmii-uav-clusters.uavcloud-sdejpt.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-clusters
|
||||||
|
servicePort: 8080
|
||||||
|
- host: cmii-uav-cms.uavcloud-sdejpt.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-cms
|
||||||
|
servicePort: 8080
|
||||||
|
- host: cmii-uav-data-post-process.uavcloud-sdejpt.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-data-post-process
|
||||||
|
servicePort: 8080
|
||||||
|
- host: cmii-uav-depotautoreturn.uavcloud-sdejpt.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-depotautoreturn
|
||||||
|
servicePort: 8080
|
||||||
|
- host: cmii-uav-developer.uavcloud-sdejpt.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-developer
|
||||||
|
servicePort: 8080
|
||||||
|
- host: cmii-uav-device.uavcloud-sdejpt.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-device
|
||||||
|
servicePort: 8080
|
||||||
|
- host: cmii-uav-emergency.uavcloud-sdejpt.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-emergency
|
||||||
|
servicePort: 8080
|
||||||
|
- host: cmii-uav-fwdd.uavcloud-sdejpt.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-fwdd
|
||||||
|
servicePort: 8080
|
||||||
|
- host: cmii-uav-gateway.uavcloud-sdejpt.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-gateway
|
||||||
|
servicePort: 8080
|
||||||
|
- host: cmii-uav-gis-server.uavcloud-sdejpt.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-gis-server
|
||||||
|
servicePort: 8080
|
||||||
|
- host: cmii-uav-grid-datasource.uavcloud-sdejpt.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-grid-datasource
|
||||||
|
servicePort: 8080
|
||||||
|
- host: cmii-uav-grid-engine.uavcloud-sdejpt.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-grid-engine
|
||||||
|
servicePort: 8080
|
||||||
|
- host: cmii-uav-grid-manage.uavcloud-sdejpt.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-grid-manage
|
||||||
|
servicePort: 8080
|
||||||
|
- host: cmii-uav-industrial-portfolio.uavcloud-sdejpt.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-industrial-portfolio
|
||||||
|
servicePort: 8080
|
||||||
|
- host: cmii-uav-integration.uavcloud-sdejpt.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-integration
|
||||||
|
servicePort: 8080
|
||||||
|
- host: cmii-uav-iot-dispatcher.uavcloud-sdejpt.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-iot-dispatcher
|
||||||
|
servicePort: 8080
|
||||||
|
- host: cmii-uav-kpi-monitor.uavcloud-sdejpt.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-kpi-monitor
|
||||||
|
servicePort: 8080
|
||||||
|
- host: cmii-uav-logger.uavcloud-sdejpt.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-logger
|
||||||
|
servicePort: 8080
|
||||||
|
- host: cmii-uav-material-warehouse.uavcloud-sdejpt.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-material-warehouse
|
||||||
|
servicePort: 8080
|
||||||
|
- host: cmii-uav-mission.uavcloud-sdejpt.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-mission
|
||||||
|
servicePort: 8080
|
||||||
|
- host: cmii-uav-mqtthandler.uavcloud-sdejpt.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-mqtthandler
|
||||||
|
servicePort: 8080
|
||||||
|
- host: cmii-uav-multilink.uavcloud-sdejpt.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-multilink
|
||||||
|
servicePort: 8080
|
||||||
|
- host: cmii-uav-notice.uavcloud-sdejpt.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-notice
|
||||||
|
servicePort: 8080
|
||||||
|
- host: cmii-uav-oauth.uavcloud-sdejpt.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-oauth
|
||||||
|
servicePort: 8080
|
||||||
|
- host: cmii-uav-process.uavcloud-sdejpt.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-process
|
||||||
|
servicePort: 8080
|
||||||
|
- host: cmii-uav-sense-adapter.uavcloud-sdejpt.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-sense-adapter
|
||||||
|
servicePort: 8080
|
||||||
|
- host: cmii-uav-surveillance.uavcloud-sdejpt.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-surveillance
|
||||||
|
servicePort: 8080
|
||||||
|
- host: cmii-uav-sync.uavcloud-sdejpt.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-sync
|
||||||
|
servicePort: 8080
|
||||||
|
- host: cmii-uav-threedsimulation.uavcloud-sdejpt.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-threedsimulation
|
||||||
|
servicePort: 8080
|
||||||
|
- host: cmii-uav-tower.uavcloud-sdejpt.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-tower
|
||||||
|
servicePort: 8080
|
||||||
|
- host: cmii-uav-user.uavcloud-sdejpt.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-user
|
||||||
|
servicePort: 8080
|
||||||
|
- host: cmii-uav-waypoint.uavcloud-sdejpt.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-waypoint
|
||||||
|
servicePort: 8080
|
||||||
|
- host: uavms-security-center.uavcloud-sdejpt.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: uavms-security-center
|
||||||
|
servicePort: 8080
|
||||||
|
---
|
||||||
|
apiVersion: networking.k8s.io/v1beta1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: all-gateways-ingress
|
||||||
|
namespace: sdejpt
|
||||||
|
labels:
|
||||||
|
type: api-gateway
|
||||||
|
octopus.control: all-ingress-config-1.1.0
|
||||||
|
app.kubernetes.io/managed-by: octopus-control
|
||||||
|
app.kubernetes.io/version: 6.0.0
|
||||||
|
annotations:
|
||||||
|
kubernetes.io/ingress.class: "nginx"
|
||||||
|
nginx.ingress.kubernetes.io/enable-cors: "true"
|
||||||
|
nginx.ingress.kubernetes.io/rewrite-target: /$1
|
||||||
|
nginx.ingress.kubernetes.io/configuration-snippet: |
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection "Upgrade";
|
||||||
|
spec:
|
||||||
|
rules:
|
||||||
|
- host: fake-domain.sdejpt.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /oms/api/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-admin-gateway
|
||||||
|
servicePort: 8080
|
||||||
|
- path: /open/api/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-open-gateway
|
||||||
|
servicePort: 8080
|
||||||
|
- path: /api/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-gateway
|
||||||
|
servicePort: 8080
|
||||||
@@ -3,15 +3,15 @@ apiVersion: v1
|
|||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: helm-mongo
|
name: helm-mongo
|
||||||
namespace: uavcloud-devoperation
|
namespace: sdejpt
|
||||||
labels:
|
labels:
|
||||||
cmii.app: helm-mongo
|
cmii.app: helm-mongo
|
||||||
cmii.type: middleware
|
cmii.type: middleware
|
||||||
helm.sh/chart: mongo-1.1.0
|
helm.sh/chart: mongo-1.1.0
|
||||||
app.kubernetes.io/managed-by: octopus-control
|
app.kubernetes.io/managed-by: octopus-control
|
||||||
app.kubernetes.io/version: 5.6.0
|
app.kubernetes.io/version: 6.0.0
|
||||||
spec:
|
spec:
|
||||||
type: ClusterIP
|
type: NodePort
|
||||||
selector:
|
selector:
|
||||||
cmii.app: helm-mongo
|
cmii.app: helm-mongo
|
||||||
cmii.type: middleware
|
cmii.type: middleware
|
||||||
@@ -19,18 +19,19 @@ spec:
|
|||||||
- port: 27017
|
- port: 27017
|
||||||
name: server-27017
|
name: server-27017
|
||||||
targetPort: 27017
|
targetPort: 27017
|
||||||
|
nodePort: 37017
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: StatefulSet
|
kind: StatefulSet
|
||||||
metadata:
|
metadata:
|
||||||
name: helm-mongo
|
name: helm-mongo
|
||||||
namespace: uavcloud-devoperation
|
namespace: sdejpt
|
||||||
labels:
|
labels:
|
||||||
cmii.app: helm-mongo
|
cmii.app: helm-mongo
|
||||||
cmii.type: middleware
|
cmii.type: middleware
|
||||||
helm.sh/chart: mongo-1.1.0
|
helm.sh/chart: mongo-1.1.0
|
||||||
app.kubernetes.io/managed-by: octopus-control
|
app.kubernetes.io/managed-by: octopus-control
|
||||||
app.kubernetes.io/version: 5.6.0
|
app.kubernetes.io/version: 6.0.0
|
||||||
spec:
|
spec:
|
||||||
serviceName: helm-mongo
|
serviceName: helm-mongo
|
||||||
replicas: 1
|
replicas: 1
|
||||||
@@ -45,17 +46,17 @@ spec:
|
|||||||
cmii.type: middleware
|
cmii.type: middleware
|
||||||
helm.sh/chart: mongo-1.1.0
|
helm.sh/chart: mongo-1.1.0
|
||||||
app.kubernetes.io/managed-by: octopus-control
|
app.kubernetes.io/managed-by: octopus-control
|
||||||
app.kubernetes.io/version: 5.6.0
|
app.kubernetes.io/version: 6.0.0
|
||||||
annotations:
|
annotations:
|
||||||
pod.alpha.kubernetes.io/initialized: "true"
|
pod.alpha.kubernetes.io/initialized: "true"
|
||||||
spec:
|
spec:
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: harborsecret
|
- name: harborsecret
|
||||||
affinity: { }
|
affinity: {}
|
||||||
containers:
|
containers:
|
||||||
- name: helm-mongo
|
- name: helm-mongo
|
||||||
image: harbor.cdcyy.com.cn/cmii/mongo:5.0
|
image: 134.80.124.7:8033/cmii/mongo:5.0
|
||||||
resources: { }
|
resources: {}
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 27017
|
- containerPort: 27017
|
||||||
name: mongo27017
|
name: mongo27017
|
||||||
@@ -64,7 +65,7 @@ spec:
|
|||||||
- name: MONGO_INITDB_ROOT_USERNAME
|
- name: MONGO_INITDB_ROOT_USERNAME
|
||||||
value: cmlc
|
value: cmlc
|
||||||
- name: MONGO_INITDB_ROOT_PASSWORD
|
- name: MONGO_INITDB_ROOT_PASSWORD
|
||||||
value: 7(#dD3zcz8
|
value: REdPza8#oVlt
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: mongo-data
|
- name: mongo-data
|
||||||
mountPath: /data/db
|
mountPath: /data/db
|
||||||
@@ -3,13 +3,13 @@ apiVersion: v1
|
|||||||
kind: ServiceAccount
|
kind: ServiceAccount
|
||||||
metadata:
|
metadata:
|
||||||
name: helm-mysql
|
name: helm-mysql
|
||||||
namespace: uavcloud-devoperation
|
namespace: sdejpt
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: mysql-db
|
app.kubernetes.io/name: mysql-db
|
||||||
octopus.control: mysql-db-wdd
|
octopus.control: mysql-db-wdd
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
app.kubernetes.io/release: sdejpt
|
||||||
app.kubernetes.io/managed-by: octopus
|
app.kubernetes.io/managed-by: octopus
|
||||||
annotations: { }
|
annotations: {}
|
||||||
secrets:
|
secrets:
|
||||||
- name: helm-mysql
|
- name: helm-mysql
|
||||||
---
|
---
|
||||||
@@ -17,26 +17,26 @@ apiVersion: v1
|
|||||||
kind: Secret
|
kind: Secret
|
||||||
metadata:
|
metadata:
|
||||||
name: helm-mysql
|
name: helm-mysql
|
||||||
namespace: uavcloud-devoperation
|
namespace: sdejpt
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: mysql-db
|
app.kubernetes.io/name: mysql-db
|
||||||
octopus.control: mysql-db-wdd
|
octopus.control: mysql-db-wdd
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
app.kubernetes.io/release: sdejpt
|
||||||
app.kubernetes.io/managed-by: octopus
|
app.kubernetes.io/managed-by: octopus
|
||||||
type: Opaque
|
type: Opaque
|
||||||
data:
|
data:
|
||||||
mysql-root-password: "R3d1YmM2Q3hSTQ=="
|
mysql-root-password: "UXpmWFFoZDNiUQ=="
|
||||||
mysql-password: "S0F0cm5PckFKNw=="
|
mysql-password: "S0F0cm5PckFKNw=="
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
name: helm-mysql
|
name: helm-mysql
|
||||||
namespace: uavcloud-devoperation
|
namespace: sdejpt
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: mysql-db
|
app.kubernetes.io/name: mysql-db
|
||||||
octopus.control: mysql-db-wdd
|
octopus.control: mysql-db-wdd
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
app.kubernetes.io/release: sdejpt
|
||||||
app.kubernetes.io/managed-by: octopus
|
app.kubernetes.io/managed-by: octopus
|
||||||
app.kubernetes.io/component: primary
|
app.kubernetes.io/component: primary
|
||||||
data:
|
data:
|
||||||
@@ -152,52 +152,39 @@ apiVersion: v1
|
|||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
name: helm-mysql-init-scripts
|
name: helm-mysql-init-scripts
|
||||||
namespace: uavcloud-devoperation
|
namespace: sdejpt
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: mysql-db
|
app.kubernetes.io/name: mysql-db
|
||||||
octopus.control: mysql-db-wdd
|
octopus.control: mysql-db-wdd
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
app.kubernetes.io/release: sdejpt
|
||||||
app.kubernetes.io/managed-by: octopus
|
app.kubernetes.io/managed-by: octopus
|
||||||
app.kubernetes.io/component: primary
|
app.kubernetes.io/component: primary
|
||||||
data:
|
data:
|
||||||
create_users_grants_core.sql: |-
|
create_users_grants_core.sql: |-
|
||||||
create
|
create user zyly@'%' identified by 'Cmii@451315';
|
||||||
user zyly@'%' identified by 'Cmii@451315';
|
|
||||||
grant select on *.* to zyly@'%';
|
grant select on *.* to zyly@'%';
|
||||||
create
|
create user zyly_qc@'%' identified by 'Uh)E_owCyb16';
|
||||||
user zyly_qc@'%' identified by 'Uh)E_owCyb16';
|
grant all on *.* to zyly_qc@'%';
|
||||||
grant all
|
create user k8s_admin@'%' identified by 'fP#UaH6qQ3)8';
|
||||||
on *.* to zyly_qc@'%';
|
grant all on *.* to k8s_admin@'%';
|
||||||
create
|
create user audit_dba@'%' identified by 'PjCzqiBmJaTpgkoYXynH';
|
||||||
user k8s_admin@'%' identified by 'VFJncwy58^Zm';
|
grant all on *.* to audit_dba@'%';
|
||||||
grant all
|
create user db_backup@'%' identified by 'RU5Pu(4FGdT9';
|
||||||
on *.* to k8s_admin@'%';
|
GRANT SELECT, RELOAD, PROCESS, LOCK TABLES, REPLICATION CLIENT, EVENT on *.* to db_backup@'%';
|
||||||
create
|
create user monitor@'%' identified by 'PL3#nGtrWbf-';
|
||||||
user audit_dba@'%' identified by 'PjCzqiBmJaTpgkoYXynH';
|
grant REPLICATION CLIENT on *.* to monitor@'%';
|
||||||
grant all
|
flush privileges;
|
||||||
on *.* to audit_dba@'%';
|
|
||||||
create
|
|
||||||
user db_backup@'%' identified by 'RU5Pu(4FGdT9';
|
|
||||||
GRANT
|
|
||||||
SELECT, RELOAD, PROCESS, LOCK TABLES, REPLICATION CLIENT, EVENT
|
|
||||||
on *.* to db_backup@'%';
|
|
||||||
create
|
|
||||||
user monitor@'%' identified by 'PL3#nGtrWbf-';
|
|
||||||
grant REPLICATION
|
|
||||||
CLIENT on *.* to monitor@'%';
|
|
||||||
flush
|
|
||||||
privileges;
|
|
||||||
---
|
---
|
||||||
kind: Service
|
kind: Service
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: cmii-mysql
|
name: cmii-mysql
|
||||||
namespace: uavcloud-devoperation
|
namespace: sdejpt
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/component: primary
|
app.kubernetes.io/component: primary
|
||||||
app.kubernetes.io/managed-by: octopus
|
app.kubernetes.io/managed-by: octopus
|
||||||
app.kubernetes.io/name: mysql-db
|
app.kubernetes.io/name: mysql-db
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
app.kubernetes.io/release: sdejpt
|
||||||
cmii.app: mysql
|
cmii.app: mysql
|
||||||
cmii.type: middleware
|
cmii.type: middleware
|
||||||
octopus.control: mysql-db-wdd
|
octopus.control: mysql-db-wdd
|
||||||
@@ -210,7 +197,7 @@ spec:
|
|||||||
selector:
|
selector:
|
||||||
app.kubernetes.io/component: primary
|
app.kubernetes.io/component: primary
|
||||||
app.kubernetes.io/name: mysql-db
|
app.kubernetes.io/name: mysql-db
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
app.kubernetes.io/release: sdejpt
|
||||||
cmii.app: mysql
|
cmii.app: mysql
|
||||||
cmii.type: middleware
|
cmii.type: middleware
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
@@ -219,16 +206,16 @@ apiVersion: v1
|
|||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: helm-mysql-headless
|
name: helm-mysql-headless
|
||||||
namespace: uavcloud-devoperation
|
namespace: sdejpt
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: mysql-db
|
app.kubernetes.io/name: mysql-db
|
||||||
octopus.control: mysql-db-wdd
|
octopus.control: mysql-db-wdd
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
app.kubernetes.io/release: sdejpt
|
||||||
app.kubernetes.io/managed-by: octopus
|
app.kubernetes.io/managed-by: octopus
|
||||||
cmii.type: middleware
|
cmii.type: middleware
|
||||||
cmii.app: mysql
|
cmii.app: mysql
|
||||||
app.kubernetes.io/component: primary
|
app.kubernetes.io/component: primary
|
||||||
annotations: { }
|
annotations: {}
|
||||||
spec:
|
spec:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
clusterIP: None
|
clusterIP: None
|
||||||
@@ -239,7 +226,7 @@ spec:
|
|||||||
targetPort: mysql
|
targetPort: mysql
|
||||||
selector:
|
selector:
|
||||||
app.kubernetes.io/name: mysql-db
|
app.kubernetes.io/name: mysql-db
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
app.kubernetes.io/release: sdejpt
|
||||||
cmii.type: middleware
|
cmii.type: middleware
|
||||||
cmii.app: mysql
|
cmii.app: mysql
|
||||||
app.kubernetes.io/component: primary
|
app.kubernetes.io/component: primary
|
||||||
@@ -248,16 +235,16 @@ apiVersion: v1
|
|||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: helm-mysql
|
name: helm-mysql
|
||||||
namespace: uavcloud-devoperation
|
namespace: sdejpt
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: mysql-db
|
app.kubernetes.io/name: mysql-db
|
||||||
octopus.control: mysql-db-wdd
|
octopus.control: mysql-db-wdd
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
app.kubernetes.io/release: sdejpt
|
||||||
app.kubernetes.io/managed-by: octopus
|
app.kubernetes.io/managed-by: octopus
|
||||||
cmii.type: middleware
|
cmii.type: middleware
|
||||||
cmii.app: mysql
|
cmii.app: mysql
|
||||||
app.kubernetes.io/component: primary
|
app.kubernetes.io/component: primary
|
||||||
annotations: { }
|
annotations: {}
|
||||||
spec:
|
spec:
|
||||||
type: NodePort
|
type: NodePort
|
||||||
ports:
|
ports:
|
||||||
@@ -265,10 +252,10 @@ spec:
|
|||||||
port: 3306
|
port: 3306
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
targetPort: mysql
|
targetPort: mysql
|
||||||
nodePort: 33308
|
nodePort: 33306
|
||||||
selector:
|
selector:
|
||||||
app.kubernetes.io/name: mysql-db
|
app.kubernetes.io/name: mysql-db
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
app.kubernetes.io/release: sdejpt
|
||||||
cmii.type: middleware
|
cmii.type: middleware
|
||||||
cmii.app: mysql
|
cmii.app: mysql
|
||||||
app.kubernetes.io/component: primary
|
app.kubernetes.io/component: primary
|
||||||
@@ -277,11 +264,11 @@ apiVersion: apps/v1
|
|||||||
kind: StatefulSet
|
kind: StatefulSet
|
||||||
metadata:
|
metadata:
|
||||||
name: helm-mysql
|
name: helm-mysql
|
||||||
namespace: uavcloud-devoperation
|
namespace: sdejpt
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: mysql-db
|
app.kubernetes.io/name: mysql-db
|
||||||
octopus.control: mysql-db-wdd
|
octopus.control: mysql-db-wdd
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
app.kubernetes.io/release: sdejpt
|
||||||
app.kubernetes.io/managed-by: octopus
|
app.kubernetes.io/managed-by: octopus
|
||||||
cmii.type: middleware
|
cmii.type: middleware
|
||||||
cmii.app: mysql
|
cmii.app: mysql
|
||||||
@@ -291,7 +278,7 @@ spec:
|
|||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app.kubernetes.io/name: mysql-db
|
app.kubernetes.io/name: mysql-db
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
app.kubernetes.io/release: sdejpt
|
||||||
cmii.type: middleware
|
cmii.type: middleware
|
||||||
cmii.app: mysql
|
cmii.app: mysql
|
||||||
app.kubernetes.io/component: primary
|
app.kubernetes.io/component: primary
|
||||||
@@ -305,7 +292,7 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: mysql-db
|
app.kubernetes.io/name: mysql-db
|
||||||
octopus.control: mysql-db-wdd
|
octopus.control: mysql-db-wdd
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
app.kubernetes.io/release: sdejpt
|
||||||
app.kubernetes.io/managed-by: octopus
|
app.kubernetes.io/managed-by: octopus
|
||||||
cmii.type: middleware
|
cmii.type: middleware
|
||||||
cmii.app: mysql
|
cmii.app: mysql
|
||||||
@@ -314,14 +301,14 @@ spec:
|
|||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: harborsecret
|
- name: harborsecret
|
||||||
serviceAccountName: helm-mysql
|
serviceAccountName: helm-mysql
|
||||||
affinity: { }
|
affinity: {}
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
mysql-deploy: "true"
|
mysql-deploy: "true"
|
||||||
securityContext:
|
securityContext:
|
||||||
fsGroup: 1001
|
fsGroup: 1001
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: change-volume-permissions
|
- name: change-volume-permissions
|
||||||
image: harbor.cdcyy.com.cn/cmii/bitnami-shell:11-debian-11-r136
|
image: 134.80.124.7:8033/cmii/bitnami-shell:11-debian-11-r136
|
||||||
imagePullPolicy: "Always"
|
imagePullPolicy: "Always"
|
||||||
command:
|
command:
|
||||||
- /bin/bash
|
- /bin/bash
|
||||||
@@ -335,7 +322,7 @@ spec:
|
|||||||
mountPath: /bitnami/mysql
|
mountPath: /bitnami/mysql
|
||||||
containers:
|
containers:
|
||||||
- name: mysql
|
- name: mysql
|
||||||
image: harbor.cdcyy.com.cn/cmii/mysql:8.1.0-debian-11-r42
|
image: 134.80.124.7:8033/cmii/mysql:8.1.0-debian-11-r42
|
||||||
imagePullPolicy: "IfNotPresent"
|
imagePullPolicy: "IfNotPresent"
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: 1001
|
runAsUser: 1001
|
||||||
@@ -401,8 +388,8 @@ spec:
|
|||||||
fi
|
fi
|
||||||
mysqladmin status -uroot -p"${password_aux}"
|
mysqladmin status -uroot -p"${password_aux}"
|
||||||
resources:
|
resources:
|
||||||
limits: { }
|
limits: {}
|
||||||
requests: { }
|
requests: {}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: mysql-data
|
- name: mysql-data
|
||||||
mountPath: /bitnami/mysql
|
mountPath: /bitnami/mysql
|
||||||
@@ -420,4 +407,4 @@ spec:
|
|||||||
name: helm-mysql-init-scripts
|
name: helm-mysql-init-scripts
|
||||||
- name: mysql-data
|
- name: mysql-data
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /var/lib/docker/mysql-pv/uavcloud-devoperation/
|
path: /var/lib/docker/mysql-pv/sdejpt/
|
||||||
@@ -3,31 +3,31 @@ apiVersion: v1
|
|||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
name: helm-nacos-cm
|
name: helm-nacos-cm
|
||||||
namespace: uavcloud-devoperation
|
namespace: sdejpt
|
||||||
labels:
|
labels:
|
||||||
cmii.app: helm-nacos
|
cmii.app: helm-nacos
|
||||||
cmii.type: middleware
|
cmii.type: middleware
|
||||||
octopus.control: nacos-wdd
|
octopus.control: nacos-wdd
|
||||||
app.kubernetes.io/managed-by: Helm
|
app.kubernetes.io/managed-by: Helm
|
||||||
app.kubernetes.io/version: 5.6.0
|
app.kubernetes.io/version: 6.0.0
|
||||||
data:
|
data:
|
||||||
mysql.db.name: "cmii_nacos_config"
|
mysql.db.name: "cmii_nacos_config"
|
||||||
mysql.db.host: "helm-mysql"
|
mysql.db.host: "helm-mysql"
|
||||||
mysql.port: "3306"
|
mysql.port: "3306"
|
||||||
mysql.user: "k8s_admin"
|
mysql.user: "k8s_admin"
|
||||||
mysql.password: "VFJncwy58^Zm"
|
mysql.password: "fP#UaH6qQ3)8"
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: helm-nacos
|
name: helm-nacos
|
||||||
namespace: uavcloud-devoperation
|
namespace: sdejpt
|
||||||
labels:
|
labels:
|
||||||
cmii.app: helm-nacos
|
cmii.app: helm-nacos
|
||||||
cmii.type: middleware
|
cmii.type: middleware
|
||||||
octopus.control: nacos-wdd
|
octopus.control: nacos-wdd
|
||||||
app.kubernetes.io/managed-by: Helm
|
app.kubernetes.io/managed-by: Helm
|
||||||
app.kubernetes.io/version: 5.6.0
|
app.kubernetes.io/version: 6.0.0
|
||||||
spec:
|
spec:
|
||||||
type: NodePort
|
type: NodePort
|
||||||
selector:
|
selector:
|
||||||
@@ -37,7 +37,7 @@ spec:
|
|||||||
- port: 8848
|
- port: 8848
|
||||||
name: server
|
name: server
|
||||||
targetPort: 8848
|
targetPort: 8848
|
||||||
nodePort: 33850
|
nodePort: 38848
|
||||||
- port: 9848
|
- port: 9848
|
||||||
name: server12
|
name: server12
|
||||||
targetPort: 9848
|
targetPort: 9848
|
||||||
@@ -49,13 +49,13 @@ apiVersion: apps/v1
|
|||||||
kind: StatefulSet
|
kind: StatefulSet
|
||||||
metadata:
|
metadata:
|
||||||
name: helm-nacos
|
name: helm-nacos
|
||||||
namespace: uavcloud-devoperation
|
namespace: sdejpt
|
||||||
labels:
|
labels:
|
||||||
cmii.app: helm-nacos
|
cmii.app: helm-nacos
|
||||||
cmii.type: middleware
|
cmii.type: middleware
|
||||||
octopus.control: nacos-wdd
|
octopus.control: nacos-wdd
|
||||||
app.kubernetes.io/managed-by: Helm
|
app.kubernetes.io/managed-by: Helm
|
||||||
app.kubernetes.io/version: 5.6.0
|
app.kubernetes.io/version: 6.0.0
|
||||||
spec:
|
spec:
|
||||||
serviceName: helm-nacos
|
serviceName: helm-nacos
|
||||||
replicas: 1
|
replicas: 1
|
||||||
@@ -70,16 +70,16 @@ spec:
|
|||||||
cmii.type: middleware
|
cmii.type: middleware
|
||||||
octopus.control: nacos-wdd
|
octopus.control: nacos-wdd
|
||||||
app.kubernetes.io/managed-by: octopus
|
app.kubernetes.io/managed-by: octopus
|
||||||
app.kubernetes.io/version: 5.6.0
|
app.kubernetes.io/version: 6.0.0
|
||||||
annotations:
|
annotations:
|
||||||
pod.alpha.kubernetes.io/initialized: "true"
|
pod.alpha.kubernetes.io/initialized: "true"
|
||||||
spec:
|
spec:
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: harborsecret
|
- name: harborsecret
|
||||||
affinity: { }
|
affinity: {}
|
||||||
containers:
|
containers:
|
||||||
- name: nacos-server
|
- name: nacos-server
|
||||||
image: harbor.cdcyy.com.cn/cmii/nacos-server:v2.1.2
|
image: 134.80.124.7:8033/cmii/nacos-server:v2.1.2
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8848
|
- containerPort: 8848
|
||||||
name: dashboard
|
name: dashboard
|
||||||
38
agent-common/real_project/sdejpt/k8s-nfs-test.yaml
Normal file
38
agent-common/real_project/sdejpt/k8s-nfs-test.yaml
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
---
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: test-claim
|
||||||
|
annotations:
|
||||||
|
volume.beta.kubernetes.io/storage-class: "nfs-prod-distribute" #与nfs-StorageClass.yaml metadata.name保持一致
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
storageClassName: nfs-prod-distribute
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 1Mi
|
||||||
|
---
|
||||||
|
kind: Pod
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: test-pod
|
||||||
|
spec:
|
||||||
|
imagePullSecrets:
|
||||||
|
- name: harborsecret
|
||||||
|
containers:
|
||||||
|
- name: test-pod
|
||||||
|
image: 134.80.124.7:8033/cmii/busybox:latest
|
||||||
|
command:
|
||||||
|
- "/bin/sh"
|
||||||
|
args:
|
||||||
|
- "-c"
|
||||||
|
- "touch /mnt/NFS-CREATE-SUCCESS && exit 0 || exit 1" #创建一个SUCCESS文件后退出
|
||||||
|
volumeMounts:
|
||||||
|
- name: nfs-pvc
|
||||||
|
mountPath: "/mnt"
|
||||||
|
restartPolicy: "Never"
|
||||||
|
volumes:
|
||||||
|
- name: nfs-pvc
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: test-claim #与PVC名称保持一致
|
||||||
114
agent-common/real_project/sdejpt/k8s-nfs.yaml
Normal file
114
agent-common/real_project/sdejpt/k8s-nfs.yaml
Normal file
@@ -0,0 +1,114 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ServiceAccount
|
||||||
|
metadata:
|
||||||
|
name: nfs-client-provisioner
|
||||||
|
# replace with namespace where provisioner is deployed
|
||||||
|
namespace: kube-system #根据实际环境设定namespace,下面类同
|
||||||
|
---
|
||||||
|
kind: ClusterRole
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
metadata:
|
||||||
|
name: nfs-client-provisioner-runner
|
||||||
|
rules:
|
||||||
|
- apiGroups: [""]
|
||||||
|
resources: ["persistentvolumes"]
|
||||||
|
verbs: ["get", "list", "watch", "create", "delete"]
|
||||||
|
- apiGroups: [""]
|
||||||
|
resources: ["persistentvolumeclaims"]
|
||||||
|
verbs: ["get", "list", "watch", "update"]
|
||||||
|
- apiGroups: ["storage.k8s.io"]
|
||||||
|
resources: ["storageclasses"]
|
||||||
|
verbs: ["get", "list", "watch"]
|
||||||
|
- apiGroups: [""]
|
||||||
|
resources: ["events"]
|
||||||
|
verbs: ["create", "update", "patch"]
|
||||||
|
---
|
||||||
|
kind: ClusterRoleBinding
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
metadata:
|
||||||
|
name: run-nfs-client-provisioner
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: nfs-client-provisioner
|
||||||
|
# replace with namespace where provisioner is deployed
|
||||||
|
namespace: kube-system
|
||||||
|
roleRef:
|
||||||
|
kind: ClusterRole
|
||||||
|
# name: nfs-client-provisioner-runner
|
||||||
|
name: cluster-admin
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
---
|
||||||
|
kind: Role
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
metadata:
|
||||||
|
name: leader-locking-nfs-client-provisioner
|
||||||
|
# replace with namespace where provisioner is deployed
|
||||||
|
namespace: kube-system
|
||||||
|
rules:
|
||||||
|
- apiGroups: [""]
|
||||||
|
resources: ["endpoints"]
|
||||||
|
verbs: ["get", "list", "watch", "create", "update", "patch"]
|
||||||
|
---
|
||||||
|
kind: RoleBinding
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
metadata:
|
||||||
|
name: leader-locking-nfs-client-provisioner
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: nfs-client-provisioner
|
||||||
|
# replace with namespace where provisioner is deployed
|
||||||
|
namespace: kube-system
|
||||||
|
roleRef:
|
||||||
|
kind: Role
|
||||||
|
name: leader-locking-nfs-client-provisioner
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: storage.k8s.io/v1
|
||||||
|
kind: StorageClass
|
||||||
|
metadata:
|
||||||
|
name: nfs-prod-distribute
|
||||||
|
provisioner: cmlc-nfs-storage #这里的名称要和provisioner配置文件中的环境变量PROVISIONER_NAME保持一致parameters: archiveOnDelete: "false"
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: nfs-client-provisioner
|
||||||
|
labels:
|
||||||
|
app: nfs-client-provisioner
|
||||||
|
# replace with namespace where provisioner is deployed
|
||||||
|
namespace: kube-system #与RBAC文件中的namespace保持一致
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: nfs-client-provisioner
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: nfs-client-provisioner
|
||||||
|
spec:
|
||||||
|
imagePullSecrets:
|
||||||
|
- name: harborsecret
|
||||||
|
serviceAccountName: nfs-client-provisioner
|
||||||
|
containers:
|
||||||
|
- name: nfs-client-provisioner
|
||||||
|
image: 134.80.124.7:8033/cmii/nfs-subdir-external-provisioner:v4.0.2
|
||||||
|
volumeMounts:
|
||||||
|
- name: nfs-client-root
|
||||||
|
mountPath: /persistentvolumes
|
||||||
|
env:
|
||||||
|
- name: PROVISIONER_NAME
|
||||||
|
value: cmlc-nfs-storage
|
||||||
|
- name: NFS_SERVER
|
||||||
|
value: 134.80.124.21
|
||||||
|
- name: NFS_PATH
|
||||||
|
value: /var/lib/docker/nfs_data
|
||||||
|
volumes:
|
||||||
|
- name: nfs-client-root
|
||||||
|
nfs:
|
||||||
|
server: 134.80.124.21
|
||||||
|
path: /var/lib/docker/nfs_data
|
||||||
@@ -3,12 +3,12 @@ apiVersion: v1
|
|||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
name: nfs-backend-log-pvc
|
name: nfs-backend-log-pvc
|
||||||
namespace: uavcloud-devoperation
|
namespace: sdejpt
|
||||||
labels:
|
labels:
|
||||||
cmii.type: middleware-base
|
cmii.type: middleware-base
|
||||||
cmii.app: nfs-backend-log-pvc
|
cmii.app: nfs-backend-log-pvc
|
||||||
helm.sh/chart: all-persistence-volume-claims-1.1.0
|
helm.sh/chart: all-persistence-volume-claims-1.1.0
|
||||||
app.kubernetes.io/version: 5.6.0
|
app.kubernetes.io/version: 6.0.0
|
||||||
spec:
|
spec:
|
||||||
storageClassName: nfs-prod-distribute
|
storageClassName: nfs-prod-distribute
|
||||||
accessModes:
|
accessModes:
|
||||||
@@ -22,12 +22,12 @@ apiVersion: v1
|
|||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
name: helm-emqxs
|
name: helm-emqxs
|
||||||
namespace: uavcloud-devoperation
|
namespace: sdejpt
|
||||||
labels:
|
labels:
|
||||||
cmii.type: middleware-base
|
cmii.type: middleware-base
|
||||||
cmii.app: helm-emqxs
|
cmii.app: helm-emqxs
|
||||||
helm.sh/chart: all-persistence-volume-claims-1.1.0
|
helm.sh/chart: all-persistence-volume-claims-1.1.0
|
||||||
app.kubernetes.io/version: 5.6.0
|
app.kubernetes.io/version: 6.0.0
|
||||||
spec:
|
spec:
|
||||||
storageClassName: nfs-prod-distribute
|
storageClassName: nfs-prod-distribute
|
||||||
accessModes:
|
accessModes:
|
||||||
@@ -41,12 +41,12 @@ apiVersion: v1
|
|||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
name: helm-mongo
|
name: helm-mongo
|
||||||
namespace: uavcloud-devoperation
|
namespace: sdejpt
|
||||||
labels:
|
labels:
|
||||||
cmii.type: middleware-base
|
cmii.type: middleware-base
|
||||||
cmii.app: helm-mongo
|
cmii.app: helm-mongo
|
||||||
helm.sh/chart: all-persistence-volume-claims-1.1.0
|
helm.sh/chart: all-persistence-volume-claims-1.1.0
|
||||||
app.kubernetes.io/version: 5.6.0
|
app.kubernetes.io/version: 6.0.0
|
||||||
spec:
|
spec:
|
||||||
storageClassName: nfs-prod-distribute
|
storageClassName: nfs-prod-distribute
|
||||||
accessModes:
|
accessModes:
|
||||||
@@ -60,12 +60,12 @@ apiVersion: v1
|
|||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
name: helm-rabbitmq
|
name: helm-rabbitmq
|
||||||
namespace: uavcloud-devoperation
|
namespace: sdejpt
|
||||||
labels:
|
labels:
|
||||||
cmii.type: middleware-base
|
cmii.type: middleware-base
|
||||||
cmii.app: helm-rabbitmq
|
cmii.app: helm-rabbitmq
|
||||||
helm.sh/chart: all-persistence-volume-claims-1.1.0
|
helm.sh/chart: all-persistence-volume-claims-1.1.0
|
||||||
app.kubernetes.io/version: 5.6.0
|
app.kubernetes.io/version: 6.0.0
|
||||||
spec:
|
spec:
|
||||||
storageClassName: nfs-prod-distribute
|
storageClassName: nfs-prod-distribute
|
||||||
accessModes:
|
accessModes:
|
||||||
@@ -3,47 +3,47 @@ apiVersion: v1
|
|||||||
kind: ServiceAccount
|
kind: ServiceAccount
|
||||||
metadata:
|
metadata:
|
||||||
name: helm-rabbitmq
|
name: helm-rabbitmq
|
||||||
namespace: uavcloud-devoperation
|
namespace: sdejpt
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: helm-rabbitmq
|
app.kubernetes.io/name: helm-rabbitmq
|
||||||
helm.sh/chart: rabbitmq-8.26.1
|
helm.sh/chart: rabbitmq-8.26.1
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
app.kubernetes.io/release: sdejpt
|
||||||
app.kubernetes.io/managed-by: rabbitmq
|
app.kubernetes.io/managed-by: rabbitmq
|
||||||
automountServiceAccountToken: true
|
automountServiceAccountToken: true
|
||||||
secrets:
|
secrets:
|
||||||
- name: helm-rabbitmq
|
- name: helm-rabbitmq
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Secret
|
kind: Secret
|
||||||
metadata:
|
metadata:
|
||||||
name: helm-rabbitmq
|
name: helm-rabbitmq
|
||||||
namespace: uavcloud-devoperation
|
namespace: sdejpt
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: helm-rabbitmq
|
app.kubernetes.io/name: helm-rabbitmq
|
||||||
helm.sh/chart: rabbitmq-8.26.1
|
helm.sh/chart: rabbitmq-8.26.1
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
app.kubernetes.io/release: sdejpt
|
||||||
app.kubernetes.io/managed-by: rabbitmq
|
app.kubernetes.io/managed-by: rabbitmq
|
||||||
type: Opaque
|
type: Opaque
|
||||||
data:
|
data:
|
||||||
rabbitmq-password: "N3YmNyN3MWVmKVQt"
|
rabbitmq-password: "blljUk45MXIuX2hq"
|
||||||
rabbitmq-erlang-cookie: "emFBRmt1ZU1xMkJieXZvdHRYbWpoWk52UThuVXFzcTU="
|
rabbitmq-erlang-cookie: "emFBRmt1ZU1xMkJieXZvdHRYbWpoWk52UThuVXFzcTU="
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
name: helm-rabbitmq-config
|
name: helm-rabbitmq-config
|
||||||
namespace: uavcloud-devoperation
|
namespace: sdejpt
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: helm-rabbitmq
|
app.kubernetes.io/name: helm-rabbitmq
|
||||||
helm.sh/chart: rabbitmq-8.26.1
|
helm.sh/chart: rabbitmq-8.26.1
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
app.kubernetes.io/release: sdejpt
|
||||||
app.kubernetes.io/managed-by: rabbitmq
|
app.kubernetes.io/managed-by: rabbitmq
|
||||||
data:
|
data:
|
||||||
rabbitmq.conf: |-
|
rabbitmq.conf: |-
|
||||||
## Username and password
|
## Username and password
|
||||||
##
|
##
|
||||||
default_user = admin
|
default_user = admin
|
||||||
default_pass = 7v&7#w1ef)T-
|
default_pass = nYcRN91r._hj
|
||||||
## Clustering
|
## Clustering
|
||||||
##
|
##
|
||||||
cluster_formation.peer_discovery_backend = rabbit_peer_discovery_k8s
|
cluster_formation.peer_discovery_backend = rabbit_peer_discovery_k8s
|
||||||
@@ -63,29 +63,29 @@ kind: Role
|
|||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
metadata:
|
metadata:
|
||||||
name: helm-rabbitmq-endpoint-reader
|
name: helm-rabbitmq-endpoint-reader
|
||||||
namespace: uavcloud-devoperation
|
namespace: sdejpt
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: helm-rabbitmq
|
app.kubernetes.io/name: helm-rabbitmq
|
||||||
helm.sh/chart: rabbitmq-8.26.1
|
helm.sh/chart: rabbitmq-8.26.1
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
app.kubernetes.io/release: sdejpt
|
||||||
app.kubernetes.io/managed-by: rabbitmq
|
app.kubernetes.io/managed-by: rabbitmq
|
||||||
rules:
|
rules:
|
||||||
- apiGroups: [ "" ]
|
- apiGroups: [""]
|
||||||
resources: [ "endpoints" ]
|
resources: ["endpoints"]
|
||||||
verbs: [ "get" ]
|
verbs: ["get"]
|
||||||
- apiGroups: [ "" ]
|
- apiGroups: [""]
|
||||||
resources: [ "events" ]
|
resources: ["events"]
|
||||||
verbs: [ "create" ]
|
verbs: ["create"]
|
||||||
---
|
---
|
||||||
kind: RoleBinding
|
kind: RoleBinding
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
metadata:
|
metadata:
|
||||||
name: helm-rabbitmq-endpoint-reader
|
name: helm-rabbitmq-endpoint-reader
|
||||||
namespace: uavcloud-devoperation
|
namespace: sdejpt
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: helm-rabbitmq
|
app.kubernetes.io/name: helm-rabbitmq
|
||||||
helm.sh/chart: rabbitmq-8.26.1
|
helm.sh/chart: rabbitmq-8.26.1
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
app.kubernetes.io/release: sdejpt
|
||||||
app.kubernetes.io/managed-by: rabbitmq
|
app.kubernetes.io/managed-by: rabbitmq
|
||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
@@ -99,11 +99,11 @@ apiVersion: v1
|
|||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: helm-rabbitmq-headless
|
name: helm-rabbitmq-headless
|
||||||
namespace: uavcloud-devoperation
|
namespace: sdejpt
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: helm-rabbitmq
|
app.kubernetes.io/name: helm-rabbitmq
|
||||||
helm.sh/chart: rabbitmq-8.26.1
|
helm.sh/chart: rabbitmq-8.26.1
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
app.kubernetes.io/release: sdejpt
|
||||||
app.kubernetes.io/managed-by: rabbitmq
|
app.kubernetes.io/managed-by: rabbitmq
|
||||||
spec:
|
spec:
|
||||||
clusterIP: None
|
clusterIP: None
|
||||||
@@ -122,18 +122,18 @@ spec:
|
|||||||
targetPort: stats
|
targetPort: stats
|
||||||
selector:
|
selector:
|
||||||
app.kubernetes.io/name: helm-rabbitmq
|
app.kubernetes.io/name: helm-rabbitmq
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
app.kubernetes.io/release: sdejpt
|
||||||
publishNotReadyAddresses: true
|
publishNotReadyAddresses: true
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: helm-rabbitmq
|
name: helm-rabbitmq
|
||||||
namespace: uavcloud-devoperation
|
namespace: sdejpt
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: helm-rabbitmq
|
app.kubernetes.io/name: helm-rabbitmq
|
||||||
helm.sh/chart: rabbitmq-8.26.1
|
helm.sh/chart: rabbitmq-8.26.1
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
app.kubernetes.io/release: sdejpt
|
||||||
app.kubernetes.io/managed-by: rabbitmq
|
app.kubernetes.io/managed-by: rabbitmq
|
||||||
spec:
|
spec:
|
||||||
type: NodePort
|
type: NodePort
|
||||||
@@ -141,24 +141,24 @@ spec:
|
|||||||
- name: amqp
|
- name: amqp
|
||||||
port: 5672
|
port: 5672
|
||||||
targetPort: amqp
|
targetPort: amqp
|
||||||
nodePort: 35674
|
nodePort: 35672
|
||||||
- name: dashboard
|
- name: dashboard
|
||||||
port: 15672
|
port: 15672
|
||||||
targetPort: dashboard
|
targetPort: dashboard
|
||||||
nodePort: 36677
|
nodePort: 36675
|
||||||
selector:
|
selector:
|
||||||
app.kubernetes.io/name: helm-rabbitmq
|
app.kubernetes.io/name: helm-rabbitmq
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
app.kubernetes.io/release: sdejpt
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: StatefulSet
|
kind: StatefulSet
|
||||||
metadata:
|
metadata:
|
||||||
name: helm-rabbitmq
|
name: helm-rabbitmq
|
||||||
namespace: uavcloud-devoperation
|
namespace: sdejpt
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: helm-rabbitmq
|
app.kubernetes.io/name: helm-rabbitmq
|
||||||
helm.sh/chart: rabbitmq-8.26.1
|
helm.sh/chart: rabbitmq-8.26.1
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
app.kubernetes.io/release: sdejpt
|
||||||
app.kubernetes.io/managed-by: rabbitmq
|
app.kubernetes.io/managed-by: rabbitmq
|
||||||
spec:
|
spec:
|
||||||
serviceName: helm-rabbitmq-headless
|
serviceName: helm-rabbitmq-headless
|
||||||
@@ -169,13 +169,13 @@ spec:
|
|||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app.kubernetes.io/name: helm-rabbitmq
|
app.kubernetes.io/name: helm-rabbitmq
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
app.kubernetes.io/release: sdejpt
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: helm-rabbitmq
|
app.kubernetes.io/name: helm-rabbitmq
|
||||||
helm.sh/chart: rabbitmq-8.26.1
|
helm.sh/chart: rabbitmq-8.26.1
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
app.kubernetes.io/release: sdejpt
|
||||||
app.kubernetes.io/managed-by: rabbitmq
|
app.kubernetes.io/managed-by: rabbitmq
|
||||||
annotations:
|
annotations:
|
||||||
checksum/config: d6c2caa9572f64a06d9f7daa34c664a186b4778cd1697ef8e59663152fc628f1
|
checksum/config: d6c2caa9572f64a06d9f7daa34c664a186b4778cd1697ef8e59663152fc628f1
|
||||||
@@ -184,14 +184,14 @@ spec:
|
|||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: harborsecret
|
- name: harborsecret
|
||||||
serviceAccountName: helm-rabbitmq
|
serviceAccountName: helm-rabbitmq
|
||||||
affinity: { }
|
affinity: {}
|
||||||
securityContext:
|
securityContext:
|
||||||
fsGroup: 5001
|
fsGroup: 5001
|
||||||
runAsUser: 5001
|
runAsUser: 5001
|
||||||
terminationGracePeriodSeconds: 120
|
terminationGracePeriodSeconds: 120
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: volume-permissions
|
- name: volume-permissions
|
||||||
image: harbor.cdcyy.com.cn/cmii/bitnami-shell:11-debian-11-r136
|
image: 134.80.124.7:8033/cmii/bitnami-shell:11-debian-11-r136
|
||||||
imagePullPolicy: "Always"
|
imagePullPolicy: "Always"
|
||||||
command:
|
command:
|
||||||
- /bin/bash
|
- /bin/bash
|
||||||
@@ -203,14 +203,14 @@ spec:
|
|||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: 0
|
runAsUser: 0
|
||||||
resources:
|
resources:
|
||||||
limits: { }
|
limits: {}
|
||||||
requests: { }
|
requests: {}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: /bitnami/rabbitmq/mnesia
|
mountPath: /bitnami/rabbitmq/mnesia
|
||||||
containers:
|
containers:
|
||||||
- name: rabbitmq
|
- name: rabbitmq
|
||||||
image: harbor.cdcyy.com.cn/cmii/rabbitmq:3.9.12-debian-10-r3
|
image: 134.80.124.7:8033/cmii/rabbitmq:3.9.12-debian-10-r3
|
||||||
imagePullPolicy: "Always"
|
imagePullPolicy: "Always"
|
||||||
env:
|
env:
|
||||||
- name: BITNAMI_DEBUG
|
- name: BITNAMI_DEBUG
|
||||||
@@ -309,8 +309,8 @@ spec:
|
|||||||
rabbitmqctl stop_app
|
rabbitmqctl stop_app
|
||||||
fi
|
fi
|
||||||
resources:
|
resources:
|
||||||
limits: { }
|
limits: {}
|
||||||
requests: { }
|
requests: {}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: configuration
|
- name: configuration
|
||||||
mountPath: /bitnami/rabbitmq/conf
|
mountPath: /bitnami/rabbitmq/conf
|
||||||
@@ -4,22 +4,22 @@ kind: ServiceAccount
|
|||||||
automountServiceAccountToken: true
|
automountServiceAccountToken: true
|
||||||
metadata:
|
metadata:
|
||||||
name: helm-redis
|
name: helm-redis
|
||||||
namespace: uavcloud-devoperation
|
namespace: sdejpt
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: redis-db
|
app.kubernetes.io/name: redis-db
|
||||||
octopus.control: redis-db-wdd
|
octopus.control: redis-db-wdd
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
app.kubernetes.io/release: sdejpt
|
||||||
app.kubernetes.io/managed-by: octopus
|
app.kubernetes.io/managed-by: octopus
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Secret
|
kind: Secret
|
||||||
metadata:
|
metadata:
|
||||||
name: helm-redis
|
name: helm-redis
|
||||||
namespace: uavcloud-devoperation
|
namespace: sdejpt
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: redis-db
|
app.kubernetes.io/name: redis-db
|
||||||
octopus.control: redis-db-wdd
|
octopus.control: redis-db-wdd
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
app.kubernetes.io/release: sdejpt
|
||||||
app.kubernetes.io/managed-by: octopus
|
app.kubernetes.io/managed-by: octopus
|
||||||
type: Opaque
|
type: Opaque
|
||||||
data:
|
data:
|
||||||
@@ -29,11 +29,11 @@ apiVersion: v1
|
|||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
name: helm-redis-configuration
|
name: helm-redis-configuration
|
||||||
namespace: uavcloud-devoperation
|
namespace: sdejpt
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: redis-db
|
app.kubernetes.io/name: redis-db
|
||||||
octopus.control: redis-db-wdd
|
octopus.control: redis-db-wdd
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
app.kubernetes.io/release: sdejpt
|
||||||
app.kubernetes.io/managed-by: octopus
|
app.kubernetes.io/managed-by: octopus
|
||||||
data:
|
data:
|
||||||
redis.conf: |-
|
redis.conf: |-
|
||||||
@@ -62,11 +62,11 @@ apiVersion: v1
|
|||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
name: helm-redis-health
|
name: helm-redis-health
|
||||||
namespace: uavcloud-devoperation
|
namespace: sdejpt
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: redis-db
|
app.kubernetes.io/name: redis-db
|
||||||
octopus.control: redis-db-wdd
|
octopus.control: redis-db-wdd
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
app.kubernetes.io/release: sdejpt
|
||||||
app.kubernetes.io/managed-by: octopus
|
app.kubernetes.io/managed-by: octopus
|
||||||
data:
|
data:
|
||||||
ping_readiness_local.sh: |-
|
ping_readiness_local.sh: |-
|
||||||
@@ -151,11 +151,11 @@ apiVersion: v1
|
|||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
name: helm-redis-scripts
|
name: helm-redis-scripts
|
||||||
namespace: uavcloud-devoperation
|
namespace: sdejpt
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: redis-db
|
app.kubernetes.io/name: redis-db
|
||||||
octopus.control: redis-db-wdd
|
octopus.control: redis-db-wdd
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
app.kubernetes.io/release: sdejpt
|
||||||
app.kubernetes.io/managed-by: octopus
|
app.kubernetes.io/managed-by: octopus
|
||||||
data:
|
data:
|
||||||
start-master.sh: |
|
start-master.sh: |
|
||||||
@@ -230,11 +230,11 @@ apiVersion: v1
|
|||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: helm-redis-headless
|
name: helm-redis-headless
|
||||||
namespace: uavcloud-devoperation
|
namespace: sdejpt
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: redis-db
|
app.kubernetes.io/name: redis-db
|
||||||
octopus.control: redis-db-wdd
|
octopus.control: redis-db-wdd
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
app.kubernetes.io/release: sdejpt
|
||||||
app.kubernetes.io/managed-by: octopus
|
app.kubernetes.io/managed-by: octopus
|
||||||
spec:
|
spec:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
@@ -245,18 +245,18 @@ spec:
|
|||||||
targetPort: redis
|
targetPort: redis
|
||||||
selector:
|
selector:
|
||||||
app.kubernetes.io/name: redis-db
|
app.kubernetes.io/name: redis-db
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
app.kubernetes.io/release: sdejpt
|
||||||
---
|
---
|
||||||
# Source: outside-deploy/charts/redis-db/templates/master/service.yaml
|
# Source: outside-deploy/charts/redis-db/templates/master/service.yaml
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: helm-redis-master
|
name: helm-redis-master
|
||||||
namespace: uavcloud-devoperation
|
namespace: sdejpt
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: redis-db
|
app.kubernetes.io/name: redis-db
|
||||||
octopus.control: redis-db-wdd
|
octopus.control: redis-db-wdd
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
app.kubernetes.io/release: sdejpt
|
||||||
app.kubernetes.io/managed-by: octopus
|
app.kubernetes.io/managed-by: octopus
|
||||||
cmii.type: middleware
|
cmii.type: middleware
|
||||||
cmii.app: redis
|
cmii.app: redis
|
||||||
@@ -271,7 +271,7 @@ spec:
|
|||||||
nodePort: null
|
nodePort: null
|
||||||
selector:
|
selector:
|
||||||
app.kubernetes.io/name: redis-db
|
app.kubernetes.io/name: redis-db
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
app.kubernetes.io/release: sdejpt
|
||||||
cmii.type: middleware
|
cmii.type: middleware
|
||||||
cmii.app: redis
|
cmii.app: redis
|
||||||
app.kubernetes.io/component: master
|
app.kubernetes.io/component: master
|
||||||
@@ -281,11 +281,11 @@ apiVersion: v1
|
|||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: helm-redis-replicas
|
name: helm-redis-replicas
|
||||||
namespace: uavcloud-devoperation
|
namespace: sdejpt
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: redis-db
|
app.kubernetes.io/name: redis-db
|
||||||
octopus.control: redis-db-wdd
|
octopus.control: redis-db-wdd
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
app.kubernetes.io/release: sdejpt
|
||||||
app.kubernetes.io/managed-by: octopus
|
app.kubernetes.io/managed-by: octopus
|
||||||
app.kubernetes.io/component: replica
|
app.kubernetes.io/component: replica
|
||||||
spec:
|
spec:
|
||||||
@@ -297,7 +297,7 @@ spec:
|
|||||||
nodePort: null
|
nodePort: null
|
||||||
selector:
|
selector:
|
||||||
app.kubernetes.io/name: redis-db
|
app.kubernetes.io/name: redis-db
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
app.kubernetes.io/release: sdejpt
|
||||||
app.kubernetes.io/component: replica
|
app.kubernetes.io/component: replica
|
||||||
---
|
---
|
||||||
# Source: outside-deploy/charts/redis-db/templates/master/statefulset.yaml
|
# Source: outside-deploy/charts/redis-db/templates/master/statefulset.yaml
|
||||||
@@ -305,11 +305,11 @@ apiVersion: apps/v1
|
|||||||
kind: StatefulSet
|
kind: StatefulSet
|
||||||
metadata:
|
metadata:
|
||||||
name: helm-redis-master
|
name: helm-redis-master
|
||||||
namespace: uavcloud-devoperation
|
namespace: sdejpt
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: redis-db
|
app.kubernetes.io/name: redis-db
|
||||||
octopus.control: redis-db-wdd
|
octopus.control: redis-db-wdd
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
app.kubernetes.io/release: sdejpt
|
||||||
app.kubernetes.io/managed-by: octopus
|
app.kubernetes.io/managed-by: octopus
|
||||||
cmii.type: middleware
|
cmii.type: middleware
|
||||||
cmii.app: redis
|
cmii.app: redis
|
||||||
@@ -319,20 +319,20 @@ spec:
|
|||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app.kubernetes.io/name: redis-db
|
app.kubernetes.io/name: redis-db
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
app.kubernetes.io/release: sdejpt
|
||||||
cmii.type: middleware
|
cmii.type: middleware
|
||||||
cmii.app: redis
|
cmii.app: redis
|
||||||
app.kubernetes.io/component: master
|
app.kubernetes.io/component: master
|
||||||
serviceName: helm-redis-headless
|
serviceName: helm-redis-headless
|
||||||
updateStrategy:
|
updateStrategy:
|
||||||
rollingUpdate: { }
|
rollingUpdate: {}
|
||||||
type: RollingUpdate
|
type: RollingUpdate
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: redis-db
|
app.kubernetes.io/name: redis-db
|
||||||
octopus.control: redis-db-wdd
|
octopus.control: redis-db-wdd
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
app.kubernetes.io/release: sdejpt
|
||||||
app.kubernetes.io/managed-by: octopus
|
app.kubernetes.io/managed-by: octopus
|
||||||
cmii.type: middleware
|
cmii.type: middleware
|
||||||
cmii.app: redis
|
cmii.app: redis
|
||||||
@@ -343,7 +343,7 @@ spec:
|
|||||||
checksum/scripts: b88df93710b7c42a76006e20218f05c6e500e6cc2affd4bb1985832f03166e98
|
checksum/scripts: b88df93710b7c42a76006e20218f05c6e500e6cc2affd4bb1985832f03166e98
|
||||||
checksum/secret: 43f1b0e20f9cb2de936bd182bc3683b720fc3cf4f4e76cb23c06a52398a50e8d
|
checksum/secret: 43f1b0e20f9cb2de936bd182bc3683b720fc3cf4f4e76cb23c06a52398a50e8d
|
||||||
spec:
|
spec:
|
||||||
affinity: { }
|
affinity: {}
|
||||||
securityContext:
|
securityContext:
|
||||||
fsGroup: 1001
|
fsGroup: 1001
|
||||||
serviceAccountName: helm-redis
|
serviceAccountName: helm-redis
|
||||||
@@ -352,7 +352,7 @@ spec:
|
|||||||
terminationGracePeriodSeconds: 30
|
terminationGracePeriodSeconds: 30
|
||||||
containers:
|
containers:
|
||||||
- name: redis
|
- name: redis
|
||||||
image: harbor.cdcyy.com.cn/cmii/redis:6.2.6-debian-10-r0
|
image: 134.80.124.7:8033/cmii/redis:6.2.6-debian-10-r0
|
||||||
imagePullPolicy: "Always"
|
imagePullPolicy: "Always"
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: 1001
|
runAsUser: 1001
|
||||||
@@ -408,8 +408,8 @@ spec:
|
|||||||
cpu: "2"
|
cpu: "2"
|
||||||
memory: 8Gi
|
memory: 8Gi
|
||||||
requests:
|
requests:
|
||||||
cpu: "100m"
|
cpu: "2"
|
||||||
memory: 1Gi
|
memory: 8Gi
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: start-scripts
|
- name: start-scripts
|
||||||
mountPath: /opt/bitnami/scripts/start-scripts
|
mountPath: /opt/bitnami/scripts/start-scripts
|
||||||
@@ -437,22 +437,22 @@ spec:
|
|||||||
configMap:
|
configMap:
|
||||||
name: helm-redis-configuration
|
name: helm-redis-configuration
|
||||||
- name: redis-tmp-conf
|
- name: redis-tmp-conf
|
||||||
emptyDir: { }
|
emptyDir: {}
|
||||||
- name: tmp
|
- name: tmp
|
||||||
emptyDir: { }
|
emptyDir: {}
|
||||||
- name: redis-data
|
- name: redis-data
|
||||||
emptyDir: { }
|
emptyDir: {}
|
||||||
---
|
---
|
||||||
# Source: outside-deploy/charts/redis-db/templates/replicas/statefulset.yaml
|
# Source: outside-deploy/charts/redis-db/templates/replicas/statefulset.yaml
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: StatefulSet
|
kind: StatefulSet
|
||||||
metadata:
|
metadata:
|
||||||
name: helm-redis-replicas
|
name: helm-redis-replicas
|
||||||
namespace: uavcloud-devoperation
|
namespace: sdejpt
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: redis-db
|
app.kubernetes.io/name: redis-db
|
||||||
octopus.control: redis-db-wdd
|
octopus.control: redis-db-wdd
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
app.kubernetes.io/release: sdejpt
|
||||||
app.kubernetes.io/managed-by: octopus
|
app.kubernetes.io/managed-by: octopus
|
||||||
app.kubernetes.io/component: replica
|
app.kubernetes.io/component: replica
|
||||||
spec:
|
spec:
|
||||||
@@ -460,18 +460,18 @@ spec:
|
|||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app.kubernetes.io/name: redis-db
|
app.kubernetes.io/name: redis-db
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
app.kubernetes.io/release: sdejpt
|
||||||
app.kubernetes.io/component: replica
|
app.kubernetes.io/component: replica
|
||||||
serviceName: helm-redis-headless
|
serviceName: helm-redis-headless
|
||||||
updateStrategy:
|
updateStrategy:
|
||||||
rollingUpdate: { }
|
rollingUpdate: {}
|
||||||
type: RollingUpdate
|
type: RollingUpdate
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: redis-db
|
app.kubernetes.io/name: redis-db
|
||||||
octopus.control: redis-db-wdd
|
octopus.control: redis-db-wdd
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
app.kubernetes.io/release: sdejpt
|
||||||
app.kubernetes.io/managed-by: octopus
|
app.kubernetes.io/managed-by: octopus
|
||||||
app.kubernetes.io/component: replica
|
app.kubernetes.io/component: replica
|
||||||
annotations:
|
annotations:
|
||||||
@@ -488,7 +488,7 @@ spec:
|
|||||||
terminationGracePeriodSeconds: 30
|
terminationGracePeriodSeconds: 30
|
||||||
containers:
|
containers:
|
||||||
- name: redis
|
- name: redis
|
||||||
image: harbor.cdcyy.com.cn/cmii/redis:6.2.6-debian-10-r0
|
image: 134.80.124.7:8033/cmii/redis:6.2.6-debian-10-r0
|
||||||
imagePullPolicy: "Always"
|
imagePullPolicy: "Always"
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: 1001
|
runAsUser: 1001
|
||||||
@@ -503,7 +503,7 @@ spec:
|
|||||||
- name: REDIS_REPLICATION_MODE
|
- name: REDIS_REPLICATION_MODE
|
||||||
value: slave
|
value: slave
|
||||||
- name: REDIS_MASTER_HOST
|
- name: REDIS_MASTER_HOST
|
||||||
value: helm-redis-master-0.helm-redis-headless.uavcloud-devoperation.svc.cluster.local
|
value: helm-redis-master-0.helm-redis-headless.sdejpt.svc.cluster.local
|
||||||
- name: REDIS_MASTER_PORT_NUMBER
|
- name: REDIS_MASTER_PORT_NUMBER
|
||||||
value: "6379"
|
value: "6379"
|
||||||
- name: ALLOW_EMPTY_PASSWORD
|
- name: ALLOW_EMPTY_PASSWORD
|
||||||
@@ -552,8 +552,8 @@ spec:
|
|||||||
cpu: "2"
|
cpu: "2"
|
||||||
memory: 8Gi
|
memory: 8Gi
|
||||||
requests:
|
requests:
|
||||||
cpu: "100m"
|
cpu: "2"
|
||||||
memory: 1Gi
|
memory: 8Gi
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: start-scripts
|
- name: start-scripts
|
||||||
mountPath: /opt/bitnami/scripts/start-scripts
|
mountPath: /opt/bitnami/scripts/start-scripts
|
||||||
@@ -579,7 +579,7 @@ spec:
|
|||||||
configMap:
|
configMap:
|
||||||
name: helm-redis-configuration
|
name: helm-redis-configuration
|
||||||
- name: redis-tmp-conf
|
- name: redis-tmp-conf
|
||||||
emptyDir: { }
|
emptyDir: {}
|
||||||
- name: redis-data
|
- name: redis-data
|
||||||
emptyDir: { }
|
emptyDir: {}
|
||||||
|
|
||||||
496
agent-common/real_project/sdejpt/k8s-srs.yaml
Normal file
496
agent-common/real_project/sdejpt/k8s-srs.yaml
Normal file
@@ -0,0 +1,496 @@
|
|||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: helm-live-srs-cm
|
||||||
|
namespace: sdejpt
|
||||||
|
labels:
|
||||||
|
cmii.app: live-srs
|
||||||
|
cmii.type: live
|
||||||
|
octopus.control: wdd
|
||||||
|
app.kubernetes.io/managed-by: octopus
|
||||||
|
helm.sh/chart: cmlc-live-srs-rtc-2.0.0
|
||||||
|
data:
|
||||||
|
srs.rtc.conf: |-
|
||||||
|
listen 31935;
|
||||||
|
max_connections 4096;
|
||||||
|
srs_log_tank console;
|
||||||
|
srs_log_level info;
|
||||||
|
srs_log_file /home/srs.log;
|
||||||
|
daemon off;
|
||||||
|
http_api {
|
||||||
|
enabled on;
|
||||||
|
listen 1985;
|
||||||
|
crossdomain on;
|
||||||
|
}
|
||||||
|
stats {
|
||||||
|
network 0;
|
||||||
|
}
|
||||||
|
http_server {
|
||||||
|
enabled on;
|
||||||
|
listen 8080;
|
||||||
|
dir /home/hls;
|
||||||
|
}
|
||||||
|
srt_server {
|
||||||
|
enabled on;
|
||||||
|
listen 30556;
|
||||||
|
maxbw 1000000000;
|
||||||
|
connect_timeout 4000;
|
||||||
|
peerlatency 600;
|
||||||
|
recvlatency 600;
|
||||||
|
}
|
||||||
|
rtc_server {
|
||||||
|
enabled on;
|
||||||
|
listen 30090;
|
||||||
|
candidate $CANDIDATE;
|
||||||
|
}
|
||||||
|
vhost __defaultVhost__ {
|
||||||
|
http_hooks {
|
||||||
|
enabled on;
|
||||||
|
on_publish http://helm-live-op-svc-v2:8080/hooks/on_push;
|
||||||
|
}
|
||||||
|
http_remux {
|
||||||
|
enabled on;
|
||||||
|
}
|
||||||
|
rtc {
|
||||||
|
enabled on;
|
||||||
|
rtmp_to_rtc on;
|
||||||
|
rtc_to_rtmp on;
|
||||||
|
keep_bframe off;
|
||||||
|
}
|
||||||
|
tcp_nodelay on;
|
||||||
|
min_latency on;
|
||||||
|
play {
|
||||||
|
gop_cache off;
|
||||||
|
mw_latency 100;
|
||||||
|
mw_msgs 10;
|
||||||
|
}
|
||||||
|
publish {
|
||||||
|
firstpkt_timeout 8000;
|
||||||
|
normal_timeout 4000;
|
||||||
|
mr on;
|
||||||
|
}
|
||||||
|
dvr {
|
||||||
|
enabled off;
|
||||||
|
dvr_path /home/dvr/[app]/[stream]/[2006][01]/[timestamp].mp4;
|
||||||
|
dvr_plan session;
|
||||||
|
}
|
||||||
|
hls {
|
||||||
|
enabled on;
|
||||||
|
hls_path /home/hls;
|
||||||
|
hls_fragment 10;
|
||||||
|
hls_window 60;
|
||||||
|
hls_m3u8_file [app]/[stream].m3u8;
|
||||||
|
hls_ts_file [app]/[stream]/[2006][01][02]/[timestamp]-[duration].ts;
|
||||||
|
hls_cleanup on;
|
||||||
|
hls_entry_prefix http://134.80.124.6:8088;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: Service
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: helm-live-srs-svc-exporter
|
||||||
|
namespace: sdejpt
|
||||||
|
labels:
|
||||||
|
octopus.control: wdd
|
||||||
|
app.kubernetes.io/managed-by: octopus
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: rtmp
|
||||||
|
protocol: TCP
|
||||||
|
port: 31935
|
||||||
|
targetPort: 31935
|
||||||
|
nodePort: 31935
|
||||||
|
- name: rtc
|
||||||
|
protocol: UDP
|
||||||
|
port: 30090
|
||||||
|
targetPort: 30090
|
||||||
|
nodePort: 30090
|
||||||
|
- name: rtc-tcp
|
||||||
|
protocol: TCP
|
||||||
|
port: 30090
|
||||||
|
targetPort: 30090
|
||||||
|
nodePort: 30090
|
||||||
|
- name: srt
|
||||||
|
protocol: UDP
|
||||||
|
port: 30556
|
||||||
|
targetPort: 30556
|
||||||
|
nodePort: 30556
|
||||||
|
- name: api
|
||||||
|
protocol: TCP
|
||||||
|
port: 1985
|
||||||
|
targetPort: 1985
|
||||||
|
nodePort: 30080
|
||||||
|
selector:
|
||||||
|
srs-role: rtc
|
||||||
|
type: NodePort
|
||||||
|
sessionAffinity: None
|
||||||
|
externalTrafficPolicy: Cluster
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: Service
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: helm-live-srs-svc
|
||||||
|
namespace: sdejpt
|
||||||
|
labels:
|
||||||
|
octopus.control: wdd
|
||||||
|
app.kubernetes.io/managed-by: octopus
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
protocol: TCP
|
||||||
|
port: 8080
|
||||||
|
targetPort: 8080
|
||||||
|
- name: api
|
||||||
|
protocol: TCP
|
||||||
|
port: 1985
|
||||||
|
targetPort: 1985
|
||||||
|
selector:
|
||||||
|
srs-role: rtc
|
||||||
|
type: ClusterIP
|
||||||
|
sessionAffinity: None
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: Service
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: helm-live-srsrtc-svc
|
||||||
|
namespace: sdejpt
|
||||||
|
labels:
|
||||||
|
octopus.control: wdd
|
||||||
|
app.kubernetes.io/managed-by: octopus
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: rtmp
|
||||||
|
protocol: TCP
|
||||||
|
port: 31935
|
||||||
|
targetPort: 31935
|
||||||
|
selector:
|
||||||
|
srs-role: rtc
|
||||||
|
type: ClusterIP
|
||||||
|
sessionAffinity: None
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: StatefulSet
|
||||||
|
apiVersion: apps/v1
|
||||||
|
metadata:
|
||||||
|
name: helm-live-srs-rtc
|
||||||
|
namespace: sdejpt
|
||||||
|
labels:
|
||||||
|
octopus.control: wdd
|
||||||
|
app.kubernetes.io/managed-by: octopus
|
||||||
|
cmii.app: live-srs
|
||||||
|
cmii.type: live
|
||||||
|
helm.sh/chart: cmlc-live-srs-rtc-2.0.0
|
||||||
|
srs-role: rtc
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
srs-role: rtc
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
srs-role: rtc
|
||||||
|
spec:
|
||||||
|
volumes:
|
||||||
|
- name: srs-conf-file
|
||||||
|
configMap:
|
||||||
|
name: helm-live-srs-cm
|
||||||
|
items:
|
||||||
|
- key: srs.rtc.conf
|
||||||
|
path: docker.conf
|
||||||
|
defaultMode: 420
|
||||||
|
- name: srs-vol
|
||||||
|
emptyDir:
|
||||||
|
sizeLimit: 8Gi
|
||||||
|
containers:
|
||||||
|
- name: srs-rtc
|
||||||
|
image: 134.80.124.7:8033/cmii/srs:v5.0.195
|
||||||
|
ports:
|
||||||
|
- name: srs-rtmp
|
||||||
|
containerPort: 31935
|
||||||
|
protocol: TCP
|
||||||
|
- name: srs-api
|
||||||
|
containerPort: 1985
|
||||||
|
protocol: TCP
|
||||||
|
- name: srs-flv
|
||||||
|
containerPort: 8080
|
||||||
|
protocol: TCP
|
||||||
|
- name: srs-webrtc
|
||||||
|
containerPort: 30090
|
||||||
|
protocol: UDP
|
||||||
|
- name: srs-webrtc-tcp
|
||||||
|
containerPort: 30090
|
||||||
|
protocol: TCP
|
||||||
|
- name: srs-srt
|
||||||
|
containerPort: 30556
|
||||||
|
protocol: UDP
|
||||||
|
env:
|
||||||
|
- name: CANDIDATE
|
||||||
|
value: 134.80.124.6
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 2000m
|
||||||
|
memory: 4Gi
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 256Mi
|
||||||
|
volumeMounts:
|
||||||
|
- name: srs-conf-file
|
||||||
|
mountPath: /usr/local/srs/conf/docker.conf
|
||||||
|
subPath: docker.conf
|
||||||
|
- name: srs-vol
|
||||||
|
mountPath: /home/dvr
|
||||||
|
subPath: sdejpt/helm-live/dvr
|
||||||
|
- name: srs-vol
|
||||||
|
mountPath: /home/hls
|
||||||
|
subPath: sdejpt/helm-live/hls
|
||||||
|
terminationMessagePath: /dev/termination-log
|
||||||
|
terminationMessagePolicy: File
|
||||||
|
imagePullPolicy: Always
|
||||||
|
- name: oss-adaptor
|
||||||
|
image: 134.80.124.7:8033/cmii/cmii-srs-oss-adaptor:2023-SA
|
||||||
|
env:
|
||||||
|
- name: OSS_ENDPOINT
|
||||||
|
value: 'http://134.80.124.15:9000'
|
||||||
|
- name: OSS_AK
|
||||||
|
value: cmii
|
||||||
|
- name: OSS_SK
|
||||||
|
value: 'B#923fC7mk'
|
||||||
|
- name: OSS_BUCKET
|
||||||
|
value: live-cluster-hls
|
||||||
|
- name: SRS_OP
|
||||||
|
value: 'http://helm-live-op-svc-v2:8080'
|
||||||
|
- name: MYSQL_ENDPOINT
|
||||||
|
value: 'helm-mysql:3306'
|
||||||
|
- name: MYSQL_USERNAME
|
||||||
|
value: k8s_admin
|
||||||
|
- name: MYSQL_PASSWORD
|
||||||
|
value: fP#UaH6qQ3)8
|
||||||
|
- name: MYSQL_DATABASE
|
||||||
|
value: cmii_live_srs_op
|
||||||
|
- name: MYSQL_TABLE
|
||||||
|
value: live_segment
|
||||||
|
- name: LOG_LEVEL
|
||||||
|
value: info
|
||||||
|
- name: OSS_META
|
||||||
|
value: 'yes'
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 2000m
|
||||||
|
memory: 4Gi
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 256Mi
|
||||||
|
volumeMounts:
|
||||||
|
- name: srs-vol
|
||||||
|
mountPath: /cmii/share/hls
|
||||||
|
subPath: sdejpt/helm-live/hls
|
||||||
|
terminationMessagePath: /dev/termination-log
|
||||||
|
terminationMessagePolicy: File
|
||||||
|
imagePullPolicy: Always
|
||||||
|
restartPolicy: Always
|
||||||
|
terminationGracePeriodSeconds: 30
|
||||||
|
dnsPolicy: ClusterFirst
|
||||||
|
securityContext: {}
|
||||||
|
imagePullSecrets:
|
||||||
|
- name: harborsecret
|
||||||
|
affinity: {}
|
||||||
|
schedulerName: default-scheduler
|
||||||
|
serviceName: helm-live-srsrtc-svc
|
||||||
|
podManagementPolicy: OrderedReady
|
||||||
|
updateStrategy:
|
||||||
|
type: RollingUpdate
|
||||||
|
rollingUpdate:
|
||||||
|
partition: 0
|
||||||
|
revisionHistoryLimit: 10
|
||||||
|
---
|
||||||
|
# live-srs部分
|
||||||
|
---
|
||||||
|
kind: Deployment
|
||||||
|
apiVersion: apps/v1
|
||||||
|
metadata:
|
||||||
|
name: helm-live-op-v2
|
||||||
|
namespace: sdejpt
|
||||||
|
labels:
|
||||||
|
octopus.control: wdd
|
||||||
|
app.kubernetes.io/managed-by: octopus
|
||||||
|
cmii.app: live-engine
|
||||||
|
cmii.type: live
|
||||||
|
helm.sh/chart: cmlc-live-live-op-2.0.0
|
||||||
|
live-role: op-v2
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
live-role: op-v2
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
live-role: op-v2
|
||||||
|
spec:
|
||||||
|
volumes:
|
||||||
|
- name: srs-conf-file
|
||||||
|
configMap:
|
||||||
|
name: helm-live-op-cm-v2
|
||||||
|
items:
|
||||||
|
- key: live.op.conf
|
||||||
|
path: bootstrap.yaml
|
||||||
|
defaultMode: 420
|
||||||
|
containers:
|
||||||
|
- name: helm-live-op-v2
|
||||||
|
image: 134.80.124.7:8033/cmii/cmii-live-operator:5.2.0
|
||||||
|
ports:
|
||||||
|
- name: operator
|
||||||
|
containerPort: 8080
|
||||||
|
protocol: TCP
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 4800m
|
||||||
|
memory: 4Gi
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 256Mi
|
||||||
|
volumeMounts:
|
||||||
|
- name: srs-conf-file
|
||||||
|
mountPath: /cmii/bootstrap.yaml
|
||||||
|
subPath: bootstrap.yaml
|
||||||
|
livenessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /cmii/health
|
||||||
|
port: 8080
|
||||||
|
scheme: HTTP
|
||||||
|
initialDelaySeconds: 60
|
||||||
|
timeoutSeconds: 5
|
||||||
|
periodSeconds: 20
|
||||||
|
successThreshold: 1
|
||||||
|
failureThreshold: 3
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /cmii/health
|
||||||
|
port: 8080
|
||||||
|
scheme: HTTP
|
||||||
|
initialDelaySeconds: 60
|
||||||
|
timeoutSeconds: 5
|
||||||
|
periodSeconds: 20
|
||||||
|
successThreshold: 1
|
||||||
|
failureThreshold: 3
|
||||||
|
terminationMessagePath: /dev/termination-log
|
||||||
|
terminationMessagePolicy: File
|
||||||
|
imagePullPolicy: Always
|
||||||
|
restartPolicy: Always
|
||||||
|
terminationGracePeriodSeconds: 30
|
||||||
|
dnsPolicy: ClusterFirst
|
||||||
|
securityContext: {}
|
||||||
|
imagePullSecrets:
|
||||||
|
- name: harborsecret
|
||||||
|
affinity: {}
|
||||||
|
schedulerName: default-scheduler
|
||||||
|
strategy:
|
||||||
|
type: RollingUpdate
|
||||||
|
rollingUpdate:
|
||||||
|
maxUnavailable: 25%
|
||||||
|
maxSurge: 25%
|
||||||
|
revisionHistoryLimit: 10
|
||||||
|
progressDeadlineSeconds: 600
|
||||||
|
---
|
||||||
|
kind: Service
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: helm-live-op-svc-v2
|
||||||
|
namespace: sdejpt
|
||||||
|
labels:
|
||||||
|
octopus.control: wdd
|
||||||
|
app.kubernetes.io/managed-by: octopus
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- protocol: TCP
|
||||||
|
port: 8080
|
||||||
|
targetPort: 8080
|
||||||
|
nodePort: 30333
|
||||||
|
selector:
|
||||||
|
live-role: op-v2
|
||||||
|
type: NodePort
|
||||||
|
sessionAffinity: None
|
||||||
|
---
|
||||||
|
kind: Service
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: helm-live-op-svc
|
||||||
|
namespace: sdejpt
|
||||||
|
labels:
|
||||||
|
octopus.control: wdd
|
||||||
|
app.kubernetes.io/managed-by: octopus
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- protocol: TCP
|
||||||
|
port: 8080
|
||||||
|
targetPort: 8080
|
||||||
|
selector:
|
||||||
|
live-role: op
|
||||||
|
type: ClusterIP
|
||||||
|
sessionAffinity: None
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: helm-live-op-cm-v2
|
||||||
|
namespace: sdejpt
|
||||||
|
labels:
|
||||||
|
octopus.control: wdd
|
||||||
|
app.kubernetes.io/managed-by: octopus
|
||||||
|
cmii.app: live-engine
|
||||||
|
cmii.type: live
|
||||||
|
data:
|
||||||
|
live.op.conf: |-
|
||||||
|
server:
|
||||||
|
port: 8080
|
||||||
|
spring:
|
||||||
|
main:
|
||||||
|
allow-bean-definition-overriding: true
|
||||||
|
allow-circular-references: true
|
||||||
|
application:
|
||||||
|
name: cmii-live-operator
|
||||||
|
platform:
|
||||||
|
info:
|
||||||
|
name: cmii-live-operator
|
||||||
|
description: cmii-live-operator
|
||||||
|
version: 6.0.0
|
||||||
|
scanPackage: com.cmii.live.op
|
||||||
|
cloud:
|
||||||
|
nacos:
|
||||||
|
config:
|
||||||
|
username: nacos
|
||||||
|
password: KingKong@95461234
|
||||||
|
server-addr: helm-nacos:8848
|
||||||
|
extension-configs:
|
||||||
|
- data-id: cmii-live-operator.yml
|
||||||
|
group: 6.0.0
|
||||||
|
refresh: true
|
||||||
|
shared-configs:
|
||||||
|
- data-id: cmii-backend-system.yml
|
||||||
|
group: 6.0.0
|
||||||
|
refresh: true
|
||||||
|
discovery:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
live:
|
||||||
|
engine:
|
||||||
|
type: srs
|
||||||
|
endpoint: 'http://helm-live-srs-svc:1985'
|
||||||
|
proto:
|
||||||
|
rtmp: 'rtmp://134.80.124.6:31935'
|
||||||
|
rtsp: 'rtsp://134.80.124.6:30554'
|
||||||
|
srt: 'srt://134.80.124.6:30556'
|
||||||
|
flv: 'http://134.80.124.6:30500'
|
||||||
|
hls: 'http://134.80.124.6:30500'
|
||||||
|
rtc: 'webrtc://134.80.124.6:30080'
|
||||||
|
replay: 'https://134.80.124.6:30333'
|
||||||
|
minio:
|
||||||
|
endpoint: http://134.80.124.15:9000
|
||||||
|
access-key: cmii
|
||||||
|
secret-key: B#923fC7mk
|
||||||
|
bucket: live-cluster-hls
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -2,14 +2,182 @@
|
|||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: tenant-prefix-qinghaitourism
|
name: tenant-prefix-mws
|
||||||
namespace: uavcloud-devflight
|
namespace: uavcloud-devflight
|
||||||
data:
|
data:
|
||||||
ingress-config.js: |-
|
ingress-config.js: |-
|
||||||
var __GlobalIngressConfig = {
|
var __GlobalIngressConfig = {
|
||||||
TenantEnvironment: "devflight",
|
TenantEnvironment: "devflight",
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
ApplicationShortName: "qinghaitourism",
|
ApplicationShortName: "mws",
|
||||||
|
AppClientId: "APP_uKniXPELlRERBBwK"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-security
|
||||||
|
namespace: uavcloud-devflight
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devflight",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "security",
|
||||||
|
AppClientId: "APP_JUSEMc7afyWXxvE7"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-share
|
||||||
|
namespace: uavcloud-devflight
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devflight",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "share",
|
||||||
|
AppClientId: "APP_4lVSVI0ZGxTssir8"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-traffic
|
||||||
|
namespace: uavcloud-devflight
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devflight",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "traffic",
|
||||||
|
AppClientId: "APP_Jc8i2wOQ1t73QEJS"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-pangu
|
||||||
|
namespace: uavcloud-devflight
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devflight",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-detection
|
||||||
|
namespace: uavcloud-devflight
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devflight",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "detection",
|
||||||
|
AppClientId: "APP_FDHW2VLVDWPnnOCy"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-oms
|
||||||
|
namespace: uavcloud-devflight
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devflight",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "oms",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-seniclive
|
||||||
|
namespace: uavcloud-devflight
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devflight",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "seniclive",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-hyper
|
||||||
|
namespace: uavcloud-devflight
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devflight",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "hyper",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-secenter
|
||||||
|
namespace: uavcloud-devflight
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devflight",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "secenter",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-supervision
|
||||||
|
namespace: uavcloud-devflight
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devflight",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "supervision",
|
||||||
|
AppClientId: "APP_qqSu82THfexI8PLM"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-logistics
|
||||||
|
namespace: uavcloud-devflight
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devflight",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "logistics",
|
||||||
|
AppClientId: "APP_PvdfRRRBPL8xbIwl"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-threedsimulation
|
||||||
|
namespace: uavcloud-devflight
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devflight",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "threedsimulation",
|
||||||
AppClientId: "empty"
|
AppClientId: "empty"
|
||||||
}
|
}
|
||||||
---
|
---
|
||||||
@@ -30,126 +198,70 @@ data:
|
|||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: tenant-prefix-cmsportal
|
name: tenant-prefix-mianyangbackend
|
||||||
namespace: uavcloud-devflight
|
namespace: uavcloud-devflight
|
||||||
data:
|
data:
|
||||||
ingress-config.js: |-
|
ingress-config.js: |-
|
||||||
var __GlobalIngressConfig = {
|
var __GlobalIngressConfig = {
|
||||||
TenantEnvironment: "devflight",
|
TenantEnvironment: "devflight",
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
ApplicationShortName: "cmsportal",
|
ApplicationShortName: "mianyangbackend",
|
||||||
AppClientId: "empty"
|
AppClientId: "empty"
|
||||||
}
|
}
|
||||||
---
|
---
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: tenant-prefix-security
|
name: tenant-prefix-supervisionh5
|
||||||
namespace: uavcloud-devflight
|
namespace: uavcloud-devflight
|
||||||
data:
|
data:
|
||||||
ingress-config.js: |-
|
ingress-config.js: |-
|
||||||
var __GlobalIngressConfig = {
|
var __GlobalIngressConfig = {
|
||||||
TenantEnvironment: "devflight",
|
TenantEnvironment: "devflight",
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
ApplicationShortName: "security",
|
ApplicationShortName: "supervisionh5",
|
||||||
AppClientId: "APP_JUSEMc7afyWXxvE7"
|
AppClientId: "APP_qqSu82THfexI8PLM"
|
||||||
}
|
}
|
||||||
---
|
---
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: tenant-prefix-splice
|
name: tenant-prefix-scanner
|
||||||
namespace: uavcloud-devflight
|
namespace: uavcloud-devflight
|
||||||
data:
|
data:
|
||||||
ingress-config.js: |-
|
ingress-config.js: |-
|
||||||
var __GlobalIngressConfig = {
|
var __GlobalIngressConfig = {
|
||||||
TenantEnvironment: "devflight",
|
TenantEnvironment: "devflight",
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
ApplicationShortName: "splice",
|
ApplicationShortName: "scanner",
|
||||||
AppClientId: "APP_zE0M3sTRXrCIJS8Y"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-uas
|
|
||||||
namespace: uavcloud-devflight
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "devflight",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "uas",
|
|
||||||
AppClientId: "empty"
|
AppClientId: "empty"
|
||||||
}
|
}
|
||||||
---
|
---
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: tenant-prefix-media
|
name: tenant-prefix-qingdao
|
||||||
namespace: uavcloud-devflight
|
namespace: uavcloud-devflight
|
||||||
data:
|
data:
|
||||||
ingress-config.js: |-
|
ingress-config.js: |-
|
||||||
var __GlobalIngressConfig = {
|
var __GlobalIngressConfig = {
|
||||||
TenantEnvironment: "devflight",
|
TenantEnvironment: "devflight",
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
ApplicationShortName: "media",
|
ApplicationShortName: "qingdao",
|
||||||
AppClientId: "APP_4AU8lbifESQO4FD6"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-oms
|
|
||||||
namespace: uavcloud-devflight
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "devflight",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "oms",
|
|
||||||
AppClientId: "empty"
|
AppClientId: "empty"
|
||||||
}
|
}
|
||||||
---
|
---
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: tenant-prefix-threedsimulation
|
name: tenant-prefix-qinghaitourism
|
||||||
namespace: uavcloud-devflight
|
namespace: uavcloud-devflight
|
||||||
data:
|
data:
|
||||||
ingress-config.js: |-
|
ingress-config.js: |-
|
||||||
var __GlobalIngressConfig = {
|
var __GlobalIngressConfig = {
|
||||||
TenantEnvironment: "devflight",
|
TenantEnvironment: "devflight",
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
ApplicationShortName: "threedsimulation",
|
ApplicationShortName: "qinghaitourism",
|
||||||
AppClientId: "empty"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-smauth
|
|
||||||
namespace: uavcloud-devflight
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "devflight",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "smauth",
|
|
||||||
AppClientId: "empty"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-smsecret
|
|
||||||
namespace: uavcloud-devflight
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "devflight",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "smsecret",
|
|
||||||
AppClientId: "empty"
|
AppClientId: "empty"
|
||||||
}
|
}
|
||||||
---
|
---
|
||||||
@@ -170,15 +282,85 @@ data:
|
|||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: tenant-prefix-supervisionh5
|
name: tenant-prefix-eventsh5
|
||||||
namespace: uavcloud-devflight
|
namespace: uavcloud-devflight
|
||||||
data:
|
data:
|
||||||
ingress-config.js: |-
|
ingress-config.js: |-
|
||||||
var __GlobalIngressConfig = {
|
var __GlobalIngressConfig = {
|
||||||
TenantEnvironment: "devflight",
|
TenantEnvironment: "devflight",
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
ApplicationShortName: "supervisionh5",
|
ApplicationShortName: "eventsh5",
|
||||||
AppClientId: "APP_qqSu82THfexI8PLM"
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-emergency
|
||||||
|
namespace: uavcloud-devflight
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devflight",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "emergency",
|
||||||
|
AppClientId: "APP_aGsTAY1uMZrpKdfk"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-splice
|
||||||
|
namespace: uavcloud-devflight
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devflight",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "splice",
|
||||||
|
AppClientId: "APP_zE0M3sTRXrCIJS8Y"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-dispatchh5
|
||||||
|
namespace: uavcloud-devflight
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devflight",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "dispatchh5",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-media
|
||||||
|
namespace: uavcloud-devflight
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devflight",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "media",
|
||||||
|
AppClientId: "APP_4AU8lbifESQO4FD6"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-securityh5
|
||||||
|
namespace: uavcloud-devflight
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devflight",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "securityh5",
|
||||||
|
AppClientId: "APP_N3ImO0Ubfu9peRHD"
|
||||||
}
|
}
|
||||||
---
|
---
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
@@ -226,145 +408,33 @@ data:
|
|||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: tenant-prefix-supervision
|
name: tenant-prefix-pilot2cloud
|
||||||
namespace: uavcloud-devflight
|
namespace: uavcloud-devflight
|
||||||
data:
|
data:
|
||||||
ingress-config.js: |-
|
ingress-config.js: |-
|
||||||
var __GlobalIngressConfig = {
|
var __GlobalIngressConfig = {
|
||||||
TenantEnvironment: "devflight",
|
TenantEnvironment: "devflight",
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
ApplicationShortName: "supervision",
|
ApplicationShortName: "pilot2cloud",
|
||||||
AppClientId: "APP_qqSu82THfexI8PLM"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-logistics
|
|
||||||
namespace: uavcloud-devflight
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "devflight",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "logistics",
|
|
||||||
AppClientId: "APP_PvdfRRRBPL8xbIwl"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-hyper
|
|
||||||
namespace: uavcloud-devflight
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "devflight",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "hyper",
|
|
||||||
AppClientId: "empty"
|
AppClientId: "empty"
|
||||||
}
|
}
|
||||||
---
|
---
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: tenant-prefix-securityh5
|
name: tenant-prefix-smsecret
|
||||||
namespace: uavcloud-devflight
|
namespace: uavcloud-devflight
|
||||||
data:
|
data:
|
||||||
ingress-config.js: |-
|
ingress-config.js: |-
|
||||||
var __GlobalIngressConfig = {
|
var __GlobalIngressConfig = {
|
||||||
TenantEnvironment: "devflight",
|
TenantEnvironment: "devflight",
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
ApplicationShortName: "securityh5",
|
ApplicationShortName: "smsecret",
|
||||||
AppClientId: "APP_N3ImO0Ubfu9peRHD"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-seniclive
|
|
||||||
namespace: uavcloud-devflight
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "devflight",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "seniclive",
|
|
||||||
AppClientId: "empty"
|
AppClientId: "empty"
|
||||||
}
|
}
|
||||||
---
|
---
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-share
|
|
||||||
namespace: uavcloud-devflight
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "devflight",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "share",
|
|
||||||
AppClientId: "APP_4lVSVI0ZGxTssir8"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-dispatchh5
|
|
||||||
namespace: uavcloud-devflight
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "devflight",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "dispatchh5",
|
|
||||||
AppClientId: "empty"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-pangu
|
|
||||||
namespace: uavcloud-devflight
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "devflight",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "",
|
|
||||||
AppClientId: "empty"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-detection
|
|
||||||
namespace: uavcloud-devflight
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "devflight",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "detection",
|
|
||||||
AppClientId: "APP_FDHW2VLVDWPnnOCy"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-emergency
|
|
||||||
namespace: uavcloud-devflight
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "devflight",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "emergency",
|
|
||||||
AppClientId: "APP_aGsTAY1uMZrpKdfk"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
metadata:
|
||||||
name: tenant-prefix-multiterminal
|
name: tenant-prefix-multiterminal
|
||||||
namespace: uavcloud-devflight
|
namespace: uavcloud-devflight
|
||||||
@@ -379,90 +449,6 @@ data:
|
|||||||
---
|
---
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-visualization
|
|
||||||
namespace: uavcloud-devflight
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "devflight",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "visualization",
|
|
||||||
AppClientId: "empty"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-scanner
|
|
||||||
namespace: uavcloud-devflight
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "devflight",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "scanner",
|
|
||||||
AppClientId: "empty"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-ai-brain
|
|
||||||
namespace: uavcloud-devflight
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "devflight",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "ai-brain",
|
|
||||||
AppClientId: "APP_rafnuCAmBESIVYMH"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-mws
|
|
||||||
namespace: uavcloud-devflight
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "devflight",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "mws",
|
|
||||||
AppClientId: "APP_uKniXPELlRERBBwK"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-open
|
|
||||||
namespace: uavcloud-devflight
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "devflight",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "open",
|
|
||||||
AppClientId: "empty"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-qingdao
|
|
||||||
namespace: uavcloud-devflight
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "devflight",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "qingdao",
|
|
||||||
AppClientId: "empty"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
metadata:
|
||||||
name: tenant-prefix-armypeople
|
name: tenant-prefix-armypeople
|
||||||
namespace: uavcloud-devflight
|
namespace: uavcloud-devflight
|
||||||
@@ -492,27 +478,83 @@ data:
|
|||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: tenant-prefix-traffic
|
name: tenant-prefix-cmsportal
|
||||||
namespace: uavcloud-devflight
|
namespace: uavcloud-devflight
|
||||||
data:
|
data:
|
||||||
ingress-config.js: |-
|
ingress-config.js: |-
|
||||||
var __GlobalIngressConfig = {
|
var __GlobalIngressConfig = {
|
||||||
TenantEnvironment: "devflight",
|
TenantEnvironment: "devflight",
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
ApplicationShortName: "traffic",
|
ApplicationShortName: "cmsportal",
|
||||||
AppClientId: "APP_Jc8i2wOQ1t73QEJS"
|
AppClientId: "empty"
|
||||||
}
|
}
|
||||||
---
|
---
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: tenant-prefix-pilot2cloud
|
name: tenant-prefix-open
|
||||||
namespace: uavcloud-devflight
|
namespace: uavcloud-devflight
|
||||||
data:
|
data:
|
||||||
ingress-config.js: |-
|
ingress-config.js: |-
|
||||||
var __GlobalIngressConfig = {
|
var __GlobalIngressConfig = {
|
||||||
TenantEnvironment: "devflight",
|
TenantEnvironment: "devflight",
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
ApplicationShortName: "pilot2cloud",
|
ApplicationShortName: "open",
|
||||||
AppClientId: "empty"
|
AppClientId: "empty"
|
||||||
}
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-visualization
|
||||||
|
namespace: uavcloud-devflight
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devflight",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "visualization",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-uas
|
||||||
|
namespace: uavcloud-devflight
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devflight",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "uas",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-smauth
|
||||||
|
namespace: uavcloud-devflight
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devflight",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "smauth",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-ai-brain
|
||||||
|
namespace: uavcloud-devflight
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devflight",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "ai-brain",
|
||||||
|
AppClientId: "APP_rafnuCAmBESIVYMH"
|
||||||
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -26,11 +26,13 @@ metadata:
|
|||||||
rewrite ^(/detection)$ $1/ redirect;
|
rewrite ^(/detection)$ $1/ redirect;
|
||||||
rewrite ^(/dispatchh5)$ $1/ redirect;
|
rewrite ^(/dispatchh5)$ $1/ redirect;
|
||||||
rewrite ^(/emergency)$ $1/ redirect;
|
rewrite ^(/emergency)$ $1/ redirect;
|
||||||
|
rewrite ^(/eventsh5)$ $1/ redirect;
|
||||||
rewrite ^(/hljtt)$ $1/ redirect;
|
rewrite ^(/hljtt)$ $1/ redirect;
|
||||||
rewrite ^(/hyper)$ $1/ redirect;
|
rewrite ^(/hyper)$ $1/ redirect;
|
||||||
rewrite ^(/jiangsuwenlv)$ $1/ redirect;
|
rewrite ^(/jiangsuwenlv)$ $1/ redirect;
|
||||||
rewrite ^(/logistics)$ $1/ redirect;
|
rewrite ^(/logistics)$ $1/ redirect;
|
||||||
rewrite ^(/media)$ $1/ redirect;
|
rewrite ^(/media)$ $1/ redirect;
|
||||||
|
rewrite ^(/mianyangbackend)$ $1/ redirect;
|
||||||
rewrite ^(/multiterminal)$ $1/ redirect;
|
rewrite ^(/multiterminal)$ $1/ redirect;
|
||||||
rewrite ^(/mws)$ $1/ redirect;
|
rewrite ^(/mws)$ $1/ redirect;
|
||||||
rewrite ^(/oms)$ $1/ redirect;
|
rewrite ^(/oms)$ $1/ redirect;
|
||||||
@@ -51,6 +53,7 @@ metadata:
|
|||||||
rewrite ^(/uas)$ $1/ redirect;
|
rewrite ^(/uas)$ $1/ redirect;
|
||||||
rewrite ^(/uasms)$ $1/ redirect;
|
rewrite ^(/uasms)$ $1/ redirect;
|
||||||
rewrite ^(/visualization)$ $1/ redirect;
|
rewrite ^(/visualization)$ $1/ redirect;
|
||||||
|
rewrite ^(/secenter)$ $1/ redirect;
|
||||||
spec:
|
spec:
|
||||||
rules:
|
rules:
|
||||||
- host: fake-domain.uavcloud-devflight.io
|
- host: fake-domain.uavcloud-devflight.io
|
||||||
@@ -121,6 +124,11 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-emergency-rescue
|
serviceName: cmii-uav-platform-emergency-rescue
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
|
- path: /devflight/eventsh5/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-eventsh5
|
||||||
|
servicePort: 9528
|
||||||
- path: /devflight/hljtt/?(.*)
|
- path: /devflight/hljtt/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
@@ -146,6 +154,11 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-media
|
serviceName: cmii-uav-platform-media
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
|
- path: /devflight/mianyangbackend/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-mianyangbackend
|
||||||
|
servicePort: 9528
|
||||||
- path: /devflight/multiterminal/?(.*)
|
- path: /devflight/multiterminal/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
@@ -246,6 +259,11 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-visualization
|
serviceName: cmii-uav-platform-visualization
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
|
- path: /devflight/secenter/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uavms-platform-security-center
|
||||||
|
servicePort: 9528
|
||||||
---
|
---
|
||||||
apiVersion: networking.k8s.io/v1beta1
|
apiVersion: networking.k8s.io/v1beta1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
@@ -430,6 +448,14 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-emergency
|
serviceName: cmii-uav-emergency
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
|
- host: cmii-uav-fwdd.uavcloud-devflight.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-fwdd
|
||||||
|
servicePort: 8080
|
||||||
- host: cmii-uav-gateway.uavcloud-devflight.io
|
- host: cmii-uav-gateway.uavcloud-devflight.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
@@ -622,13 +648,13 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-waypoint
|
serviceName: cmii-uav-waypoint
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
- host: uavms-security-center.uavcloud-devflight.io
|
- host: cmii-uavms-security-center.uavcloud-devflight.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
serviceName: uavms-security-center
|
serviceName: cmii-uavms-security-center
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
---
|
---
|
||||||
apiVersion: networking.k8s.io/v1beta1
|
apiVersion: networking.k8s.io/v1beta1
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -2,15 +2,113 @@
|
|||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: tenant-prefix-media
|
name: tenant-prefix-pangu
|
||||||
namespace: uavcloud-devflight
|
namespace: uavcloud-devflight
|
||||||
data:
|
data:
|
||||||
ingress-config.js: |-
|
ingress-config.js: |-
|
||||||
var __GlobalIngressConfig = {
|
var __GlobalIngressConfig = {
|
||||||
TenantEnvironment: "uavcloud-devflight",
|
TenantEnvironment: "devflight",
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
ApplicationShortName: "media",
|
ApplicationShortName: "",
|
||||||
AppClientId: "APP_4AU8lbifESQO4FD6"
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-splice
|
||||||
|
namespace: uavcloud-devflight
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devflight",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "splice",
|
||||||
|
AppClientId: "APP_zE0M3sTRXrCIJS8Y"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-blockchain
|
||||||
|
namespace: uavcloud-devflight
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devflight",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "blockchain",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-traffic
|
||||||
|
namespace: uavcloud-devflight
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devflight",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "traffic",
|
||||||
|
AppClientId: "APP_Jc8i2wOQ1t73QEJS"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-jiangsuwenlv
|
||||||
|
namespace: uavcloud-devflight
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devflight",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "jiangsuwenlv",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-visualization
|
||||||
|
namespace: uavcloud-devflight
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devflight",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "visualization",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-secenter
|
||||||
|
namespace: uavcloud-devflight
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devflight",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "secenter",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-securityh5
|
||||||
|
namespace: uavcloud-devflight
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devflight",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "securityh5",
|
||||||
|
AppClientId: "APP_N3ImO0Ubfu9peRHD"
|
||||||
}
|
}
|
||||||
---
|
---
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
@@ -21,7 +119,7 @@ metadata:
|
|||||||
data:
|
data:
|
||||||
ingress-config.js: |-
|
ingress-config.js: |-
|
||||||
var __GlobalIngressConfig = {
|
var __GlobalIngressConfig = {
|
||||||
TenantEnvironment: "uavcloud-devflight",
|
TenantEnvironment: "devflight",
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
ApplicationShortName: "seniclive",
|
ApplicationShortName: "seniclive",
|
||||||
AppClientId: "empty"
|
AppClientId: "empty"
|
||||||
@@ -35,7 +133,7 @@ metadata:
|
|||||||
data:
|
data:
|
||||||
ingress-config.js: |-
|
ingress-config.js: |-
|
||||||
var __GlobalIngressConfig = {
|
var __GlobalIngressConfig = {
|
||||||
TenantEnvironment: "uavcloud-devflight",
|
TenantEnvironment: "devflight",
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
ApplicationShortName: "qingdao",
|
ApplicationShortName: "qingdao",
|
||||||
AppClientId: "empty"
|
AppClientId: "empty"
|
||||||
@@ -43,13 +141,97 @@ data:
|
|||||||
---
|
---
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-uasms
|
||||||
|
namespace: uavcloud-devflight
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devflight",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "uasms",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-supervision
|
||||||
|
namespace: uavcloud-devflight
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devflight",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "supervision",
|
||||||
|
AppClientId: "APP_qqSu82THfexI8PLM"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-armypeople
|
||||||
|
namespace: uavcloud-devflight
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devflight",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "armypeople",
|
||||||
|
AppClientId: "APP_UIegse6Lfou9pO1U"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-media
|
||||||
|
namespace: uavcloud-devflight
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devflight",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "media",
|
||||||
|
AppClientId: "APP_4AU8lbifESQO4FD6"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-open
|
||||||
|
namespace: uavcloud-devflight
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devflight",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "open",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-hyper
|
||||||
|
namespace: uavcloud-devflight
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devflight",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "hyper",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: tenant-prefix-scanner
|
name: tenant-prefix-scanner
|
||||||
namespace: uavcloud-devflight
|
namespace: uavcloud-devflight
|
||||||
data:
|
data:
|
||||||
ingress-config.js: |-
|
ingress-config.js: |-
|
||||||
var __GlobalIngressConfig = {
|
var __GlobalIngressConfig = {
|
||||||
TenantEnvironment: "uavcloud-devflight",
|
TenantEnvironment: "devflight",
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
ApplicationShortName: "scanner",
|
ApplicationShortName: "scanner",
|
||||||
AppClientId: "empty"
|
AppClientId: "empty"
|
||||||
@@ -63,7 +245,7 @@ metadata:
|
|||||||
data:
|
data:
|
||||||
ingress-config.js: |-
|
ingress-config.js: |-
|
||||||
var __GlobalIngressConfig = {
|
var __GlobalIngressConfig = {
|
||||||
TenantEnvironment: "uavcloud-devflight",
|
TenantEnvironment: "devflight",
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
ApplicationShortName: "base",
|
ApplicationShortName: "base",
|
||||||
AppClientId: "APP_9LY41OaKSqk2btY0"
|
AppClientId: "APP_9LY41OaKSqk2btY0"
|
||||||
@@ -71,237 +253,13 @@ data:
|
|||||||
---
|
---
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-threedsimulation
|
|
||||||
namespace: uavcloud-devflight
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "uavcloud-devflight",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "threedsimulation",
|
|
||||||
AppClientId: "empty"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-hyper
|
|
||||||
namespace: uavcloud-devflight
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "uavcloud-devflight",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "hyper",
|
|
||||||
AppClientId: "empty"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-logistics
|
|
||||||
namespace: uavcloud-devflight
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "uavcloud-devflight",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "logistics",
|
|
||||||
AppClientId: "APP_PvdfRRRBPL8xbIwl"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-pangu
|
|
||||||
namespace: uavcloud-devflight
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "uavcloud-devflight",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "",
|
|
||||||
AppClientId: "empty"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-armypeople
|
|
||||||
namespace: uavcloud-devflight
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "uavcloud-devflight",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "armypeople",
|
|
||||||
AppClientId: "APP_UIegse6Lfou9pO1U"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-oms
|
|
||||||
namespace: uavcloud-devflight
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "uavcloud-devflight",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "oms",
|
|
||||||
AppClientId: "empty"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-securityh5
|
|
||||||
namespace: uavcloud-devflight
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "uavcloud-devflight",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "securityh5",
|
|
||||||
AppClientId: "APP_N3ImO0Ubfu9peRHD"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-pilot2cloud
|
|
||||||
namespace: uavcloud-devflight
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "uavcloud-devflight",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "pilot2cloud",
|
|
||||||
AppClientId: "empty"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-smauth
|
|
||||||
namespace: uavcloud-devflight
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "uavcloud-devflight",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "smauth",
|
|
||||||
AppClientId: "empty"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-supervision
|
|
||||||
namespace: uavcloud-devflight
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "uavcloud-devflight",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "supervision",
|
|
||||||
AppClientId: "APP_qqSu82THfexI8PLM"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-share
|
|
||||||
namespace: uavcloud-devflight
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "uavcloud-devflight",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "share",
|
|
||||||
AppClientId: "APP_4lVSVI0ZGxTssir8"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-hljtt
|
|
||||||
namespace: uavcloud-devflight
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "uavcloud-devflight",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "hljtt",
|
|
||||||
AppClientId: "empty"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-dispatchh5
|
|
||||||
namespace: uavcloud-devflight
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "uavcloud-devflight",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "dispatchh5",
|
|
||||||
AppClientId: "empty"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-cmsportal
|
|
||||||
namespace: uavcloud-devflight
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "uavcloud-devflight",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "cmsportal",
|
|
||||||
AppClientId: "empty"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-open
|
|
||||||
namespace: uavcloud-devflight
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "uavcloud-devflight",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "open",
|
|
||||||
AppClientId: "empty"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-supervisionh5
|
|
||||||
namespace: uavcloud-devflight
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "uavcloud-devflight",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "supervisionh5",
|
|
||||||
AppClientId: "APP_qqSu82THfexI8PLM"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
metadata:
|
||||||
name: tenant-prefix-emergency
|
name: tenant-prefix-emergency
|
||||||
namespace: uavcloud-devflight
|
namespace: uavcloud-devflight
|
||||||
data:
|
data:
|
||||||
ingress-config.js: |-
|
ingress-config.js: |-
|
||||||
var __GlobalIngressConfig = {
|
var __GlobalIngressConfig = {
|
||||||
TenantEnvironment: "uavcloud-devflight",
|
TenantEnvironment: "devflight",
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
ApplicationShortName: "emergency",
|
ApplicationShortName: "emergency",
|
||||||
AppClientId: "APP_aGsTAY1uMZrpKdfk"
|
AppClientId: "APP_aGsTAY1uMZrpKdfk"
|
||||||
@@ -310,28 +268,84 @@ data:
|
|||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: tenant-prefix-multiterminal
|
name: tenant-prefix-security
|
||||||
namespace: uavcloud-devflight
|
namespace: uavcloud-devflight
|
||||||
data:
|
data:
|
||||||
ingress-config.js: |-
|
ingress-config.js: |-
|
||||||
var __GlobalIngressConfig = {
|
var __GlobalIngressConfig = {
|
||||||
TenantEnvironment: "uavcloud-devflight",
|
TenantEnvironment: "devflight",
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
ApplicationShortName: "multiterminal",
|
ApplicationShortName: "security",
|
||||||
AppClientId: "APP_PvdfRRRBPL8xbIwl"
|
AppClientId: "APP_JUSEMc7afyWXxvE7"
|
||||||
}
|
}
|
||||||
---
|
---
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: tenant-prefix-jiangsuwenlv
|
name: tenant-prefix-share
|
||||||
namespace: uavcloud-devflight
|
namespace: uavcloud-devflight
|
||||||
data:
|
data:
|
||||||
ingress-config.js: |-
|
ingress-config.js: |-
|
||||||
var __GlobalIngressConfig = {
|
var __GlobalIngressConfig = {
|
||||||
TenantEnvironment: "uavcloud-devflight",
|
TenantEnvironment: "devflight",
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
ApplicationShortName: "jiangsuwenlv",
|
ApplicationShortName: "share",
|
||||||
|
AppClientId: "APP_4lVSVI0ZGxTssir8"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-ai-brain
|
||||||
|
namespace: uavcloud-devflight
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devflight",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "ai-brain",
|
||||||
|
AppClientId: "APP_rafnuCAmBESIVYMH"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-cmsportal
|
||||||
|
namespace: uavcloud-devflight
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devflight",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "cmsportal",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-qinghaitourism
|
||||||
|
namespace: uavcloud-devflight
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devflight",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "qinghaitourism",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-pilot2cloud
|
||||||
|
namespace: uavcloud-devflight
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devflight",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "pilot2cloud",
|
||||||
AppClientId: "empty"
|
AppClientId: "empty"
|
||||||
}
|
}
|
||||||
---
|
---
|
||||||
@@ -343,7 +357,7 @@ metadata:
|
|||||||
data:
|
data:
|
||||||
ingress-config.js: |-
|
ingress-config.js: |-
|
||||||
var __GlobalIngressConfig = {
|
var __GlobalIngressConfig = {
|
||||||
TenantEnvironment: "uavcloud-devflight",
|
TenantEnvironment: "devflight",
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
ApplicationShortName: "smsecret",
|
ApplicationShortName: "smsecret",
|
||||||
AppClientId: "empty"
|
AppClientId: "empty"
|
||||||
@@ -351,13 +365,139 @@ data:
|
|||||||
---
|
---
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-smauth
|
||||||
|
namespace: uavcloud-devflight
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devflight",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "smauth",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-eventsh5
|
||||||
|
namespace: uavcloud-devflight
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devflight",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "eventsh5",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-mianyangbackend
|
||||||
|
namespace: uavcloud-devflight
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devflight",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "mianyangbackend",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-supervisionh5
|
||||||
|
namespace: uavcloud-devflight
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devflight",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "supervisionh5",
|
||||||
|
AppClientId: "APP_qqSu82THfexI8PLM"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-logistics
|
||||||
|
namespace: uavcloud-devflight
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devflight",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "logistics",
|
||||||
|
AppClientId: "APP_PvdfRRRBPL8xbIwl"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-oms
|
||||||
|
namespace: uavcloud-devflight
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devflight",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "oms",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-threedsimulation
|
||||||
|
namespace: uavcloud-devflight
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devflight",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "threedsimulation",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-uas
|
||||||
|
namespace: uavcloud-devflight
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devflight",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "uas",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-dispatchh5
|
||||||
|
namespace: uavcloud-devflight
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devflight",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "dispatchh5",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: tenant-prefix-classification
|
name: tenant-prefix-classification
|
||||||
namespace: uavcloud-devflight
|
namespace: uavcloud-devflight
|
||||||
data:
|
data:
|
||||||
ingress-config.js: |-
|
ingress-config.js: |-
|
||||||
var __GlobalIngressConfig = {
|
var __GlobalIngressConfig = {
|
||||||
TenantEnvironment: "uavcloud-devflight",
|
TenantEnvironment: "devflight",
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
ApplicationShortName: "classification",
|
ApplicationShortName: "classification",
|
||||||
AppClientId: "empty"
|
AppClientId: "empty"
|
||||||
@@ -365,97 +505,13 @@ data:
|
|||||||
---
|
---
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-ai-brain
|
|
||||||
namespace: uavcloud-devflight
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "uavcloud-devflight",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "ai-brain",
|
|
||||||
AppClientId: "APP_rafnuCAmBESIVYMH"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-mws
|
|
||||||
namespace: uavcloud-devflight
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "uavcloud-devflight",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "mws",
|
|
||||||
AppClientId: "APP_uKniXPELlRERBBwK"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-security
|
|
||||||
namespace: uavcloud-devflight
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "uavcloud-devflight",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "security",
|
|
||||||
AppClientId: "APP_JUSEMc7afyWXxvE7"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-splice
|
|
||||||
namespace: uavcloud-devflight
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "uavcloud-devflight",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "splice",
|
|
||||||
AppClientId: "APP_zE0M3sTRXrCIJS8Y"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-uas
|
|
||||||
namespace: uavcloud-devflight
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "uavcloud-devflight",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "uas",
|
|
||||||
AppClientId: "empty"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-blockchain
|
|
||||||
namespace: uavcloud-devflight
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "uavcloud-devflight",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "blockchain",
|
|
||||||
AppClientId: "empty"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
metadata:
|
||||||
name: tenant-prefix-detection
|
name: tenant-prefix-detection
|
||||||
namespace: uavcloud-devflight
|
namespace: uavcloud-devflight
|
||||||
data:
|
data:
|
||||||
ingress-config.js: |-
|
ingress-config.js: |-
|
||||||
var __GlobalIngressConfig = {
|
var __GlobalIngressConfig = {
|
||||||
TenantEnvironment: "uavcloud-devflight",
|
TenantEnvironment: "devflight",
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
ApplicationShortName: "detection",
|
ApplicationShortName: "detection",
|
||||||
AppClientId: "APP_FDHW2VLVDWPnnOCy"
|
AppClientId: "APP_FDHW2VLVDWPnnOCy"
|
||||||
@@ -464,55 +520,41 @@ data:
|
|||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: tenant-prefix-qinghaitourism
|
name: tenant-prefix-multiterminal
|
||||||
namespace: uavcloud-devflight
|
namespace: uavcloud-devflight
|
||||||
data:
|
data:
|
||||||
ingress-config.js: |-
|
ingress-config.js: |-
|
||||||
var __GlobalIngressConfig = {
|
var __GlobalIngressConfig = {
|
||||||
TenantEnvironment: "uavcloud-devflight",
|
TenantEnvironment: "devflight",
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
ApplicationShortName: "qinghaitourism",
|
ApplicationShortName: "multiterminal",
|
||||||
AppClientId: "empty"
|
AppClientId: "APP_PvdfRRRBPL8xbIwl"
|
||||||
}
|
}
|
||||||
---
|
---
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: tenant-prefix-visualization
|
name: tenant-prefix-mws
|
||||||
namespace: uavcloud-devflight
|
namespace: uavcloud-devflight
|
||||||
data:
|
data:
|
||||||
ingress-config.js: |-
|
ingress-config.js: |-
|
||||||
var __GlobalIngressConfig = {
|
var __GlobalIngressConfig = {
|
||||||
TenantEnvironment: "uavcloud-devflight",
|
TenantEnvironment: "devflight",
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
ApplicationShortName: "visualization",
|
ApplicationShortName: "mws",
|
||||||
AppClientId: "empty"
|
AppClientId: "APP_uKniXPELlRERBBwK"
|
||||||
}
|
}
|
||||||
---
|
---
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: tenant-prefix-uasms
|
name: tenant-prefix-hljtt
|
||||||
namespace: uavcloud-devflight
|
namespace: uavcloud-devflight
|
||||||
data:
|
data:
|
||||||
ingress-config.js: |-
|
ingress-config.js: |-
|
||||||
var __GlobalIngressConfig = {
|
var __GlobalIngressConfig = {
|
||||||
TenantEnvironment: "uavcloud-devflight",
|
TenantEnvironment: "devflight",
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
ApplicationShortName: "uasms",
|
ApplicationShortName: "hljtt",
|
||||||
AppClientId: "empty"
|
AppClientId: "empty"
|
||||||
}
|
}
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-traffic
|
|
||||||
namespace: uavcloud-devflight
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "uavcloud-devflight",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "traffic",
|
|
||||||
AppClientId: "APP_Jc8i2wOQ1t73QEJS"
|
|
||||||
}
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -26,11 +26,13 @@ metadata:
|
|||||||
rewrite ^(/detection)$ $1/ redirect;
|
rewrite ^(/detection)$ $1/ redirect;
|
||||||
rewrite ^(/dispatchh5)$ $1/ redirect;
|
rewrite ^(/dispatchh5)$ $1/ redirect;
|
||||||
rewrite ^(/emergency)$ $1/ redirect;
|
rewrite ^(/emergency)$ $1/ redirect;
|
||||||
|
rewrite ^(/eventsh5)$ $1/ redirect;
|
||||||
rewrite ^(/hljtt)$ $1/ redirect;
|
rewrite ^(/hljtt)$ $1/ redirect;
|
||||||
rewrite ^(/hyper)$ $1/ redirect;
|
rewrite ^(/hyper)$ $1/ redirect;
|
||||||
rewrite ^(/jiangsuwenlv)$ $1/ redirect;
|
rewrite ^(/jiangsuwenlv)$ $1/ redirect;
|
||||||
rewrite ^(/logistics)$ $1/ redirect;
|
rewrite ^(/logistics)$ $1/ redirect;
|
||||||
rewrite ^(/media)$ $1/ redirect;
|
rewrite ^(/media)$ $1/ redirect;
|
||||||
|
rewrite ^(/mianyangbackend)$ $1/ redirect;
|
||||||
rewrite ^(/multiterminal)$ $1/ redirect;
|
rewrite ^(/multiterminal)$ $1/ redirect;
|
||||||
rewrite ^(/mws)$ $1/ redirect;
|
rewrite ^(/mws)$ $1/ redirect;
|
||||||
rewrite ^(/oms)$ $1/ redirect;
|
rewrite ^(/oms)$ $1/ redirect;
|
||||||
@@ -51,201 +53,217 @@ metadata:
|
|||||||
rewrite ^(/uas)$ $1/ redirect;
|
rewrite ^(/uas)$ $1/ redirect;
|
||||||
rewrite ^(/uasms)$ $1/ redirect;
|
rewrite ^(/uasms)$ $1/ redirect;
|
||||||
rewrite ^(/visualization)$ $1/ redirect;
|
rewrite ^(/visualization)$ $1/ redirect;
|
||||||
|
rewrite ^(/secenter)$ $1/ redirect;
|
||||||
spec:
|
spec:
|
||||||
rules:
|
rules:
|
||||||
- host: fake-domain.uavcloud-devflight.io
|
- host: fake-domain.uavcloud-devflight.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /uavcloud-devflight/?(.*)
|
- path: /devflight/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform
|
serviceName: cmii-uav-platform
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
- path: /uavcloud-devflight/supervision/?(.*)
|
- path: /devflight/supervision/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
serviceName: cmii-suav-platform-supervision
|
serviceName: cmii-suav-platform-supervision
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
- path: /uavcloud-devflight/supervisionh5/?(.*)
|
- path: /devflight/supervisionh5/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
serviceName: cmii-suav-platform-supervisionh5
|
serviceName: cmii-suav-platform-supervisionh5
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
- path: /uavcloud-devflight/pangu/?(.*)
|
- path: /devflight/pangu/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform
|
serviceName: cmii-uav-platform
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
- path: /uavcloud-devflight/ai-brain/?(.*)
|
- path: /devflight/ai-brain/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-ai-brain
|
serviceName: cmii-uav-platform-ai-brain
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
- path: /uavcloud-devflight/armypeople/?(.*)
|
- path: /devflight/armypeople/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-armypeople
|
serviceName: cmii-uav-platform-armypeople
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
- path: /uavcloud-devflight/base/?(.*)
|
- path: /devflight/base/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-base
|
serviceName: cmii-uav-platform-base
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
- path: /uavcloud-devflight/blockchain/?(.*)
|
- path: /devflight/blockchain/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-blockchain
|
serviceName: cmii-uav-platform-blockchain
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
- path: /uavcloud-devflight/classification/?(.*)
|
- path: /devflight/classification/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-classification
|
serviceName: cmii-uav-platform-classification
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
- path: /uavcloud-devflight/cmsportal/?(.*)
|
- path: /devflight/cmsportal/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-cms-portal
|
serviceName: cmii-uav-platform-cms-portal
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
- path: /uavcloud-devflight/detection/?(.*)
|
- path: /devflight/detection/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-detection
|
serviceName: cmii-uav-platform-detection
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
- path: /uavcloud-devflight/dispatchh5/?(.*)
|
- path: /devflight/dispatchh5/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-dispatchh5
|
serviceName: cmii-uav-platform-dispatchh5
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
- path: /uavcloud-devflight/emergency/?(.*)
|
- path: /devflight/emergency/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-emergency-rescue
|
serviceName: cmii-uav-platform-emergency-rescue
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
- path: /uavcloud-devflight/hljtt/?(.*)
|
- path: /devflight/eventsh5/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-eventsh5
|
||||||
|
servicePort: 9528
|
||||||
|
- path: /devflight/hljtt/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-hljtt
|
serviceName: cmii-uav-platform-hljtt
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
- path: /uavcloud-devflight/hyper/?(.*)
|
- path: /devflight/hyper/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-hyperspectral
|
serviceName: cmii-uav-platform-hyperspectral
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
- path: /uavcloud-devflight/jiangsuwenlv/?(.*)
|
- path: /devflight/jiangsuwenlv/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-jiangsuwenlv
|
serviceName: cmii-uav-platform-jiangsuwenlv
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
- path: /uavcloud-devflight/logistics/?(.*)
|
- path: /devflight/logistics/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-logistics
|
serviceName: cmii-uav-platform-logistics
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
- path: /uavcloud-devflight/media/?(.*)
|
- path: /devflight/media/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-media
|
serviceName: cmii-uav-platform-media
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
- path: /uavcloud-devflight/multiterminal/?(.*)
|
- path: /devflight/mianyangbackend/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-mianyangbackend
|
||||||
|
servicePort: 9528
|
||||||
|
- path: /devflight/multiterminal/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-multiterminal
|
serviceName: cmii-uav-platform-multiterminal
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
- path: /uavcloud-devflight/mws/?(.*)
|
- path: /devflight/mws/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-mws
|
serviceName: cmii-uav-platform-mws
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
- path: /uavcloud-devflight/oms/?(.*)
|
- path: /devflight/oms/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-oms
|
serviceName: cmii-uav-platform-oms
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
- path: /uavcloud-devflight/open/?(.*)
|
- path: /devflight/open/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-open
|
serviceName: cmii-uav-platform-open
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
- path: /uavcloud-devflight/pilot2cloud/?(.*)
|
- path: /devflight/pilot2cloud/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-pilot2-to-cloud
|
serviceName: cmii-uav-platform-pilot2-to-cloud
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
- path: /uavcloud-devflight/qingdao/?(.*)
|
- path: /devflight/qingdao/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-qingdao
|
serviceName: cmii-uav-platform-qingdao
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
- path: /uavcloud-devflight/qinghaitourism/?(.*)
|
- path: /devflight/qinghaitourism/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-qinghaitourism
|
serviceName: cmii-uav-platform-qinghaitourism
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
- path: /uavcloud-devflight/scanner/?(.*)
|
- path: /devflight/scanner/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-scanner
|
serviceName: cmii-uav-platform-scanner
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
- path: /uavcloud-devflight/security/?(.*)
|
- path: /devflight/security/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-security
|
serviceName: cmii-uav-platform-security
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
- path: /uavcloud-devflight/securityh5/?(.*)
|
- path: /devflight/securityh5/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-securityh5
|
serviceName: cmii-uav-platform-securityh5
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
- path: /uavcloud-devflight/seniclive/?(.*)
|
- path: /devflight/seniclive/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-seniclive
|
serviceName: cmii-uav-platform-seniclive
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
- path: /uavcloud-devflight/share/?(.*)
|
- path: /devflight/share/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-share
|
serviceName: cmii-uav-platform-share
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
- path: /uavcloud-devflight/smauth/?(.*)
|
- path: /devflight/smauth/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-smauth
|
serviceName: cmii-uav-platform-smauth
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
- path: /uavcloud-devflight/smsecret/?(.*)
|
- path: /devflight/smsecret/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-smsecret
|
serviceName: cmii-uav-platform-smsecret
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
- path: /uavcloud-devflight/splice/?(.*)
|
- path: /devflight/splice/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-splice
|
serviceName: cmii-uav-platform-splice
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
- path: /uavcloud-devflight/threedsimulation/?(.*)
|
- path: /devflight/threedsimulation/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-threedsimulation
|
serviceName: cmii-uav-platform-threedsimulation
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
- path: /uavcloud-devflight/traffic/?(.*)
|
- path: /devflight/traffic/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-traffic
|
serviceName: cmii-uav-platform-traffic
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
- path: /uavcloud-devflight/uas/?(.*)
|
- path: /devflight/uas/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-uas
|
serviceName: cmii-uav-platform-uas
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
- path: /uavcloud-devflight/uasms/?(.*)
|
- path: /devflight/uasms/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-uasms
|
serviceName: cmii-uav-platform-uasms
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
- path: /uavcloud-devflight/visualization/?(.*)
|
- path: /devflight/visualization/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-visualization
|
serviceName: cmii-uav-platform-visualization
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
|
- path: /devflight/secenter/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uavms-platform-security-center
|
||||||
|
servicePort: 9528
|
||||||
---
|
---
|
||||||
apiVersion: networking.k8s.io/v1beta1
|
apiVersion: networking.k8s.io/v1beta1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
@@ -262,7 +280,7 @@ metadata:
|
|||||||
nginx.ingress.kubernetes.io/enable-cors: "true"
|
nginx.ingress.kubernetes.io/enable-cors: "true"
|
||||||
spec:
|
spec:
|
||||||
rules:
|
rules:
|
||||||
- host: cmii-admin-data.uavcloud-uavcloud-devflight.io
|
- host: cmii-admin-data.uavcloud-devflight.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
@@ -270,7 +288,7 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-admin-data
|
serviceName: cmii-admin-data
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
- host: cmii-admin-gateway.uavcloud-uavcloud-devflight.io
|
- host: cmii-admin-gateway.uavcloud-devflight.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
@@ -278,7 +296,7 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-admin-gateway
|
serviceName: cmii-admin-gateway
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
- host: cmii-admin-user.uavcloud-uavcloud-devflight.io
|
- host: cmii-admin-user.uavcloud-devflight.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
@@ -286,7 +304,7 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-admin-user
|
serviceName: cmii-admin-user
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
- host: cmii-app-release.uavcloud-uavcloud-devflight.io
|
- host: cmii-app-release.uavcloud-devflight.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
@@ -294,7 +312,7 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-app-release
|
serviceName: cmii-app-release
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
- host: cmii-open-gateway.uavcloud-uavcloud-devflight.io
|
- host: cmii-open-gateway.uavcloud-devflight.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
@@ -302,7 +320,7 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-open-gateway
|
serviceName: cmii-open-gateway
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
- host: cmii-suav-supervision.uavcloud-uavcloud-devflight.io
|
- host: cmii-suav-supervision.uavcloud-devflight.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
@@ -310,7 +328,7 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-suav-supervision
|
serviceName: cmii-suav-supervision
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
- host: cmii-uas-gateway.uavcloud-uavcloud-devflight.io
|
- host: cmii-uas-gateway.uavcloud-devflight.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
@@ -318,7 +336,7 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uas-gateway
|
serviceName: cmii-uas-gateway
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
- host: cmii-uas-lifecycle.uavcloud-uavcloud-devflight.io
|
- host: cmii-uas-lifecycle.uavcloud-devflight.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
@@ -326,7 +344,7 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uas-lifecycle
|
serviceName: cmii-uas-lifecycle
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
- host: cmii-uav-airspace.uavcloud-uavcloud-devflight.io
|
- host: cmii-uav-airspace.uavcloud-devflight.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
@@ -334,7 +352,7 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-airspace
|
serviceName: cmii-uav-airspace
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
- host: cmii-uav-alarm.uavcloud-uavcloud-devflight.io
|
- host: cmii-uav-alarm.uavcloud-devflight.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
@@ -342,7 +360,7 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-alarm
|
serviceName: cmii-uav-alarm
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
- host: cmii-uav-autowaypoint.uavcloud-uavcloud-devflight.io
|
- host: cmii-uav-autowaypoint.uavcloud-devflight.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
@@ -350,7 +368,7 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-autowaypoint
|
serviceName: cmii-uav-autowaypoint
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
- host: cmii-uav-brain.uavcloud-uavcloud-devflight.io
|
- host: cmii-uav-brain.uavcloud-devflight.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
@@ -358,7 +376,7 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-brain
|
serviceName: cmii-uav-brain
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
- host: cmii-uav-bridge.uavcloud-uavcloud-devflight.io
|
- host: cmii-uav-bridge.uavcloud-devflight.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
@@ -366,7 +384,7 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-bridge
|
serviceName: cmii-uav-bridge
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
- host: cmii-uav-cloud-live.uavcloud-uavcloud-devflight.io
|
- host: cmii-uav-cloud-live.uavcloud-devflight.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
@@ -374,7 +392,7 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-cloud-live
|
serviceName: cmii-uav-cloud-live
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
- host: cmii-uav-clusters.uavcloud-uavcloud-devflight.io
|
- host: cmii-uav-clusters.uavcloud-devflight.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
@@ -382,7 +400,7 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-clusters
|
serviceName: cmii-uav-clusters
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
- host: cmii-uav-cms.uavcloud-uavcloud-devflight.io
|
- host: cmii-uav-cms.uavcloud-devflight.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
@@ -390,7 +408,7 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-cms
|
serviceName: cmii-uav-cms
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
- host: cmii-uav-data-post-process.uavcloud-uavcloud-devflight.io
|
- host: cmii-uav-data-post-process.uavcloud-devflight.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
@@ -398,7 +416,7 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-data-post-process
|
serviceName: cmii-uav-data-post-process
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
- host: cmii-uav-depotautoreturn.uavcloud-uavcloud-devflight.io
|
- host: cmii-uav-depotautoreturn.uavcloud-devflight.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
@@ -406,7 +424,7 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-depotautoreturn
|
serviceName: cmii-uav-depotautoreturn
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
- host: cmii-uav-developer.uavcloud-uavcloud-devflight.io
|
- host: cmii-uav-developer.uavcloud-devflight.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
@@ -414,7 +432,7 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-developer
|
serviceName: cmii-uav-developer
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
- host: cmii-uav-device.uavcloud-uavcloud-devflight.io
|
- host: cmii-uav-device.uavcloud-devflight.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
@@ -422,7 +440,7 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-device
|
serviceName: cmii-uav-device
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
- host: cmii-uav-emergency.uavcloud-uavcloud-devflight.io
|
- host: cmii-uav-emergency.uavcloud-devflight.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
@@ -430,7 +448,15 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-emergency
|
serviceName: cmii-uav-emergency
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
- host: cmii-uav-gateway.uavcloud-uavcloud-devflight.io
|
- host: cmii-uav-fwdd.uavcloud-devflight.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-fwdd
|
||||||
|
servicePort: 8080
|
||||||
|
- host: cmii-uav-gateway.uavcloud-devflight.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
@@ -438,7 +464,7 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-gateway
|
serviceName: cmii-uav-gateway
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
- host: cmii-uav-gis-server.uavcloud-uavcloud-devflight.io
|
- host: cmii-uav-gis-server.uavcloud-devflight.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
@@ -446,7 +472,7 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-gis-server
|
serviceName: cmii-uav-gis-server
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
- host: cmii-uav-grid-datasource.uavcloud-uavcloud-devflight.io
|
- host: cmii-uav-grid-datasource.uavcloud-devflight.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
@@ -454,7 +480,7 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-grid-datasource
|
serviceName: cmii-uav-grid-datasource
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
- host: cmii-uav-grid-engine.uavcloud-uavcloud-devflight.io
|
- host: cmii-uav-grid-engine.uavcloud-devflight.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
@@ -462,7 +488,7 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-grid-engine
|
serviceName: cmii-uav-grid-engine
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
- host: cmii-uav-grid-manage.uavcloud-uavcloud-devflight.io
|
- host: cmii-uav-grid-manage.uavcloud-devflight.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
@@ -470,7 +496,7 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-grid-manage
|
serviceName: cmii-uav-grid-manage
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
- host: cmii-uav-industrial-portfolio.uavcloud-uavcloud-devflight.io
|
- host: cmii-uav-industrial-portfolio.uavcloud-devflight.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
@@ -478,7 +504,7 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-industrial-portfolio
|
serviceName: cmii-uav-industrial-portfolio
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
- host: cmii-uav-integration.uavcloud-uavcloud-devflight.io
|
- host: cmii-uav-integration.uavcloud-devflight.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
@@ -486,7 +512,7 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-integration
|
serviceName: cmii-uav-integration
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
- host: cmii-uav-iot-dispatcher.uavcloud-uavcloud-devflight.io
|
- host: cmii-uav-iot-dispatcher.uavcloud-devflight.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
@@ -494,7 +520,7 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-iot-dispatcher
|
serviceName: cmii-uav-iot-dispatcher
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
- host: cmii-uav-kpi-monitor.uavcloud-uavcloud-devflight.io
|
- host: cmii-uav-kpi-monitor.uavcloud-devflight.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
@@ -502,7 +528,7 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-kpi-monitor
|
serviceName: cmii-uav-kpi-monitor
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
- host: cmii-uav-logger.uavcloud-uavcloud-devflight.io
|
- host: cmii-uav-logger.uavcloud-devflight.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
@@ -510,7 +536,7 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-logger
|
serviceName: cmii-uav-logger
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
- host: cmii-uav-material-warehouse.uavcloud-uavcloud-devflight.io
|
- host: cmii-uav-material-warehouse.uavcloud-devflight.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
@@ -518,7 +544,7 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-material-warehouse
|
serviceName: cmii-uav-material-warehouse
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
- host: cmii-uav-mission.uavcloud-uavcloud-devflight.io
|
- host: cmii-uav-mission.uavcloud-devflight.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
@@ -526,7 +552,7 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-mission
|
serviceName: cmii-uav-mission
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
- host: cmii-uav-mqtthandler.uavcloud-uavcloud-devflight.io
|
- host: cmii-uav-mqtthandler.uavcloud-devflight.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
@@ -534,7 +560,7 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-mqtthandler
|
serviceName: cmii-uav-mqtthandler
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
- host: cmii-uav-multilink.uavcloud-uavcloud-devflight.io
|
- host: cmii-uav-multilink.uavcloud-devflight.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
@@ -542,7 +568,7 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-multilink
|
serviceName: cmii-uav-multilink
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
- host: cmii-uav-notice.uavcloud-uavcloud-devflight.io
|
- host: cmii-uav-notice.uavcloud-devflight.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
@@ -550,7 +576,7 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-notice
|
serviceName: cmii-uav-notice
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
- host: cmii-uav-oauth.uavcloud-uavcloud-devflight.io
|
- host: cmii-uav-oauth.uavcloud-devflight.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
@@ -558,7 +584,7 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-oauth
|
serviceName: cmii-uav-oauth
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
- host: cmii-uav-process.uavcloud-uavcloud-devflight.io
|
- host: cmii-uav-process.uavcloud-devflight.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
@@ -566,7 +592,7 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-process
|
serviceName: cmii-uav-process
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
- host: cmii-uav-sense-adapter.uavcloud-uavcloud-devflight.io
|
- host: cmii-uav-sense-adapter.uavcloud-devflight.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
@@ -574,7 +600,7 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-sense-adapter
|
serviceName: cmii-uav-sense-adapter
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
- host: cmii-uav-surveillance.uavcloud-uavcloud-devflight.io
|
- host: cmii-uav-surveillance.uavcloud-devflight.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
@@ -582,7 +608,7 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-surveillance
|
serviceName: cmii-uav-surveillance
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
- host: cmii-uav-sync.uavcloud-uavcloud-devflight.io
|
- host: cmii-uav-sync.uavcloud-devflight.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
@@ -590,7 +616,7 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-sync
|
serviceName: cmii-uav-sync
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
- host: cmii-uav-threedsimulation.uavcloud-uavcloud-devflight.io
|
- host: cmii-uav-threedsimulation.uavcloud-devflight.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
@@ -598,7 +624,7 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-threedsimulation
|
serviceName: cmii-uav-threedsimulation
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
- host: cmii-uav-tower.uavcloud-uavcloud-devflight.io
|
- host: cmii-uav-tower.uavcloud-devflight.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
@@ -606,7 +632,7 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-tower
|
serviceName: cmii-uav-tower
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
- host: cmii-uav-user.uavcloud-uavcloud-devflight.io
|
- host: cmii-uav-user.uavcloud-devflight.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
@@ -614,7 +640,7 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-user
|
serviceName: cmii-uav-user
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
- host: cmii-uav-waypoint.uavcloud-uavcloud-devflight.io
|
- host: cmii-uav-waypoint.uavcloud-devflight.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
@@ -622,13 +648,13 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-waypoint
|
serviceName: cmii-uav-waypoint
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
- host: uavms-security-center.uavcloud-uavcloud-devflight.io
|
- host: cmii-uavms-security-center.uavcloud-devflight.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
serviceName: uavms-security-center
|
serviceName: cmii-uavms-security-center
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
---
|
---
|
||||||
apiVersion: networking.k8s.io/v1beta1
|
apiVersion: networking.k8s.io/v1beta1
|
||||||
@@ -653,17 +679,17 @@ spec:
|
|||||||
- host: fake-domain.uavcloud-devflight.io
|
- host: fake-domain.uavcloud-devflight.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /uavcloud-devflight/oms/api/?(.*)
|
- path: /devflight/oms/api/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
serviceName: cmii-admin-gateway
|
serviceName: cmii-admin-gateway
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
- path: /uavcloud-devflight/open/api/?(.*)
|
- path: /devflight/open/api/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
serviceName: cmii-open-gateway
|
serviceName: cmii-open-gateway
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
- path: /uavcloud-devflight/api/?(.*)
|
- path: /devflight/api/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-gateway
|
serviceName: cmii-uav-gateway
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -2,28 +2,98 @@
|
|||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: tenant-prefix-uasms
|
name: tenant-prefix-mws
|
||||||
namespace: uavcloud-devoperation
|
namespace: uavcloud-devoperation
|
||||||
data:
|
data:
|
||||||
ingress-config.js: |-
|
ingress-config.js: |-
|
||||||
var __GlobalIngressConfig = {
|
var __GlobalIngressConfig = {
|
||||||
TenantEnvironment: "devoperation",
|
TenantEnvironment: "devoperation",
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
ApplicationShortName: "uasms",
|
ApplicationShortName: "mws",
|
||||||
|
AppClientId: "APP_uKniXPELlRERBBwK"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-share
|
||||||
|
namespace: uavcloud-devoperation
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devoperation",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "share",
|
||||||
|
AppClientId: "APP_4lVSVI0ZGxTssir8"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-classification
|
||||||
|
namespace: uavcloud-devoperation
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devoperation",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "classification",
|
||||||
AppClientId: "empty"
|
AppClientId: "empty"
|
||||||
}
|
}
|
||||||
---
|
---
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: tenant-prefix-open
|
name: tenant-prefix-oms
|
||||||
namespace: uavcloud-devoperation
|
namespace: uavcloud-devoperation
|
||||||
data:
|
data:
|
||||||
ingress-config.js: |-
|
ingress-config.js: |-
|
||||||
var __GlobalIngressConfig = {
|
var __GlobalIngressConfig = {
|
||||||
TenantEnvironment: "devoperation",
|
TenantEnvironment: "devoperation",
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
ApplicationShortName: "open",
|
ApplicationShortName: "oms",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-qinghaitourism
|
||||||
|
namespace: uavcloud-devoperation
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devoperation",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "qinghaitourism",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-mianyangbackend
|
||||||
|
namespace: uavcloud-devoperation
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devoperation",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "mianyangbackend",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-smauth
|
||||||
|
namespace: uavcloud-devoperation
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devoperation",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "smauth",
|
||||||
AppClientId: "empty"
|
AppClientId: "empty"
|
||||||
}
|
}
|
||||||
---
|
---
|
||||||
@@ -58,57 +128,15 @@ data:
|
|||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: tenant-prefix-multiterminal
|
name: tenant-prefix-security
|
||||||
namespace: uavcloud-devoperation
|
namespace: uavcloud-devoperation
|
||||||
data:
|
data:
|
||||||
ingress-config.js: |-
|
ingress-config.js: |-
|
||||||
var __GlobalIngressConfig = {
|
var __GlobalIngressConfig = {
|
||||||
TenantEnvironment: "devoperation",
|
TenantEnvironment: "devoperation",
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
ApplicationShortName: "multiterminal",
|
ApplicationShortName: "security",
|
||||||
AppClientId: "APP_PvdfRRRBPL8xbIwl"
|
AppClientId: "APP_JUSEMc7afyWXxvE7"
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-mws
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "devoperation",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "mws",
|
|
||||||
AppClientId: "APP_uKniXPELlRERBBwK"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-armypeople
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "devoperation",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "armypeople",
|
|
||||||
AppClientId: "APP_UIegse6Lfou9pO1U"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-threedsimulation
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "devoperation",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "threedsimulation",
|
|
||||||
AppClientId: "empty"
|
|
||||||
}
|
}
|
||||||
---
|
---
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
@@ -127,6 +155,216 @@ data:
|
|||||||
---
|
---
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-pilot2cloud
|
||||||
|
namespace: uavcloud-devoperation
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devoperation",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "pilot2cloud",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-cmsportal
|
||||||
|
namespace: uavcloud-devoperation
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devoperation",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "cmsportal",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-jiangsuwenlv
|
||||||
|
namespace: uavcloud-devoperation
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devoperation",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "jiangsuwenlv",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-hljtt
|
||||||
|
namespace: uavcloud-devoperation
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devoperation",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "hljtt",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-traffic
|
||||||
|
namespace: uavcloud-devoperation
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devoperation",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "traffic",
|
||||||
|
AppClientId: "APP_Jc8i2wOQ1t73QEJS"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-uas
|
||||||
|
namespace: uavcloud-devoperation
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devoperation",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "uas",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-dispatchh5
|
||||||
|
namespace: uavcloud-devoperation
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devoperation",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "dispatchh5",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-secenter
|
||||||
|
namespace: uavcloud-devoperation
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devoperation",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "secenter",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-detection
|
||||||
|
namespace: uavcloud-devoperation
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devoperation",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "detection",
|
||||||
|
AppClientId: "APP_FDHW2VLVDWPnnOCy"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-splice
|
||||||
|
namespace: uavcloud-devoperation
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devoperation",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "splice",
|
||||||
|
AppClientId: "APP_zE0M3sTRXrCIJS8Y"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-scanner
|
||||||
|
namespace: uavcloud-devoperation
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devoperation",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "scanner",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-dikongzhixingh5
|
||||||
|
namespace: uavcloud-devoperation
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devoperation",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "dikongzhixingh5",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-qingdao
|
||||||
|
namespace: uavcloud-devoperation
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devoperation",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "qingdao",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-uasms
|
||||||
|
namespace: uavcloud-devoperation
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devoperation",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "uasms",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-eventsh5
|
||||||
|
namespace: uavcloud-devoperation
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devoperation",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "eventsh5",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: tenant-prefix-base
|
name: tenant-prefix-base
|
||||||
namespace: uavcloud-devoperation
|
namespace: uavcloud-devoperation
|
||||||
@@ -156,15 +394,15 @@ data:
|
|||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: tenant-prefix-security
|
name: tenant-prefix-open
|
||||||
namespace: uavcloud-devoperation
|
namespace: uavcloud-devoperation
|
||||||
data:
|
data:
|
||||||
ingress-config.js: |-
|
ingress-config.js: |-
|
||||||
var __GlobalIngressConfig = {
|
var __GlobalIngressConfig = {
|
||||||
TenantEnvironment: "devoperation",
|
TenantEnvironment: "devoperation",
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
ApplicationShortName: "security",
|
ApplicationShortName: "open",
|
||||||
AppClientId: "APP_JUSEMc7afyWXxvE7"
|
AppClientId: "empty"
|
||||||
}
|
}
|
||||||
---
|
---
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
@@ -184,99 +422,29 @@ data:
|
|||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: tenant-prefix-ai-brain
|
name: tenant-prefix-threedsimulation
|
||||||
namespace: uavcloud-devoperation
|
namespace: uavcloud-devoperation
|
||||||
data:
|
data:
|
||||||
ingress-config.js: |-
|
ingress-config.js: |-
|
||||||
var __GlobalIngressConfig = {
|
var __GlobalIngressConfig = {
|
||||||
TenantEnvironment: "devoperation",
|
TenantEnvironment: "devoperation",
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
ApplicationShortName: "ai-brain",
|
ApplicationShortName: "threedsimulation",
|
||||||
AppClientId: "APP_rafnuCAmBESIVYMH"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-detection
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "devoperation",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "detection",
|
|
||||||
AppClientId: "APP_FDHW2VLVDWPnnOCy"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-oms
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "devoperation",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "oms",
|
|
||||||
AppClientId: "empty"
|
AppClientId: "empty"
|
||||||
}
|
}
|
||||||
---
|
---
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: tenant-prefix-share
|
name: tenant-prefix-multiterminal
|
||||||
namespace: uavcloud-devoperation
|
namespace: uavcloud-devoperation
|
||||||
data:
|
data:
|
||||||
ingress-config.js: |-
|
ingress-config.js: |-
|
||||||
var __GlobalIngressConfig = {
|
var __GlobalIngressConfig = {
|
||||||
TenantEnvironment: "devoperation",
|
TenantEnvironment: "devoperation",
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
ApplicationShortName: "share",
|
ApplicationShortName: "multiterminal",
|
||||||
AppClientId: "APP_4lVSVI0ZGxTssir8"
|
AppClientId: "APP_PvdfRRRBPL8xbIwl"
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-traffic
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "devoperation",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "traffic",
|
|
||||||
AppClientId: "APP_Jc8i2wOQ1t73QEJS"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-jiangsuwenlv
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "devoperation",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "jiangsuwenlv",
|
|
||||||
AppClientId: "empty"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-qingdao
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "devoperation",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "qingdao",
|
|
||||||
AppClientId: "empty"
|
|
||||||
}
|
}
|
||||||
---
|
---
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
@@ -296,19 +464,33 @@ data:
|
|||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: tenant-prefix-cmsportal
|
name: tenant-prefix-hyper
|
||||||
namespace: uavcloud-devoperation
|
namespace: uavcloud-devoperation
|
||||||
data:
|
data:
|
||||||
ingress-config.js: |-
|
ingress-config.js: |-
|
||||||
var __GlobalIngressConfig = {
|
var __GlobalIngressConfig = {
|
||||||
TenantEnvironment: "devoperation",
|
TenantEnvironment: "devoperation",
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
ApplicationShortName: "cmsportal",
|
ApplicationShortName: "hyper",
|
||||||
AppClientId: "empty"
|
AppClientId: "empty"
|
||||||
}
|
}
|
||||||
---
|
---
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-supervision
|
||||||
|
namespace: uavcloud-devoperation
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devoperation",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "supervision",
|
||||||
|
AppClientId: "APP_qqSu82THfexI8PLM"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: tenant-prefix-supervisionh5
|
name: tenant-prefix-supervisionh5
|
||||||
namespace: uavcloud-devoperation
|
namespace: uavcloud-devoperation
|
||||||
@@ -338,69 +520,55 @@ data:
|
|||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: tenant-prefix-qinghaitourism
|
name: tenant-prefix-ai-brain
|
||||||
namespace: uavcloud-devoperation
|
namespace: uavcloud-devoperation
|
||||||
data:
|
data:
|
||||||
ingress-config.js: |-
|
ingress-config.js: |-
|
||||||
var __GlobalIngressConfig = {
|
var __GlobalIngressConfig = {
|
||||||
TenantEnvironment: "devoperation",
|
TenantEnvironment: "devoperation",
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
ApplicationShortName: "qinghaitourism",
|
ApplicationShortName: "ai-brain",
|
||||||
|
AppClientId: "APP_rafnuCAmBESIVYMH"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-armypeople
|
||||||
|
namespace: uavcloud-devoperation
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devoperation",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "armypeople",
|
||||||
|
AppClientId: "APP_UIegse6Lfou9pO1U"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-blockchain
|
||||||
|
namespace: uavcloud-devoperation
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devoperation",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "blockchain",
|
||||||
AppClientId: "empty"
|
AppClientId: "empty"
|
||||||
}
|
}
|
||||||
---
|
---
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: tenant-prefix-hljtt
|
name: tenant-prefix-smsecret
|
||||||
namespace: uavcloud-devoperation
|
namespace: uavcloud-devoperation
|
||||||
data:
|
data:
|
||||||
ingress-config.js: |-
|
ingress-config.js: |-
|
||||||
var __GlobalIngressConfig = {
|
var __GlobalIngressConfig = {
|
||||||
TenantEnvironment: "devoperation",
|
TenantEnvironment: "devoperation",
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
ApplicationShortName: "hljtt",
|
ApplicationShortName: "smsecret",
|
||||||
AppClientId: "empty"
|
AppClientId: "empty"
|
||||||
}
|
}
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-uas
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "devoperation",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "uas",
|
|
||||||
AppClientId: "empty"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-supervision
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "devoperation",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "supervision",
|
|
||||||
AppClientId: "APP_qqSu82THfexI8PLM"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-splice
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "devoperation",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "splice",
|
|
||||||
AppClientId: "APP_zE0M3sTRXrCIJS8Y"
|
|
||||||
}
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -8,593 +8,7 @@ metadata:
|
|||||||
type: frontend
|
type: frontend
|
||||||
octopus.control: all-ingress-config-wdd
|
octopus.control: all-ingress-config-wdd
|
||||||
app.kubernetes.io/managed-by: octopus-control
|
app.kubernetes.io/managed-by: octopus-control
|
||||||
app.kubernetes.io/version: 5.6.0
|
app.kubernetes.io/version: 6.0.0
|
||||||
annotations:
|
|
||||||
kubernetes.io/ingress.class: "nginx"
|
|
||||||
nginx.ingress.kubernetes.io/enable-cors: "true"
|
|
||||||
nginx.ingress.kubernetes.io/rewrite-target: /$1
|
|
||||||
nginx.ingress.kubernetes.io/configuration-snippet: |
|
|
||||||
rewrite ^(/supervision)$ $1/ redirect;
|
|
||||||
rewrite ^(/supervisionh5)$ $1/ redirect;
|
|
||||||
rewrite ^(/pangu)$ $1/ redirect;
|
|
||||||
rewrite ^(/ai-brain)$ $1/ redirect;
|
|
||||||
rewrite ^(/armypeople)$ $1/ redirect;
|
|
||||||
rewrite ^(/base)$ $1/ redirect;
|
|
||||||
rewrite ^(/cmsportal)$ $1/ redirect;
|
|
||||||
rewrite ^(/detection)$ $1/ redirect;
|
|
||||||
rewrite ^(/emergency)$ $1/ redirect;
|
|
||||||
rewrite ^(/hljtt)$ $1/ redirect;
|
|
||||||
rewrite ^(/jiangsuwenlv)$ $1/ redirect;
|
|
||||||
rewrite ^(/logistics)$ $1/ redirect;
|
|
||||||
rewrite ^(/media)$ $1/ redirect;
|
|
||||||
rewrite ^(/multiterminal)$ $1/ redirect;
|
|
||||||
rewrite ^(/mws)$ $1/ redirect;
|
|
||||||
rewrite ^(/oms)$ $1/ redirect;
|
|
||||||
rewrite ^(/open)$ $1/ redirect;
|
|
||||||
rewrite ^(/qingdao)$ $1/ redirect;
|
|
||||||
rewrite ^(/qinghaitourism)$ $1/ redirect;
|
|
||||||
rewrite ^(/security)$ $1/ redirect;
|
|
||||||
rewrite ^(/securityh5)$ $1/ redirect;
|
|
||||||
rewrite ^(/seniclive)$ $1/ redirect;
|
|
||||||
rewrite ^(/share)$ $1/ redirect;
|
|
||||||
rewrite ^(/splice)$ $1/ redirect;
|
|
||||||
rewrite ^(/threedsimulation)$ $1/ redirect;
|
|
||||||
rewrite ^(/traffic)$ $1/ redirect;
|
|
||||||
rewrite ^(/visualization)$ $1/ redirect;
|
|
||||||
spec:
|
|
||||||
rules:
|
|
||||||
- host: fake-domain.uavcloud-devoperation.io
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /devoperation/?(.*)
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-platform
|
|
||||||
servicePort: 9528
|
|
||||||
- path: /devoperation/supervision/?(.*)
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-suav-platform-supervision
|
|
||||||
servicePort: 9528
|
|
||||||
- path: /devoperation/supervisionh5/?(.*)
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-suav-platform-supervisionh5
|
|
||||||
servicePort: 9528
|
|
||||||
- path: /devoperation/pangu/?(.*)
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-platform
|
|
||||||
servicePort: 9528
|
|
||||||
- path: /devoperation/ai-brain/?(.*)
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-platform-ai-brain
|
|
||||||
servicePort: 9528
|
|
||||||
- path: /devoperation/armypeople/?(.*)
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-platform-armypeople
|
|
||||||
servicePort: 9528
|
|
||||||
- path: /devoperation/base/?(.*)
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-platform-base
|
|
||||||
servicePort: 9528
|
|
||||||
- path: /devoperation/cmsportal/?(.*)
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-platform-cms-portal
|
|
||||||
servicePort: 9528
|
|
||||||
- path: /devoperation/detection/?(.*)
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-platform-detection
|
|
||||||
servicePort: 9528
|
|
||||||
- path: /devoperation/emergency/?(.*)
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-platform-emergency-rescue
|
|
||||||
servicePort: 9528
|
|
||||||
- path: /devoperation/hljtt/?(.*)
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-platform-hljtt
|
|
||||||
servicePort: 9528
|
|
||||||
- path: /devoperation/jiangsuwenlv/?(.*)
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-platform-jiangsuwenlv
|
|
||||||
servicePort: 9528
|
|
||||||
- path: /devoperation/logistics/?(.*)
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-platform-logistics
|
|
||||||
servicePort: 9528
|
|
||||||
- path: /devoperation/media/?(.*)
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-platform-media
|
|
||||||
servicePort: 9528
|
|
||||||
- path: /devoperation/multiterminal/?(.*)
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-platform-multiterminal
|
|
||||||
servicePort: 9528
|
|
||||||
- path: /devoperation/mws/?(.*)
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-platform-mws
|
|
||||||
servicePort: 9528
|
|
||||||
- path: /devoperation/oms/?(.*)
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-platform-oms
|
|
||||||
servicePort: 9528
|
|
||||||
- path: /devoperation/open/?(.*)
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-platform-open
|
|
||||||
servicePort: 9528
|
|
||||||
- path: /devoperation/qingdao/?(.*)
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-platform-qingdao
|
|
||||||
servicePort: 9528
|
|
||||||
- path: /devoperation/qinghaitourism/?(.*)
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-platform-qinghaitourism
|
|
||||||
servicePort: 9528
|
|
||||||
- path: /devoperation/security/?(.*)
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-platform-security
|
|
||||||
servicePort: 9528
|
|
||||||
- path: /devoperation/securityh5/?(.*)
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-platform-securityh5
|
|
||||||
servicePort: 9528
|
|
||||||
- path: /devoperation/seniclive/?(.*)
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-platform-seniclive
|
|
||||||
servicePort: 9528
|
|
||||||
- path: /devoperation/share/?(.*)
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-platform-share
|
|
||||||
servicePort: 9528
|
|
||||||
- path: /devoperation/splice/?(.*)
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-platform-splice
|
|
||||||
servicePort: 9528
|
|
||||||
- path: /devoperation/threedsimulation/?(.*)
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-platform-threedsimulation
|
|
||||||
servicePort: 9528
|
|
||||||
- path: /devoperation/traffic/?(.*)
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-platform-traffic
|
|
||||||
servicePort: 9528
|
|
||||||
- path: /devoperation/visualization/?(.*)
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-platform-visualization
|
|
||||||
servicePort: 9528
|
|
||||||
---
|
|
||||||
apiVersion: networking.k8s.io/v1beta1
|
|
||||||
kind: Ingress
|
|
||||||
metadata:
|
|
||||||
name: backend-applications-ingress
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
labels:
|
|
||||||
type: backend
|
|
||||||
octopus.control: all-ingress-config-wdd
|
|
||||||
app.kubernetes.io/managed-by: octopus-control
|
|
||||||
app.kubernetes.io/version: 5.6.0
|
|
||||||
annotations:
|
|
||||||
kubernetes.io/ingress.class: "nginx"
|
|
||||||
nginx.ingress.kubernetes.io/enable-cors: "true"
|
|
||||||
spec:
|
|
||||||
rules:
|
|
||||||
- host: cmii-admin-data.uavcloud-devoperation.io
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-admin-data
|
|
||||||
servicePort: 8080
|
|
||||||
- host: cmii-admin-gateway.uavcloud-devoperation.io
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-admin-gateway
|
|
||||||
servicePort: 8080
|
|
||||||
- host: cmii-admin-user.uavcloud-devoperation.io
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-admin-user
|
|
||||||
servicePort: 8080
|
|
||||||
- host: cmii-app-release.uavcloud-devoperation.io
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-app-release
|
|
||||||
servicePort: 8080
|
|
||||||
- host: cmii-open-gateway.uavcloud-devoperation.io
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-open-gateway
|
|
||||||
servicePort: 8080
|
|
||||||
- host: cmii-suav-supervision.uavcloud-devoperation.io
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-suav-supervision
|
|
||||||
servicePort: 8080
|
|
||||||
- host: cmii-uas-gateway.uavcloud-devoperation.io
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uas-gateway
|
|
||||||
servicePort: 8080
|
|
||||||
- host: cmii-uas-lifecycle.uavcloud-devoperation.io
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uas-lifecycle
|
|
||||||
servicePort: 8080
|
|
||||||
- host: cmii-uav-airspace.uavcloud-devoperation.io
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-airspace
|
|
||||||
servicePort: 8080
|
|
||||||
- host: cmii-uav-alarm.uavcloud-devoperation.io
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-alarm
|
|
||||||
servicePort: 8080
|
|
||||||
- host: cmii-uav-autowaypoint.uavcloud-devoperation.io
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-autowaypoint
|
|
||||||
servicePort: 8080
|
|
||||||
- host: cmii-uav-brain.uavcloud-devoperation.io
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-brain
|
|
||||||
servicePort: 8080
|
|
||||||
- host: cmii-uav-bridge.uavcloud-devoperation.io
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-bridge
|
|
||||||
servicePort: 8080
|
|
||||||
- host: cmii-uav-cloud-live.uavcloud-devoperation.io
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-cloud-live
|
|
||||||
servicePort: 8080
|
|
||||||
- host: cmii-uav-clusters.uavcloud-devoperation.io
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-clusters
|
|
||||||
servicePort: 8080
|
|
||||||
- host: cmii-uav-cms.uavcloud-devoperation.io
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-cms
|
|
||||||
servicePort: 8080
|
|
||||||
- host: cmii-uav-data-post-process.uavcloud-devoperation.io
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-data-post-process
|
|
||||||
servicePort: 8080
|
|
||||||
- host: cmii-uav-depotautoreturn.uavcloud-devoperation.io
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-depotautoreturn
|
|
||||||
servicePort: 8080
|
|
||||||
- host: cmii-uav-developer.uavcloud-devoperation.io
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-developer
|
|
||||||
servicePort: 8080
|
|
||||||
- host: cmii-uav-device.uavcloud-devoperation.io
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-device
|
|
||||||
servicePort: 8080
|
|
||||||
- host: cmii-uav-emergency.uavcloud-devoperation.io
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-emergency
|
|
||||||
servicePort: 8080
|
|
||||||
- host: cmii-uav-gateway.uavcloud-devoperation.io
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-gateway
|
|
||||||
servicePort: 8080
|
|
||||||
- host: cmii-uav-gis-server.uavcloud-devoperation.io
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-gis-server
|
|
||||||
servicePort: 8080
|
|
||||||
- host: cmii-uav-grid-datasource.uavcloud-devoperation.io
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-grid-datasource
|
|
||||||
servicePort: 8080
|
|
||||||
- host: cmii-uav-grid-engine.uavcloud-devoperation.io
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-grid-engine
|
|
||||||
servicePort: 8080
|
|
||||||
- host: cmii-uav-grid-manage.uavcloud-devoperation.io
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-grid-manage
|
|
||||||
servicePort: 8080
|
|
||||||
- host: cmii-uav-industrial-portfolio.uavcloud-devoperation.io
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-industrial-portfolio
|
|
||||||
servicePort: 8080
|
|
||||||
- host: cmii-uav-integration.uavcloud-devoperation.io
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-integration
|
|
||||||
servicePort: 8080
|
|
||||||
- host: cmii-uav-kpi-monitor.uavcloud-devoperation.io
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-kpi-monitor
|
|
||||||
servicePort: 8080
|
|
||||||
- host: cmii-uav-logger.uavcloud-devoperation.io
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-logger
|
|
||||||
servicePort: 8080
|
|
||||||
- host: cmii-uav-material-warehouse.uavcloud-devoperation.io
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-material-warehouse
|
|
||||||
servicePort: 8080
|
|
||||||
- host: cmii-uav-mission.uavcloud-devoperation.io
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-mission
|
|
||||||
servicePort: 8080
|
|
||||||
- host: cmii-uav-mqtthandler.uavcloud-devoperation.io
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-mqtthandler
|
|
||||||
servicePort: 8080
|
|
||||||
- host: cmii-uav-multilink.uavcloud-devoperation.io
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-multilink
|
|
||||||
servicePort: 8080
|
|
||||||
- host: cmii-uav-notice.uavcloud-devoperation.io
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-notice
|
|
||||||
servicePort: 8080
|
|
||||||
- host: cmii-uav-oauth.uavcloud-devoperation.io
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-oauth
|
|
||||||
servicePort: 8080
|
|
||||||
- host: cmii-uav-process.uavcloud-devoperation.io
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-process
|
|
||||||
servicePort: 8080
|
|
||||||
- host: cmii-uav-sense-adapter.uavcloud-devoperation.io
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-sense-adapter
|
|
||||||
servicePort: 8080
|
|
||||||
- host: cmii-uav-surveillance.uavcloud-devoperation.io
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-surveillance
|
|
||||||
servicePort: 8080
|
|
||||||
- host: cmii-uav-threedsimulation.uavcloud-devoperation.io
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-threedsimulation
|
|
||||||
servicePort: 8080
|
|
||||||
- host: cmii-uav-tower.uavcloud-devoperation.io
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-tower
|
|
||||||
servicePort: 8080
|
|
||||||
- host: cmii-uav-user.uavcloud-devoperation.io
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-user
|
|
||||||
servicePort: 8080
|
|
||||||
- host: cmii-uav-waypoint.uavcloud-devoperation.io
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-waypoint
|
|
||||||
servicePort: 8080
|
|
||||||
---
|
|
||||||
apiVersion: networking.k8s.io/v1beta1
|
|
||||||
kind: Ingress
|
|
||||||
metadata:
|
|
||||||
name: all-gateways-ingress
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
labels:
|
|
||||||
type: api-gateway
|
|
||||||
octopus.control: all-ingress-config-1.1.0
|
|
||||||
app.kubernetes.io/managed-by: octopus-control
|
|
||||||
app.kubernetes.io/version: 5.6.0
|
|
||||||
annotations:
|
|
||||||
kubernetes.io/ingress.class: "nginx"
|
|
||||||
nginx.ingress.kubernetes.io/enable-cors: "true"
|
|
||||||
nginx.ingress.kubernetes.io/rewrite-target: /$1
|
|
||||||
nginx.ingress.kubernetes.io/configuration-snippet: |
|
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
|
||||||
proxy_set_header Connection "Upgrade";
|
|
||||||
spec:
|
|
||||||
rules:
|
|
||||||
- host: fake-domain.uavcloud-devoperation.io
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /devoperation/oms/api/?(.*)
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-admin-gateway
|
|
||||||
servicePort: 8080
|
|
||||||
- path: /devoperation/open/api/?(.*)
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-open-gateway
|
|
||||||
servicePort: 8080
|
|
||||||
- path: /devoperation/api/?(.*)
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
backend:
|
|
||||||
serviceName: cmii-uav-gateway
|
|
||||||
servicePort: 8080
|
|
||||||
---
|
|
||||||
apiVersion: networking.k8s.io/v1beta1
|
|
||||||
kind: Ingress
|
|
||||||
metadata:
|
|
||||||
name: frontend-applications-ingress
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
labels:
|
|
||||||
type: frontend
|
|
||||||
octopus.control: all-ingress-config-wdd
|
|
||||||
app.kubernetes.io/managed-by: octopus-control
|
|
||||||
app.kubernetes.io/version: 5.6.0
|
|
||||||
annotations:
|
annotations:
|
||||||
kubernetes.io/ingress.class: "nginx"
|
kubernetes.io/ingress.class: "nginx"
|
||||||
nginx.ingress.kubernetes.io/enable-cors: "true"
|
nginx.ingress.kubernetes.io/enable-cors: "true"
|
||||||
@@ -606,29 +20,41 @@ metadata:
|
|||||||
rewrite ^(/ai-brain)$ $1/ redirect;
|
rewrite ^(/ai-brain)$ $1/ redirect;
|
||||||
rewrite ^(/armypeople)$ $1/ redirect;
|
rewrite ^(/armypeople)$ $1/ redirect;
|
||||||
rewrite ^(/base)$ $1/ redirect;
|
rewrite ^(/base)$ $1/ redirect;
|
||||||
|
rewrite ^(/blockchain)$ $1/ redirect;
|
||||||
|
rewrite ^(/classification)$ $1/ redirect;
|
||||||
rewrite ^(/cmsportal)$ $1/ redirect;
|
rewrite ^(/cmsportal)$ $1/ redirect;
|
||||||
rewrite ^(/detection)$ $1/ redirect;
|
rewrite ^(/detection)$ $1/ redirect;
|
||||||
|
rewrite ^(/dikongzhixingh5)$ $1/ redirect;
|
||||||
|
rewrite ^(/dispatchh5)$ $1/ redirect;
|
||||||
rewrite ^(/emergency)$ $1/ redirect;
|
rewrite ^(/emergency)$ $1/ redirect;
|
||||||
|
rewrite ^(/eventsh5)$ $1/ redirect;
|
||||||
rewrite ^(/hljtt)$ $1/ redirect;
|
rewrite ^(/hljtt)$ $1/ redirect;
|
||||||
|
rewrite ^(/hyper)$ $1/ redirect;
|
||||||
rewrite ^(/jiangsuwenlv)$ $1/ redirect;
|
rewrite ^(/jiangsuwenlv)$ $1/ redirect;
|
||||||
rewrite ^(/logistics)$ $1/ redirect;
|
rewrite ^(/logistics)$ $1/ redirect;
|
||||||
rewrite ^(/media)$ $1/ redirect;
|
rewrite ^(/media)$ $1/ redirect;
|
||||||
|
rewrite ^(/mianyangbackend)$ $1/ redirect;
|
||||||
rewrite ^(/multiterminal)$ $1/ redirect;
|
rewrite ^(/multiterminal)$ $1/ redirect;
|
||||||
rewrite ^(/mws)$ $1/ redirect;
|
rewrite ^(/mws)$ $1/ redirect;
|
||||||
rewrite ^(/oms)$ $1/ redirect;
|
rewrite ^(/oms)$ $1/ redirect;
|
||||||
rewrite ^(/open)$ $1/ redirect;
|
rewrite ^(/open)$ $1/ redirect;
|
||||||
|
rewrite ^(/pilot2cloud)$ $1/ redirect;
|
||||||
rewrite ^(/qingdao)$ $1/ redirect;
|
rewrite ^(/qingdao)$ $1/ redirect;
|
||||||
rewrite ^(/qinghaitourism)$ $1/ redirect;
|
rewrite ^(/qinghaitourism)$ $1/ redirect;
|
||||||
|
rewrite ^(/scanner)$ $1/ redirect;
|
||||||
rewrite ^(/security)$ $1/ redirect;
|
rewrite ^(/security)$ $1/ redirect;
|
||||||
rewrite ^(/securityh5)$ $1/ redirect;
|
rewrite ^(/securityh5)$ $1/ redirect;
|
||||||
rewrite ^(/seniclive)$ $1/ redirect;
|
rewrite ^(/seniclive)$ $1/ redirect;
|
||||||
rewrite ^(/share)$ $1/ redirect;
|
rewrite ^(/share)$ $1/ redirect;
|
||||||
|
rewrite ^(/smauth)$ $1/ redirect;
|
||||||
|
rewrite ^(/smsecret)$ $1/ redirect;
|
||||||
rewrite ^(/splice)$ $1/ redirect;
|
rewrite ^(/splice)$ $1/ redirect;
|
||||||
rewrite ^(/threedsimulation)$ $1/ redirect;
|
rewrite ^(/threedsimulation)$ $1/ redirect;
|
||||||
rewrite ^(/traffic)$ $1/ redirect;
|
rewrite ^(/traffic)$ $1/ redirect;
|
||||||
rewrite ^(/uas)$ $1/ redirect;
|
rewrite ^(/uas)$ $1/ redirect;
|
||||||
rewrite ^(/uasms)$ $1/ redirect;
|
rewrite ^(/uasms)$ $1/ redirect;
|
||||||
rewrite ^(/visualization)$ $1/ redirect;
|
rewrite ^(/visualization)$ $1/ redirect;
|
||||||
|
rewrite ^(/secenter)$ $1/ redirect;
|
||||||
spec:
|
spec:
|
||||||
rules:
|
rules:
|
||||||
- host: fake-domain.uavcloud-devoperation.io
|
- host: fake-domain.uavcloud-devoperation.io
|
||||||
@@ -669,6 +95,16 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-base
|
serviceName: cmii-uav-platform-base
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
|
- path: /devoperation/blockchain/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-blockchain
|
||||||
|
servicePort: 9528
|
||||||
|
- path: /devoperation/classification/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-classification
|
||||||
|
servicePort: 9528
|
||||||
- path: /devoperation/cmsportal/?(.*)
|
- path: /devoperation/cmsportal/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
@@ -679,16 +115,36 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-detection
|
serviceName: cmii-uav-platform-detection
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
|
- path: /devoperation/dikongzhixingh5/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-dikongzhixingh5
|
||||||
|
servicePort: 9528
|
||||||
|
- path: /devoperation/dispatchh5/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-dispatchh5
|
||||||
|
servicePort: 9528
|
||||||
- path: /devoperation/emergency/?(.*)
|
- path: /devoperation/emergency/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-emergency-rescue
|
serviceName: cmii-uav-platform-emergency-rescue
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
|
- path: /devoperation/eventsh5/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-eventsh5
|
||||||
|
servicePort: 9528
|
||||||
- path: /devoperation/hljtt/?(.*)
|
- path: /devoperation/hljtt/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-hljtt
|
serviceName: cmii-uav-platform-hljtt
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
|
- path: /devoperation/hyper/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-hyperspectral
|
||||||
|
servicePort: 9528
|
||||||
- path: /devoperation/jiangsuwenlv/?(.*)
|
- path: /devoperation/jiangsuwenlv/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
@@ -704,6 +160,11 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-media
|
serviceName: cmii-uav-platform-media
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
|
- path: /devoperation/mianyangbackend/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-mianyangbackend
|
||||||
|
servicePort: 9528
|
||||||
- path: /devoperation/multiterminal/?(.*)
|
- path: /devoperation/multiterminal/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
@@ -724,6 +185,11 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-open
|
serviceName: cmii-uav-platform-open
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
|
- path: /devoperation/pilot2cloud/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-pilot2-to-cloud
|
||||||
|
servicePort: 9528
|
||||||
- path: /devoperation/qingdao/?(.*)
|
- path: /devoperation/qingdao/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
@@ -734,6 +200,11 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-qinghaitourism
|
serviceName: cmii-uav-platform-qinghaitourism
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
|
- path: /devoperation/scanner/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-scanner
|
||||||
|
servicePort: 9528
|
||||||
- path: /devoperation/security/?(.*)
|
- path: /devoperation/security/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
@@ -754,6 +225,16 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-share
|
serviceName: cmii-uav-platform-share
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
|
- path: /devoperation/smauth/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-smauth
|
||||||
|
servicePort: 9528
|
||||||
|
- path: /devoperation/smsecret/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-smsecret
|
||||||
|
servicePort: 9528
|
||||||
- path: /devoperation/splice/?(.*)
|
- path: /devoperation/splice/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
@@ -784,6 +265,11 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-visualization
|
serviceName: cmii-uav-platform-visualization
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
|
- path: /devoperation/secenter/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uavms-platform-security-center
|
||||||
|
servicePort: 9528
|
||||||
---
|
---
|
||||||
apiVersion: networking.k8s.io/v1beta1
|
apiVersion: networking.k8s.io/v1beta1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
@@ -794,7 +280,7 @@ metadata:
|
|||||||
type: backend
|
type: backend
|
||||||
octopus.control: all-ingress-config-wdd
|
octopus.control: all-ingress-config-wdd
|
||||||
app.kubernetes.io/managed-by: octopus-control
|
app.kubernetes.io/managed-by: octopus-control
|
||||||
app.kubernetes.io/version: 5.6.0
|
app.kubernetes.io/version: 6.0.0
|
||||||
annotations:
|
annotations:
|
||||||
kubernetes.io/ingress.class: "nginx"
|
kubernetes.io/ingress.class: "nginx"
|
||||||
nginx.ingress.kubernetes.io/enable-cors: "true"
|
nginx.ingress.kubernetes.io/enable-cors: "true"
|
||||||
@@ -968,6 +454,14 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-emergency
|
serviceName: cmii-uav-emergency
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
|
- host: cmii-uav-fwdd.uavcloud-devoperation.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-fwdd
|
||||||
|
servicePort: 8080
|
||||||
- host: cmii-uav-gateway.uavcloud-devoperation.io
|
- host: cmii-uav-gateway.uavcloud-devoperation.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
@@ -1024,6 +518,14 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-integration
|
serviceName: cmii-uav-integration
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
|
- host: cmii-uav-iot-dispatcher.uavcloud-devoperation.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-iot-dispatcher
|
||||||
|
servicePort: 8080
|
||||||
- host: cmii-uav-kpi-monitor.uavcloud-devoperation.io
|
- host: cmii-uav-kpi-monitor.uavcloud-devoperation.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
@@ -1112,6 +614,14 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-surveillance
|
serviceName: cmii-uav-surveillance
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
|
- host: cmii-uav-sync.uavcloud-devoperation.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-sync
|
||||||
|
servicePort: 8080
|
||||||
- host: cmii-uav-threedsimulation.uavcloud-devoperation.io
|
- host: cmii-uav-threedsimulation.uavcloud-devoperation.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
@@ -1144,6 +654,14 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-waypoint
|
serviceName: cmii-uav-waypoint
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
|
- host: cmii-uavms-security-center.uavcloud-devoperation.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uavms-security-center
|
||||||
|
servicePort: 8080
|
||||||
---
|
---
|
||||||
apiVersion: networking.k8s.io/v1beta1
|
apiVersion: networking.k8s.io/v1beta1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
@@ -1154,7 +672,7 @@ metadata:
|
|||||||
type: api-gateway
|
type: api-gateway
|
||||||
octopus.control: all-ingress-config-1.1.0
|
octopus.control: all-ingress-config-1.1.0
|
||||||
app.kubernetes.io/managed-by: octopus-control
|
app.kubernetes.io/managed-by: octopus-control
|
||||||
app.kubernetes.io/version: 5.6.0
|
app.kubernetes.io/version: 6.0.0
|
||||||
annotations:
|
annotations:
|
||||||
kubernetes.io/ingress.class: "nginx"
|
kubernetes.io/ingress.class: "nginx"
|
||||||
nginx.ingress.kubernetes.io/enable-cors: "true"
|
nginx.ingress.kubernetes.io/enable-cors: "true"
|
||||||
|
|||||||
@@ -1,77 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: helm-mongo
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
labels:
|
|
||||||
cmii.app: helm-mongo
|
|
||||||
cmii.type: middleware
|
|
||||||
helm.sh/chart: mongo-1.1.0
|
|
||||||
app.kubernetes.io/managed-by: octopus-control
|
|
||||||
app.kubernetes.io/version: 5.6.0
|
|
||||||
spec:
|
|
||||||
type: ClusterIP
|
|
||||||
selector:
|
|
||||||
cmii.app: helm-mongo
|
|
||||||
cmii.type: middleware
|
|
||||||
ports:
|
|
||||||
- port: 27017
|
|
||||||
name: server-27017
|
|
||||||
targetPort: 27017
|
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: StatefulSet
|
|
||||||
metadata:
|
|
||||||
name: helm-mongo
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
labels:
|
|
||||||
cmii.app: helm-mongo
|
|
||||||
cmii.type: middleware
|
|
||||||
helm.sh/chart: mongo-1.1.0
|
|
||||||
app.kubernetes.io/managed-by: octopus-control
|
|
||||||
app.kubernetes.io/version: 5.6.0
|
|
||||||
spec:
|
|
||||||
serviceName: helm-mongo
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
cmii.app: helm-mongo
|
|
||||||
cmii.type: middleware
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
cmii.app: helm-mongo
|
|
||||||
cmii.type: middleware
|
|
||||||
helm.sh/chart: mongo-1.1.0
|
|
||||||
app.kubernetes.io/managed-by: octopus-control
|
|
||||||
app.kubernetes.io/version: 5.6.0
|
|
||||||
annotations:
|
|
||||||
pod.alpha.kubernetes.io/initialized: "true"
|
|
||||||
spec:
|
|
||||||
imagePullSecrets:
|
|
||||||
- name: harborsecret
|
|
||||||
affinity: { }
|
|
||||||
containers:
|
|
||||||
- name: helm-mongo
|
|
||||||
image: harbor.cdcyy.com.cn/cmii/mongo:5.0
|
|
||||||
resources: { }
|
|
||||||
ports:
|
|
||||||
- containerPort: 27017
|
|
||||||
name: mongo27017
|
|
||||||
protocol: TCP
|
|
||||||
env:
|
|
||||||
- name: MONGO_INITDB_ROOT_USERNAME
|
|
||||||
value: cmlc
|
|
||||||
- name: MONGO_INITDB_ROOT_PASSWORD
|
|
||||||
value: 7(#dD3zcz8
|
|
||||||
volumeMounts:
|
|
||||||
- name: mongo-data
|
|
||||||
mountPath: /data/db
|
|
||||||
readOnly: false
|
|
||||||
subPath: default/helm-mongo/data/db
|
|
||||||
volumes:
|
|
||||||
- name: mongo-data
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: helm-mongo-devoperation
|
|
||||||
---
|
|
||||||
@@ -1,423 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ServiceAccount
|
|
||||||
metadata:
|
|
||||||
name: helm-mysql
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: mysql-db
|
|
||||||
octopus.control: mysql-db-wdd
|
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
|
||||||
app.kubernetes.io/managed-by: octopus
|
|
||||||
annotations: { }
|
|
||||||
secrets:
|
|
||||||
- name: helm-mysql
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Secret
|
|
||||||
metadata:
|
|
||||||
name: helm-mysql
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: mysql-db
|
|
||||||
octopus.control: mysql-db-wdd
|
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
|
||||||
app.kubernetes.io/managed-by: octopus
|
|
||||||
type: Opaque
|
|
||||||
data:
|
|
||||||
mysql-root-password: "R3d1YmM2Q3hSTQ=="
|
|
||||||
mysql-password: "S0F0cm5PckFKNw=="
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
name: helm-mysql
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: mysql-db
|
|
||||||
octopus.control: mysql-db-wdd
|
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
|
||||||
app.kubernetes.io/managed-by: octopus
|
|
||||||
app.kubernetes.io/component: primary
|
|
||||||
data:
|
|
||||||
my.cnf: |-
|
|
||||||
|
|
||||||
[mysqld]
|
|
||||||
port=3306
|
|
||||||
basedir=/opt/bitnami/mysql
|
|
||||||
datadir=/bitnami/mysql/data
|
|
||||||
pid-file=/opt/bitnami/mysql/tmp/mysqld.pid
|
|
||||||
socket=/opt/bitnami/mysql/tmp/mysql.sock
|
|
||||||
log-error=/bitnami/mysql/data/error.log
|
|
||||||
general_log_file = /bitnami/mysql/data/general.log
|
|
||||||
slow_query_log_file = /bitnami/mysql/data/slow.log
|
|
||||||
innodb_data_file_path = ibdata1:512M:autoextend
|
|
||||||
innodb_buffer_pool_size = 512M
|
|
||||||
innodb_buffer_pool_instances = 2
|
|
||||||
innodb_log_file_size = 512M
|
|
||||||
innodb_log_files_in_group = 4
|
|
||||||
innodb_log_files_in_group = 4
|
|
||||||
log-bin = /bitnami/mysql/data/mysql-bin
|
|
||||||
max_binlog_size=1G
|
|
||||||
transaction_isolation = REPEATABLE-READ
|
|
||||||
default_storage_engine = innodb
|
|
||||||
character-set-server = utf8mb4
|
|
||||||
collation-server=utf8mb4_bin
|
|
||||||
binlog_format = ROW
|
|
||||||
binlog_rows_query_log_events=on
|
|
||||||
binlog_cache_size=4M
|
|
||||||
binlog_expire_logs_seconds = 1296000
|
|
||||||
max_binlog_cache_size=2G
|
|
||||||
gtid_mode = on
|
|
||||||
enforce_gtid_consistency = 1
|
|
||||||
sync_binlog = 1
|
|
||||||
innodb_flush_log_at_trx_commit = 1
|
|
||||||
innodb_flush_method = O_DIRECT
|
|
||||||
log_slave_updates=1
|
|
||||||
relay_log_recovery = 1
|
|
||||||
relay-log-purge = 1
|
|
||||||
default_time_zone = '+08:00'
|
|
||||||
lower_case_table_names=1
|
|
||||||
log_bin_trust_function_creators=1
|
|
||||||
group_concat_max_len=67108864
|
|
||||||
innodb_io_capacity = 4000
|
|
||||||
innodb_io_capacity_max = 8000
|
|
||||||
innodb_flush_sync = 0
|
|
||||||
innodb_flush_neighbors = 0
|
|
||||||
innodb_write_io_threads = 8
|
|
||||||
innodb_read_io_threads = 8
|
|
||||||
innodb_purge_threads = 4
|
|
||||||
innodb_page_cleaners = 4
|
|
||||||
innodb_open_files = 65535
|
|
||||||
innodb_max_dirty_pages_pct = 50
|
|
||||||
innodb_lru_scan_depth = 4000
|
|
||||||
innodb_checksum_algorithm = crc32
|
|
||||||
innodb_lock_wait_timeout = 10
|
|
||||||
innodb_rollback_on_timeout = 1
|
|
||||||
innodb_print_all_deadlocks = 1
|
|
||||||
innodb_file_per_table = 1
|
|
||||||
innodb_online_alter_log_max_size = 4G
|
|
||||||
innodb_stats_on_metadata = 0
|
|
||||||
innodb_thread_concurrency = 0
|
|
||||||
innodb_sync_spin_loops = 100
|
|
||||||
innodb_spin_wait_delay = 30
|
|
||||||
lock_wait_timeout = 3600
|
|
||||||
slow_query_log = 1
|
|
||||||
long_query_time = 10
|
|
||||||
log_queries_not_using_indexes =1
|
|
||||||
log_throttle_queries_not_using_indexes = 60
|
|
||||||
min_examined_row_limit = 100
|
|
||||||
log_slow_admin_statements = 1
|
|
||||||
log_slow_slave_statements = 1
|
|
||||||
default_authentication_plugin=mysql_native_password
|
|
||||||
skip-name-resolve=1
|
|
||||||
explicit_defaults_for_timestamp=1
|
|
||||||
plugin_dir=/opt/bitnami/mysql/plugin
|
|
||||||
max_allowed_packet=128M
|
|
||||||
max_connections = 2000
|
|
||||||
max_connect_errors = 1000000
|
|
||||||
table_definition_cache=2000
|
|
||||||
table_open_cache_instances=64
|
|
||||||
tablespace_definition_cache=1024
|
|
||||||
thread_cache_size=256
|
|
||||||
interactive_timeout = 600
|
|
||||||
wait_timeout = 600
|
|
||||||
tmpdir=/opt/bitnami/mysql/tmp
|
|
||||||
max_allowed_packet=32M
|
|
||||||
bind-address=0.0.0.0
|
|
||||||
performance_schema = 1
|
|
||||||
performance_schema_instrument = '%memory%=on'
|
|
||||||
performance_schema_instrument = '%lock%=on'
|
|
||||||
innodb_monitor_enable=ALL
|
|
||||||
|
|
||||||
[mysql]
|
|
||||||
no-auto-rehash
|
|
||||||
|
|
||||||
[mysqldump]
|
|
||||||
quick
|
|
||||||
max_allowed_packet = 32M
|
|
||||||
|
|
||||||
[client]
|
|
||||||
port=3306
|
|
||||||
socket=/opt/bitnami/mysql/tmp/mysql.sock
|
|
||||||
default-character-set=UTF8
|
|
||||||
plugin_dir=/opt/bitnami/mysql/plugin
|
|
||||||
|
|
||||||
[manager]
|
|
||||||
port=3306
|
|
||||||
socket=/opt/bitnami/mysql/tmp/mysql.sock
|
|
||||||
pid-file=/opt/bitnami/mysql/tmp/mysqld.pid
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
name: helm-mysql-init-scripts
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: mysql-db
|
|
||||||
octopus.control: mysql-db-wdd
|
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
|
||||||
app.kubernetes.io/managed-by: octopus
|
|
||||||
app.kubernetes.io/component: primary
|
|
||||||
data:
|
|
||||||
create_users_grants_core.sql: |-
|
|
||||||
create
|
|
||||||
user zyly@'%' identified by 'Cmii@451315';
|
|
||||||
grant select on *.* to zyly@'%';
|
|
||||||
create
|
|
||||||
user zyly_qc@'%' identified by 'Uh)E_owCyb16';
|
|
||||||
grant all
|
|
||||||
on *.* to zyly_qc@'%';
|
|
||||||
create
|
|
||||||
user k8s_admin@'%' identified by 'VFJncwy58^Zm';
|
|
||||||
grant all
|
|
||||||
on *.* to k8s_admin@'%';
|
|
||||||
create
|
|
||||||
user audit_dba@'%' identified by 'PjCzqiBmJaTpgkoYXynH';
|
|
||||||
grant all
|
|
||||||
on *.* to audit_dba@'%';
|
|
||||||
create
|
|
||||||
user db_backup@'%' identified by 'RU5Pu(4FGdT9';
|
|
||||||
GRANT
|
|
||||||
SELECT, RELOAD, PROCESS, LOCK TABLES, REPLICATION CLIENT, EVENT
|
|
||||||
on *.* to db_backup@'%';
|
|
||||||
create
|
|
||||||
user monitor@'%' identified by 'PL3#nGtrWbf-';
|
|
||||||
grant REPLICATION
|
|
||||||
CLIENT on *.* to monitor@'%';
|
|
||||||
flush
|
|
||||||
privileges;
|
|
||||||
---
|
|
||||||
kind: Service
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: cmii-mysql
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/component: primary
|
|
||||||
app.kubernetes.io/managed-by: octopus
|
|
||||||
app.kubernetes.io/name: mysql-db
|
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
|
||||||
cmii.app: mysql
|
|
||||||
cmii.type: middleware
|
|
||||||
octopus.control: mysql-db-wdd
|
|
||||||
spec:
|
|
||||||
ports:
|
|
||||||
- name: mysql
|
|
||||||
protocol: TCP
|
|
||||||
port: 13306
|
|
||||||
targetPort: mysql
|
|
||||||
selector:
|
|
||||||
app.kubernetes.io/component: primary
|
|
||||||
app.kubernetes.io/name: mysql-db
|
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
|
||||||
cmii.app: mysql
|
|
||||||
cmii.type: middleware
|
|
||||||
type: ClusterIP
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: helm-mysql-headless
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: mysql-db
|
|
||||||
octopus.control: mysql-db-wdd
|
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
|
||||||
app.kubernetes.io/managed-by: octopus
|
|
||||||
cmii.type: middleware
|
|
||||||
cmii.app: mysql
|
|
||||||
app.kubernetes.io/component: primary
|
|
||||||
annotations: { }
|
|
||||||
spec:
|
|
||||||
type: ClusterIP
|
|
||||||
clusterIP: None
|
|
||||||
publishNotReadyAddresses: true
|
|
||||||
ports:
|
|
||||||
- name: mysql
|
|
||||||
port: 3306
|
|
||||||
targetPort: mysql
|
|
||||||
selector:
|
|
||||||
app.kubernetes.io/name: mysql-db
|
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
|
||||||
cmii.type: middleware
|
|
||||||
cmii.app: mysql
|
|
||||||
app.kubernetes.io/component: primary
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: helm-mysql
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: mysql-db
|
|
||||||
octopus.control: mysql-db-wdd
|
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
|
||||||
app.kubernetes.io/managed-by: octopus
|
|
||||||
cmii.type: middleware
|
|
||||||
cmii.app: mysql
|
|
||||||
app.kubernetes.io/component: primary
|
|
||||||
annotations: { }
|
|
||||||
spec:
|
|
||||||
type: NodePort
|
|
||||||
ports:
|
|
||||||
- name: mysql
|
|
||||||
port: 3306
|
|
||||||
protocol: TCP
|
|
||||||
targetPort: mysql
|
|
||||||
nodePort: 33308
|
|
||||||
selector:
|
|
||||||
app.kubernetes.io/name: mysql-db
|
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
|
||||||
cmii.type: middleware
|
|
||||||
cmii.app: mysql
|
|
||||||
app.kubernetes.io/component: primary
|
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: StatefulSet
|
|
||||||
metadata:
|
|
||||||
name: helm-mysql
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: mysql-db
|
|
||||||
octopus.control: mysql-db-wdd
|
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
|
||||||
app.kubernetes.io/managed-by: octopus
|
|
||||||
cmii.type: middleware
|
|
||||||
cmii.app: mysql
|
|
||||||
app.kubernetes.io/component: primary
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app.kubernetes.io/name: mysql-db
|
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
|
||||||
cmii.type: middleware
|
|
||||||
cmii.app: mysql
|
|
||||||
app.kubernetes.io/component: primary
|
|
||||||
serviceName: helm-mysql
|
|
||||||
updateStrategy:
|
|
||||||
type: RollingUpdate
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
checksum/configuration: 6b60fa0f3a846a6ada8effdc4f823cf8003d42a8c8f630fe8b1b66d3454082dd
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: mysql-db
|
|
||||||
octopus.control: mysql-db-wdd
|
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
|
||||||
app.kubernetes.io/managed-by: octopus
|
|
||||||
cmii.type: middleware
|
|
||||||
cmii.app: mysql
|
|
||||||
app.kubernetes.io/component: primary
|
|
||||||
spec:
|
|
||||||
imagePullSecrets:
|
|
||||||
- name: harborsecret
|
|
||||||
serviceAccountName: helm-mysql
|
|
||||||
affinity: { }
|
|
||||||
nodeSelector:
|
|
||||||
mysql-deploy: "true"
|
|
||||||
securityContext:
|
|
||||||
fsGroup: 1001
|
|
||||||
initContainers:
|
|
||||||
- name: change-volume-permissions
|
|
||||||
image: harbor.cdcyy.com.cn/cmii/bitnami-shell:11-debian-11-r136
|
|
||||||
imagePullPolicy: "Always"
|
|
||||||
command:
|
|
||||||
- /bin/bash
|
|
||||||
- -ec
|
|
||||||
- |
|
|
||||||
chown -R 1001:1001 /bitnami/mysql
|
|
||||||
securityContext:
|
|
||||||
runAsUser: 0
|
|
||||||
volumeMounts:
|
|
||||||
- name: mysql-data
|
|
||||||
mountPath: /bitnami/mysql
|
|
||||||
containers:
|
|
||||||
- name: mysql
|
|
||||||
image: harbor.cdcyy.com.cn/cmii/mysql:8.1.0-debian-11-r42
|
|
||||||
imagePullPolicy: "IfNotPresent"
|
|
||||||
securityContext:
|
|
||||||
runAsUser: 1001
|
|
||||||
env:
|
|
||||||
- name: BITNAMI_DEBUG
|
|
||||||
value: "true"
|
|
||||||
- name: MYSQL_ROOT_PASSWORD
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: helm-mysql
|
|
||||||
key: mysql-root-password
|
|
||||||
- name: MYSQL_DATABASE
|
|
||||||
value: "cmii"
|
|
||||||
ports:
|
|
||||||
- name: mysql
|
|
||||||
containerPort: 3306
|
|
||||||
livenessProbe:
|
|
||||||
failureThreshold: 5
|
|
||||||
initialDelaySeconds: 120
|
|
||||||
periodSeconds: 10
|
|
||||||
successThreshold: 1
|
|
||||||
timeoutSeconds: 3
|
|
||||||
exec:
|
|
||||||
command:
|
|
||||||
- /bin/bash
|
|
||||||
- -ec
|
|
||||||
- |
|
|
||||||
password_aux="${MYSQL_ROOT_PASSWORD:-}"
|
|
||||||
if [[ -f "${MYSQL_ROOT_PASSWORD_FILE:-}" ]]; then
|
|
||||||
password_aux=$(cat "$MYSQL_ROOT_PASSWORD_FILE")
|
|
||||||
fi
|
|
||||||
mysqladmin status -uroot -p"${password_aux}"
|
|
||||||
readinessProbe:
|
|
||||||
failureThreshold: 5
|
|
||||||
initialDelaySeconds: 30
|
|
||||||
periodSeconds: 10
|
|
||||||
successThreshold: 1
|
|
||||||
timeoutSeconds: 3
|
|
||||||
exec:
|
|
||||||
command:
|
|
||||||
- /bin/bash
|
|
||||||
- -ec
|
|
||||||
- |
|
|
||||||
password_aux="${MYSQL_ROOT_PASSWORD:-}"
|
|
||||||
if [[ -f "${MYSQL_ROOT_PASSWORD_FILE:-}" ]]; then
|
|
||||||
password_aux=$(cat "$MYSQL_ROOT_PASSWORD_FILE")
|
|
||||||
fi
|
|
||||||
mysqladmin status -uroot -p"${password_aux}"
|
|
||||||
startupProbe:
|
|
||||||
failureThreshold: 60
|
|
||||||
initialDelaySeconds: 120
|
|
||||||
periodSeconds: 10
|
|
||||||
successThreshold: 1
|
|
||||||
timeoutSeconds: 1
|
|
||||||
exec:
|
|
||||||
command:
|
|
||||||
- /bin/bash
|
|
||||||
- -ec
|
|
||||||
- |
|
|
||||||
password_aux="${MYSQL_ROOT_PASSWORD:-}"
|
|
||||||
if [[ -f "${MYSQL_ROOT_PASSWORD_FILE:-}" ]]; then
|
|
||||||
password_aux=$(cat "$MYSQL_ROOT_PASSWORD_FILE")
|
|
||||||
fi
|
|
||||||
mysqladmin status -uroot -p"${password_aux}"
|
|
||||||
resources:
|
|
||||||
limits: { }
|
|
||||||
requests: { }
|
|
||||||
volumeMounts:
|
|
||||||
- name: mysql-data
|
|
||||||
mountPath: /bitnami/mysql
|
|
||||||
- name: custom-init-scripts
|
|
||||||
mountPath: /docker-entrypoint-initdb.d
|
|
||||||
- name: config
|
|
||||||
mountPath: /opt/bitnami/mysql/conf/my.cnf
|
|
||||||
subPath: my.cnf
|
|
||||||
volumes:
|
|
||||||
- name: config
|
|
||||||
configMap:
|
|
||||||
name: helm-mysql
|
|
||||||
- name: custom-init-scripts
|
|
||||||
configMap:
|
|
||||||
name: helm-mysql-init-scripts
|
|
||||||
- name: mysql-data
|
|
||||||
hostPath:
|
|
||||||
path: /var/lib/docker/mysql-pv/uavcloud-devoperation/
|
|
||||||
@@ -1,130 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
name: helm-nacos-cm
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
labels:
|
|
||||||
cmii.app: helm-nacos
|
|
||||||
cmii.type: middleware
|
|
||||||
octopus.control: nacos-wdd
|
|
||||||
app.kubernetes.io/managed-by: Helm
|
|
||||||
app.kubernetes.io/version: 5.6.0
|
|
||||||
data:
|
|
||||||
mysql.db.name: "cmii_nacos_config"
|
|
||||||
mysql.db.host: "helm-mysql"
|
|
||||||
mysql.port: "3306"
|
|
||||||
mysql.user: "k8s_admin"
|
|
||||||
mysql.password: "VFJncwy58^Zm"
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: helm-nacos
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
labels:
|
|
||||||
cmii.app: helm-nacos
|
|
||||||
cmii.type: middleware
|
|
||||||
octopus.control: nacos-wdd
|
|
||||||
app.kubernetes.io/managed-by: Helm
|
|
||||||
app.kubernetes.io/version: 5.6.0
|
|
||||||
spec:
|
|
||||||
type: NodePort
|
|
||||||
selector:
|
|
||||||
cmii.app: helm-nacos
|
|
||||||
cmii.type: middleware
|
|
||||||
ports:
|
|
||||||
- port: 8848
|
|
||||||
name: server
|
|
||||||
targetPort: 8848
|
|
||||||
nodePort: 33850
|
|
||||||
- port: 9848
|
|
||||||
name: server12
|
|
||||||
targetPort: 9848
|
|
||||||
- port: 9849
|
|
||||||
name: server23
|
|
||||||
targetPort: 9849
|
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: StatefulSet
|
|
||||||
metadata:
|
|
||||||
name: helm-nacos
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
labels:
|
|
||||||
cmii.app: helm-nacos
|
|
||||||
cmii.type: middleware
|
|
||||||
octopus.control: nacos-wdd
|
|
||||||
app.kubernetes.io/managed-by: Helm
|
|
||||||
app.kubernetes.io/version: 5.6.0
|
|
||||||
spec:
|
|
||||||
serviceName: helm-nacos
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
cmii.app: helm-nacos
|
|
||||||
cmii.type: middleware
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
cmii.app: helm-nacos
|
|
||||||
cmii.type: middleware
|
|
||||||
octopus.control: nacos-wdd
|
|
||||||
app.kubernetes.io/managed-by: octopus
|
|
||||||
app.kubernetes.io/version: 5.6.0
|
|
||||||
annotations:
|
|
||||||
pod.alpha.kubernetes.io/initialized: "true"
|
|
||||||
spec:
|
|
||||||
imagePullSecrets:
|
|
||||||
- name: harborsecret
|
|
||||||
affinity: { }
|
|
||||||
containers:
|
|
||||||
- name: nacos-server
|
|
||||||
image: harbor.cdcyy.com.cn/cmii/nacos-server:v2.1.2
|
|
||||||
ports:
|
|
||||||
- containerPort: 8848
|
|
||||||
name: dashboard
|
|
||||||
- containerPort: 9848
|
|
||||||
name: tcp-9848
|
|
||||||
- containerPort: 9849
|
|
||||||
name: tcp-9849
|
|
||||||
env:
|
|
||||||
- name: NACOS_AUTH_ENABLE
|
|
||||||
value: "false"
|
|
||||||
- name: NACOS_REPLICAS
|
|
||||||
value: "1"
|
|
||||||
- name: MYSQL_SERVICE_DB_NAME
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
name: helm-nacos-cm
|
|
||||||
key: mysql.db.name
|
|
||||||
- name: MYSQL_SERVICE_PORT
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
name: helm-nacos-cm
|
|
||||||
key: mysql.port
|
|
||||||
- name: MYSQL_SERVICE_USER
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
name: helm-nacos-cm
|
|
||||||
key: mysql.user
|
|
||||||
- name: MYSQL_SERVICE_PASSWORD
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
name: helm-nacos-cm
|
|
||||||
key: mysql.password
|
|
||||||
- name: MYSQL_SERVICE_HOST
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
name: helm-nacos-cm
|
|
||||||
key: mysql.db.host
|
|
||||||
- name: NACOS_SERVER_PORT
|
|
||||||
value: "8848"
|
|
||||||
- name: NACOS_APPLICATION_PORT
|
|
||||||
value: "8848"
|
|
||||||
- name: PREFER_HOST_MODE
|
|
||||||
value: "hostname"
|
|
||||||
- name: MODE
|
|
||||||
value: standalone
|
|
||||||
- name: SPRING_DATASOURCE_PLATFORM
|
|
||||||
value: mysql
|
|
||||||
---
|
|
||||||
@@ -1,328 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ServiceAccount
|
|
||||||
metadata:
|
|
||||||
name: helm-rabbitmq
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: helm-rabbitmq
|
|
||||||
helm.sh/chart: rabbitmq-8.26.1
|
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
|
||||||
app.kubernetes.io/managed-by: rabbitmq
|
|
||||||
automountServiceAccountToken: true
|
|
||||||
secrets:
|
|
||||||
- name: helm-rabbitmq
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Secret
|
|
||||||
metadata:
|
|
||||||
name: helm-rabbitmq
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: helm-rabbitmq
|
|
||||||
helm.sh/chart: rabbitmq-8.26.1
|
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
|
||||||
app.kubernetes.io/managed-by: rabbitmq
|
|
||||||
type: Opaque
|
|
||||||
data:
|
|
||||||
rabbitmq-password: "N3YmNyN3MWVmKVQt"
|
|
||||||
rabbitmq-erlang-cookie: "emFBRmt1ZU1xMkJieXZvdHRYbWpoWk52UThuVXFzcTU="
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
name: helm-rabbitmq-config
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: helm-rabbitmq
|
|
||||||
helm.sh/chart: rabbitmq-8.26.1
|
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
|
||||||
app.kubernetes.io/managed-by: rabbitmq
|
|
||||||
data:
|
|
||||||
rabbitmq.conf: |-
|
|
||||||
## Username and password
|
|
||||||
##
|
|
||||||
default_user = admin
|
|
||||||
default_pass = 7v&7#w1ef)T-
|
|
||||||
## Clustering
|
|
||||||
##
|
|
||||||
cluster_formation.peer_discovery_backend = rabbit_peer_discovery_k8s
|
|
||||||
cluster_formation.k8s.host = kubernetes.default.svc.cluster.local
|
|
||||||
cluster_formation.node_cleanup.interval = 10
|
|
||||||
cluster_formation.node_cleanup.only_log_warning = true
|
|
||||||
cluster_partition_handling = autoheal
|
|
||||||
# queue master locator
|
|
||||||
queue_master_locator = min-masters
|
|
||||||
# enable guest user
|
|
||||||
loopback_users.guest = false
|
|
||||||
#default_vhost = default-vhost
|
|
||||||
#disk_free_limit.absolute = 50MB
|
|
||||||
#load_definitions = /app/load_definition.json
|
|
||||||
---
|
|
||||||
kind: Role
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
|
||||||
metadata:
|
|
||||||
name: helm-rabbitmq-endpoint-reader
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: helm-rabbitmq
|
|
||||||
helm.sh/chart: rabbitmq-8.26.1
|
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
|
||||||
app.kubernetes.io/managed-by: rabbitmq
|
|
||||||
rules:
|
|
||||||
- apiGroups: [ "" ]
|
|
||||||
resources: [ "endpoints" ]
|
|
||||||
verbs: [ "get" ]
|
|
||||||
- apiGroups: [ "" ]
|
|
||||||
resources: [ "events" ]
|
|
||||||
verbs: [ "create" ]
|
|
||||||
---
|
|
||||||
kind: RoleBinding
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
|
||||||
metadata:
|
|
||||||
name: helm-rabbitmq-endpoint-reader
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: helm-rabbitmq
|
|
||||||
helm.sh/chart: rabbitmq-8.26.1
|
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
|
||||||
app.kubernetes.io/managed-by: rabbitmq
|
|
||||||
subjects:
|
|
||||||
- kind: ServiceAccount
|
|
||||||
name: helm-rabbitmq
|
|
||||||
roleRef:
|
|
||||||
apiGroup: rbac.authorization.k8s.io
|
|
||||||
kind: Role
|
|
||||||
name: helm-rabbitmq-endpoint-reader
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: helm-rabbitmq-headless
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: helm-rabbitmq
|
|
||||||
helm.sh/chart: rabbitmq-8.26.1
|
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
|
||||||
app.kubernetes.io/managed-by: rabbitmq
|
|
||||||
spec:
|
|
||||||
clusterIP: None
|
|
||||||
ports:
|
|
||||||
- name: epmd
|
|
||||||
port: 4369
|
|
||||||
targetPort: epmd
|
|
||||||
- name: amqp
|
|
||||||
port: 5672
|
|
||||||
targetPort: amqp
|
|
||||||
- name: dist
|
|
||||||
port: 25672
|
|
||||||
targetPort: dist
|
|
||||||
- name: dashboard
|
|
||||||
port: 15672
|
|
||||||
targetPort: stats
|
|
||||||
selector:
|
|
||||||
app.kubernetes.io/name: helm-rabbitmq
|
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
|
||||||
publishNotReadyAddresses: true
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: helm-rabbitmq
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: helm-rabbitmq
|
|
||||||
helm.sh/chart: rabbitmq-8.26.1
|
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
|
||||||
app.kubernetes.io/managed-by: rabbitmq
|
|
||||||
spec:
|
|
||||||
type: NodePort
|
|
||||||
ports:
|
|
||||||
- name: amqp
|
|
||||||
port: 5672
|
|
||||||
targetPort: amqp
|
|
||||||
nodePort: 35674
|
|
||||||
- name: dashboard
|
|
||||||
port: 15672
|
|
||||||
targetPort: dashboard
|
|
||||||
nodePort: 36677
|
|
||||||
selector:
|
|
||||||
app.kubernetes.io/name: helm-rabbitmq
|
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: StatefulSet
|
|
||||||
metadata:
|
|
||||||
name: helm-rabbitmq
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: helm-rabbitmq
|
|
||||||
helm.sh/chart: rabbitmq-8.26.1
|
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
|
||||||
app.kubernetes.io/managed-by: rabbitmq
|
|
||||||
spec:
|
|
||||||
serviceName: helm-rabbitmq-headless
|
|
||||||
podManagementPolicy: OrderedReady
|
|
||||||
replicas: 1
|
|
||||||
updateStrategy:
|
|
||||||
type: RollingUpdate
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app.kubernetes.io/name: helm-rabbitmq
|
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: helm-rabbitmq
|
|
||||||
helm.sh/chart: rabbitmq-8.26.1
|
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
|
||||||
app.kubernetes.io/managed-by: rabbitmq
|
|
||||||
annotations:
|
|
||||||
checksum/config: d6c2caa9572f64a06d9f7daa34c664a186b4778cd1697ef8e59663152fc628f1
|
|
||||||
checksum/secret: d764e7b3d999e7324d1afdfec6140092a612f04b6e0306818675815cec2f454f
|
|
||||||
spec:
|
|
||||||
imagePullSecrets:
|
|
||||||
- name: harborsecret
|
|
||||||
serviceAccountName: helm-rabbitmq
|
|
||||||
affinity: { }
|
|
||||||
securityContext:
|
|
||||||
fsGroup: 5001
|
|
||||||
runAsUser: 5001
|
|
||||||
terminationGracePeriodSeconds: 120
|
|
||||||
initContainers:
|
|
||||||
- name: volume-permissions
|
|
||||||
image: harbor.cdcyy.com.cn/cmii/bitnami-shell:11-debian-11-r136
|
|
||||||
imagePullPolicy: "Always"
|
|
||||||
command:
|
|
||||||
- /bin/bash
|
|
||||||
args:
|
|
||||||
- -ec
|
|
||||||
- |
|
|
||||||
mkdir -p "/bitnami/rabbitmq/mnesia"
|
|
||||||
chown -R "5001:5001" "/bitnami/rabbitmq/mnesia"
|
|
||||||
securityContext:
|
|
||||||
runAsUser: 0
|
|
||||||
resources:
|
|
||||||
limits: { }
|
|
||||||
requests: { }
|
|
||||||
volumeMounts:
|
|
||||||
- name: data
|
|
||||||
mountPath: /bitnami/rabbitmq/mnesia
|
|
||||||
containers:
|
|
||||||
- name: rabbitmq
|
|
||||||
image: harbor.cdcyy.com.cn/cmii/rabbitmq:3.9.12-debian-10-r3
|
|
||||||
imagePullPolicy: "Always"
|
|
||||||
env:
|
|
||||||
- name: BITNAMI_DEBUG
|
|
||||||
value: "false"
|
|
||||||
- name: MY_POD_IP
|
|
||||||
valueFrom:
|
|
||||||
fieldRef:
|
|
||||||
fieldPath: status.podIP
|
|
||||||
- name: MY_POD_NAME
|
|
||||||
valueFrom:
|
|
||||||
fieldRef:
|
|
||||||
fieldPath: metadata.name
|
|
||||||
- name: MY_POD_NAMESPACE
|
|
||||||
valueFrom:
|
|
||||||
fieldRef:
|
|
||||||
fieldPath: metadata.namespace
|
|
||||||
- name: K8S_SERVICE_NAME
|
|
||||||
value: "helm-rabbitmq-headless"
|
|
||||||
- name: K8S_ADDRESS_TYPE
|
|
||||||
value: hostname
|
|
||||||
- name: RABBITMQ_FORCE_BOOT
|
|
||||||
value: "no"
|
|
||||||
- name: RABBITMQ_NODE_NAME
|
|
||||||
value: "rabbit@$(MY_POD_NAME).$(K8S_SERVICE_NAME).$(MY_POD_NAMESPACE).svc.cluster.local"
|
|
||||||
- name: K8S_HOSTNAME_SUFFIX
|
|
||||||
value: ".$(K8S_SERVICE_NAME).$(MY_POD_NAMESPACE).svc.cluster.local"
|
|
||||||
- name: RABBITMQ_MNESIA_DIR
|
|
||||||
value: "/bitnami/rabbitmq/mnesia/$(RABBITMQ_NODE_NAME)"
|
|
||||||
- name: RABBITMQ_LDAP_ENABLE
|
|
||||||
value: "no"
|
|
||||||
- name: RABBITMQ_LOGS
|
|
||||||
value: "-"
|
|
||||||
- name: RABBITMQ_ULIMIT_NOFILES
|
|
||||||
value: "65536"
|
|
||||||
- name: RABBITMQ_USE_LONGNAME
|
|
||||||
value: "true"
|
|
||||||
- name: RABBITMQ_ERL_COOKIE
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: helm-rabbitmq
|
|
||||||
key: rabbitmq-erlang-cookie
|
|
||||||
- name: RABBITMQ_LOAD_DEFINITIONS
|
|
||||||
value: "no"
|
|
||||||
- name: RABBITMQ_SECURE_PASSWORD
|
|
||||||
value: "yes"
|
|
||||||
- name: RABBITMQ_USERNAME
|
|
||||||
value: "admin"
|
|
||||||
- name: RABBITMQ_PASSWORD
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: helm-rabbitmq
|
|
||||||
key: rabbitmq-password
|
|
||||||
- name: RABBITMQ_PLUGINS
|
|
||||||
value: "rabbitmq_management, rabbitmq_peer_discovery_k8s, rabbitmq_shovel, rabbitmq_shovel_management, rabbitmq_auth_backend_ldap"
|
|
||||||
ports:
|
|
||||||
- name: amqp
|
|
||||||
containerPort: 5672
|
|
||||||
- name: dist
|
|
||||||
containerPort: 25672
|
|
||||||
- name: dashboard
|
|
||||||
containerPort: 15672
|
|
||||||
- name: epmd
|
|
||||||
containerPort: 4369
|
|
||||||
livenessProbe:
|
|
||||||
exec:
|
|
||||||
command:
|
|
||||||
- /bin/bash
|
|
||||||
- -ec
|
|
||||||
- rabbitmq-diagnostics -q ping
|
|
||||||
initialDelaySeconds: 120
|
|
||||||
periodSeconds: 30
|
|
||||||
timeoutSeconds: 20
|
|
||||||
successThreshold: 1
|
|
||||||
failureThreshold: 6
|
|
||||||
readinessProbe:
|
|
||||||
exec:
|
|
||||||
command:
|
|
||||||
- /bin/bash
|
|
||||||
- -ec
|
|
||||||
- rabbitmq-diagnostics -q check_running && rabbitmq-diagnostics -q check_local_alarms
|
|
||||||
initialDelaySeconds: 10
|
|
||||||
periodSeconds: 30
|
|
||||||
timeoutSeconds: 20
|
|
||||||
successThreshold: 1
|
|
||||||
failureThreshold: 3
|
|
||||||
lifecycle:
|
|
||||||
preStop:
|
|
||||||
exec:
|
|
||||||
command:
|
|
||||||
- /bin/bash
|
|
||||||
- -ec
|
|
||||||
- |
|
|
||||||
if [[ -f /opt/bitnami/scripts/rabbitmq/nodeshutdown.sh ]]; then
|
|
||||||
/opt/bitnami/scripts/rabbitmq/nodeshutdown.sh -t "120" -d "false"
|
|
||||||
else
|
|
||||||
rabbitmqctl stop_app
|
|
||||||
fi
|
|
||||||
resources:
|
|
||||||
limits: { }
|
|
||||||
requests: { }
|
|
||||||
volumeMounts:
|
|
||||||
- name: configuration
|
|
||||||
mountPath: /bitnami/rabbitmq/conf
|
|
||||||
- name: data
|
|
||||||
mountPath: /bitnami/rabbitmq/mnesia
|
|
||||||
volumes:
|
|
||||||
- name: configuration
|
|
||||||
configMap:
|
|
||||||
name: helm-rabbitmq-config
|
|
||||||
items:
|
|
||||||
- key: rabbitmq.conf
|
|
||||||
path: rabbitmq.conf
|
|
||||||
- name: data
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: helm-rabbitmq
|
|
||||||
@@ -1,585 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ServiceAccount
|
|
||||||
automountServiceAccountToken: true
|
|
||||||
metadata:
|
|
||||||
name: helm-redis
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: redis-db
|
|
||||||
octopus.control: redis-db-wdd
|
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
|
||||||
app.kubernetes.io/managed-by: octopus
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Secret
|
|
||||||
metadata:
|
|
||||||
name: helm-redis
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: redis-db
|
|
||||||
octopus.control: redis-db-wdd
|
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
|
||||||
app.kubernetes.io/managed-by: octopus
|
|
||||||
type: Opaque
|
|
||||||
data:
|
|
||||||
redis-password: "TWNhY2hlQDQ1MjI="
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
name: helm-redis-configuration
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: redis-db
|
|
||||||
octopus.control: redis-db-wdd
|
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
|
||||||
app.kubernetes.io/managed-by: octopus
|
|
||||||
data:
|
|
||||||
redis.conf: |-
|
|
||||||
# User-supplied common configuration:
|
|
||||||
# Enable AOF https://redis.io/topics/persistence#append-only-file
|
|
||||||
appendonly yes
|
|
||||||
# Disable RDB persistence, AOF persistence already enabled.
|
|
||||||
save ""
|
|
||||||
# End of common configuration
|
|
||||||
master.conf: |-
|
|
||||||
dir /data
|
|
||||||
# User-supplied master configuration:
|
|
||||||
rename-command FLUSHDB ""
|
|
||||||
rename-command FLUSHALL ""
|
|
||||||
# End of master configuration
|
|
||||||
replica.conf: |-
|
|
||||||
dir /data
|
|
||||||
slave-read-only yes
|
|
||||||
# User-supplied replica configuration:
|
|
||||||
rename-command FLUSHDB ""
|
|
||||||
rename-command FLUSHALL ""
|
|
||||||
# End of replica configuration
|
|
||||||
---
|
|
||||||
# Source: outside-deploy/charts/redis-db/templates/health-configmap.yaml
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
name: helm-redis-health
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: redis-db
|
|
||||||
octopus.control: redis-db-wdd
|
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
|
||||||
app.kubernetes.io/managed-by: octopus
|
|
||||||
data:
|
|
||||||
ping_readiness_local.sh: |-
|
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
[[ -f $REDIS_PASSWORD_FILE ]] && export REDIS_PASSWORD="$(< "${REDIS_PASSWORD_FILE}")"
|
|
||||||
[[ -n "$REDIS_PASSWORD" ]] && export REDISCLI_AUTH="$REDIS_PASSWORD"
|
|
||||||
response=$(
|
|
||||||
timeout -s 3 $1 \
|
|
||||||
redis-cli \
|
|
||||||
-h localhost \
|
|
||||||
-p $REDIS_PORT \
|
|
||||||
ping
|
|
||||||
)
|
|
||||||
if [ "$response" != "PONG" ]; then
|
|
||||||
echo "$response"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
ping_liveness_local.sh: |-
|
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
[[ -f $REDIS_PASSWORD_FILE ]] && export REDIS_PASSWORD="$(< "${REDIS_PASSWORD_FILE}")"
|
|
||||||
[[ -n "$REDIS_PASSWORD" ]] && export REDISCLI_AUTH="$REDIS_PASSWORD"
|
|
||||||
response=$(
|
|
||||||
timeout -s 3 $1 \
|
|
||||||
redis-cli \
|
|
||||||
-h localhost \
|
|
||||||
-p $REDIS_PORT \
|
|
||||||
ping
|
|
||||||
)
|
|
||||||
if [ "$response" != "PONG" ] && [ "$response" != "LOADING Redis is loading the dataset in memory" ]; then
|
|
||||||
echo "$response"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
ping_readiness_master.sh: |-
|
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
[[ -f $REDIS_MASTER_PASSWORD_FILE ]] && export REDIS_MASTER_PASSWORD="$(< "${REDIS_MASTER_PASSWORD_FILE}")"
|
|
||||||
[[ -n "$REDIS_MASTER_PASSWORD" ]] && export REDISCLI_AUTH="$REDIS_MASTER_PASSWORD"
|
|
||||||
response=$(
|
|
||||||
timeout -s 3 $1 \
|
|
||||||
redis-cli \
|
|
||||||
-h $REDIS_MASTER_HOST \
|
|
||||||
-p $REDIS_MASTER_PORT_NUMBER \
|
|
||||||
ping
|
|
||||||
)
|
|
||||||
if [ "$response" != "PONG" ]; then
|
|
||||||
echo "$response"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
ping_liveness_master.sh: |-
|
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
[[ -f $REDIS_MASTER_PASSWORD_FILE ]] && export REDIS_MASTER_PASSWORD="$(< "${REDIS_MASTER_PASSWORD_FILE}")"
|
|
||||||
[[ -n "$REDIS_MASTER_PASSWORD" ]] && export REDISCLI_AUTH="$REDIS_MASTER_PASSWORD"
|
|
||||||
response=$(
|
|
||||||
timeout -s 3 $1 \
|
|
||||||
redis-cli \
|
|
||||||
-h $REDIS_MASTER_HOST \
|
|
||||||
-p $REDIS_MASTER_PORT_NUMBER \
|
|
||||||
ping
|
|
||||||
)
|
|
||||||
if [ "$response" != "PONG" ] && [ "$response" != "LOADING Redis is loading the dataset in memory" ]; then
|
|
||||||
echo "$response"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
ping_readiness_local_and_master.sh: |-
|
|
||||||
script_dir="$(dirname "$0")"
|
|
||||||
exit_status=0
|
|
||||||
"$script_dir/ping_readiness_local.sh" $1 || exit_status=$?
|
|
||||||
"$script_dir/ping_readiness_master.sh" $1 || exit_status=$?
|
|
||||||
exit $exit_status
|
|
||||||
ping_liveness_local_and_master.sh: |-
|
|
||||||
script_dir="$(dirname "$0")"
|
|
||||||
exit_status=0
|
|
||||||
"$script_dir/ping_liveness_local.sh" $1 || exit_status=$?
|
|
||||||
"$script_dir/ping_liveness_master.sh" $1 || exit_status=$?
|
|
||||||
exit $exit_status
|
|
||||||
---
|
|
||||||
# Source: outside-deploy/charts/redis-db/templates/scripts-configmap.yaml
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
name: helm-redis-scripts
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: redis-db
|
|
||||||
octopus.control: redis-db-wdd
|
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
|
||||||
app.kubernetes.io/managed-by: octopus
|
|
||||||
data:
|
|
||||||
start-master.sh: |
|
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
[[ -f $REDIS_PASSWORD_FILE ]] && export REDIS_PASSWORD="$(< "${REDIS_PASSWORD_FILE}")"
|
|
||||||
if [[ ! -f /opt/bitnami/redis/etc/master.conf ]];then
|
|
||||||
cp /opt/bitnami/redis/mounted-etc/master.conf /opt/bitnami/redis/etc/master.conf
|
|
||||||
fi
|
|
||||||
if [[ ! -f /opt/bitnami/redis/etc/redis.conf ]];then
|
|
||||||
cp /opt/bitnami/redis/mounted-etc/redis.conf /opt/bitnami/redis/etc/redis.conf
|
|
||||||
fi
|
|
||||||
ARGS=("--port" "${REDIS_PORT}")
|
|
||||||
ARGS+=("--requirepass" "${REDIS_PASSWORD}")
|
|
||||||
ARGS+=("--masterauth" "${REDIS_PASSWORD}")
|
|
||||||
ARGS+=("--include" "/opt/bitnami/redis/etc/redis.conf")
|
|
||||||
ARGS+=("--include" "/opt/bitnami/redis/etc/master.conf")
|
|
||||||
exec redis-server "${ARGS[@]}"
|
|
||||||
start-replica.sh: |
|
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
get_port() {
|
|
||||||
hostname="$1"
|
|
||||||
type="$2"
|
|
||||||
|
|
||||||
port_var=$(echo "${hostname^^}_SERVICE_PORT_$type" | sed "s/-/_/g")
|
|
||||||
port=${!port_var}
|
|
||||||
|
|
||||||
if [ -z "$port" ]; then
|
|
||||||
case $type in
|
|
||||||
"SENTINEL")
|
|
||||||
echo 26379
|
|
||||||
;;
|
|
||||||
"REDIS")
|
|
||||||
echo 6379
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
else
|
|
||||||
echo $port
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
get_full_hostname() {
|
|
||||||
hostname="$1"
|
|
||||||
echo "${hostname}.${HEADLESS_SERVICE}"
|
|
||||||
}
|
|
||||||
|
|
||||||
REDISPORT=$(get_port "$HOSTNAME" "REDIS")
|
|
||||||
|
|
||||||
[[ -f $REDIS_PASSWORD_FILE ]] && export REDIS_PASSWORD="$(< "${REDIS_PASSWORD_FILE}")"
|
|
||||||
[[ -f $REDIS_MASTER_PASSWORD_FILE ]] && export REDIS_MASTER_PASSWORD="$(< "${REDIS_MASTER_PASSWORD_FILE}")"
|
|
||||||
if [[ ! -f /opt/bitnami/redis/etc/replica.conf ]];then
|
|
||||||
cp /opt/bitnami/redis/mounted-etc/replica.conf /opt/bitnami/redis/etc/replica.conf
|
|
||||||
fi
|
|
||||||
if [[ ! -f /opt/bitnami/redis/etc/redis.conf ]];then
|
|
||||||
cp /opt/bitnami/redis/mounted-etc/redis.conf /opt/bitnami/redis/etc/redis.conf
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "" >> /opt/bitnami/redis/etc/replica.conf
|
|
||||||
echo "replica-announce-port $REDISPORT" >> /opt/bitnami/redis/etc/replica.conf
|
|
||||||
echo "replica-announce-ip $(get_full_hostname "$HOSTNAME")" >> /opt/bitnami/redis/etc/replica.conf
|
|
||||||
ARGS=("--port" "${REDIS_PORT}")
|
|
||||||
ARGS+=("--slaveof" "${REDIS_MASTER_HOST}" "${REDIS_MASTER_PORT_NUMBER}")
|
|
||||||
ARGS+=("--requirepass" "${REDIS_PASSWORD}")
|
|
||||||
ARGS+=("--masterauth" "${REDIS_MASTER_PASSWORD}")
|
|
||||||
ARGS+=("--include" "/opt/bitnami/redis/etc/redis.conf")
|
|
||||||
ARGS+=("--include" "/opt/bitnami/redis/etc/replica.conf")
|
|
||||||
exec redis-server "${ARGS[@]}"
|
|
||||||
---
|
|
||||||
# Source: outside-deploy/charts/redis-db/templates/headless-svc.yaml
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: helm-redis-headless
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: redis-db
|
|
||||||
octopus.control: redis-db-wdd
|
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
|
||||||
app.kubernetes.io/managed-by: octopus
|
|
||||||
spec:
|
|
||||||
type: ClusterIP
|
|
||||||
clusterIP: None
|
|
||||||
ports:
|
|
||||||
- name: tcp-redis
|
|
||||||
port: 6379
|
|
||||||
targetPort: redis
|
|
||||||
selector:
|
|
||||||
app.kubernetes.io/name: redis-db
|
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
|
||||||
---
|
|
||||||
# Source: outside-deploy/charts/redis-db/templates/master/service.yaml
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: helm-redis-master
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: redis-db
|
|
||||||
octopus.control: redis-db-wdd
|
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
|
||||||
app.kubernetes.io/managed-by: octopus
|
|
||||||
cmii.type: middleware
|
|
||||||
cmii.app: redis
|
|
||||||
app.kubernetes.io/component: master
|
|
||||||
spec:
|
|
||||||
type: ClusterIP
|
|
||||||
|
|
||||||
ports:
|
|
||||||
- name: tcp-redis
|
|
||||||
port: 6379
|
|
||||||
targetPort: redis
|
|
||||||
nodePort: null
|
|
||||||
selector:
|
|
||||||
app.kubernetes.io/name: redis-db
|
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
|
||||||
cmii.type: middleware
|
|
||||||
cmii.app: redis
|
|
||||||
app.kubernetes.io/component: master
|
|
||||||
---
|
|
||||||
# Source: outside-deploy/charts/redis-db/templates/replicas/service.yaml
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: helm-redis-replicas
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: redis-db
|
|
||||||
octopus.control: redis-db-wdd
|
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
|
||||||
app.kubernetes.io/managed-by: octopus
|
|
||||||
app.kubernetes.io/component: replica
|
|
||||||
spec:
|
|
||||||
type: ClusterIP
|
|
||||||
ports:
|
|
||||||
- name: tcp-redis
|
|
||||||
port: 6379
|
|
||||||
targetPort: redis
|
|
||||||
nodePort: null
|
|
||||||
selector:
|
|
||||||
app.kubernetes.io/name: redis-db
|
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
|
||||||
app.kubernetes.io/component: replica
|
|
||||||
---
|
|
||||||
# Source: outside-deploy/charts/redis-db/templates/master/statefulset.yaml
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: StatefulSet
|
|
||||||
metadata:
|
|
||||||
name: helm-redis-master
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: redis-db
|
|
||||||
octopus.control: redis-db-wdd
|
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
|
||||||
app.kubernetes.io/managed-by: octopus
|
|
||||||
cmii.type: middleware
|
|
||||||
cmii.app: redis
|
|
||||||
app.kubernetes.io/component: master
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app.kubernetes.io/name: redis-db
|
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
|
||||||
cmii.type: middleware
|
|
||||||
cmii.app: redis
|
|
||||||
app.kubernetes.io/component: master
|
|
||||||
serviceName: helm-redis-headless
|
|
||||||
updateStrategy:
|
|
||||||
rollingUpdate: { }
|
|
||||||
type: RollingUpdate
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: redis-db
|
|
||||||
octopus.control: redis-db-wdd
|
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
|
||||||
app.kubernetes.io/managed-by: octopus
|
|
||||||
cmii.type: middleware
|
|
||||||
cmii.app: redis
|
|
||||||
app.kubernetes.io/component: master
|
|
||||||
annotations:
|
|
||||||
checksum/configmap: b64aa5db67e6e63811f3c1095b9fce34d83c86a471fccdda0e48eedb53a179b0
|
|
||||||
checksum/health: 6e0a6330e5ac63e565ae92af1444527d72d8897f91266f333555b3d323570623
|
|
||||||
checksum/scripts: b88df93710b7c42a76006e20218f05c6e500e6cc2affd4bb1985832f03166e98
|
|
||||||
checksum/secret: 43f1b0e20f9cb2de936bd182bc3683b720fc3cf4f4e76cb23c06a52398a50e8d
|
|
||||||
spec:
|
|
||||||
affinity: { }
|
|
||||||
securityContext:
|
|
||||||
fsGroup: 1001
|
|
||||||
serviceAccountName: helm-redis
|
|
||||||
imagePullSecrets:
|
|
||||||
- name: harborsecret
|
|
||||||
terminationGracePeriodSeconds: 30
|
|
||||||
containers:
|
|
||||||
- name: redis
|
|
||||||
image: harbor.cdcyy.com.cn/cmii/redis:6.2.6-debian-10-r0
|
|
||||||
imagePullPolicy: "Always"
|
|
||||||
securityContext:
|
|
||||||
runAsUser: 1001
|
|
||||||
command:
|
|
||||||
- /bin/bash
|
|
||||||
args:
|
|
||||||
- -c
|
|
||||||
- /opt/bitnami/scripts/start-scripts/start-master.sh
|
|
||||||
env:
|
|
||||||
- name: BITNAMI_DEBUG
|
|
||||||
value: "false"
|
|
||||||
- name: REDIS_REPLICATION_MODE
|
|
||||||
value: master
|
|
||||||
- name: ALLOW_EMPTY_PASSWORD
|
|
||||||
value: "no"
|
|
||||||
- name: REDIS_PASSWORD
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: helm-redis
|
|
||||||
key: redis-password
|
|
||||||
- name: REDIS_TLS_ENABLED
|
|
||||||
value: "no"
|
|
||||||
- name: REDIS_PORT
|
|
||||||
value: "6379"
|
|
||||||
ports:
|
|
||||||
- name: redis
|
|
||||||
containerPort: 6379
|
|
||||||
livenessProbe:
|
|
||||||
initialDelaySeconds: 20
|
|
||||||
periodSeconds: 5
|
|
||||||
# One second longer than command timeout should prevent generation of zombie processes.
|
|
||||||
timeoutSeconds: 6
|
|
||||||
successThreshold: 1
|
|
||||||
failureThreshold: 5
|
|
||||||
exec:
|
|
||||||
command:
|
|
||||||
- sh
|
|
||||||
- -c
|
|
||||||
- /health/ping_liveness_local.sh 5
|
|
||||||
readinessProbe:
|
|
||||||
initialDelaySeconds: 20
|
|
||||||
periodSeconds: 5
|
|
||||||
timeoutSeconds: 2
|
|
||||||
successThreshold: 1
|
|
||||||
failureThreshold: 5
|
|
||||||
exec:
|
|
||||||
command:
|
|
||||||
- sh
|
|
||||||
- -c
|
|
||||||
- /health/ping_readiness_local.sh 1
|
|
||||||
resources:
|
|
||||||
limits:
|
|
||||||
cpu: "2"
|
|
||||||
memory: 8Gi
|
|
||||||
requests:
|
|
||||||
cpu: "100m"
|
|
||||||
memory: 1Gi
|
|
||||||
volumeMounts:
|
|
||||||
- name: start-scripts
|
|
||||||
mountPath: /opt/bitnami/scripts/start-scripts
|
|
||||||
- name: health
|
|
||||||
mountPath: /health
|
|
||||||
- name: redis-data
|
|
||||||
mountPath: /data
|
|
||||||
subPath:
|
|
||||||
- name: config
|
|
||||||
mountPath: /opt/bitnami/redis/mounted-etc
|
|
||||||
- name: redis-tmp-conf
|
|
||||||
mountPath: /opt/bitnami/redis/etc/
|
|
||||||
- name: tmp
|
|
||||||
mountPath: /tmp
|
|
||||||
volumes:
|
|
||||||
- name: start-scripts
|
|
||||||
configMap:
|
|
||||||
name: helm-redis-scripts
|
|
||||||
defaultMode: 0755
|
|
||||||
- name: health
|
|
||||||
configMap:
|
|
||||||
name: helm-redis-health
|
|
||||||
defaultMode: 0755
|
|
||||||
- name: config
|
|
||||||
configMap:
|
|
||||||
name: helm-redis-configuration
|
|
||||||
- name: redis-tmp-conf
|
|
||||||
emptyDir: { }
|
|
||||||
- name: tmp
|
|
||||||
emptyDir: { }
|
|
||||||
- name: redis-data
|
|
||||||
emptyDir: { }
|
|
||||||
---
|
|
||||||
# Source: outside-deploy/charts/redis-db/templates/replicas/statefulset.yaml
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: StatefulSet
|
|
||||||
metadata:
|
|
||||||
name: helm-redis-replicas
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: redis-db
|
|
||||||
octopus.control: redis-db-wdd
|
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
|
||||||
app.kubernetes.io/managed-by: octopus
|
|
||||||
app.kubernetes.io/component: replica
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app.kubernetes.io/name: redis-db
|
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
|
||||||
app.kubernetes.io/component: replica
|
|
||||||
serviceName: helm-redis-headless
|
|
||||||
updateStrategy:
|
|
||||||
rollingUpdate: { }
|
|
||||||
type: RollingUpdate
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: redis-db
|
|
||||||
octopus.control: redis-db-wdd
|
|
||||||
app.kubernetes.io/release: uavcloud-devoperation
|
|
||||||
app.kubernetes.io/managed-by: octopus
|
|
||||||
app.kubernetes.io/component: replica
|
|
||||||
annotations:
|
|
||||||
checksum/configmap: b64aa5db67e6e63811f3c1095b9fce34d83c86a471fccdda0e48eedb53a179b0
|
|
||||||
checksum/health: 6e0a6330e5ac63e565ae92af1444527d72d8897f91266f333555b3d323570623
|
|
||||||
checksum/scripts: b88df93710b7c42a76006e20218f05c6e500e6cc2affd4bb1985832f03166e98
|
|
||||||
checksum/secret: 43f1b0e20f9cb2de936bd182bc3683b720fc3cf4f4e76cb23c06a52398a50e8d
|
|
||||||
spec:
|
|
||||||
imagePullSecrets:
|
|
||||||
- name: harborsecret
|
|
||||||
securityContext:
|
|
||||||
fsGroup: 1001
|
|
||||||
serviceAccountName: helm-redis
|
|
||||||
terminationGracePeriodSeconds: 30
|
|
||||||
containers:
|
|
||||||
- name: redis
|
|
||||||
image: harbor.cdcyy.com.cn/cmii/redis:6.2.6-debian-10-r0
|
|
||||||
imagePullPolicy: "Always"
|
|
||||||
securityContext:
|
|
||||||
runAsUser: 1001
|
|
||||||
command:
|
|
||||||
- /bin/bash
|
|
||||||
args:
|
|
||||||
- -c
|
|
||||||
- /opt/bitnami/scripts/start-scripts/start-replica.sh
|
|
||||||
env:
|
|
||||||
- name: BITNAMI_DEBUG
|
|
||||||
value: "false"
|
|
||||||
- name: REDIS_REPLICATION_MODE
|
|
||||||
value: slave
|
|
||||||
- name: REDIS_MASTER_HOST
|
|
||||||
value: helm-redis-master-0.helm-redis-headless.uavcloud-devoperation.svc.cluster.local
|
|
||||||
- name: REDIS_MASTER_PORT_NUMBER
|
|
||||||
value: "6379"
|
|
||||||
- name: ALLOW_EMPTY_PASSWORD
|
|
||||||
value: "no"
|
|
||||||
- name: REDIS_PASSWORD
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: helm-redis
|
|
||||||
key: redis-password
|
|
||||||
- name: REDIS_MASTER_PASSWORD
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: helm-redis
|
|
||||||
key: redis-password
|
|
||||||
- name: REDIS_TLS_ENABLED
|
|
||||||
value: "no"
|
|
||||||
- name: REDIS_PORT
|
|
||||||
value: "6379"
|
|
||||||
ports:
|
|
||||||
- name: redis
|
|
||||||
containerPort: 6379
|
|
||||||
livenessProbe:
|
|
||||||
initialDelaySeconds: 20
|
|
||||||
periodSeconds: 5
|
|
||||||
timeoutSeconds: 6
|
|
||||||
successThreshold: 1
|
|
||||||
failureThreshold: 5
|
|
||||||
exec:
|
|
||||||
command:
|
|
||||||
- sh
|
|
||||||
- -c
|
|
||||||
- /health/ping_liveness_local_and_master.sh 5
|
|
||||||
readinessProbe:
|
|
||||||
initialDelaySeconds: 20
|
|
||||||
periodSeconds: 5
|
|
||||||
timeoutSeconds: 2
|
|
||||||
successThreshold: 1
|
|
||||||
failureThreshold: 5
|
|
||||||
exec:
|
|
||||||
command:
|
|
||||||
- sh
|
|
||||||
- -c
|
|
||||||
- /health/ping_readiness_local_and_master.sh 1
|
|
||||||
resources:
|
|
||||||
limits:
|
|
||||||
cpu: "2"
|
|
||||||
memory: 8Gi
|
|
||||||
requests:
|
|
||||||
cpu: "100m"
|
|
||||||
memory: 1Gi
|
|
||||||
volumeMounts:
|
|
||||||
- name: start-scripts
|
|
||||||
mountPath: /opt/bitnami/scripts/start-scripts
|
|
||||||
- name: health
|
|
||||||
mountPath: /health
|
|
||||||
- name: redis-data
|
|
||||||
mountPath: /data
|
|
||||||
subPath:
|
|
||||||
- name: config
|
|
||||||
mountPath: /opt/bitnami/redis/mounted-etc
|
|
||||||
- name: redis-tmp-conf
|
|
||||||
mountPath: /opt/bitnami/redis/etc
|
|
||||||
volumes:
|
|
||||||
- name: start-scripts
|
|
||||||
configMap:
|
|
||||||
name: helm-redis-scripts
|
|
||||||
defaultMode: 0755
|
|
||||||
- name: health
|
|
||||||
configMap:
|
|
||||||
name: helm-redis-health
|
|
||||||
defaultMode: 0755
|
|
||||||
- name: config
|
|
||||||
configMap:
|
|
||||||
name: helm-redis-configuration
|
|
||||||
- name: redis-tmp-conf
|
|
||||||
emptyDir: { }
|
|
||||||
- name: redis-data
|
|
||||||
emptyDir: { }
|
|
||||||
|
|
||||||
@@ -99,18 +99,18 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
- name: rtmp
|
- name: rtmp
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
port: 30935
|
port: 30937
|
||||||
targetPort: 30935
|
targetPort: 30937
|
||||||
nodePort: 30937
|
nodePort: 30937
|
||||||
- name: rtc
|
- name: rtc
|
||||||
protocol: UDP
|
protocol: UDP
|
||||||
port: 30090
|
port: 30092
|
||||||
targetPort: 30090
|
targetPort: 30092
|
||||||
nodePort: 30092
|
nodePort: 30092
|
||||||
- name: rtc-tcp
|
- name: rtc-tcp
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
port: 30090
|
port: 30092
|
||||||
targetPort: 30090
|
targetPort: 30092
|
||||||
nodePort: 30092
|
nodePort: 30092
|
||||||
- name: srt
|
- name: srt
|
||||||
protocol: UDP
|
protocol: UDP
|
||||||
@@ -165,8 +165,8 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
- name: rtmp
|
- name: rtmp
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
port: 30935
|
port: 30937
|
||||||
targetPort: 30935
|
targetPort: 30937
|
||||||
selector:
|
selector:
|
||||||
srs-role: rtc
|
srs-role: rtc
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
@@ -211,7 +211,7 @@ spec:
|
|||||||
image: harbor.cdcyy.com.cn/cmii/srs:v5.0.195
|
image: harbor.cdcyy.com.cn/cmii/srs:v5.0.195
|
||||||
ports:
|
ports:
|
||||||
- name: srs-rtmp
|
- name: srs-rtmp
|
||||||
containerPort: 30935
|
containerPort: 30937
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
- name: srs-api
|
- name: srs-api
|
||||||
containerPort: 1985
|
containerPort: 1985
|
||||||
@@ -220,10 +220,10 @@ spec:
|
|||||||
containerPort: 8080
|
containerPort: 8080
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
- name: srs-webrtc
|
- name: srs-webrtc
|
||||||
containerPort: 30090
|
containerPort: 30092
|
||||||
protocol: UDP
|
protocol: UDP
|
||||||
- name: srs-webrtc-tcp
|
- name: srs-webrtc-tcp
|
||||||
containerPort: 30090
|
containerPort: 30092
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
- name: srs-srt
|
- name: srs-srt
|
||||||
containerPort: 30556
|
containerPort: 30556
|
||||||
@@ -255,7 +255,7 @@ spec:
|
|||||||
image: harbor.cdcyy.com.cn/cmii/cmii-srs-oss-adaptor:2023-SA
|
image: harbor.cdcyy.com.cn/cmii/cmii-srs-oss-adaptor:2023-SA
|
||||||
env:
|
env:
|
||||||
- name: OSS_ENDPOINT
|
- name: OSS_ENDPOINT
|
||||||
value: 'http://:9000'
|
value: 'http://127.0.0.1:9000'
|
||||||
- name: OSS_AK
|
- name: OSS_AK
|
||||||
value: cmii
|
value: cmii
|
||||||
- name: OSS_SK
|
- name: OSS_SK
|
||||||
@@ -295,10 +295,10 @@ spec:
|
|||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
terminationGracePeriodSeconds: 30
|
terminationGracePeriodSeconds: 30
|
||||||
dnsPolicy: ClusterFirst
|
dnsPolicy: ClusterFirst
|
||||||
securityContext: { }
|
securityContext: {}
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: harborsecret
|
- name: harborsecret
|
||||||
affinity: { }
|
affinity: {}
|
||||||
schedulerName: default-scheduler
|
schedulerName: default-scheduler
|
||||||
serviceName: helm-live-srsrtc-svc
|
serviceName: helm-live-srsrtc-svc
|
||||||
podManagementPolicy: OrderedReady
|
podManagementPolicy: OrderedReady
|
||||||
@@ -384,10 +384,10 @@ spec:
|
|||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
terminationGracePeriodSeconds: 30
|
terminationGracePeriodSeconds: 30
|
||||||
dnsPolicy: ClusterFirst
|
dnsPolicy: ClusterFirst
|
||||||
securityContext: { }
|
securityContext: {}
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: harborsecret
|
- name: harborsecret
|
||||||
affinity: { }
|
affinity: {}
|
||||||
schedulerName: default-scheduler
|
schedulerName: default-scheduler
|
||||||
strategy:
|
strategy:
|
||||||
type: RollingUpdate
|
type: RollingUpdate
|
||||||
@@ -458,21 +458,21 @@ data:
|
|||||||
info:
|
info:
|
||||||
name: cmii-live-operator
|
name: cmii-live-operator
|
||||||
description: cmii-live-operator
|
description: cmii-live-operator
|
||||||
version: 5.6.0
|
version: 6.0.0
|
||||||
scanPackage: com.cmii.live.op
|
scanPackage: com.cmii.live.op
|
||||||
cloud:
|
cloud:
|
||||||
nacos:
|
nacos:
|
||||||
config:
|
config:
|
||||||
username: developer
|
username: nacos
|
||||||
password: N@cos14Good
|
password: KingKong@95461234
|
||||||
server-addr: helm-nacos:8848
|
server-addr: helm-nacos:8848
|
||||||
extension-configs:
|
extension-configs:
|
||||||
- data-id: cmii-live-operator.yml
|
- data-id: cmii-live-operator.yml
|
||||||
group: 5.6.0
|
group: 6.0.0
|
||||||
refresh: true
|
refresh: true
|
||||||
shared-configs:
|
shared-configs:
|
||||||
- data-id: cmii-backend-system.yml
|
- data-id: cmii-backend-system.yml
|
||||||
group: 5.6.0
|
group: 6.0.0
|
||||||
refresh: true
|
refresh: true
|
||||||
discovery:
|
discovery:
|
||||||
enabled: false
|
enabled: false
|
||||||
@@ -487,10 +487,10 @@ data:
|
|||||||
srt: 'srt://lab.uavcmlc.com:30560'
|
srt: 'srt://lab.uavcmlc.com:30560'
|
||||||
flv: 'http://lab.uavcmlc.com:30500'
|
flv: 'http://lab.uavcmlc.com:30500'
|
||||||
hls: 'http://lab.uavcmlc.com:30500'
|
hls: 'http://lab.uavcmlc.com:30500'
|
||||||
rtc: 'webrtc://lab.uavcmlc.com:30092'
|
rtc: 'webrtc://lab.uavcmlc.com:30080'
|
||||||
replay: 'https://lab.uavcmlc.com:30333'
|
replay: 'https://lab.uavcmlc.com:30333'
|
||||||
minio:
|
minio:
|
||||||
endpoint: http://:9000
|
endpoint: http://127.0.0.1:9000
|
||||||
access-key: cmii
|
access-key: cmii
|
||||||
secret-key: B#923fC7mk
|
secret-key: B#923fC7mk
|
||||||
bucket: live-cluster-hls
|
bucket: live-cluster-hls
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -1,62 +1,6 @@
|
|||||||
---
|
---
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-detection
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "devoperation",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "detection",
|
|
||||||
AppClientId: "APP_FDHW2VLVDWPnnOCy"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-emergency
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "devoperation",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "emergency",
|
|
||||||
AppClientId: "APP_aGsTAY1uMZrpKdfk"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-security
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "devoperation",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "security",
|
|
||||||
AppClientId: "APP_JUSEMc7afyWXxvE7"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-securityh5
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "devoperation",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "securityh5",
|
|
||||||
AppClientId: "APP_N3ImO0Ubfu9peRHD"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
metadata:
|
||||||
name: tenant-prefix-seniclive
|
name: tenant-prefix-seniclive
|
||||||
namespace: uavcloud-devoperation
|
namespace: uavcloud-devoperation
|
||||||
@@ -72,28 +16,14 @@ data:
|
|||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: tenant-prefix-qinghaitourism
|
name: tenant-prefix-uasms
|
||||||
namespace: uavcloud-devoperation
|
namespace: uavcloud-devoperation
|
||||||
data:
|
data:
|
||||||
ingress-config.js: |-
|
ingress-config.js: |-
|
||||||
var __GlobalIngressConfig = {
|
var __GlobalIngressConfig = {
|
||||||
TenantEnvironment: "devoperation",
|
TenantEnvironment: "devoperation",
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
ApplicationShortName: "qinghaitourism",
|
ApplicationShortName: "uasms",
|
||||||
AppClientId: "empty"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-visualization
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "devoperation",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "visualization",
|
|
||||||
AppClientId: "empty"
|
AppClientId: "empty"
|
||||||
}
|
}
|
||||||
---
|
---
|
||||||
@@ -114,70 +44,112 @@ data:
|
|||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: tenant-prefix-multiterminal
|
name: tenant-prefix-detection
|
||||||
namespace: uavcloud-devoperation
|
namespace: uavcloud-devoperation
|
||||||
data:
|
data:
|
||||||
ingress-config.js: |-
|
ingress-config.js: |-
|
||||||
var __GlobalIngressConfig = {
|
var __GlobalIngressConfig = {
|
||||||
TenantEnvironment: "devoperation",
|
TenantEnvironment: "devoperation",
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
ApplicationShortName: "multiterminal",
|
ApplicationShortName: "detection",
|
||||||
AppClientId: "APP_PvdfRRRBPL8xbIwl"
|
AppClientId: "APP_FDHW2VLVDWPnnOCy"
|
||||||
}
|
}
|
||||||
---
|
---
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: tenant-prefix-supervisionh5
|
name: tenant-prefix-uas
|
||||||
namespace: uavcloud-devoperation
|
namespace: uavcloud-devoperation
|
||||||
data:
|
data:
|
||||||
ingress-config.js: |-
|
ingress-config.js: |-
|
||||||
var __GlobalIngressConfig = {
|
var __GlobalIngressConfig = {
|
||||||
TenantEnvironment: "devoperation",
|
TenantEnvironment: "devoperation",
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
ApplicationShortName: "supervisionh5",
|
ApplicationShortName: "uas",
|
||||||
AppClientId: "APP_qqSu82THfexI8PLM"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-qingdao
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "devoperation",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "qingdao",
|
|
||||||
AppClientId: "empty"
|
AppClientId: "empty"
|
||||||
}
|
}
|
||||||
---
|
---
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: tenant-prefix-media
|
name: tenant-prefix-classification
|
||||||
namespace: uavcloud-devoperation
|
namespace: uavcloud-devoperation
|
||||||
data:
|
data:
|
||||||
ingress-config.js: |-
|
ingress-config.js: |-
|
||||||
var __GlobalIngressConfig = {
|
var __GlobalIngressConfig = {
|
||||||
TenantEnvironment: "devoperation",
|
TenantEnvironment: "devoperation",
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
ApplicationShortName: "media",
|
ApplicationShortName: "classification",
|
||||||
AppClientId: "APP_4AU8lbifESQO4FD6"
|
AppClientId: "empty"
|
||||||
}
|
}
|
||||||
---
|
---
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: tenant-prefix-oms
|
name: tenant-prefix-supervision
|
||||||
namespace: uavcloud-devoperation
|
namespace: uavcloud-devoperation
|
||||||
data:
|
data:
|
||||||
ingress-config.js: |-
|
ingress-config.js: |-
|
||||||
var __GlobalIngressConfig = {
|
var __GlobalIngressConfig = {
|
||||||
TenantEnvironment: "devoperation",
|
TenantEnvironment: "devoperation",
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
ApplicationShortName: "oms",
|
ApplicationShortName: "supervision",
|
||||||
|
AppClientId: "APP_qqSu82THfexI8PLM"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-ai-brain
|
||||||
|
namespace: uavcloud-devoperation
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devoperation",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "ai-brain",
|
||||||
|
AppClientId: "APP_rafnuCAmBESIVYMH"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-qinghaitourism
|
||||||
|
namespace: uavcloud-devoperation
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devoperation",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "qinghaitourism",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-pilot2cloud
|
||||||
|
namespace: uavcloud-devoperation
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devoperation",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "pilot2cloud",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-smauth
|
||||||
|
namespace: uavcloud-devoperation
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devoperation",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "smauth",
|
||||||
AppClientId: "empty"
|
AppClientId: "empty"
|
||||||
}
|
}
|
||||||
---
|
---
|
||||||
@@ -197,6 +169,34 @@ data:
|
|||||||
---
|
---
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-multiterminal
|
||||||
|
namespace: uavcloud-devoperation
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devoperation",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "multiterminal",
|
||||||
|
AppClientId: "APP_PvdfRRRBPL8xbIwl"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-share
|
||||||
|
namespace: uavcloud-devoperation
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devoperation",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "share",
|
||||||
|
AppClientId: "APP_4lVSVI0ZGxTssir8"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: tenant-prefix-splice
|
name: tenant-prefix-splice
|
||||||
namespace: uavcloud-devoperation
|
namespace: uavcloud-devoperation
|
||||||
@@ -212,28 +212,28 @@ data:
|
|||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: tenant-prefix-hljtt
|
name: tenant-prefix-threedsimulation
|
||||||
namespace: uavcloud-devoperation
|
namespace: uavcloud-devoperation
|
||||||
data:
|
data:
|
||||||
ingress-config.js: |-
|
ingress-config.js: |-
|
||||||
var __GlobalIngressConfig = {
|
var __GlobalIngressConfig = {
|
||||||
TenantEnvironment: "devoperation",
|
TenantEnvironment: "devoperation",
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
ApplicationShortName: "hljtt",
|
ApplicationShortName: "threedsimulation",
|
||||||
AppClientId: "empty"
|
AppClientId: "empty"
|
||||||
}
|
}
|
||||||
---
|
---
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: tenant-prefix-open
|
name: tenant-prefix-scanner
|
||||||
namespace: uavcloud-devoperation
|
namespace: uavcloud-devoperation
|
||||||
data:
|
data:
|
||||||
ingress-config.js: |-
|
ingress-config.js: |-
|
||||||
var __GlobalIngressConfig = {
|
var __GlobalIngressConfig = {
|
||||||
TenantEnvironment: "devoperation",
|
TenantEnvironment: "devoperation",
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
ApplicationShortName: "open",
|
ApplicationShortName: "scanner",
|
||||||
AppClientId: "empty"
|
AppClientId: "empty"
|
||||||
}
|
}
|
||||||
---
|
---
|
||||||
@@ -254,43 +254,85 @@ data:
|
|||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: tenant-prefix-logistics
|
name: tenant-prefix-media
|
||||||
namespace: uavcloud-devoperation
|
namespace: uavcloud-devoperation
|
||||||
data:
|
data:
|
||||||
ingress-config.js: |-
|
ingress-config.js: |-
|
||||||
var __GlobalIngressConfig = {
|
var __GlobalIngressConfig = {
|
||||||
TenantEnvironment: "devoperation",
|
TenantEnvironment: "devoperation",
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
ApplicationShortName: "logistics",
|
ApplicationShortName: "media",
|
||||||
AppClientId: "APP_PvdfRRRBPL8xbIwl"
|
AppClientId: "APP_4AU8lbifESQO4FD6"
|
||||||
}
|
}
|
||||||
---
|
---
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: tenant-prefix-mws
|
name: tenant-prefix-open
|
||||||
namespace: uavcloud-devoperation
|
namespace: uavcloud-devoperation
|
||||||
data:
|
data:
|
||||||
ingress-config.js: |-
|
ingress-config.js: |-
|
||||||
var __GlobalIngressConfig = {
|
var __GlobalIngressConfig = {
|
||||||
TenantEnvironment: "devoperation",
|
TenantEnvironment: "devoperation",
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
ApplicationShortName: "mws",
|
ApplicationShortName: "open",
|
||||||
AppClientId: "APP_uKniXPELlRERBBwK"
|
AppClientId: "empty"
|
||||||
}
|
}
|
||||||
---
|
---
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: tenant-prefix-supervision
|
name: tenant-prefix-security
|
||||||
namespace: uavcloud-devoperation
|
namespace: uavcloud-devoperation
|
||||||
data:
|
data:
|
||||||
ingress-config.js: |-
|
ingress-config.js: |-
|
||||||
var __GlobalIngressConfig = {
|
var __GlobalIngressConfig = {
|
||||||
TenantEnvironment: "devoperation",
|
TenantEnvironment: "devoperation",
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
ApplicationShortName: "supervision",
|
ApplicationShortName: "security",
|
||||||
AppClientId: "APP_qqSu82THfexI8PLM"
|
AppClientId: "APP_JUSEMc7afyWXxvE7"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-dispatchh5
|
||||||
|
namespace: uavcloud-devoperation
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devoperation",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "dispatchh5",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-eventsh5
|
||||||
|
namespace: uavcloud-devoperation
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devoperation",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "eventsh5",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-mianyangbackend
|
||||||
|
namespace: uavcloud-devoperation
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devoperation",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "mianyangbackend",
|
||||||
|
AppClientId: "empty"
|
||||||
}
|
}
|
||||||
---
|
---
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
@@ -310,15 +352,29 @@ data:
|
|||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: tenant-prefix-share
|
name: tenant-prefix-mws
|
||||||
namespace: uavcloud-devoperation
|
namespace: uavcloud-devoperation
|
||||||
data:
|
data:
|
||||||
ingress-config.js: |-
|
ingress-config.js: |-
|
||||||
var __GlobalIngressConfig = {
|
var __GlobalIngressConfig = {
|
||||||
TenantEnvironment: "devoperation",
|
TenantEnvironment: "devoperation",
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
ApplicationShortName: "share",
|
ApplicationShortName: "mws",
|
||||||
AppClientId: "APP_4lVSVI0ZGxTssir8"
|
AppClientId: "APP_uKniXPELlRERBBwK"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-oms
|
||||||
|
namespace: uavcloud-devoperation
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devoperation",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "oms",
|
||||||
|
AppClientId: "empty"
|
||||||
}
|
}
|
||||||
---
|
---
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
@@ -337,20 +393,6 @@ data:
|
|||||||
---
|
---
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
|
||||||
name: tenant-prefix-threedsimulation
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
data:
|
|
||||||
ingress-config.js: |-
|
|
||||||
var __GlobalIngressConfig = {
|
|
||||||
TenantEnvironment: "devoperation",
|
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
|
||||||
ApplicationShortName: "threedsimulation",
|
|
||||||
AppClientId: "empty"
|
|
||||||
}
|
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
metadata:
|
||||||
name: tenant-prefix-jiangsuwenlv
|
name: tenant-prefix-jiangsuwenlv
|
||||||
namespace: uavcloud-devoperation
|
namespace: uavcloud-devoperation
|
||||||
@@ -366,13 +408,153 @@ data:
|
|||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: tenant-prefix-ai-brain
|
name: tenant-prefix-supervisionh5
|
||||||
namespace: uavcloud-devoperation
|
namespace: uavcloud-devoperation
|
||||||
data:
|
data:
|
||||||
ingress-config.js: |-
|
ingress-config.js: |-
|
||||||
var __GlobalIngressConfig = {
|
var __GlobalIngressConfig = {
|
||||||
TenantEnvironment: "devoperation",
|
TenantEnvironment: "devoperation",
|
||||||
CloudHOST: "lab.uavcmlc.com",
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
ApplicationShortName: "ai-brain",
|
ApplicationShortName: "supervisionh5",
|
||||||
AppClientId: "APP_rafnuCAmBESIVYMH"
|
AppClientId: "APP_qqSu82THfexI8PLM"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-emergency
|
||||||
|
namespace: uavcloud-devoperation
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devoperation",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "emergency",
|
||||||
|
AppClientId: "APP_aGsTAY1uMZrpKdfk"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-qingdao
|
||||||
|
namespace: uavcloud-devoperation
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devoperation",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "qingdao",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-visualization
|
||||||
|
namespace: uavcloud-devoperation
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devoperation",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "visualization",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-hyper
|
||||||
|
namespace: uavcloud-devoperation
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devoperation",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "hyper",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-blockchain
|
||||||
|
namespace: uavcloud-devoperation
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devoperation",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "blockchain",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-smsecret
|
||||||
|
namespace: uavcloud-devoperation
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devoperation",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "smsecret",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-logistics
|
||||||
|
namespace: uavcloud-devoperation
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devoperation",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "logistics",
|
||||||
|
AppClientId: "APP_PvdfRRRBPL8xbIwl"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-securityh5
|
||||||
|
namespace: uavcloud-devoperation
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devoperation",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "securityh5",
|
||||||
|
AppClientId: "APP_N3ImO0Ubfu9peRHD"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-hljtt
|
||||||
|
namespace: uavcloud-devoperation
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devoperation",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "hljtt",
|
||||||
|
AppClientId: "empty"
|
||||||
|
}
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: tenant-prefix-secenter
|
||||||
|
namespace: uavcloud-devoperation
|
||||||
|
data:
|
||||||
|
ingress-config.js: |-
|
||||||
|
var __GlobalIngressConfig = {
|
||||||
|
TenantEnvironment: "devoperation",
|
||||||
|
CloudHOST: "lab.uavcmlc.com",
|
||||||
|
ApplicationShortName: "secenter",
|
||||||
|
AppClientId: "empty"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,265 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ServiceAccount
|
|
||||||
metadata:
|
|
||||||
name: helm-emqxs
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
name: helm-emqxs-env
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
labels:
|
|
||||||
cmii.type: middleware
|
|
||||||
cmii.app: helm-emqxs
|
|
||||||
cmii.emqx.architecture: cluster
|
|
||||||
helm.sh/chart: emqx-1.1.0
|
|
||||||
app.kubernetes.io/managed-by: octopus-control
|
|
||||||
app.kubernetes.io/version: 5.6.0
|
|
||||||
data:
|
|
||||||
EMQX_CLUSTER__K8S__APISERVER: "https://kubernetes.default.svc.cluster.local:443"
|
|
||||||
EMQX_NAME: "helm-emqxs"
|
|
||||||
EMQX_CLUSTER__DISCOVERY: "k8s"
|
|
||||||
EMQX_CLUSTER__K8S__APP_NAME: "helm-emqxs"
|
|
||||||
EMQX_CLUSTER__K8S__SERVICE_NAME: "helm-emqxs-headless"
|
|
||||||
EMQX_CLUSTER__K8S__ADDRESS_TYPE: "dns"
|
|
||||||
EMQX_CLUSTER__K8S__namespace: "uavcloud-devoperation"
|
|
||||||
EMQX_CLUSTER__K8S__SUFFIX: "svc.cluster.local"
|
|
||||||
EMQX_ALLOW_ANONYMOUS: "false"
|
|
||||||
EMQX_ACL_NOMATCH: "deny"
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
name: helm-emqxs-cm
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
labels:
|
|
||||||
cmii.type: middleware
|
|
||||||
cmii.app: helm-emqxs
|
|
||||||
cmii.emqx.architecture: cluster
|
|
||||||
helm.sh/chart: emqx-1.1.0
|
|
||||||
app.kubernetes.io/managed-by: octopus-control
|
|
||||||
app.kubernetes.io/version: 5.6.0
|
|
||||||
data:
|
|
||||||
emqx_auth_username.conf: |-
|
|
||||||
auth.user.1.username = cmlc
|
|
||||||
auth.user.1.password = 4YPk*DS%+5
|
|
||||||
auth.user.password_hash = sha256
|
|
||||||
|
|
||||||
acl.conf: |-
|
|
||||||
{allow, {user, "admin"}, pubsub, ["admin/#"]}.
|
|
||||||
{allow, {user, "dashboard"}, subscribe, ["$SYS/#"]}.
|
|
||||||
{allow, {ipaddr, "127.0.0.1"}, pubsub, ["$SYS/#", "#"]}.
|
|
||||||
{deny, all, subscribe, ["$SYS/#", {eq, "#"}]}.
|
|
||||||
{allow, all}.
|
|
||||||
|
|
||||||
loaded_plugins: |-
|
|
||||||
{emqx_auth_username,true}.
|
|
||||||
{emqx_management, true}.
|
|
||||||
{emqx_recon, true}.
|
|
||||||
{emqx_retainer, false}.
|
|
||||||
{emqx_dashboard, true}.
|
|
||||||
{emqx_telemetry, true}.
|
|
||||||
{emqx_rule_engine, true}.
|
|
||||||
{emqx_bridge_mqtt, false}.
|
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: StatefulSet
|
|
||||||
metadata:
|
|
||||||
name: helm-emqxs
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
labels:
|
|
||||||
cmii.type: middleware
|
|
||||||
cmii.app: helm-emqxs
|
|
||||||
cmii.emqx.architecture: cluster
|
|
||||||
helm.sh/chart: emqx-1.1.0
|
|
||||||
app.kubernetes.io/managed-by: octopus-control
|
|
||||||
app.kubernetes.io/version: 5.6.0
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
serviceName: helm-emqxs-headless
|
|
||||||
updateStrategy:
|
|
||||||
type: RollingUpdate
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
cmii.type: middleware
|
|
||||||
cmii.app: helm-emqxs
|
|
||||||
cmii.emqx.architecture: cluster
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
cmii.type: middleware
|
|
||||||
cmii.app: helm-emqxs
|
|
||||||
cmii.emqx.architecture: cluster
|
|
||||||
helm.sh/chart: emqx-1.1.0
|
|
||||||
app.kubernetes.io/managed-by: octopus-control
|
|
||||||
app.kubernetes.io/version: 5.6.0
|
|
||||||
spec:
|
|
||||||
affinity: { }
|
|
||||||
imagePullSecrets:
|
|
||||||
- name: harborsecret
|
|
||||||
serviceAccountName: helm-emqxs
|
|
||||||
containers:
|
|
||||||
- name: helm-emqxs
|
|
||||||
image: harbor.cdcyy.com.cn/cmii/emqx:5.5.1
|
|
||||||
imagePullPolicy: Always
|
|
||||||
ports:
|
|
||||||
- name: mqtt
|
|
||||||
containerPort: 1883
|
|
||||||
- name: mqttssl
|
|
||||||
containerPort: 8883
|
|
||||||
- name: mgmt
|
|
||||||
containerPort: 8081
|
|
||||||
- name: ws
|
|
||||||
containerPort: 8083
|
|
||||||
- name: wss
|
|
||||||
containerPort: 8084
|
|
||||||
- name: dashboard
|
|
||||||
containerPort: 18083
|
|
||||||
- name: ekka
|
|
||||||
containerPort: 4370
|
|
||||||
envFrom:
|
|
||||||
- configMapRef:
|
|
||||||
name: helm-emqxs-env
|
|
||||||
resources: { }
|
|
||||||
volumeMounts:
|
|
||||||
- name: emqx-data
|
|
||||||
mountPath: "/opt/emqx/data/mnesia"
|
|
||||||
readOnly: false
|
|
||||||
- name: helm-emqxs-cm
|
|
||||||
mountPath: "/opt/emqx/etc/plugins/emqx_auth_username.conf"
|
|
||||||
subPath: emqx_auth_username.conf
|
|
||||||
readOnly: false
|
|
||||||
# - name: helm-emqxs-cm
|
|
||||||
# mountPath: "/opt/emqx/etc/acl.conf"
|
|
||||||
# subPath: "acl.conf"
|
|
||||||
# readOnly: false
|
|
||||||
- name: helm-emqxs-cm
|
|
||||||
mountPath: "/opt/emqx/data/loaded_plugins"
|
|
||||||
subPath: loaded_plugins
|
|
||||||
readOnly: false
|
|
||||||
volumes:
|
|
||||||
- name: emqx-data
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: helm-emqxs
|
|
||||||
- name: helm-emqxs-cm
|
|
||||||
configMap:
|
|
||||||
name: helm-emqxs-cm
|
|
||||||
items:
|
|
||||||
- key: emqx_auth_username.conf
|
|
||||||
path: emqx_auth_username.conf
|
|
||||||
- key: acl.conf
|
|
||||||
path: acl.conf
|
|
||||||
- key: loaded_plugins
|
|
||||||
path: loaded_plugins
|
|
||||||
---
|
|
||||||
kind: Role
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
|
||||||
metadata:
|
|
||||||
name: helm-emqxs
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
rules:
|
|
||||||
- apiGroups:
|
|
||||||
- ""
|
|
||||||
resources:
|
|
||||||
- endpoints
|
|
||||||
verbs:
|
|
||||||
- get
|
|
||||||
- watch
|
|
||||||
- list
|
|
||||||
---
|
|
||||||
kind: RoleBinding
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
|
||||||
metadata:
|
|
||||||
name: helm-emqxs
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
subjects:
|
|
||||||
- kind: ServiceAccount
|
|
||||||
name: helm-emqxs
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
roleRef:
|
|
||||||
kind: Role
|
|
||||||
name: helm-emqxs
|
|
||||||
apiGroup: rbac.authorization.k8s.io
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: helm-emqxs
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
labels:
|
|
||||||
cmii.type: middleware
|
|
||||||
cmii.app: helm-emqxs
|
|
||||||
cmii.emqx.architecture: cluster
|
|
||||||
helm.sh/chart: emqx-1.1.0
|
|
||||||
app.kubernetes.io/managed-by: octopus-control
|
|
||||||
app.kubernetes.io/version: 5.6.0
|
|
||||||
spec:
|
|
||||||
type: NodePort
|
|
||||||
selector:
|
|
||||||
cmii.type: middleware
|
|
||||||
cmii.app: helm-emqxs
|
|
||||||
cmii.emqx.architecture: cluster
|
|
||||||
ports:
|
|
||||||
- port: 1883
|
|
||||||
name: mqtt
|
|
||||||
targetPort: 1883
|
|
||||||
nodePort: 31885
|
|
||||||
- port: 18083
|
|
||||||
name: dashboard
|
|
||||||
targetPort: 18083
|
|
||||||
nodePort: 38087
|
|
||||||
- port: 8083
|
|
||||||
name: mqtt-websocket
|
|
||||||
targetPort: 8083
|
|
||||||
nodePort: 38085
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: helm-emqxs-headless
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
labels:
|
|
||||||
cmii.type: middleware
|
|
||||||
cmii.app: helm-emqxs
|
|
||||||
cmii.emqx.architecture: cluster
|
|
||||||
helm.sh/chart: emqx-1.1.0
|
|
||||||
app.kubernetes.io/managed-by: octopus-control
|
|
||||||
app.kubernetes.io/version: 5.6.0
|
|
||||||
spec:
|
|
||||||
type: ClusterIP
|
|
||||||
clusterIP: None
|
|
||||||
selector:
|
|
||||||
cmii.type: middleware
|
|
||||||
cmii.app: helm-emqxs
|
|
||||||
cmii.emqx.architecture: cluster
|
|
||||||
ports:
|
|
||||||
- name: mqtt
|
|
||||||
port: 1883
|
|
||||||
protocol: TCP
|
|
||||||
targetPort: 1883
|
|
||||||
- name: mqttssl
|
|
||||||
port: 8883
|
|
||||||
protocol: TCP
|
|
||||||
targetPort: 8883
|
|
||||||
- name: mgmt
|
|
||||||
port: 8081
|
|
||||||
protocol: TCP
|
|
||||||
targetPort: 8081
|
|
||||||
- name: websocket
|
|
||||||
port: 8083
|
|
||||||
protocol: TCP
|
|
||||||
targetPort: 8083
|
|
||||||
- name: wss
|
|
||||||
port: 8084
|
|
||||||
protocol: TCP
|
|
||||||
targetPort: 8084
|
|
||||||
- name: dashboard
|
|
||||||
port: 18083
|
|
||||||
protocol: TCP
|
|
||||||
targetPort: 18083
|
|
||||||
- name: ekka
|
|
||||||
port: 4370
|
|
||||||
protocol: TCP
|
|
||||||
targetPort: 4370
|
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -8,7 +8,7 @@ metadata:
|
|||||||
type: frontend
|
type: frontend
|
||||||
octopus.control: all-ingress-config-wdd
|
octopus.control: all-ingress-config-wdd
|
||||||
app.kubernetes.io/managed-by: octopus-control
|
app.kubernetes.io/managed-by: octopus-control
|
||||||
app.kubernetes.io/version: 5.6.0
|
app.kubernetes.io/version: 6.0.0
|
||||||
annotations:
|
annotations:
|
||||||
kubernetes.io/ingress.class: "nginx"
|
kubernetes.io/ingress.class: "nginx"
|
||||||
nginx.ingress.kubernetes.io/enable-cors: "true"
|
nginx.ingress.kubernetes.io/enable-cors: "true"
|
||||||
@@ -20,27 +20,40 @@ metadata:
|
|||||||
rewrite ^(/ai-brain)$ $1/ redirect;
|
rewrite ^(/ai-brain)$ $1/ redirect;
|
||||||
rewrite ^(/armypeople)$ $1/ redirect;
|
rewrite ^(/armypeople)$ $1/ redirect;
|
||||||
rewrite ^(/base)$ $1/ redirect;
|
rewrite ^(/base)$ $1/ redirect;
|
||||||
|
rewrite ^(/blockchain)$ $1/ redirect;
|
||||||
|
rewrite ^(/classification)$ $1/ redirect;
|
||||||
rewrite ^(/cmsportal)$ $1/ redirect;
|
rewrite ^(/cmsportal)$ $1/ redirect;
|
||||||
rewrite ^(/detection)$ $1/ redirect;
|
rewrite ^(/detection)$ $1/ redirect;
|
||||||
|
rewrite ^(/dispatchh5)$ $1/ redirect;
|
||||||
rewrite ^(/emergency)$ $1/ redirect;
|
rewrite ^(/emergency)$ $1/ redirect;
|
||||||
|
rewrite ^(/eventsh5)$ $1/ redirect;
|
||||||
rewrite ^(/hljtt)$ $1/ redirect;
|
rewrite ^(/hljtt)$ $1/ redirect;
|
||||||
|
rewrite ^(/hyper)$ $1/ redirect;
|
||||||
rewrite ^(/jiangsuwenlv)$ $1/ redirect;
|
rewrite ^(/jiangsuwenlv)$ $1/ redirect;
|
||||||
rewrite ^(/logistics)$ $1/ redirect;
|
rewrite ^(/logistics)$ $1/ redirect;
|
||||||
rewrite ^(/media)$ $1/ redirect;
|
rewrite ^(/media)$ $1/ redirect;
|
||||||
|
rewrite ^(/mianyangbackend)$ $1/ redirect;
|
||||||
rewrite ^(/multiterminal)$ $1/ redirect;
|
rewrite ^(/multiterminal)$ $1/ redirect;
|
||||||
rewrite ^(/mws)$ $1/ redirect;
|
rewrite ^(/mws)$ $1/ redirect;
|
||||||
rewrite ^(/oms)$ $1/ redirect;
|
rewrite ^(/oms)$ $1/ redirect;
|
||||||
rewrite ^(/open)$ $1/ redirect;
|
rewrite ^(/open)$ $1/ redirect;
|
||||||
|
rewrite ^(/pilot2cloud)$ $1/ redirect;
|
||||||
rewrite ^(/qingdao)$ $1/ redirect;
|
rewrite ^(/qingdao)$ $1/ redirect;
|
||||||
rewrite ^(/qinghaitourism)$ $1/ redirect;
|
rewrite ^(/qinghaitourism)$ $1/ redirect;
|
||||||
|
rewrite ^(/scanner)$ $1/ redirect;
|
||||||
rewrite ^(/security)$ $1/ redirect;
|
rewrite ^(/security)$ $1/ redirect;
|
||||||
rewrite ^(/securityh5)$ $1/ redirect;
|
rewrite ^(/securityh5)$ $1/ redirect;
|
||||||
rewrite ^(/seniclive)$ $1/ redirect;
|
rewrite ^(/seniclive)$ $1/ redirect;
|
||||||
rewrite ^(/share)$ $1/ redirect;
|
rewrite ^(/share)$ $1/ redirect;
|
||||||
|
rewrite ^(/smauth)$ $1/ redirect;
|
||||||
|
rewrite ^(/smsecret)$ $1/ redirect;
|
||||||
rewrite ^(/splice)$ $1/ redirect;
|
rewrite ^(/splice)$ $1/ redirect;
|
||||||
rewrite ^(/threedsimulation)$ $1/ redirect;
|
rewrite ^(/threedsimulation)$ $1/ redirect;
|
||||||
rewrite ^(/traffic)$ $1/ redirect;
|
rewrite ^(/traffic)$ $1/ redirect;
|
||||||
|
rewrite ^(/uas)$ $1/ redirect;
|
||||||
|
rewrite ^(/uasms)$ $1/ redirect;
|
||||||
rewrite ^(/visualization)$ $1/ redirect;
|
rewrite ^(/visualization)$ $1/ redirect;
|
||||||
|
rewrite ^(/secenter)$ $1/ redirect;
|
||||||
spec:
|
spec:
|
||||||
rules:
|
rules:
|
||||||
- host: fake-domain.uavcloud-devoperation.io
|
- host: fake-domain.uavcloud-devoperation.io
|
||||||
@@ -81,6 +94,16 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-base
|
serviceName: cmii-uav-platform-base
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
|
- path: /devoperation/blockchain/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-blockchain
|
||||||
|
servicePort: 9528
|
||||||
|
- path: /devoperation/classification/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-classification
|
||||||
|
servicePort: 9528
|
||||||
- path: /devoperation/cmsportal/?(.*)
|
- path: /devoperation/cmsportal/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
@@ -91,16 +114,31 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-detection
|
serviceName: cmii-uav-platform-detection
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
|
- path: /devoperation/dispatchh5/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-dispatchh5
|
||||||
|
servicePort: 9528
|
||||||
- path: /devoperation/emergency/?(.*)
|
- path: /devoperation/emergency/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-emergency-rescue
|
serviceName: cmii-uav-platform-emergency-rescue
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
|
- path: /devoperation/eventsh5/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-eventsh5
|
||||||
|
servicePort: 9528
|
||||||
- path: /devoperation/hljtt/?(.*)
|
- path: /devoperation/hljtt/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-hljtt
|
serviceName: cmii-uav-platform-hljtt
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
|
- path: /devoperation/hyper/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-hyperspectral
|
||||||
|
servicePort: 9528
|
||||||
- path: /devoperation/jiangsuwenlv/?(.*)
|
- path: /devoperation/jiangsuwenlv/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
@@ -116,6 +154,11 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-media
|
serviceName: cmii-uav-platform-media
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
|
- path: /devoperation/mianyangbackend/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-mianyangbackend
|
||||||
|
servicePort: 9528
|
||||||
- path: /devoperation/multiterminal/?(.*)
|
- path: /devoperation/multiterminal/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
@@ -136,6 +179,11 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-open
|
serviceName: cmii-uav-platform-open
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
|
- path: /devoperation/pilot2cloud/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-pilot2-to-cloud
|
||||||
|
servicePort: 9528
|
||||||
- path: /devoperation/qingdao/?(.*)
|
- path: /devoperation/qingdao/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
@@ -146,6 +194,11 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-qinghaitourism
|
serviceName: cmii-uav-platform-qinghaitourism
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
|
- path: /devoperation/scanner/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-scanner
|
||||||
|
servicePort: 9528
|
||||||
- path: /devoperation/security/?(.*)
|
- path: /devoperation/security/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
@@ -166,6 +219,16 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-share
|
serviceName: cmii-uav-platform-share
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
|
- path: /devoperation/smauth/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-smauth
|
||||||
|
servicePort: 9528
|
||||||
|
- path: /devoperation/smsecret/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-smsecret
|
||||||
|
servicePort: 9528
|
||||||
- path: /devoperation/splice/?(.*)
|
- path: /devoperation/splice/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
@@ -181,11 +244,26 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-traffic
|
serviceName: cmii-uav-platform-traffic
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
|
- path: /devoperation/uas/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-uas
|
||||||
|
servicePort: 9528
|
||||||
|
- path: /devoperation/uasms/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-platform-uasms
|
||||||
|
servicePort: 9528
|
||||||
- path: /devoperation/visualization/?(.*)
|
- path: /devoperation/visualization/?(.*)
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-platform-visualization
|
serviceName: cmii-uav-platform-visualization
|
||||||
servicePort: 9528
|
servicePort: 9528
|
||||||
|
- path: /devoperation/secenter/?(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uavms-platform-security-center
|
||||||
|
servicePort: 9528
|
||||||
---
|
---
|
||||||
apiVersion: networking.k8s.io/v1beta1
|
apiVersion: networking.k8s.io/v1beta1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
@@ -196,7 +274,7 @@ metadata:
|
|||||||
type: backend
|
type: backend
|
||||||
octopus.control: all-ingress-config-wdd
|
octopus.control: all-ingress-config-wdd
|
||||||
app.kubernetes.io/managed-by: octopus-control
|
app.kubernetes.io/managed-by: octopus-control
|
||||||
app.kubernetes.io/version: 5.6.0
|
app.kubernetes.io/version: 6.0.0
|
||||||
annotations:
|
annotations:
|
||||||
kubernetes.io/ingress.class: "nginx"
|
kubernetes.io/ingress.class: "nginx"
|
||||||
nginx.ingress.kubernetes.io/enable-cors: "true"
|
nginx.ingress.kubernetes.io/enable-cors: "true"
|
||||||
@@ -370,6 +448,14 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-emergency
|
serviceName: cmii-uav-emergency
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
|
- host: cmii-uav-fwdd.uavcloud-devoperation.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-fwdd
|
||||||
|
servicePort: 8080
|
||||||
- host: cmii-uav-gateway.uavcloud-devoperation.io
|
- host: cmii-uav-gateway.uavcloud-devoperation.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
@@ -426,6 +512,14 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-integration
|
serviceName: cmii-uav-integration
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
|
- host: cmii-uav-iot-dispatcher.uavcloud-devoperation.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-iot-dispatcher
|
||||||
|
servicePort: 8080
|
||||||
- host: cmii-uav-kpi-monitor.uavcloud-devoperation.io
|
- host: cmii-uav-kpi-monitor.uavcloud-devoperation.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
@@ -498,6 +592,14 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-process
|
serviceName: cmii-uav-process
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
|
- host: cmii-uav-sense-adapter.uavcloud-devoperation.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-sense-adapter
|
||||||
|
servicePort: 8080
|
||||||
- host: cmii-uav-surveillance.uavcloud-devoperation.io
|
- host: cmii-uav-surveillance.uavcloud-devoperation.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
@@ -506,6 +608,14 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-surveillance
|
serviceName: cmii-uav-surveillance
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
|
- host: cmii-uav-sync.uavcloud-devoperation.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uav-sync
|
||||||
|
servicePort: 8080
|
||||||
- host: cmii-uav-threedsimulation.uavcloud-devoperation.io
|
- host: cmii-uav-threedsimulation.uavcloud-devoperation.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
@@ -538,6 +648,14 @@ spec:
|
|||||||
backend:
|
backend:
|
||||||
serviceName: cmii-uav-waypoint
|
serviceName: cmii-uav-waypoint
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
|
- host: cmii-uavms-security-center.uavcloud-devoperation.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
serviceName: cmii-uavms-security-center
|
||||||
|
servicePort: 8080
|
||||||
---
|
---
|
||||||
apiVersion: networking.k8s.io/v1beta1
|
apiVersion: networking.k8s.io/v1beta1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
@@ -548,7 +666,7 @@ metadata:
|
|||||||
type: api-gateway
|
type: api-gateway
|
||||||
octopus.control: all-ingress-config-1.1.0
|
octopus.control: all-ingress-config-1.1.0
|
||||||
app.kubernetes.io/managed-by: octopus-control
|
app.kubernetes.io/managed-by: octopus-control
|
||||||
app.kubernetes.io/version: 5.6.0
|
app.kubernetes.io/version: 6.0.0
|
||||||
annotations:
|
annotations:
|
||||||
kubernetes.io/ingress.class: "nginx"
|
kubernetes.io/ingress.class: "nginx"
|
||||||
nginx.ingress.kubernetes.io/enable-cors: "true"
|
nginx.ingress.kubernetes.io/enable-cors: "true"
|
||||||
|
|||||||
@@ -1,76 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
name: nfs-backend-log-pvc
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
labels:
|
|
||||||
cmii.type: middleware-base
|
|
||||||
cmii.app: nfs-backend-log-pvc
|
|
||||||
helm.sh/chart: all-persistence-volume-claims-1.1.0
|
|
||||||
app.kubernetes.io/version: 5.6.0
|
|
||||||
spec:
|
|
||||||
storageClassName: nfs-prod-distribute
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteMany
|
|
||||||
volumeMode: Filesystem
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 100Gi
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
name: helm-emqxs
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
labels:
|
|
||||||
cmii.type: middleware-base
|
|
||||||
cmii.app: helm-emqxs
|
|
||||||
helm.sh/chart: all-persistence-volume-claims-1.1.0
|
|
||||||
app.kubernetes.io/version: 5.6.0
|
|
||||||
spec:
|
|
||||||
storageClassName: nfs-prod-distribute
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteMany
|
|
||||||
volumeMode: Filesystem
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 20Gi
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
name: helm-mongo
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
labels:
|
|
||||||
cmii.type: middleware-base
|
|
||||||
cmii.app: helm-mongo
|
|
||||||
helm.sh/chart: all-persistence-volume-claims-1.1.0
|
|
||||||
app.kubernetes.io/version: 5.6.0
|
|
||||||
spec:
|
|
||||||
storageClassName: nfs-prod-distribute
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteMany
|
|
||||||
volumeMode: Filesystem
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 30Gi
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
name: helm-rabbitmq
|
|
||||||
namespace: uavcloud-devoperation
|
|
||||||
labels:
|
|
||||||
cmii.type: middleware-base
|
|
||||||
cmii.app: helm-rabbitmq
|
|
||||||
helm.sh/chart: all-persistence-volume-claims-1.1.0
|
|
||||||
app.kubernetes.io/version: 5.6.0
|
|
||||||
spec:
|
|
||||||
storageClassName: nfs-prod-distribute
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteMany
|
|
||||||
volumeMode: Filesystem
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 20Gi
|
|
||||||
@@ -83,7 +83,7 @@ data:
|
|||||||
hls_m3u8_file [app]/[stream].m3u8;
|
hls_m3u8_file [app]/[stream].m3u8;
|
||||||
hls_ts_file [app]/[stream]/[2006][01][02]/[timestamp]-[duration].ts;
|
hls_ts_file [app]/[stream]/[2006][01][02]/[timestamp]-[duration].ts;
|
||||||
hls_cleanup on;
|
hls_cleanup on;
|
||||||
hls_entry_prefix http://192.168.35.178;
|
hls_entry_prefix http://lab.uavcmlc.com;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
---
|
---
|
||||||
@@ -99,18 +99,18 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
- name: rtmp
|
- name: rtmp
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
port: 30935
|
port: 30937
|
||||||
targetPort: 30935
|
targetPort: 30937
|
||||||
nodePort: 30937
|
nodePort: 30937
|
||||||
- name: rtc
|
- name: rtc
|
||||||
protocol: UDP
|
protocol: UDP
|
||||||
port: 30090
|
port: 30092
|
||||||
targetPort: 30090
|
targetPort: 30092
|
||||||
nodePort: 30092
|
nodePort: 30092
|
||||||
- name: rtc-tcp
|
- name: rtc-tcp
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
port: 30090
|
port: 30092
|
||||||
targetPort: 30090
|
targetPort: 30092
|
||||||
nodePort: 30092
|
nodePort: 30092
|
||||||
- name: srt
|
- name: srt
|
||||||
protocol: UDP
|
protocol: UDP
|
||||||
@@ -165,8 +165,8 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
- name: rtmp
|
- name: rtmp
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
port: 30935
|
port: 30937
|
||||||
targetPort: 30935
|
targetPort: 30937
|
||||||
selector:
|
selector:
|
||||||
srs-role: rtc
|
srs-role: rtc
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
@@ -211,7 +211,7 @@ spec:
|
|||||||
image: harbor.cdcyy.com.cn/cmii/srs:v5.0.195
|
image: harbor.cdcyy.com.cn/cmii/srs:v5.0.195
|
||||||
ports:
|
ports:
|
||||||
- name: srs-rtmp
|
- name: srs-rtmp
|
||||||
containerPort: 30935
|
containerPort: 30937
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
- name: srs-api
|
- name: srs-api
|
||||||
containerPort: 1985
|
containerPort: 1985
|
||||||
@@ -220,17 +220,17 @@ spec:
|
|||||||
containerPort: 8080
|
containerPort: 8080
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
- name: srs-webrtc
|
- name: srs-webrtc
|
||||||
containerPort: 30090
|
containerPort: 30092
|
||||||
protocol: UDP
|
protocol: UDP
|
||||||
- name: srs-webrtc-tcp
|
- name: srs-webrtc-tcp
|
||||||
containerPort: 30090
|
containerPort: 30092
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
- name: srs-srt
|
- name: srs-srt
|
||||||
containerPort: 30556
|
containerPort: 30556
|
||||||
protocol: UDP
|
protocol: UDP
|
||||||
env:
|
env:
|
||||||
- name: CANDIDATE
|
- name: CANDIDATE
|
||||||
value: 192.168.35.178
|
value: lab.uavcmlc.com
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 2000m
|
cpu: 2000m
|
||||||
@@ -255,13 +255,13 @@ spec:
|
|||||||
image: harbor.cdcyy.com.cn/cmii/cmii-srs-oss-adaptor:2023-SA
|
image: harbor.cdcyy.com.cn/cmii/cmii-srs-oss-adaptor:2023-SA
|
||||||
env:
|
env:
|
||||||
- name: OSS_ENDPOINT
|
- name: OSS_ENDPOINT
|
||||||
value: https://minio-ig-devoperation.uavcmlc.com
|
value: 'http://127.0.0.1:9000'
|
||||||
- name: OSS_AK
|
- name: OSS_AK
|
||||||
value: cmii
|
value: cmii
|
||||||
- name: OSS_SK
|
- name: OSS_SK
|
||||||
value: 'B#923fC7mk'
|
value: 'B#923fC7mk'
|
||||||
- name: OSS_BUCKET
|
- name: OSS_BUCKET
|
||||||
value: live-srs-hls
|
value: live-cluster-hls
|
||||||
- name: SRS_OP
|
- name: SRS_OP
|
||||||
value: 'http://helm-live-op-svc-v2:8080'
|
value: 'http://helm-live-op-svc-v2:8080'
|
||||||
- name: MYSQL_ENDPOINT
|
- name: MYSQL_ENDPOINT
|
||||||
@@ -295,10 +295,10 @@ spec:
|
|||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
terminationGracePeriodSeconds: 30
|
terminationGracePeriodSeconds: 30
|
||||||
dnsPolicy: ClusterFirst
|
dnsPolicy: ClusterFirst
|
||||||
securityContext: { }
|
securityContext: {}
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: harborsecret
|
- name: harborsecret
|
||||||
affinity: { }
|
affinity: {}
|
||||||
schedulerName: default-scheduler
|
schedulerName: default-scheduler
|
||||||
serviceName: helm-live-srsrtc-svc
|
serviceName: helm-live-srsrtc-svc
|
||||||
podManagementPolicy: OrderedReady
|
podManagementPolicy: OrderedReady
|
||||||
@@ -384,10 +384,10 @@ spec:
|
|||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
terminationGracePeriodSeconds: 30
|
terminationGracePeriodSeconds: 30
|
||||||
dnsPolicy: ClusterFirst
|
dnsPolicy: ClusterFirst
|
||||||
securityContext: { }
|
securityContext: {}
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: harborsecret
|
- name: harborsecret
|
||||||
affinity: { }
|
affinity: {}
|
||||||
schedulerName: default-scheduler
|
schedulerName: default-scheduler
|
||||||
strategy:
|
strategy:
|
||||||
type: RollingUpdate
|
type: RollingUpdate
|
||||||
@@ -410,9 +410,10 @@ spec:
|
|||||||
- protocol: TCP
|
- protocol: TCP
|
||||||
port: 8080
|
port: 8080
|
||||||
targetPort: 8080
|
targetPort: 8080
|
||||||
|
nodePort: 30333
|
||||||
selector:
|
selector:
|
||||||
live-role: op-v2
|
live-role: op-v2
|
||||||
type: ClusterIP
|
type: NodePort
|
||||||
sessionAffinity: None
|
sessionAffinity: None
|
||||||
---
|
---
|
||||||
kind: Service
|
kind: Service
|
||||||
@@ -457,21 +458,21 @@ data:
|
|||||||
info:
|
info:
|
||||||
name: cmii-live-operator
|
name: cmii-live-operator
|
||||||
description: cmii-live-operator
|
description: cmii-live-operator
|
||||||
version: 5.6.0
|
version: 6.0.0
|
||||||
scanPackage: com.cmii.live.op
|
scanPackage: com.cmii.live.op
|
||||||
cloud:
|
cloud:
|
||||||
nacos:
|
nacos:
|
||||||
config:
|
config:
|
||||||
username: developer
|
username: nacos
|
||||||
password: N@cos14Good
|
password: KingKong@95461234
|
||||||
server-addr: helm-nacos:8848
|
server-addr: helm-nacos:8848
|
||||||
extension-configs:
|
extension-configs:
|
||||||
- data-id: cmii-live-operator.yml
|
- data-id: cmii-live-operator.yml
|
||||||
group: 5.6.0
|
group: 6.0.0
|
||||||
refresh: true
|
refresh: true
|
||||||
shared-configs:
|
shared-configs:
|
||||||
- data-id: cmii-backend-system.yml
|
- data-id: cmii-backend-system.yml
|
||||||
group: 5.6.0
|
group: 6.0.0
|
||||||
refresh: true
|
refresh: true
|
||||||
discovery:
|
discovery:
|
||||||
enabled: false
|
enabled: false
|
||||||
@@ -481,15 +482,15 @@ data:
|
|||||||
type: srs
|
type: srs
|
||||||
endpoint: 'http://helm-live-srs-svc:1985'
|
endpoint: 'http://helm-live-srs-svc:1985'
|
||||||
proto:
|
proto:
|
||||||
rtmp: 'rtmp://192.168.35.178:30937'
|
rtmp: 'rtmp://lab.uavcmlc.com:30937'
|
||||||
rtsp: 'rtsp://192.168.35.178:30554'
|
rtsp: 'rtsp://lab.uavcmlc.com:30554'
|
||||||
srt: 'srt://192.168.35.178:30560'
|
srt: 'srt://lab.uavcmlc.com:30560'
|
||||||
flv: 'http://192.168.35.178:30500'
|
flv: 'http://lab.uavcmlc.com:30500'
|
||||||
hls: 'http://192.168.35.178:30500'
|
hls: 'http://lab.uavcmlc.com:30500'
|
||||||
rtc: 'webrtc://192.168.35.178:30092'
|
rtc: 'webrtc://lab.uavcmlc.com:30080'
|
||||||
replay: 'https://192.168.35.178:30333'
|
replay: 'https://lab.uavcmlc.com:30333'
|
||||||
minio:
|
minio:
|
||||||
endpoint: https://minio-ig-devoperation.uavcmlc.com
|
endpoint: http://127.0.0.1:9000
|
||||||
access-key: cmii
|
access-key: cmii
|
||||||
secret-key: B#923fC7mk
|
secret-key: B#923fC7mk
|
||||||
bucket: live-srs-hls
|
bucket: live-cluster-hls
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// DownloadFile 下载一个文件,调用http.Get()下载
|
||||||
func DownloadFile(downloadUrl, desFile string) (downloadOk bool, resultLog []string) {
|
func DownloadFile(downloadUrl, desFile string) (downloadOk bool, resultLog []string) {
|
||||||
|
|
||||||
log.InfoF("Downloading file: %s", downloadUrl)
|
log.InfoF("Downloading file: %s", downloadUrl)
|
||||||
|
|||||||
@@ -5,11 +5,12 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"os"
|
"os"
|
||||||
|
"os/user"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
)
|
)
|
||||||
|
|
||||||
// AppendSourceToFile 将源文件的内容添加到目标文件,使用golang标准库完成,跨平台、安全性更强
|
// AppendFileToFile 将源文件的内容添加到目标文件
|
||||||
func AppendSourceToFile(sourceFile, targetFile string) bool {
|
func AppendFileToFile(sourceFile, targetFile string) bool {
|
||||||
|
|
||||||
// 打开源文件
|
// 打开源文件
|
||||||
source, err := os.Open(sourceFile)
|
source, err := os.Open(sourceFile)
|
||||||
@@ -68,6 +69,7 @@ func AppendContentToFile(content string, targetFile string) bool {
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// AppendOverwriteListContentToFile 将一个字符串列表中的内容,一行一行的写入文件中
|
||||||
func AppendOverwriteListContentToFile(contentList []string, targetFile string) bool {
|
func AppendOverwriteListContentToFile(contentList []string, targetFile string) bool {
|
||||||
|
|
||||||
err := os.Remove(targetFile)
|
err := os.Remove(targetFile)
|
||||||
@@ -95,8 +97,8 @@ func AppendOverwriteListContentToFile(contentList []string, targetFile string) b
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
// AppendContentWithSplitLineToFile 专门为k8s的yaml文件设计的,在每次写入内容之前,先写入一行分隔符
|
// AppendK8sYamlWithSplitLineToFile 专门为k8s的yaml文件设计的,在每次写入内容之前,先写入一行分隔符
|
||||||
func AppendContentWithSplitLineToFile(content string, targetFile string) bool {
|
func AppendK8sYamlWithSplitLineToFile(content string, targetFile string) bool {
|
||||||
|
|
||||||
// 打开文件用于追加。如果文件不存在,将会创建一个新文件。
|
// 打开文件用于追加。如果文件不存在,将会创建一个新文件。
|
||||||
file, err := os.OpenFile(targetFile, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
|
file, err := os.OpenFile(targetFile, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
|
||||||
@@ -119,13 +121,13 @@ func AppendContentWithSplitLineToFile(content string, targetFile string) bool {
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
// AppendNullToFile 清空一个文件
|
// AppendNullOverWriteToFile 清空一个文件
|
||||||
func AppendNullToFile(targetFile string) bool {
|
func AppendNullOverWriteToFile(targetFile string) bool {
|
||||||
|
|
||||||
// 使用os.O_TRUNC清空文件内容
|
// 使用os.O_TRUNC清空文件内容
|
||||||
file, err := os.OpenFile(targetFile, os.O_TRUNC|os.O_WRONLY, 0644)
|
file, err := os.OpenFile(targetFile, os.O_TRUNC|os.O_WRONLY, 0644)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.ErrorF("[AppendNullToFile] - Error opening file: %s, error is %s", targetFile, err.Error())
|
log.ErrorF("[AppendNullOverWriteToFile] - Error opening file: %s, error is %s", targetFile, err.Error())
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
defer file.Close() // 确保在函数退出前关闭文件
|
defer file.Close() // 确保在函数退出前关闭文件
|
||||||
@@ -270,8 +272,8 @@ func ReadAllContentFromFile(fileFullPath string) (result []string) {
|
|||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|
||||||
// FolderMoveFiles 将源文件夹中除了子文件夹外的所有文件移动到目标文件夹
|
// MoveFolerToAnother 将源文件夹中除了子文件夹外的所有文件移动到目标文件夹
|
||||||
func FolderMoveFiles(srcDir, dstDir string) error {
|
func MoveFolerToAnother(srcDir, dstDir string) error {
|
||||||
// 读取源文件夹中的所有条目
|
// 读取源文件夹中的所有条目
|
||||||
entries, err := os.ReadDir(srcDir)
|
entries, err := os.ReadDir(srcDir)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@@ -297,3 +299,14 @@ func FolderMoveFiles(srcDir, dstDir string) error {
|
|||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetCurrentUserFolder 获取运行环境当前用户的根目录
|
||||||
|
func GetCurrentUserFolder() string {
|
||||||
|
usr, err := user.Current()
|
||||||
|
if err != nil {
|
||||||
|
fmt.Println(err)
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
return usr.HomeDir
|
||||||
|
}
|
||||||
|
|||||||
@@ -180,7 +180,7 @@ func CmiiEnvironmentDeploy(isCompleteDeploy bool, commonEnv *z_dep.CommonEnviron
|
|||||||
_ = os.Mkdir(oldApplyFileFolder, os.ModePerm)
|
_ = os.Mkdir(oldApplyFileFolder, os.ModePerm)
|
||||||
|
|
||||||
// move all apply file to old folder
|
// move all apply file to old folder
|
||||||
_ = utils.FolderMoveFiles(commonEnv.ApplyFilePrefix, oldApplyFileFolder)
|
_ = utils.MoveFolerToAnother(commonEnv.ApplyFilePrefix, oldApplyFileFolder)
|
||||||
|
|
||||||
// get cmii env config from namespace
|
// get cmii env config from namespace
|
||||||
cmiiEnvConfig := getCmiiEnvConfigurationFromNamespace(commonEnv.Namespace)
|
cmiiEnvConfig := getCmiiEnvConfigurationFromNamespace(commonEnv.Namespace)
|
||||||
|
|||||||
@@ -46,39 +46,41 @@ var CmiiBackendAppMap = map[string]string{
|
|||||||
"cmii-uav-sense-adapter": "5.4.0",
|
"cmii-uav-sense-adapter": "5.4.0",
|
||||||
"cmii-uav-sync": "5.4.0",
|
"cmii-uav-sync": "5.4.0",
|
||||||
"cmii-uav-iot-dispatcher": "5.7.0",
|
"cmii-uav-iot-dispatcher": "5.7.0",
|
||||||
"uavms-security-center": "5.7.0",
|
"cmii-uavms-security-center": "5.7.0",
|
||||||
|
"cmii-uav-fwdd": "5.7.0",
|
||||||
}
|
}
|
||||||
|
|
||||||
var CmiiFrontendAppMap = map[string]string{
|
var CmiiFrontendAppMap = map[string]string{
|
||||||
"cmii-suav-platform-supervision": "5.2.0",
|
"cmii-suav-platform-supervision": "5.2.0",
|
||||||
"cmii-suav-platform-supervisionh5": "5.2.0",
|
"cmii-suav-platform-supervisionh5": "5.2.0",
|
||||||
"cmii-uav-platform": "5.2.0-011004",
|
"cmii-uav-platform": "5.2.0-011004",
|
||||||
"cmii-uav-platform-ai-brain": "5.2.0",
|
"cmii-uav-platform-ai-brain": "5.2.0",
|
||||||
"cmii-uav-platform-armypeople": "5.2.0-24538",
|
"cmii-uav-platform-armypeople": "5.2.0-24538",
|
||||||
"cmii-uav-platform-base": "5.2.0",
|
"cmii-uav-platform-base": "5.2.0",
|
||||||
"cmii-uav-platform-cms-portal": "5.2.0",
|
"cmii-uav-platform-cms-portal": "5.2.0",
|
||||||
"cmii-uav-platform-detection": "5.2.0",
|
"cmii-uav-platform-detection": "5.2.0",
|
||||||
"cmii-uav-platform-emergency-rescue": "5.2.0",
|
"cmii-uav-platform-emergency-rescue": "5.2.0",
|
||||||
"cmii-uav-platform-hljtt": "5.2.0",
|
"cmii-uav-platform-hljtt": "5.2.0",
|
||||||
"cmii-uav-platform-jiangsuwenlv": "4.1.3-jiangsu-0427",
|
"cmii-uav-platform-jiangsuwenlv": "4.1.3-jiangsu-0427",
|
||||||
"cmii-uav-platform-logistics": "5.2.0",
|
"cmii-uav-platform-logistics": "5.2.0",
|
||||||
"cmii-uav-platform-media": "5.2.0",
|
"cmii-uav-platform-media": "5.2.0",
|
||||||
"cmii-uav-platform-multiterminal": "5.2.0",
|
"cmii-uav-platform-multiterminal": "5.2.0",
|
||||||
"cmii-uav-platform-mws": "5.2.0",
|
"cmii-uav-platform-mws": "5.2.0",
|
||||||
"cmii-uav-platform-oms": "5.2.0",
|
"cmii-uav-platform-oms": "5.2.0",
|
||||||
"cmii-uav-platform-open": "5.2.0",
|
"cmii-uav-platform-open": "5.2.0",
|
||||||
"cmii-uav-platform-qingdao": "4.1.6-24238-qingdao",
|
"cmii-uav-platform-qingdao": "4.1.6-24238-qingdao",
|
||||||
"cmii-uav-platform-qinghaitourism": "4.1.0-21377-0508",
|
"cmii-uav-platform-qinghaitourism": "4.1.0-21377-0508",
|
||||||
"cmii-uav-platform-security": "4.1.6",
|
"cmii-uav-platform-security": "4.1.6",
|
||||||
"cmii-uav-platform-securityh5": "5.2.0",
|
"cmii-uav-platform-securityh5": "5.2.0",
|
||||||
"cmii-uav-platform-seniclive": "5.2.0",
|
"cmii-uav-platform-seniclive": "5.2.0",
|
||||||
"cmii-uav-platform-share": "5.2.0",
|
"cmii-uav-platform-share": "5.2.0",
|
||||||
"cmii-uav-platform-splice": "5.2.0",
|
"cmii-uav-platform-splice": "5.2.0",
|
||||||
"cmii-uav-platform-threedsimulation": "5.2.0-21392",
|
"cmii-uav-platform-threedsimulation": "5.2.0-21392",
|
||||||
"cmii-uav-platform-visualization": "5.2.0",
|
"cmii-uav-platform-visualization": "5.2.0",
|
||||||
"cmii-uav-platform-uasms": "5.2.0",
|
"cmii-uav-platform-uasms": "5.2.0",
|
||||||
"cmii-uav-platform-uas": "5.2.0",
|
"cmii-uav-platform-uas": "5.2.0",
|
||||||
"cmii-uav-platform-pilot2-to-cloud": "5.2.0",
|
"cmii-uav-platform-pilot2-to-cloud": "5.2.0",
|
||||||
|
"cmii-uavms-platform-security-center": "5.2.0",
|
||||||
}
|
}
|
||||||
|
|
||||||
var IgnoreCmiiBackendAppName = map[string]string{
|
var IgnoreCmiiBackendAppName = map[string]string{
|
||||||
|
|||||||
@@ -1,81 +1,89 @@
|
|||||||
package d_app
|
package d_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": "pangu",
|
"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",
|
||||||
"cmii-uav-platform-cms-portal": "cmsportal",
|
"cmii-uav-platform-cms-portal": "cmsportal",
|
||||||
"cmii-uav-platform-detection": "detection",
|
"cmii-uav-platform-detection": "detection",
|
||||||
"cmii-uav-platform-emergency-rescue": "emergency",
|
"cmii-uav-platform-emergency-rescue": "emergency",
|
||||||
"cmii-uav-platform-logistics": "logistics",
|
"cmii-uav-platform-logistics": "logistics",
|
||||||
"cmii-uav-platform-media": "media",
|
"cmii-uav-platform-media": "media",
|
||||||
"cmii-uav-platform-multiterminal": "multiterminal",
|
"cmii-uav-platform-multiterminal": "multiterminal",
|
||||||
"cmii-uav-platform-mws": "mws",
|
"cmii-uav-platform-mws": "mws",
|
||||||
"cmii-uav-platform-oms": "oms",
|
"cmii-uav-platform-oms": "oms",
|
||||||
"cmii-uav-platform-open": "open",
|
"cmii-uav-platform-open": "open",
|
||||||
"cmii-uav-platform-security": "security",
|
"cmii-uav-platform-security": "security",
|
||||||
"cmii-uav-platform-securityh5": "securityh5",
|
"cmii-uav-platform-securityh5": "securityh5",
|
||||||
"cmii-uav-platform-seniclive": "seniclive",
|
"cmii-uav-platform-seniclive": "seniclive",
|
||||||
"cmii-uav-platform-share": "share",
|
"cmii-uav-platform-share": "share",
|
||||||
"cmii-uav-platform-splice": "splice",
|
"cmii-uav-platform-splice": "splice",
|
||||||
"cmii-uav-platform-traffic": "traffic",
|
"cmii-uav-platform-traffic": "traffic",
|
||||||
"cmii-uav-platform-threedsimulation": "threedsimulation",
|
"cmii-uav-platform-threedsimulation": "threedsimulation",
|
||||||
"cmii-uav-platform-jiangsuwenlv": "jiangsuwenlv",
|
"cmii-uav-platform-jiangsuwenlv": "jiangsuwenlv",
|
||||||
"cmii-uav-platform-qinghaitourism": "qinghaitourism",
|
"cmii-uav-platform-qinghaitourism": "qinghaitourism",
|
||||||
"cmii-uav-platform-qingdao": "qingdao",
|
"cmii-uav-platform-qingdao": "qingdao",
|
||||||
"cmii-uav-platform-hljtt": "hljtt",
|
"cmii-uav-platform-hljtt": "hljtt",
|
||||||
"cmii-uav-platform-visualization": "visualization",
|
"cmii-uav-platform-visualization": "visualization",
|
||||||
"cmii-uav-platform-uasms": "uasms",
|
"cmii-uav-platform-uasms": "uasms",
|
||||||
"cmii-uav-platform-uas": "uas",
|
"cmii-uav-platform-uas": "uas",
|
||||||
"cmii-uav-platform-dispatchh5": "dispatchh5",
|
"cmii-uav-platform-dispatchh5": "dispatchh5",
|
||||||
"cmii-uav-platform-pilot2-to-cloud": "pilot2cloud",
|
"cmii-uav-platform-pilot2-to-cloud": "pilot2cloud",
|
||||||
"cmii-uav-platform-hyperspectral": "hyper",
|
"cmii-uav-platform-hyperspectral": "hyper",
|
||||||
"cmii-uav-platform-scanner": "scanner",
|
"cmii-uav-platform-scanner": "scanner",
|
||||||
"cmii-uav-platform-blockchain": "blockchain",
|
"cmii-uav-platform-blockchain": "blockchain",
|
||||||
"cmii-uav-platform-smsecret": "smsecret",
|
"cmii-uav-platform-smsecret": "smsecret",
|
||||||
"cmii-uav-platform-classification": "classification",
|
"cmii-uav-platform-classification": "classification",
|
||||||
"cmii-uav-platform-smauth": "smauth",
|
"cmii-uav-platform-smauth": "smauth",
|
||||||
|
"cmii-uavms-platform-security-center": "secenter",
|
||||||
|
"cmii-uav-platform-eventsh5": "eventsh5",
|
||||||
|
"cmii-uav-platform-mianyangbackend": "mianyangbackend",
|
||||||
|
"cmii-uav-platform-dikongzhixingh5": "dikongzhixingh5",
|
||||||
}
|
}
|
||||||
|
|
||||||
var FrontendClientIdMaps = map[string]string{
|
var FrontendClientIdMaps = map[string]string{
|
||||||
"cmii-suav-platform-supervision": "APP_qqSu82THfexI8PLM",
|
"cmii-suav-platform-supervision": "APP_qqSu82THfexI8PLM",
|
||||||
"cmii-suav-platform-supervisionh5": "APP_qqSu82THfexI8PLM",
|
"cmii-suav-platform-supervisionh5": "APP_qqSu82THfexI8PLM",
|
||||||
"cmii-uav-platform": "empty",
|
"cmii-uav-platform": "empty",
|
||||||
"cmii-uav-platform-ai-brain": "APP_rafnuCAmBESIVYMH",
|
"cmii-uav-platform-ai-brain": "APP_rafnuCAmBESIVYMH",
|
||||||
"cmii-uav-platform-armypeople": "APP_UIegse6Lfou9pO1U",
|
"cmii-uav-platform-armypeople": "APP_UIegse6Lfou9pO1U",
|
||||||
"cmii-uav-platform-base": "APP_9LY41OaKSqk2btY0",
|
"cmii-uav-platform-base": "APP_9LY41OaKSqk2btY0",
|
||||||
"cmii-uav-platform-cms-portal": "empty",
|
"cmii-uav-platform-cms-portal": "empty",
|
||||||
"cmii-uav-platform-detection": "APP_FDHW2VLVDWPnnOCy",
|
"cmii-uav-platform-detection": "APP_FDHW2VLVDWPnnOCy",
|
||||||
"cmii-uav-platform-emergency-rescue": "APP_aGsTAY1uMZrpKdfk",
|
"cmii-uav-platform-emergency-rescue": "APP_aGsTAY1uMZrpKdfk",
|
||||||
"cmii-uav-platform-logistics": "APP_PvdfRRRBPL8xbIwl",
|
"cmii-uav-platform-logistics": "APP_PvdfRRRBPL8xbIwl",
|
||||||
"cmii-uav-platform-media": "APP_4AU8lbifESQO4FD6",
|
"cmii-uav-platform-media": "APP_4AU8lbifESQO4FD6",
|
||||||
"cmii-uav-platform-multiterminal": "APP_PvdfRRRBPL8xbIwl",
|
"cmii-uav-platform-multiterminal": "APP_PvdfRRRBPL8xbIwl",
|
||||||
"cmii-uav-platform-mws": "APP_uKniXPELlRERBBwK",
|
"cmii-uav-platform-mws": "APP_uKniXPELlRERBBwK",
|
||||||
"cmii-uav-platform-oms": "empty",
|
"cmii-uav-platform-oms": "empty",
|
||||||
"cmii-uav-platform-open": "empty",
|
"cmii-uav-platform-open": "empty",
|
||||||
"cmii-uav-platform-qingdao": "empty",
|
"cmii-uav-platform-qingdao": "empty",
|
||||||
"cmii-uav-platform-qinghaitourism": "empty",
|
"cmii-uav-platform-qinghaitourism": "empty",
|
||||||
"cmii-uav-platform-security": "APP_JUSEMc7afyWXxvE7",
|
"cmii-uav-platform-security": "APP_JUSEMc7afyWXxvE7",
|
||||||
"cmii-uav-platform-securityh5": "APP_N3ImO0Ubfu9peRHD",
|
"cmii-uav-platform-securityh5": "APP_N3ImO0Ubfu9peRHD",
|
||||||
"cmii-uav-platform-seniclive": "empty",
|
"cmii-uav-platform-seniclive": "empty",
|
||||||
"cmii-uav-platform-share": "APP_4lVSVI0ZGxTssir8",
|
"cmii-uav-platform-share": "APP_4lVSVI0ZGxTssir8",
|
||||||
"cmii-uav-platform-splice": "APP_zE0M3sTRXrCIJS8Y",
|
"cmii-uav-platform-splice": "APP_zE0M3sTRXrCIJS8Y",
|
||||||
"cmii-uav-platform-threedsimulation": "empty",
|
"cmii-uav-platform-threedsimulation": "empty",
|
||||||
"cmii-uav-platform-visualization": "empty",
|
"cmii-uav-platform-visualization": "empty",
|
||||||
"cmii-uav-platform-traffic": "APP_Jc8i2wOQ1t73QEJS",
|
"cmii-uav-platform-traffic": "APP_Jc8i2wOQ1t73QEJS",
|
||||||
"cmii-uav-platform-jiangsuwenlv": "empty",
|
"cmii-uav-platform-jiangsuwenlv": "empty",
|
||||||
"cmii-uav-platform-hljtt": "empty",
|
"cmii-uav-platform-hljtt": "empty",
|
||||||
"cmii-uav-platform-uasms": "empty",
|
"cmii-uav-platform-uasms": "empty",
|
||||||
"cmii-uav-platform-uas": "empty",
|
"cmii-uav-platform-uas": "empty",
|
||||||
"cmii-uav-platform-dispatchh5": "empty",
|
"cmii-uav-platform-dispatchh5": "empty",
|
||||||
"cmii-uav-platform-pilot2-to-cloud": "empty",
|
"cmii-uav-platform-pilot2-to-cloud": "empty",
|
||||||
"cmii-uav-platform-hyperspectral": "empty",
|
"cmii-uav-platform-hyperspectral": "empty",
|
||||||
"cmii-uav-platform-scanner": "empty",
|
"cmii-uav-platform-scanner": "empty",
|
||||||
"cmii-uav-platform-blockchain": "empty",
|
"cmii-uav-platform-blockchain": "empty",
|
||||||
"cmii-uav-platform-smsecret": "empty",
|
"cmii-uav-platform-smsecret": "empty",
|
||||||
"cmii-uav-platform-classification": "empty",
|
"cmii-uav-platform-classification": "empty",
|
||||||
"cmii-uav-platform-smauth": "empty",
|
"cmii-uav-platform-smauth": "empty",
|
||||||
|
"cmii-uavms-platform-security-center": "empty",
|
||||||
|
"cmii-uav-platform-eventsh5": "empty",
|
||||||
|
"cmii-uav-platform-mianyangbackend": "empty",
|
||||||
|
"cmii-uav-platform-dikongzhixingh5": "empty",
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ func ParseEnvToApplyFile(environment any, applyTemplate string, applyFilePath st
|
|||||||
}
|
}
|
||||||
|
|
||||||
// append to file
|
// append to file
|
||||||
if !utils.AppendContentWithSplitLineToFile(result.String(), applyFilePath) {
|
if !utils.AppendK8sYamlWithSplitLineToFile(result.String(), applyFilePath) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import (
|
|||||||
"path/filepath"
|
"path/filepath"
|
||||||
"runtime"
|
"runtime"
|
||||||
"strings"
|
"strings"
|
||||||
|
"wdd.io/agent-common/logger"
|
||||||
|
|
||||||
image2 "wdd.io/agent-common/image"
|
image2 "wdd.io/agent-common/image"
|
||||||
"wdd.io/agent-common/utils"
|
"wdd.io/agent-common/utils"
|
||||||
@@ -16,6 +17,8 @@ import (
|
|||||||
|
|
||||||
var DeployFilePrefix = "/root/wddproject/ProjectOctopus/agent-common/real_project/"
|
var DeployFilePrefix = "/root/wddproject/ProjectOctopus/agent-common/real_project/"
|
||||||
|
|
||||||
|
var log = logger.Log
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
switch runtime.GOOS {
|
switch runtime.GOOS {
|
||||||
case "linux":
|
case "linux":
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
"wdd.io/agent-operator/config"
|
||||||
|
|
||||||
image2 "wdd.io/agent-common/image"
|
image2 "wdd.io/agent-common/image"
|
||||||
"wdd.io/agent-common/real_project"
|
"wdd.io/agent-common/real_project"
|
||||||
@@ -15,7 +16,7 @@ func TestCmiiEnvDeploy(t *testing.T) {
|
|||||||
// devflight
|
// devflight
|
||||||
// devoperation
|
// devoperation
|
||||||
|
|
||||||
deployNamespace := devFlight
|
deployNamespace := config.DevOperation
|
||||||
|
|
||||||
// deploy to cmii environment
|
// deploy to cmii environment
|
||||||
cmiiDeployCommonEnv := &z_dep.CommonEnvironmentConfig{
|
cmiiDeployCommonEnv := &z_dep.CommonEnvironmentConfig{
|
||||||
@@ -25,10 +26,10 @@ func TestCmiiEnvDeploy(t *testing.T) {
|
|||||||
HarborPort: "",
|
HarborPort: "",
|
||||||
Namespace: deployNamespace,
|
Namespace: deployNamespace,
|
||||||
TagVersion: "6.0.0",
|
TagVersion: "6.0.0",
|
||||||
TenantEnv: "devflight",
|
TenantEnv: "devoperation",
|
||||||
MinioPublicIP: "",
|
MinioPublicIP: "",
|
||||||
MinioInnerIP: "127.0.0.1",
|
MinioInnerIP: "127.0.0.1",
|
||||||
NFSServerIP: "",
|
NFSServerIP: "123.0.0.1",
|
||||||
ApplyFilePrefix: "",
|
ApplyFilePrefix: "",
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -48,7 +49,7 @@ func TestCmiiEnvDeploy_ChongQingSanHua(t *testing.T) {
|
|||||||
TagVersion: "5.6.0",
|
TagVersion: "5.6.0",
|
||||||
}
|
}
|
||||||
|
|
||||||
CmiiEnvDeploy(commonEnv, true, demo)
|
CmiiEnvDeploy(commonEnv, true, config.Demo)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -70,7 +71,7 @@ func TestCmiiEnvDeploy_LiuXiTongGan(t *testing.T) {
|
|||||||
ApplyFilePrefix: "",
|
ApplyFilePrefix: "",
|
||||||
}
|
}
|
||||||
|
|
||||||
CmiiEnvDeploy(commonEnv, true, demo)
|
CmiiEnvDeploy(commonEnv, true, config.Demo)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -155,6 +156,27 @@ func TestCmiiEnvDeploy_JiangXiTongGanErJiPingTai(t *testing.T) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func TestCmiiEnvDeploy_ShangDongErJiPingTai(t *testing.T) {
|
||||||
|
|
||||||
|
// 山东二级平台
|
||||||
|
commonEnv := &z_dep.CommonEnvironmentConfig{
|
||||||
|
WebIP: "134.80.124.6",
|
||||||
|
WebPort: "8088",
|
||||||
|
HarborIPOrCustomImagePrefix: "134.80.124.7",
|
||||||
|
HarborPort: "8033",
|
||||||
|
Namespace: "sdejpt",
|
||||||
|
TagVersion: "6.0.0",
|
||||||
|
TenantEnv: "",
|
||||||
|
MinioPublicIP: "",
|
||||||
|
MinioInnerIP: "134.80.124.15",
|
||||||
|
NFSServerIP: "134.80.124.21",
|
||||||
|
ApplyFilePrefix: "",
|
||||||
|
}
|
||||||
|
|
||||||
|
CmiiEnvDeployOffline(commonEnv, true, real_project.Cmii600ImageList)
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
func TestCmiiEnvDeploy_JiangSuNanTong(t *testing.T) {
|
func TestCmiiEnvDeploy_JiangSuNanTong(t *testing.T) {
|
||||||
|
|
||||||
// 江苏南通
|
// 江苏南通
|
||||||
@@ -259,7 +281,7 @@ func TestCmiiEnvDeploy_JiLinYiDong(t *testing.T) {
|
|||||||
|
|
||||||
func TestCmiiNewAppDeploy(t *testing.T) {
|
func TestCmiiNewAppDeploy(t *testing.T) {
|
||||||
|
|
||||||
deployNamespace := devOperation
|
deployNamespace := config.DevOperation
|
||||||
|
|
||||||
// deploy to cmii environment
|
// deploy to cmii environment
|
||||||
cmiiDeployCommonEnv := &z_dep.CommonEnvironmentConfig{
|
cmiiDeployCommonEnv := &z_dep.CommonEnvironmentConfig{
|
||||||
|
|||||||
26
agent-operator/ImageSyncOperator.go → agent-operator/CmiiImageSyncOperator.go
Executable file → Normal file
26
agent-operator/ImageSyncOperator.go → agent-operator/CmiiImageSyncOperator.go
Executable file → Normal file
@@ -9,7 +9,9 @@ import (
|
|||||||
image2 "wdd.io/agent-common/image"
|
image2 "wdd.io/agent-common/image"
|
||||||
"wdd.io/agent-common/utils"
|
"wdd.io/agent-common/utils"
|
||||||
"wdd.io/agent-deploy/d_app"
|
"wdd.io/agent-deploy/d_app"
|
||||||
|
"wdd.io/agent-operator/config"
|
||||||
"wdd.io/agent-operator/image"
|
"wdd.io/agent-operator/image"
|
||||||
|
"wdd.io/agent-operator/minio"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -330,15 +332,15 @@ func A_DownloadCompressUpload(syncEntity *ImageSyncEntity, syncResult *ImageSync
|
|||||||
projectUniqueName = strings.TrimSuffix(projectUniqueName, "/")
|
projectUniqueName = strings.TrimSuffix(projectUniqueName, "/")
|
||||||
|
|
||||||
bucketNameWithPrefix := "cmlc-installation/" + projectUniqueName
|
bucketNameWithPrefix := "cmlc-installation/" + projectUniqueName
|
||||||
log.InfoF("gzip file location in demo oss is %s", DefaultDemoEndpoint+"/"+bucketNameWithPrefix)
|
log.InfoF("gzip file location in demo oss is %s", minio.DefaultDemoEndpoint+"/"+bucketNameWithPrefix)
|
||||||
|
|
||||||
// 上传所有的压缩文件名称
|
// 上传所有的压缩文件名称
|
||||||
if !DefaultCmiiMinioOperator.UploadToDemo(bucketNameWithPrefix, gzipLocalFolderPath, AllGzipImageLocalFileName) {
|
if !minio.DefaultCmiiMinioOperator.UploadToDemo(bucketNameWithPrefix, gzipLocalFolderPath, AllGzipImageLocalFileName) {
|
||||||
log.ErrorF("upload of %s to demo oss error !", AllGzipImageLocalFileName)
|
log.ErrorF("upload of %s to demo oss error !", AllGzipImageLocalFileName)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 上传所有的镜像名称
|
// 上传所有的镜像名称
|
||||||
if !DefaultCmiiMinioOperator.UploadToDemo(bucketNameWithPrefix, gzipLocalFolderPath, AllCmiiImageListLocalFileName) {
|
if !minio.DefaultCmiiMinioOperator.UploadToDemo(bucketNameWithPrefix, gzipLocalFolderPath, AllCmiiImageListLocalFileName) {
|
||||||
log.ErrorF("upload of %s to demo oss error !", AllCmiiImageListLocalFileName)
|
log.ErrorF("upload of %s to demo oss error !", AllCmiiImageListLocalFileName)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -348,11 +350,11 @@ func A_DownloadCompressUpload(syncEntity *ImageSyncEntity, syncResult *ImageSync
|
|||||||
gzipFileName := strings.TrimPrefix(gzipFileFullName, gzipLocalFolderPath)
|
gzipFileName := strings.TrimPrefix(gzipFileFullName, gzipLocalFolderPath)
|
||||||
gzipFileName = strings.TrimPrefix(gzipFileName, "/")
|
gzipFileName = strings.TrimPrefix(gzipFileName, "/")
|
||||||
|
|
||||||
if !DefaultCmiiMinioOperator.UploadToDemo(bucketNameWithPrefix, gzipLocalFolderPath, gzipFileName) {
|
if !minio.DefaultCmiiMinioOperator.UploadToDemo(bucketNameWithPrefix, gzipLocalFolderPath, gzipFileName) {
|
||||||
log.ErrorF("upload of %s to demo oss error !", gzipFileName)
|
log.ErrorF("upload of %s to demo oss error !", gzipFileName)
|
||||||
errorUploadOssGzipNameList = append(errorUploadOssGzipNameList, gzipFileName)
|
errorUploadOssGzipNameList = append(errorUploadOssGzipNameList, gzipFileName)
|
||||||
} else {
|
} else {
|
||||||
allDownloadUrl = append(allDownloadUrl, DefaultDemoEndpoint+"/"+bucketNameWithPrefix+"/"+gzipFileName)
|
allDownloadUrl = append(allDownloadUrl, minio.DefaultDemoEndpoint+"/"+bucketNameWithPrefix+"/"+gzipFileName)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -448,7 +450,7 @@ func loadAllGzipImageFromLocalFolder(localGzipFolder string) {
|
|||||||
func parseAndDownloadFromOss(ossUrlPrefix, ossFileName, localGzipFolder string) bool {
|
func parseAndDownloadFromOss(ossUrlPrefix, ossFileName, localGzipFolder string) bool {
|
||||||
|
|
||||||
if ossUrlPrefix == "" {
|
if ossUrlPrefix == "" {
|
||||||
ossUrlPrefix = DefaultOssUrlPrefix
|
ossUrlPrefix = minio.DefaultOssUrlPrefix
|
||||||
}
|
}
|
||||||
if !strings.HasSuffix(ossUrlPrefix, "/") {
|
if !strings.HasSuffix(ossUrlPrefix, "/") {
|
||||||
ossUrlPrefix += "/"
|
ossUrlPrefix += "/"
|
||||||
@@ -456,7 +458,7 @@ func parseAndDownloadFromOss(ossUrlPrefix, ossFileName, localGzipFolder string)
|
|||||||
|
|
||||||
log.InfoF("prepare to download from %s%s", ossUrlPrefix, ossFileName)
|
log.InfoF("prepare to download from %s%s", ossUrlPrefix, ossFileName)
|
||||||
|
|
||||||
if !DefaultCmiiMinioOperator.DemoMinioOperator.DownloadFileFromOssFullUrl(ossUrlPrefix+ossFileName, localGzipFolder) {
|
if !minio.DefaultCmiiMinioOperator.DemoMinioOperator.DownloadFileFromOssFullUrl(ossUrlPrefix+ossFileName, localGzipFolder) {
|
||||||
log.ErrorF("download %s from oss error !", ossUrlPrefix+ossFileName)
|
log.ErrorF("download %s from oss error !", ossUrlPrefix+ossFileName)
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
@@ -466,7 +468,7 @@ func parseAndDownloadFromOss(ossUrlPrefix, ossFileName, localGzipFolder string)
|
|||||||
// download all files in the txt file
|
// download all files in the txt file
|
||||||
result := utils.ReadAllContentFromFile(localGzipFolder + ossFileName)
|
result := utils.ReadAllContentFromFile(localGzipFolder + ossFileName)
|
||||||
for _, gzipFileName := range result {
|
for _, gzipFileName := range result {
|
||||||
DefaultCmiiMinioOperator.DemoMinioOperator.DownloadFileFromOssFullUrl(ossUrlPrefix+gzipFileName, localGzipFolder)
|
minio.DefaultCmiiMinioOperator.DemoMinioOperator.DownloadFileFromOssFullUrl(ossUrlPrefix+gzipFileName, localGzipFolder)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -511,7 +513,7 @@ func buildAllCmiiImageNameListFromDemo(projectName string) []string {
|
|||||||
|
|
||||||
var realCmiiImageName []string
|
var realCmiiImageName []string
|
||||||
|
|
||||||
backendMap, frontendMap, srsMap := BackupAllCmiiDeploymentToMap(demo)
|
backendMap, frontendMap, srsMap := BackupAllCmiiDeploymentToMap(config.Demo)
|
||||||
|
|
||||||
// save map to file
|
// save map to file
|
||||||
backendMapFile := image.OfflineImageGzipFolderPrefix + projectName + "-backend-app.json"
|
backendMapFile := image.OfflineImageGzipFolderPrefix + projectName + "-backend-app.json"
|
||||||
@@ -595,14 +597,14 @@ func buildAllCmiiImageNameListFromVersion(cmiiVersion string) []string {
|
|||||||
realCmiiImageName = append(realCmiiImageName, image.CmiiImageMapToFullNameList(frontendMap)...)
|
realCmiiImageName = append(realCmiiImageName, image.CmiiImageMapToFullNameList(frontendMap)...)
|
||||||
|
|
||||||
for key, value := range d_app.CmiiSrsAppMap {
|
for key, value := range d_app.CmiiSrsAppMap {
|
||||||
var app *CmiiDeploymentInterface
|
var app *config.CmiiDeploymentInterface
|
||||||
if strings.Contains(value, "deployment") {
|
if strings.Contains(value, "deployment") {
|
||||||
app = DefaultCmiiOperator.DeploymentOneInterface(demo, key)
|
app = DefaultCmiiOperator.DeploymentOneInterface(config.Demo, key)
|
||||||
if app != nil {
|
if app != nil {
|
||||||
realCmiiImageName = append(realCmiiImageName, app.Image)
|
realCmiiImageName = append(realCmiiImageName, app.Image)
|
||||||
}
|
}
|
||||||
} else if strings.Contains(value, "state") {
|
} else if strings.Contains(value, "state") {
|
||||||
app = DefaultCmiiOperator.StatefulSetOneInterface(demo, key)
|
app = DefaultCmiiOperator.StatefulSetOneInterface(config.Demo, key)
|
||||||
if app != nil {
|
if app != nil {
|
||||||
for _, imageName := range app.ContainerImageMap {
|
for _, imageName := range app.ContainerImageMap {
|
||||||
realCmiiImageName = append(realCmiiImageName, imageName)
|
realCmiiImageName = append(realCmiiImageName, imageName)
|
||||||
|
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 50 KiB |
0
agent-operator/ImageSyncOperator_test.go → agent-operator/CmiiImageSyncOperator_test.go
Executable file → Normal file
0
agent-operator/ImageSyncOperator_test.go → agent-operator/CmiiImageSyncOperator_test.go
Executable file → Normal file
756
agent-operator/CmiiK8sHigherOperator.go
Normal file
756
agent-operator/CmiiK8sHigherOperator.go
Normal file
@@ -0,0 +1,756 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"bufio"
|
||||||
|
"runtime"
|
||||||
|
"strings"
|
||||||
|
"time"
|
||||||
|
image2 "wdd.io/agent-common/image"
|
||||||
|
"wdd.io/agent-common/utils"
|
||||||
|
"wdd.io/agent-deploy/d_app"
|
||||||
|
"wdd.io/agent-operator/config"
|
||||||
|
)
|
||||||
|
|
||||||
|
var DefaultCmiiOperator = CmiiK8sOperator{}
|
||||||
|
var UpdateLogPath = "/home/wdd/IdeaProjects/ProjectOctopus/agent-operator/log/cmii-update-log.txt"
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
switch runtime.GOOS {
|
||||||
|
case "linux":
|
||||||
|
UpdateLogPath = "/home/wdd/IdeaProjects/ProjectOctopus/agent-operator/log/cmii-update-log.txt"
|
||||||
|
case "windows":
|
||||||
|
UpdateLogPath = "C:\\Users\\wdd\\IdeaProjects\\ProjectOctopus\\agent-operator\\log\\cmii-update-log.txt"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// FindAppNotHealthyOrRestartCountGreaterThanN 重启次数大于N的所有Deployment
|
||||||
|
func FindAppNotHealthyOrRestartCountGreaterThanN(cmiiEnv string, restartCount int32) []config.CmiiDeploymentInterface {
|
||||||
|
|
||||||
|
//podInterface := CmiiPodInterface{}
|
||||||
|
|
||||||
|
// get all pods
|
||||||
|
podAll := DefaultCmiiOperator.PodAllInterface(cmiiEnv)
|
||||||
|
|
||||||
|
// restart map
|
||||||
|
restartMap := make(map[string]int32, len(podAll))
|
||||||
|
|
||||||
|
// restart count
|
||||||
|
for _, pod := range podAll {
|
||||||
|
if pod.RestartCount > restartCount {
|
||||||
|
restart, exists := restartMap[pod.ContainerName]
|
||||||
|
if exists {
|
||||||
|
restartMap[pod.ContainerName] = utils.MaxInt32(pod.RestartCount, restart)
|
||||||
|
} else {
|
||||||
|
restartMap[pod.ContainerName] = pod.RestartCount
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// unhealthy
|
||||||
|
if !pod.PodStatus {
|
||||||
|
restartMap[pod.ContainerName] = pod.RestartCount
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
result := make([]config.CmiiDeploymentInterface, len(restartMap))
|
||||||
|
index := 0
|
||||||
|
log.DebugF("[FindAppNotHealthyOrRestartCountGreaterThanN] - restart map is => %v", restartMap)
|
||||||
|
// find deployment convert to interface
|
||||||
|
for key, value := range restartMap {
|
||||||
|
// container Name must equals deployment name
|
||||||
|
deployment := DefaultCmiiOperator.DeploymentOneInterface(cmiiEnv, key)
|
||||||
|
if deployment != nil {
|
||||||
|
// deployment exists
|
||||||
|
log.DebugF("[FindAppNotHealthyOrRestartCountGreaterThanN] - restart [%s] [%s] is [%d]", cmiiEnv, key, value)
|
||||||
|
|
||||||
|
result[index] = *deployment
|
||||||
|
index++
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return result[:index]
|
||||||
|
}
|
||||||
|
|
||||||
|
func FindDeploymentReplicasSmallerThanN(cmiiEnv string, replicasMin int32) (deploymentList []config.CmiiDeploymentInterface) {
|
||||||
|
|
||||||
|
// get all deployments
|
||||||
|
cmiiDeploymentInterfaces := DefaultCmiiOperator.DeploymentAllInterface(cmiiEnv)
|
||||||
|
cmiiDeploymentInterfaces = FilterAllCmiiAppSoft(cmiiDeploymentInterfaces)
|
||||||
|
|
||||||
|
// filter
|
||||||
|
for _, deploymentInterface := range cmiiDeploymentInterfaces {
|
||||||
|
if deploymentInterface.Replicas <= replicasMin {
|
||||||
|
deploymentList = append(deploymentList, deploymentInterface)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// convert
|
||||||
|
return deploymentList
|
||||||
|
}
|
||||||
|
|
||||||
|
func FindDeploymentNotHealthy(cmiiEnv string) (deploymentList []config.CmiiDeploymentInterface) {
|
||||||
|
|
||||||
|
// all unhealthy pods
|
||||||
|
allInterface := DefaultCmiiOperator.PodAllInterface(cmiiEnv)
|
||||||
|
|
||||||
|
// find the deployments
|
||||||
|
for _, podInterface := range allInterface {
|
||||||
|
if !podInterface.PodStatus {
|
||||||
|
// unhealthy pod
|
||||||
|
deploymentInterface := DefaultCmiiOperator.DeploymentOneInterface(cmiiEnv, podInterface.ContainerName)
|
||||||
|
if deploymentInterface != nil {
|
||||||
|
deploymentList = append(deploymentList, *deploymentInterface)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return deploymentList
|
||||||
|
}
|
||||||
|
func FindAllNodeNotHealthy() (nodeList []config.CmiiNodeInterface) {
|
||||||
|
|
||||||
|
// dev-cluster
|
||||||
|
devNodeList := DefaultCmiiOperator.NodeAllInterface("dev")
|
||||||
|
|
||||||
|
// core-cluster
|
||||||
|
coreNodeList := DefaultCmiiOperator.NodeAllInterface("uat")
|
||||||
|
|
||||||
|
// append
|
||||||
|
coreNodeList = append(coreNodeList, devNodeList...)
|
||||||
|
|
||||||
|
// filter
|
||||||
|
for _, node := range coreNodeList {
|
||||||
|
if node.Unschedulable {
|
||||||
|
nodeList = append(nodeList, node)
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
|
if !node.NodeStatus {
|
||||||
|
nodeList = append(nodeList, node)
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
|
if node.MemoryPressure || node.PIDPressure || node.NetworkUnavailable || node.DiskPressure {
|
||||||
|
nodeList = append(nodeList, node)
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return nodeList
|
||||||
|
}
|
||||||
|
|
||||||
|
func FindPodNotHealthy(cmiiEnv string) (podList []config.CmiiPodInterface) {
|
||||||
|
// all unhealthy pods
|
||||||
|
allInterface := DefaultCmiiOperator.PodAllInterface(cmiiEnv)
|
||||||
|
|
||||||
|
// find the deployments
|
||||||
|
for _, podInterface := range allInterface {
|
||||||
|
if !podInterface.PodStatus {
|
||||||
|
// unhealthy pod
|
||||||
|
podList = append(podList, podInterface)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return podList
|
||||||
|
}
|
||||||
|
|
||||||
|
func GetDeploymentGitInfoFromInnerEnv(cmiiEnv, appName string) (gitBranch, gitCommit string) {
|
||||||
|
|
||||||
|
// get app
|
||||||
|
podList := DefaultCmiiOperator.PodByAppName(cmiiEnv, appName)
|
||||||
|
|
||||||
|
// get pod
|
||||||
|
if podList == nil || len(podList) == 0 {
|
||||||
|
log.ErrorF("[GetDeploymentGitInfoFromInnerEnv] - get app pod error [%s] [%s]", cmiiEnv, appName)
|
||||||
|
return "", ""
|
||||||
|
}
|
||||||
|
|
||||||
|
// exec env
|
||||||
|
stdout, stderr := DefaultCmiiOperator.PodExec(cmiiEnv, podList[0], []string{"env"})
|
||||||
|
|
||||||
|
errLog := stderr.String()
|
||||||
|
if errLog != "" {
|
||||||
|
log.ErrorF("[GetDeploymentGitInfoFromInnerEnv] - pod Exec error %s", errLog)
|
||||||
|
return "", ""
|
||||||
|
}
|
||||||
|
|
||||||
|
scanner := bufio.NewScanner(stdout)
|
||||||
|
for scanner.Scan() {
|
||||||
|
// Get the current line
|
||||||
|
line := scanner.Text()
|
||||||
|
|
||||||
|
// Check if the current line contains the search term
|
||||||
|
if strings.HasPrefix(line, "GIT_BRANCH") {
|
||||||
|
gitBranch = strings.Split(line, "=")[1]
|
||||||
|
}
|
||||||
|
if strings.HasPrefix(line, "GIT_COMMIT") {
|
||||||
|
gitCommit = strings.Split(line, "=")[1]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// get out git info
|
||||||
|
return gitBranch, gitCommit
|
||||||
|
}
|
||||||
|
|
||||||
|
func FindCmiiMiddlewarePodInterface(cmiiEnv string) (podList []config.CmiiPodInterface) {
|
||||||
|
|
||||||
|
cmiiPodInterfaces := DefaultCmiiOperator.PodAllInterface(cmiiEnv)
|
||||||
|
|
||||||
|
for _, podInterface := range cmiiPodInterfaces {
|
||||||
|
for key := range d_app.CmiiMiddlewareNameMap {
|
||||||
|
if strings.Contains(podInterface.Name, key) {
|
||||||
|
podList = append(podList, podInterface)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return podList
|
||||||
|
}
|
||||||
|
|
||||||
|
func ScaleCmiiFrontendDeploymentToDesiredReplicas(cmiiEnv string, desiredReplicas int32) (errorUpdateMap map[string]int32) {
|
||||||
|
frontMap := make(map[string]int32, len(d_app.CmiiFrontendAppMap))
|
||||||
|
for aooName := range d_app.CmiiFrontendAppMap {
|
||||||
|
frontMap[aooName] = desiredReplicas
|
||||||
|
}
|
||||||
|
|
||||||
|
return ScaleDeploymentToDesiredReplicasFromMap(cmiiEnv, frontMap)
|
||||||
|
}
|
||||||
|
|
||||||
|
func ScaleCmiiBackendDeploymentToDesiredReplicas(cmiiEnv string, desiredReplicas int32) (errorUpdateMap map[string]int32) {
|
||||||
|
backMap := make(map[string]int32, len(d_app.CmiiBackendAppMap))
|
||||||
|
for aooName := range d_app.CmiiBackendAppMap {
|
||||||
|
backMap[aooName] = desiredReplicas
|
||||||
|
}
|
||||||
|
|
||||||
|
return ScaleDeploymentToDesiredReplicasFromMap(cmiiEnv, backMap)
|
||||||
|
}
|
||||||
|
|
||||||
|
func ScaleDeploymentToDesiredReplicasFromMap(cmiiEnv string, nameReplicasMap map[string]int32) map[string]int32 {
|
||||||
|
|
||||||
|
errorUpdateMap := make(map[string]int32, len(nameReplicasMap))
|
||||||
|
|
||||||
|
// 遍历
|
||||||
|
for appName, replica := range nameReplicasMap {
|
||||||
|
exists := DefaultCmiiOperator.DeploymentExist(cmiiEnv, appName)
|
||||||
|
if exists != nil {
|
||||||
|
scale := DefaultCmiiOperator.DeploymentScale(cmiiEnv, appName, replica)
|
||||||
|
if !scale {
|
||||||
|
errorUpdateMap[appName] = replica
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
errorUpdateMap[appName] = replica
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return errorUpdateMap
|
||||||
|
}
|
||||||
|
|
||||||
|
func RestartDeploymentFromList(deploymentList []config.CmiiDeploymentInterface) bool {
|
||||||
|
|
||||||
|
result := true
|
||||||
|
|
||||||
|
for _, deployment := range deploymentList {
|
||||||
|
result = DefaultCmiiOperator.DeploymentScale(deployment.Namespace, deployment.Name, 0)
|
||||||
|
if !result {
|
||||||
|
return result
|
||||||
|
}
|
||||||
|
time.Sleep(time.Second)
|
||||||
|
result = DefaultCmiiOperator.DeploymentScale(deployment.Namespace, deployment.Name, deployment.Replicas)
|
||||||
|
if !result {
|
||||||
|
return result
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return result
|
||||||
|
}
|
||||||
|
|
||||||
|
func RestartCmiiBackendDeployment(cmiiEnv string) {
|
||||||
|
|
||||||
|
cmiiDeploymentInterfaces := DefaultCmiiOperator.DeploymentAllInterface(cmiiEnv)
|
||||||
|
|
||||||
|
for _, deploymentInterface := range cmiiDeploymentInterfaces {
|
||||||
|
if AppNameBelongsToCmiiImage(deploymentInterface.Name) {
|
||||||
|
if !DefaultCmiiOperator.DeploymentRestart(deploymentInterface.Namespace, deploymentInterface.Name) {
|
||||||
|
log.ErrorF("[RestartCmiiBackendDeployment] - restart of [%s] [%s] failed !", deploymentInterface.Namespace, deploymentInterface.Name)
|
||||||
|
} else {
|
||||||
|
log.DebugF("[RestartCmiiBackendDeployment] - restart of [%s] [%s] success !", deploymentInterface.Namespace, deploymentInterface.Name)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
log.InfoF("[RestartCmiiBackendDeployment] - restart of all backend app in [%s] success !", DefaultCmiiOperator.CurrentNamespace)
|
||||||
|
}
|
||||||
|
|
||||||
|
func RestartCmiiFrontendDeployment(cmiiEnv string) {
|
||||||
|
|
||||||
|
cmiiDeploymentInterfaces := DefaultCmiiOperator.DeploymentAllInterface(cmiiEnv)
|
||||||
|
|
||||||
|
for _, deploymentInterface := range cmiiDeploymentInterfaces {
|
||||||
|
_, ok := d_app.CmiiFrontendAppMap[deploymentInterface.Name]
|
||||||
|
if ok {
|
||||||
|
if !DefaultCmiiOperator.DeploymentRestart(deploymentInterface.Namespace, deploymentInterface.Name) {
|
||||||
|
log.ErrorF("[RestartCmiiFrontendDeployment] - restart of [%s] [%s] failed !", deploymentInterface.Namespace, deploymentInterface.Name)
|
||||||
|
} else {
|
||||||
|
log.DebugF("[RestartCmiiFrontendDeployment] - restart of [%s] [%s] success !", deploymentInterface.Namespace, deploymentInterface.Name)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
log.InfoF("[RestartCmiiFrontendDeployment] - restart of all backend app in [%s] success !", DefaultCmiiOperator.CurrentNamespace)
|
||||||
|
}
|
||||||
|
|
||||||
|
// UpdateCmiiDeploymentImageTag 更新CMII的Deployment的Tag号
|
||||||
|
func UpdateCmiiDeploymentImageTag(cmiiEnv, appName, newTag string) (updateOK bool, oldImageTag, newImageTag string) {
|
||||||
|
|
||||||
|
cmiiDeploymentInterface := DefaultCmiiOperator.DeploymentOneInterface(cmiiEnv, appName)
|
||||||
|
if cmiiDeploymentInterface == nil {
|
||||||
|
return updateOK, oldImageTag, newImageTag
|
||||||
|
}
|
||||||
|
|
||||||
|
// check if need to update
|
||||||
|
oldImageTag = cmiiDeploymentInterface.ImageTag
|
||||||
|
if oldImageTag == newTag {
|
||||||
|
log.DebugF("[UpdateCmiiDeploymentImageTag] - [%s] [%s] image tag are the same ! no need to update !", cmiiEnv, appName)
|
||||||
|
// restart deployment
|
||||||
|
if DefaultCmiiOperator.DeploymentRestart(cmiiEnv, appName) {
|
||||||
|
return true, oldImageTag, oldImageTag
|
||||||
|
} else {
|
||||||
|
return false, oldImageTag, oldImageTag
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
content := utils.WordSpaceCompletion(utils.TimeSplitFormatString()+" "+cmiiDeploymentInterface.Namespace, 35)
|
||||||
|
content = utils.WordSpaceCompletion(content+cmiiDeploymentInterface.Name, 75)
|
||||||
|
content = utils.WordSpaceCompletion(content+oldImageTag, 105)
|
||||||
|
content = content + newTag + "\n"
|
||||||
|
|
||||||
|
log.DebugF("[UpdateCmiiDeploymentImageTag] - prepare to update [%s]!", content)
|
||||||
|
|
||||||
|
// update
|
||||||
|
tag := DefaultCmiiOperator.DeploymentUpdateTag(cmiiDeploymentInterface.Namespace, cmiiDeploymentInterface.Name, newTag)
|
||||||
|
if !tag {
|
||||||
|
log.ErrorF("[UpdateCmiiDeploymentImageTag] - [%s] update failed !", content)
|
||||||
|
return false, oldImageTag, newImageTag
|
||||||
|
}
|
||||||
|
|
||||||
|
// append update log
|
||||||
|
utils.AppendContentToFile(content, UpdateLogPath)
|
||||||
|
|
||||||
|
// re-get from env
|
||||||
|
time.Sleep(time.Second)
|
||||||
|
deploy := DefaultCmiiOperator.DeploymentOneInterface(cmiiEnv, appName)
|
||||||
|
if deploy == nil {
|
||||||
|
log.ErrorF("[UpdateCmiiDeploymentImageTag] - unknown error happened ! [%s] [%s] not exists !", cmiiEnv, appName)
|
||||||
|
return false, oldImageTag, newImageTag
|
||||||
|
}
|
||||||
|
|
||||||
|
// result
|
||||||
|
return true, oldImageTag, deploy.ImageTag
|
||||||
|
}
|
||||||
|
|
||||||
|
func UpdateCmiiImageTagFromNameTagMap(cmiiEnv string, nameTagMap map[string]string) (result map[string]string) {
|
||||||
|
|
||||||
|
result = make(map[string]string, len(nameTagMap))
|
||||||
|
for appName, newTag := range nameTagMap {
|
||||||
|
if AppNameBelongsToCmiiImage(appName) {
|
||||||
|
ok, oldImageTag, newImageTag := UpdateCmiiDeploymentImageTag(cmiiEnv, appName, newTag)
|
||||||
|
if ok {
|
||||||
|
log.InfoF("[UpdateCmiiImageTagFromNameTagMap] - %s %s to %s", cmiiEnv, appName, newTag)
|
||||||
|
result[appName] = newImageTag
|
||||||
|
} else {
|
||||||
|
result[appName] = oldImageTag
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return result
|
||||||
|
}
|
||||||
|
|
||||||
|
func UpdateCmiiImageTagFromNameTagList(cmiiEnv string, nameTagList []string) (result map[string]string) {
|
||||||
|
|
||||||
|
nameTagMap := make(map[string]string, len(nameTagList))
|
||||||
|
for _, nameTag := range nameTagList {
|
||||||
|
if strings.HasPrefix(nameTag, image2.CmiiHarborPrefix) {
|
||||||
|
nameTag = strings.TrimPrefix(nameTag, image2.CmiiHarborPrefix)
|
||||||
|
}
|
||||||
|
split := strings.Split(nameTag, ":")
|
||||||
|
nameTagMap[split[0]] = split[1]
|
||||||
|
}
|
||||||
|
|
||||||
|
return UpdateCmiiImageTagFromNameTagMap(cmiiEnv, nameTagMap)
|
||||||
|
}
|
||||||
|
|
||||||
|
func RollBackCmiiDeploymentFromUpdateLog(updateLog string) bool {
|
||||||
|
|
||||||
|
//if !executor.BasicFindContentInFile(updateLog, UpdateLogPath) {
|
||||||
|
// log.ErrorF("[RollBackCmiiDeploymentFromUpdateLog] - [%s] no this update log ! use update instead ! => ", updateLog)
|
||||||
|
// return false
|
||||||
|
//}
|
||||||
|
|
||||||
|
split := strings.Split(updateLog, " ")
|
||||||
|
index := 0
|
||||||
|
cmiiEnv := ""
|
||||||
|
appName := ""
|
||||||
|
fromTag := ""
|
||||||
|
newTag := ""
|
||||||
|
for _, s := range split {
|
||||||
|
if s != "" {
|
||||||
|
if index == 1 {
|
||||||
|
cmiiEnv = s
|
||||||
|
} else if index == 2 {
|
||||||
|
appName = s
|
||||||
|
} else if index == 3 {
|
||||||
|
fromTag = s
|
||||||
|
} else if index == 4 {
|
||||||
|
newTag = s
|
||||||
|
}
|
||||||
|
index++
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
log.InfoF("[RollBackCmiiDeploymentFromUpdateLog] - rollback [%s] [%s] from [%s] to [%s]", cmiiEnv, appName, newTag, fromTag)
|
||||||
|
ok, _, _ := UpdateCmiiDeploymentImageTag(cmiiEnv, appName, fromTag)
|
||||||
|
|
||||||
|
return ok
|
||||||
|
}
|
||||||
|
|
||||||
|
// BackupAllDeploymentFromEnvToFile 从DEMO提取全部的CMII的应用
|
||||||
|
func BackupAllDeploymentFromEnvToFile(cmiiEnv string) bool {
|
||||||
|
|
||||||
|
allInterface := DefaultCmiiOperator.DeploymentAllInterface(cmiiEnv)
|
||||||
|
|
||||||
|
// must filter
|
||||||
|
allInterface = FilterAllCmiiAppSoft(allInterface)
|
||||||
|
|
||||||
|
//filePath := "C:\\Users\\wddsh\\Documents\\IdeaProjects\\ProjectOctopus\\cmii_operator\\log\\all-" + DefaultCmiiOperator.CurrentNamespace + "-" + utils.TimeSplitFormatString() + ".txt"
|
||||||
|
filePath := "/home/wdd/IdeaProjects/ProjectOctopus/agent-operator/log/all-" + DefaultCmiiOperator.CurrentNamespace + "-" + utils.TimeSplitFormatString() + ".txt"
|
||||||
|
|
||||||
|
log.InfoF("[BackupAllDeploymentFromEnvToFile] - backup all image from %s => %s", DefaultCmiiOperator.CurrentNamespace, filePath)
|
||||||
|
|
||||||
|
firstCol := 0
|
||||||
|
secondCol := 0
|
||||||
|
thirdCol := 0
|
||||||
|
fourthCol := 0
|
||||||
|
|
||||||
|
for _, deploymentInterface := range allInterface {
|
||||||
|
|
||||||
|
firstCol = utils.MaxInt(len(deploymentInterface.Name), firstCol)
|
||||||
|
secondCol = utils.MaxInt(len(deploymentInterface.ImageTag), secondCol)
|
||||||
|
thirdCol = utils.MaxInt(len(deploymentInterface.GitBranch), thirdCol)
|
||||||
|
fourthCol = utils.MaxInt(len(deploymentInterface.GitCommit), fourthCol)
|
||||||
|
}
|
||||||
|
|
||||||
|
firstCol += 2
|
||||||
|
secondCol += 2
|
||||||
|
secondCol += firstCol
|
||||||
|
thirdCol += 2
|
||||||
|
thirdCol += secondCol
|
||||||
|
fourthCol += 2
|
||||||
|
fourthCol += thirdCol
|
||||||
|
|
||||||
|
for _, deploymentInterface := range allInterface {
|
||||||
|
|
||||||
|
if deploymentInterface.GitBranch == "" {
|
||||||
|
branch, commit := GetDeploymentGitInfoFromInnerEnv(deploymentInterface.Namespace, deploymentInterface.Name)
|
||||||
|
deploymentInterface.GitBranch = branch
|
||||||
|
deploymentInterface.GitCommit = commit
|
||||||
|
}
|
||||||
|
|
||||||
|
content := utils.WordSpaceCompletion(deploymentInterface.Name, firstCol)
|
||||||
|
content = utils.WordSpaceCompletion(content+deploymentInterface.ImageTag, secondCol)
|
||||||
|
content = utils.WordSpaceCompletion(content+deploymentInterface.GitBranch, thirdCol)
|
||||||
|
content = utils.WordSpaceCompletion(content+deploymentInterface.GitCommit, fourthCol)
|
||||||
|
content += "\n"
|
||||||
|
|
||||||
|
if !utils.AppendContentToFile(content, filePath) {
|
||||||
|
log.ErrorF("[BackupAllDeploymentFromEnvToFile] - write to file %s error with contend %s", filePath, content)
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
// BackupAllCmiiDeploymentToMap 备份DEMO环境全部的镜像名称为Map 包括SRS 前端 后端
|
||||||
|
func BackupAllCmiiDeploymentToMap(cmiiEnv string) (backendMap, frontendMap, srsMap map[string]string) {
|
||||||
|
|
||||||
|
allInterface := DefaultCmiiOperator.DeploymentAllInterface(cmiiEnv)
|
||||||
|
allInterface = FilterAllCmiiAppSoft(allInterface)
|
||||||
|
|
||||||
|
backendMap = make(map[string]string, len(allInterface))
|
||||||
|
frontendMap = make(map[string]string, len(allInterface))
|
||||||
|
srsMap = make(map[string]string, len(allInterface))
|
||||||
|
|
||||||
|
for _, deploymentInterface := range allInterface {
|
||||||
|
if strings.Contains(deploymentInterface.Name, "platform") {
|
||||||
|
frontendMap[deploymentInterface.Name] = deploymentInterface.ImageTag
|
||||||
|
} else {
|
||||||
|
backendMap[deploymentInterface.Name] = deploymentInterface.ImageTag
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// add srs part
|
||||||
|
for key, value := range d_app.CmiiSrsAppMap {
|
||||||
|
var app *config.CmiiDeploymentInterface
|
||||||
|
if strings.Contains(value, "deployment") {
|
||||||
|
app = DefaultCmiiOperator.DeploymentOneInterface(cmiiEnv, key)
|
||||||
|
if app != nil {
|
||||||
|
for _, imageName := range app.ContainerImageMap {
|
||||||
|
split := strings.Split(imageName, ":")
|
||||||
|
if strings.Contains(split[0], image2.CmiiHarborPrefix) {
|
||||||
|
split[0] = strings.Split(split[0], image2.CmiiHarborPrefix)[1]
|
||||||
|
}
|
||||||
|
srsMap[split[0]] = split[1]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else if strings.Contains(value, "state") {
|
||||||
|
app = DefaultCmiiOperator.StatefulSetOneInterface(cmiiEnv, key)
|
||||||
|
if app != nil {
|
||||||
|
for _, imageName := range app.ContainerImageMap {
|
||||||
|
split := strings.Split(imageName, ":")
|
||||||
|
split[0], _ = strings.CutPrefix(split[0], image2.CmiiHarborPrefix)
|
||||||
|
srsMap[split[0]] = split[1]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return backendMap, frontendMap, srsMap
|
||||||
|
}
|
||||||
|
|
||||||
|
func BackupAllCmiiDeploymentToList(cmiiEnv string, completePrefix bool) (allCmiiImageList []string) {
|
||||||
|
backendMap, frontendMap, srsMap := BackupAllCmiiDeploymentToMap(cmiiEnv)
|
||||||
|
allImageMap := make(map[string]string, len(backendMap)+len(frontendMap)+len(srsMap))
|
||||||
|
for name, tag := range backendMap {
|
||||||
|
allImageMap[name] = tag
|
||||||
|
}
|
||||||
|
for name, tag := range frontendMap {
|
||||||
|
allImageMap[name] = tag
|
||||||
|
}
|
||||||
|
for name, tag := range srsMap {
|
||||||
|
allImageMap[name] = tag
|
||||||
|
}
|
||||||
|
|
||||||
|
for name, tag := range allImageMap {
|
||||||
|
if completePrefix {
|
||||||
|
allCmiiImageList = append(allCmiiImageList, image2.CmiiHarborPrefix+name+":"+tag)
|
||||||
|
} else {
|
||||||
|
allCmiiImageList = append(allCmiiImageList, name+":"+tag)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return allCmiiImageList
|
||||||
|
}
|
||||||
|
|
||||||
|
func BackUpAllCmiiAppImageNameFromEnv(cmiiEnv string) {
|
||||||
|
|
||||||
|
DefaultCmiiOperator.changeOperatorEnv(cmiiEnv)
|
||||||
|
//filePath := "C:\\Users\\wddsh\\Documents\\IdeaProjects\\ProjectOctopus\\cmii_operator\\log\\images-" + DefaultCmiiOperator.CurrentNamespace + "-" + utils.TimeSplitFormatString() + ".txt"
|
||||||
|
filePath := "/home/wdd/IdeaProjects/ProjectOctopus/agent-operator/log/images-" + DefaultCmiiOperator.CurrentNamespace + "-" + utils.TimeSplitFormatString() + ".txt"
|
||||||
|
|
||||||
|
only := make(map[string]string, 150)
|
||||||
|
// front
|
||||||
|
utils.AppendContentToFile("---\n", filePath)
|
||||||
|
for key, value := range d_app.CmiiFrontendAppMap {
|
||||||
|
_, ok := only[key]
|
||||||
|
if !ok {
|
||||||
|
deploy := DefaultCmiiOperator.DeploymentOneInterface(cmiiEnv, key)
|
||||||
|
if deploy != nil {
|
||||||
|
only[key] = value
|
||||||
|
utils.AppendContentToFile(deploy.Image+"\n", filePath)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
utils.AppendContentToFile("---\n", filePath)
|
||||||
|
for key, value := range d_app.CmiiBackendAppMap {
|
||||||
|
_, ok := only[key]
|
||||||
|
if !ok {
|
||||||
|
deploy := DefaultCmiiOperator.DeploymentOneInterface(cmiiEnv, key)
|
||||||
|
if deploy != nil {
|
||||||
|
only[key] = value
|
||||||
|
utils.AppendContentToFile(deploy.Image+"\n", filePath)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// backend
|
||||||
|
utils.AppendContentToFile("---\n", filePath)
|
||||||
|
// gis server
|
||||||
|
for key, value := range d_app.CmiiGISAppMap {
|
||||||
|
_, ok := only[key]
|
||||||
|
if !ok {
|
||||||
|
deploy := DefaultCmiiOperator.DeploymentOneInterface(cmiiEnv, key)
|
||||||
|
if deploy != nil {
|
||||||
|
only[key] = value
|
||||||
|
utils.AppendContentToFile(deploy.Image+"\n", filePath)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// srs
|
||||||
|
utils.AppendContentToFile("---\n", filePath)
|
||||||
|
for key, value := range d_app.CmiiSrsAppMap {
|
||||||
|
_, ok := only[key]
|
||||||
|
if !ok {
|
||||||
|
var app *config.CmiiDeploymentInterface
|
||||||
|
if strings.Contains(value, "deployment") {
|
||||||
|
app = DefaultCmiiOperator.DeploymentOneInterface(cmiiEnv, key)
|
||||||
|
if app != nil {
|
||||||
|
only[key] = value
|
||||||
|
utils.AppendContentToFile(app.Image+"\n", filePath)
|
||||||
|
}
|
||||||
|
} else if strings.Contains(value, "state") {
|
||||||
|
app = DefaultCmiiOperator.StatefulSetOneInterface(cmiiEnv, key)
|
||||||
|
if app != nil {
|
||||||
|
only[key] = value
|
||||||
|
for _, imageName := range app.ContainerImageMap {
|
||||||
|
utils.AppendContentToFile(imageName+"\n", filePath)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
utils.AppendContentToFile("---\n", filePath)
|
||||||
|
}
|
||||||
|
|
||||||
|
func FilterAllCmiiAppStrict(source []config.CmiiDeploymentInterface) (result []config.CmiiDeploymentInterface) {
|
||||||
|
|
||||||
|
for _, c := range source {
|
||||||
|
_, ok := d_app.CmiiBackendAppMap[c.ContainerName]
|
||||||
|
if !ok {
|
||||||
|
_, ok = d_app.CmiiFrontendAppMap[c.ContainerName]
|
||||||
|
if !ok {
|
||||||
|
log.WarnF("[FilterAllCmiiAppStrict] - [%s] not cmii pod !", c.ContainerName)
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
result = append(result, c)
|
||||||
|
}
|
||||||
|
|
||||||
|
return result
|
||||||
|
}
|
||||||
|
|
||||||
|
func FilterAllCmiiAppSoft(source []config.CmiiDeploymentInterface) (result []config.CmiiDeploymentInterface) {
|
||||||
|
|
||||||
|
for _, c := range source {
|
||||||
|
if strings.Contains(c.ContainerName, "redis") {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
if strings.Contains(c.ContainerName, "emqxs") {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
if strings.Contains(c.ContainerName, "rabbitmq") {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
if strings.Contains(c.ContainerName, "nacos") {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
if strings.Contains(c.ContainerName, "oss") {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
if strings.Contains(c.ContainerName, "minio") {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
if strings.HasPrefix(c.ContainerName, "nfs") {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
if strings.HasPrefix(c.ContainerName, "operator") {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
if strings.HasPrefix(c.ContainerName, "proxy") {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
|
result = append(result, c)
|
||||||
|
}
|
||||||
|
|
||||||
|
return result
|
||||||
|
}
|
||||||
|
|
||||||
|
func FilterAllCmiiPodStrict(podList []config.CmiiPodInterface) (result []config.CmiiPodInterface) {
|
||||||
|
for _, c := range podList {
|
||||||
|
_, ok := d_app.CmiiBackendAppMap[c.ContainerName]
|
||||||
|
if !ok {
|
||||||
|
_, ok = d_app.CmiiFrontendAppMap[c.ContainerName]
|
||||||
|
if !ok {
|
||||||
|
log.WarnF("[FilterAllCmiiPodStrict] - [%s] not cmii pod !", c.ContainerName)
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
}
|
||||||
|
result = append(result, c)
|
||||||
|
}
|
||||||
|
|
||||||
|
return result
|
||||||
|
}
|
||||||
|
|
||||||
|
func FilterAllCmiiPodSoft(podList []config.CmiiPodInterface) (result []config.CmiiPodInterface) {
|
||||||
|
for _, c := range podList {
|
||||||
|
if strings.Contains(c.ContainerName, "redis") {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
if strings.Contains(c.ContainerName, "emqxs") {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
if strings.Contains(c.ContainerName, "rabbitmq") {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
if strings.Contains(c.ContainerName, "nacos") {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
if strings.Contains(c.ContainerName, "oss") {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
if strings.Contains(c.ContainerName, "minio") {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
if strings.HasPrefix(c.ContainerName, "nfs") {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
if strings.HasPrefix(c.ContainerName, "operator") {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
if strings.HasPrefix(c.ContainerName, "proxy") {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
if strings.HasPrefix(c.ContainerName, "cleanlog") {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
|
result = append(result, c)
|
||||||
|
}
|
||||||
|
|
||||||
|
return result
|
||||||
|
}
|
||||||
|
|
||||||
|
func FilterAllCmiiNodeSoft(nodeList []config.CmiiNodeInterface) (result []config.CmiiNodeInterface) {
|
||||||
|
|
||||||
|
for _, nodeInterface := range nodeList {
|
||||||
|
|
||||||
|
if strings.HasPrefix(nodeInterface.Name, "ai") {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
|
if strings.HasPrefix(nodeInterface.Name, "35") {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
|
result = append(result, nodeInterface)
|
||||||
|
}
|
||||||
|
|
||||||
|
return result
|
||||||
|
}
|
||||||
|
|
||||||
|
// AppNameBelongsToCmiiImage 根据CmiiBackendAppMap CmiiFrontendAppMap判断一个appName是否属于CMII
|
||||||
|
func AppNameBelongsToCmiiImage(appName string) bool {
|
||||||
|
_, ok := d_app.CmiiBackendAppMap[appName]
|
||||||
|
if !ok {
|
||||||
|
_, ok = d_app.CmiiFrontendAppMap[appName]
|
||||||
|
if !ok {
|
||||||
|
log.WarnF("[AppNameBelongsToCmiiImage] - [%s] not cmii app !", appName)
|
||||||
|
return false
|
||||||
|
} else {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
315
agent-operator/CmiiK8sHigherOperator_test.go
Normal file
315
agent-operator/CmiiK8sHigherOperator_test.go
Normal file
@@ -0,0 +1,315 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"fmt"
|
||||||
|
"strconv"
|
||||||
|
"testing"
|
||||||
|
"time"
|
||||||
|
"wdd.io/agent-common/assert"
|
||||||
|
"wdd.io/agent-common/pusher"
|
||||||
|
"wdd.io/agent-common/utils"
|
||||||
|
"wdd.io/agent-operator/config"
|
||||||
|
)
|
||||||
|
|
||||||
|
var CmiiDevNamespaceList = []string{
|
||||||
|
"uavcloud-dev",
|
||||||
|
"uavcloud-devflight",
|
||||||
|
"uavcloud-devoperation",
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestFindAppNotHealthyOrRestartCountGreaterThanN(t *testing.T) {
|
||||||
|
|
||||||
|
deploymentRestartCountGreaterThanN := FindAppNotHealthyOrRestartCountGreaterThanN("devflight", 10)
|
||||||
|
deploymentRestartCountGreaterThanN = FilterAllCmiiAppSoft(deploymentRestartCountGreaterThanN)
|
||||||
|
|
||||||
|
for _, deploymentInterface := range deploymentRestartCountGreaterThanN {
|
||||||
|
println()
|
||||||
|
utils.BeautifulPrint(deploymentInterface)
|
||||||
|
println()
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestFindDeploymentReplicasSmallerThanN(t *testing.T) {
|
||||||
|
|
||||||
|
deploymentReplicasSmallerThanN := FindDeploymentReplicasSmallerThanN("devflight", 0)
|
||||||
|
|
||||||
|
for _, deploymentInterface := range deploymentReplicasSmallerThanN {
|
||||||
|
println()
|
||||||
|
utils.BeautifulPrint(deploymentInterface)
|
||||||
|
println()
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestFindCmiiMiddlewarePodInterface(t *testing.T) {
|
||||||
|
middlewarePodInterface := FindCmiiMiddlewarePodInterface(config.Integration)
|
||||||
|
|
||||||
|
for _, middlePod := range middlewarePodInterface {
|
||||||
|
println()
|
||||||
|
utils.BeautifulPrint(middlePod)
|
||||||
|
println()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestRollBackCmiiDeploymentFromUpdateLog(t *testing.T) {
|
||||||
|
updateLog := RollBackCmiiDeploymentFromUpdateLog("2024-01-10-14-37-07 uavcloud-devflight cmii-uav-depotautoreturn 12345678 123sdsa45678")
|
||||||
|
|
||||||
|
assert.Equal(t, updateLog, true, "roll back from update log failed !")
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestRestartCmiiBackendDeployment(t *testing.T) {
|
||||||
|
|
||||||
|
RestartCmiiBackendDeployment("dev")
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestRestartCmiiFrontendDeployment(t *testing.T) {
|
||||||
|
RestartCmiiFrontendDeployment("dev")
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestFindDeploymentNotHealthy(t *testing.T) {
|
||||||
|
|
||||||
|
for _, devNamespace := range CmiiDevNamespaceList {
|
||||||
|
notHealthy := FindDeploymentNotHealthy(devNamespace)
|
||||||
|
notHealthy = FilterAllCmiiAppSoft(notHealthy)
|
||||||
|
for _, deploymentInterface := range notHealthy {
|
||||||
|
utils.BeautifulPrint(deploymentInterface)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestFindAllNodeNotHealthy(t *testing.T) {
|
||||||
|
start := time.Now()
|
||||||
|
allNodeNotHealthy := FindAllNodeNotHealthy()
|
||||||
|
elapsed := time.Since(start).Milliseconds()
|
||||||
|
fmt.Printf("执行耗时: %d ms\n", elapsed)
|
||||||
|
|
||||||
|
allNodeNotHealthy = FilterAllCmiiNodeSoft(allNodeNotHealthy)
|
||||||
|
|
||||||
|
assert.Equal(t, len(allNodeNotHealthy), 0, "have unhealthy pod !")
|
||||||
|
|
||||||
|
for _, nodeInterface := range allNodeNotHealthy {
|
||||||
|
println()
|
||||||
|
utils.BeautifulPrint(nodeInterface)
|
||||||
|
println()
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestFindPodNotHealthy(t *testing.T) {
|
||||||
|
|
||||||
|
podNotHealthy := FindPodNotHealthy("devfl")
|
||||||
|
podNotHealthy = FilterAllCmiiPodSoft(podNotHealthy)
|
||||||
|
|
||||||
|
for _, podInterface := range podNotHealthy {
|
||||||
|
t.Logf("[%s] [%s]", podInterface.Name, podInterface.PodPhase)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestFindPodNotHealthy_And_Delete(t *testing.T) {
|
||||||
|
podNotHealthy := FindPodNotHealthy("devf")
|
||||||
|
podNotHealthy = FilterAllCmiiPodSoft(podNotHealthy)
|
||||||
|
|
||||||
|
for _, podInterface := range podNotHealthy {
|
||||||
|
t.Logf("[%s] [%s]", podInterface.Name, podInterface.PodPhase)
|
||||||
|
podDelete := DefaultCmiiOperator.PodDelete(podInterface.Namespace, podInterface.Name)
|
||||||
|
|
||||||
|
assert.Equal(t, podDelete, true, "delete of ", podInterface.Namespace, podInterface.Name, " failed !")
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestFilterAllCmiiAppStrict(t *testing.T) {
|
||||||
|
allInterface := DefaultCmiiOperator.DeploymentAllInterface("devflight")
|
||||||
|
FilterAllCmiiAppStrict(allInterface)
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestRestartDeploymentFromList(t *testing.T) {
|
||||||
|
allInterface := DefaultCmiiOperator.DeploymentAllInterface("devflight")
|
||||||
|
allInterface = FilterAllCmiiAppSoft(allInterface)
|
||||||
|
|
||||||
|
RestartDeploymentFromList(allInterface)
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestBackupAllCmiiDeploymentToMap(t *testing.T) {
|
||||||
|
|
||||||
|
backendMap, frontendMap, srsMap := BackupAllCmiiDeploymentToMap(config.Demo)
|
||||||
|
|
||||||
|
utils.BeautifulPrint(backendMap)
|
||||||
|
utils.BeautifulPrint(frontendMap)
|
||||||
|
utils.BeautifulPrint(srsMap)
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestBackupAllCmiiDeploymentToList(t *testing.T) {
|
||||||
|
allCmiiImageList := BackupAllCmiiDeploymentToList(config.Demo, true)
|
||||||
|
|
||||||
|
utils.BeautifulPrint(allCmiiImageList)
|
||||||
|
}
|
||||||
|
|
||||||
|
// 直接更新DEMO的Tag,实现DEMO更新
|
||||||
|
func TestUpdateCmiiImageTagFromNameTagMap(t *testing.T) {
|
||||||
|
|
||||||
|
backendMap := map[string]string{
|
||||||
|
"cmii-admin-data": "6.0.0",
|
||||||
|
"cmii-admin-gateway": "6.0.0",
|
||||||
|
"cmii-admin-user": "6.0.0",
|
||||||
|
"cmii-open-gateway": "6.0.0",
|
||||||
|
"cmii-suav-supervision": "6.0.0",
|
||||||
|
"cmii-uav-airspace": "6.0.0",
|
||||||
|
"cmii-uav-alarm": "6.0.0",
|
||||||
|
"cmii-uav-brain": "6.0.0",
|
||||||
|
"cmii-uav-cloud-live": "6.0.0",
|
||||||
|
"cmii-uav-cms": "6.0.0",
|
||||||
|
"cmii-uav-data-post-process": "6.0.0",
|
||||||
|
"cmii-uav-developer": "6.0.0",
|
||||||
|
"cmii-uav-device": "6.0.0",
|
||||||
|
"cmii-uav-emergency": "6.0.0",
|
||||||
|
"cmii-uav-gateway": "6.0.0",
|
||||||
|
"cmii-uav-gis-server": "6.0.0",
|
||||||
|
"cmii-uav-industrial-portfolio": "6.0.0",
|
||||||
|
"cmii-uav-integration": "6.0.0",
|
||||||
|
"cmii-uav-logger": "6.0.0",
|
||||||
|
"cmii-uav-material-warehouse": "6.0.0",
|
||||||
|
"cmii-uav-mission": "6.0.0",
|
||||||
|
"cmii-uav-mqtthandler": "6.0.0",
|
||||||
|
"cmii-uav-notice": "6.0.0",
|
||||||
|
"cmii-uav-oauth": "6.0.0",
|
||||||
|
"cmii-uav-process": "6.0.0",
|
||||||
|
"cmii-uav-surveillance": "6.0.0",
|
||||||
|
"cmii-uav-threedsimulation": "6.0.0",
|
||||||
|
"cmii-uav-tower": "6.0.0",
|
||||||
|
"cmii-uav-user": "6.0.0",
|
||||||
|
"cmii-uav-waypoint": "6.0.0",
|
||||||
|
"cmii-uav-sense-adapter": "6.0.0",
|
||||||
|
"cmii-uas-lifecycle": "6.0.0",
|
||||||
|
"cmii-uas-gateway": "6.0.0",
|
||||||
|
}
|
||||||
|
|
||||||
|
frontendMap := map[string]string{
|
||||||
|
"cmii-suav-platform-supervision": "6.0.0",
|
||||||
|
"cmii-suav-platform-supervisionh5": "6.0.0",
|
||||||
|
"cmii-uav-platform": "6.0.0",
|
||||||
|
"cmii-uav-platform-media": "6.0.0",
|
||||||
|
"cmii-uav-platform-ai-brain": "6.0.0",
|
||||||
|
"cmii-uav-platform-cms-portal": "6.0.0",
|
||||||
|
"cmii-uav-platform-armypeople": "6.0.0",
|
||||||
|
"cmii-uav-platform-mws": "6.0.0",
|
||||||
|
"cmii-uav-platform-oms": "6.0.0",
|
||||||
|
"cmii-uav-platform-open": "6.0.0",
|
||||||
|
"cmii-uav-platform-securityh5": "6.0.0",
|
||||||
|
"cmii-uav-platform-share": "6.0.0",
|
||||||
|
"cmii-uav-platform-uasms": "6.0.0",
|
||||||
|
"cmii-uav-platform-uas": "6.0.0",
|
||||||
|
//"cmii-uav-platform-base": "5.7.0",
|
||||||
|
//"cmii-uav-platform-detection": "5.7.0",
|
||||||
|
//"cmii-uav-platform-emergency-rescue": "5.7.0",
|
||||||
|
//"cmii-uav-platform-logistics": "5.7.0",
|
||||||
|
//"cmii-uav-platform-multiterminal": "5.7.0",
|
||||||
|
//"cmii-uav-platform-seniclive": "5.7.0",
|
||||||
|
//"cmii-uav-platform-splice": "5.7.0",
|
||||||
|
//"cmii-uav-platform-threedsimulation": "5.7.0",
|
||||||
|
//"cmii-uav-platform-visualization": "5.7.0",
|
||||||
|
//"cmii-uav-platform-security": "4.1.6",
|
||||||
|
}
|
||||||
|
|
||||||
|
result := UpdateCmiiImageTagFromNameTagMap(config.Demo, backendMap)
|
||||||
|
utils.BeautifulPrint(result)
|
||||||
|
|
||||||
|
result = UpdateCmiiImageTagFromNameTagMap(config.Demo, frontendMap)
|
||||||
|
utils.BeautifulPrint(result)
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestScaleCmiiFrontendDeploymentToDesiredReplicas(t *testing.T) {
|
||||||
|
ScaleCmiiFrontendDeploymentToDesiredReplicas(config.Dev, 0)
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestScaleCmiiBackendDeploymentToDesiredReplicas(t *testing.T) {
|
||||||
|
ScaleCmiiBackendDeploymentToDesiredReplicas(config.Dev, 0)
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestBackupAllDeploymentFromEnv(t *testing.T) {
|
||||||
|
|
||||||
|
BackupAllDeploymentFromEnvToFile(config.Demo)
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestBackUpAllCmiiAppImageNameFromEnv(t *testing.T) {
|
||||||
|
|
||||||
|
BackUpAllCmiiAppImageNameFromEnv(config.Demo)
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestRestartCmiiDeployment(t *testing.T) {
|
||||||
|
cmiiEnv := config.DevOperation
|
||||||
|
appName := "cmii-uav-mqtthandler"
|
||||||
|
|
||||||
|
kill := DefaultCmiiOperator.DeploymentRestartByKill(cmiiEnv, appName)
|
||||||
|
assert.Equal(t, kill, true, "have unhealthy pod !")
|
||||||
|
|
||||||
|
check := DefaultCmiiOperator.DeploymentStatusCheck(cmiiEnv, appName, 180)
|
||||||
|
assert.Equal(t, check, true, "DeploymentStatusCheck failed !")
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestUpdateCmiiDeploymentImageTag(t *testing.T) {
|
||||||
|
|
||||||
|
//计算20:00的时间
|
||||||
|
|
||||||
|
now := time.Now()
|
||||||
|
|
||||||
|
targetTime := time.Date(now.Year(), now.Month(), now.Day(), 14, 43, 00, 0, now.Location())
|
||||||
|
|
||||||
|
duration := time.Duration(0)
|
||||||
|
|
||||||
|
if !now.After(targetTime) {
|
||||||
|
// 计算到20:00的剩余时间
|
||||||
|
duration = targetTime.Sub(now)
|
||||||
|
} else {
|
||||||
|
// 如果当前时间已经过了20:00,那么就跳到下一天
|
||||||
|
//targetTime = targetTime.Add(24 * time.Hour)
|
||||||
|
}
|
||||||
|
|
||||||
|
fmt.Println(duration)
|
||||||
|
|
||||||
|
// 等待到20:00
|
||||||
|
//time.Sleep(duration)
|
||||||
|
|
||||||
|
cmiiEnv := config.Demo
|
||||||
|
|
||||||
|
appNameTagMap := map[string]string{
|
||||||
|
//"cmii-uas-lifecycle": "6.1.0-20241125-112901",
|
||||||
|
"cmii-uav-platform": "6.1.0-20241125-120201",
|
||||||
|
}
|
||||||
|
|
||||||
|
for appName, newTag := range appNameTagMap {
|
||||||
|
ok, oldImageTag, newImageTag := UpdateCmiiDeploymentImageTag(cmiiEnv, appName, newTag)
|
||||||
|
|
||||||
|
if !ok {
|
||||||
|
log.ErrorF("update image tag failed !")
|
||||||
|
UpdateCmiiDeploymentImageTag(cmiiEnv, appName, oldImageTag)
|
||||||
|
}
|
||||||
|
utils.SplitLinePrint()
|
||||||
|
|
||||||
|
check := DefaultCmiiOperator.DeploymentStatusCheck(cmiiEnv, appName, 300)
|
||||||
|
assert.Equal(t, check, true, "deployment run failed!")
|
||||||
|
if !check {
|
||||||
|
UpdateCmiiDeploymentImageTag(cmiiEnv, appName, oldImageTag)
|
||||||
|
}
|
||||||
|
|
||||||
|
deploy := DefaultCmiiOperator.DeploymentOneInterface(cmiiEnv, appName)
|
||||||
|
|
||||||
|
// push message
|
||||||
|
message := pusher.CmiiUpdateMessage{
|
||||||
|
Namespace: cmiiEnv,
|
||||||
|
AppName: appName,
|
||||||
|
FromTag: oldImageTag,
|
||||||
|
ToTag: newImageTag,
|
||||||
|
Replicas: strconv.FormatInt(int64(deploy.Replicas), 10),
|
||||||
|
DeployStatus: check,
|
||||||
|
}
|
||||||
|
message.SendMessage()
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
1698
agent-operator/CmiiK8sOperator.go
Executable file → Normal file
1698
agent-operator/CmiiK8sOperator.go
Executable file → Normal file
File diff suppressed because it is too large
Load Diff
558
agent-operator/CmiiK8sOperator_test.go
Executable file → Normal file
558
agent-operator/CmiiK8sOperator_test.go
Executable file → Normal file
@@ -1,313 +1,321 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"bufio"
|
||||||
"fmt"
|
"fmt"
|
||||||
"strconv"
|
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
"wdd.io/agent-common/assert"
|
"wdd.io/agent-common/assert"
|
||||||
"wdd.io/agent-common/pusher"
|
|
||||||
"wdd.io/agent-common/utils"
|
"wdd.io/agent-common/utils"
|
||||||
|
"wdd.io/agent-operator/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
var CmiiDevNamespaceList = []string{
|
func TestCmiiK8sOperator_DeploymentAll(t *testing.T) {
|
||||||
"uavcloud-dev",
|
|
||||||
"uavcloud-devflight",
|
start := time.Now()
|
||||||
"uavcloud-devoperation",
|
deploymentList := DefaultCmiiOperator.DeploymentAll("devflight")
|
||||||
|
elapsed := time.Since(start).Milliseconds()
|
||||||
|
fmt.Printf("执行耗时: %d ms\n", elapsed)
|
||||||
|
|
||||||
|
var nameList []string
|
||||||
|
|
||||||
|
count := 1
|
||||||
|
for _, deployment := range deploymentList {
|
||||||
|
if deployment.Spec.Replicas != nil {
|
||||||
|
count++
|
||||||
|
}
|
||||||
|
nameList = append(nameList, deployment.Name)
|
||||||
|
}
|
||||||
|
|
||||||
|
t.Logf("deployment list lenght is => %d", count)
|
||||||
|
t.Logf("deployment name list are => %d", count)
|
||||||
|
|
||||||
|
utils.BeautifulPrint(nameList)
|
||||||
|
//for _, deployment := range deploymentList {
|
||||||
|
// utils.BeautifulPrint(deployment)
|
||||||
|
// println()
|
||||||
|
//}
|
||||||
|
|
||||||
|
}
|
||||||
|
func TestCmiiK8sOperator_DeploymentAllInterface(t *testing.T) {
|
||||||
|
|
||||||
|
start := time.Now()
|
||||||
|
deploymentList := DefaultCmiiOperator.DeploymentAllInterface("devflight")
|
||||||
|
elapsed := time.Since(start).Milliseconds()
|
||||||
|
fmt.Printf("执行耗时: %d ms\n", elapsed)
|
||||||
|
|
||||||
|
t.Logf("deployment list lenght is => %d", len(deploymentList))
|
||||||
|
|
||||||
|
for _, deployment := range deploymentList {
|
||||||
|
utils.BeautifulPrint(deployment)
|
||||||
|
println()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestFindAppNotHealthyOrRestartCountGreaterThanN(t *testing.T) {
|
func TestCmiiK8sOperator_DeploymentFizz(t *testing.T) {
|
||||||
|
|
||||||
deploymentRestartCountGreaterThanN := FindAppNotHealthyOrRestartCountGreaterThanN("devflight", 10)
|
start := time.Now()
|
||||||
deploymentRestartCountGreaterThanN = FilterAllCmiiAppSoft(deploymentRestartCountGreaterThanN)
|
deploymentFizz := DefaultCmiiOperator.DeploymentFizz("int", "cmii-suav-supervision")
|
||||||
|
elapsed := time.Since(start).Milliseconds()
|
||||||
|
fmt.Printf("执行耗时: %d ms\n", elapsed)
|
||||||
|
|
||||||
for _, deploymentInterface := range deploymentRestartCountGreaterThanN {
|
t.Logf("deployment list lenght is => %d", len(deploymentFizz))
|
||||||
|
|
||||||
|
cmiiDeploymentInterface := config.CmiiDeploymentInterface{}
|
||||||
|
for _, pod := range deploymentFizz {
|
||||||
|
convert := cmiiDeploymentInterface.Convert(pod)
|
||||||
|
utils.BeautifulPrint(convert)
|
||||||
|
|
||||||
|
utils.BeautifulPrint(pod)
|
||||||
|
}
|
||||||
|
|
||||||
|
// elastic search
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestCmiiK8sOperator_DeploymentScale(t *testing.T) {
|
||||||
|
start := time.Now()
|
||||||
|
|
||||||
|
DefaultCmiiOperator.DeploymentScale(config.Demo, "cmii-uav-industrial-portfolio", 1)
|
||||||
|
elapsed := time.Since(start).Milliseconds()
|
||||||
|
fmt.Printf("执行耗时: %d ms\n", elapsed)
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestCmiiK8sOperator_DeploymentUpdateTag(t *testing.T) {
|
||||||
|
|
||||||
|
start := time.Now()
|
||||||
|
DefaultCmiiOperator.DeploymentUpdateTag("Demo", "cmii-uav-gateway", "5.7.0")
|
||||||
|
elapsed := time.Since(start).Milliseconds()
|
||||||
|
fmt.Printf("执行耗时: %d ms\n", elapsed)
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestCmiiK8sOperator_DeploymentRestart(t *testing.T) {
|
||||||
|
|
||||||
|
cmiiEnv := config.Integration
|
||||||
|
appName := "cmii-uav-data-post-process"
|
||||||
|
|
||||||
|
DefaultCmiiOperator.DeploymentRestart(cmiiEnv, appName)
|
||||||
|
|
||||||
|
utils.SplitLinePrint()
|
||||||
|
|
||||||
|
check := DefaultCmiiOperator.DeploymentStatusCheck(cmiiEnv, appName, 180)
|
||||||
|
assert.Equal(t, check, true, "deployment run failed!")
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestCmiiK8sOperator_DeploymentRestartByKill(t *testing.T) {
|
||||||
|
cmiiEnv := "Demo"
|
||||||
|
appName := "cmii-uav-platform"
|
||||||
|
|
||||||
|
kill := DefaultCmiiOperator.DeploymentRestartByKill(cmiiEnv, appName)
|
||||||
|
assert.Equal(t, kill, true, "deployment restart by kill failed !")
|
||||||
|
|
||||||
|
utils.SplitLinePrint()
|
||||||
|
|
||||||
|
check := DefaultCmiiOperator.DeploymentStatusCheck(cmiiEnv, appName, 180)
|
||||||
|
assert.Equal(t, check, true, "deployment run failed!")
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestCmiiK8sOperator_DeploymentOneInterface(t *testing.T) {
|
||||||
|
start := time.Now()
|
||||||
|
deploy := DefaultCmiiOperator.DeploymentOneInterface("devflight", "cmii-uav-depotautoreturn")
|
||||||
|
elapsed := time.Since(start).Milliseconds()
|
||||||
|
fmt.Printf("执行耗时: %d ms\n", elapsed)
|
||||||
|
|
||||||
|
utils.BeautifulPrint(*deploy)
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestCmiiK8sOperator_ReplicaSetExists(t *testing.T) {
|
||||||
|
|
||||||
|
cmiiEnv := "uavcloud-devflight"
|
||||||
|
appName := "cmii-admin-data-bf8f87cb7"
|
||||||
|
|
||||||
|
exists := DefaultCmiiOperator.ReplicaSetExists(cmiiEnv, appName)
|
||||||
|
|
||||||
|
utils.BeautifulPrint(*exists)
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestCmiiK8sOperator_ReplicaSetByAppName(t *testing.T) {
|
||||||
|
|
||||||
|
cmiiEnv := "uavcloud-devflight"
|
||||||
|
appName := "cmii-admin-data"
|
||||||
|
|
||||||
|
exists := DefaultCmiiOperator.ReplicaSetByAppName(cmiiEnv, appName)
|
||||||
|
|
||||||
|
for _, replicaSet := range exists {
|
||||||
|
utils.BeautifulPrint(replicaSet)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestCmiiK8sOperator_PodAll(t *testing.T) {
|
||||||
|
start := time.Now()
|
||||||
|
podList := DefaultCmiiOperator.PodAll("devflight")
|
||||||
|
elapsed := time.Since(start).Milliseconds()
|
||||||
|
fmt.Printf("执行耗时: %d ms\n", elapsed)
|
||||||
|
|
||||||
|
for _, pod := range podList {
|
||||||
println()
|
println()
|
||||||
utils.BeautifulPrint(deploymentInterface)
|
utils.BeautifulPrint(pod)
|
||||||
|
println()
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestCmiiK8sOperator_PodFizz(t *testing.T) {
|
||||||
|
start := time.Now()
|
||||||
|
podList := DefaultCmiiOperator.PodFizz("devflight", "cmii-uav-data-post-process")
|
||||||
|
elapsed := time.Since(start).Milliseconds()
|
||||||
|
fmt.Printf("执行耗时: %d ms\n", elapsed)
|
||||||
|
t.Logf("pod list lenght is => %d", len(podList))
|
||||||
|
|
||||||
|
cmiiPodInterface := config.CmiiPodInterface{}
|
||||||
|
for _, pod := range podList {
|
||||||
|
println()
|
||||||
|
utils.BeautifulPrint(pod)
|
||||||
|
println()
|
||||||
|
convert := cmiiPodInterface.Convert(pod)
|
||||||
|
utils.BeautifulPrint(convert)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestCmiiK8sOperator_PodByAppName(t *testing.T) {
|
||||||
|
cmiiEnv := "Uat"
|
||||||
|
appName := "cmii-admin-data"
|
||||||
|
|
||||||
|
exists := DefaultCmiiOperator.PodByNodeName(cmiiEnv, appName)
|
||||||
|
|
||||||
|
for _, podInterface := range exists {
|
||||||
|
utils.BeautifulPrint(podInterface)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestCmiiK8sOperator_PodFizz2(t *testing.T) {
|
||||||
|
|
||||||
|
start := time.Now()
|
||||||
|
podList := DefaultCmiiOperator.PodFizz("devflight", "notice")
|
||||||
|
elapsed := time.Since(start).Milliseconds()
|
||||||
|
fmt.Printf("执行耗时: %d ms\n", elapsed)
|
||||||
|
t.Logf("pod list lenght is => %d", len(podList))
|
||||||
|
|
||||||
|
podInterface := config.CmiiPodInterface{}
|
||||||
|
|
||||||
|
for _, pod := range podList {
|
||||||
|
convert := podInterface.Convert(pod)
|
||||||
|
|
||||||
|
println()
|
||||||
|
utils.BeautifulPrint(&convert)
|
||||||
println()
|
println()
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestFindDeploymentReplicasSmallerThanN(t *testing.T) {
|
func TestCmiiK8sOperator_PodByNodeName(t *testing.T) {
|
||||||
|
|
||||||
deploymentReplicasSmallerThanN := FindDeploymentReplicasSmallerThanN("devflight", 0)
|
cmiiEnv := config.DevOperation
|
||||||
|
nodeName := "Dev-master-01"
|
||||||
|
|
||||||
for _, deploymentInterface := range deploymentReplicasSmallerThanN {
|
exists := DefaultCmiiOperator.PodByNodeName(cmiiEnv, nodeName)
|
||||||
println()
|
exists = FilterAllCmiiPodSoft(exists)
|
||||||
utils.BeautifulPrint(deploymentInterface)
|
for _, podInterface := range exists {
|
||||||
println()
|
utils.BeautifulPrint(podInterface)
|
||||||
}
|
|
||||||
|
|
||||||
}
|
if !podInterface.PodStatus {
|
||||||
|
podDelete := DefaultCmiiOperator.PodDelete(podInterface.Namespace, podInterface.Name)
|
||||||
func TestFindCmiiMiddlewarePodInterface(t *testing.T) {
|
assert.Equal(t, podDelete, true, "delete pod failed !")
|
||||||
middlewarePodInterface := FindCmiiMiddlewarePodInterface(integration)
|
|
||||||
|
|
||||||
for _, middlePod := range middlewarePodInterface {
|
|
||||||
println()
|
|
||||||
utils.BeautifulPrint(middlePod)
|
|
||||||
println()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestRollBackCmiiDeploymentFromUpdateLog(t *testing.T) {
|
|
||||||
updateLog := RollBackCmiiDeploymentFromUpdateLog("2024-01-10-14-37-07 uavcloud-devflight cmii-uav-depotautoreturn 12345678 123sdsa45678")
|
|
||||||
|
|
||||||
assert.Equal(t, updateLog, true, "roll back from update log failed !")
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestRestartCmiiBackendDeployment(t *testing.T) {
|
|
||||||
|
|
||||||
RestartCmiiBackendDeployment("dev")
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestRestartCmiiFrontendDeployment(t *testing.T) {
|
|
||||||
RestartCmiiFrontendDeployment("dev")
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestFindDeploymentNotHealthy(t *testing.T) {
|
|
||||||
|
|
||||||
for _, devNamespace := range CmiiDevNamespaceList {
|
|
||||||
notHealthy := FindDeploymentNotHealthy(devNamespace)
|
|
||||||
notHealthy = FilterAllCmiiAppSoft(notHealthy)
|
|
||||||
for _, deploymentInterface := range notHealthy {
|
|
||||||
utils.BeautifulPrint(deploymentInterface)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestFindAllNodeNotHealthy(t *testing.T) {
|
func TestCmiiK8sOperator_NodeCordon(t *testing.T) {
|
||||||
|
cmiiEnv := config.DevOperation
|
||||||
|
nodeName := "Dev-master-01"
|
||||||
|
|
||||||
|
cordon := DefaultCmiiOperator.NodeCordon(cmiiEnv, nodeName)
|
||||||
|
assert.Equal(t, cordon, true, "cordon node failed !")
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestCmiiK8sOperator_NodeUnCordon(t *testing.T) {
|
||||||
|
cmiiEnv := config.DevOperation
|
||||||
|
nodeName := "Dev-06.ecs.io"
|
||||||
|
|
||||||
|
uncordon := DefaultCmiiOperator.NodeUnCordon(cmiiEnv, nodeName)
|
||||||
|
assert.Equal(t, uncordon, true, "uncordon node failed !")
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestCmiiK8sOperator_PodEvictFromNode(t *testing.T) {
|
||||||
|
cmiiEnv := config.DevOperation
|
||||||
|
nodeName := "Dev-04.ecs.io"
|
||||||
|
|
||||||
|
podList := DefaultCmiiOperator.PodEvictFromNode(cmiiEnv, nodeName)
|
||||||
|
|
||||||
|
for _, podInterface := range podList {
|
||||||
|
utils.BeautifulPrint(podInterface)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestCmiiK8sOperator_PodExec(t *testing.T) {
|
||||||
|
|
||||||
|
podList := DefaultCmiiOperator.PodByAppName(config.DevFlight, "cmii-uav-gateway")
|
||||||
|
|
||||||
|
stdout, stderr := DefaultCmiiOperator.PodExec(config.DevFlight, podList[0], []string{
|
||||||
|
"env",
|
||||||
|
})
|
||||||
|
|
||||||
|
scanner := bufio.NewScanner(stdout)
|
||||||
|
|
||||||
|
for scanner.Scan() {
|
||||||
|
// Get the current line
|
||||||
|
line := scanner.Text()
|
||||||
|
|
||||||
|
// Check if the current line contains the search term
|
||||||
|
fmt.Println(line)
|
||||||
|
}
|
||||||
|
utils.SplitLinePrint()
|
||||||
|
|
||||||
|
scanner = bufio.NewScanner(stderr)
|
||||||
|
for scanner.Scan() {
|
||||||
|
// Get the current line
|
||||||
|
line := scanner.Text()
|
||||||
|
|
||||||
|
// Check if the current line contains the search term
|
||||||
|
fmt.Println(line)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestCmiiK8sOperator_DeploymentStatusCheck(t *testing.T) {
|
||||||
|
|
||||||
|
cmiiEnv := "devflight"
|
||||||
|
appName := "cmii-uav-gateway"
|
||||||
|
|
||||||
|
check := DefaultCmiiOperator.DeploymentStatusCheck(cmiiEnv, appName, 180)
|
||||||
|
assert.Equal(t, check, true, "deployment run failed!")
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestCmiiK8sOperator_NodeAll(t *testing.T) {
|
||||||
start := time.Now()
|
start := time.Now()
|
||||||
allNodeNotHealthy := FindAllNodeNotHealthy()
|
nodeList := DefaultCmiiOperator.NodeAll("Dev")
|
||||||
elapsed := time.Since(start).Milliseconds()
|
elapsed := time.Since(start).Milliseconds()
|
||||||
fmt.Printf("执行耗时: %d ms\n", elapsed)
|
fmt.Printf("执行耗时: %d ms\n", elapsed)
|
||||||
|
|
||||||
allNodeNotHealthy = FilterAllCmiiNodeSoft(allNodeNotHealthy)
|
for _, node := range nodeList {
|
||||||
|
|
||||||
assert.Equal(t, len(allNodeNotHealthy), 0, "have unhealthy pod !")
|
println()
|
||||||
|
utils.BeautifulPrint(node)
|
||||||
|
println()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
for _, nodeInterface := range allNodeNotHealthy {
|
func TestCmiiK8sOperator_NodeAllInterface(t *testing.T) {
|
||||||
|
cmiiNodeInterfaces := DefaultCmiiOperator.NodeAllInterface(config.Demo)
|
||||||
|
|
||||||
|
for _, nodeInterface := range cmiiNodeInterfaces {
|
||||||
println()
|
println()
|
||||||
utils.BeautifulPrint(nodeInterface)
|
utils.BeautifulPrint(nodeInterface)
|
||||||
println()
|
println()
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestFindPodNotHealthy(t *testing.T) {
|
|
||||||
|
|
||||||
podNotHealthy := FindPodNotHealthy("devfl")
|
|
||||||
podNotHealthy = FilterAllCmiiPodSoft(podNotHealthy)
|
|
||||||
|
|
||||||
for _, podInterface := range podNotHealthy {
|
|
||||||
t.Logf("[%s] [%s]", podInterface.Name, podInterface.PodPhase)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestFindPodNotHealthy_And_Delete(t *testing.T) {
|
|
||||||
podNotHealthy := FindPodNotHealthy("devf")
|
|
||||||
podNotHealthy = FilterAllCmiiPodSoft(podNotHealthy)
|
|
||||||
|
|
||||||
for _, podInterface := range podNotHealthy {
|
|
||||||
t.Logf("[%s] [%s]", podInterface.Name, podInterface.PodPhase)
|
|
||||||
podDelete := DefaultCmiiOperator.PodDelete(podInterface.Namespace, podInterface.Name)
|
|
||||||
|
|
||||||
assert.Equal(t, podDelete, true, "delete of ", podInterface.Namespace, podInterface.Name, " failed !")
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestFilterAllCmiiAppStrict(t *testing.T) {
|
|
||||||
allInterface := DefaultCmiiOperator.DeploymentAllInterface("devflight")
|
|
||||||
FilterAllCmiiAppStrict(allInterface)
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestRestartDeploymentFromList(t *testing.T) {
|
|
||||||
allInterface := DefaultCmiiOperator.DeploymentAllInterface("devflight")
|
|
||||||
allInterface = FilterAllCmiiAppSoft(allInterface)
|
|
||||||
|
|
||||||
RestartDeploymentFromList(allInterface)
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestBackupAllCmiiDeploymentToMap(t *testing.T) {
|
|
||||||
|
|
||||||
backendMap, frontendMap, srsMap := BackupAllCmiiDeploymentToMap(demo)
|
|
||||||
|
|
||||||
utils.BeautifulPrint(backendMap)
|
|
||||||
utils.BeautifulPrint(frontendMap)
|
|
||||||
utils.BeautifulPrint(srsMap)
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestBackupAllCmiiDeploymentToList(t *testing.T) {
|
|
||||||
allCmiiImageList := BackupAllCmiiDeploymentToList(demo, true)
|
|
||||||
|
|
||||||
utils.BeautifulPrint(allCmiiImageList)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update DEMO by Tag Update
|
|
||||||
func TestUpdateCmiiImageTagFromNameTagMap(t *testing.T) {
|
|
||||||
|
|
||||||
backendMap := map[string]string{
|
|
||||||
"cmii-admin-data": "6.0.0",
|
|
||||||
"cmii-admin-gateway": "6.0.0",
|
|
||||||
"cmii-admin-user": "6.0.0",
|
|
||||||
"cmii-open-gateway": "6.0.0",
|
|
||||||
"cmii-suav-supervision": "6.0.0",
|
|
||||||
"cmii-uav-airspace": "6.0.0",
|
|
||||||
"cmii-uav-alarm": "6.0.0",
|
|
||||||
"cmii-uav-brain": "6.0.0",
|
|
||||||
"cmii-uav-cloud-live": "6.0.0",
|
|
||||||
"cmii-uav-cms": "6.0.0",
|
|
||||||
"cmii-uav-data-post-process": "6.0.0",
|
|
||||||
"cmii-uav-developer": "6.0.0",
|
|
||||||
"cmii-uav-device": "6.0.0",
|
|
||||||
"cmii-uav-emergency": "6.0.0",
|
|
||||||
"cmii-uav-gateway": "6.0.0",
|
|
||||||
"cmii-uav-gis-server": "6.0.0",
|
|
||||||
"cmii-uav-industrial-portfolio": "6.0.0",
|
|
||||||
"cmii-uav-integration": "6.0.0",
|
|
||||||
"cmii-uav-logger": "6.0.0",
|
|
||||||
"cmii-uav-material-warehouse": "6.0.0",
|
|
||||||
"cmii-uav-mission": "6.0.0",
|
|
||||||
"cmii-uav-mqtthandler": "6.0.0",
|
|
||||||
"cmii-uav-notice": "6.0.0",
|
|
||||||
"cmii-uav-oauth": "6.0.0",
|
|
||||||
"cmii-uav-process": "6.0.0",
|
|
||||||
"cmii-uav-surveillance": "6.0.0",
|
|
||||||
"cmii-uav-threedsimulation": "6.0.0",
|
|
||||||
"cmii-uav-tower": "6.0.0",
|
|
||||||
"cmii-uav-user": "6.0.0",
|
|
||||||
"cmii-uav-waypoint": "6.0.0",
|
|
||||||
"cmii-uav-sense-adapter": "6.0.0",
|
|
||||||
"cmii-uas-lifecycle": "6.0.0",
|
|
||||||
"cmii-uas-gateway": "6.0.0",
|
|
||||||
}
|
|
||||||
|
|
||||||
frontendMap := map[string]string{
|
|
||||||
"cmii-suav-platform-supervision": "6.0.0",
|
|
||||||
"cmii-suav-platform-supervisionh5": "6.0.0",
|
|
||||||
"cmii-uav-platform": "6.0.0",
|
|
||||||
"cmii-uav-platform-media": "6.0.0",
|
|
||||||
"cmii-uav-platform-ai-brain": "6.0.0",
|
|
||||||
"cmii-uav-platform-cms-portal": "6.0.0",
|
|
||||||
"cmii-uav-platform-armypeople": "6.0.0",
|
|
||||||
"cmii-uav-platform-mws": "6.0.0",
|
|
||||||
"cmii-uav-platform-oms": "6.0.0",
|
|
||||||
"cmii-uav-platform-open": "6.0.0",
|
|
||||||
"cmii-uav-platform-securityh5": "6.0.0",
|
|
||||||
"cmii-uav-platform-share": "6.0.0",
|
|
||||||
"cmii-uav-platform-uasms": "6.0.0",
|
|
||||||
"cmii-uav-platform-uas": "6.0.0",
|
|
||||||
//"cmii-uav-platform-base": "5.7.0",
|
|
||||||
//"cmii-uav-platform-detection": "5.7.0",
|
|
||||||
//"cmii-uav-platform-emergency-rescue": "5.7.0",
|
|
||||||
//"cmii-uav-platform-logistics": "5.7.0",
|
|
||||||
//"cmii-uav-platform-multiterminal": "5.7.0",
|
|
||||||
//"cmii-uav-platform-seniclive": "5.7.0",
|
|
||||||
//"cmii-uav-platform-splice": "5.7.0",
|
|
||||||
//"cmii-uav-platform-threedsimulation": "5.7.0",
|
|
||||||
//"cmii-uav-platform-visualization": "5.7.0",
|
|
||||||
//"cmii-uav-platform-security": "4.1.6",
|
|
||||||
}
|
|
||||||
|
|
||||||
result := UpdateCmiiImageTagFromNameTagMap(demo, backendMap)
|
|
||||||
utils.BeautifulPrint(result)
|
|
||||||
|
|
||||||
result = UpdateCmiiImageTagFromNameTagMap(demo, frontendMap)
|
|
||||||
utils.BeautifulPrint(result)
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestScaleCmiiFrontendDeploymentToDesiredReplicas(t *testing.T) {
|
|
||||||
ScaleCmiiFrontendDeploymentToDesiredReplicas(dev, 0)
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestScaleCmiiBackendDeploymentToDesiredReplicas(t *testing.T) {
|
|
||||||
ScaleCmiiBackendDeploymentToDesiredReplicas(dev, 0)
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestBackupAllDeploymentFromEnv(t *testing.T) {
|
|
||||||
|
|
||||||
BackupAllDeploymentFromEnvToFile(demo)
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestBackUpAllCmiiAppImageNameFromEnv(t *testing.T) {
|
|
||||||
|
|
||||||
BackUpAllCmiiAppImageNameFromEnv(demo)
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestRestartCmiiDeployment(t *testing.T) {
|
|
||||||
cmiiEnv := integration
|
|
||||||
appName := "cmii-uav-platform"
|
|
||||||
|
|
||||||
kill := DefaultCmiiOperator.DeploymentRestartByKill(cmiiEnv, appName)
|
|
||||||
assert.Equal(t, kill, true, "have unhealthy pod !")
|
|
||||||
|
|
||||||
check := DefaultCmiiOperator.DeploymentStatusCheck(cmiiEnv, appName, 180)
|
|
||||||
assert.Equal(t, check, true, "DeploymentStatusCheck failed !")
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestUpdateCmiiDeploymentImageTag(t *testing.T) {
|
|
||||||
|
|
||||||
//计算20:00的时间
|
|
||||||
|
|
||||||
now := time.Now()
|
|
||||||
|
|
||||||
targetTime := time.Date(now.Year(), now.Month(), now.Day(), 9, 28, 00, 0, now.Location())
|
|
||||||
|
|
||||||
duration := time.Duration(0)
|
|
||||||
|
|
||||||
if !now.After(targetTime) {
|
|
||||||
// 计算到20:00的剩余时间
|
|
||||||
duration = targetTime.Sub(now)
|
|
||||||
} else {
|
|
||||||
// 如果当前时间已经过了20:00,那么就跳到下一天
|
|
||||||
//targetTime = targetTime.Add(24 * time.Hour)
|
|
||||||
}
|
|
||||||
|
|
||||||
fmt.Println(duration)
|
|
||||||
|
|
||||||
// 等待到20:00
|
|
||||||
time.Sleep(duration)
|
|
||||||
|
|
||||||
cmiiEnv := demo
|
|
||||||
|
|
||||||
appNameTagMap := map[string]string{
|
|
||||||
"cmii-uas-lifecycle": "6.0.0-111201",
|
|
||||||
}
|
|
||||||
|
|
||||||
for appName, newTag := range appNameTagMap {
|
|
||||||
ok, oldImageTag, newImageTag := UpdateCmiiDeploymentImageTag(cmiiEnv, appName, newTag)
|
|
||||||
|
|
||||||
if !ok {
|
|
||||||
log.ErrorF("update image tag failed !")
|
|
||||||
UpdateCmiiDeploymentImageTag(cmiiEnv, appName, oldImageTag)
|
|
||||||
}
|
|
||||||
utils.SplitLinePrint()
|
|
||||||
|
|
||||||
check := DefaultCmiiOperator.DeploymentStatusCheck(cmiiEnv, appName, 300)
|
|
||||||
assert.Equal(t, check, true, "deployment run failed!")
|
|
||||||
if !check {
|
|
||||||
UpdateCmiiDeploymentImageTag(cmiiEnv, appName, oldImageTag)
|
|
||||||
}
|
|
||||||
|
|
||||||
deploy := DefaultCmiiOperator.DeploymentOneInterface(cmiiEnv, appName)
|
|
||||||
|
|
||||||
// push message
|
|
||||||
message := pusher.CmiiUpdateMessage{
|
|
||||||
Namespace: cmiiEnv,
|
|
||||||
AppName: appName,
|
|
||||||
FromTag: oldImageTag,
|
|
||||||
ToTag: newImageTag,
|
|
||||||
Replicas: strconv.FormatInt(int64(deploy.Replicas), 10),
|
|
||||||
DeployStatus: check,
|
|
||||||
}
|
|
||||||
message.SendMessage()
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -1,320 +0,0 @@
|
|||||||
package main
|
|
||||||
|
|
||||||
import (
|
|
||||||
"bufio"
|
|
||||||
"fmt"
|
|
||||||
"testing"
|
|
||||||
"time"
|
|
||||||
"wdd.io/agent-common/assert"
|
|
||||||
"wdd.io/agent-common/utils"
|
|
||||||
)
|
|
||||||
|
|
||||||
func TestCmiiK8sOperator_DeploymentAll(t *testing.T) {
|
|
||||||
|
|
||||||
start := time.Now()
|
|
||||||
deploymentList := DefaultCmiiOperator.DeploymentAll("devflight")
|
|
||||||
elapsed := time.Since(start).Milliseconds()
|
|
||||||
fmt.Printf("执行耗时: %d ms\n", elapsed)
|
|
||||||
|
|
||||||
var nameList []string
|
|
||||||
|
|
||||||
count := 1
|
|
||||||
for _, deployment := range deploymentList {
|
|
||||||
if deployment.Spec.Replicas != nil {
|
|
||||||
count++
|
|
||||||
}
|
|
||||||
nameList = append(nameList, deployment.Name)
|
|
||||||
}
|
|
||||||
|
|
||||||
t.Logf("deployment list lenght is => %d", count)
|
|
||||||
t.Logf("deployment name list are => %d", count)
|
|
||||||
|
|
||||||
utils.BeautifulPrint(nameList)
|
|
||||||
//for _, deployment := range deploymentList {
|
|
||||||
// utils.BeautifulPrint(deployment)
|
|
||||||
// println()
|
|
||||||
//}
|
|
||||||
|
|
||||||
}
|
|
||||||
func TestCmiiK8sOperator_DeploymentAllInterface(t *testing.T) {
|
|
||||||
|
|
||||||
start := time.Now()
|
|
||||||
deploymentList := DefaultCmiiOperator.DeploymentAllInterface("devflight")
|
|
||||||
elapsed := time.Since(start).Milliseconds()
|
|
||||||
fmt.Printf("执行耗时: %d ms\n", elapsed)
|
|
||||||
|
|
||||||
t.Logf("deployment list lenght is => %d", len(deploymentList))
|
|
||||||
|
|
||||||
for _, deployment := range deploymentList {
|
|
||||||
utils.BeautifulPrint(deployment)
|
|
||||||
println()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestCmiiK8sOperator_DeploymentFizz(t *testing.T) {
|
|
||||||
|
|
||||||
start := time.Now()
|
|
||||||
deploymentFizz := DefaultCmiiOperator.DeploymentFizz("int", "cmii-suav-supervision")
|
|
||||||
elapsed := time.Since(start).Milliseconds()
|
|
||||||
fmt.Printf("执行耗时: %d ms\n", elapsed)
|
|
||||||
|
|
||||||
t.Logf("deployment list lenght is => %d", len(deploymentFizz))
|
|
||||||
|
|
||||||
cmiiDeploymentInterface := CmiiDeploymentInterface{}
|
|
||||||
for _, pod := range deploymentFizz {
|
|
||||||
convert := cmiiDeploymentInterface.Convert(pod)
|
|
||||||
utils.BeautifulPrint(convert)
|
|
||||||
|
|
||||||
utils.BeautifulPrint(pod)
|
|
||||||
}
|
|
||||||
|
|
||||||
// elastic search
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestCmiiK8sOperator_DeploymentScale(t *testing.T) {
|
|
||||||
start := time.Now()
|
|
||||||
|
|
||||||
DefaultCmiiOperator.DeploymentScale(demo, "cmii-uav-industrial-portfolio", 1)
|
|
||||||
elapsed := time.Since(start).Milliseconds()
|
|
||||||
fmt.Printf("执行耗时: %d ms\n", elapsed)
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestCmiiK8sOperator_DeploymentUpdateTag(t *testing.T) {
|
|
||||||
|
|
||||||
start := time.Now()
|
|
||||||
DefaultCmiiOperator.DeploymentUpdateTag("demo", "cmii-uav-gateway", "5.7.0")
|
|
||||||
elapsed := time.Since(start).Milliseconds()
|
|
||||||
fmt.Printf("执行耗时: %d ms\n", elapsed)
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestCmiiK8sOperator_DeploymentRestart(t *testing.T) {
|
|
||||||
|
|
||||||
cmiiEnv := integration
|
|
||||||
appName := "cmii-uav-data-post-process"
|
|
||||||
|
|
||||||
DefaultCmiiOperator.DeploymentRestart(cmiiEnv, appName)
|
|
||||||
|
|
||||||
utils.SplitLinePrint()
|
|
||||||
|
|
||||||
check := DefaultCmiiOperator.DeploymentStatusCheck(cmiiEnv, appName, 180)
|
|
||||||
assert.Equal(t, check, true, "deployment run failed!")
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestCmiiK8sOperator_DeploymentRestartByKill(t *testing.T) {
|
|
||||||
cmiiEnv := "demo"
|
|
||||||
appName := "cmii-uav-platform"
|
|
||||||
|
|
||||||
kill := DefaultCmiiOperator.DeploymentRestartByKill(cmiiEnv, appName)
|
|
||||||
assert.Equal(t, kill, true, "deployment restart by kill failed !")
|
|
||||||
|
|
||||||
utils.SplitLinePrint()
|
|
||||||
|
|
||||||
check := DefaultCmiiOperator.DeploymentStatusCheck(cmiiEnv, appName, 180)
|
|
||||||
assert.Equal(t, check, true, "deployment run failed!")
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestCmiiK8sOperator_DeploymentOneInterface(t *testing.T) {
|
|
||||||
start := time.Now()
|
|
||||||
deploy := DefaultCmiiOperator.DeploymentOneInterface("devflight", "cmii-uav-depotautoreturn")
|
|
||||||
elapsed := time.Since(start).Milliseconds()
|
|
||||||
fmt.Printf("执行耗时: %d ms\n", elapsed)
|
|
||||||
|
|
||||||
utils.BeautifulPrint(*deploy)
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestCmiiK8sOperator_ReplicaSetExists(t *testing.T) {
|
|
||||||
|
|
||||||
cmiiEnv := "uavcloud-devflight"
|
|
||||||
appName := "cmii-admin-data-bf8f87cb7"
|
|
||||||
|
|
||||||
exists := DefaultCmiiOperator.ReplicaSetExists(cmiiEnv, appName)
|
|
||||||
|
|
||||||
utils.BeautifulPrint(*exists)
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestCmiiK8sOperator_ReplicaSetByAppName(t *testing.T) {
|
|
||||||
|
|
||||||
cmiiEnv := "uavcloud-devflight"
|
|
||||||
appName := "cmii-admin-data"
|
|
||||||
|
|
||||||
exists := DefaultCmiiOperator.ReplicaSetByAppName(cmiiEnv, appName)
|
|
||||||
|
|
||||||
for _, replicaSet := range exists {
|
|
||||||
utils.BeautifulPrint(replicaSet)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestCmiiK8sOperator_PodAll(t *testing.T) {
|
|
||||||
start := time.Now()
|
|
||||||
podList := DefaultCmiiOperator.PodAll("devflight")
|
|
||||||
elapsed := time.Since(start).Milliseconds()
|
|
||||||
fmt.Printf("执行耗时: %d ms\n", elapsed)
|
|
||||||
|
|
||||||
for _, pod := range podList {
|
|
||||||
println()
|
|
||||||
utils.BeautifulPrint(pod)
|
|
||||||
println()
|
|
||||||
break
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestCmiiK8sOperator_PodFizz(t *testing.T) {
|
|
||||||
start := time.Now()
|
|
||||||
podList := DefaultCmiiOperator.PodFizz("devflight", "cmii-uav-data-post-process")
|
|
||||||
elapsed := time.Since(start).Milliseconds()
|
|
||||||
fmt.Printf("执行耗时: %d ms\n", elapsed)
|
|
||||||
t.Logf("pod list lenght is => %d", len(podList))
|
|
||||||
|
|
||||||
cmiiPodInterface := CmiiPodInterface{}
|
|
||||||
for _, pod := range podList {
|
|
||||||
println()
|
|
||||||
utils.BeautifulPrint(pod)
|
|
||||||
println()
|
|
||||||
convert := cmiiPodInterface.Convert(pod)
|
|
||||||
utils.BeautifulPrint(convert)
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestCmiiK8sOperator_PodByAppName(t *testing.T) {
|
|
||||||
cmiiEnv := "uat"
|
|
||||||
appName := "cmii-admin-data"
|
|
||||||
|
|
||||||
exists := DefaultCmiiOperator.PodByNodeName(cmiiEnv, appName)
|
|
||||||
|
|
||||||
for _, podInterface := range exists {
|
|
||||||
utils.BeautifulPrint(podInterface)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestCmiiK8sOperator_PodFizz2(t *testing.T) {
|
|
||||||
|
|
||||||
start := time.Now()
|
|
||||||
podList := DefaultCmiiOperator.PodFizz("devflight", "notice")
|
|
||||||
elapsed := time.Since(start).Milliseconds()
|
|
||||||
fmt.Printf("执行耗时: %d ms\n", elapsed)
|
|
||||||
t.Logf("pod list lenght is => %d", len(podList))
|
|
||||||
|
|
||||||
podInterface := CmiiPodInterface{}
|
|
||||||
|
|
||||||
for _, pod := range podList {
|
|
||||||
convert := podInterface.Convert(pod)
|
|
||||||
|
|
||||||
println()
|
|
||||||
utils.BeautifulPrint(&convert)
|
|
||||||
println()
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestCmiiK8sOperator_PodByNodeName(t *testing.T) {
|
|
||||||
|
|
||||||
cmiiEnv := devOperation
|
|
||||||
nodeName := "dev-master-01"
|
|
||||||
|
|
||||||
exists := DefaultCmiiOperator.PodByNodeName(cmiiEnv, nodeName)
|
|
||||||
exists = FilterAllCmiiPodSoft(exists)
|
|
||||||
for _, podInterface := range exists {
|
|
||||||
utils.BeautifulPrint(podInterface)
|
|
||||||
|
|
||||||
if !podInterface.PodStatus {
|
|
||||||
podDelete := DefaultCmiiOperator.PodDelete(podInterface.Namespace, podInterface.Name)
|
|
||||||
assert.Equal(t, podDelete, true, "delete pod failed !")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestCmiiK8sOperator_NodeCordon(t *testing.T) {
|
|
||||||
cmiiEnv := devOperation
|
|
||||||
nodeName := "dev-master-01"
|
|
||||||
|
|
||||||
cordon := DefaultCmiiOperator.NodeCordon(cmiiEnv, nodeName)
|
|
||||||
assert.Equal(t, cordon, true, "cordon node failed !")
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestCmiiK8sOperator_NodeUnCordon(t *testing.T) {
|
|
||||||
cmiiEnv := devOperation
|
|
||||||
nodeName := "dev-06.ecs.io"
|
|
||||||
|
|
||||||
uncordon := DefaultCmiiOperator.NodeUnCordon(cmiiEnv, nodeName)
|
|
||||||
assert.Equal(t, uncordon, true, "uncordon node failed !")
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestCmiiK8sOperator_PodEvictFromNode(t *testing.T) {
|
|
||||||
cmiiEnv := devOperation
|
|
||||||
nodeName := "dev-04.ecs.io"
|
|
||||||
|
|
||||||
podList := DefaultCmiiOperator.PodEvictFromNode(cmiiEnv, nodeName)
|
|
||||||
|
|
||||||
for _, podInterface := range podList {
|
|
||||||
utils.BeautifulPrint(podInterface)
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestCmiiK8sOperator_PodExec(t *testing.T) {
|
|
||||||
|
|
||||||
podList := DefaultCmiiOperator.PodByAppName(devFlight, "cmii-uav-gateway")
|
|
||||||
|
|
||||||
stdout, stderr := DefaultCmiiOperator.PodExec(devFlight, podList[0], []string{
|
|
||||||
"env",
|
|
||||||
})
|
|
||||||
|
|
||||||
scanner := bufio.NewScanner(stdout)
|
|
||||||
|
|
||||||
for scanner.Scan() {
|
|
||||||
// Get the current line
|
|
||||||
line := scanner.Text()
|
|
||||||
|
|
||||||
// Check if the current line contains the search term
|
|
||||||
fmt.Println(line)
|
|
||||||
}
|
|
||||||
utils.SplitLinePrint()
|
|
||||||
|
|
||||||
scanner = bufio.NewScanner(stderr)
|
|
||||||
for scanner.Scan() {
|
|
||||||
// Get the current line
|
|
||||||
line := scanner.Text()
|
|
||||||
|
|
||||||
// Check if the current line contains the search term
|
|
||||||
fmt.Println(line)
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestCmiiK8sOperator_DeploymentStatusCheck(t *testing.T) {
|
|
||||||
|
|
||||||
cmiiEnv := "devflight"
|
|
||||||
appName := "cmii-uav-gateway"
|
|
||||||
|
|
||||||
check := DefaultCmiiOperator.DeploymentStatusCheck(cmiiEnv, appName, 180)
|
|
||||||
assert.Equal(t, check, true, "deployment run failed!")
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestCmiiK8sOperator_NodeAll(t *testing.T) {
|
|
||||||
start := time.Now()
|
|
||||||
nodeList := DefaultCmiiOperator.NodeAll("dev")
|
|
||||||
elapsed := time.Since(start).Milliseconds()
|
|
||||||
fmt.Printf("执行耗时: %d ms\n", elapsed)
|
|
||||||
|
|
||||||
for _, node := range nodeList {
|
|
||||||
|
|
||||||
println()
|
|
||||||
utils.BeautifulPrint(node)
|
|
||||||
println()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestCmiiK8sOperator_NodeAllInterface(t *testing.T) {
|
|
||||||
cmiiNodeInterfaces := DefaultCmiiOperator.NodeAllInterface("uat")
|
|
||||||
|
|
||||||
for _, nodeInterface := range cmiiNodeInterfaces {
|
|
||||||
println()
|
|
||||||
utils.BeautifulPrint(nodeInterface)
|
|
||||||
println()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
12
agent-operator/config/CmiiEnvConfig.go
Normal file
12
agent-operator/config/CmiiEnvConfig.go
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
package config
|
||||||
|
|
||||||
|
const (
|
||||||
|
Dev = "uavcloud-dev"
|
||||||
|
DevFlight = "uavcloud-devflight"
|
||||||
|
DevOperation = "uavcloud-devoperation"
|
||||||
|
Validation = "uavcloud-feature"
|
||||||
|
Integration = "uavcloud-test"
|
||||||
|
Uat = "uavcloud-uat"
|
||||||
|
Demo = "uavcloud-demo"
|
||||||
|
Uavms = "uavcloud-uavms"
|
||||||
|
)
|
||||||
0
agent-operator/config/CmiiK8sConfig.go → agent-operator/config/CmiiK8sClusterConfig.go
Executable file → Normal file
0
agent-operator/config/CmiiK8sConfig.go → agent-operator/config/CmiiK8sClusterConfig.go
Executable file → Normal file
5
agent-operator/CmiiStatus.go → agent-operator/config/CmiiK8sInterface.go
Executable file → Normal file
5
agent-operator/CmiiStatus.go → agent-operator/config/CmiiK8sInterface.go
Executable file → Normal file
@@ -1,12 +1,15 @@
|
|||||||
package main
|
package config
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1 "k8s.io/api/apps/v1"
|
v1 "k8s.io/api/apps/v1"
|
||||||
corev1 "k8s.io/api/core/v1"
|
corev1 "k8s.io/api/core/v1"
|
||||||
"strings"
|
"strings"
|
||||||
|
"wdd.io/agent-common/logger"
|
||||||
"wdd.io/agent-common/utils"
|
"wdd.io/agent-common/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
var log = logger.Log
|
||||||
|
|
||||||
type CmiiInterfaceConvert interface {
|
type CmiiInterfaceConvert interface {
|
||||||
}
|
}
|
||||||
|
|
||||||
0
agent-operator/image/CmiiImageOperator.go → agent-operator/image/ImageOperator.go
Executable file → Normal file
0
agent-operator/image/CmiiImageOperator.go → agent-operator/image/ImageOperator.go
Executable file → Normal file
0
agent-operator/image/CmiiImageOperator_test.go → agent-operator/image/ImageOperator_test.go
Executable file → Normal file
0
agent-operator/image/CmiiImageOperator_test.go → agent-operator/image/ImageOperator_test.go
Executable file → Normal file
@@ -277,3 +277,7 @@
|
|||||||
2024-09-03-17-23-44 uavcloud-demo cmii-uav-platform 5.8.0-0902 5.8.0-090301
|
2024-09-03-17-23-44 uavcloud-demo cmii-uav-platform 5.8.0-0902 5.8.0-090301
|
||||||
2024-09-04-09-43-45 uavcloud-demo cmii-uav-industrial-portfolio 5.7.0-31369-yunnan-090302 5.7.0-31369-yunnan-090401
|
2024-09-04-09-43-45 uavcloud-demo cmii-uav-industrial-portfolio 5.7.0-31369-yunnan-090302 5.7.0-31369-yunnan-090401
|
||||||
2024-09-05-13-52-57 uavcloud-demo cmii-uav-industrial-portfolio 5.7.0-31369-yunnan-090401 5.7.0-31369-yunnan-090501
|
2024-09-05-13-52-57 uavcloud-demo cmii-uav-industrial-portfolio 5.7.0-31369-yunnan-090401 5.7.0-31369-yunnan-090501
|
||||||
|
2024-11-28-17-58-21 uavcloud-demo cmii-uas-lifecycle 6.1.0-20241125-112802 6.1.0-20241125-112803
|
||||||
|
2024-11-29-11-37-17 uavcloud-demo cmii-uas-lifecycle 6.1.0-20241125-112803 6.1.0-20241125-112901
|
||||||
|
2024-11-29-12-21-07 uavcloud-demo cmii-uav-platform 6.1.0-20241125-112801 6.1.0-20241125-112901
|
||||||
|
2024-12-02-17-56-35 uavcloud-demo cmii-uav-platform 6.1.0-20241125-112901 6.1.0-20241125-120201
|
||||||
|
|||||||
5
agent-operator/CmiiMinioOperator.go → agent-operator/minio/MinioOperator.go
Executable file → Normal file
5
agent-operator/CmiiMinioOperator.go → agent-operator/minio/MinioOperator.go
Executable file → Normal file
@@ -1,8 +1,9 @@
|
|||||||
package main
|
package minio
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
"wdd.io/agent-common/logger"
|
||||||
|
|
||||||
"github.com/minio/minio-go"
|
"github.com/minio/minio-go"
|
||||||
"wdd.io/agent-common/utils"
|
"wdd.io/agent-common/utils"
|
||||||
@@ -16,6 +17,8 @@ type CmiiMinioOperator struct {
|
|||||||
|
|
||||||
var DefaultCmiiMinioOperator = newInstance()
|
var DefaultCmiiMinioOperator = newInstance()
|
||||||
|
|
||||||
|
var log = logger.Log
|
||||||
|
|
||||||
func newInstance() *CmiiMinioOperator {
|
func newInstance() *CmiiMinioOperator {
|
||||||
|
|
||||||
op := &CmiiMinioOperator{}
|
op := &CmiiMinioOperator{}
|
||||||
2
agent-operator/CmiiMinioOperator_test.go → agent-operator/minio/MinioOperator_test.go
Executable file → Normal file
2
agent-operator/CmiiMinioOperator_test.go → agent-operator/minio/MinioOperator_test.go
Executable file → Normal file
@@ -1,4 +1,4 @@
|
|||||||
package main
|
package minio
|
||||||
|
|
||||||
import "testing"
|
import "testing"
|
||||||
|
|
||||||
1
agent-tmp/go.mod
Normal file
1
agent-tmp/go.mod
Normal file
@@ -0,0 +1 @@
|
|||||||
|
module agent-tmp
|
||||||
17
agent-tmp/io-tmp/获取当前用户目录.go
Normal file
17
agent-tmp/io-tmp/获取当前用户目录.go
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
package io_tmp
|
||||||
|
|
||||||
|
import (
|
||||||
|
"fmt"
|
||||||
|
"os/user"
|
||||||
|
)
|
||||||
|
|
||||||
|
func GetUserHomeDir() {
|
||||||
|
usr, err := user.Current()
|
||||||
|
if err != nil {
|
||||||
|
fmt.Println(err)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
fmt.Println(usr)
|
||||||
|
fmt.Println(usr.HomeDir)
|
||||||
|
}
|
||||||
7
agent-tmp/io-tmp/获取当前用户目录_test.go
Normal file
7
agent-tmp/io-tmp/获取当前用户目录_test.go
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
package io_tmp
|
||||||
|
|
||||||
|
import "testing"
|
||||||
|
|
||||||
|
func TestGetUserHomeDir(t *testing.T) {
|
||||||
|
GetUserHomeDir()
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user