kubectl plugin support
Just like ingress-nginx:
https://github.com/kubernetes/ingress-nginx/blob/master/docs/kubectl-plugin.md.
I can't get it , more detail about this?
@masfbeca You can see https://kubernetes.io/docs/tasks/extend-kubectl/kubectl-plugins/ for the details.
@masfbeca You can see https://kubernetes.io/docs/tasks/extend-kubectl/kubectl-plugins/ for the details.
looks interesting, pls assigned to me
@masfbeca Assigned, feel free to ask any questions here :)
Hi @tokers and @masfbeca , it seems that this issue has not been updated for over two months. If possible, I would love to contribute to this repo starting from addressing this issue (#73). Would it be okay for you?
@fhuzero I will re-assign this issue for you.
There are 2 commands (version and ingress) already implemented for apisix-ingress-controller. As for ingress-nginx kubectl plugin, 11 commands are available, such as backends and ingresses. Do I need to add support for all commands existing in ingress-nginx kubectl plugin? Or is there a list of commands to add support for?
There are 2 commands (
versionandingress) already implemented forapisix-ingress-controller. As for ingress-nginx kubectl plugin, 11 commands are available, such asbackendsandingresses. Do I need to add support for all commands existing in ingress-nginx kubectl plugin? Or is there a list of commands to add support for?
I think we can add some vital ones firstly, we can add more and more gradually. Welcome to paste your proposal in this issue.
we can first supports these:
-
kubectl apic route -
kubectl apic route <ROUTE_NAME> service -
kubectl apic route <ROUTE_NAME> service <SVC_NAME> upstream
we can first supports these:
kubectl apic routekubectl apic route <ROUTE_NAME> servicekubectl apic route <ROUTE_NAME> service <SVC_NAME> upstream
The semantic term apic is not so strong. what about ingress-apisix?
we can first supports these:
kubectl apic routekubectl apic route <ROUTE_NAME> servicekubectl apic route <ROUTE_NAME> service <SVC_NAME> upstreamThe semantic term
apicis not so strong. what aboutingress-apisix?
I think apic means is apisix ingress controller abbreviation.
we can first supports these:
kubectl apic routekubectl apic route <ROUTE_NAME> servicekubectl apic route <ROUTE_NAME> service <SVC_NAME> upstreamThe semantic term
apicis not so strong. what aboutingress-apisix?I think
apicmeans isapisix ingress controllerabbreviation.
This abbreviation is not semantic
we can first supports these:
kubectl apic routekubectl apic route <ROUTE_NAME> servicekubectl apic route <ROUTE_NAME> service <SVC_NAME> upstream
Thanks for suggesting a list. I'll first add supports for those while determining a suitable abbreviation.
Hi. All. I will create the apisix-ingress-controller plugins.
- kubectl apisix-ingress-controller routes
- kubectl apisix-ingress-controller routes <ROUTE_ID> upstreams
But I met a go version problem. Who can tall me the go version?

Now . the apisix-ingress-controller is 1.13 in go.mod file. go_mod_version
What's your Go version? io/fs was introduced in Go/1.16.
What's your Go version?
io/fswas introduced in Go/1.16.
my go.mod information's have some problem, I fixed it.
Now. Have a new question. Sometimes the apisix-ingress-controller used ingress and ApisixRoute information's registry to the ApiSix, it's failed. So I hope the helm charts config is default in the ApiSix admin kubernetes svc use nodePort , The Plugin will get Route's and Upstream's from Apisix, it not from kubernetes CRD.
What's your Go version?
io/fswas introduced in Go/1.16.my go.mod information's have some problem, I fixed it.
Now. Have a new question. Sometimes the apisix-ingress-controller used ingress and ApisixRoute information's registry to the ApiSix, it's failed. So I hope the helm charts config is default in the ApiSix admin kubernetes svc use nodePort , The Plugin will get Route's and Upstream's from Apisix, it not from kubernetes CRD.
You may try to set up a tunnel to forward to port, then the service type won't be a problem.
I don't know how to set up a tunnel to forward. used kubectl proxy ,you mean? I find the konnectivity service at kubernetes docs . but the service can only run in version after v1.19.0. Unfriendly.
I don't know how to set up a tunnel to forward. used kubectl proxy ,you mean? I find the konnectivity service at kubernetes docs . but the service can only run in version after v1.19.0. Unfriendly.
Could you use the kubectl port-forward?
Hi everyone , I used free time wrote it . Can you give me some suggest?
[root@k8smaster01 bin]# kubectl apisix-ingress-controller routes -n ws
ID Name Host URI Status UpstreamId CreateTime UpdateTime
38e00c47 local.httpbin.org/* local.httpbin.org /* 1 5ce57b8e 1629860702 1629861940
4e49bfe9 ingress_myhttp.my.io_/dbsecurity myhttp.my.io 1 1f735525 1629946426 1629978356
a3f6a593 my.kibana.io/kibana my.kibana.io /kibana 1 9481b55a 1629860702 1629861940
[root@k8smaster01 bin]# cd /tmp
You can git clone my fork. enter the cmd/plugin dir ./install-plugin.sh in your kubernetes master node.
try it . : )
Hi everyone , I used free time wrote it . Can you give me some suggest?
[root@k8smaster01 bin]# kubectl apisix-ingress-controller routes -n ws ID Name Host URI Status UpstreamId CreateTime UpdateTime 38e00c47 local.httpbin.org/* local.httpbin.org /* 1 5ce57b8e 1629860702 1629861940 4e49bfe9 ingress_myhttp.my.io_/dbsecurity myhttp.my.io 1 1f735525 1629946426 1629978356 a3f6a593 my.kibana.io/kibana my.kibana.io /kibana 1 9481b55a 1629860702 1629861940 [root@k8smaster01 bin]# cd /tmpYou can git clone my fork. enter the cmd/plugin dir
./install-plugin.shin your kubernetes master node. try it . : )
Can we have a mechanism to show the whole route?