From 181432c4fbd2281887398067661dda70b23a143a Mon Sep 17 00:00:00 2001 From: Staffan Olsson Date: Fri, 19 Jan 2018 11:50:49 +0100 Subject: Adds a frontend container. No need to scale it indivudually. --- linkedin-burrow/burrow-service.yml | 10 ++++++++-- linkedin-burrow/burrow.yml | 23 +++++++++++++++++++++-- 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: -- cgit v1.2.3