uas-agent yaml

This commit is contained in:
zeaslity
2025-05-15 10:35:46 +08:00
parent dbb45c553b
commit 0a1b92acc2
11 changed files with 991 additions and 203 deletions

256
.idea/workspace.xml generated
View File

@@ -4,31 +4,18 @@
<option name="autoReloadType" value="SELECTIVE" />
</component>
<component name="ChangeListManager">
<list default="true" id="6047a167-18d5-4f8e-a170-63c3fd101bda" name="Changes" comment="">
<change afterPath="$PROJECT_DIR$/agent-common/SplitProject/监管平台-Doris-k8s/doris-deployment.yaml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/agent-common/SplitProject/监管平台-Doris-k8s/doris-pvc.yaml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/vcs.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/vcs.xml" afterDir="false" />
<list default="true" id="6047a167-18d5-4f8e-a170-63c3fd101bda" name="Changes" comment="git">
<change afterPath="$PROJECT_DIR$/agent-common/real_project/cmii-uas-gateway-agent-test.yaml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/agent-common/real_project/cmii-uas-lifecycle-agent-test.yaml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/agent-common/real_project/cmii-updater.yaml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/agent-common/real_project/pre_pro/cmii-uas-gateway-pre-pro.yaml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/agent-common/real_project/pre_pro/cmii-uas-lifecycle-pre-prod.yaml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/agent-common/real_project/pre_pro/cmii-uav-watchdog-preprod.yaml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.run/Cmii镜像同步-35.70.run.xml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/.run/DCU全部CMII镜像.run.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.run/DCU全部CMII镜像.run.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.run/清理CMII镜像-35.70.run.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.run/清理CMII镜像-35.80.run.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/agent-common/real_project/CmiiImageListConfig.go" beforeDir="false" afterPath="$PROJECT_DIR$/agent-common/real_project/CmiiImageListConfig.go" afterDir="false" />
<change beforePath="$PROJECT_DIR$/agent-common/real_project/cmii-uavms-pyfusion.yaml" beforeDir="false" afterPath="$PROJECT_DIR$/agent-common/real_project/cmii-uavms-pyfusion.yaml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/agent-common/real_project/uavcloud-devflight/k8s-backend.yaml" beforeDir="false" afterPath="$PROJECT_DIR$/agent-common/real_project/uavcloud-devflight/k8s-backend.yaml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/agent-common/real_project/uavcloud-devflight/k8s-configmap.yaml" beforeDir="false" afterPath="$PROJECT_DIR$/agent-common/real_project/uavcloud-devflight/k8s-configmap.yaml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/agent-common/real_project/uavcloud-devflight/k8s-frontend.yaml" beforeDir="false" afterPath="$PROJECT_DIR$/agent-common/real_project/uavcloud-devflight/k8s-frontend.yaml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/agent-common/real_project/uavcloud-devflight/k8s-ingress.yaml" beforeDir="false" afterPath="$PROJECT_DIR$/agent-common/real_project/uavcloud-devflight/k8s-ingress.yaml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/agent-common/real_project/uavcloud-devflight/old/k8s-backend.yaml" beforeDir="false" afterPath="$PROJECT_DIR$/agent-common/real_project/uavcloud-devflight/old/k8s-backend.yaml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/agent-common/real_project/uavcloud-devflight/old/k8s-configmap.yaml" beforeDir="false" afterPath="$PROJECT_DIR$/agent-common/real_project/uavcloud-devflight/old/k8s-configmap.yaml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/agent-common/real_project/uavcloud-devflight/old/k8s-frontend.yaml" beforeDir="false" afterPath="$PROJECT_DIR$/agent-common/real_project/uavcloud-devflight/old/k8s-frontend.yaml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/agent-common/real_project/uavcloud-devflight/old/k8s-ingress.yaml" beforeDir="false" afterPath="$PROJECT_DIR$/agent-common/real_project/uavcloud-devflight/old/k8s-ingress.yaml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/agent-deploy/d_app/CmiiImageConfig.go" beforeDir="false" afterPath="$PROJECT_DIR$/agent-deploy/d_app/CmiiImageConfig.go" afterDir="false" />
<change beforePath="$PROJECT_DIR$/agent-deploy/d_app/FrontendConfigMap.go" beforeDir="false" afterPath="$PROJECT_DIR$/agent-deploy/d_app/FrontendConfigMap.go" afterDir="false" />
<change beforePath="$PROJECT_DIR$/agent-deploy/d_app/TemplateIngressConfigMap.go" beforeDir="false" afterPath="$PROJECT_DIR$/agent-deploy/d_app/TemplateIngressConfigMap.go" afterDir="false" />
<change beforePath="$PROJECT_DIR$/agent-operator/CmiiDeployOperator_test.go" beforeDir="false" afterPath="$PROJECT_DIR$/agent-operator/CmiiDeployOperator_test.go" afterDir="false" />
<change beforePath="$PROJECT_DIR$/agent-operator/CmiiImageSyncOperator.go" beforeDir="false" afterPath="$PROJECT_DIR$/agent-operator/CmiiImageSyncOperator.go" afterDir="false" />
<change beforePath="$PROJECT_DIR$/agent-operator/CmiiImageSyncOperator_test.go" beforeDir="false" afterPath="$PROJECT_DIR$/agent-operator/CmiiImageSyncOperator_test.go" afterDir="false" />
<change beforePath="$PROJECT_DIR$/agent-operator/CmiiK8sOperator.go" beforeDir="false" afterPath="$PROJECT_DIR$/agent-operator/CmiiK8sOperator.go" afterDir="false" />
<change beforePath="$PROJECT_DIR$/agent-common/real_project/cmii-uav-watchdog-agent-test.yaml" beforeDir="false" afterPath="$PROJECT_DIR$/agent-common/real_project/cmii-uav-watchdog-agent-test.yaml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/agent-common/real_project/cmii-uav-watchdog-test.yaml" beforeDir="false" afterPath="$PROJECT_DIR$/agent-common/real_project/cmii-uav-watchdog-test.yaml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/agent-deploy/d_app/TemplateCmiiBackend.go" beforeDir="false" afterPath="$PROJECT_DIR$/agent-deploy/d_app/TemplateCmiiBackend.go" afterDir="false" />
<change beforePath="$PROJECT_DIR$/agent-wdd/cmd/Base.go" beforeDir="false" afterPath="$PROJECT_DIR$/agent-wdd/cmd/Base.go" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -44,8 +31,12 @@
&quot;configuredContexts&quot;: [
{
&quot;name&quot;: &quot;cmii-dev-cluster&quot;,
&quot;kubeConfigUrl&quot;: &quot;file://C:/Users/wdd/.kube/config&quot;,
&quot;currentNamespace&quot;: &quot;uavcloud-devflight&quot;
&quot;kubeConfigUrl&quot;: &quot;file://C:/Users/wddsh/Documents/IdeaProjects/ProjectOctopus/agent-operator/config/cmii-dev-cluster.yaml&quot;
},
{
&quot;name&quot;: &quot;cmii-dev-cluster&quot;,
&quot;kubeConfigUrl&quot;: &quot;file://C:/Users/wddsh/.kube/config&quot;,
&quot;currentNamespace&quot;: &quot;kube-system&quot;
}
],
&quot;isMigrated&quot;: true
@@ -61,15 +52,6 @@
</component>
<component name="PropertiesComponent">{
&quot;keyToString&quot;: {
&quot;Go Test.Cmii镜像同步-80.executor&quot;: &quot;Run&quot;,
&quot;Go Test.DCU全部CMII镜像.executor&quot;: &quot;Run&quot;,
&quot;Go Test.TestCmiiEnvDeploy in wdd.io/agent-operator (1).executor&quot;: &quot;Run&quot;,
&quot;Go Test.TestCmiiEnvDeploy in wdd.io/agent-operator.executor&quot;: &quot;Run&quot;,
&quot;Go Test.TestCmiiEnvDeploy_HuNanErJiPingTaiJianGuan in wdd.io/agent-operator.executor&quot;: &quot;Run&quot;,
&quot;Go Test.TestCmiiEnvDeploy_ZhuHaiBianFangShengJi in wdd.io/agent-operator.executor&quot;: &quot;Run&quot;,
&quot;Go Test.TestPullFromEntityAndSyncConditionally in wdd.io/agent-operator.executor&quot;: &quot;Run&quot;,
&quot;Go Test.清理CMII镜像-35.70.executor&quot;: &quot;Run&quot;,
&quot;Go Test.清理CMII镜像-35.80.executor&quot;: &quot;Run&quot;,
&quot;PowerShell.one-build-and-upload.ps1 (1).executor&quot;: &quot;Run&quot;,
&quot;PowerShell.one-build-and-upload.ps1.executor&quot;: &quot;Run&quot;,
&quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;,
@@ -78,152 +60,42 @@
&quot;RunOnceActivity.go.migrated.go.modules.settings&quot;: &quot;true&quot;,
&quot;git-widget-placeholder&quot;: &quot;main&quot;,
&quot;go.import.settings.migrated&quot;: &quot;true&quot;,
&quot;last_opened_file_path&quot;: &quot;C:/Users/wddsh/Documents/IdeaProjects/WddSuperAgent/agent-common/real_project&quot;,
&quot;node.js.detected.package.eslint&quot;: &quot;true&quot;,
&quot;node.js.detected.package.tslint&quot;: &quot;true&quot;,
&quot;node.js.selected.package.eslint&quot;: &quot;(autodetect)&quot;,
&quot;node.js.selected.package.tslint&quot;: &quot;(autodetect)&quot;,
&quot;nodejs_package_manager_path&quot;: &quot;npm&quot;,
&quot;settings.editor.selected.configurable&quot;: &quot;preferences.pluginManager&quot;,
&quot;vue.rearranger.settings.migration&quot;: &quot;true&quot;
}
}</component>
<component name="RunManager" selected="Go Test.TestCmiiEnvDeploy_HuNanErJiPingTaiJianGuan in wdd.io/agent-operator">
<configuration name="TestCmiiEnvDeploy in wdd.io/agent-operator (1)" type="GoTestRunConfiguration" factoryName="Go Test" temporary="true" nameIsGenerated="true">
<module name="WddSuperAgent" />
<working_directory value="$PROJECT_DIR$/agent-operator" />
<kind value="PACKAGE" />
<package value="wdd.io/agent-operator" />
<directory value="$PROJECT_DIR$" />
<filePath value="$PROJECT_DIR$" />
<framework value="gotest" />
<pattern value="^\QTestCmiiEnvDeploy\E$" />
<component name="RecentsManager">
<key name="CopyFile.RECENT_KEYS">
<recent name="C:\Users\wddsh\Documents\IdeaProjects\WddSuperAgent\agent-common\real_project" />
<recent name="C:\Users\wddsh\Documents\IdeaProjects\WddSuperAgent\agent-common\real_project\pre_pro" />
</key>
</component>
<component name="RunManager" selected="PowerShell.one-build-and-upload.ps1 (1)">
<configuration name="one-build-and-upload.ps1 (1)" type="PowerShellRunType" factoryName="PowerShell" temporary="true" scriptUrl="$PROJECT_DIR$/agent-wdd/a_run/one-build-and-upload.ps1" executablePath="$PROJECT_DIR$/../../../../../Windows/System32/WindowsPowerShell/v1.0/powershell.exe">
<envs />
<method v="2" />
</configuration>
<configuration name="TestCmiiEnvDeploy in wdd.io/agent-operator (1)" type="GoTestRunConfiguration" factoryName="Go Test" temporary="true" nameIsGenerated="true">
<module name="WddSuperAgent" />
<working_directory value="$PROJECT_DIR$/agent-operator" />
<kind value="PACKAGE" />
<package value="wdd.io/agent-operator" />
<directory value="$PROJECT_DIR$" />
<filePath value="$PROJECT_DIR$" />
<framework value="gotest" />
<pattern value="^\QTestCmiiEnvDeploy\E$" />
<configuration name="one-build-and-upload.ps1 (1)" type="PowerShellRunType" factoryName="PowerShell" temporary="true" scriptUrl="$PROJECT_DIR$/agent-wdd/a_run/one-build-and-upload.ps1" executablePath="$PROJECT_DIR$/../../../../../Windows/System32/WindowsPowerShell/v1.0/powershell.exe">
<envs />
<method v="2" />
</configuration>
<configuration name="TestCmiiEnvDeploy in wdd.io/agent-operator" type="GoTestRunConfiguration" factoryName="Go Test" temporary="true" nameIsGenerated="true">
<module name="WddSuperAgent" />
<working_directory value="$PROJECT_DIR$/agent-operator" />
<kind value="PACKAGE" />
<package value="wdd.io/agent-operator" />
<directory value="$PROJECT_DIR$" />
<filePath value="$PROJECT_DIR$" />
<framework value="gotest" />
<pattern value="^\QTestCmiiEnvDeploy\E$" />
<configuration name="one-build-and-upload.ps1" type="PowerShellRunType" factoryName="PowerShell" temporary="true" scriptUrl="$PROJECT_DIR$/agent-wdd/a_run/one-build-and-upload.ps1" executablePath="$PROJECT_DIR$/../../../../../Windows/System32/WindowsPowerShell/v1.0/powershell.exe">
<envs />
<method v="2" />
</configuration>
<configuration name="TestCmiiEnvDeploy in wdd.io/agent-operator" type="GoTestRunConfiguration" factoryName="Go Test" temporary="true" nameIsGenerated="true">
<module name="WddSuperAgent" />
<working_directory value="$PROJECT_DIR$/agent-operator" />
<kind value="PACKAGE" />
<package value="wdd.io/agent-operator" />
<directory value="$PROJECT_DIR$" />
<filePath value="$PROJECT_DIR$" />
<framework value="gotest" />
<pattern value="^\QTestCmiiEnvDeploy\E$" />
<configuration name="one-build-and-upload.ps1" type="PowerShellRunType" factoryName="PowerShell" temporary="true" scriptUrl="$PROJECT_DIR$/agent-wdd/a_run/one-build-and-upload.ps1" executablePath="$PROJECT_DIR$/../../../../../Windows/System32/WindowsPowerShell/v1.0/powershell.exe">
<envs />
<method v="2" />
</configuration>
<configuration name="TestCmiiEnvDeploy_HuNanErJiPingTaiJianGuan in wdd.io/agent-operator" type="GoTestRunConfiguration" factoryName="Go Test" temporary="true" nameIsGenerated="true">
<module name="WddSuperAgent" />
<working_directory value="$PROJECT_DIR$/agent-operator" />
<kind value="PACKAGE" />
<package value="wdd.io/agent-operator" />
<directory value="$PROJECT_DIR$" />
<filePath value="$PROJECT_DIR$" />
<framework value="gotest" />
<pattern value="^\QTestCmiiEnvDeploy_HuNanErJiPingTaiJianGuan\E$" />
<method v="2" />
</configuration>
<configuration name="TestCmiiEnvDeploy_HuNanErJiPingTaiJianGuan in wdd.io/agent-operator" type="GoTestRunConfiguration" factoryName="Go Test" temporary="true" nameIsGenerated="true">
<module name="WddSuperAgent" />
<working_directory value="$PROJECT_DIR$/agent-operator" />
<kind value="PACKAGE" />
<package value="wdd.io/agent-operator" />
<directory value="$PROJECT_DIR$" />
<filePath value="$PROJECT_DIR$" />
<framework value="gotest" />
<pattern value="^\QTestCmiiEnvDeploy_HuNanErJiPingTaiJianGuan\E$" />
<method v="2" />
</configuration>
<configuration name="TestCmiiEnvDeploy_ZhuHaiBianFangShengJi in wdd.io/agent-operator" type="GoTestRunConfiguration" factoryName="Go Test" temporary="true" nameIsGenerated="true">
<module name="WddSuperAgent" />
<working_directory value="$PROJECT_DIR$/agent-operator" />
<kind value="PACKAGE" />
<package value="wdd.io/agent-operator" />
<directory value="$PROJECT_DIR$" />
<filePath value="$PROJECT_DIR$" />
<framework value="gotest" />
<pattern value="^\QTestCmiiEnvDeploy_ZhuHaiBianFangShengJi\E$" />
<method v="2" />
</configuration>
<configuration name="TestCmiiEnvDeploy_ZhuHaiBianFangShengJi in wdd.io/agent-operator" type="GoTestRunConfiguration" factoryName="Go Test" temporary="true" nameIsGenerated="true">
<module name="WddSuperAgent" />
<working_directory value="$PROJECT_DIR$/agent-operator" />
<kind value="PACKAGE" />
<package value="wdd.io/agent-operator" />
<directory value="$PROJECT_DIR$" />
<filePath value="$PROJECT_DIR$" />
<framework value="gotest" />
<pattern value="^\QTestCmiiEnvDeploy_ZhuHaiBianFangShengJi\E$" />
<method v="2" />
</configuration>
<configuration name="TestPullFromEntityAndSyncConditionally in wdd.io/agent-operator" type="GoTestRunConfiguration" factoryName="Go Test" temporary="true" nameIsGenerated="true">
<module name="WddSuperAgent" />
<working_directory value="$PROJECT_DIR$/agent-operator" />
<kind value="PACKAGE" />
<package value="wdd.io/agent-operator" />
<directory value="$PROJECT_DIR$" />
<filePath value="$PROJECT_DIR$" />
<framework value="gotest" />
<pattern value="^\QTestPullFromEntityAndSyncConditionally\E$" />
<method v="2" />
</configuration>
<configuration name="TestPullFromEntityAndSyncConditionally in wdd.io/agent-operator" type="GoTestRunConfiguration" factoryName="Go Test" temporary="true" nameIsGenerated="true">
<module name="WddSuperAgent" />
<working_directory value="$PROJECT_DIR$/agent-operator" />
<kind value="PACKAGE" />
<package value="wdd.io/agent-operator" />
<directory value="$PROJECT_DIR$" />
<filePath value="$PROJECT_DIR$" />
<framework value="gotest" />
<pattern value="^\QTestPullFromEntityAndSyncConditionally\E$" />
<method v="2" />
</configuration>
<list>
<item itemvalue="Go Test.CmiiUpdater-35.70" />
<item itemvalue="Go Test.CMII镜像同步-11.8-ARM" />
<item itemvalue="Go Test.Cmii镜像同步-80" />
<item itemvalue="Go Test.DCU全部CMII镜像" />
<item itemvalue="Go Test.DEMO更新-3570" />
<item itemvalue="Go Test.DEMO重启-3570" />
<item itemvalue="Go Test.Middle镜像-35.70" />
<item itemvalue="Go Test.Middle镜像-ARM-11.8" />
<item itemvalue="Go Test.查询应用分支-3570" />
<item itemvalue="Go Test.清理CMII镜像-35.80" />
<item itemvalue="Go Test.重启DEMO-3570" />
<item itemvalue="Go Test.院内Harbor清理-35.70" />
<item itemvalue="Go Test.TestCmiiEnvDeploy_HuNanErJiPingTaiJianGuan in wdd.io/agent-operator" />
<item itemvalue="Go Test.TestCmiiEnvDeploy in wdd.io/agent-operator (1)" />
<item itemvalue="Go Test.TestCmiiEnvDeploy in wdd.io/agent-operator" />
<item itemvalue="Go Test.TestCmiiEnvDeploy_ZhuHaiBianFangShengJi in wdd.io/agent-operator" />
<item itemvalue="Go Test.TestPullFromEntityAndSyncConditionally in wdd.io/agent-operator" />
</list>
<recent_temporary>
<list>
<item itemvalue="Go Test.TestCmiiEnvDeploy_HuNanErJiPingTaiJianGuan in wdd.io/agent-operator" />
<item itemvalue="Go Test.TestCmiiEnvDeploy in wdd.io/agent-operator (1)" />
<item itemvalue="Go Test.TestPullFromEntityAndSyncConditionally in wdd.io/agent-operator" />
<item itemvalue="Go Test.TestCmiiEnvDeploy_ZhuHaiBianFangShengJi in wdd.io/agent-operator" />
<item itemvalue="Go Test.TestCmiiEnvDeploy in wdd.io/agent-operator" />
<item itemvalue="PowerShell.one-build-and-upload.ps1" />
<item itemvalue="PowerShell.one-build-and-upload.ps1 (1)" />
</list>
</recent_temporary>
</component>
@@ -245,38 +117,44 @@
<updated>1743088643405</updated>
<workItem from="1743088645374" duration="2622000" />
<workItem from="1743124314153" duration="96000" />
<workItem from="1743124481375" duration="159000" />
<workItem from="1743124723849" duration="31000" />
<workItem from="1743386798559" duration="4981000" />
<workItem from="1743470151334" duration="2530000" />
<workItem from="1743643583532" duration="19000" />
<workItem from="1743995670688" duration="3153000" />
<workItem from="1744082075356" duration="830000" />
<workItem from="1744091801180" duration="856000" />
<workItem from="1744272006320" duration="6000" />
<workItem from="1745219113709" duration="1806000" />
<workItem from="1745223283650" duration="13234000" />
<workItem from="1745561611138" duration="1904000" />
<workItem from="1745565275036" duration="397000" />
<workItem from="1745568418778" duration="636000" />
<workItem from="1745717939370" duration="16000" />
<workItem from="1745719038213" duration="1996000" />
<workItem from="1745802928379" duration="4216000" />
<workItem from="1745906570338" duration="1251000" />
<workItem from="1745914308478" duration="1447000" />
<workItem from="1745975385371" duration="963000" />
<workItem from="1745993558805" duration="889000" />
<workItem from="1746670195851" duration="4188000" />
<workItem from="1746757437023" duration="1525000" />
<workItem from="1746770913024" duration="1199000" />
<workItem from="1747012933414" duration="4245000" />
<workItem from="1747204374551" duration="9000" />
<workItem from="1743124481375" duration="283000" />
<workItem from="1743262863451" duration="47000" />
<workItem from="1743581058604" duration="1557000" />
<workItem from="1743660929675" duration="15000" />
<workItem from="1744078448570" duration="1026000" />
<workItem from="1744166614545" duration="641000" />
<workItem from="1744177926783" duration="1168000" />
<workItem from="1744179364332" duration="2422000" />
<workItem from="1744253172154" duration="3557000" />
<workItem from="1744333937704" duration="3045000" />
<workItem from="1744615572005" duration="229000" />
<workItem from="1744615876480" duration="4667000" />
<workItem from="1744681217960" duration="12000" />
<workItem from="1745227712977" duration="838000" />
<workItem from="1745376726315" duration="27000" />
<workItem from="1745376769276" duration="457000" />
<workItem from="1745740575508" duration="5000" />
<workItem from="1747106841546" duration="4742000" />
<workItem from="1747206840947" duration="38000" />
</task>
<task id="LOCAL-00001" summary="git">
<option name="closed" value="true" />
<created>1743124655007</created>
<option name="number" value="00001" />
<option name="presentableId" value="LOCAL-00001" />
<option name="project" value="LOCAL" />
<updated>1743124655007</updated>
</task>
<option name="localTasksCounter" value="2" />
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
<option name="version" value="3" />
</component>
<component name="VcsManagerConfiguration">
<MESSAGE value="git" />
<option name="LAST_COMMIT_MESSAGE" value="git" />
</component>
<component name="VgoProject">
<settings-migrated>true</settings-migrated>
</component>

View File

@@ -0,0 +1,154 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: cmii-uas-gateway
namespace: uavcloud-feature
labels:
cmii.type: backend
cmii.app: cmii-uas-gateway
octopus/control: backend-app-1.0.0
app.kubernetes.io/managed-by: octopus
app.kubernetes.io/app-version: 6.2.0
spec:
replicas: 1
strategy:
rollingUpdate:
maxUnavailable: 1
selector:
matchLabels:
cmii.type: backend
cmii.app: cmii-uas-gateway
template:
metadata:
labels:
cmii.type: backend
cmii.app: cmii-uas-gateway
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: uavcloud.affinity
operator: In
values:
- common
imagePullSecrets:
- name: harborsecret
containers:
- name: cmii-uas-gateway
image: harbor.cdcyy.com.cn/cmii/cmii-uas-gateway-agent:test-2025-04-11-09-52-41
imagePullPolicy: Always
env:
- name: K8S_NAMESPACE
value: uavcloud-feature
- name: APPLICATION_NAME
value: cmii-uas-gateway
- name: CUST_JAVA_OPTS
value: "-Xms200m -Xmx1500m -Dlog4j2.formatMsgNoLookups=true"
- name: NACOS_REGISTRY
value: "helm-nacos:8848"
- name: NACOS_DISCOVERY_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
- name: NACOS_DISCOVERY_PORT
value: "8080"
- name: BIZ_CONFIG_GROUP
value: 6.2.0
- name: SYS_CONFIG_GROUP
value: 6.2.0
- name: NACOS_USERNAME
value: "developer"
- name: NACOS_PASSWORD
value: "Deve@9128201"
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: IMAGE_NAME
value: harbor.cdcyy.com.cn/cmii/cmii-uas-gateway-agent:test-2025-04-11-09-52-41
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: NODE_IP
valueFrom:
fieldRef:
fieldPath: status.hostIP
- name: LIMIT_CPU
valueFrom:
resourceFieldRef:
containerName: cmii-uas-gateway
resource: limits.cpu
- name: LIMIT_MEMORY
valueFrom:
resourceFieldRef:
containerName: cmii-uas-gateway
resource: limits.memory
- name: REQUEST_CPU
valueFrom:
resourceFieldRef:
containerName: cmii-uas-gateway
resource: requests.cpu
- name: REQUEST_MEMORY
valueFrom:
resourceFieldRef:
containerName: cmii-uas-gateway
resource: requests.memory
- name: WATCHDOG_HEARTBEAT_URL
value: http://cmii-uav-watchdog:8080/api/heartbeat
- name: CMII_DEBUG_MODE
value: WDD_DEBUG
- name: WATCHDOG_AGENT_HEARTBEAT_INTERVAL
value: "60s"
- name: WATCHDOG_AGENT_FAIL_WAIT_INTERVAL
value: "30s"
ports:
- name: pod-port
containerPort: 8080
protocol: TCP
resources:
limits:
memory: 2Gi
cpu: "2"
requests:
memory: 200Mi
cpu: 200m
volumeMounts:
- name: nfs-backend-log-volume
mountPath: /cmii/logs
readOnly: false
subPath: uavcloud-feature/cmii-uas-gateway
volumes:
- name: nfs-backend-log-volume
persistentVolumeClaim:
claimName: nfs-backend-log-pvc
---
apiVersion: v1
kind: Service
metadata:
name: cmii-uas-gateway
namespace: uavcloud-feature
labels:
cmii.type: backend
cmii.app: cmii-uas-gateway
octopus/control: backend-app-1.0.0
app.kubernetes.io/managed-by: octopus
app.kubernetes.io/app-version: 6.2.0
spec:
type: ClusterIP
selector:
cmii.type: backend
cmii.app: cmii-uas-gateway
ports:
- name: backend-tcp
port: 8080
protocol: TCP
targetPort: 8080
---

View File

@@ -0,0 +1,150 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: cmii-uas-lifecycle
namespace: uavcloud-feature
labels:
cmii.type: backend
cmii.app: cmii-uas-lifecycle
octopus/control: backend-app-1.0.0
app.kubernetes.io/managed-by: octopus
app.kubernetes.io/app-version: 6.2.0
spec:
replicas: 1
strategy:
rollingUpdate:
maxUnavailable: 1
selector:
matchLabels:
cmii.type: backend
cmii.app: cmii-uas-lifecycle
template:
metadata:
labels:
cmii.type: backend
cmii.app: cmii-uas-lifecycle
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: uavcloud.affinity
operator: In
values:
- common
imagePullSecrets:
- name: harborsecret
containers:
- name: cmii-uas-lifecycle
image: harbor.cdcyy.com.cn/cmii/cmii-uas-lifecycle-agent:test-2025-04-09-14-14-05
imagePullPolicy: Always
env:
- name: K8S_NAMESPACE
value: uavcloud-feature
- name: APPLICATION_NAME
value: cmii-uas-lifecycle
- name: CUST_JAVA_OPTS
value: "-Xms200m -Xmx1500m -Dlog4j2.formatMsgNoLookups=true"
- name: NACOS_REGISTRY
value: "helm-nacos:8848"
- name: NACOS_DISCOVERY_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
- name: NACOS_DISCOVERY_PORT
value: "8080"
- name: BIZ_CONFIG_GROUP
value: 6.2.0
- name: SYS_CONFIG_GROUP
value: 6.2.0
- name: NACOS_USERNAME
value: "developer"
- name: NACOS_PASSWORD
value: "Deve@9128201"
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: IMAGE_NAME
valueFrom:
fieldRef:
fieldPath: spec.containers[0].image
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: NODE_IP
valueFrom:
fieldRef:
fieldPath: status.hostIP
- name: LIMIT_CPU
valueFrom:
resourceFieldRef:
containerName: cmii-uas-lifecycle
resource: limits.cpu
- name: LIMIT_MEMORY
valueFrom:
resourceFieldRef:
containerName: cmii-uas-lifecycle
resource: limits.memory
- name: REQUEST_CPU
valueFrom:
resourceFieldRef:
containerName: cmii-uas-lifecycle
resource: requests.cpu
- name: REQUEST_MEMORY
valueFrom:
resourceFieldRef:
containerName: cmii-uas-lifecycle
resource: requests.memory
- name: WATCHDOG_HEARTBEAT_URL
value: http://cmii-uav-watchdog:8080/api/heartbeat
ports:
- name: pod-port
containerPort: 8080
protocol: TCP
resources:
limits:
memory: 2Gi
cpu: "2"
requests:
memory: 200Mi
cpu: 200m
volumeMounts:
- name: nfs-backend-log-volume
mountPath: /cmii/logs
readOnly: false
subPath: uavcloud-feature/cmii-uas-lifecycle
volumes:
- name: nfs-backend-log-volume
persistentVolumeClaim:
claimName: nfs-backend-log-pvc
---
apiVersion: v1
kind: Service
metadata:
name: cmii-uas-lifecycle
namespace: uavcloud-feature
labels:
cmii.type: backend
cmii.app: cmii-uas-lifecycle
octopus/control: backend-app-1.0.0
app.kubernetes.io/managed-by: octopus
app.kubernetes.io/app-version: 6.2.0
spec:
type: ClusterIP
selector:
cmii.type: backend
cmii.app: cmii-uas-lifecycle
ports:
- name: backend-tcp
port: 8080
protocol: TCP
targetPort: 8080
---

View File

@@ -38,7 +38,7 @@ spec:
- name: harborsecret
containers:
- name: cmii-uav-watchdog-agent
image: harbor.cdcyy.com.cn/cmii/cmii-uav-watchdog-agent-java:2025-03-26-17-09-09
image: harbor.cdcyy.com.cn/cmii/cmii-uav-watchdog-agent-java:2025-04-10-11-11-34
imagePullPolicy: Always
env:
- name: K8S_NAMESPACE
@@ -76,11 +76,11 @@ spec:
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
fieldPath: spec.nodeName # 这是正确且支持的用法
- name: NODE_IP
valueFrom:
fieldRef:
fieldPath: status.hostIP
fieldPath: status.hostIP # 这是正确且支持的用法
- name: LIMIT_CPU
valueFrom:
resourceFieldRef:

View File

@@ -3,7 +3,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: cmii-uav-watchdog
namespace: uavcloud-devflight
namespace: uavcloud-feature
labels:
cmii.type: backend
cmii.app: cmii-uav-watchdog
@@ -30,10 +30,10 @@ spec:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: uavcloud.env
- key: uavcloud.affinity
operator: In
values:
- devflight
- common
imagePullSecrets:
- name: harborsecret
containers:
@@ -42,7 +42,7 @@ spec:
imagePullPolicy: Always
env:
- name: K8S_NAMESPACE
value: uavcloud-devflight
value: uavcloud-feature
- name: APPLICATION_NAME
value: cmii-uav-watchdog
- name: CUST_JAVA_OPTS
@@ -116,7 +116,7 @@ spec:
- name: nfs-backend-log-volume
mountPath: /cmii/cmii-uav-watchdog/
readOnly: false
subPath: uavcloud-devflight/cmii-uav-watchdog
subPath: uavcloud-feature/cmii-uav-watchdog
- name: cmii-uav-watchdog-conf
mountPath: /cmii/cmii-uav-watchdog/config.yaml
subPath: config.yaml
@@ -135,7 +135,7 @@ apiVersion: v1
kind: Service
metadata:
name: cmii-uav-watchdog
namespace: uavcloud-devflight
namespace: uavcloud-feature
labels:
cmii.type: backend
cmii.app: cmii-uav-watchdog
@@ -158,7 +158,7 @@ kind: ConfigMap
apiVersion: v1
metadata:
name: cmii-uav-watchdog-configmap
namespace: uavcloud-devflight
namespace: uavcloud-feature
data:
config.yaml: |-
server:
@@ -172,7 +172,7 @@ data:
url: "https://watchdog-center.example.com" # 一级授权中心地址
project:
project_namespace: "uavcloud-devflight" # 项目命名空间
project_namespace: "uavcloud-feature" # 项目命名空间
tier_two_auth:
tier_two_secret: "your_tier_two_secret_here" # 二级授权密钥

View File

@@ -0,0 +1,117 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: cmii-updater
namespace: kube-system
labels:
cmii.type: backend
cmii.app: cmii-updater
octopus/control: backend-app-1.0.0
app.kubernetes.io/managed-by: octopus
app.kubernetes.io/app-version: 6.2.0
spec:
replicas: 1
strategy:
rollingUpdate:
maxUnavailable: 1
selector:
matchLabels:
cmii.type: backend
cmii.app: cmii-updater
template:
metadata:
labels:
cmii.type: backend
cmii.app: cmii-updater
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/controlplane
operator: In
values:
- 'true'
imagePullSecrets:
- name: harborsecret
tolerations:
- key: "node.kubernetes.io/unschedulable"
operator: "Exists"
effect: "NoSchedule"
containers:
- name: cmii-updater
image: harbor.cdcyy.com.cn/cmii/cmii-updater:2025-04-21
imagePullPolicy: Always
env:
- name: K8S_NAMESPACE
value: kube-system
- name: APPLICATION_NAME
value: cmii-updater
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: IMAGE_NAME
value: harbor.cdcyy.com.cn/cmii/cmii-updater-agent:test-2025-04-11-09-52-41
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: NODE_IP
valueFrom:
fieldRef:
fieldPath: status.hostIP
- name: LIMIT_CPU
valueFrom:
resourceFieldRef:
containerName: cmii-updater
resource: limits.cpu
- name: LIMIT_MEMORY
valueFrom:
resourceFieldRef:
containerName: cmii-updater
resource: limits.memory
- name: REQUEST_CPU
valueFrom:
resourceFieldRef:
containerName: cmii-updater
resource: requests.cpu
- name: REQUEST_MEMORY
valueFrom:
resourceFieldRef:
containerName: cmii-updater
resource: requests.memory
ports:
- name: pod-port
containerPort: 8080
protocol: TCP
---
apiVersion: v1
kind: Service
metadata:
name: cmii-updater
namespace: kube-system
labels:
cmii.type: backend
cmii.app: cmii-updater
octopus/control: backend-app-1.0.0
app.kubernetes.io/managed-by: octopus
app.kubernetes.io/app-version: 6.2.0
spec:
type: NodePort
selector:
cmii.type: backend
cmii.app: cmii-updater
ports:
- name: backend-tcp
port: 8080
protocol: TCP
targetPort: 8080
nodePort: 32333
---

View File

@@ -0,0 +1,159 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: cmii-uas-gateway
namespace: uavcloud-prepro
labels:
cmii.type: backend
cmii.app: cmii-uas-gateway
octopus/control: backend-app-1.0.0
app.kubernetes.io/managed-by: octopus
app.kubernetes.io/app-version: 6.2.0
spec:
replicas: 1
strategy:
rollingUpdate:
maxUnavailable: 2
selector:
matchLabels:
cmii.type: backend
cmii.app: cmii-uas-gateway
template:
metadata:
labels:
cmii.type: backend
cmii.app: cmii-uas-gateway
spec:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: cmii.app
operator: In
values:
- cmii-uas-gateway
topologyKey: kubernetes.io/hostname
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: uavcloud.env
operator: In
values:
- demo
imagePullSecrets:
- name: harborsecret
containers:
- name: cmii-uas-gateway
image: harbor.cdcyy.com.cn/cmii/cmii-uas-gateway:2.0.0-pro-agent-2025-04-14-16-08-32
imagePullPolicy: Always
env:
- name: K8S_NAMESPACE
value: uavcloud-prepro
- name: APPLICATION_NAME
value: cmii-uas-gateway
- name: CUST_JAVA_OPTS
value: "-Xms1024m -Xmx2500m -Dlog4j2.formatMsgNoLookups=true"
- name: NACOS_REGISTRY
value: "helm-nacos:8848"
- name: NACOS_DISCOVERY_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
- name: NACOS_DISCOVERY_PORT
value: "8080"
- name: BIZ_CONFIG_GROUP
value: 6.2.0
- name: SYS_CONFIG_GROUP
value: 6.2.0
- name: NACOS_USERNAME
value: "developer"
- name: NACOS_PASSWORD
value: "Deve@9128201"
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: IMAGE_NAME
value: harbor.cdcyy.com.cn/cmii/cmii-uas-gateway:2.0.0-pro-agent-2025-04-14-16-08-32
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: NODE_IP
valueFrom:
fieldRef:
fieldPath: status.hostIP
- name: LIMIT_CPU
valueFrom:
resourceFieldRef:
containerName: cmii-uas-gateway
resource: limits.cpu
- name: LIMIT_MEMORY
valueFrom:
resourceFieldRef:
containerName: cmii-uas-gateway
resource: limits.memory
- name: REQUEST_CPU
valueFrom:
resourceFieldRef:
containerName: cmii-uas-gateway
resource: requests.cpu
- name: REQUEST_MEMORY
valueFrom:
resourceFieldRef:
containerName: cmii-uas-gateway
resource: requests.memory
- name: WATCHDOG_HEARTBEAT_URL
value: http://cmii-uav-watchdog:8080/api/heartbeat
ports:
- name: pod-port
containerPort: 8080
protocol: TCP
resources:
limits:
memory: 3Gi
cpu: "4"
requests:
memory: 1Gi
cpu: "1"
volumeMounts:
- name: nfs-backend-log-volume
mountPath: /cmii/logs
readOnly: false
subPath: uavcloud-prepro/cmii-uas-gateway
volumes:
- name: nfs-backend-log-volume
persistentVolumeClaim:
claimName: nfs-backend-log-pvc
---
apiVersion: v1
kind: Service
metadata:
name: cmii-uas-gateway
namespace: uavcloud-prepro
labels:
cmii.type: backend
cmii.app: cmii-uas-gateway
octopus/control: backend-app-1.0.0
app.kubernetes.io/managed-by: octopus
app.kubernetes.io/app-version: 6.2.0
spec:
type: ClusterIP
selector:
cmii.type: backend
cmii.app: cmii-uas-gateway
ports:
- name: backend-tcp
port: 8080
protocol: TCP
targetPort: 8080
---

View File

@@ -0,0 +1,148 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: cmii-uas-lifecycle
namespace: uavcloud-prepro
labels:
cmii.type: backend
cmii.app: cmii-uas-lifecycle
octopus/control: backend-app-1.0.0
app.kubernetes.io/managed-by: octopus
app.kubernetes.io/app-version: 6.2.0
spec:
replicas: 1
strategy:
rollingUpdate:
maxUnavailable: 1
selector:
matchLabels:
cmii.type: backend
cmii.app: cmii-uas-lifecycle
template:
metadata:
labels:
cmii.type: backend
cmii.app: cmii-uas-lifecycle
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: uavcloud.env
operator: In
values:
- demo
imagePullSecrets:
- name: harborsecret
containers:
- name: cmii-uas-lifecycle
image: harbor.cdcyy.com.cn/cmii/cmii-uas-lifecycle:2.0.0-pro-agent-2025-04-14-11-03-36
imagePullPolicy: Always
env:
- name: IMAGE_NAME
value: harbor.cdcyy.com.cn/cmii/cmii-uas-lifecycle:2.0.0-pro-agent-2025-04-14-11-03-36
- name: K8S_NAMESPACE
value: uavcloud-prepro
- name: APPLICATION_NAME
value: cmii-uas-lifecycle
- name: CUST_JAVA_OPTS
value: "-Xms1024m -Xmx3500m -Dlog4j2.formatMsgNoLookups=true"
- name: NACOS_REGISTRY
value: "helm-nacos:8848"
- name: NACOS_DISCOVERY_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
- name: NACOS_DISCOVERY_PORT
value: "8080"
- name: BIZ_CONFIG_GROUP
value: 6.2.0
- name: SYS_CONFIG_GROUP
value: 6.2.0
- name: NACOS_USERNAME
value: "developer"
- name: NACOS_PASSWORD
value: "Deve@9128201"
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: NODE_IP
valueFrom:
fieldRef:
fieldPath: status.hostIP
- name: LIMIT_CPU
valueFrom:
resourceFieldRef:
containerName: cmii-uas-lifecycle
resource: limits.cpu
- name: LIMIT_MEMORY
valueFrom:
resourceFieldRef:
containerName: cmii-uas-lifecycle
resource: limits.memory
- name: REQUEST_CPU
valueFrom:
resourceFieldRef:
containerName: cmii-uas-lifecycle
resource: requests.cpu
- name: REQUEST_MEMORY
valueFrom:
resourceFieldRef:
containerName: cmii-uas-lifecycle
resource: requests.memory
- name: WATCHDOG_HEARTBEAT_URL
value: http://cmii-uav-watchdog:8080/api/heartbeat
ports:
- name: pod-port
containerPort: 8080
protocol: TCP
resources:
limits:
memory: 4Gi
cpu: "4"
requests:
memory: 1Gi
cpu: "1"
volumeMounts:
- name: nfs-backend-log-volume
mountPath: /cmii/logs
readOnly: false
subPath: uavcloud-prepro/cmii-uas-lifecycle
volumes:
- name: nfs-backend-log-volume
persistentVolumeClaim:
claimName: nfs-backend-log-pvc
---
apiVersion: v1
kind: Service
metadata:
name: cmii-uas-lifecycle
namespace: uavcloud-prepro
labels:
cmii.type: backend
cmii.app: cmii-uas-lifecycle
octopus/control: backend-app-1.0.0
app.kubernetes.io/managed-by: octopus
app.kubernetes.io/app-version: 6.2.0
spec:
type: ClusterIP
selector:
cmii.type: backend
cmii.app: cmii-uas-lifecycle
ports:
- name: backend-tcp
port: 8080
protocol: TCP
targetPort: 8080
---

View File

@@ -0,0 +1,178 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: cmii-uav-watchdog
namespace: uavcloud-prepro
labels:
cmii.type: backend
cmii.app: cmii-uav-watchdog
octopus/control: backend-app-1.0.0
app.kubernetes.io/managed-by: octopus
app.kubernetes.io/app-version: 6.2.0
spec:
replicas: 1
strategy:
rollingUpdate:
maxUnavailable: 1
selector:
matchLabels:
cmii.type: backend
cmii.app: cmii-uav-watchdog
template:
metadata:
labels:
cmii.type: backend
cmii.app: cmii-uav-watchdog
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: uavcloud.env
operator: In
values:
- demo
imagePullSecrets:
- name: harborsecret
containers:
- name: cmii-uav-watchdog
image: harbor.cdcyy.com.cn/cmii/cmii-uav-watchdog:2025-04-10-15-24-03
imagePullPolicy: Always
env:
- name: K8S_NAMESPACE
value: uavcloud-prepro
- name: APPLICATION_NAME
value: cmii-uav-watchdog
- name: CUST_JAVA_OPTS
value: "-Xms200m -Xmx1500m -Dlog4j2.formatMsgNoLookups=true"
- name: NACOS_REGISTRY
value: "helm-nacos:8848"
- name: NACOS_DISCOVERY_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
- name: NACOS_DISCOVERY_PORT
value: "8080"
- name: BIZ_CONFIG_GROUP
value: 6.2.0
- name: SYS_CONFIG_GROUP
value: 6.2.0
- name: IMAGE_VERSION
value: 6.2.0
- name: NACOS_USERNAME
value: "developer"
- name: NACOS_PASSWORD
value: "Deve@9128201"
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: NODE_IP
valueFrom:
fieldRef:
fieldPath: status.hostIP
- name: LIMIT_CPU
valueFrom:
resourceFieldRef:
containerName: cmii-uav-watchdog
resource: limits.cpu
- name: LIMIT_MEMORY
valueFrom:
resourceFieldRef:
containerName: cmii-uav-watchdog
resource: limits.memory
- name: REQUEST_CPU
valueFrom:
resourceFieldRef:
containerName: cmii-uav-watchdog
resource: requests.cpu
- name: REQUEST_MEMORY
valueFrom:
resourceFieldRef:
containerName: cmii-uav-watchdog
resource: requests.memory
ports:
- name: pod-port
containerPort: 8080
protocol: TCP
resources:
limits:
memory: 2Gi
cpu: "2"
requests:
memory: 200Mi
cpu: 200m
volumeMounts:
- name: nfs-backend-log-volume
mountPath: /cmii/cmii-uav-watchdog/
readOnly: false
subPath: uavcloud-prepro/cmii-uav-watchdog
- name: cmii-uav-watchdog-conf
mountPath: /cmii/cmii-uav-watchdog/config.yaml
subPath: config.yaml
volumes:
- name: nfs-backend-log-volume
persistentVolumeClaim:
claimName: nfs-backend-log-pvc
- name: cmii-uav-watchdog-conf
configMap:
name: cmii-uav-watchdog-configmap
items:
- key: config.yaml
path: config.yaml
---
apiVersion: v1
kind: Service
metadata:
name: cmii-uav-watchdog
namespace: uavcloud-prepro
labels:
cmii.type: backend
cmii.app: cmii-uav-watchdog
octopus/control: backend-app-1.0.0
app.kubernetes.io/managed-by: octopus
app.kubernetes.io/app-version: 6.2.0
spec:
type: NodePort
selector:
cmii.type: backend
cmii.app: cmii-uav-watchdog
ports:
- name: backend-tcp
port: 8080
protocol: TCP
targetPort: 8080
nodePort: 34567
---
kind: ConfigMap
apiVersion: v1
metadata:
name: cmii-uav-watchdog-configmap
namespace: uavcloud-prepro
data:
config.yaml: |-
server:
port: "8080" # 服务器端口
tier_one_auth:
tier_one_secret: "FNSVSHOJTMTWWS56QXXNTDEYLNWQTQLFWDJ3YRDODDEIGDSJRNUPETG6BOO6S4ITWFAEUOST2URXSF6VNADBTVTSK5NZUBDDAM5EFYI" # TOTP密钥
time_offset_allowed: 30 # 允许的时间偏移(秒)
watchdog_center:
url: "https://watchdog-center.example.com" # 一级授权中心地址
project:
project_namespace: "uavcloud-prepro" # 项目命名空间
tier_two_auth:
tier_two_secret: "your_tier_two_secret_here" # 二级授权密钥

View File

@@ -69,12 +69,16 @@ spec:
value: {{ .TagVersion }}
- name: SYS_CONFIG_GROUP
value: {{ .TagVersion }}
- name: IMAGE_VERSION
value: {{ .TagVersion }}
- name: NACOS_USERNAME
value: "developer"
- name: NACOS_PASSWORD
value: "Deve@9128201"
- name: IMAGE_NAME
{{- if .HarborPort }}
value: {{ .HarborIPOrCustomImagePrefix }}:{{ .HarborPort }}/cmii/{{ .AppName }}:{{ .ImageTag }}
{{- else }}
value: {{ .HarborIPOrCustomImagePrefix }}{{ .AppName }}:{{ .ImageTag }}
{{- end }}
- name: POD_NAME
valueFrom:
fieldRef:

View File

@@ -17,7 +17,7 @@ import (
var (
ubuntuCommonTools = []string{
"iputils-ping", "net-tools", "dnsutils", "lsof", "curl", "wget", "mtr-tiny", "vim", "htop", "lrzsz",
"apt-utils", "iputils-ping", "net-tools", "dnsutils", "lsof", "curl", "wget", "mtr-tiny", "vim", "htop", "lrzsz",
}
centosCommonTools = []string{
"deltarpm", "net-tools", "iputils", "bind-utils", "lsof", "curl", "wget", "vim", "mtr", "htop",