Fix kustomization: remove merge conflicts, fix paths, add gateway resource
This commit is contained in:
@@ -11,13 +11,13 @@ metadata:
|
|||||||
|
|
||||||
resources:
|
resources:
|
||||||
- ../../../environments/common/configs
|
- ../../../environments/common/configs
|
||||||
- ../../../platform/infrastructure
|
|
||||||
- ../../../platform/cert-manager
|
- ../../../platform/cert-manager
|
||||||
- ../../../platform/networking/ingress/overlays/prod
|
- ../../../platform/networking/ingress/overlays/prod
|
||||||
|
- ../../../platform/gateway
|
||||||
- ../../../platform/storage
|
- ../../../platform/storage
|
||||||
- ../../../services/databases
|
- ../../../services/databases
|
||||||
- ../../../services/microservices
|
- ../../../services/microservices
|
||||||
- ../../../cicd
|
# NOTE: CI/CD (gitea, tekton, flux) deployed via Helm, not kustomize
|
||||||
- prod-certificate.yaml
|
- prod-certificate.yaml
|
||||||
|
|
||||||
|
|
||||||
@@ -107,6 +107,41 @@ patches:
|
|||||||
- op: add
|
- op: add
|
||||||
path: /data/VITE_ENVIRONMENT
|
path: /data/VITE_ENVIRONMENT
|
||||||
value: "production"
|
value: "production"
|
||||||
|
# Add imagePullSecrets to all Deployments for gitea registry authentication
|
||||||
|
- target:
|
||||||
|
kind: Deployment
|
||||||
|
patch: |-
|
||||||
|
- op: add
|
||||||
|
path: /spec/template/spec/imagePullSecrets
|
||||||
|
value:
|
||||||
|
- name: gitea-registry-secret
|
||||||
|
|
||||||
|
# Add imagePullSecrets to all StatefulSets for gitea registry authentication
|
||||||
|
- target:
|
||||||
|
kind: StatefulSet
|
||||||
|
patch: |-
|
||||||
|
- op: add
|
||||||
|
path: /spec/template/spec/imagePullSecrets
|
||||||
|
value:
|
||||||
|
- name: gitea-registry-secret
|
||||||
|
|
||||||
|
# Add imagePullSecrets to all Jobs for gitea registry authentication
|
||||||
|
- target:
|
||||||
|
kind: Job
|
||||||
|
patch: |-
|
||||||
|
- op: add
|
||||||
|
path: /spec/template/spec/imagePullSecrets
|
||||||
|
value:
|
||||||
|
- name: gitea-registry-secret
|
||||||
|
|
||||||
|
# Add imagePullSecrets to all CronJobs for gitea registry authentication
|
||||||
|
- target:
|
||||||
|
kind: CronJob
|
||||||
|
patch: |-
|
||||||
|
- op: add
|
||||||
|
path: /spec/jobTemplate/spec/template/spec/imagePullSecrets
|
||||||
|
value:
|
||||||
|
- name: gitea-registry-secret
|
||||||
# SigNoz resource patches for production
|
# SigNoz resource patches for production
|
||||||
# SigNoz ClickHouse production configuration
|
# SigNoz ClickHouse production configuration
|
||||||
- target:
|
- target:
|
||||||
@@ -172,76 +207,103 @@ patches:
|
|||||||
images:
|
images:
|
||||||
# Application services
|
# Application services
|
||||||
- name: bakery/auth-service
|
- name: bakery/auth-service
|
||||||
|
newName: gitea-http.gitea.svc.cluster.local:3000/bakery-admin/auth-service
|
||||||
newTag: latest
|
newTag: latest
|
||||||
- name: bakery/tenant-service
|
- name: bakery/tenant-service
|
||||||
|
newName: gitea-http.gitea.svc.cluster.local:3000/bakery-admin/tenant-service
|
||||||
newTag: latest
|
newTag: latest
|
||||||
- name: bakery/training-service
|
- name: bakery/training-service
|
||||||
|
newName: gitea-http.gitea.svc.cluster.local:3000/bakery-admin/training-service
|
||||||
newTag: latest
|
newTag: latest
|
||||||
- name: bakery/forecasting-service
|
- name: bakery/forecasting-service
|
||||||
|
newName: gitea-http.gitea.svc.cluster.local:3000/bakery-admin/forecasting-service
|
||||||
newTag: latest
|
newTag: latest
|
||||||
- name: bakery/sales-service
|
- name: bakery/sales-service
|
||||||
|
newName: gitea-http.gitea.svc.cluster.local:3000/bakery-admin/sales-service
|
||||||
newTag: latest
|
newTag: latest
|
||||||
- name: bakery/external-service
|
- name: bakery/external-service
|
||||||
|
newName: gitea-http.gitea.svc.cluster.local:3000/bakery-admin/external-service
|
||||||
newTag: latest
|
newTag: latest
|
||||||
- name: bakery/notification-service
|
- name: bakery/notification-service
|
||||||
|
newName: gitea-http.gitea.svc.cluster.local:3000/bakery-admin/notification-service
|
||||||
newTag: latest
|
newTag: latest
|
||||||
- name: bakery/inventory-service
|
- name: bakery/inventory-service
|
||||||
|
newName: gitea-http.gitea.svc.cluster.local:3000/bakery-admin/inventory-service
|
||||||
newTag: latest
|
newTag: latest
|
||||||
- name: bakery/recipes-service
|
- name: bakery/recipes-service
|
||||||
|
newName: gitea-http.gitea.svc.cluster.local:3000/bakery-admin/recipes-service
|
||||||
newTag: latest
|
newTag: latest
|
||||||
- name: bakery/suppliers-service
|
- name: bakery/suppliers-service
|
||||||
|
newName: gitea-http.gitea.svc.cluster.local:3000/bakery-admin/suppliers-service
|
||||||
newTag: latest
|
newTag: latest
|
||||||
- name: bakery/pos-service
|
- name: bakery/pos-service
|
||||||
|
newName: gitea-http.gitea.svc.cluster.local:3000/bakery-admin/pos-service
|
||||||
newTag: latest
|
newTag: latest
|
||||||
- name: bakery/orders-service
|
- name: bakery/orders-service
|
||||||
|
newName: gitea-http.gitea.svc.cluster.local:3000/bakery-admin/orders-service
|
||||||
newTag: latest
|
newTag: latest
|
||||||
- name: bakery/production-service
|
- name: bakery/production-service
|
||||||
|
newName: gitea-http.gitea.svc.cluster.local:3000/bakery-admin/production-service
|
||||||
newTag: latest
|
newTag: latest
|
||||||
- name: bakery/alert-processor
|
- name: bakery/alert-processor
|
||||||
|
newName: gitea-http.gitea.svc.cluster.local:3000/bakery-admin/alert-processor
|
||||||
newTag: latest
|
newTag: latest
|
||||||
- name: bakery/gateway
|
- name: bakery/gateway
|
||||||
|
newName: gitea-http.gitea.svc.cluster.local:3000/bakery-admin/gateway
|
||||||
newTag: latest
|
newTag: latest
|
||||||
- name: bakery/dashboard
|
- name: bakery/dashboard
|
||||||
|
newName: gitea-http.gitea.svc.cluster.local:3000/bakery-admin/dashboard
|
||||||
newTag: latest
|
newTag: latest
|
||||||
# =============================================================================
|
# =============================================================================
|
||||||
# Production Base Images - mapped to production registry
|
# Database images (cached in gitea registry for consistency)
|
||||||
# TODO: Update PROD_REGISTRY_URL to your production registry (e.g., ghcr.io/your-org)
|
|
||||||
# =============================================================================
|
|
||||||
# Database images (using canonical Docker Hub - no rate limits in prod with auth)
|
|
||||||
- name: postgres
|
- name: postgres
|
||||||
newTag: 17-alpine
|
newName: gitea-http.gitea.svc.cluster.local:3000/bakery-admin/postgres
|
||||||
|
newTag: "17-alpine"
|
||||||
- name: redis
|
- name: redis
|
||||||
newTag: 7.4-alpine
|
newName: gitea-http.gitea.svc.cluster.local:3000/bakery-admin/redis
|
||||||
|
newTag: "7.4-alpine"
|
||||||
- name: rabbitmq
|
- name: rabbitmq
|
||||||
newTag: 4.1-management-alpine
|
newName: gitea-http.gitea.svc.cluster.local:3000/bakery-admin/rabbitmq
|
||||||
|
newTag: "4.1-management-alpine"
|
||||||
# Utility images
|
# Utility images
|
||||||
- name: busybox
|
- name: busybox
|
||||||
|
newName: gitea-http.gitea.svc.cluster.local:3000/bakery-admin/busybox
|
||||||
newTag: "1.36"
|
newTag: "1.36"
|
||||||
- name: curlimages/curl
|
- name: curlimages/curl
|
||||||
|
newName: gitea-http.gitea.svc.cluster.local:3000/bakery-admin/curlimages-curl
|
||||||
newTag: latest
|
newTag: latest
|
||||||
- name: bitnami/kubectl
|
- name: bitnami/kubectl
|
||||||
|
newName: gitea-http.gitea.svc.cluster.local:3000/bakery-admin/bitnami-kubectl
|
||||||
newTag: latest
|
newTag: latest
|
||||||
|
|
||||||
# Alpine variants
|
# Alpine variants
|
||||||
- name: alpine
|
- name: alpine
|
||||||
|
newName: gitea-http.gitea.svc.cluster.local:3000/bakery-admin/alpine
|
||||||
newTag: "3.19"
|
newTag: "3.19"
|
||||||
- name: alpine/git
|
- name: alpine/git
|
||||||
|
newName: gitea-http.gitea.svc.cluster.local:3000/bakery-admin/alpine-git
|
||||||
newTag: 2.43.0
|
newTag: 2.43.0
|
||||||
# CI/CD images (GCR/registry.k8s.io - no rate limits)
|
# CI/CD images (cached in gitea registry for consistency)
|
||||||
- name: gcr.io/kaniko-project/executor
|
- name: gcr.io/kaniko-project/executor
|
||||||
|
newName: gitea-http.gitea.svc.cluster.local:3000/bakery-admin/gcr.io-kaniko-project-executor
|
||||||
newTag: v1.23.0
|
newTag: v1.23.0
|
||||||
- name: gcr.io/go-containerregistry/crane
|
- name: gcr.io/go-containerregistry/crane
|
||||||
|
newName: gitea-http.gitea.svc.cluster.local:3000/bakery-admin/gcr.io-go-containerregistry-crane
|
||||||
newTag: latest
|
newTag: latest
|
||||||
- name: registry.k8s.io/kustomize/kustomize
|
- name: registry.k8s.io/kustomize/kustomize
|
||||||
|
newName: gitea-http.gitea.svc.cluster.local:3000/bakery-admin/registry.k8s.io-kustomize-kustomize
|
||||||
newTag: v5.3.0
|
newTag: v5.3.0
|
||||||
# Storage images
|
# Storage images
|
||||||
- name: minio/minio
|
- name: minio/minio
|
||||||
|
newName: gitea-http.gitea.svc.cluster.local:3000/bakery-admin/minio-minio
|
||||||
newTag: RELEASE.2024-11-07T00-52-20Z
|
newTag: RELEASE.2024-11-07T00-52-20Z
|
||||||
- name: minio/mc
|
- name: minio/mc
|
||||||
|
newName: gitea-http.gitea.svc.cluster.local:3000/bakery-admin/minio-mc
|
||||||
newTag: RELEASE.2024-11-17T19-35-25Z
|
newTag: RELEASE.2024-11-17T19-35-25Z
|
||||||
# NOTE: nominatim image override removed - nominatim is now deployed via Helm
|
# NOTE: nominatim image override removed - nominatim is now deployed via Helm
|
||||||
# Python base image
|
# Python base image
|
||||||
- name: python
|
- name: python
|
||||||
|
newName: gitea-http.gitea.svc.cluster.local:3000/bakery-admin/python
|
||||||
newTag: 3.11-slim
|
newTag: 3.11-slim
|
||||||
|
|
||||||
replicas:
|
replicas:
|
||||||
|
|||||||
@@ -20,6 +20,9 @@ patches:
|
|||||||
value: gitea.bakewise.ai
|
value: gitea.bakewise.ai
|
||||||
- op: replace
|
- op: replace
|
||||||
path: /spec/tls/0/hosts/2
|
path: /spec/tls/0/hosts/2
|
||||||
|
value: registry.bakewise.ai
|
||||||
|
- op: add
|
||||||
|
path: /spec/tls/0/hosts/-
|
||||||
value: mail.bakewise.ai
|
value: mail.bakewise.ai
|
||||||
- op: replace
|
- op: replace
|
||||||
path: /spec/tls/0/secretName
|
path: /spec/tls/0/secretName
|
||||||
@@ -32,10 +35,11 @@ patches:
|
|||||||
value: gitea.bakewise.ai
|
value: gitea.bakewise.ai
|
||||||
- op: replace
|
- op: replace
|
||||||
path: /spec/rules/2/host
|
path: /spec/rules/2/host
|
||||||
value: mail.bakewise.ai
|
value: registry.bakewise.ai
|
||||||
|
# Mail rule removed - mail ingress is deployed separately via mailu-helm
|
||||||
- op: add
|
- op: add
|
||||||
path: /metadata/annotations/nginx.ingress.kubernetes.io~1cors-allow-origin
|
path: /metadata/annotations/nginx.ingress.kubernetes.io~1cors-allow-origin
|
||||||
value: "https://bakewise.ai,https://www.bakewise.ai,https://mail.bakewise.ai"
|
value: "https://bakewise.ai,https://www.bakewise.ai,https://mail.bakewise.ai,https://registry.bakewise.ai,https://gitea.bakewise.ai"
|
||||||
- op: add
|
- op: add
|
||||||
path: /metadata/annotations/nginx.ingress.kubernetes.io~1limit-rps
|
path: /metadata/annotations/nginx.ingress.kubernetes.io~1limit-rps
|
||||||
value: "100"
|
value: "100"
|
||||||
|
|||||||
Reference in New Issue
Block a user