fix: next-gen deployment repository and ingress

This commit is contained in:
fchinembiri 2026-06-04 16:04:45 +02:00
parent 3ea82c1a7a
commit 6b04259ebd
2 changed files with 35 additions and 7 deletions

View File

@ -46,6 +46,35 @@ spec:
selfHeal: true
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: next-gen-main
namespace: argocd
spec:
project: default
source:
repoURL: http://gitea.geocrop.svc.cluster.local:3000/fchinembiri/geocrop-platform..git
targetRevision: HEAD
path: k8s/nextgen/next-gen-chart
helm:
parameters:
- name: branchName
value: main
- name: image.tag
value: latest
- name: ingress.host
value: next-gen.techarvest.co.zw
destination:
server: https://kubernetes.default.svc
namespace: nextgen
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
---
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: next-gen-branches
@ -59,9 +88,8 @@ spec:
tokenRef:
secretName: gitea-repo-creds
key: password
allBranches: true
filters:
- repositoryMatch: ^next-gen$
- repositoryMatch: ^geocrop-platform$
template:
metadata:
name: 'next-gen-{{branch}}'
@ -69,14 +97,14 @@ spec:
project: default
source:
repoURL: http://gitea.geocrop.svc.cluster.local:3000/fchinembiri/geocrop-platform..git
targetRevision: HEAD
targetRevision: '{{branch}}'
path: k8s/nextgen/next-gen-chart
helm:
parameters:
- name: branchName
value: '{{branch}}'
- name: image.tag
value: '{{branch}}'
value: 'latest'
- name: ingress.host
value: '{{branch}}.next-gen.techarvest.co.zw'
destination:

View File

@ -2,7 +2,7 @@
replicaCount: 1
image:
repository: registry.techarvest.co.zw/next-gen
repository: frankchine/geocrop-web
pullPolicy: IfNotPresent
tag: "latest"
@ -10,14 +10,14 @@ branchName: "main"
service:
type: ClusterIP
port: 3000
port: 80
ingress:
enabled: true
className: nginx
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
host: "" # Will be overridden by ApplicationSet
host: "next-gen.techarvest.co.zw" # Default host
resources:
limits: