.. | ||
kind | ||
kustomization | ||
README.md |
Kubernetes
Getting started with Kind
-
Create your Kind cluster
kind create cluster --config misc/k8s/kind/bouncer-cluster.yaml
-
Deploy required operators
kubectl apply -k misc/k8s/kind/cluster --server-side
-
Deploy your Bouncer development environment
skaffold dev -p dev --cleanup=false --default-repo reg.cadoles.com/<YOUR_PERSONNAL_USER_NAME>
Testing
-
Open shell in bouncer-admin pod
kubectl exec -it -n bouncer-dev bouncer-admin-<suffix> -- /bin/sh
-
Create an authentication token
bouncer auth create-token > .bouncer-token
-
Create a proxy and enable it
bouncer admin proxy create --proxy-to https://www.cadoles.com --proxy-name cadoles bouncer admin proxy update --proxy-name cadoles --proxy-enabled=true
-
With you host web browser, open http://localhost:9000, you should see the Cadoles website.
Benchmarking
You can use siege
to benchmark your instance with the Cadoles proxy.
BASE_URL=http://localhost:9000 make siege