mirror of
https://gitlab.kube.huskypup.net/Scooby/Homelabv4.git
synced 2026-08-21 11:36:50 +00:00
User wants actual GitLab on the VPS, not just Gitea's pull-mirror -
deliberate scope increase from the original plan's 'keep the VPS
lighter' design for git hosting specifically.
Simplified single-node equivalent of apps/gitlab (home) - same chart
version (7.7.0), same Authentik OIDC provider/client_id (added a second
redirect_uri to the shared GitLab provider in infrastructure/authentik/
gitlab-blueprint.yaml), same known chart bugs already diagnosed at home
(redis-init-fix.yaml for the initializer-ordering bug) - but:
- 1 CNPG instance (local-path) instead of home's 3-instance HA
- No Praefect - pointless HA routing with a single Gitaly node
- No PgBouncer - direct CNPG connection, traffic is low enough
- No SAML, no Container Registry, no KAS - addable later if needed
- Own Traefik Ingress + https-redirect Middleware from the start
(found needed the hard way on Vault/Gitea/n8n/Nextcloud/Authentik
earlier this session - applying that lesson here immediately)
New Vault paths this needed: secret/vps/gitlab-redis (freshly generated,
this Redis instance is new, nothing to reuse) and widened the
vps-eso-reader policy to also allow secret/gitlab-oauth (the shared
Authentik client, already used by home's GitLab).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
20 lines
832 B
YAML
20 lines
832 B
YAML
# Same fix as apps/gitlab/manifests/redis-init-fix.yaml (home) - GitLab
|
|
# chart 7.7.0's initializer ordering bug: 7_prometheus_metrics.rb loads
|
|
# before 7_redis.rb (alphabetical 'p' < 'r'), triggering Redis cache
|
|
# access before Gitlab::Redis::ALL_CLASSES is defined. This ConfigMap
|
|
# provides an early initializer that loads the Redis module first.
|
|
#
|
|
# Mounting this into webservice/sidekiq deployments still has to be a
|
|
# manual kubectl patch after first deploy - chart 7.7.0 doesn't support
|
|
# extraVolumes on those workloads, same limitation home hit, and home's
|
|
# own patch was never git-tracked either (applied live). See this
|
|
# directory's own deploy notes for the exact patch commands.
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: redis-init-fix
|
|
namespace: gitlab
|
|
data:
|
|
0_redis_early.rb: |
|
|
require "gitlab/redis"
|