|
@@ -39,10 +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
|
|
|
|
|
|
|
+ command: ["/app/gogs/gogs"]
|
|
|
args: ["web"]
|
|
args: ["web"]
|
|
|
ports:
|
|
ports:
|
|
|
- containerPort: 3000
|
|
- containerPort: 3000
|
|
|
|
|
+ - containerPort: 22
|
|
|
env:
|
|
env:
|
|
|
- name: GOGS_SERVER_HTTP_ADDR
|
|
- name: GOGS_SERVER_HTTP_ADDR
|
|
|
value: "0.0.0.0"
|
|
value: "0.0.0.0"
|
|
@@ -79,7 +80,10 @@ spec:
|
|
|
ports:
|
|
ports:
|
|
|
- name: http
|
|
- name: http
|
|
|
port: 3000
|
|
port: 3000
|
|
|
- targetPort: 3000
|
|
|
|
|
|
|
+ targetPort: 3000
|
|
|
|
|
+ - name: ssh
|
|
|
|
|
+ port: 22
|
|
|
|
|
+ targetPort: 22
|
|
|
type: ClusterIP
|
|
type: ClusterIP
|
|
|
|
|
|
|
|
---
|
|
---
|