正在显示
1 个修改的文件
包含
128 行增加
和
0 行删除
| 1 | +apiVersion: v1 | ||
| 2 | +kind: Service | ||
| 3 | +metadata: | ||
| 4 | + name: allied-creation-manufacture | ||
| 5 | + namespace: mmm-suplus-test | ||
| 6 | + labels: | ||
| 7 | + k8s-app: allied-creation-manufacture | ||
| 8 | +spec: | ||
| 9 | + ports: | ||
| 10 | + - name: "http" | ||
| 11 | + port: 80 | ||
| 12 | + targetPort: 8082 | ||
| 13 | + selector: | ||
| 14 | + k8s-app: allied-creation-manufacture | ||
| 15 | +--- | ||
| 16 | +apiVersion: extensions/v1beta1 | ||
| 17 | +kind: Deployment | ||
| 18 | +metadata: | ||
| 19 | + name: allied-creation-manufacture | ||
| 20 | + namespace: mmm-suplus-test | ||
| 21 | + labels: | ||
| 22 | + k8s-app: allied-creation-manufacture | ||
| 23 | +spec: | ||
| 24 | + replicas: 1 | ||
| 25 | + template: | ||
| 26 | + metadata: | ||
| 27 | + labels: | ||
| 28 | + k8s-app: allied-creation-manufacture | ||
| 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: allied-creation-manufacture | ||
| 47 | + image: 192.168.0.243:5000/mmm/allied-creation-manufacture:dev | ||
| 48 | + imagePullPolicy: Always | ||
| 49 | + ports: | ||
| 50 | + - containerPort: 8082 | ||
| 51 | + env: | ||
| 52 | + - name: POSTGRESQL_DB_NAME | ||
| 53 | + valueFrom: | ||
| 54 | + configMapKeyRef: | ||
| 55 | + name: suplus-config | ||
| 56 | + key: postgresqlalliedcreation.dbname | ||
| 57 | + - name: POSTGRESQL_USER | ||
| 58 | + valueFrom: | ||
| 59 | + configMapKeyRef: | ||
| 60 | + name: suplus-config | ||
| 61 | + key: postgresql.user | ||
| 62 | + - name: POSTGRESQL_PASSWORD | ||
| 63 | + valueFrom: | ||
| 64 | + configMapKeyRef: | ||
| 65 | + name: suplus-config | ||
| 66 | + key: postgresql.password | ||
| 67 | + - name: POSTGRESQL_HOST | ||
| 68 | + valueFrom: | ||
| 69 | + configMapKeyRef: | ||
| 70 | + name: suplus-config | ||
| 71 | + key: postgresql.host | ||
| 72 | + - name: POSTGRESQL_PORT | ||
| 73 | + valueFrom: | ||
| 74 | + configMapKeyRef: | ||
| 75 | + name: suplus-config | ||
| 76 | + key: postgresql.port | ||
| 77 | + - name: REDIS_HOST | ||
| 78 | + valueFrom: | ||
| 79 | + configMapKeyRef: | ||
| 80 | + name: suplus-config | ||
| 81 | + key: redis.ip | ||
| 82 | + - name: REDIS_PORT | ||
| 83 | + valueFrom: | ||
| 84 | + configMapKeyRef: | ||
| 85 | + name: suplus-config | ||
| 86 | + key: redis.port | ||
| 87 | + - name: REDIS_AUTH | ||
| 88 | + value: "" | ||
| 89 | + - name: LOG_LEVEL | ||
| 90 | + value: "debug" | ||
| 91 | + - name: ERROR_BASE_CODE | ||
| 92 | + value: "1" | ||
| 93 | + - name: ERROR_BASE_CODE_MULTIPLE | ||
| 94 | + value: "2000" | ||
| 95 | + - name: ENABLE_KAFKA_LOG | ||
| 96 | + value: "true" | ||
| 97 | + - name: HTTP_PORT | ||
| 98 | + value: "8082" | ||
| 99 | + - name: SERVICE_ENV | ||
| 100 | + value: "test" | ||
| 101 | + - name: SUPLUS_ADMIN_BASE_HOST | ||
| 102 | + value: "http://suplus-admin-base-dev.fjmaimaimai.com" | ||
| 103 | + - name: ALLIED_CREATION_GATEWAY_HOST | ||
| 104 | + value: "https://allied-creation-gateway-test.fjmaimaimai.com" | ||
| 105 | + - name: ALLIED_CREATION_USER_HOST | ||
| 106 | + value: "https://allied-creation-user-test.fjmaimaimai.com" | ||
| 107 | + - name: ALLIED_CREATION_COOPERATION_HOST | ||
| 108 | + value: "https://allied-creation-cooperation-test.fjmaimaimai.com" | ||
| 109 | + - name: ALLIED_CREATION_BASIC_HOST | ||
| 110 | + value: "https://allied-creation-basic-test.fjmaimaimai.com" | ||
| 111 | + - name: ALLIED_CREATION_MANUFACTURE_HOST | ||
| 112 | + value: "http://allied-creation-manufacture-test.fjmaimaimai.com" | ||
| 113 | + - name: SMS_SERVE_HOST | ||
| 114 | + value: "https://sms.fjmaimaimai.com:9897" | ||
| 115 | + - name: SUPLUS_SALE_APP | ||
| 116 | + value: "http://suplus-sale-app-gateway-test.fjmaimaimai.com" | ||
| 117 | + - name: MANUFACTURE_DEFAULT_COMPANYID | ||
| 118 | + value: "23" | ||
| 119 | + - name: MANUFACTURE_DEFAULT_ORGID | ||
| 120 | + value: "487" | ||
| 121 | + - name: MANUFACTURE_DEFAULT_WORKSHOPID | ||
| 122 | + value: "28" | ||
| 123 | + - name: MANUFACTURE_PRODUCT_TYPE | ||
| 124 | + value: "SG,SG" | ||
| 125 | + - name: MQTT_HOST | ||
| 126 | + value: "47.97.5.102" | ||
| 127 | + - name: MQTT_PORT | ||
| 128 | + value: "6000" |
-
请 注册 或 登录 后发表评论