2023-07-22 21:27:09 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: StatefulSet
|
|
|
|
metadata:
|
|
|
|
labels:
|
2023-07-22 22:08:52 +00:00
|
|
|
gitea: server
|
2023-07-22 21:27:09 +00:00
|
|
|
app: gitea
|
|
|
|
name: gitea
|
|
|
|
namespace: gitea
|
|
|
|
spec:
|
|
|
|
podManagementPolicy: OrderedReady
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
2023-07-22 22:08:52 +00:00
|
|
|
gitea: server
|
2023-07-22 21:27:09 +00:00
|
|
|
app: gitea
|
|
|
|
serviceName: gitea
|
|
|
|
updateStrategy:
|
|
|
|
type: RollingUpdate
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
2023-07-22 22:08:52 +00:00
|
|
|
gitea: server
|
2023-07-22 21:27:09 +00:00
|
|
|
app: gitea
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: gitea
|
|
|
|
image: gitea/gitea:1.20.0-rc2
|
|
|
|
env:
|
|
|
|
- name: GITEA__actions__ENABLED
|
|
|
|
value: "true"
|
|
|
|
- name: MINIO__server__ROOT_URL
|
|
|
|
value: https://git.strudelline.net/
|
|
|
|
- name: MINIO__server__DOMAIN
|
|
|
|
value: git.strudelline.net
|
|
|
|
- name: GITEA__actions__DEFAULT_ACTIONS_URL
|
|
|
|
value: https://github.com
|
|
|
|
livenessProbe:
|
|
|
|
httpGet:
|
|
|
|
path: /api/healthz
|
|
|
|
port: 3000
|
|
|
|
readinessProbe:
|
|
|
|
httpGet:
|
|
|
|
path: /api/healthz
|
|
|
|
port: 3000
|
|
|
|
ports:
|
|
|
|
- containerPort: 22
|
|
|
|
protocol: TCP
|
|
|
|
name: ssh
|
|
|
|
- containerPort: 3000
|
|
|
|
protocol: TCP
|
|
|
|
name: http
|
|
|
|
volumeMounts:
|
|
|
|
- mountPath: /backup
|
|
|
|
name: gitea-backup
|
|
|
|
- mountPath: /data
|
|
|
|
name: gitea-data
|
|
|
|
dnsPolicy: ClusterFirst
|
|
|
|
restartPolicy: Always
|
|
|
|
volumeClaimTemplates:
|
|
|
|
- metadata:
|
|
|
|
name: gitea-backup
|
|
|
|
spec:
|
|
|
|
accessModes: [ "ReadWriteMany" ]
|
|
|
|
storageClassName: nfs
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
storage: 10Gi
|
|
|
|
- metadata:
|
|
|
|
name: gitea-data
|
|
|
|
spec:
|
|
|
|
accessModes: [ "ReadWriteOnce" ]
|
|
|
|
storageClassName: local-path
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
storage: 10Gi
|
|
|
|
|