Compare commits
No commits in common. "master" and "0.2.3" have entirely different histories.
40
.drone.yml
40
.drone.yml
|
@ -1,40 +0,0 @@
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
type: docker
|
|
||||||
name: default
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: submodules
|
|
||||||
image: alpine/git
|
|
||||||
commands:
|
|
||||||
- git submodule update --init --recursive
|
|
||||||
|
|
||||||
- name: build
|
|
||||||
image: alpine/helm
|
|
||||||
volumes:
|
|
||||||
- name: result
|
|
||||||
path: /output
|
|
||||||
commands:
|
|
||||||
- helm lint --set redis.enabled=false
|
|
||||||
- helm package -d chart .
|
|
||||||
- mv chart/glitchtip*.tgz /output/glitchtip.tgz
|
|
||||||
|
|
||||||
- name: upload
|
|
||||||
image: curlimages/curl:latest
|
|
||||||
environment:
|
|
||||||
GIT_HOST: git.kurocon.nl
|
|
||||||
GIT_PACKAGE_OWNER: KuroNET
|
|
||||||
GIT_USER:
|
|
||||||
from_secret: git_username
|
|
||||||
GIT_TOKEN:
|
|
||||||
from_secret: git_password_or_token
|
|
||||||
volumes:
|
|
||||||
- name: result
|
|
||||||
path: /output
|
|
||||||
commands:
|
|
||||||
- curl --user $GIT_USER:$GIT_TOKEN -X POST --upload-file /output/glitchtip.tgz https://$GIT_HOST/api/packages/{$GIT_PACKAGE_OWNER}/helm/api/charts
|
|
||||||
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
- name: result
|
|
||||||
temp: {}
|
|
|
@ -11,7 +11,7 @@ build:
|
||||||
entrypoint: ["/bin/sh", "-c"]
|
entrypoint: ["/bin/sh", "-c"]
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- helm lint --set redis.enabled=false
|
- helm lint
|
||||||
- helm package -d chart .
|
- helm package -d chart .
|
||||||
- mv chart/glitchtip*.tgz chart/glitchtip.tgz
|
- mv chart/glitchtip*.tgz chart/glitchtip.tgz
|
||||||
artifacts:
|
artifacts:
|
||||||
|
|
2
.gitmodules
vendored
2
.gitmodules
vendored
|
@ -1,3 +1,3 @@
|
||||||
[submodule "django-helm-chart"]
|
[submodule "django-helm-chart"]
|
||||||
path = django-helm-chart
|
path = django-helm-chart
|
||||||
url = https://git.kurocon.nl/KuroNET/django-helm-chart.git
|
url = https://gitlab.com/burke-software/django-helm-chart.git
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
# Unreleased
|
|
||||||
|
|
||||||
# 4.0.0
|
|
||||||
|
|
||||||
- (Breaking) Rename value preInstall to migrationJob
|
|
||||||
- The migration job now runs the migrate script which includes pgpartition. This should help ensure it runs more often as a failsafe should celery fail.
|
|
||||||
- Add some support for volume mounts, not well tested
|
|
||||||
- Started this changelog
|
|
||||||
- Updated chart dependencies to latest versions
|
|
|
@ -1,9 +1,9 @@
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: postgresql
|
- name: postgresql
|
||||||
repository: https://charts.bitnami.com/bitnami
|
repository: https://charts.bitnami.com/bitnami
|
||||||
version: 15.5.16
|
version: 11.7.2
|
||||||
- name: redis
|
- name: redis
|
||||||
repository: https://charts.bitnami.com/bitnami
|
repository: https://charts.bitnami.com/bitnami
|
||||||
version: 19.6.1
|
version: 17.0.11
|
||||||
digest: sha256:39ccb3c76f7a8587ce6623d8b563cefcb3c63a7376768a901ae8092ca4fd9b82
|
digest: sha256:9f48089bf27f97be3c626a50ba70cd089f42e8b3f0c04a5d529752379b2cbc5b
|
||||||
generated: "2024-07-15T16:16:16.67406353-04:00"
|
generated: "2022-08-17T14:53:16.847677356-04:00"
|
||||||
|
|
|
@ -14,20 +14,20 @@ type: application
|
||||||
|
|
||||||
# This is the chart version. This version number should be incremented each time you make changes
|
# This is the chart version. This version number should be incremented each time you make changes
|
||||||
# to the chart and its templates, including the app version.
|
# to the chart and its templates, including the app version.
|
||||||
version: 4.0.1
|
version: 0.2.3
|
||||||
|
|
||||||
# This is the version number of the application being deployed. This version number should be
|
# This is the version number of the application being deployed. This version number should be
|
||||||
# incremented each time you make changes to the application.
|
# incremented each time you make changes to the application.
|
||||||
appVersion: 4.1.1
|
appVersion: 2.0.4
|
||||||
|
|
||||||
icon: https://glitchtip.gitlab.io/glitchtip-helm-chart/icon.svg
|
icon: https://glitchtip.gitlab.io/glitchtip-helm-chart/icon.svg
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: postgresql
|
- name: postgresql
|
||||||
version: ^15.2.5
|
version: ~11.7.2
|
||||||
repository: https://charts.bitnami.com/bitnami
|
repository: https://charts.bitnami.com/bitnami
|
||||||
condition: postgresql.enabled
|
condition: postgresql.enabled
|
||||||
- name: redis
|
- name: redis
|
||||||
version: ^19.1.0
|
version: ~17.0.11
|
||||||
repository: https://charts.bitnami.com/bitnami
|
repository: https://charts.bitnami.com/bitnami
|
||||||
condition: redis.enabled
|
condition: redis.enabled
|
||||||
|
|
|
@ -18,21 +18,19 @@ For postgresql, we recommend an externally managed database and providing only t
|
||||||
## Important Tips
|
## Important Tips
|
||||||
|
|
||||||
- Use [helm diff](https://github.com/databus23/helm-diff) to preview changes
|
- Use [helm diff](https://github.com/databus23/helm-diff) to preview changes
|
||||||
|
- We don't update the chart version for app version updates at this time, set image.tag instead.
|
||||||
- Set image.pullPolicy to `IfNotPresent` after specifying the image.tag
|
- Set image.pullPolicy to `IfNotPresent` after specifying the image.tag
|
||||||
- Set redis.auth.password to avoid redis being entirely remade on each release
|
- Set redis.auth.password to avoid redis being entirely remade on each release
|
||||||
- If updating the chart, carefully review values for any new defaults
|
- If updating the chart, carefully review values for any new defaults
|
||||||
|
|
||||||
## Updating
|
## Updating
|
||||||
|
|
||||||
See changes in this chart on [GitLab](https://gitlab.com/glitchtip/glitchtip-helm-chart/-/releases)
|
|
||||||
|
|
||||||
- `helm repo update`
|
- `helm repo update`
|
||||||
- Set the image.tag to the [latest version](https://gitlab.com/glitchtip/glitchtip-frontend/-/releases)
|
- Set the image.tag to the [latest version](https://gitlab.com/glitchtip/glitchtip-frontend/-/releases)
|
||||||
- `helm diff upgrade glitchtip glitchtip/glitchtip`
|
- `helm diff upgrade glitchtip glitchtip/glitchtip`
|
||||||
- Carefully review diff
|
- Carefully review diff
|
||||||
- `helm upgrade glitchtip glitchtip/glitchtip -f your-values.yaml`
|
- `helm upgrade glitchtip glitchtip/glitchtip -f your-values.yaml`
|
||||||
|
|
||||||
|
|
||||||
# Contributing
|
# Contributing
|
||||||
|
|
||||||
Please open issues only with potential solutions and be prepared to do some work or else fund it. Contributors are welcome. However, we kindly ask that feature requests and support requests not be opened in this repo.
|
Please open issues only with potential solutions and be prepared to do some work or else fund it. Contributors are welcome. However, we kindly ask that feature requests and support requests not be opened in this repo.
|
||||||
|
|
BIN
charts/postgresql-11.7.2.tgz
Normal file
BIN
charts/postgresql-11.7.2.tgz
Normal file
Binary file not shown.
Binary file not shown.
BIN
charts/redis-17.0.11.tgz
Normal file
BIN
charts/redis-17.0.11.tgz
Normal file
Binary file not shown.
Binary file not shown.
|
@ -1 +1 @@
|
||||||
Subproject commit 4c7256e5c96d18e4f187074354690a11d65b57fe
|
Subproject commit e55c49432c64be18c2f18a3129c38e17959066d5
|
|
@ -1,5 +1,5 @@
|
||||||
image:
|
image:
|
||||||
tag: v2.0.4 # Make this the latest version, then change it to upgrade
|
tag: v1.12.0 # Make this the latest version, then change it to upgrade
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
env:
|
env:
|
||||||
normal:
|
normal:
|
||||||
|
|
87
values.yaml
87
values.yaml
|
@ -1,7 +1,7 @@
|
||||||
# Default values for glitchtip.
|
# Default values for glitchtip.
|
||||||
image:
|
image:
|
||||||
repository: glitchtip/glitchtip
|
repository: glitchtip/glitchtip
|
||||||
tag: v4.1.1
|
tag: v2.0.4
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
imagePullSecrets: []
|
imagePullSecrets: []
|
||||||
|
@ -12,26 +12,20 @@ env:
|
||||||
normal:
|
normal:
|
||||||
ENABLE_SOCIAL_AUTH: false
|
ENABLE_SOCIAL_AUTH: false
|
||||||
GLITCHTIP_DOMAIN: https://example.com
|
GLITCHTIP_DOMAIN: https://example.com
|
||||||
CELERY_WORKER_AUTOSCALE: "1,3"
|
CELERY_WORKER_CONCURRENCY: "2" # Remove to set to number of cpus
|
||||||
CELERY_WORKER_MAX_TASKS_PER_CHILD: "10000"
|
|
||||||
secret:
|
secret:
|
||||||
SECRET_KEY: # Required
|
SECRET_KEY: # Required
|
||||||
# DATABASE_URL: Specify if using external postgres (not managed by this chart)
|
# DATABASE_URL: Specify if using external postgres (not managed by this chart)
|
||||||
# REDIS_URL: Specify if using external redis (not managed by this chart)
|
# REDIS_URL: Specify if using external redis (not managed by this chart)
|
||||||
|
|
||||||
migrationJob:
|
|
||||||
enabled: true
|
|
||||||
command: ["bin/run-migrate.sh"]
|
|
||||||
activeDeadlineSeconds: 900
|
|
||||||
|
|
||||||
web:
|
web:
|
||||||
replicaCount: 2
|
replicaCount: 2
|
||||||
autoscaling:
|
autoscaling:
|
||||||
enabled: false
|
enabled: false
|
||||||
minReplicas: 2
|
minReplicas: 2
|
||||||
maxReplicas: 10
|
maxReplicas: 10
|
||||||
targetCPU: 80
|
targetCPUUtilizationPercentage: 80
|
||||||
# targetMemory: 80
|
# targetMemoryUtilizationPercentage: 80
|
||||||
budget:
|
budget:
|
||||||
minAvailable: 1
|
minAvailable: 1
|
||||||
resources:
|
resources:
|
||||||
|
@ -40,10 +34,9 @@ web:
|
||||||
memory: 512Mi
|
memory: 512Mi
|
||||||
requests:
|
requests:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
memory: 256Mi
|
memory: 128Mi
|
||||||
nodeSelector: {}
|
nodeSelector: {}
|
||||||
tolerations: []
|
tolerations: []
|
||||||
podAnnotations: {}
|
|
||||||
affinity:
|
affinity:
|
||||||
podAntiAffinity:
|
podAntiAffinity:
|
||||||
preferredDuringSchedulingIgnoredDuringExecution:
|
preferredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
@ -59,7 +52,7 @@ web:
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
failureThreshold: 5
|
failureThreshold: 5
|
||||||
initialDelaySeconds: 5
|
initialDelaySeconds: 5
|
||||||
timeoutSeconds: 3
|
timeoutSeconds: 2
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
failureThreshold: 10
|
failureThreshold: 10
|
||||||
initialDelaySeconds: 5
|
initialDelaySeconds: 5
|
||||||
|
@ -90,80 +83,26 @@ worker:
|
||||||
autoscaling:
|
autoscaling:
|
||||||
enabled: false
|
enabled: false
|
||||||
minReplicas: 1
|
minReplicas: 1
|
||||||
maxReplicas: 10
|
maxReplicas: 100
|
||||||
targetCPU: 100
|
targetCPUUtilizationPercentage: 90
|
||||||
# targetMemory: 100
|
# targetMemoryUtilizationPercentage: 80
|
||||||
livenessProbe:
|
|
||||||
initialDelaySeconds: 10
|
|
||||||
periodSeconds: 60
|
|
||||||
timeoutSeconds: 30
|
|
||||||
exec:
|
|
||||||
command:
|
|
||||||
- "bash"
|
|
||||||
- "-c"
|
|
||||||
- "celery -A glitchtip inspect ping -d celery@$HOSTNAME | grep -q OK"
|
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 900m
|
cpu: 900m
|
||||||
memory: 768Mi
|
memory: 768Mi
|
||||||
requests:
|
requests:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
memory: 350Mi
|
memory: 128Mi
|
||||||
nodeSelector: {}
|
nodeSelector: {}
|
||||||
tolerations: []
|
tolerations: []
|
||||||
podAnnotations: {}
|
|
||||||
affinity: {}
|
affinity: {}
|
||||||
|
|
||||||
beat:
|
beat:
|
||||||
enabled: true
|
enabled: true
|
||||||
resources:
|
|
||||||
limits:
|
|
||||||
cpu: 200m
|
|
||||||
memory: 150Mi
|
|
||||||
requests:
|
|
||||||
cpu: 1m
|
|
||||||
memory: 130Mi
|
|
||||||
nodeSelector: {}
|
nodeSelector: {}
|
||||||
tolerations: []
|
tolerations: []
|
||||||
podAnnotations: {}
|
|
||||||
affinity: {}
|
affinity: {}
|
||||||
|
|
||||||
flower:
|
|
||||||
enabled: false
|
|
||||||
image:
|
|
||||||
repository: mher/flower
|
|
||||||
tag: latest
|
|
||||||
pullPolicy: IfNotPresent
|
|
||||||
resources:
|
|
||||||
limits:
|
|
||||||
cpu: 500m
|
|
||||||
memory: 512Mi
|
|
||||||
requests:
|
|
||||||
cpu: 50m
|
|
||||||
memory: 256Mi
|
|
||||||
nodeSelector: {}
|
|
||||||
tolerations: []
|
|
||||||
podAnnotations: {}
|
|
||||||
affinity: {}
|
|
||||||
service:
|
|
||||||
type: ClusterIP
|
|
||||||
port: 80
|
|
||||||
ingress:
|
|
||||||
enabled: false
|
|
||||||
annotations:
|
|
||||||
{}
|
|
||||||
# kubernetes.io/ingress.class: nginx
|
|
||||||
# kubernetes.io/tls-acme: "true"
|
|
||||||
hosts:
|
|
||||||
- host: chart-example.local
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
tls: []
|
|
||||||
# - secretName: chart-example-tls
|
|
||||||
# hosts:
|
|
||||||
# - chart-example.local
|
|
||||||
|
|
||||||
serviceAccount:
|
serviceAccount:
|
||||||
# Specifies whether a service account should be created
|
# Specifies whether a service account should be created
|
||||||
create: false
|
create: false
|
||||||
|
@ -171,7 +110,7 @@ serviceAccount:
|
||||||
# If not set and create is true, a name is generated using the fullname template
|
# If not set and create is true, a name is generated using the fullname template
|
||||||
name:
|
name:
|
||||||
|
|
||||||
# For configuration options, see https://artifacthub.io/packages/helm/bitnami/redis
|
|
||||||
redis:
|
redis:
|
||||||
enabled: true
|
enabled: true
|
||||||
architecture: standalone
|
architecture: standalone
|
||||||
|
@ -182,8 +121,6 @@ redis:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|
||||||
# Default to disabled, use a managed database service. But can be enabled here.
|
# Default to disabled, use a managed database service. But can be enabled here.
|
||||||
# For configuration options, see https://artifacthub.io/packages/helm/bitnami/postgresql
|
|
||||||
postgresql:
|
postgresql:
|
||||||
enabled: false
|
enabled: false
|
||||||
# auth:
|
postgresqlPassword: # Must be set
|
||||||
# postgresPassword: # Must be set
|
|
||||||
|
|
Loading…
Reference in a new issue