[ Agent ] [ CMII ] - 新增大量功能
This commit is contained in:
202
agent-go/tmp/cmii-frontend-app.yaml
Normal file
202
agent-go/tmp/cmii-frontend-app.yaml
Normal file
@@ -0,0 +1,202 @@
|
||||
{
|
||||
"metadata": {
|
||||
"name": "cmii-uav-platform-splice",
|
||||
"namespace": "uavcloud-devflight",
|
||||
"selfLink": "/apis/apps/v1/namespaces/uavcloud-devflight/deployments/cmii-uav-platform-splice",
|
||||
"uid": "c6c53d74-adbf-4507-a642-06fa695d9139",
|
||||
"resourceVersion": "468805453",
|
||||
"generation": 2,
|
||||
"creationTimestamp": "2023-04-23T08:00:32Z",
|
||||
"labels": {
|
||||
"app.kubernetes.io/managed-by": "Helm",
|
||||
"app.kubernetes.io/version": "4.1.2-snapshot",
|
||||
"cmii.app": "cmii-uav-platform-splice",
|
||||
"cmii.modules": "3dvisual",
|
||||
"cmii.type": "frontend",
|
||||
"helm.sh/chart": "cmii-uav-platform-splice-4.1.2-snapshot"
|
||||
}
|
||||
},
|
||||
"spec": {
|
||||
"replicas": 2,
|
||||
"selector": {
|
||||
"matchLabels": {
|
||||
"cmii.app": "cmii-uav-platform-splice",
|
||||
"cmii.type": "frontend"
|
||||
}
|
||||
},
|
||||
"template": {
|
||||
"metadata": {
|
||||
"creationTimestamp": null,
|
||||
"labels": {
|
||||
"cmii.app": "cmii-uav-platform-splice",
|
||||
"cmii.type": "frontend"
|
||||
}
|
||||
},
|
||||
"spec": {
|
||||
"volumes": [
|
||||
{
|
||||
"name": "nginx-conf",
|
||||
"configMap": {
|
||||
"name": "nginx-cm",
|
||||
"items": [
|
||||
{
|
||||
"key": "nginx.conf",
|
||||
"path": "nginx.conf"
|
||||
}
|
||||
],
|
||||
"defaultMode": 420
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "default-nginx-conf",
|
||||
"configMap": {
|
||||
"name": "default-nginx-cm",
|
||||
"items": [
|
||||
{
|
||||
"key": "default.conf",
|
||||
"path": "default.conf"
|
||||
}
|
||||
],
|
||||
"defaultMode": 420
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "tenant-prefix",
|
||||
|
||||
"configMap": {
|
||||
"name": "tenant-prefix-splice",
|
||||
"items": [
|
||||
{
|
||||
"key": "ingress-config.js",
|
||||
"path": "ingress-config.js"
|
||||
}
|
||||
],
|
||||
"defaultMode": 420
|
||||
}
|
||||
}
|
||||
],
|
||||
"containers": [
|
||||
{
|
||||
"name": "cmii-uav-platform-splice",
|
||||
"image": "harbor.cdcyy.com.cn/cmii/cmii-uav-platform-splice:4.1.2-snapshot",
|
||||
"env": [
|
||||
{
|
||||
"name": "GIT_BRANCH",
|
||||
|
||||
"value": "feature/UAVCLOUD-20939"
|
||||
},
|
||||
{
|
||||
"name": "GIT_COMMIT",
|
||||
|
||||
"value": "c235350212bf2359d550faecab78ff02047bca37"
|
||||
},
|
||||
{
|
||||
"name": "K8S_NAMESPACE",
|
||||
"value": "uavcloud-devflight"
|
||||
},
|
||||
{
|
||||
"name": "APPLICATION_NAME",
|
||||
"value": "cmii-uav-platform-splice"
|
||||
}
|
||||
],
|
||||
"resources": {
|
||||
"limits": {
|
||||
"cpu": "2",
|
||||
"memory": "2Gi"
|
||||
},
|
||||
"requests": {
|
||||
"cpu": "100m",
|
||||
"memory": "200Mi"
|
||||
}
|
||||
},
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nginx-conf",
|
||||
|
||||
"mountPath": "/usr/local/nginx/conf/nginx.conf",
|
||||
"subPath": "nginx.conf"
|
||||
},
|
||||
{
|
||||
"name": "default-nginx-conf",
|
||||
"mountPath": "/etc/nginx/conf.d/default.conf",
|
||||
"subPath": "default.conf"
|
||||
},
|
||||
{
|
||||
"name": "tenant-prefix",
|
||||
"mountPath": "/home/cmii-platform/dist/ingress-config.js",
|
||||
"subPath": "ingress-config.js"
|
||||
}
|
||||
],
|
||||
"terminationMessagePath": "/dev/termination-log",
|
||||
"terminationMessagePolicy": "File",
|
||||
"imagePullPolicy": "Always"
|
||||
}
|
||||
],
|
||||
"restartPolicy": "Always",
|
||||
"terminationGracePeriodSeconds": 30,
|
||||
"dnsPolicy": "ClusterFirst",
|
||||
|
||||
"securityContext": { },
|
||||
"imagePullSecrets": [
|
||||
{
|
||||
"name": "harborsecret"
|
||||
}
|
||||
],
|
||||
"affinity": {
|
||||
"nodeAffinity": {
|
||||
"requiredDuringSchedulingIgnoredDuringExecution": {
|
||||
"nodeSelectorTerms": [
|
||||
{
|
||||
"matchExpressions": [
|
||||
{
|
||||
"key": "uavcloud.affinity",
|
||||
"operator": "In",
|
||||
"values": [
|
||||
"common"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"schedulerName": "default-scheduler"
|
||||
}
|
||||
},
|
||||
"strategy": {
|
||||
"type": "RollingUpdate",
|
||||
"rollingUpdate": {
|
||||
"maxUnavailable": 1,
|
||||
"maxSurge": "25%"
|
||||
}
|
||||
},
|
||||
"revisionHistoryLimit": 10,
|
||||
"progressDeadlineSeconds": 600
|
||||
},
|
||||
"status": {
|
||||
"observedGeneration": 2,
|
||||
"replicas": 2,
|
||||
"updatedReplicas": 2,
|
||||
"readyReplicas": 2,
|
||||
"availableReplicas": 2,
|
||||
"conditions": [
|
||||
{
|
||||
"type": "Available",
|
||||
"status": "True",
|
||||
"lastUpdateTime": "2023-04-23T08:00:38Z",
|
||||
"lastTransitionTime": "2023-04-23T08:00:38Z",
|
||||
"reason": "MinimumReplicasAvailable",
|
||||
"message": "Deployment has minimum availability."
|
||||
},
|
||||
{
|
||||
"type": "Progressing",
|
||||
"status": "True",
|
||||
"lastUpdateTime": "2023-04-23T08:00:38Z",
|
||||
"lastTransitionTime": "2023-04-23T08:00:32Z",
|
||||
"reason": "NewReplicaSetAvailable",
|
||||
"message": "ReplicaSet \"cmii-uav-platform-splice-5bd5c65b97\" has successfully progressed."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
242
agent-go/tmp/cmii-frontend-pod.yaml
Normal file
242
agent-go/tmp/cmii-frontend-pod.yaml
Normal file
@@ -0,0 +1,242 @@
|
||||
{
|
||||
"metadata": {
|
||||
"name": "cmii-uav-platform-splice-5bd5c65b97-2fqrt",
|
||||
"generateName": "cmii-uav-platform-splice-5bd5c65b97-",
|
||||
"namespace": "uavcloud-devflight",
|
||||
"selfLink": "/api/v1/namespaces/uavcloud-devflight/pods/cmii-uav-platform-splice-5bd5c65b97-2fqrt",
|
||||
"uid": "613b0ccc-9f27-4a90-a6c3-0c7e7a43a979",
|
||||
"resourceVersion": "341073286",
|
||||
"creationTimestamp": "2023-04-23T08:00:32Z",
|
||||
"labels": {
|
||||
"cmii.app": "cmii-uav-platform-splice",
|
||||
"cmii.type": "frontend",
|
||||
"pod-template-hash": "5bd5c65b97"
|
||||
},
|
||||
"ownerReferences": [
|
||||
{
|
||||
"apiVersion": "apps/v1",
|
||||
"kind": "ReplicaSet",
|
||||
"name": "cmii-uav-platform-splice-5bd5c65b97",
|
||||
"uid": "1dc4c64b-bffe-4358-be0a-fe7e0ecc71c0",
|
||||
"controller": true,
|
||||
"blockOwnerDeletion": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"spec": {
|
||||
"volumes": [
|
||||
{
|
||||
"name": "nginx-conf",
|
||||
"configMap": {
|
||||
"name": "nginx-cm",
|
||||
"items": [
|
||||
{
|
||||
"key": "nginx.conf",
|
||||
"path": "nginx.conf"
|
||||
}
|
||||
],
|
||||
"defaultMode": 420
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "default-nginx-conf",
|
||||
"configMap": {
|
||||
"name": "default-nginx-cm",
|
||||
"items": [
|
||||
{
|
||||
"key": "default.conf",
|
||||
"path": "default.conf"
|
||||
}
|
||||
],
|
||||
"defaultMode": 420
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "tenant-prefix",
|
||||
"configMap": {
|
||||
"name": "tenant-prefix-splice",
|
||||
"items": [
|
||||
{
|
||||
"key": "ingress-config.js",
|
||||
"path": "ingress-config.js"
|
||||
}
|
||||
],
|
||||
"defaultMode": 420
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "default-token-hzddz",
|
||||
"secret": {
|
||||
"secretName": "default-token-hzddz",
|
||||
"defaultMode": 420
|
||||
}
|
||||
}
|
||||
],
|
||||
"containers": [
|
||||
{
|
||||
"name": "cmii-uav-platform-splice",
|
||||
|
||||
"image": "harbor.cdcyy.com.cn/cmii/cmii-uav-platform-splice:4.1.2-snapshot",
|
||||
"env": [
|
||||
{
|
||||
"name": "GIT_BRANCH",
|
||||
"value": "feature/UAVCLOUD-20939"
|
||||
},
|
||||
{
|
||||
"name": "GIT_COMMIT",
|
||||
"value": "c235350212bf2359d550faecab78ff02047bca37"
|
||||
},
|
||||
{
|
||||
"name": "K8S_NAMESPACE",
|
||||
"value": "uavcloud-devflight"
|
||||
},
|
||||
{
|
||||
"name": "APPLICATION_NAME",
|
||||
"value": "cmii-uav-platform-splice"
|
||||
}
|
||||
],
|
||||
"resources": {
|
||||
"limits": {
|
||||
"cpu": "2",
|
||||
"memory": "2Gi"
|
||||
},
|
||||
"requests": {
|
||||
"cpu": "100m",
|
||||
"memory": "200Mi"
|
||||
}
|
||||
},
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "nginx-conf",
|
||||
"mountPath": "/usr/local/nginx/conf/nginx.conf",
|
||||
"subPath": "nginx.conf"
|
||||
},
|
||||
{
|
||||
"name": "default-nginx-conf",
|
||||
"mountPath": "/etc/nginx/conf.d/default.conf",
|
||||
"subPath": "default.conf"
|
||||
},
|
||||
{
|
||||
"name": "tenant-prefix",
|
||||
"mountPath": "/home/cmii-platform/dist/ingress-config.js",
|
||||
"subPath": "ingress-config.js"
|
||||
},
|
||||
{
|
||||
"name": "default-token-hzddz",
|
||||
"readOnly": true,
|
||||
"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount"
|
||||
}
|
||||
],
|
||||
"terminationMessagePath": "/dev/termination-log",
|
||||
"terminationMessagePolicy": "File",
|
||||
|
||||
"imagePullPolicy": "Always"
|
||||
}
|
||||
],
|
||||
"restartPolicy": "Always",
|
||||
"terminationGracePeriodSeconds": 30,
|
||||
"dnsPolicy": "ClusterFirst",
|
||||
"serviceAccountName": "default",
|
||||
"serviceAccount": "default",
|
||||
"nodeName": "dev-08.ecs.io",
|
||||
"securityContext": { },
|
||||
"imagePullSecrets": [
|
||||
{
|
||||
"name": "harborsecret"
|
||||
}
|
||||
],
|
||||
"affinity": {
|
||||
"nodeAffinity": {
|
||||
"requiredDuringSchedulingIgnoredDuringExecution": {
|
||||
"nodeSelectorTerms": [
|
||||
{
|
||||
"matchExpressions": [
|
||||
{
|
||||
"key": "uavcloud.affinity",
|
||||
"operator": "In",
|
||||
"values": [
|
||||
"common"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"schedulerName": "default-scheduler",
|
||||
"tolerations": [
|
||||
{
|
||||
"key": "node.kubernetes.io/not-ready",
|
||||
"operator": "Exists",
|
||||
"effect": "NoExecute",
|
||||
"tolerationSeconds": 300
|
||||
},
|
||||
{
|
||||
"key": "node.kubernetes.io/unreachable",
|
||||
"operator": "Exists",
|
||||
"effect": "NoExecute",
|
||||
"tolerationSeconds": 300
|
||||
}
|
||||
],
|
||||
"priority": 0,
|
||||
"enableServiceLinks": true
|
||||
},
|
||||
"status": {
|
||||
"phase": "Running",
|
||||
"conditions": [
|
||||
{
|
||||
"type": "Initialized",
|
||||
"status": "True",
|
||||
"lastProbeTime": null,
|
||||
"lastTransitionTime": "2023-04-23T08:00:32Z"
|
||||
},
|
||||
{
|
||||
"type": "Ready",
|
||||
"status": "True",
|
||||
"lastProbeTime": null,
|
||||
"lastTransitionTime": "2023-04-23T08:00:38Z"
|
||||
},
|
||||
{
|
||||
"type": "ContainersReady",
|
||||
"status": "True",
|
||||
"lastProbeTime": null,
|
||||
"lastTransitionTime": "2023-04-23T08:00:38Z"
|
||||
},
|
||||
{
|
||||
"type": "PodScheduled",
|
||||
"status": "True",
|
||||
"lastProbeTime": null,
|
||||
"lastTransitionTime": "2023-04-23T08:00:32Z"
|
||||
}
|
||||
],
|
||||
"hostIP": "192.168.11.162",
|
||||
"podIP": "10.244.106.210",
|
||||
"podIPs": [
|
||||
{
|
||||
"ip": "10.244.106.210"
|
||||
}
|
||||
],
|
||||
"startTime": "2023-04-23T08:00:32Z",
|
||||
"containerStatuses": [
|
||||
{
|
||||
"name": "cmii-uav-platform-splice",
|
||||
|
||||
"state": {
|
||||
"running": {
|
||||
"startedAt": "2023-04-23T08:00:37Z"
|
||||
}
|
||||
},
|
||||
"lastState": { },
|
||||
"ready": true,
|
||||
"restartCount": 0,
|
||||
"image": "harbor.cdcyy.com.cn/cmii/cmii-uav-platform-splice:4.1.2-snapshot",
|
||||
"imageID": "docker-pullable://harbor.cdcyy.com.cn/cmii/cmii-uav-platform-splice@sha256:86264f6cfa36f828a829afe061b6cbd9854ff3ff509d287210e93873a78e28e1",
|
||||
"containerID": "docker://dcc7cbff3b399fb8ded6abb0350162e1d42c0a9e169228431b98e3adc97f0ed6",
|
||||
"started": true
|
||||
}
|
||||
],
|
||||
"qosClass": "Burstable"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user