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

Commit

Permalink
Merge pull request #23 from Financial-Times/feature/helm-improvements
Browse files Browse the repository at this point in the history
Helm improvements
  • Loading branch information
scott-ace-newton authored Jan 10, 2018
2 parents e53f6b6 + 07b77c3 commit 3a258bf
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 11 deletions.
16 changes: 10 additions & 6 deletions healthcheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package main
import (
"fmt"
"net/http"
"time"

fthealth "github.com/Financial-Times/go-fthealth/v1_1"
"github.com/Financial-Times/message-queue-gonsumer/consumer"
Expand Down Expand Up @@ -35,13 +36,16 @@ func (h *HealthCheck) Health() func(w http.ResponseWriter, r *http.Request) {
if h.elasticsearchConf.includeElasticsearchWriter {
checks = append(checks, h.elasticHealthCheck())
}
hc := fthealth.HealthCheck{
SystemCode: "concept-ingester",
Name: "Concept Ingester",
Description: "Consumes Concept instances and forwards them to respective database writers for each concept type.",
Checks: checks,
healthCheck := fthealth.TimedHealthCheck{
HealthCheck: fthealth.HealthCheck{
SystemCode: "concept-ingester",
Name: "Concept Ingester",
Description: "Consumes Concept instances and forwards them to respective database writers for each concept type.",
Checks: checks,
},
Timeout: 10 * time.Second,
}
return fthealth.Handler(hc)
return fthealth.Handler(healthCheck)
}

func (h *HealthCheck) queueHealthCheck() fthealth.Check {
Expand Down
10 changes: 10 additions & 0 deletions helm/concept-ingester/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ spec:
app: {{ .Values.service.name }}
visualize: "true"
spec:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app
operator: In
values:
- {{ .Values.service.name }}
topologyKey: "kubernetes.io/hostname"
containers:
- name: {{ .Values.service.name }}
image: "{{ .Values.image.repository }}:{{ .Chart.Version }}"
Expand Down
2 changes: 2 additions & 0 deletions helm/concept-ingester/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ image:
repository: coco/concept-ingester
pullPolicy: IfNotPresent
resources:
requests:
memory: 30Mi
limits:
memory: 256Mi

Expand Down
10 changes: 5 additions & 5 deletions vendor/vendor.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
"ignore": "test",
"package": [
{
"checksumSHA1": "fNgRM8ZlaDzdvSpuhSdGxEOrWi4=",
"checksumSHA1": "G8lW8pPVLieqh/MTJZkvI/i/WyM=",
"path": "github.com/Financial-Times/go-fthealth/v1_1",
"revision": "e7ccca038327a0091303a52445ec1f0fb66cb97b",
"revisionTime": "2017-05-25T09:50:41Z",
"version": "0.3.0",
"versionExact": "0.3.0"
"revision": "1b007e2b37b7936dfb6671fa17e5a29fd35a08ea",
"revisionTime": "2017-12-04T12:48:31Z",
"version": "0.4.0",
"versionExact": "0.4.0"
},
{
"checksumSHA1": "zUpINnstJChGK0LAtkt7jBc3RY0=",
Expand Down

0 comments on commit 3a258bf

Please sign in to comment.