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 2021/09/22 06:59:36 UTC
[GitHub] [apisix-ingress-controller] tao12345666333 commented on issue #565: bug: apisix-ingress-controller+k3s is not work
tao12345666333 commented on issue #565:
URL: https://github.com/apache/apisix-ingress-controller/issues/565#issuecomment-924642307
Sorry for delay.
I created a k3s cluster using [k3d](https://k3d.io/)
```
~/k3s# kubectl get nodes
NAME STATUS ROLES AGE VERSION
k3d-k3s-default-agent-2 Ready <none> 41m v1.21.3+k3s1
k3d-k3s-default-agent-0 Ready <none> 41m v1.21.3+k3s1
k3d-k3s-default-agent-1 Ready <none> 41m v1.21.3+k3s1
k3d-k3s-default-server-0 Ready control-plane,master 42m v1.21.3+k3s1
```
And using Helm to deploy Apache APISIX & Apache APISIX Ingress controller:
```
~/k3s# helm install apisix apisix/apisix --set gateway.type=NodePort --set ingress-controller.enabled=true --namespace apisix --set etcd.volumePermissions.enabled=true
```
When all Pods reached the running state, I started the experiment.
This is my Ingress resource file.
```
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: httpserver-ingress
annotations:
kubernetes.io/ingress.class: apisix
spec:
rules:
- host: local.httpbin.org
http:
paths:
- backend:
service:
name: httpbin
port:
number: 80
path: /
pathType: Prefix
```
When I create Ingress using the file, it can sync to Apache APISIX and I can access it through NodePort.
```
~/k3s# curl 172.19.0.4:32510/get -H "HOST: local.httpbin.org"
{
"args": {},
"headers": {
"Accept": "*/*",
"Host": "local.httpbin.org",
"User-Agent": "curl/7.58.0",
"X-Forwarded-Host": "local.httpbin.org"
},
"origin": "10.42.2.0",
"url": "http://local.httpbin.org/get"
}
```
--
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