Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. apiVersion: configuration.konghq.com/v1
  2. kind: KongConsumer
  3. metadata:
  4. name: consumer1
  5. namespace: nginx-kong-test
  6. username: consumer1
  7.  
  8. ---
  9. apiVersion: configuration.konghq.com/v1
  10. kind: KongConsumer
  11. metadata:
  12. name: consumer2
  13. namespace: nginx-kong-test
  14. username: consumer2
  15.  
  16. ---
  17. apiVersion: configuration.konghq.com/v1
  18. kind: KongCredential
  19. metadata:
  20. name: credential1
  21. namespace: nginx-kong-test
  22. consumerRef: consumer1
  23. type: key-auth
  24. config:
  25. key: "111"
  26.  
  27. ---
  28. apiVersion: configuration.konghq.com/v1
  29. kind: KongCredential
  30. metadata:
  31. name: credential2
  32. namespace: nginx-kong-test
  33. consumerRef: consumer2
  34. type: key-auth
  35. config:
  36. key: "222"
  37.  
  38. ---
  39. apiVersion: configuration.konghq.com/v1
  40. kind: KongPlugin
  41. metadata:
  42. name: key-auth-consumer1
  43. namespace: nginx-kong-test
  44. disabled: false
  45. consumerRef: consumer1
  46. plugin: key-auth
  47. config:
  48. hide_credentials: true
  49.  
  50. ---
  51. apiVersion: configuration.konghq.com/v1
  52. kind: KongPlugin
  53. metadata:
  54. name: key-auth-consumer2
  55. namespace: nginx-kong-test
  56. disabled: false
  57. consumerRef: consumer2
  58. plugin: key-auth
  59. config:
  60. hide_credentials: true
  61.  
  62. ---
  63. apiVersion: configuration.konghq.com/v1
  64. kind: KongPlugin
  65. metadata:
  66. name: rl-consumer1
  67. namespace: nginx-kong-test
  68. enabled: true
  69. consumerRef: consumer1
  70. config:
  71. second: 1
  72. plugin: rate-limiting
  73.  
  74. ---
  75. apiVersion: configuration.konghq.com/v1
  76. kind: KongPlugin
  77. metadata:
  78. name: rl-consumer2
  79. namespace: nginx-kong-test
  80. enabled: true
  81. consumerRef: consumer2
  82. config:
  83. second: 10
  84. plugin: rate-limiting
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement