You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| external.googleAnalyticsTrackingID | string |`nil`| Google analytics tracking id, **OPTIONAL**|
55
+
| projects | string |`nil`| Customize projects loaded during the initial migration, this is the value stored in [initial_projects_data.py](https://github.com/aims-group/metagrid/blob/master/backend/metagrid/initial_projects_data.py)|
56
+
| imagePullSecrets | list |`[]`| List of secrets used to pull images from private registries |
55
57
| django.replicaCount | int |`1`| Number of replicas |
| django.preemptionPolicy | string |`nil`| Pod [preemption](https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#preemption) policy |
76
+
| django.priority | string |`nil`| Pod scheduling [priority](https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#pod-priority)|
77
+
| django.priorityClassName | string |`nil`| Pod scheduling [priority](https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#priorityclass) class name |
78
+
| django.podSecurityContext | object |`{}`| Pod [security](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod) context |
79
+
| django.tolerations | list |`[]`| Pod [tolerations](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration)|
72
80
| django.autoscaling | object |`{"enabled":false,"maxReplicas":100,"minReplicas":1,"targetCPUUtilizationPercentage":80}`| Horizontal pod autoscaling configuration |
| react.preemptionPolicy | string |`nil`| Pod [preemption](https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#preemption) policy |
96
+
| react.priority | string |`nil`| Pod scheduling [priority](https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#pod-priority)|
97
+
| react.priorityClassName | string |`nil`| Pod scheduling [priority](https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#priorityclass) class name |
98
+
| react.podSecurityContext | object |`{}`| Pod [security](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod) context |
99
+
| react.tolerations | list |`[]`| Pod [tolerations](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration)|
90
100
| react.autoscaling | object |`{"enabled":false,"maxReplicas":100,"minReplicas":1,"targetCPUUtilizationPercentage":80}`| Horizontal Pod autoscaling configuration |
| postgresql.postgresql.password | string |`"pgpass"`| Postgresql password, should replace the default with something more secure |
@@ -112,8 +122,41 @@ helm delete my-release
112
122
| extraManifests | object |`{}`| Extra manifests |
113
123
114
124
## Configuration and installation details
115
-
### External TLS terminatioj
116
-
Some urls are auto-generated based on the configuration of the ingress. If TLS is not configured on the ingress (handled by upstream ingress) then this may result in some misconfiguration.
125
+
### Setting the initial projects
126
+
The `projects` value can be used to set the initial projects loaded by the backend. The following example will create a simple `CMIP6` project.
127
+
128
+
```
129
+
projects: |
130
+
group_description = {
131
+
"General": "Just a group",
132
+
}
133
+
projects = [
134
+
{
135
+
"name": "CMIP6",
136
+
...
137
+
"facets_by_group": {
138
+
"General": ["data_node"],
139
+
},
140
+
]
141
+
```
142
+
143
+
To add/remove projects after the initial migration, edit `projects` and upgrade the `Helm` chart. Next clear the existing database tables and run the migration update.
144
+
145
+
#### Clear existing database tables
146
+
```
147
+
kubectl exec -it $(kubectl get pod -oname -l app.kubernetes.io/component=django) -- python manage.py migrate projects zero
148
+
```
149
+
150
+
#### Run the migration update
151
+
```
152
+
kubectl exec -it $(kubectl get pod -oname -l app.kubernetes.io/component=django) -- python manage.py migrate projects
153
+
```
154
+
155
+
### External TLS termination
156
+
The `nodeStatus` and `metagridAPIUrl` values by default are automatically generated. If using an upstream reverse-proxy that handles TLS, then these urls will be incorrect and cause
157
+
the application to not work correctly.
158
+
159
+
To fix this both `nodeStatus` and `metagridAPIUrl` need to be overwritten, see the following example.
Copy file name to clipboardExpand all lines: chart/README.md.gotmpl
+35-2Lines changed: 35 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -29,8 +29,41 @@ helm delete my-release
29
29
{{ template "chart.valuesSection" . }}
30
30
31
31
## Configuration and installation details
32
-
### External TLS terminatioj
33
-
Some urls are auto-generated based on the configuration of the ingress. If TLS is not configured on the ingress (handled by upstream ingress) then this may result in some misconfiguration.
32
+
### Setting the initial projects
33
+
The `projects` value can be used to set the initial projects loaded by the backend. The following example will create a simple `CMIP6` project.
34
+
35
+
```
36
+
projects: |
37
+
group_description = {
38
+
"General": "Just a group",
39
+
}
40
+
projects = [
41
+
{
42
+
"name": "CMIP6",
43
+
...
44
+
"facets_by_group": {
45
+
"General": ["data_node"],
46
+
},
47
+
]
48
+
```
49
+
50
+
To add/remove projects after the initial migration, edit `projects` and upgrade the `Helm` chart. Next clear the existing database tables and run the migration update.
51
+
52
+
#### Clear existing database tables
53
+
```
54
+
kubectl exec -it $(kubectl get pod -oname -l app.kubernetes.io/component=django) -- python manage.py migrate projects zero
55
+
```
56
+
57
+
#### Run the migration update
58
+
```
59
+
kubectl exec -it $(kubectl get pod -oname -l app.kubernetes.io/component=django) -- python manage.py migrate projects
60
+
```
61
+
62
+
### External TLS termination
63
+
The `nodeStatus` and `metagridAPIUrl` values by default are automatically generated. If using an upstream reverse-proxy that handles TLS, then these urls will be incorrect and cause
64
+
the application to not work correctly.
65
+
66
+
To fix this both `nodeStatus` and `metagridAPIUrl` need to be overwritten, see the following example.
0 commit comments