Skip to content

Commit

Permalink
chore: update config of installation by Kustomize (apache#557)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
fhuzero authored and fgksgf committed Aug 14, 2021
1 parent 14ab734 commit f54fc36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion samples/deploy/configmap/apisix-ingress-cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion samples/deploy/deployment/ingress-controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f54fc36

Please sign in to comment.