Follow the steps below to link an existing service in Kubernetes to the LoadMaster Virtual Service:

  1. Modify the relevant YAML file.
  2. Add the following label:

    kempLB: Enabled

  3. Add the following annotation:

    "vsid":"<VirtualServiceID>"

    Note: Throughout this document, angular brackets (< >) indicate a value that is variable that you must configure appropriately based on your environment.
  4. In the Kubernetes Shell, apply the following configuration:

    kubectl apply -f <Filename>.yaml

  5. In the Kubernetes Shell, run the following command to see the service details:

    kubectl describe service <Name>

    Here is an example of a YAML file:

    apiVersion: v1
    kind: Service
    metadata:
    	name: <Name>
    	labels:
    		kempLB: Enabled
    	annotations:
    		"vsid": "<VirtualServiceID>"
    spec:
    	type: ClusterIP
    	ports:
    		- port: <VirtualServicePort>
    	selector:
    		app: <ApplicationSelector>