work check in
This commit is contained in:
parent
fb8bd654f3
commit
6a9b266751
|
@ -1,6 +1,6 @@
|
|||
apiVersion: v2
|
||||
name: glitchtip
|
||||
description: Open source error tracking that is compatible with Sentry
|
||||
name: django
|
||||
description: Generic Django + Celery Helm Chart
|
||||
|
||||
# A chart can be either an 'application' or a 'library' chart.
|
||||
#
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# GlitchTip Helm Chart
|
||||
# Django Helm Chart
|
||||
|
||||
We use this chart internally. However it's not fully documented yet nor tested in a wide range of scenarios.
|
||||
If you are a helm and kubernetes expert - feel free to use this and help contribute to this repo.
|
||||
|
@ -6,5 +6,5 @@ If you are a helm and kubernetes expert - feel free to use this and help contrib
|
|||
# Usage
|
||||
|
||||
1. Add our Helm chart repo `helm repo add glitchtip https://glitchtip.gitlab.io/glitchtip-helm-chart/`
|
||||
2. Review our values.yaml. At a minimum you'll need to set databaseURL and secretKey.
|
||||
2. Review our values.yaml. At a minimum you'll need to set DATABASE_URL and SECRET_KEY.
|
||||
3. Install the chart `helm install glitchtip/glitchtip --set databaseURL=your_db --set secretKey=random_string`
|
||||
|
|
|
@ -9,5 +9,4 @@ metadata:
|
|||
data:
|
||||
{{- range $k, $v := .Values.env.normal }}
|
||||
{{ $k }}: {{ $v | quote }}
|
||||
{{- end }}
|
||||
DATABASE_URL: {{ include "django.postgresql.url" . | quote }}
|
||||
{{- end }}
|
|
@ -15,6 +15,10 @@ spec:
|
|||
activeDeadlineSeconds: 600
|
||||
template:
|
||||
spec:
|
||||
{{- with .Values.imagePullSecrets }}
|
||||
imagePullSecrets:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
restartPolicy: Never
|
||||
containers:
|
||||
- name: pre-install-job
|
||||
|
@ -26,10 +30,10 @@ spec:
|
|||
value: "False"
|
||||
{{- if .Values.env.secret.DATABASE_URL }}
|
||||
- name: DATABASE_URL
|
||||
value: {{ required "env.secret.DATABASE_URL is a required value." .Values.env.secret.DATABASE_URL }}
|
||||
value: {{ .Values.env.secret.DATABASE_URL }}
|
||||
{{- else if .Values.postgresql.enabled }}
|
||||
- name: DATABASE_URL
|
||||
value: {{ include "django.postgresql.url" . | b64enc | quote }}
|
||||
{{- end }}
|
||||
- name: SECRET_KEY
|
||||
value: {{ required "secretKey is a required value." .Values.secretKey }}
|
||||
value: {{ required "env.secret.SECRET_KEY is a required value." .Values.env.secret.SECRET_KEY }}
|
||||
|
|
|
@ -9,7 +9,6 @@ data:
|
|||
{{- range $k, $v := .Values.env.secret }}
|
||||
{{ $k }}: {{ $v | b64enc | quote }}
|
||||
{{- end }}
|
||||
SECRET_KEY: {{ required "secretKey is a required value." .Values.secretKey | b64enc | quote }}
|
||||
{{- if .Values.redis.enabled }}
|
||||
REDIS_URL: {{ include "django.redis.url" . | b64enc | quote }}
|
||||
{{- end }}
|
||||
|
|
|
@ -1,18 +0,0 @@
|
|||
web:
|
||||
hpa:
|
||||
enabled: true
|
||||
resources:
|
||||
limits:
|
||||
cpu: 1000m
|
||||
memory: 512Mi
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 128Mi
|
||||
|
||||
worker:
|
||||
hpa:
|
||||
enabled: true
|
||||
|
||||
environmentVariables:
|
||||
ENABLE_SOCIAL_AUTH: true
|
||||
GLITCHTIP_DOMAIN: https://staging.glitchtip.com
|
28
values.yaml
28
values.yaml
|
@ -3,7 +3,7 @@
|
|||
# Declare variables to be passed into your templates.
|
||||
|
||||
image:
|
||||
repository: glitchtip/glitchtip
|
||||
repository: glitchtip/glitchtip # Demo app, change this.
|
||||
tag: latest
|
||||
pullPolicy: Always
|
||||
|
||||
|
@ -11,10 +11,10 @@ imagePullSecrets: []
|
|||
nameOverride: ""
|
||||
fullnameOverride: ""
|
||||
|
||||
secretKey:
|
||||
env:
|
||||
normal: []
|
||||
secrets: []
|
||||
# SECRET_KEY:
|
||||
# DATABASE_URL:
|
||||
# REDIS_URL:
|
||||
|
||||
|
@ -38,18 +38,18 @@ web:
|
|||
memory: 128Mi
|
||||
nodeSelector: {}
|
||||
tolerations: []
|
||||
affinity:
|
||||
podAntiAffinity:
|
||||
preferredDuringSchedulingIgnoredDuringExecution:
|
||||
- weight: 100
|
||||
podAffinityTerm:
|
||||
labelSelector:
|
||||
matchExpressions:
|
||||
- key: app.kubernetes.io/instance
|
||||
operator: In
|
||||
values:
|
||||
- glitchtip-prod-web
|
||||
topologyKey: kubernetes.io/hostname
|
||||
affinity: []
|
||||
# podAntiAffinity:
|
||||
# preferredDuringSchedulingIgnoredDuringExecution:
|
||||
# - weight: 100
|
||||
# podAffinityTerm:
|
||||
# labelSelector:
|
||||
# matchExpressions:
|
||||
# - key: app.kubernetes.io/instance
|
||||
# operator: In
|
||||
# values:
|
||||
# - glitchtip-prod-web
|
||||
# topologyKey: kubernetes.io/hostname
|
||||
livenessProbe:
|
||||
failureThreshold: 5
|
||||
initialDelaySeconds: 5
|
||||
|
|
Loading…
Reference in a new issue