Skip to content

Commit ed29dcc

Browse files
committed
update
doc
1 parent 70717a8 commit ed29dcc

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/start.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,10 @@ For this element chain the AppNet configurations is as follows:
4444
apiVersion: api.core.appnet.io/v1
4545
kind: AppNetConfig
4646
metadata:
47-
name: sample-echo # Name of the AppNetConfig
47+
name: sample-echo-sidecar # Name of the AppNetConfig
4848
spec:
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)
@@ -58,7 +59,7 @@ spec:
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
6970
Next, 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
7273
sed -i 's|<APPNET_DIR_PATH>|'"$(pwd)"'|g' config/samples/echo/sample_echo_sidecar.yaml
7374
kubectl apply -f config/samples/echo/sample_echo_sidecar.yaml
7475
75-
# Via ambient Mode
76+
# Via Istio ambient Mode
7677
sed -i 's|<APPNET_DIR_PATH>|'"$(pwd)"'|g' config/samples/echo/sample_echo_ambient.yaml
7778
kubectl apply -f config/samples/echo/sample_echo_ambient.yaml
7879
79-
# gRPC Interceptor
80+
# Via gRPC Interceptor (proxyless mode)
8081
sed -i 's|<APPNET_DIR_PATH>|'"$(pwd)"'|g' config/samples/echo/sample_echo_grpc.yaml
8182
kubectl apply -f config/samples/echo/sample_echo_grpc.yaml
8283
```

0 commit comments

Comments
 (0)