diff --git a/master/modelserving/logger/logger/index.html b/master/modelserving/logger/logger/index.html index 1a47e763a..fb4204882 100644 --- a/master/modelserving/logger/logger/index.html +++ b/master/modelserving/logger/logger/index.html @@ -916,6 +916,35 @@
The request metadata headers can be included in the log message by specifying the metadata header names in the metadataHeaders
field
+of the InferenceService CRD. These headers are included in the CloudEvent extension attribute metadata
.
apiVersion: serving.kserve.io/v1beta1
+kind: InferenceService
+metadata:
+ name: sklearn-iris
+spec:
+predictor:
+ logger:
+ mode: all
+ url: http://message-dumper.default/
+ metadataHeaders:
+ - "x-request-id"
+ - "x-b3-traceid"
+ - "x-b3-spanid"
+ - "x-b3-flags"
+ model:
+ modelFormat:
+ name: sklearn
+ storageUri: gs://kfserving-examples/models/sklearn/1.0/model
+
The InferenceService logger can be configured to use TLS for secure communication. The logger can be configured to use TLS by configuring the logger configuration in the inferenceservice-config
ConfigMap.
service-ca.crt
. If you want to use a different name, update the caCertFile
field in the logger configuration section of the inferenceservice-config
ConfigMap.kubectl create configmap example-com-ca --from-file=service-ca.crt=/path/to/example-ca.crt -n <isvc-namespace>
+
caBundle
field with the name of the ConfigMap created from the above step in the logger configuration section of the inferenceservice-config
ConfigMap. The CaBundle will be mounted as a volume on the agent and the CA cert will be used to configure the transport.
+Tip
+You can skip the TLS verification by setting tlsSkipVerify
to true
in the logger configuration section of the inferenceservice-config
ConfigMap.
+But, Note that this will be applied cluster-wide and will affect all the InferenceServices in the cluster.
logger: |-
+ {
+ "image" : "kserve/agent:latest",
+ "memoryRequest": "100Mi",
+ "memoryLimit": "1Gi",
+ "cpuRequest": "100m",
+ "cpuLimit": "1",
+ "defaultUrl": "http://default-broker",
+ "caBundle": "example-com-ca",
+ "caCertFile": "service-ca.crt",
+ "tlsSkipVerify": false
+ }
+
caBundle
name and the caCertFile
name are cluster wide configurations (configured in inferenceservice-config
ConfigMap),
+the names cannot be changed for each namespace.A cluster running with Knative Eventing installed, along with KServe.