Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consumer resources are getting removed after each synchronization #113

Closed
megastallman opened this issue Sep 4, 2018 · 1 comment
Closed

Comments

@megastallman
Copy link

megastallman commented Sep 4, 2018

Summary

Consumer resources are getting removed after each synchronization

Kong Ingress controller version

kong-docker-kubernetes-ingress-controller.bintray.io/kong-ingress-controller:0.1.0

Kubernetes version

$ kubectl versionClient Version: version.Info{Major:"1", Minor:"11", GitVersion:"v1.11.2", GitCommit:"bb9ffb1654d4a729bb4cec18ff088eacc153c239", GitTreeState:"clean", BuildDate:"2018-08-07T23:17:28Z", GoVersion:"go1.10.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.1+a0ce1bc657", GitCommit:"a0ce1bc", GitTreeState:"clean", BuildDate:"2018-07-09T13:09:48Z", GoVersion:"go1.9.4", Compiler:"gc", Platform:"linux/amd64"}

Environment

  • 10 baremetal nodes
  • Red Hat Enterprise Linux Server, 7.5 (Maipo)
  • Linux k8-205.ololo.com 3.10.0-862.6.3.el7.x86_64 Status of controller? #1 SMP Fri Jun 15 17:57:37 EDT 2018 x86_64 x86_64 x86_64 GNU/Linux

What happened

Consumer resources are getting removed after each synchronization every time I create a new consumer. It lives not more than a minute.

Expected behavior

I expect to be able to use Consumers to apply plugin policies on them. I actually need X-Auth and Rate Limiting plugins applied to specified urls.

Steps To Reproduce

  1. curl -i -X POST http://active-202.ololo.com:30002/consumers/ --data 'username=user1' --data 'custom_id=cid1'
  2. curl -i -X POST http://active-202.ololo.com:30002/consumers/user1/key-auth --data ''
  3. Wait a couple of minutes just watching the ingress update loop in logs...
  4. curl -i -X GET http://active-202.ololo.com:30002/consumers/
    {"next":null,"data":[]}
@megastallman
Copy link
Author

Sorry, I've found the following resources:
#105
https:/Kong/kubernetes-ingress-controller/blob/master/deploy/minikube.md
#70

and created my own resource like this:

apiVersion: configuration.konghq.com/v1
kind: KongConsumer
metadata:
  name: consumer1
username: username1
custom_id: cid1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant