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 selfHeal: true
--- ---
apiVersion: argoproj.io/v1alpha1 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 kind: ApplicationSet
metadata: metadata:
name: next-gen-branches name: next-gen-branches
@ -59,9 +88,8 @@ spec:
tokenRef: tokenRef:
secretName: gitea-repo-creds secretName: gitea-repo-creds
key: password key: password
allBranches: true
filters: filters:
- repositoryMatch: ^next-gen$ - repositoryMatch: ^geocrop-platform$
template: template:
metadata: metadata:
name: 'next-gen-{{branch}}' name: 'next-gen-{{branch}}'
@ -69,14 +97,14 @@ spec:
project: default project: default
source: source:
repoURL: http://gitea.geocrop.svc.cluster.local:3000/fchinembiri/geocrop-platform..git repoURL: http://gitea.geocrop.svc.cluster.local:3000/fchinembiri/geocrop-platform..git
targetRevision: HEAD targetRevision: '{{branch}}'
path: k8s/nextgen/next-gen-chart path: k8s/nextgen/next-gen-chart
helm: helm:
parameters: parameters:
- name: branchName - name: branchName
value: '{{branch}}' value: '{{branch}}'
- name: image.tag - name: image.tag
value: '{{branch}}' value: 'latest'
- name: ingress.host - name: ingress.host
value: '{{branch}}.next-gen.techarvest.co.zw' value: '{{branch}}.next-gen.techarvest.co.zw'
destination: destination:

View File

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