Globol Policies template
This commit is contained in:
@@ -17,6 +17,7 @@ apiVersion: configuration.konghq.com/v1alpha1
|
||||
kind: KongPluginBinding
|
||||
metadata:
|
||||
name: ${NAME}-openid-connect-binding
|
||||
namespace: ${NAMESPACE}
|
||||
spec:
|
||||
controlPlaneRef:
|
||||
type: konnectNamespacedRef
|
||||
@@ -30,6 +31,7 @@ apiVersion: configuration.konghq.com/v1alpha1
|
||||
kind: KongPluginBinding
|
||||
metadata:
|
||||
name: ${NAME}-rate-limiting-binding
|
||||
namespace: ${NAMESPACE}
|
||||
spec:
|
||||
controlPlaneRef:
|
||||
type: konnectNamespacedRef
|
||||
@@ -43,6 +45,7 @@ apiVersion: configuration.konghq.com/v1alpha1
|
||||
kind: KongPluginBinding
|
||||
metadata:
|
||||
name: ${NAME}-cors-binding
|
||||
namespace: ${NAMESPACE}
|
||||
spec:
|
||||
controlPlaneRef:
|
||||
type: konnectNamespacedRef
|
||||
@@ -56,6 +59,7 @@ apiVersion: configuration.konghq.com/v1alpha1
|
||||
kind: KongPluginBinding
|
||||
metadata:
|
||||
name: ${NAME}-request-size-limiting-binding
|
||||
namespace: ${NAMESPACE}
|
||||
spec:
|
||||
controlPlaneRef:
|
||||
type: konnectNamespacedRef
|
||||
@@ -69,6 +73,7 @@ apiVersion: configuration.konghq.com/v1alpha1
|
||||
kind: KongPluginBinding
|
||||
metadata:
|
||||
name: ${NAME}-correlation-id-binding
|
||||
namespace: ${NAMESPACE}
|
||||
spec:
|
||||
controlPlaneRef:
|
||||
type: konnectNamespacedRef
|
||||
@@ -82,6 +87,7 @@ apiVersion: configuration.konghq.com/v1alpha1
|
||||
kind: KongPluginBinding
|
||||
metadata:
|
||||
name: ${NAME}-hide-5xx-details-binding
|
||||
namespace: ${NAMESPACE}
|
||||
spec:
|
||||
controlPlaneRef:
|
||||
type: konnectNamespacedRef
|
||||
@@ -95,6 +101,7 @@ apiVersion: configuration.konghq.com/v1alpha1
|
||||
kind: KongPluginBinding
|
||||
metadata:
|
||||
name: ${NAME}-prometheus-binding
|
||||
namespace: ${NAMESPACE}
|
||||
spec:
|
||||
controlPlaneRef:
|
||||
type: konnectNamespacedRef
|
||||
@@ -108,6 +115,7 @@ apiVersion: configuration.konghq.com/v1alpha1
|
||||
kind: KongPluginBinding
|
||||
metadata:
|
||||
name: ${NAME}-opentelemetry-binding
|
||||
namespace: ${NAMESPACE}
|
||||
spec:
|
||||
controlPlaneRef:
|
||||
type: konnectNamespacedRef
|
||||
|
||||
@@ -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