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
b401be0c
Commit
b401be0c
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 "cacheability" example.
parent
3cacc355
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
cacheability.yaml
examples/req-disposition/cacheability.yaml
+1
-1
undeploy_cacheability.sh
examples/req-disposition/undeploy_cacheability.sh
+2
-1
No files found.
examples/req-disposition/cacheability.yaml
View file @
b401be0c
...
...
@@ -12,7 +12,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_cacheability.sh
View file @
b401be0c
...
...
@@ -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