Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update deploy files for k8s cluster. #800

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 49 additions & 1 deletion scripts/k8s/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: go-admin
---
apiVersion: v1
kind: Service
metadata:
name: go-admin
namespace: go-admin
labels:
app: go-admin
service: go-admin
Expand All @@ -14,10 +20,53 @@ spec:
selector:
app: go-admin
---
apiVersion: v1
kind: ConfigMap
metadata:
name: settings-admin
namespace: go-admin
data:
settings.yml: |
settings:
application:
demomsg: "谢谢您的参与,但为了大家更好的体验,所以本次提交就算了吧!\U0001F600\U0001F600\U0001F600"
enabledp: true
host: 0.0.0.0
mode: demo
name: testApp
port: 8000
readtimeout: 10000
writertimeout: 20000
database:
driver: sqlite3
source: ./go-admin-db.db
gen:
dbname: testhhh
frontpath: ../go-admin-ui/src
jwt:
secret: go-admin
timeout: 3600
logger:
# 日志存放路径
path: temp/logs
# 日志输出,file:文件,default:命令行,其他:命令行
stdout: '' #控制台日志,启用后,不输出到文件
# 日志等级, trace, debug, info, warn, error, fatal
level: trace
# 数据库日志开关
enableddb: true
queue:
memory:
poolSize: 100
extend:
amap:
key: de7a062c984bf828d5d1b3a631a517e4
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: go-admin-v1
namespace: go-admin
labels:
app: go-admin
version: v1
Expand Down Expand Up @@ -54,4 +103,3 @@ spec:
- name: go-admin-config
configMap:
name: settings-admin
---
3 changes: 0 additions & 3 deletions scripts/k8s/prerun.sh

This file was deleted.

2 changes: 1 addition & 1 deletion scripts/k8s/storage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ spec:
requests:
storage: "1Mi"
volumeName:
storageClassName: nfs-csi
storageClassName: nfs-csi