fix(ingress) patch the wrong ingress port during bootstrap

This commit is contained in:
Story Crater Bot
2026-08-18 15:08:03 -07:00
parent f656338a15
commit d16203b79d
3 changed files with 58 additions and 1 deletions
+56
View File
@@ -0,0 +1,56 @@
# ingress-nginx - required for Forgejo domain access before ArgoCD can sync
# This breaks the circular dependency: ArgoCD needs https://forgejo.riotpiao.com
# but that domain requires ingress-nginx to route traffic.
apiVersion: v1
kind: Namespace
metadata:
name: ingress-nginx
labels:
pod-security.kubernetes.io/enforce: privileged
pod-security.kubernetes.io/audit: privileged
pod-security.kubernetes.io/warn: privileged
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: ingress-nginx-bootstrap
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "0"
description: "Bootstrap ingress-nginx to enable Forgejo domain access"
spec:
project: homelab
source:
repoURL: https://kubernetes.github.io/ingress-nginx
chart: ingress-nginx
targetRevision: "4.15.1"
helm:
values: |
controller:
kind: DaemonSet
service:
type: LoadBalancer
annotations:
io.cilium/lb-ipam-ips: "192.168.1.160"
hostPort:
enabled: false
tolerations:
- key: node-role.kubernetes.io/control-plane
operator: Exists
effect: NoSchedule
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 500m
memory: 512Mi
destination:
server: https://kubernetes.default.svc
namespace: ingress-nginx
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
+1
View File
@@ -16,6 +16,7 @@ resources:
- 03-ddb-bootstrap.yaml # PostgreSQL cluster + Forgejo DB + Redis - 03-ddb-bootstrap.yaml # PostgreSQL cluster + Forgejo DB + Redis
- 05-wait-for-databases.yaml # Wait for CNPG to create databases - 05-wait-for-databases.yaml # Wait for CNPG to create databases
- 04-forgejo.yaml # Forgejo Helm chart (inline values) - 04-forgejo.yaml # Forgejo Helm chart (inline values)
- 06-ingress-nginx.yaml # Ingress for Forgejo domain access
# Notes: # Notes:
# - SOPS age secret created via bootstrap.sh (not in git) # - SOPS age secret created via bootstrap.sh (not in git)
+1 -1
View File
@@ -219,7 +219,7 @@ spec:
service: service:
name: forgejo-gitea-http name: forgejo-gitea-http
port: port:
number: 7575 number: 3000
--- ---
# ── Argo CD (cicd namespace) ────────────────────────────────────────────────── # ── Argo CD (cicd namespace) ──────────────────────────────────────────────────