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:
parent
5ff279ef03
commit
0b23d53f10
@ -19,12 +19,17 @@ istio:
|
|||||||
port_match: 22
|
port_match: 22
|
||||||
service: gitea-ssh
|
service: gitea-ssh
|
||||||
port: 22
|
port: 22
|
||||||
|
# ------------------------------------------
|
||||||
|
# -- Database extension is used to manage
|
||||||
|
# -- database with db-operator
|
||||||
|
# ------------------------------------------
|
||||||
ext-database:
|
ext-database:
|
||||||
enabled: true
|
enabled: true
|
||||||
name: gitea-postgres
|
name: gitea-postgres
|
||||||
instance: postgres
|
instance: postgres
|
||||||
|
# ------------------------------------------
|
||||||
|
# -- Kubernetes related values
|
||||||
|
# ------------------------------------------
|
||||||
replicaCount: 1
|
replicaCount: 1
|
||||||
clusterDomain: cluster.local
|
clusterDomain: cluster.local
|
||||||
|
|
||||||
@ -38,39 +43,20 @@ resources:
|
|||||||
|
|
||||||
persistence:
|
persistence:
|
||||||
enabled: true
|
enabled: true
|
||||||
size: 10Gi
|
size: 6Gi
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteOnce
|
- 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:
|
ingress:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
# ------------------------------------------
|
||||||
|
# -- Main Gitea settings
|
||||||
|
# ------------------------------------------
|
||||||
gitea:
|
gitea:
|
||||||
metrics:
|
metrics:
|
||||||
enabled: true
|
enabled: true
|
||||||
serviceMonitor:
|
serviceMonitor:
|
||||||
|
# -- TODO(@allanger): Enable it once prometheus is configured
|
||||||
enabled: false
|
enabled: false
|
||||||
config:
|
config:
|
||||||
database:
|
database:
|
||||||
@ -82,7 +68,7 @@ gitea:
|
|||||||
ui:
|
ui:
|
||||||
meta:
|
meta:
|
||||||
AUTHOR: Bad Houseplants
|
AUTHOR: Bad Houseplants
|
||||||
DESCRIPTION: by allanger
|
DESCRIPTION: ...by allanger
|
||||||
repository:
|
repository:
|
||||||
DEFAULT_BRANCH: main
|
DEFAULT_BRANCH: main
|
||||||
MAX_CREATION_LIMIT: 0
|
MAX_CREATION_LIMIT: 0
|
||||||
@ -94,6 +80,7 @@ gitea:
|
|||||||
ROOT_URL: https://git.badhouseplants.net
|
ROOT_URL: https://git.badhouseplants.net
|
||||||
LFS_START_SERVER: true
|
LFS_START_SERVER: true
|
||||||
LANDING_PAGE: explore
|
LANDING_PAGE: explore
|
||||||
|
START_SSH_SERVER: true
|
||||||
admin:
|
admin:
|
||||||
DISABLE_REGULAR_ORG_CREATION: true
|
DISABLE_REGULAR_ORG_CREATION: true
|
||||||
packages:
|
packages:
|
||||||
@ -107,14 +94,28 @@ gitea:
|
|||||||
oauth2_client:
|
oauth2_client:
|
||||||
REGISTER_EMAIL_CONFIRM: false
|
REGISTER_EMAIL_CONFIRM: false
|
||||||
ENABLE_AUTO_REGISTRATION: true
|
ENABLE_AUTO_REGISTRATION: true
|
||||||
statefulset:
|
# --------------------------------------
|
||||||
env:
|
# -- Redis settings
|
||||||
- name: DOMAIN
|
# --------------------------------------
|
||||||
value: git.badhouseplants.net
|
session:
|
||||||
- name: START_SSH_SERVER
|
PROVIDER: redis
|
||||||
value: "true"
|
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:
|
service:
|
||||||
ssh:
|
ssh:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
port: 22
|
port: 22
|
||||||
clusterIP:
|
clusterIP:
|
||||||
|
# ------------------------------------------
|
||||||
|
# -- Disabled dependencies
|
||||||
|
# ------------------------------------------
|
||||||
|
postgresql-ha:
|
||||||
|
enabled: false
|
||||||
|
redis-cluster:
|
||||||
|
enabled: false
|
@ -242,7 +242,7 @@ templates:
|
|||||||
gitea: &gitea
|
gitea: &gitea
|
||||||
name: gitea
|
name: gitea
|
||||||
chart: gitea/gitea
|
chart: gitea/gitea
|
||||||
version: 8.3.0
|
version: 9.0.4
|
||||||
inherit:
|
inherit:
|
||||||
- template: default-env-values
|
- template: default-env-values
|
||||||
- template: default-env-secrets
|
- template: default-env-secrets
|
||||||
|
Reference in New Issue
Block a user