@@ -44,9 +44,10 @@ For this element chain the AppNet configurations is as follows:
4444apiVersion : api.core.appnet.io/v1
4545kind : AppNetConfig
4646metadata :
47- name : sample-echo # Name of the AppNetConfig
47+ name : sample-echo-sidecar # Name of the AppNetConfig
4848spec :
49- backend : sidecar # Name of the backend (sidecar/ambient/grpc)
49+ processors : # Processors (sidecar/ambient/grpc)
50+ - sidecar
5051 appName : echo # Name of the application
5152 clientService : frontend # Name of the client service (must be a valid service in the same namespace as the AppNetConfig)
5253 serverService : server # Name of the server service (must be a valid service in the same namespace as the AppNetConfig)
5859 - name : logging # Name of the second element in the client chain
5960 file : <APPNET_DIR_PATH>/config/samples/echo/logging.appnet # Path to the logging element file
6061 serverChain :
61- - name : firwall # Name of the first element in the server chain
62+ - name : firewall # Name of the first element in the server chain
6263 file : <APPNET_DIR_PATH>/config/samples/echo/firewall.appnet # Path to the firewall element file
6364 anyChain :
6465 - name : metrics # Name of the first element in the any(unconstraint) chain
@@ -68,15 +69,15 @@ spec:
6869
6970Next, in a seperate terminal, replace ` <APPNET_DIR_PATH>` with your AppNet directory path and apply this yaml file:
7071` ` ` bash
71- # Via sidecar Mode
72+ # Via Istio sidecar Mode
7273sed -i 's|<APPNET_DIR_PATH>|'"$(pwd)"'|g' config/samples/echo/sample_echo_sidecar.yaml
7374kubectl apply -f config/samples/echo/sample_echo_sidecar.yaml
7475
75- # Via ambient Mode
76+ # Via Istio ambient Mode
7677sed -i 's|<APPNET_DIR_PATH>|'"$(pwd)"'|g' config/samples/echo/sample_echo_ambient.yaml
7778kubectl apply -f config/samples/echo/sample_echo_ambient.yaml
7879
79- # gRPC Interceptor
80+ # Via gRPC Interceptor (proxyless mode)
8081sed -i 's|<APPNET_DIR_PATH>|'"$(pwd)"'|g' config/samples/echo/sample_echo_grpc.yaml
8182kubectl apply -f config/samples/echo/sample_echo_grpc.yaml
8283` ` `
0 commit comments