@@ -44,9 +44,10 @@ For this element chain the AppNet configurations is as follows:
44
44
apiVersion : api.core.appnet.io/v1
45
45
kind : AppNetConfig
46
46
metadata :
47
- name : sample-echo # Name of the AppNetConfig
47
+ name : sample-echo-sidecar # Name of the AppNetConfig
48
48
spec :
49
- backend : sidecar # Name of the backend (sidecar/ambient/grpc)
49
+ processors : # Processors (sidecar/ambient/grpc)
50
+ - sidecar
50
51
appName : echo # Name of the application
51
52
clientService : frontend # Name of the client service (must be a valid service in the same namespace as the AppNetConfig)
52
53
serverService : server # Name of the server service (must be a valid service in the same namespace as the AppNetConfig)
58
59
- name : logging # Name of the second element in the client chain
59
60
file : <APPNET_DIR_PATH>/config/samples/echo/logging.appnet # Path to the logging element file
60
61
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
62
63
file : <APPNET_DIR_PATH>/config/samples/echo/firewall.appnet # Path to the firewall element file
63
64
anyChain :
64
65
- name : metrics # Name of the first element in the any(unconstraint) chain
@@ -68,15 +69,15 @@ spec:
68
69
69
70
Next, in a seperate terminal, replace ` <APPNET_DIR_PATH>` with your AppNet directory path and apply this yaml file:
70
71
` ` ` bash
71
- # Via sidecar Mode
72
+ # Via Istio sidecar Mode
72
73
sed -i 's|<APPNET_DIR_PATH>|'"$(pwd)"'|g' config/samples/echo/sample_echo_sidecar.yaml
73
74
kubectl apply -f config/samples/echo/sample_echo_sidecar.yaml
74
75
75
- # Via ambient Mode
76
+ # Via Istio ambient Mode
76
77
sed -i 's|<APPNET_DIR_PATH>|'"$(pwd)"'|g' config/samples/echo/sample_echo_ambient.yaml
77
78
kubectl apply -f config/samples/echo/sample_echo_ambient.yaml
78
79
79
- # gRPC Interceptor
80
+ # Via gRPC Interceptor (proxyless mode)
80
81
sed -i 's|<APPNET_DIR_PATH>|'"$(pwd)"'|g' config/samples/echo/sample_echo_grpc.yaml
81
82
kubectl apply -f config/samples/echo/sample_echo_grpc.yaml
82
83
` ` `
0 commit comments