-
-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d2e6ee9
commit 0b303e4
Showing
19 changed files
with
115 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"EventBus": { | ||
"Brokers": "127.0.0.1:9092" | ||
"Brokers": "kafka-server:9092" | ||
}, | ||
"Logging": { | ||
"LogLevel": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,5 +44,6 @@ | |
"Microsoft": "Information" | ||
} | ||
} | ||
} | ||
}, | ||
"AllowedHosts": "*" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
apiVersion: extensions/v1beta1 | ||
kind: Deployment | ||
metadata: | ||
name: kafka-manager | ||
namespace: kafka | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: kafka-manager | ||
template: | ||
metadata: | ||
labels: | ||
app: kafka-manager | ||
spec: | ||
containers: | ||
- name: kafka-manager | ||
image: solsson/kafka-manager@sha256:28b1a0b355f3972a9e3b5ac82abcbfee9a72b66a2bfe86094f6ea2caad9ce3a7 | ||
ports: | ||
- containerPort: 80 | ||
env: | ||
- name: ZK_HOSTS | ||
value: "kafka-server.kafka:2181" | ||
command: | ||
- ./bin/kafka-manager | ||
- -Dhttp.port=80 | ||
--- | ||
kind: Service | ||
apiVersion: v1 | ||
metadata: | ||
name: kafka-manager | ||
namespace: kafka | ||
spec: | ||
selector: | ||
app: kafka-manager | ||
ports: | ||
- protocol: TCP | ||
port: 9000 | ||
targetPort: 80 | ||
type: LoadBalancer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
apiVersion: extensions/v1beta1 | ||
kind: Deployment | ||
metadata: | ||
name: kafka-server | ||
namespace: kafka | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: kafka-server | ||
template: | ||
metadata: | ||
labels: | ||
app: kafka-server | ||
spec: | ||
containers: | ||
- name: kafka-server | ||
image: spotify/kafka | ||
ports: | ||
- name: kafka | ||
containerPort: 9092 | ||
- name: zookeeper | ||
containerPort: 2181 | ||
env: | ||
- name: ADVERTISED_HOST | ||
value: "kafka-server" | ||
- name: ADVERTISED_PORT | ||
value: "9092" | ||
--- | ||
kind: Service | ||
apiVersion: v1 | ||
metadata: | ||
name: kafka-server | ||
namespace: kafka | ||
spec: | ||
selector: | ||
app: kafka-server | ||
ports: | ||
- name: kafka | ||
protocol: TCP | ||
port: 9092 | ||
targetPort: 9092 | ||
- name: zookeeper | ||
protocol: TCP | ||
port: 2181 | ||
targetPort: 2181 | ||
|
File renamed without changes.
8 changes: 4 additions & 4 deletions
8
samples/_scripts/build-images.ps1 → samples/_deploys/scripts/build-images.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
TAG=${TAG:=$(git rev-parse --short HEAD)} | ||
NAMESPACE=${NAMESPACE:="vndg"} | ||
Write-Host "${NAMESPACE} and ${TAG}" | ||
echo "${NAMESPACE} and ${TAG}" | ||
|
||
Write-Host "Build TODO API..." | ||
echo "Build TODO API..." | ||
docker build -f samples/TodoApi/Dockerfile -t vndg/todoapi:$(git rev-parse --short HEAD) -t vndg/todoapi:latest . | ||
|
||
Write-Host "Build SignalR..." | ||
echo "Build SignalR..." | ||
docker build -f samples/SignalRNotifier/Dockerfile -t vndg/signalrnotifier:$(git rev-parse --short HEAD) -t vndg/signalrnotifier:latest . | ||
|
||
Write-Host "Build Web Notifier..." | ||
echo "Build Web Notifier..." | ||
docker build -f samples/WebNotifier/Dockerfile -t vndg/webnotifier:$(git rev-parse --short HEAD) -t vndg/webnotifier:latest . |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters