Commit 96e3beee authored by Álvaro Ramírez Hernández's avatar Álvaro Ramírez Hernández
Browse files

Fix gRPC client integration, update pcepservice.yaml, and include database v1.0

- **gRPC PCEP Client Integration**:
  - Solved communication issues with the gRPC client in the PCEP service.
  - Enhanced error handling for gRPC connection failures.

- **pcepservice.yaml Configuration**:
  - Updated environment variables to properly integrate with new service configurations.
  - Fixed issues related to port and service setup.

- **Database Integration**:
  - Integrated database v1.0 for LSP management in the PCEP service.
  - Updated database connection strings and relevant environment variables.

This commit addresses multiple improvements across the gRPC client, service configuration, and database setup.
parent 99cffbd4
Loading
Loading
Loading
Loading

capturas/captura.pcap

0 → 100644
+156 KiB

File added.

No diff preview for this file type.

capturas/command.txt

0 → 100644
+1 −0
Original line number Diff line number Diff line
sudo tcpdump -i any tcp port 4189 -w pcep_capture.pcap
+10.1 KiB

File added.

No diff preview for this file type.

+17 −5
Original line number Diff line number Diff line
@@ -201,6 +201,18 @@ kubectl create secret generic kfk-kpi-data --namespace ${TFS_K8S_NAMESPACE} --ty
    --from-literal=KFK_SERVER_PORT=${KFK_SERVER_PORT}
printf "\n"

echo "Create secret with CockroachDB data for PCEP Managment microservices"
CRDB_SQL_PORT=$(kubectl --namespace ${CRDB_NAMESPACE} get service cockroachdb-public -o 'jsonpath={.spec.ports[?(@.name=="sql")].port}')
CRDB_DATABASE_LSP_MGMT="tfs_lsp_mgmt"  # TODO: change by specific configurable environment variable
kubectl create secret generic crdb-lsp-data --namespace ${TFS_K8S_NAMESPACE} --type='Opaque' \
    --from-literal=CRDB_NAMESPACE=${CRDB_NAMESPACE} \
    --from-literal=CRDB_SQL_PORT=${CRDB_SQL_PORT} \
    --from-literal=CRDB_DATABASE=${CRDB_DATABASE_LSP_MGMT} \
    --from-literal=CRDB_USERNAME=${CRDB_USERNAME} \
    --from-literal=CRDB_PASSWORD=${CRDB_PASSWORD} \
    --from-literal=CRDB_SSLMODE=require
printf "\n"

echo "Create secret with NATS data"
NATS_CLIENT_PORT=$(kubectl --namespace ${NATS_NAMESPACE} get service ${NATS_NAMESPACE} -o 'jsonpath={.spec.ports[?(@.name=="client")].port}')
if [ -z "$NATS_CLIENT_PORT" ]; then
@@ -669,8 +681,8 @@ if [[ "$TFS_COMPONENTS" == *"monitoring"* ]] && [[ "$TFS_COMPONENTS" == *"webui"
    printf "\n\n"
fi

if [ "$DOCKER_BUILD" == "docker buildx build" ]; then
    echo "Pruning Docker Buildx Cache..."
    docker buildx prune --force
    printf "\n\n"
fi
# if [ "$DOCKER_BUILD" == "docker buildx build" ]; then
#     echo "Pruning Docker Buildx Cache..."
#     docker buildx prune --force
#     printf "\n\n"
# fi
+2 −0
Original line number Diff line number Diff line
@@ -23,6 +23,8 @@ metadata:
    nginx.ingress.kubernetes.io/proxy-connect-timeout: "50"
    nginx.ingress.kubernetes.io/proxy-send-timeout: "50"
    nginx.ingress.kubernetes.io/proxy-read-timeout: "50"
    # nginx.ingress.kubernetes.io/use-forwarded-headers: "true"
    # nginx.ingress.kubernetes.io/forwarded-for-header: "X-Forwarded-For"
spec:
  rules:
    - http:
Loading