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/02/22 14:26:58 UTC
[GitHub] [apisix-ingress-controller] Bhanuji95 edited a comment on issue #259: request help: Getting route not found issue
Bhanuji95 edited a comment on issue #259:
URL: https://github.com/apache/apisix-ingress-controller/issues/259#issuecomment-783411801
Hello,
Below is the ingress configuration I used.
## Upstream ##
```
apiVersion: apisix.apache.org/v1
kind: ApisixUpstream
metadata:
name: myapp
spec:
ports:
- port: 80
loadbalancer:
type: chash
hashOn: header
key: path
```
---
## Route ##
```
apiVersion: apisix.apache.org/v1
kind: ApisixRoute
metadata:
name: myapp
spec:
rules:
- host: localhost
http:
paths:
- backend:
serviceName: myservice
servicePort: 80
path: /path*
```
A log from ingress controller says: E0222 22:24:19.709891 1 leaderelection.go:325] error retrieving resource lock default/ingress-apisix-leader: leases.coordination.k8s.io "ingress-apisix-leader" is forbidden: User "system:serviceaccount:default:apisix-view-serviceaccount" cannot get resource "leases" in API group "coordination.k8s.io" in the namespace "default"
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org