chore(gitea): Upgrade the gitea chart version

The maintainer of the chart release a breaking chage, so this migration
was not easy. After the upgrade, I've copied all the data from the
previous installation, because the ReplicaSet provided was switched
from the StatefulSet to Deployment.

Issue: https://git.badhouseplants.net/badhouseplants/k8s-cluster-config/issues/86
This commit is contained in:
Nikolai Rodionov 2023-07-29 22:17:42 +02:00
parent 5ff279ef03
commit 0b23d53f10
No known key found for this signature in database
GPG Key ID: 19DB54039EBF8F10
2 changed files with 36 additions and 35 deletions

View File

@ -19,12 +19,17 @@ istio:
port_match: 22
service: gitea-ssh
port: 22
# ------------------------------------------
# -- Database extension is used to manage
# -- database with db-operator
# ------------------------------------------
ext-database:
enabled: true
name: gitea-postgres
instance: postgres
# ------------------------------------------
# -- Kubernetes related values
# ------------------------------------------
replicaCount: 1
clusterDomain: cluster.local
@ -38,39 +43,20 @@ resources:
persistence:
enabled: true
size: 10Gi
size: 6Gi
accessModes:
- ReadWriteOnce
labels: {}
annotations: {}
memcached:
enabled: true
service:
port: 11211
resources:
requests:
cpu: 10m
postgresql:
auth:
postgresPassword: check
enabled: false
global:
postgresql:
servicePort: 5432
persistence:
size: 10Gi
resources:
requests:
cpu: 50m
ingress:
enabled: false
# ------------------------------------------
# -- Main Gitea settings
# ------------------------------------------
gitea:
metrics:
enabled: true
serviceMonitor:
# -- TODO(@allanger): Enable it once prometheus is configured
enabled: false
config:
database:
@ -82,7 +68,7 @@ gitea:
ui:
meta:
AUTHOR: Bad Houseplants
DESCRIPTION: by allanger
DESCRIPTION: ...by allanger
repository:
DEFAULT_BRANCH: main
MAX_CREATION_LIMIT: 0
@ -94,6 +80,7 @@ gitea:
ROOT_URL: https://git.badhouseplants.net
LFS_START_SERVER: true
LANDING_PAGE: explore
START_SSH_SERVER: true
admin:
DISABLE_REGULAR_ORG_CREATION: true
packages:
@ -107,14 +94,28 @@ gitea:
oauth2_client:
REGISTER_EMAIL_CONFIRM: false
ENABLE_AUTO_REGISTRATION: true
statefulset:
env:
- name: DOMAIN
value: git.badhouseplants.net
- name: START_SSH_SERVER
value: "true"
# --------------------------------------
# -- Redis settings
# --------------------------------------
session:
PROVIDER: redis
PROVIDER_CONFIG: redis://:gtCkXoSg82Aeimj5WYYX@redis-master.database-service.svc.cluster.local:6379/2?pool_size=100&idle_timeout=180s&
cache:
ENABLED: true
ADAPTER: redis
HOST: redis://:gtCkXoSg82Aeimj5WYYX@redis-master.database-service.svc.cluster.local:6379/2?pool_size=100&idle_timeout=180s&
queue:
TYPE: redis
CONN_STR: redis://:gtCkXoSg82Aeimj5WYYX@redis-master.database-service.svc.cluster.local:6379/2?pool_size=100&idle_timeout=180s&
service:
ssh:
type: ClusterIP
port: 22
clusterIP:
# ------------------------------------------
# -- Disabled dependencies
# ------------------------------------------
postgresql-ha:
enabled: false
redis-cluster:
enabled: false

View File

@ -242,7 +242,7 @@ templates:
gitea: &gitea
name: gitea
chart: gitea/gitea
version: 8.3.0
version: 9.0.4
inherit:
- template: default-env-values
- template: default-env-secrets