Selaa lähdekoodia

update

master
dengbiao 4 kuukautta sitten
vanhempi
commit
b3e1801b54
4 muutettua tiedostoa jossa 8 lisäystä ja 10 poistoa
  1. +1
    -1
      etc/cfg.yml
  2. +1
    -3
      go.mod
  3. +4
    -4
      k8s/container.yaml
  4. +2
    -2
      k8s/ingress.yaml

+ 1
- 1
etc/cfg.yml Näytä tiedosto

@@ -4,7 +4,7 @@ curldebug: true
prd: false
local: true
# 服务器参数
srv_addr: ':1001'
srv_addr: ':1000'
# 缓存
redis_addr: '120.24.28.6:32572'



+ 1
- 3
go.mod Näytä tiedosto

@@ -17,7 +17,6 @@ require (
github.com/go-playground/universal-translator v0.18.1
github.com/go-playground/validator/v10 v10.20.0
github.com/go-redis/redis v6.15.9+incompatible
github.com/go-sql-driver/mysql v1.8.1
github.com/gocolly/colly v1.2.0
github.com/gomodule/redigo v2.0.0+incompatible
github.com/iGoogle-ink/gopay v1.5.36
@@ -48,7 +47,6 @@ require (
github.com/antchfx/xpath v1.3.1 // indirect
github.com/bytedance/sonic v1.11.6 // indirect
github.com/bytedance/sonic/loader v0.1.1 // indirect
github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311 // indirect
github.com/cloudwego/base64x v0.1.4 // indirect
github.com/cloudwego/iasm v0.2.0 // indirect
github.com/gabriel-vasile/mimetype v1.4.3 // indirect
@@ -57,6 +55,7 @@ require (
github.com/go-openapi/jsonreference v0.19.6 // indirect
github.com/go-openapi/spec v0.20.4 // indirect
github.com/go-openapi/swag v0.19.15 // indirect
github.com/go-sql-driver/mysql v1.8.1 // indirect
github.com/gobwas/glob v0.2.3 // indirect
github.com/goccy/go-json v0.10.2 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
@@ -80,7 +79,6 @@ require (
github.com/pelletier/go-toml/v2 v2.2.2 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/saintfish/chardet v0.0.0-20230101081208-5e3ef4b5456d // indirect
github.com/smartystreets/goconvey v1.6.4 // indirect
github.com/syndtr/goleveldb v1.0.0 // indirect
github.com/temoto/robotstxt v1.1.2 // indirect
github.com/tidwall/match v1.0.3 // indirect


+ 4
- 4
k8s/container.yaml Näytä tiedosto

@@ -3,7 +3,7 @@ apiVersion: apps/v1
# 元数据
metadata:
name: advertisement-super
namespace: advertisement-super
namespace: advertisement
labels:
app: advertisement-super
annotations:
@@ -36,9 +36,9 @@ spec:
name: advertisement-super-cfg
defaultMode: 420
# pvc
- name: advertisement-super-pvc # 在该部署中的名称,后面使用改名称挂载
- name: advertisement-super # 在该部署中的名称,后面使用改名称挂载
persistentVolumeClaim:
claimName: advertisement-super-pvc # pvc的名称
claimName: advertisement-super # pvc的名称
# Nginx配置
- name: advertisement-super-nginx
configMap:
@@ -79,7 +79,7 @@ spec:
readOnly: true
mountPath: /etc/localtime
# 存储卷 用于存放前端代码
- name: advertisement-super-pvc # 前面volumes声明的名称
- name: advertisement-super # 前面volumes声明的名称
mountPath: /usr/share/nginx/html
- name: advertisement-super-nginx # Nginx 配置
readOnly: true


+ 2
- 2
k8s/ingress.yaml Näytä tiedosto

@@ -1,7 +1,7 @@
kind: Ingress
apiVersion: extensions/v1beta1
metadata:
name: advertisement # ingress名称
name: advertisement-super # ingress名称
namespace: advertisement
annotations:
kubesphere.io/creator: dengbiao
@@ -13,5 +13,5 @@ spec:
- path: /
pathType: ImplementationSpecific
backend:
serviceName: advertisement # 流量转发到的服务
serviceName: advertisement-super # 流量转发到的服务
servicePort: 80

Ladataan…
Peruuta
Tallenna