enav

by GRAD

Helm chartv0.0.7App latestVerified publisher

A Helm chart for deploying the GLA e-Navigation Service Architecture

About this chart

enav

A Helm chart for deploying the GLA e-Navigation Service Architecture

What is e-Navigation

The maritime domain is facing a number for challenges, mainly due to the increasing demand, that may increase the risk of an accident or loss of life. These challenges require technological solutions and e-Navigation is one such solution. The International Maritime Organization (IMO) adopted a ‘Strategy for the development and implementation of e‐Navigation’ (MSC85/26, Annexes 20 and 21), providing the following definition of e‐Navigation:

In response, the International Association of Lighthouse Authorities (IALA) published a number of guidelines such as G1113 and G1114, which establish the relevant principles for the design and implementation of harmonised shore-based technical system architectures and propose a set of best practices to be followed. In these, the terms Common Shore‐Based System (CSS) and Common Shore‐based System Architecture (CSSA) were introduced to describe the shore‐based technical system of the IMO’s overarching architecture. In addition, in accordance with the IALA Guideline G1114, the following services types are defined:

  1. A Data Collection and Data Transfer Service (DCT) interfacing with the shore-based AIS/VDES system to send the specified VAtoN information.
  2. A Value Added Data Processing Service (VAD), that stores and distributes the Virtual (but not excluding non-virtual ones) AtoN messages. An additional service was also implemented to enable a geospatially-aware publish-subscribe data exchange operation.
  3. The User Interaction Service (UIA) specialised to provide the Human‐Machine‐Interface (HMI) to the primary users of the CSSA.
  4. The Gateway Service (GWY) to interface to external systems of third parties.

To ensure the secure communication between ship and CSSA, the International Electrotechnical Commission (IEC), in coordination with IALA, compiled a set of system architecture and operational requirements for e-Navigation into a standard better known as SECOM. This provides mechanisms for secure data exchange, as well as a TS interface design that is in accordance with the service guidelines and templates defined by IALA. Although SECOM is just a conceptual standard, the Maritime Connectivity Platform (MCP) provides an actual implementation of a decentralised framework that supports SECOM.

What is the GRAD e-Navigation Service Architecture

The GLA follow the developments on e-Navigation closely, contributing through their role as an IALA member whenever possible. As part of their efforts, a prototype GLA e-Navigation Service Architecture is being developed by the GLA Research and Development Directorate (GRAD), to be used as the basis for the provision of the future GLA e-Navigation services.

As a concept, the CSSA is based on the Service Oriented Architecture (SOA). A pure-SOA approach however was found to be a bit cumbersome for the GLA operations, as it usually requires the entire IT landscape being compatible, resulting in high investment costs. In the context of e-Navigation, this could become a serious problem, since different components of the system are designed by independent teams/manufacturers. Instead, a more flexible microservice architecture was opted for. This is based on a break-down of the larger functional blocks into small independent services, each responsible for performing its own orchestration, maintaining its own data and communicating through lightweight mechanisms such as HTTP/HTTPS. It should be pointed out that SOA and the microservice architecture are not necessarily that different. Sometimes, microservices are even considered as an extension or a more fine-grained version of SOA.

The e-Navigation Service Architecture Overview

This section present a brief overview of the e-Navigation Service Architecture As already mentioned this follows the IALA G1114 guideline. The DCT (VDES Controller, Message Broker), VAD (AtoN Service, AtoN Admin Service) and UIA (Niord) services are all evident. In addition the API Gateway component implements the G1114 GWY service. The integration with the MCP is also demonstrated by the link originating from the Certificate Keeper microservice. An additional component present in the figure that hasn’t been mentioned previously is the internal Eureka service registry. This is another microservice component, only for internal use, that allows the microservices present to be discovered and communicate with each other without the need to establish static connections. In addition it allows for a very flexible monitoring of the system and optionally a shared configuration repository.

The “API Gateway” becomes available to the clients via a dedicated web server (nginx). This setup allows the architecture to expose a different SSL certificate (not generated via the MCP) and also permits higher flexibility where different e-Navigation systems could be served in parallel.

Microservices are typically cloud-native, which means that they can easily be deployed in a hosted cloud environment. This allows the architecture be scalable in order to dynamically support a large number of requests. Scaling in this context refers to the ability of the architecture to increase its capacity and performance. In cloud environments, horizontal scaling in particular allows applications to run in multiple independent instances, which are perceived by the end-users as a single entity. Consequently, the microservices displayed in the figure, are also included in a cloud environment, which can be public or private, depending on the service provision requirements.

The current implementation is also enriched with additional functionality that supports a Springboot Admin server for monitoring, as well as the incorporation of the Spring Cloud Config server with Eureka, os that it can support externalized configuration for the involved microservices.

Deployment Requirements

The current implementation is a quite complex system, and even with the Kubernetes Helm charts being available, it require a set of preliminary work to be deployed. You will first need:

  • A functional kubernetes deployment with a Calico CNI and an Nginx Ingress plugin installed.

  • An operational PostgreSQL server with existing databases installed for the following services. Note that since it's a bit complex to suppost persistence is every Kuebernetes environment (e.g. on bare-metal deployment) this method was seen as preferable:

    • VDES-Controller
    • CKeeper
    • AtoN Service
    • AtoN Admin Service
  • A separate Keycloak OIDC server. This functionality can and probably will be included in the Helm charts in the future. The database however, will need to be persisted elsewhere.

  • A reachable Git repository to hold and distrubute the service configuration from. This will be the configuration repository access by the Eureka service. Examples of the configuration files required can be found under the configuration top level directory. Notice that configuration secrets such as usernames, passwords as so on, are all encoded and marked with the {cipher} prefix. BE CAREFUL: This repository much be carefully secured as open access would ultimately leak all configuration secrets!

Values

KeyTypeDefaultDescription
api-gateway.serviceAccount.namestring"enav-admin"
aton-admin-service.serviceAccount.namestring"enav-admin"
aton-service-client.serviceAccount.namestring"enav-admin"
aton-service.serviceAccount.namestring"enav-admin"
ckeeper.serviceAccount.namestring"enav-admin"
eureka.serviceAccount.namestring"enav-admin"
global.api_gateway.keystorestring""
global.api_gateway.truststorestring""
global.aton_admin_service.keystorestring""
global.aton_admin_service.truststorestring""
global.aton_service.keystorestring""
global.aton_service.truststorestring""
global.aton_service_client.keystorestring""
global.aton_service_client.truststorestring""
global.ckeeper.keystorestring""
global.ckeeper.truststorestring""
global.enav_service.cloud_config.branchstring"master"
global.enav_service.cloud_config.encryption_keystring"encryption_key"
global.enav_service.cloud_config.passwordstring"enav_config_password"
global.enav_service.cloud_config.urlstring"http://eureka.enav:8761/config/"
global.enav_service.cloud_config.usernamestring"enav_config_user"
global.eureka.config_repo.branchstring"master"
global.eureka.config_repo.passwordstring"git_password"
global.eureka.config_repo.urlstring"https://git.com/gla-rad/eNav-Config.git"
global.eureka.config_repo.usernamestring"git_user"
global.eureka.keystorestring""
global.eureka.truststorestring""
global.kafka_broker.advertised_listenersstring"PLAINTEXT://enav-kafka-broker.enav-service-architecture:9092,PLAINTEXT_HOST://localhost:19092"
global.kafka_broker.broker_idstring"1"
global.kafka_broker.cluster_idstring"R3JhZElzVGhlQmVzdA"
global.kafka_broker.controller_listener_namestring"CONTROLLER"
global.kafka_broker.controller_quorum_votersstring"1@localhost:29093"
global.kafka_broker.inter_broker_listener_namestring"PLAINTEXT"
global.kafka_broker.kafka_listenersstring"PLAINTEXT://0.0.0.0:9092,CONTROLLER://localhost:29093,PLAINTEXT_HOST://0.0.0.0:19092"
global.kafka_broker.listener_security_protocol_mapstring"PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT,CONTROLLER:PLAINTEXT"
global.kafka_broker.max_request_sizestring"10485760"
global.kafka_broker.message_max_bytesstring"10485760"
global.kafka_broker.node_idstring"1"
global.kafka_broker.offsets_topic_replication_factorstring"1"
global.kafka_broker.process_rolesstring"broker,controller"
global.msg_broker.keystorestring""
global.msg_broker.truststorestring""
global.vdes_controller.keystorestring""
global.vdes_controller.truststorestring""
ingress.annotations."nginx.ingress.kubernetes.io/backend-protocol"string"AUTO_HTTP"
ingress.annotations."nginx.ingress.kubernetes.io/rewrite-target"string"/$1"
ingress.annotations."nginx.ingress.kubernetes.io/use-regex"string"true"
ingress.annotations."nginx.ingress.kubernetes.io/x-forwarded-prefix"string"/enav"
ingress.classNamestring"nginx"
ingress.enabledbooltrue
ingress.hosts[0].hoststring"enav.authority.org"
ingress.hosts[0].paths[0].pathstring"/enav/(.*)"
ingress.hosts[0].paths[0].pathTypestring"ImplementationSpecific"
ingress.hosts[0].paths[0].serviceNamestring"api-gateway"
ingress.hosts[0].paths[0].servicePortint8760
ingress.namestring"enav-ingress"
ingress.tlslist[]
kafka-broker.serviceAccount.namestring"enav-admin"
msg-broker.serviceAccount.namestring"enav-admin"
serviceAccount.annotationsobject{}
serviceAccount.automountbooltrue
serviceAccount.createbooltrue
serviceAccount.namestring"enav-admin"
vdes-controller.serviceAccount.namestring"enav-admin"

Autogenerated from chart metadata using helm-docs v1.13.1

Deploy enav with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has enav on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartenav is pinned at v0.0.7 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply