zoukankan      html  css  js  c++  java
  • 后端大佬给我配置的deploy serves文件以便学习

    serves

    apiVersion: v1
    kind: Service
    metadata:
      labels:
        com.wise2c.service: ui-ll-2
        com.wise2c.stack: wisecloud-controller
      name: ui-ll-2
      namespace: wisecloud-controller
    spec:
      ports:
      - name: tcp-9998-80
        port: 9998
        protocol: TCP
        targetPort: 80
        nodePort: 30999
      selector:
        com.wise2c.service: ui-ll-2
        com.wise2c.stack: wisecloud-controller
      type: NodePort
    

      deploy

    apiVersion: extensions/v1beta1
    kind: Deployment
    metadata:
      annotations:
        deployment.kubernetes.io/revision: "1"
      generation: 1
      labels:
        com.wise2c.service: ui-ll-2
        com.wise2c.stack: wisecloud-controller
      name: ui-ll-2
      namespace: wisecloud-controller
      resourceVersion: "2295344"
    spec:
      progressDeadlineSeconds: 2147483647
      replicas: 1
      selector:
        matchLabels:
          com.wise2c.service: ui-ll-2
          com.wise2c.stack: wisecloud-controller
      strategy:
        rollingUpdate:
          maxSurge: 1
          maxUnavailable: 1
        type: RollingUpdate
    template:
        metadata:
          creationTimestamp: null
          labels:
            com.wise2c.service: ui-ll-2
            com.wise2c.stack: wisecloud-controller
          name: ui
        spec:
          nodeSelector:
            com.wise2c.dev.ui: ll
          affinity:
            nodeAffinity:
              requiredDuringSchedulingIgnoredDuringExecution:
                nodeSelectorTerms:
                - matchExpressions:
                  - key: io.wise2c.service.controller
                    operator: Exists
          containers:
          - envFrom:
            - configMapRef:
                name: wisecloud-config
            - secretRef:
                name: wisecloud-secret
            image: 
     imagePullPolicy: Always
            name: ui-ll-2
            resources: {}
            terminationMessagePath: /dev/termination-log
            terminationMessagePolicy: File
          dnsPolicy: ClusterFirst
          hostNetwork: true
    status:
      availableReplicas: 1
      conditions:
      - lastTransitionTime: 2019-05-21T10:23:03Z
        lastUpdateTime: 2019-05-21T10:23:03Z
        message: Deployment has minimum availability.
        reason: MinimumReplicasAvailable
        status: "True"
        type: Available
      observedGeneration: 1
      readyReplicas: 1
      replicas: 3
      updatedReplicas: 1
    

      

  • 相关阅读:
    npm查找全局安装包命令
    sublime3添加对react代码检查
    Android开发——搭建最新版本的Android开发环境
    git无法定位程序输入点libiconv
    Java学习----finally块
    Java学习----有风险的代码(异常)
    Java学习----集合函数
    Java学习----Math函数
    Java学习----日期函数
    Java学习----字符串函数
  • 原文地址:https://www.cnblogs.com/smzd/p/10905584.html
Copyright © 2011-2022 走看看