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
7f5518ac
Commit
7f5518ac
authored
Apr 28, 2021
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run the primary-only by client.identity with kubectl-style deployments.
parent
ee5b9641
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
0 deletions
+39
-0
Makefile
examples/self-sharding/Makefile
+10
-0
primary-only-by-clientid.yaml
examples/self-sharding/primary-only-by-clientid.yaml
+29
-0
No files found.
examples/self-sharding/Makefile
View file @
7f5518ac
...
...
@@ -68,6 +68,9 @@ deploy-self-sharding-kubectl: deploy-cafe-kubectl
deploy-primary-only-kubectl
:
deploy-cafe-kubectl
@
kubectl apply
-f
primary-only.yaml
deploy-primary-only-by-clientid-kubectl
:
deploy-cafe-kubectl
@
kubectl apply
-f
primary-only-by-clientid.yaml
deploy-shard-by-digest-kubectl
:
deploy-cafe-kubectl
@
kubectl apply
-f
shard-by-digest.yaml
...
...
@@ -123,6 +126,11 @@ undeploy-primary-only-kubectl:
$(MAKE)
undeploy-cafe-kubectl
$(MAKE)
wait
undeploy-primary-only-by-clientid-kubectl
:
@
kubectl delete
-f
primary-only-by-clientid.yaml
$(MAKE)
undeploy-cafe-kubectl
$(MAKE)
wait
undeploy-shard-by-digest-kubectl
:
@
kubectl delete
-f
shard-by-digest.yaml
$(MAKE)
undeploy-cafe-kubectl
...
...
@@ -149,6 +157,8 @@ deploy-shard-by-url: deploy-shard-by-url-kubectl
undeploy-shard-by-url
:
undeploy-shard-by-url-kubectl
deploy-shard-by-key
:
deploy-shard-by-key-kubectl
undeploy-shard-by-key
:
undeploy-shard-by-key-kubectl
deploy-primary-only-by-clientid
:
deploy-primary-only-by-clientid-kubectl
undeploy-primary-only-by-clientid
:
undeploy-primary-only-by-clientid-kubectl
else
deploy-self-sharding
:
deploy-self-sharding-helm
undeploy-self-sharding
:
undeploy-self-sharding-helm
...
...
examples/self-sharding/primary-only-by-clientid.yaml
0 → 100644
View file @
7f5518ac
# Sample configuration for a self-sharding Varnish cluster
apiVersion
:
"
ingress.varnish-cache.org/v1alpha1"
kind
:
VarnishConfig
metadata
:
name
:
primary-only-sharding-cfg
spec
:
# The services array is required and must have at least one element.
# Lists the Service names of Varnish services in the same namespace
# to which this config is to be applied.
services
:
-
varnish-ingress-admin
# If the self-sharding object is present, then self-sharding will be
# implemented for the named service. All of its properties are
# optional, and defaults hold if they are left out. To just apply
# self-sharding with all default values, specify an empty object:
#
# self-sharding: {}
#
self-sharding
:
primaryOnly
:
true
key
:
client.identity
probe
:
timeout
:
6s
interval
:
6s
initial
:
2
window
:
4
threshold
:
3
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