Commit 80a52dbb by 王庭威

增加autodl jinjin2模板配置

1 parent 6f5f7b8a
......@@ -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:
......
......@@ -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:
......
......@@ -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
......
......@@ -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:
......
......@@ -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;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!