Global Server Load Balancing
The Global Server Load Balancing component creates a Gslb resource. Check out the official Gslb documentation for more information.
Prerequisites
- The Global Server Load Balancing (GSLB) controller must be installed in the spoke clusters. Use the GSLB Helm chart to install the controller in the spoke clusters.
Example Usage
An example of a Gslb resource configured for failover for a service named app-service is shown below.
apiVersion: spectrocloud.com/v1beta1
kind: WorkloadProfile
metadata:
name: glbs-primary
namespace: network-ns
spec:
workload:
components:
- name: primary-gslb
type: gslb
properties:
ingressClassName: nginx
strategyType: failover
primaryGeoTag: us-east
dnsTtlSeconds: 30
splitBrainThresholdSeconds: 300
rules:
- host: failover.example.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: app-service
port:
number: 80
tls:
- hosts:
- failover.example.com
secretName: failover-tls-secret
Parameters
Template
The following tabs display the definition's Cue template and the rendered YAML. The rendered YAML is the output of the Cue template when the definition is applied to a cluster.