[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. ]
- latest stable chart
- Kong Ingress 0.6.0
- DB-less mode
- kubernetes
- 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”:[]}