-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathREADME.md.gotmpl
92 lines (74 loc) · 1.93 KB
/
README.md.gotmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{{ template "chart.header" . }}
{{ template "chart.deprecationWarning" . }}
{{ template "chart.badgesSection" . }}
{{ template "chart.description" . }}
This is a common chart for backend services.
It includes the following components:
- Deployment
- Job
- Service
- Ingress
- Horizontal Pod Autoscaler
- Pod Disruption Budget
{{ template "chart.homepageLine" . }}
{{ template "chart.maintainersSection" . }}
{{ template "chart.sourcesSection" . }}
{{ template "chart.requirementsSection" . }}
Example:
```yaml
# Default image for all components, can be overridden
image:
repository: ghcr.io/sergelogvinov/backend-example
# Default replica count for all components, can be overridden
replicaCount: 1
services:
# Deployment with service, default port is 5200
admin:
enabled: true
command: ["uwsgi","--ini","settings/uwsgi.ini","--http11-socket",":5200"]
workers:
# Deployment do not expose service
celery-worker:
enabled: true
command: ["celery", "-A", "core.celery", "worker", "-l", "info"]
cronjobs:
# Cronjob to run runcrons management command
runcrons:
enabled: true
schedule: "5 * * * *"
command: ["python", "manage.py", "runcrons"]
jobs:
# Job to run migrations, runs by helm install or helm upgrade
migrate:
enabled: true
command: ["python", "manage.py", "-p", "migrate", "--noinput"]
# Override default resources values
resources:
limits:
cpu: 1
memory: 1024Mi
requests:
cpu: 500m
memory: 256Mi
ingress:
enabled: true
hosts:
- host: example.com
paths:
# Name is the service name
- name: admin
path: /admin
pathType: ImplementationSpecific
- name: admin
path: /api
pathType: ImplementationSpecific
# Default resources for all components
resources:
limits:
cpu: 1
memory: 512Mi
requests:
cpu: 100m
memory: 256Mi
```
{{ template "chart.valuesSection" . }}