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