- 部署前端
- 添加choerodon chart仓库
- 部署 choerodon front
部署前端
添加choerodon chart仓库
helm repo add c7n https://openchart.choerodon.com.cn/choerodon/c7n/helm repo update
部署 choerodon front
若需了解项目详情及各项参数含义,请移步 choerodon/choerodon-front。
编写参数配置文件
choerodon-front.yaml
env:open:API_HOST: http://api.example.choerodon.ioCLIENT_ID: choerodonDEVOPS_HOST: ws://devops.example.choerodon.ioFILE_SERVER: http://minio.example.choerodon.ioHEADER_TITLE_NAME: ChoerodonHTTP: httpWEBSOCKET_SERVER: ws://notify.example.choerodon.ioCOOKIE_SERVER:CUSTOM_THEME_COLOR:ingress:enabled: truehost: c7n.example.choerodon.iopreJob:preConfig:db:dbname: base_serviceenabledelete: truehost: c7n-mysql.c7n-system.svcpassword: passwordport: 3306upattrs: sort,parent_idusername: choerodonservice:enabled: true
- 部署服务
helm install c7n/choerodon-front \-f choerodon-front.yaml \--name choerodon-front \--version 0.19.1 \--namespace c7n-system
添加oauth client
- 编写参数配置文件
c7n-front-client.yaml
- 编写参数配置文件
env:MYSQL_HOST: c7n-mysql.c7n-system.svcMYSQL_PASS: passwordMYSQL_PORT: 3306MYSQL_USER: rootSQL_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());
- 部署服务
helm install c7n/mysql-client \-f c7n-front-client.yaml \--version 0.1.0 \--name c7n-front-client \--namespace c7n-system
验证部署
- 验证命令
curl $(kubectl get svc choerodon-front -o jsonpath="{.spec.clusterIP}" -n c7n-system)
- 出现以下类似信息即为成功部署
<!DOCTYPE html><html><head><meta http-equiv="Content-type"content="text/html; charset=utf-8"><title>Choerodon</title><link rel="shortcut icon"href="favicon.ico"></head><body><div id="app"></div><script type="text/javascript"src="app/vendor_19e4b950.js"></script><script type="text/javascript"src="app/main_19e4b950.js"></script></body></html>
