Skip to content

Instantly share code, notes, and snippets.

@DanukaPraneeth
Last active July 31, 2020 17:37
Show Gist options
  • Save DanukaPraneeth/5071d9e07c9ee46040a556feeec09429 to your computer and use it in GitHub Desktop.
Save DanukaPraneeth/5071d9e07c9ee46040a556feeec09429 to your computer and use it in GitHub Desktop.
Kong | Key Auth Plugin
apiVersion: configuration.konghq.com/v1
kind: KongClusterPlugin
metadata:
name: key-auth
labels:
global: "true"
plugin: key-auth
---
oc create secret generic sp-apikey --from-literal=kongCredType=key-auth --from-literal=key=2a0dfb1b-8c8b
---
apiVersion: configuration.konghq.com/v1
kind: KongConsumer
metadata:
name: test-sp
username: sp1
credentials:
- sp-apikey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment