|
@@ -40,10 +40,12 @@ spec:
|
|
|
- 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"]
|
|
command: ["/app/gogs/gogs"]
|
|
|
- args: ["web"]
|
|
|
|
|
|
|
+ args:
|
|
|
|
|
+ - "web"
|
|
|
|
|
+ - "--config"
|
|
|
|
|
+ - "/data/gogs/conf/app.ini"
|
|
|
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"
|
|
@@ -51,22 +53,19 @@ spec:
|
|
|
value: "3000"
|
|
value: "3000"
|
|
|
- name: GOGS_SERVER_ROOT_URL
|
|
- name: GOGS_SERVER_ROOT_URL
|
|
|
value: "http://gogs2.9981.tech/"
|
|
value: "http://gogs2.9981.tech/"
|
|
|
- - name: GOGS_SERVER_DOMAIN
|
|
|
|
|
- value: "gogs2.9981.tech"
|
|
|
|
|
volumeMounts:
|
|
volumeMounts:
|
|
|
- name: gogs-data
|
|
- name: gogs-data
|
|
|
mountPath: /data
|
|
mountPath: /data
|
|
|
- resources:
|
|
|
|
|
- requests:
|
|
|
|
|
- memory: "256Mi"
|
|
|
|
|
- cpu: "250m"
|
|
|
|
|
- limits:
|
|
|
|
|
- memory: "512Mi"
|
|
|
|
|
- cpu: "1000m"
|
|
|
|
|
|
|
+ - name: gogs-config
|
|
|
|
|
+ mountPath: /data/gogs/conf/app.ini
|
|
|
|
|
+ subPath: app.ini
|
|
|
volumes:
|
|
volumes:
|
|
|
- name: gogs-data
|
|
- name: gogs-data
|
|
|
persistentVolumeClaim:
|
|
persistentVolumeClaim:
|
|
|
claimName: gogs-pvc
|
|
claimName: gogs-pvc
|
|
|
|
|
+ - name: gogs-config
|
|
|
|
|
+ configMap:
|
|
|
|
|
+ name: gogs-config
|
|
|
|
|
|
|
|
---
|
|
---
|
|
|
apiVersion: v1
|
|
apiVersion: v1
|
|
@@ -81,24 +80,8 @@ spec:
|
|
|
- name: http
|
|
- name: http
|
|
|
port: 3000
|
|
port: 3000
|
|
|
targetPort: 3000
|
|
targetPort: 3000
|
|
|
- - name: ssh
|
|
|
|
|
- port: 22
|
|
|
|
|
- targetPort: 22
|
|
|
|
|
type: ClusterIP
|
|
type: ClusterIP
|
|
|
|
|
|
|
|
----
|
|
|
|
|
-apiVersion: v1
|
|
|
|
|
-kind: PersistentVolumeClaim
|
|
|
|
|
-metadata:
|
|
|
|
|
- name: gogs-pvc
|
|
|
|
|
- namespace: nginx-app
|
|
|
|
|
-spec:
|
|
|
|
|
- accessModes:
|
|
|
|
|
- - ReadWriteOnce
|
|
|
|
|
- resources:
|
|
|
|
|
- requests:
|
|
|
|
|
- storage: 5Gi
|
|
|
|
|
-
|
|
|
|
|
---
|
|
---
|
|
|
apiVersion: networking.k8s.io/v1
|
|
apiVersion: networking.k8s.io/v1
|
|
|
kind: Ingress
|
|
kind: Ingress
|