Commit 3724ab72 authored by Geoff Simmons's avatar Geoff Simmons

Update the "IP whitelist or Basic Auth" example.

parent 4fd8ce60
......@@ -7,7 +7,7 @@ metadata:
name: acl-or-auth-cfg
spec:
services:
- varnish-ingress
- varnish-ingress-admin
# Check the value of the X-Real-IP client request header against an
# IP whitelist; access is authorized when the IP matches the
......
......@@ -9,11 +9,12 @@ kubectl delete -f ../hello/cafe-ingress.yaml
kubectl delete -f ../hello/cafe.yaml
echo "Waiting until varnish-ingress Pods are not ready"
JSONPATH='{range .items[*]}{@.metadata.name}:{range @.status.conditions[*]}{@.type}={@.status};{end}{end}'
N=0
until [ $N -ge 120 ]
do
if kubectl get pods -l app=varnish-ingress | grep -q ' 1/1'; then
if kubectl get pods -l app=varnish-ingress -o jsonpath="${JSONPATH}" | grep -q '\bReady=True\b'; then
sleep 10
N=$(( N + 10 ))
continue
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment