|
@@ -39,12 +39,11 @@ spec:
|
|
|
containers:
|
|
containers:
|
|
|
- name: gogs
|
|
- name: gogs
|
|
|
image: registry.cn-hangzhou.aliyuncs.com/zhongpengqun/wanderer:linux-amd64-gogs-0.13
|
|
image: registry.cn-hangzhou.aliyuncs.com/zhongpengqun/wanderer:linux-amd64-gogs-0.13
|
|
|
|
|
+ command: ["/app/gogs/gogs"] # <-- 直接启动 gogs,跳过 socat
|
|
|
|
|
+ args: ["web"]
|
|
|
ports:
|
|
ports:
|
|
|
- containerPort: 3000
|
|
- containerPort: 3000
|
|
|
- - containerPort: 22
|
|
|
|
|
env:
|
|
env:
|
|
|
- - name: DISABLE_SOCAT # <-- 就这一行,解决所有问题
|
|
|
|
|
- value: "true"
|
|
|
|
|
- name: GOGS_SERVER_HTTP_ADDR
|
|
- name: GOGS_SERVER_HTTP_ADDR
|
|
|
value: "0.0.0.0"
|
|
value: "0.0.0.0"
|
|
|
- name: GOGS_SERVER_HTTP_PORT
|
|
- name: GOGS_SERVER_HTTP_PORT
|
|
@@ -80,10 +79,7 @@ spec:
|
|
|
ports:
|
|
ports:
|
|
|
- name: http
|
|
- name: http
|
|
|
port: 3000
|
|
port: 3000
|
|
|
- targetPort: 3000
|
|
|
|
|
- - name: ssh
|
|
|
|
|
- port: 22
|
|
|
|
|
- targetPort: 22
|
|
|
|
|
|
|
+ targetPort: 3000
|
|
|
type: ClusterIP
|
|
type: ClusterIP
|
|
|
|
|
|
|
|
---
|
|
---
|