This is an automated email from the ASF dual-hosted git repository.
zhangjintao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-ingress-controller.git
The following commit(s) were added to refs/heads/master by this push:
new df8316a rename command line options and update doc. (#848)
df8316a is described below
commit df8316aaceec40ae86857b1ef972a812c55b1252
Author: cmssczy <[email protected]>
AuthorDate: Mon Feb 7 01:15:57 2022 -0500
rename command line options and update doc. (#848)
---
cmd/ingress/ingress.go | 6 +++---
docs/en/latest/development.md | 6 +++---
docs/en/latest/practices/proxy-the-httpbin-service-with-ingress.md | 2 +-
docs/en/latest/practices/proxy-the-httpbin-service.md | 2 +-
4 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/cmd/ingress/ingress.go b/cmd/ingress/ingress.go
index a905ac3..b30de0f 100644
--- a/cmd/ingress/ingress.go
+++ b/cmd/ingress/ingress.go
@@ -69,19 +69,19 @@ Both json and yaml are supported as the configuration file
format.
Run from command line options:
- apisix-ingress-controller ingress --apisix-base-url
http://apisix-service:9180/apisix/admin --kubeconfig /path/to/kubeconfig
+ apisix-ingress-controller ingress --default-apisix-cluster-base-url
http://apisix-service:9180/apisix/admin --kubeconfig /path/to/kubeconfig
For Kubernetes cluster version older than v1.19.0, you should always set the
--ingress-version option to networking/v1beta1:
apisix-ingress-controller ingress \
- --apisix-base-url http://apisix-service:9180/apisix/admin \
+ --default-apisix-cluster-base-url
http://apisix-service:9180/apisix/admin \
--kubeconfig /path/to/kubeconfig \
--ingress-version networking/v1beta1
If your Kubernetes cluster version is prior to v1.14+, only
ingress.extensions/v1beta1 can be used.
apisix-ingress-controller ingress \
- --apisix-base-url http://apisix-service:9180/apisix/admin \
+ --default-apisix-cluster-base-url
http://apisix-service:9180/apisix/admin \
--kubeconfig /path/to/kubeconfig \
--ingress-version extensions/v1beta1
diff --git a/docs/en/latest/development.md b/docs/en/latest/development.md
index d9b11cd..080fd55 100644
--- a/docs/en/latest/development.md
+++ b/docs/en/latest/development.md
@@ -95,11 +95,11 @@ cd /path/to/apisix-ingress-controller
--kubeconfig /path/to/kubeconfig \
--http-listen :8080 \
--log-output stderr \
- --apisix-base-url http://192.168.65.2:31156/apisix/admin
- --apisix-admin-key edd1c9f034335f136f87ad84b625c8f1
+ --default-apisix-cluster-base-url http://192.168.65.2:31156/apisix/admin
+ --default-apisix-cluster-admin-key edd1c9f034335f136f87ad84b625c8f1
```
Something you need to pay attention to:
* configuring of `--kubeconfig`, if you are using Minikube, the file path
should be `~/.kube/config`.
-* configuring of `--apisix-admin-key`, if you have changed the admin key in
Apache APISIX, also changing it here, if you disable the authentication if
Apache APISIX, just removing this option.
+* configuring of `--default-apisix-cluster-admin-key`, if you have changed the
admin key in Apache APISIX, also changing it here. If you have disabled the
authentication in Apache APISIX, just removing this option.
diff --git a/docs/en/latest/practices/proxy-the-httpbin-service-with-ingress.md
b/docs/en/latest/practices/proxy-the-httpbin-service-with-ingress.md
index 2615552..cafe952 100644
--- a/docs/en/latest/practices/proxy-the-httpbin-service-with-ingress.md
+++ b/docs/en/latest/practices/proxy-the-httpbin-service-with-ingress.md
@@ -102,7 +102,7 @@ kubectl apply -f httpbin-ingress.yaml
## Test
-Run curl call in one of Apache APISIX Pods to check whether the resource was
delivered to it. Note you should replace the value of `--apisix-admin-key` to
the real `admin_key` value in your Apache APISIX cluster.
+Run curl call in one of Apache APISIX Pods to check whether the resource was
delivered to it. Note you should replace the value of
`--default-apisix-cluster-admin-key` to the real `admin_key` value in your
Apache APISIX cluster.
```shell
kubectl exec -it -n ${namespace of Apache APISIX} ${Pod name of Apache APISIX}
-- curl http://127.0.0.1:9180/apisix/admin/routes -H 'X-API-Key:
edd1c9f034335f136f87ad84b625c8f1'
diff --git a/docs/en/latest/practices/proxy-the-httpbin-service.md
b/docs/en/latest/practices/proxy-the-httpbin-service.md
index 2943b6f..1177ddb 100644
--- a/docs/en/latest/practices/proxy-the-httpbin-service.md
+++ b/docs/en/latest/practices/proxy-the-httpbin-service.md
@@ -72,7 +72,7 @@ kubectl apply -f httpbin-route.yaml
## Test
-Run curl call in one of Apache APISIX Pods to check whether the resource was
delivered to it. Note you should replace the value of `--apisix-admin-key` to
the real `admin_key` value in your Apache APISIX cluster.
+Run curl call in one of Apache APISIX Pods to check whether the resource was
delivered to it. Note you should replace the value of
`--default-apisix-cluster-admin-key` to the real `admin_key` value in your
Apache APISIX cluster.
```shell
kubectl exec -it -n ${namespace of Apache APISIX} ${Pod name of Apache APISIX}
-- curl http://127.0.0.1:9180/apisix/admin/routes -H 'X-API-Key:
edd1c9f034335f136f87ad84b625c8f1'