yaml文件

apiVersion: apps/v1beta1
kind: Deployment
metadata:
  annotations:
    deployment.kubernetes.io/revision: '8'
  labels:
    ownerName: deplatmnt
    system_cluster: paas-te-cluster2
    system_ingress: shtel-paas-storage
    system_namespace: de-plat-app
    system_serviceUnit: shtel-paas-storage
    system_workload: shtel-paas-storage
  name: shtel-paas-storage
  namespace: de-plat-app
spec:
  minReadySeconds: 180
  replicas: 1
  selector:
    matchLabels:
      ownerName: deplatmnt
      system_cluster: paas-te-cluster2
      system_ingress: shtel-paas-storage
      system_namespace: de-plat-app
      system_serviceUnit: shtel-paas-storage
      system_workload: shtel-paas-storage
  template:
    metadata:
      labels:
        ownerName: deplatmnt
        system_cluster: paas-te-cluster2
        system_ingress: shtel-paas-storage
        system_namespace: de-plat-app
        system_serviceUnit: shtel-paas-storage
        system_workload: shtel-paas-storage
    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: deplat
        - name: shtelpaas_app_name
          value: shtelPaasStorage
        - name: shtelpaas_service_layer
          value: biz
        - name: shtelpaas_app_nameserver
          value: http://nameserver1.de-plat-sys.svc.cluster.local:8761/eureka,http://nameserver2.de-plat-sys.svc.cluster.local:8761/eureka,http://nameserver3.de-plat-sys.svc.cluster.local:8761/eureka
        - name: shtelpaas_log_profile
          value: log$de$1.0
        - name: shtelpaas_app_basepkg
          value: com.shtel.paas.service.storage
        - 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: hub.paas/de-plat-app/shtel-paas-storage:shtel-paas-service-storage-0.0.1-SNAPSHOT-paaspkg.tar-1574927535801
        imagePullPolicy: Always
        lifecycle:
          preStop:
            exec:
              command:
              - /bin/sh
              - -c
              - /usr/local/paas-common/service_down.sh
        livenessProbe:
          failureThreshold: 3
          httpGet:
            path: /health
            port: 8999
            scheme: HTTP
          initialDelaySeconds: 120
          periodSeconds: 60
          successThreshold: 1
          timeoutSeconds: 10
        name: master
        resources:
          limits:
            cpu: '4'
            memory: 4Gi
          requests:
            cpu: 512m
            memory: 4Gi
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /paastmp
          name: paastmp
        - mountPath: /usr/local/shtelPaasStorage/log/
          name: app-log-centos
      - env:
        - name: CE_CLUSTER_NAME
          value: paas-te-cluster2
        - name: CE_NAMESPACE_NAME
          value: de-plat-app
        - name: CE_WORKLOAD_NAME
          value: shtel-paas-storage
        - name: CE_SERVICE_NAME
          value: shtel-paas-storage
        - name: CE_LOG_PATH
          value: /usr/local/shtelPaasStorage/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:
            cpu: 500m
            memory: 200Mi
          requests:
            cpu: 10m
            memory: 40Mi
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /paastmp
          name: paastmp
        - mountPath: /usr/local/shtelPaasStorage/log/
          name: app-log-centos
      dnsPolicy: ClusterFirst
      hostAliases:
      - hostnames:
        - t-crm-paas-app-006
        ip: 10.145.208.173
      - hostnames:
        - t-crm-paas-app-001
        ip: 10.145.208.162
      nodeSelector:
        de_node-group: '1'
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext: {}
      terminationGracePeriodSeconds: 30
      volumes:
      - emptyDir: {}
        name: paastmp
      - emptyDir: {}
        name: app-log-centos
posted @ 2019-11-28 20:16  博客萨斯州  阅读(308)  评论(0编辑  收藏  举报