zhong (钟鹏群) 2 tygodni temu
rodzic
commit
bdae0eb21e
1 zmienionych plików z 6 dodań i 2 usunięć
  1. 6 2
      deployments/gogs-deployment.yaml

+ 6 - 2
deployments/gogs-deployment.yaml

@@ -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:
   ports:
   - name: http
     port: 3000
-      targetPort: 3000
+    targetPort: 3000
+  - name: ssh
+    port: 22
+    targetPort: 22
   type: ClusterIP
 
 ---