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:
us...@infra.apache.org


Reply via email to