Globol Policies template
This commit is contained in:
@@ -8,6 +8,7 @@ apiVersion: configuration.konghq.com/v1
|
||||
kind: KongPlugin
|
||||
metadata:
|
||||
name: ${NAME}-openid-connect
|
||||
namespace: ${NAMESPACE}
|
||||
plugin: openid-connect
|
||||
config:
|
||||
issuer: ${OIDC_ISSUER}
|
||||
@@ -31,6 +32,7 @@ apiVersion: configuration.konghq.com/v1
|
||||
kind: KongPlugin
|
||||
metadata:
|
||||
name: ${NAME}-rate-limiting
|
||||
namespace: ${NAMESPACE}
|
||||
plugin: rate-limiting-advanced
|
||||
config:
|
||||
limit:
|
||||
@@ -44,6 +46,7 @@ apiVersion: configuration.konghq.com/v1
|
||||
kind: KongPlugin
|
||||
metadata:
|
||||
name: ${NAME}-cors
|
||||
namespace: ${NAMESPACE}
|
||||
plugin: cors
|
||||
config:
|
||||
origins:
|
||||
@@ -61,6 +64,7 @@ apiVersion: configuration.konghq.com/v1
|
||||
kind: KongPlugin
|
||||
metadata:
|
||||
name: ${NAME}-request-size-limiting
|
||||
namespace: ${NAMESPACE}
|
||||
plugin: request-size-limiting
|
||||
config:
|
||||
allowed_payload_size: ${REQUEST_MAX_BODY_SIZE}
|
||||
@@ -69,6 +73,7 @@ apiVersion: configuration.konghq.com/v1
|
||||
kind: KongPlugin
|
||||
metadata:
|
||||
name: ${NAME}-correlation-id
|
||||
namespace: ${NAMESPACE}
|
||||
plugin: correlation-id
|
||||
config:
|
||||
header_name: X-Correlation-ID
|
||||
@@ -85,6 +90,7 @@ apiVersion: configuration.konghq.com/v1
|
||||
kind: KongPlugin
|
||||
metadata:
|
||||
name: ${NAME}-hide-5xx-details
|
||||
namespace: ${NAMESPACE}
|
||||
plugin: response-transformer-advanced
|
||||
config:
|
||||
replace:
|
||||
@@ -99,6 +105,7 @@ apiVersion: configuration.konghq.com/v1
|
||||
kind: KongPlugin
|
||||
metadata:
|
||||
name: ${NAME}-prometheus
|
||||
namespace: ${NAMESPACE}
|
||||
plugin: prometheus
|
||||
config:
|
||||
status_code_metrics: true
|
||||
@@ -110,6 +117,7 @@ apiVersion: configuration.konghq.com/v1
|
||||
kind: KongPlugin
|
||||
metadata:
|
||||
name: ${NAME}-opentelemetry
|
||||
namespace: ${NAMESPACE}
|
||||
plugin: opentelemetry
|
||||
config:
|
||||
endpoint: ${OTEL_ENDPOINT}
|
||||
|
||||
Reference in New Issue
Block a user