• Kubernetes的YAML文件


    deployments:
    - apiVersion: apps/v1beta1
      kind: Deployment
      metadata:
        labels:
          system_serviceUnit: bas-biz-manage-app
          system_workload: bas-biz-manage-app
          system_namespace: de-bas-app
          system_cluster: paas-te-cluster2
        name: bas-biz-manage-app
        namespace: de-bas-app
      spec:
        replicas: 1
        template:
          metadata:
            labels:
              system_serviceUnit: bas-biz-manage-app
              system_workload: bas-biz-manage-app
              system_namespace: de-bas-app
              system_cluster: paas-te-cluster2
          spec:
            containers:
            - env:
              - name: paas_container_ip
                valueFrom:
                  fieldRef:
                    apiVersion: v1
                    fieldPath: status.podIP
              - name: shtelpaas_app_ip
                valueFrom:
                  fieldRef:
                    apiVersion: v1
                    fieldPath: status.podIP
              - name: paas_container_host_ip
                valueFrom:
                  fieldRef:
                    apiVersion: v1
                    fieldPath: status.hostIP
              - name: shtelpaas_center_name
                value: debas
              - name: pinpoint_applicationName
                value: deBasBizManageApp
              - name: shtelpaas_app_name
                value: basBizManageApp
              - name: shtelpaas_service_layer
                value: data
              - name: shtelpaas_app_nameserver
                value: http://nameserver1.de-bas-sys.svc.cluster.local:8761/eureka,http://nameserver2.de-bas-sys.svc.cluster.local:8761/eureka,http://nameserver3.de-bas-sys.svc.cluster.local:8761/eureka
              - name: shtelpaas_log_profile
                value: log$de$1.0
              - name: shtelpaas_app_basepkg
                value: com.shtel
              - name: JAVA_OPTS
                value: -Xms3g -Xmx3g -XX:+PrintFlagsFinal -XX:+UnlockDiagnosticVMOptions -XX:NewRatio=2 -XX:ParallelGCThreads=2 -XX:CICompilerCount=2 -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:InitialCodeCacheSize=128m -XX:ReservedCodeCacheSize=256m -XX:MinMetaspaceFreeRatio=20 -XX:MaxMetaspaceFreeRatio=80 -XX:MetaspaceSize=512m -XX:MaxMetaspaceSize=768m -XX:CompressedClassSpaceSize=256m  -XX:MaxDirectMemorySize=256M -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintGCDateStamps -Xloggc:/usr/local/gc.txt -XX:+PrintGCApplicationStoppedTime -XX:+PrintGCApplicationConcurrentTime -XX:+PrintSafepointStatistics -XX:PrintSafepointStatisticsCount=1 -XX:+LogVMOutput -XX:LogFile=/usr/local/vm.txt -XX:-UseBiasedLocking -XX:+LogCompilation -XX:+SafepointTimeout -XX:SafepointTimeoutDelay=500
              - name: shtelpaas_app_config_profile
                value: app$de$1.0
              - name: profiler_collector_ip
                value: 10.145.216.248
              image: ${imagePathPrefix}:${imageName}
              imagePullPolicy: Always
              lifecycle:
                preStop:
                  exec:
                    command:
                    - /bin/sh
                    - -c
                    - /usr/local/paas-common/service_down.sh
              livenessProbe:
                httpGet:
                  httpHeaders: []
                  path: /health
                  port: 8103
                initialDelaySeconds: 120
                periodSeconds: 60
                timeoutSeconds: 10
              name: master
              resources:
                limits:
                  memory: 4096.0Mi
                  cpu: 4000.0m
                requests:
                  memory: 512.0Mi
                  cpu: 512.0m
              volumeMounts:
              - mountPath: /paastmp
                name: paastmp
                readOnly: false
              - mountPath: /data/paas/bas/application/basBizManageApp/log/
                name: app-log-centos
                readOnly: false
            - env:
              - name: CE_CLUSTER_NAME
                value: paas-te-cluster2
              - name: CE_NAMESPACE_NAME
                value: de-bas-app
              - name: CE_WORKLOAD_NAME
                value: bas-biz-manage-app
              - name: CE_SERVICE_NAME
                value: bas-biz-manage-app
              - name: CE_LOG_PATH
                value: /data/paas/bas/application/basBizManageApp/log/*
              - name: CE_LOG_SERVER_ADDR
                value: 10.145.216.133:6230,10.145.216.134:6230,10.145.216.135:6230
              image: hub.paas/paas/filebeat:0.6
              imagePullPolicy: Always
              name: file-beat
              resources:
                limits:
                  memory: 200Mi
                  cpu: 500m
                requests:
                  memory: 40Mi
                  cpu: 10m
              volumeMounts:
              - mountPath: /paastmp
                name: paastmp
                readOnly: false
              - mountPath: /data/paas/bas/application/basBizManageApp/log/
                name: app-log-centos
                readOnly: false
            terminationGracePeriodSeconds: 30
            volumes:
            - emptyDir: {}
              name: paastmp
            - emptyDir: {}
              name: app-log-centos
    workLoadParam:
      id: null
      kind: WorkLoad
      name: bas-biz-manage-app
      type: 0
      description: null
      clusterNameSpace: de-bas-app
      physicsClusterName: paas-te-cluster2
      serviceMonitors:
        bas-biz-manage-app: true
    serviceUnitParams:
    - name: bas-biz-manage-app
    services:
    - apiVersion: v1
      kind: Service
      metadata:
        labels:
          system_serviceUnit: bas-biz-manage-app
          system_workload: bas-biz-manage-app
          system_namespace: de-bas-app
          system_cluster: paas-te-cluster2
        name: bas-biz-manage-app
      spec:
        ports:
        - name: 8103-8103
          port: 8103
          protocol: TCP
          targetPort: 8103
        selector:
          system_serviceUnit: bas-biz-manage-app
          system_workload: bas-biz-manage-app
          system_namespace: de-bas-app
          system_cluster: paas-te-cluster2
    ingresses:
    - apiVersion: extensions/v1beta1
      kind: Ingress
      metadata:
        labels:
          system_serviceUnit: bas-biz-manage-app
          system_workload: bas-biz-manage-app
          system_namespace: de-bas-app
          system_cluster: paas-te-cluster2
        name: bas-biz-manage-app
      spec:
        rules:
        - host: bas-biz-manage-app.bas.de.com
          http:
            paths:
            - backend:
                serviceName: bas-biz-manage-app
                servicePort: 8103
              path: /
    
  • 相关阅读:
    www.a.shifen.com
    gstack pstack strace
    性能分析 函数粒度 函数里的一条语句 汇编 反编译 机器指令 %rbx,%rbp
    taocrypt
    sign
    Python 3.8.0 final¶ Release date: 2019-10-14
    超线程
    Python classes to extract information from the Linux kernel /proc files.
    借助中间件优化代码 将请求RequestId在服务端接收到请求在处理业务逻辑之前生成
    JVM CPU Profiler技术原理及源码深度解析
  • 原文地址:https://www.cnblogs.com/fan-gx/p/11869756.html
Copyright © 2020-2023  润新知