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
ea7c9b99
Commit
ea7c9b99
authored
Feb 07, 2020
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Automate un-/deployment of the self-sharding example.
parent
afcea800
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
0 deletions
+31
-0
cafe.vtc
examples/self-sharding/cafe.vtc
+1
-0
deploy.sh
examples/self-sharding/deploy.sh
+7
-0
undeploy.sh
examples/self-sharding/undeploy.sh
+22
-0
verify.sh
examples/self-sharding/verify.sh
+1
-0
No files found.
examples/self-sharding/cafe.vtc
0 → 120000
View file @
ea7c9b99
../hello/cafe.vtc
\ No newline at end of file
examples/self-sharding/deploy.sh
0 → 100755
View file @
ea7c9b99
#! /bin/bash -ex
kubectl apply
-f
../hello/cafe.yaml
kubectl apply
-f
../hello/cafe-ingress.yaml
kubectl apply
-f
self-sharding-cfg.yaml
examples/self-sharding/undeploy.sh
0 → 100755
View file @
ea7c9b99
#! /bin/bash -ex
kubectl delete
-f
self-sharding-cfg.yaml
kubectl delete
-f
../hello/cafe-ingress.yaml
kubectl delete
-f
../hello/cafe.yaml
echo
"Waiting until varnish-ingress Pods are not ready"
N
=
0
until
[
$N
-ge
120
]
do
if
kubectl get pods
-l
app
=
varnish-ingress |
grep
-q
' 1/1'
;
then
sleep
10
N
=
$((
N
+
10
))
continue
fi
exit
0
done
echo
"Giving up"
exit
1
examples/self-sharding/verify.sh
0 → 120000
View file @
ea7c9b99
../hello/verify.sh
\ No newline at end of file
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