Commit 7f5518ac authored by Geoff Simmons's avatar Geoff Simmons

Run the primary-only by client.identity with kubectl-style deployments.

parent ee5b9641
......@@ -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
......
# 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment