Skip to content

Commit

Permalink
feat(charts): Add helm charts for logger
Browse files Browse the repository at this point in the history
  • Loading branch information
kmala committed Oct 8, 2016
1 parent 99da280 commit 9bf8520
Show file tree
Hide file tree
Showing 6 changed files with 117 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
/manifests/*.tmp.yaml
vendor/
coverage.txt
logger
7 changes: 7 additions & 0 deletions charts/logger/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: logger
home: https://github.com/deis/logger
version: <Will be populated by the ci before publishing the chart>
description: In-memory log buffer used by Deis Workflow.
maintainers:
- name: Deis Team
email: engineering@deis.com
77 changes: 77 additions & 0 deletions charts/logger/templates/logger-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: deis-logger
labels:
heritage: deis
annotations:
component.deis.io/version: {{ .Values.docker_tag }}
spec:
replicas: 1
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
type: RollingUpdate
selector:
matchLabels:
app: deis-logger
template:
metadata:
labels:
app: deis-logger
spec:
containers:
- name: deis-logger
image: quay.io/{{.Values.org}}/logger:{{.Values.docker_tag}}
imagePullPolicy: {{.Values.pull_policy}}
env:
- name: STORAGE_ADAPTER
value: redis
{{- if eq .Values.global.logger_redis_location "off-cluster" }}
- name: DEIS_LOGGER_REDIS_DB
valueFrom:
secretKeyRef:
name: logger-redis-creds
key: db
- name: DEIS_LOGGER_REDIS_SERVICE_HOST
valueFrom:
secretKeyRef:
name: logger-redis-creds
key: host
- name: DEIS_LOGGER_REDIS_SERVICE_PORT
valueFrom:
secretKeyRef:
name: logger-redis-creds
key: port
{{- end }}
- name: DEIS_LOGGER_REDIS_PASSWORD
valueFrom:
secretKeyRef:
name: logger-redis-creds
key: password
ports:
- containerPort: 8088
name: http
{{- if or (.Values.limits_cpu) (.Values.limits_memory)}}
resources:
limits:
{{- if (.Values.limits_cpu) }}
cpu: {{.Values.limits_cpu}}
{{- end}}
{{- if (.Values.limits_memory) }}
memory: {{.Values.limits_memory}}
{{- end}}
{{- end}}
livenessProbe:
httpGet:
path: /healthz
port: 8088
initialDelaySeconds: 1
timeoutSeconds: 1
readinessProbe:
httpGet:
path: /healthz
port: 8088
initialDelaySeconds: 1
timeoutSeconds: 1
6 changes: 6 additions & 0 deletions charts/logger/templates/logger-service-account.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: deis-logger
labels:
heritage: deis
14 changes: 14 additions & 0 deletions charts/logger/templates/logger-svc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: v1
kind: Service
metadata:
name: deis-logger
labels:
heritage: deis
app: deis-logger
spec:
ports:
- port: 80
name: http
targetPort: http
selector:
app: deis-logger
13 changes: 13 additions & 0 deletions charts/logger/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
org: "deisci"
pull_policy: "Always"
docker_tag: canary
# limits_cpu: "100m"
# limits_memory: "50Mi"

global:
# Set the location of Workflow's logger-specific Redis instance
#
# Valid values are:
# - on-cluster: Run Redis within the Kubernetes cluster
# - off-cluster: Run Redis outside the Kubernetes cluster (configure in loggerRedis section)
logger_redis_location: "on-cluster"

0 comments on commit 9bf8520

Please sign in to comment.