Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apiVersion: configuration.konghq.com/v1
- kind: KongConsumer
- metadata:
- name: consumer1
- namespace: nginx-kong-test
- username: consumer1
- ---
- apiVersion: configuration.konghq.com/v1
- kind: KongConsumer
- metadata:
- name: consumer2
- namespace: nginx-kong-test
- username: consumer2
- ---
- apiVersion: configuration.konghq.com/v1
- kind: KongCredential
- metadata:
- name: credential1
- namespace: nginx-kong-test
- consumerRef: consumer1
- type: key-auth
- config:
- key: "111"
- ---
- apiVersion: configuration.konghq.com/v1
- kind: KongCredential
- metadata:
- name: credential2
- namespace: nginx-kong-test
- consumerRef: consumer2
- type: key-auth
- config:
- key: "222"
- ---
- apiVersion: configuration.konghq.com/v1
- kind: KongPlugin
- metadata:
- name: key-auth-consumer1
- namespace: nginx-kong-test
- disabled: false
- consumerRef: consumer1
- plugin: key-auth
- config:
- hide_credentials: true
- ---
- apiVersion: configuration.konghq.com/v1
- kind: KongPlugin
- metadata:
- name: key-auth-consumer2
- namespace: nginx-kong-test
- disabled: false
- consumerRef: consumer2
- plugin: key-auth
- config:
- hide_credentials: true
- ---
- apiVersion: configuration.konghq.com/v1
- kind: KongPlugin
- metadata:
- name: rl-consumer1
- namespace: nginx-kong-test
- enabled: true
- consumerRef: consumer1
- config:
- second: 1
- plugin: rate-limiting
- ---
- apiVersion: configuration.konghq.com/v1
- kind: KongPlugin
- metadata:
- name: rl-consumer2
- namespace: nginx-kong-test
- enabled: true
- consumerRef: consumer2
- config:
- second: 10
- plugin: rate-limiting
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement