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