You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/07/11 08:23:27 UTC
[GitHub] [apisix-ingress-controller] tao12345666333 opened a new issue, #1146: Add new `make dev-env` entry in Makefile
tao12345666333 opened a new issue, #1146:
URL: https://github.com/apache/apisix-ingress-controller/issues/1146
We should add a new `make dev-env` entry in Makefile, to start a dev environment.
It should do something:
* using kind create a new cluster
* Deploy APISIX + etcd
* Build apisix-ingress-controller’s image
* Deploy apisix-ingress-controller
Most of them are already contained in the current Makefile, we need to organize them
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Add new `make dev-env` entry in Makefile [apisix-ingress-controller]
Posted by "lakshya8066 (via GitHub)" <gi...@apache.org>.
lakshya8066 commented on issue #1146:
URL: https://github.com/apache/apisix-ingress-controller/issues/1146#issuecomment-1865420101
@tao12345666333 are you still working on this?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] zou8944 commented on issue #1146: Add new `make dev-env` entry in Makefile
Posted by GitBox <gi...@apache.org>.
zou8944 commented on issue #1146:
URL: https://github.com/apache/apisix-ingress-controller/issues/1146#issuecomment-1299731855
@tao12345666333 I tried this job and found something puzzle me.
First I tried the following script to create dev env,
```shell
dev-env: kind-up pack-image
kubectl create namespace ingress-apisix
helm repo add apisix https://charts.apiseven.com
helm repo update
helm install apisix apisix/apisix --namespace ingress-apisix
CA_BUNDLE=kubectl config view --raw --flatten -o json | jq -r '.clusters[] | select(.name == "'$(kubectl config current-context)'") | .cluster."certificate-authority-data"'
kubectl kustomize $(PWD)/samples/deploy | sed "s|\${CA_BUNDLE}|${CA_BUNDLE}|g" | kubectl apply -f -
kubectl set image deployment/ingress-controller ingress-controller=localhost:5001/apache/apisix-ingress-controller:dev
```
the step is:
running kind-up to strat cluster and k8s -> build image and deploy to local registry -> deploy apisix to k8s with helm -> deploy ingress controller with local directory `samples/deployment`.
but this didn't work, ingress controller cannot visit apisix properly, there are 2 causes.
1. apisix did not allow admin visit from other endpoint excepting 127.0.0.1

2. proxy_stream is not configured

