后端大佬给我配置的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

  

转载于:https://www.cnblogs.com/smzd/p/10905584.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值