部署前端
部署 choerodon front
env:
open:
API_HOST: http://api.example.choerodon.io
CLIENT_ID: choerodon
DEVOPS_HOST: ws://devops.example.choerodon.io
FILE_SERVER: http://minio.example.choerodon.io
HEADER_TITLE_NAME: Choerodon
HTTP: http
WEBSOCKET_SERVER: ws://notify.example.choerodon.io
COOKIE_SERVER:
enabled: true
host: c7n.example.choerodon.io
preJob:
preConfig:
db:
dbname: base_service
enabledelete: true
host: c7n-mysql.c7n-system.svc
password: password
port: 3306
upattrs: sort,parent_id
service:
-
- 编写参数配置文件
c7n-front-client.yaml
env:
MYSQL_HOST: c7n-mysql.c7n-system.svc
MYSQL_PASS: password
MYSQL_PORT: 3306
MYSQL_USER: root
SQL_SCRIPT: |
INSERT INTO base_service.oauth_client (name,organization_id,resource_ids,secret,scope,authorized_grant_types,web_server_redirect_uri,access_token_validity,refresh_token_validity,additional_information,auto_approve,object_version_number,created_by,creation_date,last_updated_by,last_update_date)VALUES('choerodon',1,'default','secret','default','password,implicit,client_credentials,authorization_code,refresh_token','http://c7n.example.choerodon.io',3600,3600,'{}','default',1,0,NOW(),0,NOW());
curl $(kubectl get svc choerodon-front -o jsonpath="{.spec.clusterIP}" -n c7n-system)