-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(charts): Add helm charts for logger
- Loading branch information
Showing
6 changed files
with
117 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -2,4 +2,3 @@ | |
/manifests/*.tmp.yaml | ||
vendor/ | ||
coverage.txt | ||
logger |
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,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 |
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,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 |
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,6 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: deis-logger | ||
labels: | ||
heritage: deis |
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,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 |
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,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" |