Gitea app updates.

This commit is contained in:
2025-07-23 21:12:21 -07:00
parent ad324f19a0
commit 52cf28c486
7 changed files with 182 additions and 95 deletions

View File

@@ -6,10 +6,7 @@ metadata:
spec:
replicas: 1
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 0
maxSurge: 100%
type: Recreate
selector:
matchLabels:
component: web
@@ -18,7 +15,7 @@ spec:
labels:
app: gitea
component: web
managedBy: wild-cloud
managedBy: kustomize
partOf: wild-cloud
spec:
securityContext:
@@ -28,32 +25,15 @@ spec:
- name: gitea
image: "{{ .apps.gitea.image }}"
imagePullPolicy: IfNotPresent
envFrom:
- configMapRef:
name: gitea-env
env:
- name: SSH_LISTEN_PORT
value: "2222"
- name: SSH_PORT
value: "{{ .apps.gitea.sshPort }}"
- name: GITEA_APP_INI
value: /data/gitea/conf/app.ini
- name: GITEA_CUSTOM
value: /data/gitea
- name: GITEA_WORK_DIR
value: /data
- name: GITEA_TEMP
value: /tmp/gitea
- name: TMPDIR
value: /tmp/gitea
- name: HOME
value: /data/gitea/git
- name: GITEA_ADMIN_USERNAME
value: "admin"
- name: GITEA_ADMIN_PASSWORD
valueFrom:
secretKeyRef:
name: gitea-secrets
key: adminPassword
- name: GITEA_ADMIN_PASSWORD_MODE
value: keepUpdated
- name: GITEA__security__SECRET_KEY
valueFrom:
secretKeyRef:
@@ -69,11 +49,16 @@ spec:
secretKeyRef:
name: gitea-secrets
key: dbPassword
- name: GITEA__mailer__PASSWD
valueFrom:
secretKeyRef:
name: gitea-secrets
key: smtpPassword
ports:
- name: ssh
containerPort: 2222
- name: http
containerPort: {{ .apps.gitea.port }}
containerPort: 3000
livenessProbe:
failureThreshold: 10
initialDelaySeconds: 200