Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
apiVersion: v1
kind: Service
metadata:
  name: agent-service
  namespace: openhorizon-agent
spec:
  selector:
    app: agent
  ports:
    - protocol: TCP
      port: 8443

This k8s service definition includes a few notable aspects:

  1. The API host name provided to the application is the metadata.name field; HZN_ESS_API_ADDRESS = "agent-service"
  2. The API protocol is https; HZN_ESS_API_PROTOCOL="https"
  3. The API port is 8443; HZN_ESS_API_PORT=8443
  4. This k8s service is attached to an app called "agent" which is the app name given to the agent when it is installed.
  5. This service is defined in the "openhorizon-agent" k8s namespace.

In order for the above settings to be variable, i.e. set by the agent installer, the k8s service definition above needs to be conditioned to reflect those differences before it is installed to the edge cluster.



User Experience

<Describe which user roles are related to the problem AND the solution, e.g. admin, deployer, node owner, etc. If you need to define a new role in your design, make that very clear. Remember this is about what a user is thinking when interacting with the system before and after this design change. This section is not about a UI, it's more abstract than that. This section should explain all the aspects of the proposed feature that will surface to users.>

...