Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
tingweiwang
/
configmap-kpl
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 80a52dbb
authored
Jan 26, 2021
by
王庭威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加autodl jinjin2模板配置
1 parent
6f5f7b8a
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
22 deletions
autodl/cfg-autodl-admin-frontend.yaml → autodl/cfg-autodl-admin-frontend.yaml.j2
autodl/cfg-autodl-backend.yaml → autodl/cfg-autodl-backend.yaml.j2
autodl/cfg-autodl-competition.yaml → autodl/cfg-autodl-competition.yaml.j2
autodl/cfg-autodl-frontend.yaml → autodl/cfg-autodl-frontend.yaml.j2
autodl/cfg-autodl-nginx.yaml → autodl/cfg-autodl-nginx.yaml.j2
autodl/cfg-autodl-admin-frontend.yaml
→
autodl/cfg-autodl-admin-frontend.yaml
.j2
View file @
80a52db
...
...
@@ -2,9 +2,9 @@ apiVersion: v1
data:
production-base.js: |
const productionHost = {
API_HOST: '
autodl_admin_backend
',
WS_HOST: '
autodl_admin_back_socket
',
CUSTOM_SOURCE: '
custom_source
',
API_HOST: '
{{ autodl_admin_backend }}
',
WS_HOST: '
{{ autodl_admin_back_socket }}
',
CUSTOM_SOURCE: '
{{ custom_source }}
',
}
kind: ConfigMap
metadata:
...
...
autodl/cfg-autodl-backend.yaml
→
autodl/cfg-autodl-backend.yaml
.j2
View file @
80a52db
...
...
@@ -13,33 +13,33 @@ data:
monitor_port: "8920"
redis:
addr: "
redis_host
"
password: "
redis_password
"
addr: "
{{ redis_host }}
"
password: "
{{ redis_password }}
"
database:
type: "mysql"
host:
mysql_host
host:
{{ mysql_host }}
name: autocnn
user:
mysql_user
password:
mysql_password
user:
{{ mysql_user }}
password:
{{ mysql_password }}
url: "%s:%s@tcp(%s)/%s?charset=utf8mb4&parseTime=True&loc=Local"
GIT_ROOT: /mnt/ceph/git
AUTOCNN_ES_URL:
autodl_es
AUTOCNN_ES_URL:
{{ autodl_es }}
rpc:
core: "core--server.autodl.svc.cluster.local:30100"
function_switch:
private_deploy:
deploy_is_private
private_deploy:
{{ deploy_is_private }}
url:
adl_backend:
autodl_backend
adl_admin_backend:
autodl_admin_backend
adl_backend:
{{ autodl_backend }}
adl_admin_backend:
{{ autodl_admin_backend }}
docker:
# 用于加载镜像的公网 / 内网harbor仓库地址
registry_host:
hb_host
registry_host:
{{ hb_host }}
registry_group_name: kpl_k8s
kind: ConfigMap
metadata:
...
...
autodl/cfg-autodl-competition.yaml
→
autodl/cfg-autodl-competition.yaml
.j2
View file @
80a52db
...
...
@@ -2,7 +2,7 @@ apiVersion: v1
data:
setting.py: |
NFS_ROOT = "/mnt/ceph"
DB = "mysql+pymysql://
mysql_user:mysql_password@mysql_host
/autocnn"
DB = "mysql+pymysql://
{{ mysql_user }}:{{ mysql_password }}@{{ mysql_host }}
/autocnn"
kind: ConfigMap
metadata:
name: cfg-autodl-competition
...
...
autodl/cfg-autodl-frontend.yaml
→
autodl/cfg-autodl-frontend.yaml
.j2
View file @
80a52db
...
...
@@ -2,11 +2,11 @@ apiVersion: v1
data:
production-base.js: |
const productionHost = {
API_HOST: '
autodl_backend
/api/v1',
BROWSER_HOST: '
autodl_file
/api/v1',
WS_HOST: '
autodl_back_socket
/api/v1',
TB_HOST: '
autodl_backend
',
CUSTOM_SOURCE: '
custom_source
',
API_HOST: '
{{ autodl_backend }}
/api/v1',
BROWSER_HOST: '
{{ autodl_file }}
/api/v1',
WS_HOST: '
{{ autodl_back_socket }}
/api/v1',
TB_HOST: '
{{ autodl_backend }}
',
CUSTOM_SOURCE: '
{{ custom_source }}
',
}
kind: ConfigMap
metadata:
...
...
autodl/cfg-autodl-nginx.yaml
→
autodl/cfg-autodl-nginx.yaml
.j2
View file @
80a52db
...
...
@@ -59,7 +59,7 @@ data:
}
location ~ /tensorboard/proxy/([-_.:\w]+)/(.*) {
resolver
kube-dns.kube-system.svc.cluster.local
valid=5s;
resolver
{{ K8S_DNS_SVC }}
valid=5s;
rewrite_log on;
rewrite ^/tensorboard/proxy/([-_.:\w]+)/(.*) /$2 break;
proxy_pass http://$1;
...
...
@@ -70,7 +70,7 @@ data:
}
location ~ /notebook/proxy/([-_.:\w]+)/(.*) {
resolver
kube-dns.kube-system.svc.cluster.local
valid=5s;
resolver
{{ K8S_DNS_SVC }}
valid=5s;
rewrite_log on;
rewrite ^/notebook/proxy/([-_.:\w]+)/(.*) /notebook/proxy/$1/$2 break;
proxy_pass http://$1;
...
...
@@ -82,7 +82,7 @@ data:
}
location ~ /jupyterlab/proxy/([-_.:\w]+)/(.*) {
resolver
kube-dns.kube-system.svc.cluster.local
valid=5s;
resolver
{{ K8S_DNS_SVC }}
valid=5s;
rewrite_log on;
rewrite ^/jupyterlab/proxy/([-_.:\w]+)/(.*) /jupyterlab/proxy/$1/$2 break;
proxy_pass http://$1.autodl.svc.cluster.local:8888;
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment