From f54fc36d9c1abf23969acdee3fc7471abb47ae56 Mon Sep 17 00:00:00 2001 From: Fang <37891485+fhuzero@users.noreply.github.com> Date: Fri, 25 Jun 2021 09:15:56 +0800 Subject: [PATCH] chore: update config of installation by Kustomize (#557) Update default values in config file to make the installation of apisix-ingress-controller by Kustomize ready to use. * update the default version of apisix-ingress-controller container image to keep it up-to-date * update apisix.base_url to send requests to the correct APISIX address * add apisix.admin_key to configure APISIX Admin API access token. This avoids 401 Authenticaion Required error when invoking APISIX Admin API --- samples/deploy/configmap/apisix-ingress-cm.yaml | 3 ++- samples/deploy/deployment/ingress-controller.yaml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/samples/deploy/configmap/apisix-ingress-cm.yaml b/samples/deploy/configmap/apisix-ingress-cm.yaml index f9f04ba6d08..5c98ff8fb38 100644 --- a/samples/deploy/configmap/apisix-ingress-cm.yaml +++ b/samples/deploy/configmap/apisix-ingress-cm.yaml @@ -46,8 +46,9 @@ data: # APISIX related configurations. apisix: - base_url: "http://127.0.0.1:9080/apisix/admin" # the APISIX admin api / manager api + base_url: "http://apisix-admin:9180/apisix/admin" # the APISIX admin api / manager api # base url, it's required. + admin_key: "edd1c9f034335f136f87ad84b625c8f1" kind: ConfigMap metadata: name: apisix-ingress-cm diff --git a/samples/deploy/deployment/ingress-controller.yaml b/samples/deploy/deployment/ingress-controller.yaml index eaca8dd3281..f6ab3341f23 100644 --- a/samples/deploy/deployment/ingress-controller.yaml +++ b/samples/deploy/deployment/ingress-controller.yaml @@ -41,7 +41,7 @@ spec: hostNetwork: true dnsPolicy: ClusterFirstWithHostNet containers: - - image: apache/apisix-ingress-controller:0.1.0 + - image: apache/apisix-ingress-controller:1.0.0 imagePullPolicy: IfNotPresent name: ingress-controller ports: