https://github.com/max-lobur/webproxy-k8s
A simple web proxy running on k8s
https://github.com/max-lobur/webproxy-k8s
httpproxy k8s kubernetes squid squid3 webproxy
Last synced: about 2 months ago
JSON representation
A simple web proxy running on k8s
- Host: GitHub
- URL: https://github.com/max-lobur/webproxy-k8s
- Owner: max-lobur
- License: mit
- Created: 2018-02-10T15:12:28.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-11T11:01:52.000Z (over 6 years ago)
- Last Synced: 2024-10-27T09:04:04.963Z (7 months ago)
- Topics: httpproxy, k8s, kubernetes, squid, squid3, webproxy
- Language: Smarty
- Size: 42 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Web Proxy on Kubernetes
A simple web proxy with basic auth, running on kubernetes. Based on Squid3.## Deployment
1. Generate squid basic auth login
```bash
LOGIN=`htpasswd -nd `
echo $LOGIN
```
1. Edit sample vars
```bash
cp ./samples/high-avail{,.my}.yaml
open ./samples/high-avail.my.yaml
```
1. Deploy
```bash
helm install charts/`ls charts/ | tail -1` --name webproxy-k8s --namespace=webproxy -f samples/high-avail.my.yaml --set login="$LOGIN"
```
1. Test
```bash
curl -v -x usr:[email protected] http://g.co/
```
1. Upgrading
```bash
helm upgrade webproxy-k8s charts/`ls charts/ | tail -1` -f samples/high-avail.my.yaml --set login="$LOGIN"
```
## Running the HA version in a multi-AZ cluster
Chart [deployment](./charts/webproxy/templates/deployment.yaml) has [soft anti-affinity](https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity)
scheduling built-in. To get HA setup run it on a multi-node cluster and set replicas to >1.