0
0
Fork 0

initial commit

This commit is contained in:
ston1th 2020-01-20 20:03:26 +01:00
commit 7dd7d19df5
11 changed files with 391 additions and 0 deletions

25
README.md Normal file
View file

@ -0,0 +1,25 @@
# nginx-ingress-proxy
This is an ingress proxy to direct traffic to the ingress controller in small cloud environments without the need for a load balancer.
This proxy runs in the host network of the kubernetes master on the ports `80` and `443`.
Traffic is then redirected to the nginx ingress controller using the proxy protocol.
## Usage
**Note:** replace `MASTERNODE` with the hostname of your master node.
```
curl -s -O https://git.giftfish.de/ston1th/nginx-ingress-proxy/raw/branch/master/nginx-ingress-proxy.yaml
sed -i 's/MASTERNODE/my-master/' nginx-ingress-proxy.yaml
kubectl apply -f nginx-ingress-proxy.yaml
```
## Cleanup
```
kubectl delete -f nginx-ingress-proxy.yaml
```