74 lines
1.6 KiB
YAML
74 lines
1.6 KiB
YAML
|
apiVersion: apps/v1
|
||
|
kind: StatefulSet
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: gitea
|
||
|
name: gitea
|
||
|
namespace: gitea
|
||
|
spec:
|
||
|
podManagementPolicy: OrderedReady
|
||
|
replicas: 1
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: gitea
|
||
|
serviceName: gitea
|
||
|
updateStrategy:
|
||
|
type: RollingUpdate
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
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
|
||
|
|