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
02d598cd
Commit
02d598cd
authored
May 04, 2020
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update the example for defining a PURGE method.
parent
68d8f140
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
purge-method.yaml
examples/req-disposition/purge-method.yaml
+1
-1
undeploy_purge.sh
examples/req-disposition/undeploy_purge.sh
+2
-1
No files found.
examples/req-disposition/purge-method.yaml
View file @
02d598cd
...
...
@@ -11,7 +11,7 @@ spec:
# Lists the Service names of Varnish services in the same namespace
# to which this config is to be applied.
services
:
-
varnish-ingress
-
varnish-ingress
-admin
# Configure the disposition of client requests.
req-disposition
:
...
...
examples/req-disposition/undeploy_purge.sh
View file @
02d598cd
...
...
@@ -7,11 +7,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
...
...
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