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 662e7b6a
authored
Mar 24, 2022
by
ningfd
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into 'develop'
Master See merge request
!13
2 parents
70291f7e
b2253248
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
80 additions
and
5 deletions
gpuhub/cfg-frps.yaml.j2
gpuhub/cfg-gpuhub-server.yaml.j2
kpl/cfg-kpl-backend.yaml.j2
kpl/cfg-kpl-edu-frontend.yaml
kpl/cfg-kpl-frontend.yaml.j2
kpl/cfg-kpl-nginx.yaml.j2
gpuhub/cfg-frps.yaml.j2
View file @
662e7b6
...
...
@@ -11,6 +11,6 @@ data:
log_level = info
authentication_method = token
token = seetatech666
allow_ports =
34000-4
5000
allow_ports =
7001-7099,34000-5
5000
max_ports_per_client = 5
gpuhub/cfg-gpuhub-server.yaml.j2
View file @
662e7b6
...
...
@@ -41,4 +41,8 @@ data:
# "35000-45000" 指 35000 到 45000共计10001个端口
allow_ports: "35000-45000"
token: "seetatech666"
minio_credentials:
endpoint: "{{ minio_api_host }}"
access_key_id: "{{ minio_user }}"
secret_access_key: "{{ minio_password }}"
\ No newline at end of file
kpl/cfg-kpl-backend.yaml.j2
View file @
662e7b6
...
...
@@ -61,22 +61,33 @@ data:
rpc:
core: "core--server.autodl.svc.cluster.local:30100"
user_center: "
user-center--rpc-server.autodl.svc.cluster.local:10001
"
user_center: "
kpl--backend.kpl.svc.cluster.local:10000
"
quota: "kpl--quota-rpc-server.kpl.svc.cluster.local:9999"
iot_cloud: "kpl--iot-server.kpl.svc.cluster.local:8000" # 没有开启iot功能不会读取此配置
mqtt:
address: {{ mqtt_host }} #127.0.0.1:1883 # 没有开启iot功能不会读取此配置
address_client: {{ mqtt_client_host }} # 172.123.123.123:1883, 用于mqtt暴露在外部的连接地址, 如果为空, 则使用address
message_queue:
host: rabbit_mq_host # 默认值: rabbitmq.middleware.svc.cluster.local:5672
user: rabbit_mq_user # 默认值: admin
password: rabbit_mq_password # 默认值: seetatech123!!!
feature_control:
iot: {{ iot_boolean }} # 默认false, 不开启边缘设备功能
open_grafana: {{ grafana_boolean }} # 默认false, 不开启grafana功能
disable_i18n: {{ disable_i18n_boolean }} # 默认false,开启国际化功能
notebook_grafana_url: {{ notebook_grafana_url_string }}# 容器grafana跳转url http://10.69.75.115:8883/d/W-Y9JdKGk/pod_metric_dashboard?orgId=1&var-pod_prefix=%s&var-pod=%s
notebook_grafana_url: {{ notebook_grafana_url_string }}
# 容器grafana跳转url http://10.69.75.115:8883/d/W-Y9JdKGk/pod_metric_dashboard?orgId=1&var-pod_prefix=%s&var-pod=%s
node_grafana_url: {{ node_grafana_url_string }} # node节点grafana跳转url http://10.69.75.115:8883/d/9CWBz0bik/node-exporter-kpl?orgId=1&var-job=node-exporter&var-hostname=All&var-node=%s
use_fake_metric: {{ use_fake_metric_string }} # CPU,GPU,MEM 代表随机生成 cpu, gpu, mem的使用率, 可以只开启需要的类型, 以逗号分割
temp_oidc_create: {{ temp_oidc_create_boolean }} # 默认false,如果需要开启则为true
auto_stop_tasks_when_user_assets_is_empty: auto_stop_tasks_when_user_assets_is_empty_boolean # 当用户算力为0时, 自动停止所有该用户的任务, 默认false,如果需要开启则为true
open_cluster_monitor: true # 是否开启集群监控功能
open_gpu_share: true # 是否开启gpu share功能
system_header: # 是否显示某个子系统的入口
- "train" # 显示训练平台相关内容
- "inference" # 显示推理平台相关内容
temp_oidc_create:
create_from: {{ create_from_string }} #对应的OIDC登录名称 kplsso
...
...
kpl/cfg-kpl-edu-frontend.yaml
View file @
662e7b6
...
...
@@ -10,7 +10,6 @@ data:
'apiTestUrl': `${host}`,
'adminUrl': `${host}/admin/login`,
}
# const kplStream = 'kpl_stream'
kind
:
ConfigMap
metadata
:
name
:
cfg-kpl-edu-frontend
...
...
kpl/cfg-kpl-frontend.yaml.j2
View file @
662e7b6
...
...
@@ -10,6 +10,20 @@ data:
'apiTestUrl': `${host}`,
'adminUrl': `${host}/admin/login`,
}
//推理平台
const inferenceHost = {
'baseUrl': `${host}/api/v1/ip`,
'adminUrl': `${host}/api/v1/admin/ip`,
'baseWebSocket': `${host.replace('http', 'ws')}/api/v1/ip`,
}
//教学平台
const educationHost = {
'hostUrl': `${host}`,
'baseUrl': `${host}/edu/v1`,
'adminUrl': `${host}/edu/v1/admin`,
}
const kplStream = 'kpl_stream'
kind: ConfigMap
metadata:
...
...
kpl/cfg-kpl-nginx.yaml.j2
View file @
662e7b6
...
...
@@ -53,6 +53,29 @@ data:
proxy_set_header Host $host;
client_max_body_size 10240m;
}
location ~ /tensorboard/proxy/([-_.:\w]+)/(.*) {
resolver kube-dns.kube-system.svc.cluster.local valid=5s;
rewrite_log on;
rewrite ^/tensorboard/proxy/([-_.:\w]+)/(.*) /$2 break;
proxy_pass http://$1.autodl.svc.cluster.local:9999;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Origin "";
}
location /grafana {
root html;
index index.html index.htm;
add_header 'Access-Control-Allow-Origin' '*';
add_header Access-Control-Allow-Methods GET,POST,OPTIONS,DELETE;
add_header 'Access-Control-Allow-Headers' 'userId,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type';
proxy_pass http://wd-grafana.autodl.svc.cluster.local:3000;
rewrite ^/grafana/(.*) /$1 break;
proxy_set_header Host $host;
}
location = /basic_status {
stub_status;
...
...
@@ -127,6 +150,29 @@ data:
proxy_set_header Host $host;
client_max_body_size 10240m;
}
location ~ /tensorboard/proxy/([-_.:\w]+)/(.*) {
resolver kube-dns.kube-system.svc.cluster.local valid=5s;
rewrite_log on;
rewrite ^/tensorboard/proxy/([-_.:\w]+)/(.*) /$2 break;
proxy_pass http://$1.autodl.svc.cluster.local:9999;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Origin "";
}
location /grafana {
root html;
index index.html index.htm;
add_header 'Access-Control-Allow-Origin' '*';
add_header Access-Control-Allow-Methods GET,POST,OPTIONS,DELETE;
add_header 'Access-Control-Allow-Headers' 'userId,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type';
proxy_pass http://wd-grafana.autodl.svc.cluster.local:3000;
rewrite ^/grafana/(.*) /$1 break;
proxy_set_header Host $host;
}
location = /basic_status {
stub_status;
...
...
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