k8s-infra-cluster/infra/benthos/kustomization.yaml
2026-03-25 11:46:39 +01:00

61 lines
1.7 KiB
YAML

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: infra # <-- Add this here instead insidde of benthos-deployment.yaml
# 1. List your static YAML files here
resources:
#- nats-cluster.yaml
- benthos-deployment.yaml
#- benthos-service.yaml
# 2. List your config sources here
# This tells K8s: "Take every file in these folders and make ConfigMaps"
configMapGenerator:
- name: benthos-streams
files:
- streams/ingest_request_log_id_serial.yaml
- streams/ingest_transaction_log_id_serial.yaml
#- streams/poll_request_log_id_serial.yaml
#- streams/poll_transaction_id_serial.yaml
- name: benthos-templates
files:
- templates/ingest_template_id_serial.yaml
- templates/poll_template_id_serial.yaml
- name: benthos-resources
files:
- resources/resources.yaml
patches:
- target:
kind: Deployment
name: benthos # Ensure this matches the name inside benthos-deployment.yaml
patch: |-
- op: add
path: /spec/template/spec/nodeSelector
value:
node-role.kubernetes.io/nworker: "true"
# - target:
# kind: StatefulSet
# name: nats-cluster # Ensure this matches the 'metadata.name' in nats-cluster.yaml
# patch: |-
# - op: add
# path: /spec/template/spec/nodeSelector
# value:
# node-role.kubernetes.io/nworker: "true"
# helmCharts:
# - name: nats
# repo: https://nats-io.github.io/k8s/helm/charts/
# releaseName: nats-cluster
# namespace: infra
# valuesInline:
# nats:
# jetstream:
# enabled: true
# cluster:
# enabled: true
# replicas: 3