Kong do not sync KongConsumer and KongCredential in db-less mode

[Problem]
I create KongConsumer and KongCredential.
But I can not find result by admin API
I think kong did not sync with KongConsumer and KongCredential.

How can kong synchronize with KongConsumer and KongCredential?

[Env. ]

  1. latest stable chart
  2. Kong Ingress 0.6.0
  3. DB-less mode
  4. kubernetes
  5. closed network

[Progess]
In DB-mode, I add the kong-consumer and kong-credential by admin API
In DB-less mode, I create as bellow

apiVersion: configuration.konghq.com/v1
kind: KongConsumer
metadata:
name: global-consumer
username: GlobalConsumer
custom_id: GlobalConsumer

apiVersion: configuration.konghq.com/v1
kind: KongCredential
metadata:
name: global-consumer-credentials
consumerRef: global-consumer
type: jwt
config:
key: “aaa.com
rsa_public_key: |
-----BEGIN PUBLIC KEY-----
MIIBIjA-----------
NbOIuzKa----------
kwIDAQAB-----------
-----END PUBLIC KEY-----
algorithm: RS256

[root]# kubectl get kongconsumers
NAME USERNAME AGE
global-consumer GlobalConsumer 2m22s
[root]# kubectl get kongcredential
NAME CREDENTIAL-TYPE AGE CONSUMER-REF
global-consumer-credentials jwt 2m29s global-consumer

[root]# curl -k https://xx.xx.xx.xx:8444/consumers
{“next”:null,“data”:[]}

Are you using a custom Ingress class (other than the default kong)?
If so, you will need to use the class annotation on theses resources as well.

Good It works fine

The kong plugin works well without annotation even when using “custom Ingress class”.
But kong consumer and kong credential seem to be necessary.

If you have an example document that can be configured as a yaml file when using kong-ingress.
Please let me know.


© 2019 Kong Inc.    Terms  •  Privacy  •  FAQ