This commit is contained in:
zeaslity
2024-10-30 16:30:51 +08:00
commit 437acbeb63
3363 changed files with 653948 additions and 0 deletions

4399
14-UAT-CHBN/backend.yaml Normal file

File diff suppressed because it is too large Load Diff

146
14-UAT-CHBN/dpp.yaml Normal file
View File

@@ -0,0 +1,146 @@
apiVersion: v1
kind: Service
metadata:
name: cmii-uav-data-post-process
namespace: uavcloud-demo
labels:
cmii.type: backend
cmii.modules: cmlc
cmii.app: cmii-uav-data-post-process
helm.sh/chart: backend-app-1.1.0
spec:
type: ClusterIP
selector:
cmii.type: backend
cmii.app: cmii-uav-data-post-process
ports:
- name: backend-tcp
port: 8080
protocol: TCP
targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: cmii-uav-data-post-process
namespace: uavcloud-demo
labels:
cmii.type: backend
cmii.modules: cmlc
cmii.app: cmii-uav-data-post-process
helm.sh/chart: backend-app-1.1.0
spec:
replicas: 1
strategy:
rollingUpdate:
maxUnavailable: 1
selector:
matchLabels:
cmii.type: backend
cmii.app: cmii-uav-data-post-process
template:
metadata:
labels:
cmii.type: backend
cmii.app: cmii-uav-data-post-process
spec:
affinity: {}
imagePullSecrets:
- name: harborsecret
securityContext:
{}
containers:
- name: cmii-uav-data-post-process
image: "harbor.cdcyy.com.cn/cmii/cmii-uav-data-post-process:5.5.0"
imagePullPolicy: Always
env:
- name: K8S_NAMESPACE
value: "uavcloud-demo"
- name: APPLICATION_NAME
value: "cmii-uav-data-post-process"
- name: CUST_JAVA_OPTS
value: "-Xms200m -Xmx2000m -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
- name: SYS_CONFIG_GROUP
- name: IMAGE_VERSION
value: 5.5.0
ports:
- name: pod-port
containerPort: 8080
protocol: TCP
resources:
limits: null
requests: null
livenessProbe:
httpGet:
path: /cmii/ping
port: pod-port
scheme: HTTP
initialDelaySeconds: 60
timeoutSeconds: 5
periodSeconds: 20
successThreshold: 1
failureThreshold: 3
readinessProbe:
httpGet:
path: /cmii/ping
port: pod-port
scheme: HTTP
initialDelaySeconds: 60
timeoutSeconds: 5
periodSeconds: 20
successThreshold: 1
failureThreshold: 3
startupProbe:
httpGet:
path: /cmii/ping
port: pod-port
scheme: HTTP
initialDelaySeconds: 60
timeoutSeconds: 3
periodSeconds: 20
successThreshold: 1
failureThreshold: 5
volumeMounts:
- name: nfs-backend-log-volume
mountPath: /cmii/logs
readOnly: false
subPath: uavcloud-demo/cmii-uav-data-post-process
- name: data-cache-volume
mountPath: /cmii/cache
readOnly: false
subPath: uavcloud-demo/cmii-uav-data-post-process
volumes:
- name: nfs-backend-log-volume
emptyDir:
{}
- name: data-cache-volume
emptyDir:
{}
---
#apiVersion: v1
#kind: PersistentVolumeClaim
#metadata:
# name: cmii-uav-data-post-process-cache
# namespace: uavcloud-demo
# labels:
# cmii.type: backend
# cmii.modules: cmlc
# cmii.app: cmii-uav-data-post-process
# helm.sh/chart: backend-app-1.1.0
#spec:
# storageClassName: cmlc-nfs-prod-distribute
# accessModes:
# - ReadWriteMany
# volumeMode: Filesystem
# resources:
# requests:
# storage: 25Gi

2298
14-UAT-CHBN/frontend.yaml Normal file

File diff suppressed because it is too large Load Diff

17
14-UAT-CHBN/version.txt Normal file
View File

