BackendConfig
A BackendConfig is custom resource definitions (CRDs) that allow you to further customize the load balancer.
Here’s an example of a BackendConfig.
.kubes/resources/web/backend-config.rb
name "backendconfig"
spec(
timeoutSec: 40,
connectionDraining: {
drainingTimeoutSec: 60,
},
sessionAffinity: {
affinityType: "CLIENT_IP",
}
)
Produces:
.kubes/output/web/backend-config.yaml
---
apiVersion: cloud.google.com/v1
kind: BackendConfig
metadata:
name: my-bsc-backendconfig
spec:
timeoutSec: 40
connectionDraining:
drainingTimeoutSec: 60
sessionAffinity:
affinityType: CLIENT_IP
DSL Methods
For a full list of the available methods, refer to the source itself syntax/backend_config.rb.