{
  "metadata": {
    "name": "cmii-admin-data-bf8f87cb7",
    "namespace": "uavcloud-devflight",
    "selfLink": "/apis/apps/v1/namespaces/uavcloud-devflight/replicasets/cmii-admin-data-bf8f87cb7",
    "uid": "f853fc51-894b-432f-8cc0-1f7acce715ff",
    "resourceVersion": "474134441",
    "generation": 3,
    "creationTimestamp": "2023-12-28T03:10:25Z",
    "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"
    },
    "annotations": {
      "deployment.kubernetes.io/desired-replicas": "2",
      "deployment.kubernetes.io/max-replicas": "3",
      "deployment.kubernetes.io/revision": "1",
      "meta.helm.sh/release-name": "cmii-admin-data",
      "meta.helm.sh/release-namespace": "uavcloud-devflight"
    },
    "ownerReferences": [
      {
        "apiVersion": "apps/v1",
        "kind": "Deployment",
        "name": "cmii-admin-data",

        "uid": "a3714e1c-ba59-4fc8-bdd6-fd27b676c943",
        "controller": true,
        "blockOwnerDeletion": true
      }
    ],
    "managedFields": [
      {
        "manager": "kube-controller-manager",
        "operation": "Update",
        "apiVersion": "apps/v1",
        "time": "2024-01-10T07:25:31Z",
        "fieldsType": "FieldsV1",
        "fieldsV1": {
          "f:metadata": {
            "f:annotations": {
              ".": { },
              "f:deployment.kubernetes.io/desired-replicas": { },
              "f:deployment.kubernetes.io/max-replicas": { },
              "f:deployment.kubernetes.io/revision": { },
              "f:meta.helm.sh/release-name": { },
              "f:meta.helm.sh/release-namespace": { }
            },
            "f:labels": {
              ".": { },
              "f:app.kubernetes.io/instance": { },
              "f:app.kubernetes.io/managed-by": { },
              "f:cmii.app": { },
              "f:cmii.modules": { },
              "f:cmii.type": { },
              "f:cmii/managed-by": { },
              "f:pod-template-hash": { }
            },
            "f:ownerReferences": {
              ".": { },
              "k:{\"uid\":\"a3714e1c-ba59-4fc8-bdd6-fd27b676c943\"}": {
                ".": { },
                "f:apiVersion": { },
                "f:blockOwnerDeletion": { },
                "f:controller": { },
                "f:kind": { },
                "f:name": { },
                "f:uid": { }
              }
            }
          },
          "f:spec": {
            "f:replicas": { },
            "f:selector": {
              "f:matchLabels": {
                ".": { },
                "f:cmii.app": { },
                "f:cmii.type": { },
                "f:cmii/managed-by": { },
                "f:pod-template-hash": { }
              }
            },
            "f:template": {
              "f:metadata": {
                "f:labels": {
                  ".": { },
                  "f:app.kubernetes.io/instance": { },
                  "f:app.kubernetes.io/managed-by": { },
                  "f:cmii.app": { },
                  "f:cmii.modules": { },
                  "f:cmii.type": { },

                  "f:cmii/managed-by": { },
                  "f:pod-template-hash": { }
                }
              },
              "f:spec": {
                "f:affinity": {
                  ".": { },
                  "f:nodeAffinity": {
                    ".": { },
                    "f:requiredDuringSchedulingIgnoredDuringExecution": {
                      ".": { },
                      "f:nodeSelectorTerms": { }
                    }
                  }
                },
                "f:containers": {
                  "k:{\"name\":\"cmii-admin-data\"}": {
                    ".": { },
                    "f:env": {
                      ".": { },
                      "k:{\"name\":\"APPLICATION_NAME\"}": {
                        ".": { },
                        "f:name": { },
                        "f:value": { }
                      },
                      "k:{\"name\":\"BIZ_CONFIG_GROUP\"}": {
                        ".": { },
                        "f:name": { }

                      },
                      "k:{\"name\":\"CUST_JAVA_OPTS\"}": {
                        ".": { },
                        "f:name": { },
                        "f:value": { }
                      },
                      "k:{\"name\":\"GIT_BRANCH\"}": {
                        ".": { },
                        "f:name": { },
                        "f:value": { }
                      },
                      "k:{\"name\":\"GIT_COMMIT\"}": {
                        ".": { },
                        "f:name": { },
                        "f:value": { }
                      },
                      "k:{\"name\":\"IMAGE_VERSION\"}": {
                        ".": { },
                        "f:name": { },
                        "f:value": { }
                      },
                      "k:{\"name\":\"K8S_NAMESPACE\"}": {
                        ".": { },
                        "f:name": { },
                        "f:value": { }
                      },
                      "k:{\"name\":\"NACOS_DISCOVERY_IP\"}": {
                        ".": { },
                        "f:name": { },
                        "f:valueFrom": {
                          ".": { },
                          "f:fieldRef": {
                            ".": { },
                            "f:apiVersion": { },
                            "f:fieldPath": { }
                          }
                        }
                      },
                      "k:{\"name\":\"NACOS_DISCOVERY_PORT\"}": {
                        ".": { },
                        "f:name": { },
                        "f:value": { }
                      },
                      "k:{\"name\":\"NACOS_PASSWORD\"}": {
                        ".": { },
                        "f:name": { },
                        "f:value": { }
                      },
                      "k:{\"name\":\"NACOS_REGISTRY\"}": {
                        ".": { },
                        "f:name": { },
                        "f:value": { }
                      },
                      "k:{\"name\":\"NACOS_USERNAME\"}": {
                        ".": { },
                        "f:name": { },
                        "f:value": { }
                      },
                      "k:{\"name\":\"SYS_CONFIG_GROUP\"}": {
                        ".": { },
                        "f:name": { }

                      }
                    },
                    "f:image": { },
                    "f:imagePullPolicy": { },
                    "f:livenessProbe": {
                      ".": { },
                      "f:failureThreshold": { },
                      "f:httpGet": {

                        ".": { },
                        "f:path": { },
                        "f:port": { },
                        "f:scheme": { }
                      },
                      "f:initialDelaySeconds": { },
                      "f:periodSeconds": { },
                      "f:successThreshold": { },
                      "f:timeoutSeconds": { }
                    },
                    "f:name": { },
                    "f:ports": {
                      ".": { },
                      "k:{\"containerPort\":8080,\"protocol\":\"TCP\"}": {
                        ".": { },
                        "f:containerPort": { },
                        "f:name": { },
                        "f:protocol": { }
                      }
                    },
                    "f:readinessProbe": {
                      ".": { },
                      "f:failureThreshold": { },
                      "f:httpGet": {

                        ".": { },
                        "f:path": { },
                        "f:port": { },
                        "f:scheme": { }
                      },
                      "f:initialDelaySeconds": { },
                      "f:periodSeconds": { },
                      "f:successThreshold": { },
                      "f:timeoutSeconds": { }
                    },
                    "f:resources": {

                      ".": { },
                      "f:limits": {
                        ".": { },
                        "f:cpu": { },

                        "f:memory": { }
                      },
                      "f:requests": {
                        ".": { },
                        "f:cpu": { },

                        "f:memory": { }
                      }
                    },
                    "f:startupProbe": {
                      ".": { },
                      "f:failureThreshold": { },
                      "f:httpGet": {

                        ".": { },
                        "f:path": { },
                        "f:port": { },
                        "f:scheme": { }
                      },
                      "f:initialDelaySeconds": { },
                      "f:periodSeconds": { },
                      "f:successThreshold": { },
                      "f:timeoutSeconds": { }
                    },
                    "f:terminationMessagePath": { },
                    "f:terminationMessagePolicy": { },
                    "f:volumeMounts": {
                      ".": { },
                      "k:{\"mountPath\":\"/cmii/jsonlogs\"}": {
                        ".": { },
                        "f:mountPath": { },
                        "f:name": { },
                        "f:subPath": { }
                      },
                      "k:{\"mountPath\":\"/cmii/logs\"}": {
                        ".": { },
                        "f:mountPath": { },
                        "f:name": { },
                        "f:subPath": { }
                      }
                    }
                  }
                },
                "f:dnsPolicy": { },
                "f:imagePullSecrets": {
                  ".": { },
                  "k:{\"name\":\"harborsecret\"}": {
                    ".": { },
                    "f:name": { }
                  }
                },
                "f:restartPolicy": { },
                "f:schedulerName": { },
                "f:securityContext": { },
                "f:terminationGracePeriodSeconds": { },
                "f:volumes": {
                  ".": { },
                  "k:{\"name\":\"elk-json-log\"}": {
                    ".": { },
                    "f:hostPath": {
                      ".": { },
                      "f:path": { },
                      "f:type": { }
                    },
                    "f:name": { }
                  },
                  "k:{\"name\":\"nfs-backend-log-volume\"}": {
                    ".": { },
                    "f:name": { },
                    "f:persistentVolumeClaim": {
                      ".": { },
                      "f:claimName": { }
                    }
                  }
                }
              }
            }
          },
          "f:status": {
            "f:availableReplicas": { },
            "f:fullyLabeledReplicas": { },
            "f:observedGeneration": { },
            "f:readyReplicas": { },
            "f:replicas": { }
          }
        }
      }
    ]
  },
  "spec": {
    "replicas": 2,
    "selector": {
      "matchLabels": {
        "cmii.app": "cmii-admin-data",
        "cmii.type": "backend",
        "cmii/managed-by": "jenkins-pipeline-standalone-job",
        "pod-template-hash": "bf8f87cb7"
      }
    },
    "template": {
      "metadata": {
        "creationTimestamp": null,
        "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"
        }
      },
      "spec": {
        "volumes": [
          {
            "name": "nfs-backend-log-volume",
            "persistentVolumeClaim": {
              "claimName": "nfs-backend-log-pvc"
            }
          },
          {
            "name": "elk-json-log",
            "hostPath": {
              "path": "/var/log/",

              "type": ""
            }
          }
        ],
        "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"
              }
            ],
            "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",
        "securityContext": { },
        "imagePullSecrets": [
          {
            "name": "harborsecret"

          }
        ],
        "affinity": {
          "nodeAffinity": {
            "requiredDuringSchedulingIgnoredDuringExecution": {
              "nodeSelectorTerms": [

                {
                  "matchExpressions": [
                    {
                      "key": "uavcloud.affinity",
                      "operator": "In",
                      "values": [
                        "common"
                      ]
                    }
                  ]
                }
              ]
            }
          }
        },
        "schedulerName": "default-scheduler"
      }
    }
  },
  "status": {
    "replicas": 2,
    "fullyLabeledReplicas": 2,
    "readyReplicas": 2,
    "availableReplicas": 2,
    "observedGeneration": 3
  }
}

