Commit d737d6bb authored by Geoff Simmons's avatar Geoff Simmons

Update the Basic Authentication example.

parent 76995971
...@@ -9,7 +9,7 @@ spec: ...@@ -9,7 +9,7 @@ spec:
# Lists the Service names of Varnish services in the same namespace # Lists the Service names of Varnish services in the same namespace
# to which this config is to be applied. # to which this config is to be applied.
services: services:
- varnish-ingress - varnish-ingress-admin
# Require Basic Authentication for both the coffee and tea Services. # Require Basic Authentication for both the coffee and tea Services.
auth: auth:
......
...@@ -9,11 +9,12 @@ kubectl delete -f ../hello/cafe-ingress.yaml ...@@ -9,11 +9,12 @@ kubectl delete -f ../hello/cafe-ingress.yaml
kubectl delete -f ../hello/cafe.yaml kubectl delete -f ../hello/cafe.yaml
echo "Waiting until varnish-ingress Pods are not ready" echo "Waiting until varnish-ingress Pods are not ready"
JSONPATH='{range .items[*]}{@.metadata.name}:{range @.status.conditions[*]}{@.type}={@.status};{end}{end}'
N=0 N=0
until [ $N -ge 120 ] until [ $N -ge 120 ]
do 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 sleep 10
N=$(( N + 10 )) N=$(( N + 10 ))
continue 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