295 lines
7.6 KiB
YAML
Executable File
295 lines
7.6 KiB
YAML
Executable File
{
|
|
"metadata": {
|
|
"name": "cmii-admin-data-bf8f87cb7-8bz4l",
|
|
"generateName": "cmii-admin-data-bf8f87cb7-",
|
|
"namespace": "uavcloud-devflight",
|
|
"selfLink": "/api/v1/namespaces/uavcloud-devflight/pods/cmii-admin-data-bf8f87cb7-8bz4l",
|
|
"uid": "1cc7936f-0416-40aa-9d9f-811814a7a1ee",
|
|
"resourceVersion": "474134438",
|
|
"creationTimestamp": "2024-01-10T07:23:09Z",
|
|
"labels": {
|
|
"app.kubernetes.io/instance": "cmii-admin-data",
|
|
"app.kubernetes.io/managed-by": "Helm",
|
|
"cmii.app": "cmii-admin-data",
|
|
"cmii.modules": "cmlc.lcadm",
|
|
"cmii.type": "backend",
|
|
"cmii/managed-by": "jenkins-pipeline-standalone-job",
|
|
"pod-template-hash": "bf8f87cb7"
|
|
},
|
|
"ownerReferences": [
|
|
{
|
|
"apiVersion": "apps/v1",
|
|
"kind": "ReplicaSet",
|
|
"name": "cmii-admin-data-bf8f87cb7",
|
|
|
|
"uid": "f853fc51-894b-432f-8cc0-1f7acce715ff",
|
|
"controller": true,
|
|
"blockOwnerDeletion": true
|
|
}
|
|
]
|
|
},
|
|
"spec": {
|
|
"volumes": [
|
|
{
|
|
"name": "nfs-backend-log-volume",
|
|
"persistentVolumeClaim": {
|
|
"claimName": "nfs-backend-log-pvc"
|
|
|
|
}
|
|
},
|
|
{
|
|
"name": "elk-json-log",
|
|
"hostPath": {
|
|
"path": "/var/log/",
|
|
"type": ""
|
|
}
|
|
},
|
|
{
|
|
"name": "default-token-hzddz",
|
|
"secret": {
|
|
"secretName": "default-token-hzddz",
|
|
"defaultMode": 420
|
|
}
|
|
}
|
|
],
|
|
"containers": [
|
|
{
|
|
"name": "cmii-admin-data",
|
|
"image": "harbor.cdcyy.com.cn/cmii/cmii-admin-data:5.2.0-beta",
|
|
"ports": [
|
|
{
|
|
"name": "pod-port",
|
|
"containerPort": 8080,
|
|
"protocol": "TCP"
|
|
}
|
|
],
|
|
"env": [
|
|
{
|
|
"name": "GIT_BRANCH",
|
|
"value": "staging"
|
|
},
|
|
{
|
|
"name": "GIT_COMMIT",
|
|
"value": "378998cb81c98afc29ff327419e9449907a210d5"
|
|
},
|
|
{
|
|
"name": "K8S_NAMESPACE",
|
|
"value": "uavcloud-devflight"
|
|
},
|
|
{
|
|
"name": "APPLICATION_NAME",
|
|
"value": "cmii-admin-data"
|
|
},
|
|
{
|
|
"name": "CUST_JAVA_OPTS",
|
|
"value": "-Xms256m -Xmx512m -Dlog4j2.formatMsgNoLookups=true"
|
|
},
|
|
{
|
|
"name": "NACOS_REGISTRY",
|
|
"value": "helm-nacos:8848"
|
|
},
|
|
{
|
|
"name": "NACOS_USERNAME",
|
|
"value": "developer"
|
|
},
|
|
{
|
|
"name": "NACOS_PASSWORD",
|
|
"value": "Deve@9128"
|
|
},
|
|
{
|
|
"name": "NACOS_DISCOVERY_IP",
|
|
"valueFrom": {
|
|
"fieldRef": {
|
|
"apiVersion": "v1",
|
|
"fieldPath": "status.podIP"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "NACOS_DISCOVERY_PORT",
|
|
"value": "8080"
|
|
},
|
|
{
|
|
"name": "IMAGE_VERSION",
|
|
"value": "5.2.0-beta"
|
|
},
|
|
{
|
|
"name": "BIZ_CONFIG_GROUP"
|
|
},
|
|
{
|
|
"name": "SYS_CONFIG_GROUP"
|
|
}
|
|
],
|
|
"resources": {
|
|
"limits": {
|
|
"cpu": "2",
|
|
"memory": "2Gi"
|
|
},
|
|
"requests": {
|
|
"cpu": "100m",
|
|
"memory": "200Mi"
|
|
}
|
|
},
|
|
"volumeMounts": [
|
|
{
|
|
"name": "nfs-backend-log-volume",
|
|
"mountPath": "/cmii/logs",
|
|
"subPath": "uavcloud-devflight/cmii-admin-data"
|
|
},
|
|
{
|
|
"name": "elk-json-log",
|
|
"mountPath": "/cmii/jsonlogs",
|
|
"subPath": "json_pv_logfile"
|
|
},
|
|
{
|
|
"name": "default-token-hzddz",
|
|
"readOnly": true,
|
|
"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount"
|
|
}
|
|
],
|
|
"livenessProbe": {
|
|
"httpGet": {
|
|
"path": "/cmii/ping",
|
|
"port": "pod-port",
|
|
"scheme": "HTTP"
|
|
},
|
|
"initialDelaySeconds": 5,
|
|
"timeoutSeconds": 2,
|
|
"periodSeconds": 10,
|
|
"successThreshold": 1,
|
|
"failureThreshold": 3
|
|
},
|
|
"readinessProbe": {
|
|
"httpGet": {
|
|
"path": "/cmii/ping",
|
|
"port": "pod-port",
|
|
"scheme": "HTTP"
|
|
},
|
|
"initialDelaySeconds": 5,
|
|
"timeoutSeconds": 2,
|
|
"periodSeconds": 10,
|
|
"successThreshold": 1,
|
|
"failureThreshold": 3
|
|
},
|
|
"startupProbe": {
|
|
"httpGet": {
|
|
"path": "/cmii/ping",
|
|
"port": "pod-port",
|
|
"scheme": "HTTP"
|
|
},
|
|
"initialDelaySeconds": 120,
|
|
"timeoutSeconds": 2,
|
|
"periodSeconds": 10,
|
|
"successThreshold": 1,
|
|
"failureThreshold": 10
|
|
},
|
|
"terminationMessagePath": "/dev/termination-log",
|
|
"terminationMessagePolicy": "File",
|
|
"imagePullPolicy": "Always"
|
|
}
|
|
],
|
|
"restartPolicy": "Always",
|
|
"terminationGracePeriodSeconds": 30,
|
|
"dnsPolicy": "ClusterFirst",
|
|
"serviceAccountName": "default",
|
|
"serviceAccount": "default",
|
|
"nodeName": "dev-04.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": "2024-01-10T07:23:09Z"
|
|
},
|
|
{
|
|
"type": "Ready",
|
|
"status": "True",
|
|
"lastProbeTime": null,
|
|
"lastTransitionTime": "2024-01-10T07:25:31Z"
|
|
},
|
|
{
|
|
"type": "ContainersReady",
|
|
"status": "True",
|
|
"lastProbeTime": null,
|
|
"lastTransitionTime": "2024-01-10T07:25:31Z"
|
|
},
|
|
{
|
|
"type": "PodScheduled",
|
|
"status": "True",
|
|
"lastProbeTime": null,
|
|
"lastTransitionTime": "2024-01-10T07:23:09Z"
|
|
}
|
|
],
|
|
"hostIP": "192.168.11.158",
|
|
"podIP": "10.244.32.143",
|
|
"podIPs": [
|
|
{
|
|
"ip": "10.244.32.143"
|
|
}
|
|
],
|
|
"startTime": "2024-01-10T07:23:09Z",
|
|
"containerStatuses": [
|
|
{
|
|
"name": "cmii-admin-data",
|
|
"state": {
|
|
"running": {
|
|
"startedAt": "2024-01-10T07:23:22Z"
|
|
}
|
|
},
|
|
"lastState": { },
|
|
"ready": true,
|
|
"restartCount": 0,
|
|
"image": "harbor.cdcyy.com.cn/cmii/cmii-admin-data:5.2.0-beta",
|
|
"imageID": "docker-pullable://harbor.cdcyy.com.cn/cmii/cmii-admin-data@sha256:5e8fc9a55ffd4bf9772e0f44142486d27f37aaca28d8fa920e7248aea89a7e28",
|
|
"containerID": "docker://4b6e5594d8a3a5202c1ecfb85dbfbcb5215926a21544f8f3646a1d605ce6e70c",
|
|
"started": true
|
|
}
|
|
],
|
|
"qosClass": "Burstable"
|
|
}
|
|
} |