From 3bb700f6f66cd6d8d0fa083eb46d57e0f1ab07cb Mon Sep 17 00:00:00 2001 From: merle <sebastien.merle@stritzinger.com> Date: Mon, 10 Jul 2023 03:24:38 -0700 Subject: [PATCH] Change port and documentation --- manifests/teservice.yaml | 6 +++--- src/te/Dockerfile | 2 +- src/te/README.md | 4 ++-- src/te/config/dev.config.template | 4 ++-- src/te/tutorial/2-6-te-demo.md | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/manifests/teservice.yaml b/manifests/teservice.yaml index d27bd42c7..30002bc52 100644 --- a/manifests/teservice.yaml +++ b/manifests/teservice.yaml @@ -34,7 +34,7 @@ spec: image: labs.etsi.org:5050/tfs/controller/te:latest imagePullPolicy: Always ports: - - containerPort: 11010 + - containerPort: 10030 env: - name: ERLANG_LOGGER_LEVEL value: "debug" @@ -73,8 +73,8 @@ spec: ports: - name: grpc protocol: TCP - port: 11010 - targetPort: 11010 + port: 10030 + targetPort: 10030 - name: pcep protocol: TCP port: 4189 diff --git a/src/te/Dockerfile b/src/te/Dockerfile index 98194f254..446936ca5 100644 --- a/src/te/Dockerfile +++ b/src/te/Dockerfile @@ -42,7 +42,7 @@ RUN apk add --no-cache libgcc libstdc++ && \ COPY --from=0 /var/teraflow/src/te/_build/prod/rel/tfte /tfte # Expose relevant ports -EXPOSE 11010 +EXPOSE 10030 EXPOSE 4189 ARG ERLANG_LOGGER_LEVEL_DEFAULT=debug diff --git a/src/te/README.md b/src/te/README.md index a316571bf..d6f1952ac 100644 --- a/src/te/README.md +++ b/src/te/README.md @@ -64,9 +64,9 @@ The docker image must be built from the root of the Teraflow project: ### Open a Console - $ kubectl --namespace tfs exec -ti $(kubectl --namespace tfs get pods --selector=app=teservice -o name) -- /tfte/bin/tfte remote_console + $ kubectl --namespace tfs exec -ti $(kubectl --namespace tfs get pods --selector=app=teservice -o name) -c server -- /tfte/bin/tfte remote_console ## Show Logs - $ kubectl --namespace tfs logs $(kubectl --namespace tfs get pods --selector=app=teservice -o name) + $ kubectl --namespace tfs logs $(kubectl --namespace tfs get pods --selector=app=teservice -o name) -c server diff --git a/src/te/config/dev.config.template b/src/te/config/dev.config.template index 5897c4e46..6ca3af506 100644 --- a/src/te/config/dev.config.template +++ b/src/te/config/dev.config.template @@ -1,7 +1,7 @@ [ {tfte, [ {services, [ - {te, [{http, "localhost", 11010, []}], #{}} + {te, [{http, "localhost", 10030, []}], #{}} ]} ]}, @@ -30,7 +30,7 @@ %cacertfile => "" }, listen_opts => #{ - port => 11010, + port => 10030, ip => {0,0,0,0} }, pool_opts => #{ diff --git a/src/te/tutorial/2-6-te-demo.md b/src/te/tutorial/2-6-te-demo.md index 9b345203b..d514adf07 100644 --- a/src/te/tutorial/2-6-te-demo.md +++ b/src/te/tutorial/2-6-te-demo.md @@ -94,7 +94,7 @@ Then in second console: We will setup two unidirectional flow between router 1 and 6. We will use the binding label 1111 for the flow from router 1 to router 6, and the binding label 6666 for the flow from router 6 to router 1. - $ kubectl --namespace tfs exec -ti $(kubectl --namespace tfs get pods --selector=app=teservice -o name) -- /tfte/bin/tfte remote_console + $ kubectl --namespace tfs exec -ti $(kubectl --namespace tfs get pods --selector=app=teservice -o name) -c server -- /tfte/bin/tfte remote_console 1> {ok, Flow1to6} = epce_server:initiate_flow(<<"foo">>, {1, 1, 1, 1}, {6, 6, 6, 6}, 1111). 2> {ok, Flow6to1} = epce_server:initiate_flow(<<"bar">>, {6, 6, 6, 6}, {1, 1, 1, 1}, 6666). -- GitLab