aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStaffan Olsson <staffan@repos.se>2018-01-19 11:50:49 +0100
committerStaffan Olsson <staffan@repos.se>2018-01-19 11:50:49 +0100
commit181432c4fbd2281887398067661dda70b23a143a (patch)
treecbdf7fb524fe08bb3872664e24247ca356ad9a91
parent18322c3d72f6e31042f2d3d0765111a15d04fc28 (diff)
downloadkubernetes-kafka-181432c4fbd2281887398067661dda70b23a143a.tar.gz
kubernetes-kafka-181432c4fbd2281887398067661dda70b23a143a.tar.bz2
kubernetes-kafka-181432c4fbd2281887398067661dda70b23a143a.zip
Adds a frontend container. No need to scale it indivudually.
-rw-r--r--linkedin-burrow/burrow-service.yml10
-rw-r--r--linkedin-burrow/burrow.yml23
2 files changed, 29 insertions, 4 deletions
diff --git a/linkedin-burrow/burrow-service.yml b/linkedin-burrow/burrow-service.yml
index f9fc7b4..15eac06 100644
--- a/linkedin-burrow/burrow-service.yml
+++ b/linkedin-burrow/burrow-service.yml
@@ -7,6 +7,12 @@ spec:
selector:
app: burrow
ports:
- - protocol: TCP
+ - name: web
+ protocol: TCP
port: 80
- targetPort: 8000
+ - name: api
+ protocol: TCP
+ port: 8000
+ - name: prometheus
+ protocol: TCP
+ port: 8080
diff --git a/linkedin-burrow/burrow.yml b/linkedin-burrow/burrow.yml
index 7af6922..bb43dd1 100644
--- a/linkedin-burrow/burrow.yml
+++ b/linkedin-burrow/burrow.yml
@@ -20,14 +20,24 @@ spec:
- name: burrow
image: solsson/burrow@sha256:1f17cb48ba4062b2f796fdf250dce6b6a9d5127b42e15ef2fbc79c68c34ad0ef
ports:
- - containerPort: 8000
+ - name: api
+ containerPort: 8000
+ readinessProbe:
+ httpGet:
+ path: /burrow/admin
+ port: 8000
+ livenessProbe:
+ httpGet:
+ path: /burrow/admin
+ port: 8000
volumeMounts:
- name: config
mountPath: /etc/burrow
- name: prom
image: solsson/burrow-exporter:api-v3@sha256:4407616c5720e8a3397f668eec1aaa31df751b3614c0adfc56cae231f2eaeee2
ports:
- - containerPort: 8080
+ - name: prometheus
+ containerPort: 8080
env:
- name: BURROW_ADDR
value: http://localhost:8000
@@ -35,6 +45,15 @@ spec:
value: 0.0.0.0:8080
- name: INTERVAL
value: "30"
+ - name: dashboard
+ image: joway/burrow-dashboard@sha256:b4cce87c8264119d73f9a6df5d787ea811ce2138d39ca6cd56525bcfbb5169bf
+ env:
+ - name: BURROW_BACKEND
+ value: http://localhost:8000
+ ports:
+ - name: web
+ containerPort: 80
+ protocol: TCP
volumes:
- name: config
configMap: