Este contenido no está disponible en el idioma seleccionado.
Chapter 13. Using ContainerSource with Service Mesh
You can use container source with Service Mesh.
13.1. Configuring ContainerSource with Service Mesh
This procedure describes how to configure container source with Service Mesh.
Prerequisites
- You have set up integration of Service Mesh and Serverless.
Procedure
- Create a - Servicein a namespace that is member of the- ServiceMeshMemberRoll:- Example - event-display-service.yamlconfiguration file- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow 
- Apply the - Serviceresource:- oc apply -f event-display-service.yaml - $ oc apply -f event-display-service.yaml- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow 
- Create a - ContainerSourceobject in a namespace that is member of the- ServiceMeshMemberRolland sink set to the- event-display:- Example - test-heartbeats-containersource.yamlconfiguration file- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow 
- Apply the - ContainerSourceresource:- oc apply -f test-heartbeats-containersource.yaml - $ oc apply -f test-heartbeats-containersource.yaml- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow 
- Optional: Verify that the events were sent to the Knative event sink by looking at the message dumper function logs: - Example command - oc logs $(oc get pod -o name | grep event-display) -c user-container - $ oc logs $(oc get pod -o name | grep event-display) -c user-container- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow - Example output - Copy to Clipboard Copied! - Toggle word wrap Toggle overflow