Commit f3070c5e authored by Geoff Simmons's avatar Geoff Simmons

helm deployment for the primary-only self-sharding example/test.

parent 1aca523d
......@@ -35,8 +35,12 @@ CHARTDIR=$(mkdir)/../../charts
all: deploy
deploy-self-sharding-helm:
@helm install viking-ingress $(CHARTDIR)/viking-test-app \
--values values.yaml
@helm install viking-ingress-self-sharding $(CHARTDIR)/viking-test-app \
--values values-self-sharding.yaml
deploy-primary-only-helm:
@helm install viking-ingress-primary-only $(CHARTDIR)/viking-test-app \
--values values-primary-only.yaml
deploy-cafe-kubectl:
@kubectl apply -f $(mkdir)/../hello/cafe.yaml
......@@ -57,7 +61,11 @@ wait:
$(TESTDIR)/wait.sh app=varnish-ingress
undeploy-self-sharding-helm:
@helm uninstall viking-ingress
@helm uninstall viking-ingress-self-sharding
$(MAKE) wait
undeploy-primary-only-helm:
@helm uninstall viking-ingress-primary-only
$(MAKE) wait
undeploy-cafe-kubectl:
......@@ -82,8 +90,8 @@ undeploy-primary-only: undeploy-primary-only-kubectl
else
deploy-self-sharding: deploy-self-sharding-helm
undeploy-self-sharding: undeploy-self-sharding-helm
deploy-primary-only undeploy-primary-only:
$(error primary-only not yet implemented for helm)
deploy-primary-only: deploy-primary-only-helm
undeploy-primary-only: undeploy-primary-only-helm
endif
ifeq ($(EXAMPLE),self-sharding)
......
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
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