Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
k8s-ingress
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
3
Merge Requests
3
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
uplex-varnish
k8s-ingress
Commits
3b7dc519
Commit
3b7dc519
authored
May 04, 2020
by
Geoff Simmons
Committed by
Tim Leers
Jul 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update the Proxy Authentication example.
parent
92a1092b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
proxy-auth.yaml
examples/authentication/proxy-auth.yaml
+1
-1
undeploy_proxy_auth.sh
examples/authentication/undeploy_proxy_auth.sh
+2
-1
No files found.
examples/authentication/proxy-auth.yaml
View file @
3b7dc519
...
@@ -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 Proxy Authentication for the realm "ingress" for every
# Require Proxy Authentication for the realm "ingress" for every
# request, using usernames/passwords from the Secret "proxy-creds".
# request, using usernames/passwords from the Secret "proxy-creds".
...
...
examples/authentication/undeploy_proxy_auth.sh
View file @
3b7dc519
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment