This document provides instructions on how to discover service endpoints using Volterra Virtual Kubernetes (vK8s) service information. Service discovery enables you to find the endpoints where a given service is available. To know more information about service discovery, see Volterra Service Discovery.
Using the instructions provided in this guide, you can create an endpoint for a service using the vK8s service name and the location where the service is available.
- Note: If you do not have an account, see Create a VES Account.
Volterra enables you to discover endpoints deployed using Virtual Kubernetes service. This document covers service discovery on sites, virtual sites, or virtual networks using Kubernetes service information.
The following figure shows the configuration workflow for service discovery with vK8s service information:
Discovering services using the vK8s service information requires performing the following sequence of actions:
|Obtain vK8s Service Information||Get vK8s service information from the Volterra Console.|
|Create Endpoint with vK8s Service Information||Configure endpoint with K8s as the discovery type and associate sites with it.|
Step 1: Retrieve Kubernetes service or application information from vK8s in Volterra Console. Select the namespace in which the vK8s is configured. Select
Applications from the configuration menu and
Virtual K8s from the options pane. A list of vK8s objects is displayed.
Step 2: Click on the desired vK8s object to see display the Kubernetes objects.
Step 3: Click the
Service tab to list all the Kubernetes service objects with namespace and port information. This information is used in the endpoint configuration.
Note: The service name is specified in the
servicename.namespaceformat during endpoint configuration.
Step 1: Select the desired namespace or create a namespace.
Step 2: Select
Manage from the configuration menu and
Endpoints from the options pane. Click
Step 3: Enter name, labels, and description in the
Description fields respectively.
Step 4: Configure where the endpoint should be discovered. Select an appropriate option in the
Virtual site or site or network field. Click
Step 5: Select your reference object from the displayed object list and click
Note: Any reference object (site, virtual site, and virtual network) needs to be created and listed before configuring the
Virtual site or site or networkfield. All the available object list gets displayed on a cascading menu where you can select one or more objects.
Step 6: Select a network type from the drop down list for the
Network Type field. This example uses the
Site Local Network as the network type.
Step 7: Configure endpoint address information.
Step 8: Enter port and protocol values for the fields
With the steps above, you can discover a service endpoint using ‘Service Info’ on a location specified using the selector. Once the service is discovered, the object can be used with other configuration objects of Volterra platform.