Skip to content

Instantly share code, notes, and snippets.

View DanukaPraneeth's full-sized avatar

Danuka Praneeth DanukaPraneeth

View GitHub Profile
apiVersion: configuration.konghq.com/v1
kind: KongClusterPlugin
metadata:
name: oidc-plugin
config:
client_id:
- kong-cli
client_secret:
- 23434-434-vdfg34-fsdf-534
verify_claims: false
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: ssotoken
annotations:
konghq.com/https-redirect-status-code: '302'
konghq.com/preserve-host: 'false'
konghq.com/protocols: https
konghq.com/strip-path: 'true'
spec:
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
 name: {{unique resource name}}
  namespace: {{name space of the micro service}}
annotations:
konghq.com/strip-path: "false"
konghq.com/methods: 'GET, POST'
konghq.com/plugins: '{plugin 1}, {plugin 2}'
konghq.com/protocols: https
apiVersion: configuration.konghq.com/v1
kind: KongClusterPlugin
metadata:
name: kafka-log-sit
labels:
global: \"true\"
config:
bootstrap_servers:
- host: cp-kafka.kafka-namespace.svc.cluster.local
port: 9092
apiVersion: configuration.konghq.com/v1
kind: KongClusterPlugin
metadata:
name: response-transformer
config:
add:
headers:
- x-new-header:value
if_status: []
json:
apiVersion: configuration.konghq.com/v1
kind: KongClusterPlugin
metadata:
name: request-transformer
config:
remove:
headers:
- x-toremove
- x-another-one
querystring:
apiVersion: configuration.konghq.com/v1
kind: KongClusterPlugin
metadata:
name: prometheus-plugin
labels:
global: \"true\"
plugin: prometheus
apiVersion: configuration.konghq.com/v1
kind: KongClusterPlugin
metadata:
name: response-ratelimit
config:
block_on_first_violation: false
fault_tolerant: true
header_name: Data
hide_client_headers: false
limit_by: ip
apiVersion: configuration.konghq.com/v1
kind: KongClusterPlugin
metadata:
name: canary-prometheus
config:
duration: null
groups: null
hash: none
percentage: 50
start: null
apiVersion: configuration.konghq.com/v1
kind: KongClusterPlugin
metadata:
name: acl-plugin
config:
whitelist: ['app-admin']
hide_groups_header: true
plugin: acl