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 8be138b3
authored
Jul 20, 2021
by
王庭威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加gpuhub configmap
1 parent
80a52dbb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
60 additions
and
0 deletions
gpuhub/cfg-frps.yaml.j2
gpuhub/cfg-gpuhub-server.yaml.j2
gpuhub/cfg-frps.yaml.j2
0 → 100644
View file @
8be138b
apiVersion: v1
kind: ConfigMap
metadata:
name: cfg-poye-frps
namespace: kpl
data:
frps.ini: |
[common]
bind_addr = 0.0.0.0
bind_port = 7000
log_level = info
authentication_method = token
token = seetatech666
allow_ports = 35000-45000
max_ports_per_client = 5
gpuhub/cfg-gpuhub-server.yaml.j2
0 → 100644
View file @
8be138b
apiVersion: v1
kind: ConfigMap
metadata:
name: cfg-poye-gs
namespace: kpl
data:
gs.yaml: |
app:
debug_log: true
# debug_api 用作进行debug的接口组, 生产环境严禁开启, 会有发生越权操作的可能
debug_api: true
# docs_api 开启swagger api 接口列表
docs_api: true
# 共享存储在服务容器内的rootfs path
storage_root_path: /mnt
mysql:
host: {{ mysql_host }}
user: {{ mysql_user }}
password: {{ mysql_password }}
db_name: "gpuhub"
redis:
host: {{ redis_host }}
password: {{ redis_password }}
rabbit_mq:
host: {{ rabbitmq_host }}
user: {{ rabbitmq_user }}
password: {{ rabbitmq_password }}
influxdb:
host: {{ influxdb_host }}
token: {{ influxdb_token }}
frps:
# expose_url 指的是frps的访问地址, 用于agent访问, 如果agent都运行在k8s中, 可以使用svc命名url
# 如果agent可能运行在公网环境下, 那么需要使用frps在公网环境下的url
expose_url: {{ frp_host }} #192.168.1.126:7000
# 定义frps的端口范围, 注意, 这项修改只会对之后运行的实例产生影响, 已经建立连接的不会重新申请
# "35000-45000" 指 35000 到 45000共计10001个端口
allow_ports: "35000-45000"
token: "seetatech666"
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