@@ -0,0 +1,17 @@
harbor.cdcyy.com.cn/cmii/cmii-uav-platform:5.0.0-2023SA-112706
harbor.cdcyy.com.cn/cmii/cmii-uav-platform-share:5.0.0-2023SA
harbor.cdcyy.com.cn/cmii/cmii-uav-platform-splice:5.0.0-2023SA
harbor.cdcyy.com.cn/cmii/cmii-uav-oauth:5.0.0-2023SA-1122
harbor.cdcyy.com.cn/cmii/cmii-uav-process:5.0.0-2023SA-1116
harbor.cdcyy.com.cn/cmii/cmii-uav-platform-securityh5:5.0.0-2023SA-111702
harbor.cdcyy.com.cn/cmii/cmii-suav-platform-supervision:5.0.0-2023SA-112706
harbor.cdcyy.com.cn/cmii/cmii-uav-mission:2023-SA
harbor.cdcyy.com.cn/cmii/cmii-uav-cloud-live:5.0.0-2023SA-1123
harbor.cdcyy.com.cn/cmii/cmii-suav-platform-supervisionh5:5.0.0-2023SA
harbor.cdcyy.com.cn/cmii/cmii-uav-platform-multiterminal:5.0.0-2023SA-1116
harbor.cdcyy.com.cn/cmii/cmii-uav-material-warehouse:5.0.0-2023SA-1121
harbor.cdcyy.com.cn/cmii/cmii-uav-industrial-portfolio:5.0.0-2023SA-1121
harbor.cdcyy.com.cn/cmii/cmii-uav-surveillance:5.0.0-2023SA-1120
harbor.cdcyy.com.cn/cmii/cmii-uav-mqtthandler:5.0.0-2023SA-1201
harbor.cdcyy.com.cn/cmii/cmii-suav-supervision:5.0.0-2023SA-1116
harbor.cdcyy.com.cn/cmii/cmii-uav-waypoint:5.0.0-2023-SA

View File

@@ -0,0 +1,46 @@
#!/bin/bash
export name_space=uavcloud-uat
export new_tag=5.0.0
export image_prefix=harbor.cdcyy.com.cn/cmii
export version_file="/root/version.txt"
echo ""
echo ""
ims=$(kubectl -n ${name_space} get deployment | grep 'cmii-uav\|cmii-admin\|cmii-open' | awk '{print$1}' | tr "\n" " ")
for image in $ims; do
image_prefixs=${image_prefix}/${image}
echo "image is => $image"
echo ""
new_image=$(grep "$image" <$version_file)
echo "new_image_version is $new_image"
new_image_version=$(echo $new_image | cut -d":" -f2)
echo "new_image is $new_image_version"
echo ""
echo "image_prefixs is $image_prefixs"
if [ "$new_image_version" != "" ] ; then
echo "[update] - namespace [$name_space] start to update [$image] to [$new_image_version]"
# kubectl set env deployment/${image} IMAGE_VERSION=${new_tag} -n ${name_space}
# kubectl -n ${name_space} patch deployment ${image} -p "{\"spec\":{\"template\":{\"spec\":{\"containers\":[{\"name\":\"${image}\",\"image\": \"${image_prefixs}:${new_image_version}\"}]}}}}"
fi
echo ""
done
#for image in ${ims}; do
# image_version=$(kubectl -n ${name_space} get deployment "${image}" -o=jsonpath='{.spec.template.spec.containers[*].image}' | cut -d":" -f2)
#
# if [ "$image_version" == "" ];then
# image_prefix=$(kubectl -n ${name_space} get deployment "${image}" -o=jsonpath='{.spec.template.spec.containers[*].image}' | cut -d":" -f1)
# echo "[update] - namespace [$name_space] start to update [$image_prefix] to [$new_tag]"
# kubectl set env deployment/${image} IMAGE_VERSION=${new_tag} -n ${name_space}
# kubectl -n ${name_space} patch deployment ${image} -p "{\"spec\":{\"template\":{\"spec\":{\"containers\":[{\"name\":\"${image}\",\"image\": \"${image_prefix}:${new_tag}\"}]}}}}"
# fi
#done