作者 Administrator

增加新文件

  1 +apiVersion: v1
  2 +kind: Service
  3 +metadata:
  4 + name: mmmgodevp
  5 + namespace: mmm-suplus-dev
  6 + labels:
  7 + k8s-app: mmmgodevp
  8 +spec:
  9 + ports:
  10 + - name: "http"
  11 + port: 80
  12 + targetPort: 8082
  13 + selector:
  14 + k8s-app: mmmgodevp
  15 +---
  16 +apiVersion: extensions/v1beta1
  17 +kind: Deployment
  18 +metadata:
  19 + name: mmmgodevp
  20 + namespace: mmm-suplus-dev
  21 + labels:
  22 + k8s-app: mmmgodevp
  23 +spec:
  24 + replicas: 1
  25 + template:
  26 + metadata:
  27 + labels:
  28 + k8s-app: mmmgodevp
  29 + spec:
  30 + affinity:
  31 + nodeAffinity:
  32 + preferredDuringSchedulingIgnoredDuringExecution:
  33 + - preference: {}
  34 + weight: 100
  35 + requiredDuringSchedulingIgnoredDuringExecution:
  36 + nodeSelectorTerms:
  37 + - matchExpressions:
  38 + - key: kubernetes.io/hostname
  39 + operator: In
  40 + values:
  41 + - cn-hangzhou.i-bp1djh1xn7taumbue1ze
  42 + - cn-hangzhou.i-bp1djh1xn7taumbue1zd
  43 + - cn-hangzhou.i-bp1euf5u1ph9kbhtndhb
  44 + - cn-hangzhou.i-bp1hyp5oips9cdwxxgxy
  45 + containers:
  46 + - name: mmmgodevp
  47 + image: 192.168.0.243:5000/mmm/godevp:dev
  48 + imagePullPolicy: Always
  49 + ports:
  50 + - containerPort: 8082
  51 + volumeMounts:
  52 + - mountPath: /opt/logs
  53 + name: accesslogs
  54 + env:
  55 + - name: HTTP_PORT
  56 + value: "8082"
  57 + - name: POSTGRESQL_DB_NAME
  58 + value: "godevp_dev"
  59 + - name: POSTGRESQL_USER
  60 + value: "postgres"
  61 + - name: POSTGRESQL_PASSWORD
  62 + value: "eagle1010"
  63 + - name: POSTGRESQL_HOST
  64 + value: "114.55.200.59"
  65 + - name: POSTGRESQL_PORT
  66 + value: "31543"
  67 + - name: LOG_LEVEL
  68 + value: "debug"
  69 + - name: ERROR_BASE_CODE
  70 + value: "1"
  71 + - name: ERROR_BASE_CODE_MULTIPLE
  72 + value: "1000"
  73 + - name: DEFAULT_GUEST_COMPANY
  74 + value: "10011"
  75 + - name: ABILITY_SERVICE_HOST
  76 + value: "https://suplus-worth-app-gateway-dev.fjmaimaimai.com"
  77 + - name: MMM_OPEN_API_SERVICE_HOST
  78 + value: "http://mmm-open-api-dev.fjmaimaimai.com"
  79 + - name: UCENTER_SERVICE_HOST
  80 + value: "https://suplus-ucenter-dev.fjmaimaimai.com"
  81 + - name: BUSINESS_ADMIN_SERVICE_HOST
  82 + valueFrom:
  83 + configMapKeyRef:
  84 + name: suplus-config
  85 + key: service.businessadmin
  86 + - name: REDIS_HOST
  87 + valueFrom:
  88 + configMapKeyRef:
  89 + name: suplus-config
  90 + key: redis.ip
  91 + - name: REDIS_PORT
  92 + valueFrom:
  93 + configMapKeyRef:
  94 + name: suplus-config
  95 + key: redis.port
  96 + - name: REDIS_AUTH
  97 + value: ""
  98 + volumes:
  99 + - name: accesslogs
  100 + emptyDir: {}