diff --git a/charts/apisix/templates/ingress-control.yaml b/charts/apisix/templates/ingress-control.yaml index a53c7f6c..5b431642 100644 --- a/charts/apisix/templates/ingress-control.yaml +++ b/charts/apisix/templates/ingress-control.yaml @@ -16,7 +16,7 @@ {{- if (and .Values.control.enabled .Values.control.ingress.enabled) -}} {{- $fullName := include "apisix.fullname" . -}} -{{- $svcPort := .Values.control.servicePort -}} +{{- $svcPort := .Values.control.service.servicePort -}} {{- if and .Values.control.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }} {{- if not (hasKey .Values.control.ingress.annotations "kubernetes.io/ingress.class") }} {{- $_ := set .Values.control.ingress.annotations "kubernetes.io/ingress.class" .Values.control.ingress.className}} @@ -65,7 +65,7 @@ spec: service: name: {{ $fullName }}-control port: - number: {{ $svcPort }} + number: {{ $svcPort }} {{- else }} backend: serviceName: {{ $fullName }}-control diff --git a/charts/apisix/templates/service-control.yaml b/charts/apisix/templates/service-control.yaml index 0519aed8..679e9851 100644 --- a/charts/apisix/templates/service-control.yaml +++ b/charts/apisix/templates/service-control.yaml @@ -13,7 +13,7 @@ # 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 (and .Values.apisix.enabled .Values.control.enabled) }} +{{ if (.Values.control.enabled) }} apiVersion: v1 kind: Service metadata: diff --git a/charts/apisix/values.yaml b/charts/apisix/values.yaml index f552c7dc..3b785e96 100644 --- a/charts/apisix/values.yaml +++ b/charts/apisix/values.yaml @@ -235,7 +235,7 @@ control: # nodePort: 32000 # -- which ip to listen on for Apache APISIX Control API - ip: "127.0.0.1" + ip: 0.0.0.0 # -- which port to use for Apache APISIX Control API port: 9090 # -- Service port to use for Apache APISIX Control API @@ -253,7 +253,7 @@ control: hosts: - host: apisix-control.local paths: - - "/*" + - "/" tls: [] # - secretName: apisix-tls # hosts: