This website works better with JavaScript.
首頁
探索
說明
登入
huangjiajun
/
community_team
關註
1
收藏
0
複製
0
程式碼
問題管理
0
合併請求
0
版本發佈
0
Wiki
Activity
瀏覽代碼
1
master
huangjiajun
2 月之前
父節點
a6363635b4
當前提交
6434db57f6
共有
2 個文件被更改
,包括
52 次插入
和
0 次删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
app/utils/sign_check.go
+49
-0
zyos-mall-deployment.yaml
+ 3
- 0
app/utils/sign_check.go
查看文件
@@ -104,6 +104,9 @@ func CheckUri(c *gin.Context) int {
//}
apiVersion = "0"
}
if c.GetHeader("mp") == "jd" {
apiVersion = "0"
}
return StrToInt(apiVersion)
}
+ 49
- 0
zyos-mall-deployment.yaml
查看文件
@@ -0,0 +1,49 @@
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: dev
name: zyos-mall
labels:
app: zyos-mall
spec:
replicas: 1
template:
metadata:
name: zyos-mall
labels:
app: zyos-mall
spec:
containers:
- name: zyos-mall-container
image: registry-vpc.cn-shenzhen.aliyuncs.com/fnuoos-prd/zyos-mall:0.1
ports:
- containerPort: 5002
name: 5002tcp
protocol: TCP
resources:
limits:
cpu: "1"
memory: 256Mi
requests:
cpu: 200m
memory: 128Mi
imagePullPolicy: IfNotPresent
restartPolicy: Always
volumes:
- name: host-time
hostPath:
path: /etc/localtime
type: ''
- name: mall-cfg
configMap:
name: zyos-mall-cfg
defaultMode: 420
selector:
matchLabels:
app: zyos-mall
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 25%
maxSurge: 25%
Write
Preview
Loading…
取消
儲存