work check in
This commit is contained in:
parent
fb8bd654f3
commit
6a9b266751
|
@ -1,6 +1,6 @@
|
||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
name: glitchtip
|
name: django
|
||||||
description: Open source error tracking that is compatible with Sentry
|
description: Generic Django + Celery Helm Chart
|
||||||
|
|
||||||
# A chart can be either an 'application' or a 'library' 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.
|
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.
|
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
|
# Usage
|
||||||
|
|
||||||
1. Add our Helm chart repo `helm repo add glitchtip https://glitchtip.gitlab.io/glitchtip-helm-chart/`
|
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`
|
3. Install the chart `helm install glitchtip/glitchtip --set databaseURL=your_db --set secretKey=random_string`
|
||||||
|
|
|
@ -9,5 +9,4 @@ metadata:
|
||||||
data:
|
data:
|
||||||
{{- range $k, $v := .Values.env.normal }}
|
{{- range $k, $v := .Values.env.normal }}
|
||||||
{{ $k }}: {{ $v | quote }}
|
{{ $k }}: {{ $v | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
DATABASE_URL: {{ include "django.postgresql.url" . | quote }}
|
|
|
@ -15,6 +15,10 @@ spec:
|
||||||
activeDeadlineSeconds: 600
|
activeDeadlineSeconds: 600
|
||||||
template:
|
template:
|
||||||
spec:
|
spec:
|
||||||
|
{{- with .Values.imagePullSecrets }}
|
||||||
|
imagePullSecrets:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
containers:
|
containers:
|
||||||
- name: pre-install-job
|
- name: pre-install-job
|
||||||
|
@ -26,10 +30,10 @@ spec:
|
||||||
value: "False"
|
value: "False"
|
||||||
{{- if .Values.env.secret.DATABASE_URL }}
|
{{- if .Values.env.secret.DATABASE_URL }}
|
||||||
- name: 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 }}
|
{{- else if .Values.postgresql.enabled }}
|
||||||
- name: DATABASE_URL
|
- name: DATABASE_URL
|
||||||
value: {{ include "django.postgresql.url" . | b64enc | quote }}
|
value: {{ include "django.postgresql.url" . | b64enc | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
- name: SECRET_KEY
|
- 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 }}
|
{{- range $k, $v := .Values.env.secret }}
|
||||||
{{ $k }}: {{ $v | b64enc | quote }}
|
{{ $k }}: {{ $v | b64enc | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
SECRET_KEY: {{ required "secretKey is a required value." .Values.secretKey | b64enc | quote }}
|
|
||||||
{{- if .Values.redis.enabled }}
|
{{- if .Values.redis.enabled }}
|
||||||
REDIS_URL: {{ include "django.redis.url" . | b64enc | quote }}
|
REDIS_URL: {{ include "django.redis.url" . | b64enc | quote }}
|
||||||
{{- end }}
|
{{- 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.
|
# Declare variables to be passed into your templates.
|
||||||
|
|
||||||
image:
|
image:
|
||||||
repository: glitchtip/glitchtip
|
repository: glitchtip/glitchtip # Demo app, change this.
|
||||||
tag: latest
|
tag: latest
|
||||||
pullPolicy: Always
|
pullPolicy: Always
|
||||||
|
|
||||||
|
@ -11,10 +11,10 @@ imagePullSecrets: []
|
||||||
nameOverride: ""
|
nameOverride: ""
|
||||||
fullnameOverride: ""
|
fullnameOverride: ""
|
||||||
|
|
||||||
secretKey:
|
|
||||||
env:
|
env:
|
||||||
normal: []
|
normal: []
|
||||||
secrets: []
|
secrets: []
|
||||||
|
# SECRET_KEY:
|
||||||
# DATABASE_URL:
|
# DATABASE_URL:
|
||||||
# REDIS_URL:
|
# REDIS_URL:
|
||||||
|
|
||||||
|
@ -38,18 +38,18 @@ web:
|
||||||
memory: 128Mi
|
memory: 128Mi
|
||||||
nodeSelector: {}
|
nodeSelector: {}
|
||||||
tolerations: []
|
tolerations: []
|
||||||
affinity:
|
affinity: []
|
||||||
podAntiAffinity:
|
# podAntiAffinity:
|
||||||
preferredDuringSchedulingIgnoredDuringExecution:
|
# preferredDuringSchedulingIgnoredDuringExecution:
|
||||||
- weight: 100
|
# - weight: 100
|
||||||
podAffinityTerm:
|
# podAffinityTerm:
|
||||||
labelSelector:
|
# labelSelector:
|
||||||
matchExpressions:
|
# matchExpressions:
|
||||||
- key: app.kubernetes.io/instance
|
# - key: app.kubernetes.io/instance
|
||||||
operator: In
|
# operator: In
|
||||||
values:
|
# values:
|
||||||
- glitchtip-prod-web
|
# - glitchtip-prod-web
|
||||||
topologyKey: kubernetes.io/hostname
|
# topologyKey: kubernetes.io/hostname
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
failureThreshold: 5
|
failureThreshold: 5
|
||||||
initialDelaySeconds: 5
|
initialDelaySeconds: 5
|
||||||
|
|
Loading…
Reference in a new issue