From: 刘洪青 Date: Mon, 18 Jan 2021 14:13:21 +0000 (+0800) Subject: chore: user-authorization-service,api-docs 部署yaml X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=4f900abff24727961a873f0c506b0ac249c692a9;p=institute%2Fdeploy-authx-service.git chore: user-authorization-service,api-docs 部署yaml --- diff --git a/deploy-manifests/k8s-rancher/1.authx-service/3.user-authorization-service/9.api-docs-installer.yaml b/deploy-manifests/k8s-rancher/1.authx-service/3.user-authorization-service/9.api-docs-installer.yaml new file mode 100644 index 0000000..9775317 --- /dev/null +++ b/deploy-manifests/k8s-rancher/1.authx-service/3.user-authorization-service/9.api-docs-installer.yaml @@ -0,0 +1,52 @@ +# 9.api-docs-installer.yaml + +# 依赖平台OpenAPI的部署 + +--- +apiVersion: v1 +kind: ConfigMap +metadata: + namespace: user-authorization-service + name: api-docs-installer-env +data: + ## + # 平台OpenAPI的外网访问地址, + # **修改** 学校的根域名 + POA_SERVER_URL: http://poa.paas.xxx.edu.cn + + # **修改** poa-sa 服务的k8s内部地址 + POA_SA_SERVER_URL: http://poa-sa-svc.poa.svc.cluster.local:8443 + + USER_AUTHZ_API_SERVER_URL: http://user-authorization-poa-svc.user-authorization-service.svc.cluster.local:8080 + + +--- +apiVersion: batch/v1 +kind: Job +metadata: + namespace: user-authorization-service + 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/user-authorization-service/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