zoukankan      html  css  js  c++  java
  • 一个小栗子

    apiVersion: apps/v1 
    kind: Deployment
    metadata:
      name: ebdp-interface-service
      namespace: ebdp-bigdata
    spec:
      replicas: 2
      minReadySeconds: 40
      strategy:
        rollingUpdate:
          maxSurge: 1
          maxUnavailable: 1
        type: RollingUpdate
      selector:
        matchLabels:
          app: ebdp-interface-service
      template:
        metadata:
          labels:
            app: ebdp-interface-service
            date: createdate
        spec:
          nodeSelector:
            nodetype: ebdp
          hostAliases:
            - ip: "192.168.6.120"
              hostnames: 
              - "www.baidu.com"
          containers:
            - name: ebdp-interface-service
              image: souhu.com/ebdp-bigdata-prod/ebdp-interface-service:1.2.7.1
              imagePullPolicy: Always
              resources:
                requests: 
                  cpu: 4000m
                  memory: 4Gi
                limits:
                  cpu: 16000m
                  memory: 8Gi
              ports:
              - name: ebdp-interface
                containerPort: 8080
              # 就绪检测
              readinessProbe:
                failureThreshold: 3
                tcpSocket:
                  port: 8080
                initialDelaySeconds: 30
                periodSeconds: 30
              # 优雅退出
              lifecycle: 
                preStop: 
                  exec: 
                   command: 
                    - sleep
                    - 30
              volumeMounts:
              - name: ebdp-interface-service-log
                mountPath: /logs/
          terminationGracePeriodSeconds : 60
          volumes:
          - name: ebdp-interface-service-log
            hostPath:
              path: /opt/ebdp-interface-service/
    

    现在学习还不晚;
  • 相关阅读:
    IfcRoot
    IfcMaterial
    IfcDirection
    IfcAxis2Placement3D
    IfcBeam属性
    osg::Node源码
    不规则形状的Ifc构件顶点坐标获取
    不规则的Ifc构件顶点提取方法
    osg::Group源码
    Qt 图片缩放参数计算
  • 原文地址:https://www.cnblogs.com/ainimore/p/14412327.html
Copyright © 2011-2022 走看看