Commit e2bd24e 1 parent b9d6c54 commit e2bd24e Copy full SHA for e2bd24e
File tree 9 files changed +113
-67
lines changed
dapr-distributed-calendar/hashicorp
9 files changed +113
-67
lines changed Original file line number Diff line number Diff line change
1
+ apiVersion : dapr.io/v1alpha1
2
+ kind : Component
3
+ metadata :
4
+ name : baristapubsub
5
+ namespace : default
6
+ spec :
7
+ type : pubsub.redis
8
+ version : v1
9
+ metadata :
10
+ - name : redisHost
11
+ value : redis:6379
12
+ - name : redisPassword
13
+ value : " "
Original file line number Diff line number Diff line change
1
+
2
+ apiVersion : dapr.io/v1alpha1
3
+ kind : Component
4
+ metadata :
5
+ name : consul
6
+ namespace : default
7
+ spec :
8
+ type : state.consul
9
+ version : v1
10
+ metadata :
11
+ - name : datacenter
12
+ value : dc1 # Required. Example: dc1
13
+ - name : httpAddr
14
+ value : 127.0.0.1:8500 # TODO update here 10.1.0.4:8500 # Required. Example: "consul.default.svc.cluster.local:8500"
Original file line number Diff line number Diff line change
1
+
2
+ apiVersion : dapr.io/v1alpha1
3
+ kind : Configuration
4
+ metadata :
5
+ name : daprConfig
6
+ spec :
7
+ nameResolution :
8
+ component : " consul"
9
+ configuration :
10
+ selfRegister : true
11
+ client :
12
+ address : " 127.0.0.1:8500" # TODO: update here "10.1.0.4:8500" # Required. Example: "consul.default.svc.cluster.local:8500"
13
+ checks :
14
+ - name : " Dapr Health Status"
15
+ checkID : " daprHealth: - ${APP_ID} - ${CONSUL_HTTP_ADDR}"
16
+ interval : " 15s"
17
+ tcp : " 127.0.0.1:8500" # TODO: update here "10.1.0.4:8500" # Required. Example: "consul.default.svc.cluster.local:8500"
18
+ tags :
19
+ - " dapr"
20
+ queryOptions :
21
+ useCache : true
22
+ filter : " Checks.ServiceTags contains dapr"
23
+ tracing :
24
+ samplingRate : " 1"
25
+ zipkin :
26
+ endpointAddress : http://127.0.0.1:9411/api/v2/spans
Original file line number Diff line number Diff line change
1
+ apiVersion : dapr.io/v1alpha1
2
+ kind : Component
3
+ metadata :
4
+ name : kitchenpubsub
5
+ namespace : default
6
+ spec :
7
+ type : pubsub.redis
8
+ version : v1
9
+ metadata :
10
+ - name : redisHost
11
+ value : redis:6379
12
+ - name : redisPassword
13
+ value : " "
Original file line number Diff line number Diff line change
1
+ apiVersion : dapr.io/v1alpha1
2
+ kind : Component
3
+ metadata :
4
+ name : orderuppubsub
5
+ namespace : default
6
+ spec :
7
+ type : pubsub.redis
8
+ version : v1
9
+ metadata :
10
+ - name : redisHost
11
+ value : redis:6379
12
+ - name : redisPassword
13
+ value : " "
Original file line number Diff line number Diff line change @@ -3,4 +3,20 @@ sudo apt-get update && sudo apt-get install wget gpg coreutils
3
3
wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
4
4
echo " deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $( lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
5
5
sudo apt-get update && sudo apt-get install nomad
6
- sudo apt update && sudo apt install consul
6
+ sudo apt update && sudo apt install consul
7
+
8
+ # fix plugin error for working with consul
9
+ cd
10
+ curl -L -o cni-plugins.tgz " https://github.com/containernetworking/plugins/releases/download/v1.0.0/cni-plugins-linux-$( [ $( uname -m) = aarch64 ] && echo arm64 || echo amd64) " -v1.0.0.tgz
11
+ sudo mkdir -p /opt/cni/bin
12
+ sudo tar -C /opt/cni/bin -xzf cni-plugins.tgz
13
+
14
+ echo 1 | tee /proc/sys/net/bridge/bridge-nf-call-arptables
15
+ echo 1 | tee /proc/sys/net/bridge/bridge-nf-call-ip6tables
16
+ echo 1 | tee /proc/sys/net/bridge/bridge-nf-call-iptables
17
+
18
+ cd /etc/sysctl.d/ && sudo touch 10-bridge-nf-call-iptables.conf
19
+ echo " net.bridge.bridge-nf-call-arptables = 1" | sudo tee /etc/sysctl.d/10-bridge-nf-call-iptables.conf
20
+ echo " net.bridge.bridge-nf-call-ip6tables = 1" | sudo tee -a /etc/sysctl.d/10-bridge-nf-call-iptables.conf
21
+ echo " net.bridge.bridge-nf-call-iptables = 1" | sudo tee -a /etc/sysctl.d/10-bridge-nf-call-iptables.conf
22
+ sudo sysctl --system
Original file line number Diff line number Diff line change 2
2
sudo apt-get update && sudo apt-get install wget gpg coreutils
3
3
wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
4
4
echo " deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $( lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
5
- sudo apt-get update && sudo apt-get install nomad
5
+ sudo apt-get update && sudo apt-get install nomad
6
+
7
+ # fix plugin error for working with consul
8
+ cd
9
+ curl -L -o cni-plugins.tgz " https://github.com/containernetworking/plugins/releases/download/v1.0.0/cni-plugins-linux-$( [ $( uname -m) = aarch64 ] && echo arm64 || echo amd64) " -v1.0.0.tgz
10
+ sudo mkdir -p /opt/cni/bin
11
+ sudo tar -C /opt/cni/bin -xzf cni-plugins.tgz
12
+
13
+ echo 1 | tee /proc/sys/net/bridge/bridge-nf-call-arptables
14
+ echo 1 | tee /proc/sys/net/bridge/bridge-nf-call-ip6tables
15
+ echo 1 | tee /proc/sys/net/bridge/bridge-nf-call-iptables
16
+
17
+ cd /etc/sysctl.d/ && sudo touch 10-bridge-nf-call-iptables.conf
18
+ echo " net.bridge.bridge-nf-call-arptables = 1" | sudo tee /etc/sysctl.d/10-bridge-nf-call-iptables.conf
19
+ echo " net.bridge.bridge-nf-call-ip6tables = 1" | sudo tee -a /etc/sysctl.d/10-bridge-nf-call-iptables.conf
20
+ echo " net.bridge.bridge-nf-call-iptables = 1" | sudo tee -a /etc/sysctl.d/10-bridge-nf-call-iptables.conf
21
+ sudo sysctl --system
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments