Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConfig ¶
func NewConfig(balancer *balancerv1alpha1.Balancer) string
NewConfig generates the `nginx.conf` with the given Balancer instance. Example: ===================== nginx.conf =====================
events { worker_connections 1024; }
stream { server { listen 80 tcp; proxy_pass upstream_http; } upstream upstream_http { server example-balancer-v1-backend:80 weight=20; server example-balancer-v2-backend:80 weight=80; } }
======================================================
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.