This is an automated email from the ASF dual-hosted git repository.
alinsran pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-helm-chart.git
The following commit(s) were added to refs/heads/master by this push:
new e0f24ce feat: release apisix-ingress-controller 2.0.0-rc3 (#854)
e0f24ce is described below
commit e0f24ceb607718373e8245bf93199a79924614f7
Author: AlinsRan <[email protected]>
AuthorDate: Mon Aug 4 17:40:46 2025 +0800
feat: release apisix-ingress-controller 2.0.0-rc3 (#854)
---
charts/apisix-ingress-controller/Chart.yaml | 4 +-
charts/apisix-ingress-controller/README.md | 10 ++++-
.../templates/deployment.yaml | 4 ++
.../templates/service.yaml | 8 ++--
.../templates/servicemonitor.yaml | 48 ++++++++++++++++++++++
charts/apisix-ingress-controller/values.yaml | 19 ++++++++-
6 files changed, 83 insertions(+), 10 deletions(-)
diff --git a/charts/apisix-ingress-controller/Chart.yaml
b/charts/apisix-ingress-controller/Chart.yaml
index 5d43c16..0890476 100644
--- a/charts/apisix-ingress-controller/Chart.yaml
+++ b/charts/apisix-ingress-controller/Chart.yaml
@@ -24,8 +24,8 @@ keywords:
- nginx
- crd
type: application
-version: 1.0.3
-appVersion: 2.0.0-rc2
+version: 1.0.4
+appVersion: 2.0.0-rc3
sources:
- https://github.com/apache/apisix-helm-chart
diff --git a/charts/apisix-ingress-controller/README.md
b/charts/apisix-ingress-controller/README.md
index 889256f..62d4e25 100644
--- a/charts/apisix-ingress-controller/README.md
+++ b/charts/apisix-ingress-controller/README.md
@@ -124,14 +124,14 @@ The same for container level, you need to set:
| config.metricsAddr | string | `":8080"` | |
| config.probeAddr | string | `":8081"` | |
| config.provider.initSyncDelay | string | `"20m"` | |
-| config.provider.syncPeriod | string | `"1s"` | |
+| config.provider.syncPeriod | string | `"1m"` | |
| config.provider.type | string | `"apisix"` | |
| config.secureMetrics | bool | `false` | |
| deployment.affinity | object | `{}` | |
| deployment.annotations | object | `{}` | Add annotations to Apache APISIX
ingress controller resource |
| deployment.image.pullPolicy | string | `"IfNotPresent"` | |
| deployment.image.repository | string | `"apache/apisix-ingress-controller"`
| |
-| deployment.image.tag | string | `"2.0.0-rc2"` | |
+| deployment.image.tag | string | `"2.0.0-rc3"` | |
| deployment.nodeSelector | object | `{}` | |
| deployment.podAnnotations | object | `{}` | |
| deployment.podSecurityContext | object | `{}` | |
@@ -151,3 +151,9 @@ The same for container level, you need to set:
| podDisruptionBudget.enabled | bool | `false` | Enable or disable
podDisruptionBudget |
| podDisruptionBudget.maxUnavailable | int | `1` | Set the maxUnavailable of
podDisruptionBudget |
| podDisruptionBudget.minAvailable | string | `"90%"` | Set the `minAvailable`
of podDisruptionBudget. You can specify only one of `maxUnavailable` and
`minAvailable` in a single PodDisruptionBudget. See [Specifying a Disruption
Budget for your
Application](https://kubernetes.io/docs/tasks/run-application/configure-pdb/#specifying-a-poddisruptionbudget)
for more details |
+| serviceMonitor.annotations | object | `{}` | @param
serviceMonitor.annotations ServiceMonitor annotations |
+| serviceMonitor.enabled | bool | `false` | Enable or disable ServiceMonitor |
+| serviceMonitor.interval | string | `"15s"` | @param serviceMonitor.interval
Interval at which metrics should be scraped |
+| serviceMonitor.labels | object | `{}` | @param serviceMonitor.labels
ServiceMonitor extra labels |
+| serviceMonitor.metricRelabelings | object | `{}` | @param
serviceMonitor.metricRelabelings MetricRelabelConfigs to apply to samples
before ingestion. ref:
https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_relabel_configs
|
+| serviceMonitor.namespace | string | `"monitoring"` | @param
serviceMonitor.namespace Namespace in which to create the ServiceMonitor |
diff --git a/charts/apisix-ingress-controller/templates/deployment.yaml
b/charts/apisix-ingress-controller/templates/deployment.yaml
index 2270537..746ea8d 100644
--- a/charts/apisix-ingress-controller/templates/deployment.yaml
+++ b/charts/apisix-ingress-controller/templates/deployment.yaml
@@ -53,6 +53,10 @@ spec:
fieldRef:
fieldPath: metadata.name
image: "{{ .Values.deployment.image.repository }}:{{
.Values.deployment.image.tag }}"
+ ports:
+ - containerPort: {{ splitList ":" .Values.config.metricsAddr | last |
int }}
+ name: metrics
+ protocol: TCP
volumeMounts:
- name: {{ .Release.Name }}-ingress-config
mountPath: /app/conf/config.yaml
diff --git a/charts/apisix-ingress-controller/templates/service.yaml
b/charts/apisix-ingress-controller/templates/service.yaml
index b698125..03e608b 100644
--- a/charts/apisix-ingress-controller/templates/service.yaml
+++ b/charts/apisix-ingress-controller/templates/service.yaml
@@ -19,13 +19,13 @@ kind: Service
metadata:
labels:
{{- include "apisix-ingress-controller-manager.labels" . | nindent 4 }}
- name: {{ .Release.Name }}-metrics-service
+ name: {{ include "apisix-ingress-controller-manager.name.fullname" . }}
namespace: {{ .Release.Namespace }}
spec:
ports:
- - name: https
- port: 8443
+ - name: metrics
+ port: 8080
protocol: TCP
- targetPort: 8443
+ targetPort: metrics
selector:
{{- include "apisix-ingress-controller-manager.selectorLabels" . | nindent
4 }}
diff --git a/charts/apisix-ingress-controller/templates/servicemonitor.yaml
b/charts/apisix-ingress-controller/templates/servicemonitor.yaml
new file mode 100644
index 0000000..87ebe48
--- /dev/null
+++ b/charts/apisix-ingress-controller/templates/servicemonitor.yaml
@@ -0,0 +1,48 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+{{- if .Values.serviceMonitor.enabled }}
+apiVersion: monitoring.coreos.com/v1
+kind: ServiceMonitor
+metadata:
+ name: {{ include "apisix-ingress-controller-manager.name.fullname" . }}
+ {{- if .Values.serviceMonitor.namespace }}
+ namespace: {{ .Values.serviceMonitor.namespace }}
+ {{- end }}
+ {{- if .Values.serviceMonitor.labels }}
+ labels: {{- toYaml .Values.serviceMonitor.labels | nindent 4 }}
+ {{- end }}
+ {{- if .Values.serviceMonitor.annotations }}
+ annotations: {{- toYaml .Values.serviceMonitor.annotations | nindent 4 }}
+ {{- end }}
+spec:
+ endpoints:
+ - targetPort: metrics
+ scheme: http
+ {{- if .Values.serviceMonitor.interval }}
+ interval: {{ .Values.serviceMonitor.interval }}
+ {{- end }}
+ {{- with .Values.serviceMonitor.metricRelabelings }}
+ metricRelabelings: {{ toYaml . | nindent 6 }}
+ {{- end }}
+ namespaceSelector:
+ matchNames:
+ - {{ .Release.Namespace }}
+
+ selector:
+ matchLabels:
+ {{- include "apisix-ingress-controller-manager.labels" . | nindent 6 }}
+{{- end }}
diff --git a/charts/apisix-ingress-controller/values.yaml
b/charts/apisix-ingress-controller/values.yaml
index 444694e..9e4d034 100644
--- a/charts/apisix-ingress-controller/values.yaml
+++ b/charts/apisix-ingress-controller/values.yaml
@@ -60,7 +60,7 @@ deployment:
image:
repository: apache/apisix-ingress-controller
pullPolicy: IfNotPresent
- tag: "2.0.0-rc2"
+ tag: "2.0.0-rc3"
# -- Set pod resource requests & limits
resources: {}
@@ -80,7 +80,7 @@ config:
execADCTimeout: "15s"
provider:
type: "apisix"
- syncPeriod: "1s"
+ syncPeriod: "1m"
initSyncDelay: "20m"
kubernetes:
ingressClass: apisix
@@ -102,3 +102,18 @@ apisix:
namespace: apisix-ingress
name: apisix-admin
port: 9180
+
+serviceMonitor:
+ # -- Enable or disable ServiceMonitor
+ enabled: false
+ # -- @param serviceMonitor.namespace Namespace in which to create the
ServiceMonitor
+ namespace: "monitoring"
+ # -- @param serviceMonitor.interval Interval at which metrics should be
scraped
+ interval: 15s
+ # -- @param serviceMonitor.labels ServiceMonitor extra labels
+ labels: {}
+ # -- @param serviceMonitor.annotations ServiceMonitor annotations
+ annotations: {}
+ # -- @param serviceMonitor.metricRelabelings MetricRelabelConfigs to apply
to samples before ingestion.
+ # ref:
https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_relabel_configs
+ metricRelabelings: {}