according to [apisix helm chart](https://github.com/apache/apisix-helm-chart/blob/2d321a4b493f77b762758c11c197210e17b434e2/charts/apisix/templates/configmap.yaml#L103), I need to set `ingress-controller.enable=true` when `helm install`, but if so, an ingress controller deployment will be deploy also, this is not expected.
And now I have another idea: deploying apisix and apisix-ingress-controller, and then replace the image with `localhost:5001/apache/apisix-ingress-controller:dev`, the script may be
```shell
dev-env: kind-up pack-image
kubectl create namespace ingress-apisix
helm repo add apisix https://charts.apiseven.com
helm repo update
helm install apisix apisix/apisix \
--set gateway.type=NodePort \
--set ingress-controller.enabled=true \
--namespace ingress-apisix
kubectl set image deployment/apisix-ingress-controller apisix-ingress-controller=localhost:5001/apache/apisix-ingress-controller:dev
```
Could you please give me some advice?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] CrazyCollin commented on issue #1146: Add new `make dev-env` entry in Makefile
Posted by GitBox <gi...@apache.org>.
CrazyCollin commented on issue #1146:
URL: https://github.com/apache/apisix-ingress-controller/issues/1146#issuecomment-1301032912
Hi @zou8944 , sorry for my work and delayed response as I have a lot going on these days so. My initial idea was to use Helm to deploy apisix and etcd, then load the built ingress image into kind, after many attempts, the apisix instance still can't respond to ingress requests, it may be the same problem as yours. I think maybe my configuration file in samples/deployment is not set correctly.
I will unassign myself right away, sorry again.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Add new `make dev-env` entry in Makefile [apisix-ingress-controller]
Posted by "bzp2010 (via GitHub)" <gi...@apache.org>.
bzp2010 closed issue #1146: Add new `make dev-env` entry in Makefile
URL: https://github.com/apache/apisix-ingress-controller/issues/1146
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] Erhao commented on issue #1146: Add new `make dev-env` entry in Makefile
Posted by GitBox <gi...@apache.org>.
Erhao commented on issue #1146:
URL: https://github.com/apache/apisix-ingress-controller/issues/1146#issuecomment-1188536655
let me try
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] CrazyCollin commented on issue #1146: Add new `make dev-env` entry in Makefile
Posted by GitBox <gi...@apache.org>.
CrazyCollin commented on issue #1146:
URL: https://github.com/apache/apisix-ingress-controller/issues/1146#issuecomment-1259863059
Hi, @Erhao , are you still working on this issue? I'm a new learner of apisix ingress controller. Maybe I can have a try on this.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] ps-19 commented on issue #1146: Add new `make dev-env` entry in Makefile
Posted by "ps-19 (via GitHub)" <gi...@apache.org>.
ps-19 commented on issue #1146:
URL: https://github.com/apache/apisix-ingress-controller/issues/1146#issuecomment-1493840794
I wish to work on this issue.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Add new `make dev-env` entry in Makefile [apisix-ingress-controller]
Posted by "lakshya8066 (via GitHub)" <gi...@apache.org>.
lakshya8066 commented on issue #1146:
URL: https://github.com/apache/apisix-ingress-controller/issues/1146#issuecomment-1865420410
@tao12345666333 are you working on this?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tao12345666333 commented on issue #1146: Add new `make dev-env` entry in Makefile
Posted by GitBox <gi...@apache.org>.
tao12345666333 commented on issue #1146:
URL: https://github.com/apache/apisix-ingress-controller/issues/1146#issuecomment-1260233351
thanks! Please!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tao12345666333 commented on issue #1146: Add new `make dev-env` entry in Makefile
Posted by GitBox <gi...@apache.org>.
tao12345666333 commented on issue #1146:
URL: https://github.com/apache/apisix-ingress-controller/issues/1146#issuecomment-1264803682
You can change manifests under `sample/deploy` directory
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] CrazyCollin commented on issue #1146: Add new `make dev-env` entry in Makefile
Posted by GitBox <gi...@apache.org>.
CrazyCollin commented on issue #1146:
URL: https://github.com/apache/apisix-ingress-controller/issues/1146#issuecomment-1264627595
Hi, @tao12345666333 , feel sorry to bother you, after I build ingress controller image and load it into kind cluster, I have no good way to deploy it, sincerely looking forward to your advice.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] zou8944 commented on issue #1146: Add new `make dev-env` entry in Makefile
Posted by GitBox <gi...@apache.org>.
zou8944 commented on issue #1146:
URL: https://github.com/apache/apisix-ingress-controller/issues/1146#issuecomment-1294759663
@CrazyCollin How is this work going ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] CrazyCollin commented on issue #1146: Add new `make dev-env` entry in Makefile
Posted by GitBox <gi...@apache.org>.
CrazyCollin commented on issue #1146:
URL: https://github.com/apache/apisix-ingress-controller/issues/1146#issuecomment-1265664914
Many thanks to you.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tao12345666333 commented on issue #1146: Add new `make dev-env` entry in Makefile
Posted by GitBox <gi...@apache.org>.
tao12345666333 commented on issue #1146:
URL: https://github.com/apache/apisix-ingress-controller/issues/1146#issuecomment-1367786514
@zou8944 sorry for delay, I miss your message.
I think its SGTM.
Using Helm to deploy APISIX + APISIX Ingress controller, then replace apisix-ingress-controller's image.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] zou8944 commented on issue #1146: Add new `make dev-env` entry in Makefile
Posted by GitBox <gi...@apache.org>.
zou8944 commented on issue #1146:
URL: https://github.com/apache/apisix-ingress-controller/issues/1146#issuecomment-1369341903
OK, thanks. then this is PR https://github.com/apache/apisix-ingress-controller/pull/1460
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org