You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by ga...@apache.org on 2023/03/10 08:19:26 UTC

[apisix-helm-chart] branch master updated: feat: adding IPv6 Single Stack support (#492)

This is an automated email from the ASF dual-hosted git repository.

gallardot 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 850e2da  feat: adding IPv6 Single Stack support (#492)
850e2da is described below

commit 850e2dafbb77490fa958210e03a4a65d189efab0
Author: Igor Borisoglebski <ig...@gmail.com>
AuthorDate: Fri Mar 10 08:19:21 2023 +0000

    feat: adding IPv6 Single Stack support (#492)
    
    * adding IPv6 Single Stack support
    
    * Fixing helm-docs CI issue
---
 charts/apisix/README.md                | 1 +
 charts/apisix/templates/configmap.yaml | 2 +-
 charts/apisix/values.yaml              | 2 ++
 3 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/charts/apisix/README.md b/charts/apisix/README.md
index 23c3d18..7d31459 100644
--- a/charts/apisix/README.md
+++ b/charts/apisix/README.md
@@ -49,6 +49,7 @@ The command removes all the Kubernetes components associated with the chart and
 | admin.externalIPs | list | `[]` | IPs for which nodes in the cluster will also accept traffic for the servic |
 | admin.ingress | object | `{"annotations":{},"enabled":false,"hosts":[{"host":"apisix-admin.local","paths":["/apisix"]}],"tls":[]}` | Using ingress access Apache APISIX admin service |
 | admin.ingress.annotations | object | `{}` | Ingress annotations |
+| admin.ip | string | `"0.0.0.0"` | which ip to listen on for Apache APISIX admin API. Set to `"[::]"` when on IPv6 single stack |
 | admin.port | int | `9180` | which port to use for Apache APISIX admin API |
 | admin.servicePort | int | `9180` | Service port to use for Apache APISIX admin API |
 | admin.type | string | `"ClusterIP"` | admin service type |
diff --git a/charts/apisix/templates/configmap.yaml b/charts/apisix/templates/configmap.yaml
index ca52b1c..c1bc849 100644
--- a/charts/apisix/templates/configmap.yaml
+++ b/charts/apisix/templates/configmap.yaml
@@ -298,7 +298,7 @@ data:
         #   - "::/64"
         {{- if .Values.admin.enabled }}
         admin_listen:
-          ip: 0.0.0.0
+          ip: {{ .Values.admin.ip }}
           port: {{ .Values.admin.port }}
         {{- end }}
         # Default token when use API to call for Admin API.
diff --git a/charts/apisix/values.yaml b/charts/apisix/values.yaml
index 1eeeb32..4543fbd 100644
--- a/charts/apisix/values.yaml
+++ b/charts/apisix/values.yaml
@@ -293,6 +293,8 @@ admin:
   #   - "143.231.0.0/16"
   # -- IPs for which nodes in the cluster will also accept traffic for the servic
   externalIPs: []
+  # -- which ip to listen on for Apache APISIX admin API. Set to `"[::]"` when on IPv6 single stack
+  ip: 0.0.0.0
   # -- which port to use for Apache APISIX admin API
   port: 9180
   # -- Service port to use for Apache APISIX admin API