generated from nginxinc/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from nginxinc/akker
update docs
- Loading branch information
Showing
8 changed files
with
142 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# NginxK8sLB Stream configuration, for L4 load balancing | ||
# Chris Akker, Jan 2023 | ||
# TCP Proxy and load balancing block | ||
# Nginx Kubernetes Loadbalancer | ||
# State File for persistent reloads/restarts | ||
# Health Check Match example for cafe.example.com | ||
# | ||
#### nginxk8slb.conf | ||
|
||
upstream nginx-lb-http { | ||
zone nginx-lb-http 256k; | ||
state /var/lib/nginx/state/nginx-lb-http.state; | ||
} | ||
|
||
upstream nginx-lb-https { | ||
zone nginx-lb-https 256k; | ||
state /var/lib/nginx/state/nginx-lb-https.state; | ||
} | ||
|
||
server { | ||
listen 80; | ||
status_zone nginx-lb-http; | ||
proxy_pass nginx-lb-http; | ||
health_check match=cafe; | ||
} | ||
|
||
server { | ||
listen 443; | ||
status_zone nginx-lb-https; | ||
proxy_pass nginx-lb-https; | ||
health_check match=cafe; | ||
} | ||
|
||
match cafe { | ||
send "GET cafe.example.com/ HTTP/1.0\r\n"; | ||
expect ~ "30*"; | ||
} | ||
|
||
|
||
# Nginx State Files Required for Upstreams | ||
# state file /var/lib/nginx/state/nginx-lb-http.state | ||
|
||
# state file /var/lib/nginx/state/nginx-lb-https.state | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters