From aa57c9b2aa42570d9276d2ee5172a347a6d1746b Mon Sep 17 00:00:00 2001 From: sami Date: Wed, 12 Aug 2026 18:51:48 +0600 Subject: [PATCH 1/2] node anti-affinity for platform api and billing processor Signed-off-by: sami --- .../billing/templates/processor/statefulset.yaml | 15 +++++++++++++-- charts/platform-api/templates/statefulset.yaml | 14 ++++++++++++-- 2 files changed, 25 insertions(+), 4 deletions(-) diff --git a/charts/billing/templates/processor/statefulset.yaml b/charts/billing/templates/processor/statefulset.yaml index 400b20ffe..b18852ff0 100644 --- a/charts/billing/templates/processor/statefulset.yaml +++ b/charts/billing/templates/processor/statefulset.yaml @@ -182,9 +182,20 @@ spec: nodeSelector: {{- toYaml . | nindent 8 }} {{- end }} - {{- with .Values.affinity }} + {{- if .Values.affinity }} affinity: - {{- toYaml . | nindent 8 }} + {{- toYaml .Values.affinity | nindent 8 }} + {{- else }} + affinity: + podAntiAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 100 + podAffinityTerm: + labelSelector: + matchLabels: + app.kubernetes.io/component: "processor" + {{- include "billing.selectorLabels" . | nindent 20 }} + topologyKey: kubernetes.io/hostname {{- end }} {{- with .Values.tolerations }} tolerations: diff --git a/charts/platform-api/templates/statefulset.yaml b/charts/platform-api/templates/statefulset.yaml index ed30edcc2..f1a08d28c 100644 --- a/charts/platform-api/templates/statefulset.yaml +++ b/charts/platform-api/templates/statefulset.yaml @@ -262,9 +262,19 @@ spec: nodeSelector: {{- toYaml . | nindent 8 }} {{- end }} - {{- with .Values.affinity }} + {{- if .Values.affinity }} affinity: - {{- toYaml . | nindent 8 }} + {{- toYaml .Values.affinity | nindent 8 }} + {{- else }} + affinity: + podAntiAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 100 + podAffinityTerm: + labelSelector: + matchLabels: + {{- include "platform-api.selectorLabels" . | nindent 20 }} + topologyKey: kubernetes.io/hostname {{- end }} {{- with .Values.tolerations }} tolerations: From 096c07c5eadd3f2d163d8548634a2a29448a2cca Mon Sep 17 00:00:00 2001 From: sami Date: Thu, 13 Aug 2026 11:41:15 +0600 Subject: [PATCH 2/2] set invoice.bucket="" to fix ci Signed-off-by: sami --- charts/ace/README.md | 2 +- charts/ace/values.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/ace/README.md b/charts/ace/README.md index 786d4ba47..db0c1a929 100644 --- a/charts/ace/README.md +++ b/charts/ace/README.md @@ -125,7 +125,7 @@ The following table lists the configurable parameters of the `ace` chart and the | global.infra.badger.mountPath | | /badger | | global.infra.badger.levels | | 7 | | global.infra.invoice.mountPath | | /billing | -| global.infra.invoice.bucket | | | +| global.infra.invoice.bucket | | "" | | global.infra.invoice.prefix | | "" | | global.infra.invoice.trackerEmail | | invoice-tracker@appscode.com | | global.infra.fileserver.baseURL | | "" | diff --git a/charts/ace/values.yaml b/charts/ace/values.yaml index 1c9e248c5..8f6c4b954 100644 --- a/charts/ace/values.yaml +++ b/charts/ace/values.yaml @@ -268,7 +268,7 @@ global: levels: 7 invoice: mountPath: /billing - bucket: + bucket: "" prefix: "" trackerEmail: invoice-tracker@appscode.com fileserver: