Expose a Kubernetes cluster workload
Use the RingLink Kubernetes Operator to expose workloads in your cluster to a RingLink network.
To get started, define a Service
with type: LoadBalancer
, and set the loadBalancerClass
to ringlink
.
This makes your service reachable over RingLink.
Prerequisites
Expose a Kubernetes Service
To expose a Kubernetes Service
over RingLink, follow these steps:
Set spec.type
to LoadBalancer
.
Set spec.loadBalancerClass
to ringlink
.
Add the annotation networking.ring.link/load-balancer-type
with the value internal
.
After setup, the Service
will show an IP address from your RingLink network.
Check the status with:
You should also see a new device listed under the Networks tab in the RingLink dashboard.
Example configuration:
Expected output:
Expose a Service
to a specific network
If you're working with multiple RingLink networks, you can bind a Service
to a specific one:
Create a RingLinkConfiguration
for the target network:
Add the networking.ring.link/config
annotation to the Service
: