Configure the Kubernetes Service
- Last Updated: October 8, 2024
- 1 minute read
- LoadMaster
- LoadMaster GA
- Documentation
Follow the steps below to link an existing service in Kubernetes to the LoadMaster Virtual Service:
- Modify the relevant YAML file.
- Add the following label:
kempLB: Enabled
- 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. - In the Kubernetes Shell, apply
the following configuration:
kubectl apply -f <Filename>.yaml
- 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>