Skip to content
This repository has been archived by the owner on Jun 15, 2021. It is now read-only.

Commit

Permalink
v1.0.0-rc.1 dapr setup update
Browse files Browse the repository at this point in the history
  • Loading branch information
mchmarny committed Nov 15, 2020
1 parent 4b9566f commit 2d1743e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
1 change: 1 addition & 0 deletions cron-binding/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
Expand Down
13 changes: 6 additions & 7 deletions setup/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
DOMAIN ?=example.com
CLUSTER_NAME ?=demo
DAPR_RELEASE ?=0.11.3
DAPR_RELEASE ?=1.0.0-rc.1
DAPR_HA ?=true
DAPR_LOG_AS_JSON ?=true

Expand Down Expand Up @@ -39,13 +39,12 @@ dapr-install: ## Install and configures Dapr
# Installing Dapr...
kubectl create ns dapr-system
helm install dapr dapr/dapr -n dapr-system \
--set global.tag=$(DAPR_RELEASE) \
--version $(DAPR_RELEASE) \
--set global.logAsJson=$(DAPR_LOG_AS_JSON) \
--set global.ha.enabled=$(DAPR_HA)
# Wait for everything to finish installing
kubectl rollout status deployment/dapr-operator -n dapr-system
kubectl rollout status deployment/dapr-dashboard -n dapr-system
kubectl rollout status deployment/dapr-placement -n dapr-system
kubectl rollout status deployment/dapr-sentry -n dapr-system
kubectl rollout status deployment/dapr-sidecar-injector -n dapr-system

Expand Down Expand Up @@ -265,10 +264,7 @@ kafka: ## Install Kafka into the cluster
helm install kafka confluentinc/cp-helm-charts -n kafka \
--set cp-schema-registry.enabled=false \
--set cp-kafka-rest.enabled=false \
--set cp-kafka-connect.enabled=false \
--set dataLogDirStorageClass=default \
--set dataDirStorageClass=default \
--set storageClass=default
--set cp-kafka-connect.enabled=false
# wait for the deployment
kubectl rollout status deployment.apps/kafka-cp-control-center -n kafka
kubectl rollout status deployment.apps/kafka-cp-ksql-server -n kafka
Expand All @@ -280,6 +276,9 @@ namespace: ## Configures namespace (make namespace NSNAME=default)
# Create namespace if one doesn't exists
sed "s/NSNAME/${NSNAME}/g" config/namespace-template.yml > config/namespace.yml
kubectl apply -f config/namespace.yml

.PHONY: namespace-pass
namespace-pass: ## Configures Mongo and Redis passwords in namespace (make namespace-pass NSNAME=default)
# Configure Redis password
$(eval REDIS_PASSWORD=$(shell kubectl get secret -n redis redis -o jsonpath="{.data.redis-password}" | base64 --decode))
kubectl create secret generic redis-secret --from-literal=password="$(REDIS_PASSWORD)" -n $(NSNAME)
Expand Down

0 comments on commit 2d1743e

Please sign in to comment.