审查视图

deploy/k8s/test/partner.yaml 2.4 KB
tangxvhui authored
1 2 3
apiVersion: v1
kind: Service
metadata:
tangxvhui authored
4
  name: mmm-partnermg
tangxvhui authored
5 6
  namespace: mmm-suplus-test
  labels:
tangxvhui authored
7
    k8s-app: mmm-partnermg
tangxvhui authored
8 9 10 11 12 13
spec:
  ports:
    - name: "http"
      port: 80
      targetPort: 8082
  selector:
tangxvhui authored
14
    k8s-app: mmm-partnermg
tangxvhui authored
15 16 17 18
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
tangxvhui authored
19
  name: mmm-partnermg
tangxvhui authored
20 21
  namespace: mmm-suplus-test
  labels:
tangxvhui authored
22
    k8s-app: mmm-partnermg
tangxvhui authored
23 24 25 26 27
spec:
  replicas: 1
  template:
    metadata:
      labels:
tangxvhui authored
28
        k8s-app: mmm-partnermg
tangxvhui authored
29 30 31 32 33 34 35 36 37 38 39 40 41 42
    spec:
      affinity:
        nodeAffinity:
          preferredDuringSchedulingIgnoredDuringExecution:
            - preference: {}
              weight: 100
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
              - matchExpressions:
                  - key: kubernetes.io/hostname
                    operator: In
                    values:
                      - cn-hangzhou.i-bp1hyp5oips9cdwxxgxy
      containers:
tangxvhui authored
43
        - name: mmm-partnermg
Administrator authored
44
          image: 192.168.0.243:5000/mmm/partnermg:dev
tangxvhui authored
45 46 47 48 49 50 51 52
          imagePullPolicy: Always
          ports:
            - containerPort: 8082
          volumeMounts:
            - mountPath: /opt/logs
              name: accesslogs
          env:
            - name: POSTGRESQL_DB_NAME
tangxvhui authored
53
              value: "partner_test"
tangxvhui authored
54 55 56
            - name: POSTGRESQL_USER
              value: "postgres"
            - name: POSTGRESQL_PASSWORD
Administrator authored
57
              value: "eagle1010"
tangxvhui authored
58
            - name: POSTGRESQL_HOST
Administrator authored
59
              value: "114.55.200.59"
tangxvhui authored
60
            - name: POSTGRESQL_PORT
Administrator authored
61
              value: "31543"
tangxvhui authored
62 63
            - name: LOG_LEVEL
              value: "debug"
Administrator authored
64 65 66 67
            - name: ERROR_BASE_CODE
              value: "1"
            - name: ERROR_BASE_CODE_MULTIPLE
              value: "1000"
68
            - name: UCENTER_HOST
唐旭辉 authored
69
              value: "https://suplus-ucenter-test.fjmaimaimai.com"
70 71 72 73 74 75
            - name: UCENTER_SECRET
              value: "cykbjnfqgctn"
            - name: UCENTER_APP_KEY
              value: "39aefef9e22744a3b2d2d3791824ae7b"
            - name: UCENTER_CHECK_ALT
              value: "rsF0pL!6DwjBO735"
唐旭辉 authored
76 77
            - name: BUSINESS_ADMIN_HOST
              value: "http://suplus-business-admin-test.fjmaimaimai.com"
唐旭辉 authored
78 79
            - name: KAFKA_HOST
              value: "106.52.15.41:9092"
唐旭辉 authored
80 81
            - name: KAFKA_CONSUMER_ID
              value: "partnermg_test"
tangxvhui authored
82 83
      volumes:
        - name: accesslogs
tangxvhui authored
84
          emptyDir: {}