Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
146 commits
Select commit Hold shift + click to select a range
f3c30df
Update release.yaml
carmat88 Nov 2, 2021
55df4fa
Removing keycloak
carmat88 Nov 25, 2021
c5b642e
Allowing easier deployment of stackn
carmat88 Dec 7, 2021
82c785b
Adding crispy form in studio settings
carmat88 Dec 7, 2021
5e5df0b
Delete .values-utility-script.sh.swp
carmat88 Dec 10, 2021
559ea9e
Formatting and updating studio configmap
carmat88 Dec 10, 2021
5df3555
Update chart-controller-secret.yaml
carmat88 Feb 17, 2022
e8e192b
update values
Wrede Jun 7, 2022
5eaad96
update charts
Wrede Jun 10, 2022
f0c34e9
k8s config info
Wrede Jun 10, 2022
3ef5ce7
update stackn README.md
Wrede Jul 4, 2022
29b004e
update README.md
Wrede Jul 5, 2022
01a4bd4
update charts
Wrede Jul 6, 2022
6d73686
update README.md
Wrede Jul 1, 2022
ad0b3a3
update README.md
Wrede Jul 6, 2022
97e2e88
remove loki-stack
Wrede Jul 6, 2022
9785627
update README.md
Wrede Jul 6, 2022
13e0ff0
update README.md
Wrede Jul 6, 2022
657334d
update gh workflows
Wrede Jul 6, 2022
8b2314a
remove on push
Wrede Jul 8, 2022
2885991
Release/v0.6.0 (#97)
Wrede Jul 14, 2022
8be8d4d
fix .Subcharts reference not working for certain helm versions
Wrede Sep 6, 2022
131e342
bump beta version
Wrede Sep 6, 2022
ba12687
remove beta (rancher can not fetch beta charts)
Wrede Sep 6, 2022
31f3bd8
remove .Subchart interface
Wrede Sep 6, 2022
869bfc9
update secret name
Wrede Sep 6, 2022
56fae33
apply changes from studio-deploy-charts
Wrede Feb 27, 2023
2057966
add common app
Wrede Mar 1, 2023
0f8c238
add network policies
Wrede Mar 1, 2023
1f5a1af
use bitnami for redis and rabbitmq + add securityContext
Wrede Mar 1, 2023
19a938a
Bug/SK-367 | change redirect to /projects after login
Wrede Mar 1, 2023
47e875a
Bug/SK-375 | Remove warning: Auto-created primary key used when not d…
Wrede Mar 1, 2023
af45cff
add networkpolicies
Wrede Mar 1, 2023
69f5897
add common annotations
Wrede Mar 2, 2023
87394ec
Feature/SK-379 | Add service account and role/rolebinding
Wrede Mar 3, 2023
c4bd972
Add additionals to securityContext
Wrede Mar 3, 2023
db3a974
Add autoscaling api to role
Wrede Mar 7, 2023
3838a27
network policies for lab and minio
Wrede Mar 8, 2023
28801c3
fix serve static and media via ngnix
Wrede Mar 14, 2023
12e2fb4
Feature/SK-389 | Manage migration files for 0.7.0
niklastheman Mar 10, 2023
77cf893
Add values for adding custom apps and migrations
Wrede Mar 16, 2023
db39fb0
fix compability with studio
Wrede Mar 20, 2023
6b69ffe
add setting for resource limit
Wrede Mar 21, 2023
067dade
remove crispy forms setting
Wrede Mar 21, 2023
29716c4
namespace from values
Wrede Mar 22, 2023
700e78a
default values update
Wrede Mar 22, 2023
d16b30c
remove fullnameoveride for reloader
Wrede Mar 22, 2023
fbd1916
add NP for reloader
Wrede Mar 23, 2023
4cb8b43
add ingress/egress rule for reloader
Wrede Mar 23, 2023
b19d3a3
update reloader version
Wrede Mar 23, 2023
f752647
merge default-deny-egress with allow dns
Wrede Mar 23, 2023
642ab93
remove media from workers + media mount to studio during debug
Wrede Mar 27, 2023
f84bb63
allow host full dns name
Wrede Mar 27, 2023
d2ba614
add setting for kube api request timeout
Wrede Apr 5, 2023
b99d42a
Feature/SK-417 | Start using mailgun for reset password (#98)
niklastheman Apr 12, 2023
e9ad6d9
update postgres to latest version
Wrede Apr 13, 2023
f6ec711
Added email endpoint to as option specified in values
niklastheman Apr 13, 2023
352b593
change strategy type to Recreate for nginx
Wrede Apr 14, 2023
67a84f3
strategy type for studio RollingUpdate
Wrede Apr 14, 2023
d8cb135
Added STUDIO_ACCESSMODE setting to django app
niklastheman Apr 14, 2023
25f646f
Added EMAIL_TEMPLATE_PROTOCOL setting (#99)
niklastheman Apr 17, 2023
53d3edf
Added Last-Modified header in the HTTP response for the static files …
niklastheman Apr 20, 2023
47ceaaa
New network policy added
niklastheman Apr 24, 2023
5bd06e1
Update README
Wrede Apr 20, 2023
c05a1a8
update main README and chart version
Wrede Apr 20, 2023
e8e8e4c
fix
Wrede Apr 20, 2023
0b23ac7
add enable_project_extra_settings
Wrede Apr 28, 2023
39e8b78
DISABLED_APP_INSTANCE_FIELDS setting and values added
niklastheman May 4, 2023
6716cb8
Feature/SK-476 | Enable RWX accessmode for PVC in projects (#103)
Wrede Jun 12, 2023
f68daae
Feature/SK-495 | Remove if debug for media mount in studio deployment…
Wrede Jun 12, 2023
ebbe72f
Feature/SK-495 | Fix to previous PR (#105)
Wrede Jun 12, 2023
8d0d0e9
volumeK8s: 5 (#102)
niklastheman Jun 14, 2023
dd34b5d
changes related to studio upcoming v0.8.0
Wrede Nov 2, 2023
c1cb69f
grpc domain added
niklastheman Nov 8, 2023
d038181
grpc ingress added
niklastheman Nov 8, 2023
b133202
grpc ingress name fix
niklastheman Nov 8, 2023
63f9980
add grpc timeouts
Wrede Nov 9, 2023
5db2a32
update label for kube-system namespace
Wrede Nov 10, 2023
c039d5c
merge 0.4.1-beta changes
Wrede Nov 10, 2023
0a7996b
limit reducer to 1 (#106)
niklastheman Nov 13, 2023
0a1da6e
updated config map to include new app systems (also including migrati…
niklastheman Nov 28, 2023
bd64662
add support for jwt
Wrede Dec 12, 2023
1788295
fix
Wrede Dec 12, 2023
6445a71
discord settings added (#108)
niklastheman Dec 20, 2023
0f7f88d
Feature/SK-486 | Implement kubernetes event listener (#101)
niklastheman Dec 29, 2023
c0f6c74
Remove celery and chart controller, add argo cd settings to Studio.
stefanhellander Feb 7, 2024
4886d98
Fixed some problems in studio-deployment
stefanhellander Feb 12, 2024
408f1d5
Various fixes
stefanhellander Feb 12, 2024
6dba1b2
fix studio cm
Wrede Feb 12, 2024
bb85dc1
remove redis and rabbitmq
Wrede Feb 12, 2024
3b81e0e
remove rabbit-parrword
Wrede Feb 12, 2024
42321a3
argocd token as in secret
Wrede Feb 12, 2024
6b42201
edit studio cm
Wrede Feb 12, 2024
7b1b8a9
Fixes
stefanhellander Feb 14, 2024
6aa9c4e
mongodb
Wrede Feb 13, 2024
79143bb
remove minio
Wrede Feb 14, 2024
f5760b6
S3
Wrede Feb 14, 2024
61dd457
update common
Wrede Feb 15, 2024
a8906ec
Fix
stefanhellander Feb 15, 2024
81fb2e7
Updated Studio deployment with S3 creds as environment variables.
stefanhellander Feb 16, 2024
1d0151c
mongodb
Wrede Feb 16, 2024
26575ef
mongodb enbaled
Wrede Feb 19, 2024
07b0a64
fix
Wrede Feb 19, 2024
67a76cd
default to secret key jwt
Wrede Feb 19, 2024
6b13488
fix
Wrede Feb 19, 2024
128bd9f
fix
Wrede Feb 19, 2024
ce5bf02
add express
Wrede Feb 19, 2024
9538bbe
fix
Wrede Feb 19, 2024
dc57d14
Left over conflict in helper
stefanhellander Feb 21, 2024
d16b271
Make argo cd configurable
stefanhellander Feb 21, 2024
654b8eb
Make Studio track 0.x.y series of FEDn helm chart.
stefanhellander Feb 21, 2024
133da63
update version
Wrede Feb 21, 2024
093ce43
Fix imagepullsecret in event listener deployment.
stefanhellander Feb 21, 2024
7a8d72f
Fix quotes around revision.
stefanhellander Feb 21, 2024
b8df1f0
Set correct images in values
stefanhellander Feb 22, 2024
c64a75e
Bumped minor version so that cluster pulls new chart (after fixes in …
stefanhellander Feb 22, 2024
db0c3e5
Feature/SK-698 | Removes settings configmap and adds corresponding en…
stefanhellander Mar 1, 2024
9c7cd24
jwt-auth-endpoint
Wrede Mar 1, 2024
34d5ab8
add jwt
Wrede Mar 1, 2024
f4f46f5
fix volume check
Wrede Mar 4, 2024
a43c6cb
fix
Wrede Mar 4, 2024
6613571
fix
Wrede Mar 4, 2024
d9ea575
fix
Wrede Mar 4, 2024
8bbe0f0
remove media-vol from studio
Wrede Mar 19, 2024
e2ba434
remove auth-url
Wrede Mar 19, 2024
ebd4911
remove debug mode
Wrede Mar 19, 2024
9b3ffe7
update event listener
Wrede Mar 27, 2024
ce1d11b
update ingress annotations
Wrede Mar 27, 2024
cf9ae41
Feature/SK-718 | Adds option to install postgres cluster via Cloudnat…
stefanhellander Apr 8, 2024
71a54ec
Added mongodb backup and restore jobs (#111)
stefanhellander Apr 11, 2024
debc252
Feature/SK-786 | Updated to ensure FEDn connects to replica set if mo…
stefanhellander Apr 12, 2024
78e7133
Added WELCOME_EMAIL_ON_NEW_USER (#113)
niklastheman Sep 13, 2024
7888b40
Bumped versions
stefanhellander Sep 16, 2024
f5e0978
set welcome email to disabled by default in values.yaml
stefanhellander Sep 16, 2024
fbd05e1
Fix condition in mongo restore job manifest
stefanhellander Sep 20, 2024
d77cfe3
Added sentry configs (#114)
stefanhellander Oct 2, 2024
416ca0c
Added sentry environment as env variable
stefanhellander Oct 2, 2024
27f8833
Update in mongodb backup job manifest (#115)
stefanhellander Nov 5, 2024
45639db
Updated restore jobs (not used normally)
stefanhellander Nov 5, 2024
b961433
Added option to set recaptcha enabled
stefanhellander Nov 8, 2024
07c7f3d
update grpc ingress port
Wrede Nov 20, 2024
904a634
Updated version number
stefanhellander Jan 31, 2025
a32be3c
Feature/SK-1350 | Changed how we handle app versions (#116)
stefanhellander Feb 11, 2025
c7dff23
update pullSecret for event listener
Wrede Feb 11, 2025
44ffaf4
fix
Wrede Feb 11, 2025
6851cc0
add FRONTEND_DOMAIN
Wrede Feb 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/code-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:

jobs:
check-code:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2

Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,6 @@ dmypy.json
static/open-iconic/

repos/

#Other
values-local*
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ This repository contains Helm charts maintained by Scaleout Systems AB. The repo

**Note:** The main branch is now the new default branch. For getting the latest version of these charts please clone the main branch and not the master.


## Getting started
To be able to deploy Helm chrats from this repository you first need to add this repository as a source of charts.
To be able to deploy Helm charts from this repository you first need to add this repository as a source of charts.

```bash
$ helm repo add scaleout https://scaleoutsystems.github.io/charts/scaleout/stackn
Expand Down
2 changes: 2 additions & 0 deletions scaleout/stackn/.helmignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,5 @@ stackn-*.tgz
.vscode/
modules/
examples/
# Values file
.values-*
10 changes: 4 additions & 6 deletions scaleout/stackn/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
apiVersion: v1
appVersion: "0.6.0"
description: A Helm chart for deploying STACKn by Scaleout
name: stackn
version: 0.2.0
appVersion: "0.17.0"
description: A Helm chart for deploying studio
name: studio
version: 0.5.6
maintainers:
- email: [email protected]
name: Morgan Ekmefjord
- email: [email protected]
name: Fredrik Wrede
231 changes: 94 additions & 137 deletions scaleout/stackn/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,38 +7,42 @@ STACKn

A Helm chart for deploying STACKn by Scaleout

Current chart version is 0.2.0
Current chart version is 0.4.1

## Chart Requirements

| Repository | Name | Version | Optional |
|------------|------|---------|----------|
| https://charts.bitnami.com/bitnami | postgresql | 11.6.14 | No
| https://charts.bitnami.com/bitnami | postgresql-ha | 9.2.0 | Yes
| https://grafana.github.io/helm-charts | grafana | 6.8.4 | Yes
| https://prometheus-community.github.io/helm-charts | prometheus | 13.8.0 | Yes
| https://stakater.github.io/stakater-charts | reloader | v0.0.86 | No

| https://charts.bitnami.com/bitnami | postgresql | 12.2.7 | No
| https://charts.bitnami.com/bitnami | redis | 17.7.4 | No
| https://charts.bitnami.com/bitnami | rabbitmq | 11.9.1 | No
| https://charts.bitnami.com/bitnami | common | 2.0.4 | No
| https://stakater.github.io/stakater-charts | reloader | v1.0.15 | Yes

## Notes
When using PVC's together with postgres, rabbitmq and and redis, credentials will to not sync if secrets are updated (for example if password values are left blank). If this happens, the solution
is to redeploy and delete previous created PVCs. To avoid the same problem again, either set password values or use existing secrets. The subcharts for postgres, rabbitmq and redis all come with a value
to set existing secret. Existing secrets is the recommended approch if are going to version control your values (GitOps) to avoid raw passwords in your version history.

You can read more about the issue here: https://github.com/bitnami/charts/issues/2061
Obs that stakater/reloader does not solve the issue.
## Configuration

By default STACKn has been configured with a dns wildcard domain for localhost. To change this replace all occurences of studio.127.0.0.1.nip.io in values.yaml.

STACKn requires access to manipulate and create recourses in the k8s cluster. Thus, it needs the cluster config as a secret in ./templates/chart-controller-secret.yaml.

By default no StorageClassName is set and needs to provided in the values.yaml or by using `--set` argument.

### Quick deployment

```bash
# Generate k8s cluster config file - NOTE: we assume a k8s cluster is already installed and configured
cluster_config=$(cat ~/.kube/config | base64 | tr -d '\n')

# Deploy STACKn from this repository
helm install --set kubeconfig=$cluster_config --set global.postgresql.storageClass=<your-storage-class> stackn .
helm install --set global.postgresql.storageClass=<your-storage-class> studio .
```

All resources will by default be created in the Namescape "default".
STACKn studio will be avaliable at http://studio.127.0.0.1.nip.io
STACKn studio will be avaliable at https://studio.127.0.0.1.nip.io
Obs that you might have to make changes to your particular ingress controller (nginx is supported in this chart) to connect to the URL.
If the ingress does not work for any reason, you can try to port-forward the studio service port to your localhost.

## Deploy an SSL certificate

Expand All @@ -47,132 +51,85 @@ For production you need a domain name with a wildcard SSL certificate. If your d
kubectl create secret tls prod-ingress --cert fullchain.pem --key privkey.pem
```

## Global values
Minimal requirement: `global.postgresql.storageClass`

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| global.studio.existingSecret | string | `""` | Use existing secret. See basic-secrets.yaml. |
| global.studio.storageClass | string | `""` | StorageClassName for PVC. Overrides `studio.storage.storageClass`. If `studio.storage.storageClass` is unset (default) will inherent from `global.postgresql.storageClass` |
| global.studio.superUser | string | `admin` | Django superUser. Obs will always be `admin` until fixed. |
| global.studio.superuserEmail | string | `'[email protected]'` | Django superUser email. Obs will always be `[email protected]` until fixed. |
| global.studio.superuserPassword | string | `""` | Django superUser password. If left empty, will generate. |
| global.postgresql.auth.username | string | `stackn` | Postgres user will be created |
| global.postgresql.auth.password | string | `""` | Postgres password for user above. If empty, will be generated and stored in secret `stackn-studio-postgres` |
| global.postgresql.auth.database | string | `stackn` | Postgres database will be created |
| global.postgresql.auth.postgresPassword | string | `""` | Postgres password for postgres user If empty, will be generated and stored in secret `stackn-studio-postgres` |
| global.postgresql.auth.existingSecret | string | `""` | will not create secret `stackn-studio-postgres`. Instead use existing secret for postgres|
| global.postgresql.storageClass | string | `""` | StorageClassName for PVC |



## Values

Minimal requirement: `kubeconfig`

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| celeryWorkers.replicas | int | `2` | |
| celeryWorkers.resources.limits.cpu | string | `"1000m"` | |
| celeryWorkers.resources.limits.memory | string | `"8Gi"` | |
| celeryWorkers.resources.requests.cpu | string | `"100m"` | |
| celeryWorkers.resources.requests.memory | string | `"1Gi"` | |
| chartcontroller.branch | string | `"develop"` | |
| chartcontroller.enabled | bool | `false` | |
| chartcontroller.image.pullPolicy | string | `"Always"` | |
| chartcontroller.image.repository | string | `"registry.<your-domain.com>/chart-controller:develop"` | |
| kubeconfig | string | `""` | Encoded (base64) kubernetes config |
| docker-registry.enabled | bool | `false` | |
| docker-registry.ingress.enabled | bool | `true` | |
| docker-registry.ingress.hosts[0] | string | `"registry.<your-domain.com>"` | |
| docker-registry.ingress.tls[0].hosts[0] | string | `"registry.<your-domain.com>"` | |
| docker-registry.ingress.tls[0].secretName | string | `"prod-ingress"` | |
| docker-registry.persistence.accessMode | string | `"ReadWriteOnce"` | |
| docker-registry.persistence.enabled | bool | `true` | |
| docker-registry.persistence.size | string | `"2Gi"` | |
| docker-registry.persistence.storageClass | string | `"microk8s-hostpath"` | |
| domain | string | `studio.<your-domain.com>` | |
| auth_domain | string | `"stackn-studio.default.svc.cluster.local"` | |
| session_cookie_domain | string | `.<your-domain.com>` | |
| existingSecret | string | `""` | |
| fixtures | string | `""` | |
| grafana."grafana.ini".server.domain | string | `"grafana.<your-domain.com>"` | |
| grafana."grafana.ini".server.root_url | string | `"%(protocol)s://%(domain)s/"` | |
| grafana."grafana.ini".server.serve_from_sub_path | bool | `true` | |
| grafana.enabled | bool | `false` | |
| grafana.ingress.enabled | bool | `true` | |
| grafana.ingress.hosts[0] | string | `"grafana.<your-domain.com>"` | |
| grafana.ingress.path | string | `"/"` | |
| grafana.ingress.tls[0].hosts[0] | string | `"grafana.<your-domain.com>"` | |
| grafana.ingress.tls[0].secretName | string | `"prod-ingress"` | |
| grafana.persistence.enabled | bool | `true` | |
| grafana.persistence.size | string | `"2Gi"` | |
| grafana.persistence.storageClassName | string | `"microk8s-hostpath"` | |
| grafana.persistence.type | string | `"pvc"` | |
| imagePullSecrets[0].name | string | `"regcred"` | |
| ingress.annotations | object | `{}` | |
| ingress.enabled | bool | `true` | |
| ingress.hosts[0].host | string | `"studio.<your-domain.com>"` | |
| ingress.image.pullPolicy | string | `"Always"` | |
| ingress.image.repository | string | `"scaleoutsystems/ingress:develop"` | |
| ingress.tls[0].hosts[0] | string | `"studio.<your-domain.com>"` | |
| ingress.tls[0].secretName | string | `"prod-ingress"` | |
| namespace | string | `"default"` | |
| postgresql-ha.enabled | bool | `false` | |
| postgresql.enabled | bool | `true` | |
| postgresql.existingSecret | string | `""` | |
| postgresql.fullnameOverride | string | `"stackn-studio-postgres"` | |
| postgresql.persistence.accessModes[0] | string | `"ReadWriteMany"` | |
| postgresql.persistence.enabled | bool | `true` | |
| postgresql.persistence.size | string | `"20Gi"` | |
| postgresql.persistence.storageClass | string | `"microk8s-hostpath"` | |
| postgresql.postgresqlDatabase | string | `"stackn"` | |
| postgresql.postgresqlPassword | string | `""` | |
| postgresql.postgresqlUsername | string | `"stackn"` | |
| prometheus.enabled | bool | `false` | |
| prometheus.server.ingress.enabled | bool | `true` | |
| prometheus.server.ingress.hosts[0] | string | `"prometheus.<your-domain.com>"` | |
| prometheus.server.ingress.tls[0].hosts[0] | string | `"prometheus.<your-domain.com>"` | |
| prometheus.server.ingress.tls[0].secretName | string | `"prod-ingress"` | |
| prometheus.server.persistentVolume.size | string | `"2Gi"` | |
| prometheus.server.persistentVolume.storageClass | string | `"microk8s-hostpath"` | |
| rabbit.password | string | `""` | |
| rabbit.username | string | `"admin"` | |
| reloader.enabled | bool | `true` | |
| reloader.namespace | string | `"default"` | |
| reloader.reloader.watchGlobally | bool | `false` | |
| service.type | string | `"ClusterIP"` | |
| storageClassName | string | `"microk8s-hostpath"` | |
| studio.debug | bool | `true` | |
| studio.init | bool | `true` | |
| studio.kubeconfig_file | string | `/app/chartcontroller/kubeconfig/config` | |
| studio.kubeconfig_dir | string | `/app/chartcontroller/kubeconfig/` | |
| studio.image.pullPolicy | string | `"Always"` | |
| studio.image.repository | string | `"ghcr.io/scaleoutsystems/stackn/studio:develop"` | |
| studio.media.storage.accessModes | string | `"ReadWriteMany"` | |
| studio.media.storage.size | string | `"5Gi"` | |
| studio.media.storage.storageClassName | string | `"microk8s-hostpath"` | |
| studio.replicas | int | `1` | |
| studio.resources.limits.cpu | string | `"1000m"` | |
| studio.resources.limits.memory | string | `"4Gi"` | |
| studio.resources.requests.cpu | string | `"400m"` | |
| studio.resources.requests.memory | string | `"2Gi"` | |
| studio.servicename | string | `"studio"` | |
| studio.static.image | string | `"ghcr.io/scaleoutsystems/stackn/ingress:develop"` | |
| studio.static.replicas | int | `1` | |
| studio.static.resources.limits.cpu | int | `1` | |
| studio.static.resources.limits.memory | string | `"512Mi"` | |
| studio.static.resources.requests.cpu | string | `"100m"` | |
| studio.static.resources.requests.memory | string | `"256Mi"` | |
| studio.storage.StorageClassName | string | `"microk8s-hostpath"` | |
| studio.storage.size | string | `"2Gi"` | |
| studio.superUser | string | `"admin"` | |
| studio.superuserEmail | string | `"[email protected]"` | |
| studio.superuserPassword | string | `""` | |
This secret should be in the same namespace as studio deployment.

## Enabling network policies
If networkPolicy.enable = true, you have to make sure the correct kubernetes endpoint IP is provided in networkPolicy.kubernetes.cidr, and the correct port networkPolicy.kubernetes.port. This is to enable access of some services to the kubernetes API server through a created Service Account. To get your cluster's kubernetes endpoint run:
```
kubectl get endpoints kubernetes
```

Further, for ingress resources you need to set networkPolicy.ingress_controller_namespace. If value can vary depending on your cluster configuration, but for NGINX ingress controller it's usually "ingress-nginx".

## Example deployment
```
global:
studio:
superuserPassword: adminstudio # Django superuser password, username is admin
postgresql:
auth:
username: studio
password: studiopostgrespass
postgresPassword: postgres
database: studio
storageClass: local-path

namespace: default
networkPolicy:
enable: true
kubernetes:
cidr: 127.0.0.1/32 # To get kubernetes api server endpoints run: $ kubectl get endpoints kubernetes
port: 6443
internal_cidr: # in-cluster IpBlock cidr, used in allow-internet-[egress|ingress] policy, e.g:
- 10.0.0.0/8
- 192.168.0.0/16
- 172.0.0.0/20

studio:
debug: false
inactive_users: false #Users that sign-up can be inactive by default if desired
csrf_trusted_origins: "https://studio.127.0.0.1.nip.io:8082" #extra trusted origin for django server, for example if you port-forward to port 8082
image: # using a local image registry with hostname k3d-registry
repository: k3d-registry:35187/stackn:develop #This image can be built from Dockerfile (https://github.com/scaleoutsystems/stackn)
pullPolicy: Always # used to ensure that each time we redeploy always pull the latest image
static:
image: k3d-registry:35187/stackn-nginx:develop #This image can be built from Dockerfile.nginx (https://github.com/scaleoutsystems/stackn)
media:
storage:
accessModes: ReadWriteOnce

accessmode: ReadWriteOnce

# Postgres deploy with a single-pod database:
postgresql:
primary:
persistence:
size: "2Gi"
accessModes:
- ReadWriteOnce
storageClass: local-path

rabbit:
password: rabbitmqpass

redis:
master:
persistence:
enabled: false
replica:
persistence:
enabled: false

celeryFlower:
enabled: false

reloader:
enabled: true
```


## Maintainers

| Name | Email | Url |
| ---- | ------ | --- |
| Morgan Ekmefjord | [email protected] | |
| Fredrik Wrede | [email protected] | |
Binary file added scaleout/stackn/charts/common-2.14.1.tgz
Binary file not shown.
Binary file removed scaleout/stackn/charts/grafana-6.8.4.tgz
Binary file not shown.
Binary file added scaleout/stackn/charts/mongodb-14.4.6.tgz
Binary file not shown.
Binary file removed scaleout/stackn/charts/postgresql-11.6.14.tgz
Binary file not shown.
Binary file added scaleout/stackn/charts/postgresql-12.2.7.tgz
Binary file not shown.
Binary file removed scaleout/stackn/charts/postgresql-ha-9.2.0.tgz
Binary file not shown.
Binary file removed scaleout/stackn/charts/prometheus-13.8.0.tgz
Binary file not shown.
Binary file removed scaleout/stackn/charts/reloader-v0.0.86.tgz
Binary file not shown.
Binary file added scaleout/stackn/charts/reloader-v1.0.15.tgz
Binary file not shown.
44 changes: 13 additions & 31 deletions scaleout/stackn/requirements.yaml
Original file line number Diff line number Diff line change
@@ -1,41 +1,23 @@
# version x.x.x corresponds to "latest"
dependencies:
# - name: openfaas
# version: 5.6.5
# repository: "https://openfaas.github.io/faas-netes/"
# condition: openfaas.enabled

# - name: argo-events
# version: 0.14.0
# repository: "https://argoproj.github.io/argo-helm"
# condition: argo-events.enabled

# - name: argo
# version: 0.7.3
# repository: "https://argoproj.github.io/argo-helm"
# condition: argo.enabled

- name: prometheus
version: 13.8.0
repository: https://prometheus-community.github.io/helm-charts
condition: prometheus.enabled

- name: grafana
version: 6.8.4
repository: https://grafana.github.io/helm-charts
condition: grafana.enabled

- name: reloader
version: v0.0.86
version: v1.0.15
repository: https://stakater.github.io/stakater-charts
condition: reloader.enabled

- name: postgresql-ha
version: 9.2.0
repository: https://charts.bitnami.com/bitnami
condition: postgresql-ha.enabled

- name: postgresql
version: 11.6.14
version: 12.2.7
repository: https://charts.bitnami.com/bitnami
condition: postgresql.enabled

- name: common
repository: https://charts.bitnami.com/bitnami
tags:
- bitnami-common
version: 2.14.1

- name: mongodb
repository: https://charts.bitnami.com/bitnami
version: 14.4.6
condition: mongodb.enabled
Loading
Loading