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
f579d901
Commit
f579d901
authored
Oct 13, 2020
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add examples for self-sharding by key, url & digest for helm.
parent
0a8e08d7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
101 additions
and
1 deletion
+101
-1
Makefile
examples/self-sharding/Makefile
+31
-1
values-shard-by-digest.yaml
examples/self-sharding/values-shard-by-digest.yaml
+24
-0
values-shard-by-key.yaml
examples/self-sharding/values-shard-by-key.yaml
+23
-0
values-shard-by-url.yaml
examples/self-sharding/values-shard-by-url.yaml
+23
-0
No files found.
examples/self-sharding/Makefile
View file @
f579d901
...
...
@@ -42,6 +42,18 @@ deploy-primary-only-helm:
@
helm
install
viking-ingress-primary-only
$(CHARTDIR)
/viking-test-app
\
--values
values-primary-only.yaml
deploy-shard-by-digest-helm
:
@
helm
install
viking-ingress-shard-by-digest
$(CHARTDIR)
/viking-test-app
\
--values
values-shard-by-digest.yaml
deploy-shard-by-url-helm
:
@
helm
install
viking-ingress-shard-by-url
$(CHARTDIR)
/viking-test-app
\
--values
values-shard-by-url.yaml
deploy-shard-by-key-helm
:
@
helm
install
viking-ingress-shard-by-key
$(CHARTDIR)
/viking-test-app
\
--values
values-shard-by-key.yaml
deploy-cafe-kubectl
:
@
kubectl apply
-f
$(mkdir)
/../hello/cafe.yaml
@
kubectl apply
-f
$(mkdir)
/../hello/cafe-ingress.yaml
...
...
@@ -77,6 +89,18 @@ undeploy-primary-only-helm:
@
helm uninstall viking-ingress-primary-only
$(MAKE)
wait
undeploy-shard-by-digest-helm
:
@
helm uninstall viking-ingress-shard-by-digest
$(MAKE)
wait
undeploy-shard-by-url-helm
:
@
helm uninstall viking-ingress-shard-by-url
$(MAKE)
wait
undeploy-shard-by-key-helm
:
@
helm uninstall viking-ingress-shard-by-key
$(MAKE)
wait
undeploy-cafe-kubectl
:
@
kubectl delete
-f
$(mkdir)
/../hello/cafe-ingress.yaml
@
kubectl delete
-f
$(mkdir)
/../hello/cafe.yaml
...
...
@@ -122,6 +146,12 @@ deploy-self-sharding: deploy-self-sharding-helm
undeploy-self-sharding
:
undeploy-self-sharding-helm
deploy-primary-only
:
deploy-primary-only-helm
undeploy-primary-only
:
undeploy-primary-only-helm
deploy-shard-by-digest
:
deploy-shard-by-digest-helm
undeploy-shard-by-digest
:
undeploy-shard-by-digest-helm
deploy-shard-by-url
:
deploy-shard-by-url-helm
undeploy-shard-by-url
:
undeploy-shard-by-url-helm
deploy-shard-by-key
:
deploy-shard-by-key-helm
undeploy-shard-by-key
:
undeploy-shard-by-key-helm
endif
ifeq
($(EXAMPLE),self-sharding)
...
...
@@ -141,7 +171,7 @@ deploy: deploy-shard-by-key
undeploy
:
undeploy-shard-by-key
else
deploy undeploy
:
$
(
error EXAMPLE must be
set
to self-sharding
or primary-only
)
$
(
error EXAMPLE must be
set
to self-sharding
, primary-only, or shard-by-[digest|url|key]
)
endif
.PHONY
:
all $(MAKECMDGOALS)
examples/self-sharding/values-shard-by-digest.yaml
0 → 100644
View file @
f579d901
apps
:
coffee
:
image
:
nginxdemos/hello:plain-text
replicas
:
2
tea
:
image
:
nginxdemos/hello:plain-text
replicas
:
3
ingress
:
name
:
cafe-ingress
rules
:
-
host
:
cafe.example.com
paths
:
-
path
:
/tea
app
:
tea
-
path
:
/coffee
app
:
coffee
vikingAdmSvc
:
varnish-ingress-admin
selfSharding
:
primaryOnly
:
true
key
:
req.http.Host
digest
:
SHA3_512
examples/self-sharding/values-shard-by-key.yaml
0 → 100644
View file @
f579d901
apps
:
coffee
:
image
:
nginxdemos/hello:plain-text
replicas
:
2
tea
:
image
:
nginxdemos/hello:plain-text
replicas
:
3
ingress
:
name
:
cafe-ingress
rules
:
-
host
:
cafe.example.com
paths
:
-
path
:
/tea
app
:
tea
-
path
:
/coffee
app
:
coffee
vikingAdmSvc
:
varnish-ingress-admin
selfSharding
:
primaryOnly
:
true
key
:
req.http.Host
examples/self-sharding/values-shard-by-url.yaml
0 → 100644
View file @
f579d901
apps
:
coffee
:
image
:
nginxdemos/hello:plain-text
replicas
:
2
tea
:
image
:
nginxdemos/hello:plain-text
replicas
:
3
ingress
:
name
:
cafe-ingress
rules
:
-
host
:
cafe.example.com
paths
:
-
path
:
/tea
app
:
tea
-
path
:
/coffee
app
:
coffee
vikingAdmSvc
:
varnish-ingress-admin
selfSharding
:
primaryOnly
:
true
key
:
req.url
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