From 6809aa625f2b363c6eb14828ed07b12caabc0a99 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E5=88=98=E6=B4=AA=E9=9D=92?= Date: Sat, 24 Apr 2021 12:05:01 +0800 Subject: [PATCH] =?utf8?q?style:=20newcapec-test=E7=8E=AF=E5=A2=83?= =?utf8?q?=E7=9A=84=E9=83=A8=E7=BD=B2=E7=89=88=E6=9C=AC=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../4.0.user-data-service-installer.yaml | 2 +- .../9.api-docs-installer.yaml | 52 +++++++++++++++++++ 2 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 project/newcapec-test/k8s-rancher/1.authx-service/2.user-data-service/9.api-docs-installer.yaml diff --git a/project/newcapec-test/k8s-rancher/1.authx-service/2.user-data-service/4.0.user-data-service-installer.yaml b/project/newcapec-test/k8s-rancher/1.authx-service/2.user-data-service/4.0.user-data-service-installer.yaml index ab538a4..41fb641 100644 --- a/project/newcapec-test/k8s-rancher/1.authx-service/2.user-data-service/4.0.user-data-service-installer.yaml +++ b/project/newcapec-test/k8s-rancher/1.authx-service/2.user-data-service/4.0.user-data-service-installer.yaml @@ -28,7 +28,7 @@ spec: containers: - name: user-data-service-installer # 若使用了学校搭设的私有仓库,请修改 - image: harbor.supwisdom.com/goa/installer:1.1 + image: harbor.supwisdom.com/goa/installer:1.2.0-SNAPSHOT imagePullPolicy: Always envFrom: - configMapRef: diff --git a/project/newcapec-test/k8s-rancher/1.authx-service/2.user-data-service/9.api-docs-installer.yaml b/project/newcapec-test/k8s-rancher/1.authx-service/2.user-data-service/9.api-docs-installer.yaml new file mode 100644 index 0000000..b8f48eb --- /dev/null +++ b/project/newcapec-test/k8s-rancher/1.authx-service/2.user-data-service/9.api-docs-installer.yaml @@ -0,0 +1,52 @@ +# 9.api-docs-installer.yaml + +# 依赖平台OpenAPI的部署 + +--- +apiVersion: v1 +kind: ConfigMap +metadata: + namespace: user-data-service-test + name: api-docs-installer-env +data: + ## + # 平台OpenAPI的外网访问地址, + # **修改** 学校的根域名 + POA_SERVER_URL: http://poa-test.paas.newcapec.cn + + # **修改** poa-sa 服务的k8s内部地址 + POA_SA_SERVER_URL: http://poa-sa-test.paas.newcapec.cn + + USER_API_SERVER_URL: http://user-data-service-poa-svc.user-data-service-test.svc.cluster.local:8080 + + +--- +apiVersion: batch/v1 +kind: Job +metadata: + namespace: user-data-service-test + name: api-docs-installer +spec: + completions: 1 + parallelism: 1 + template: + metadata: + labels: + app: api-docs-installer + spec: + restartPolicy: Never + containers: + - name: api-docs-installer + # 若使用了学校搭设的私有仓库,请修改 + image: harbor.supwisdom.com/goa/api-docs-installer:1.2.0-SNAPSHOT + imagePullPolicy: Always + envFrom: + - configMapRef: + name: api-docs-installer-env + # resources: + # requests: + # memory: "256Mi" + # limits: + # memory: "256Mi" + imagePullSecrets: + - name: harbor-registry -- 2.17.1