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