Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples added #69

Merged
merged 3 commits into from
Sep 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change log

## [0.9.08] - 2024-09-21

### Added

- Example overrides in example folder.

## [0.9.07] - 2024-09-21

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion charts/directus/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ type: application
# 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.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.9.07
version: 0.9.08

# This is the version number of the application being deployed. They should reflect the version
# the application is using.
Expand Down
15 changes: 15 additions & 0 deletions charts/directus/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,16 @@ persistence:
storageClass: "longhorn" #or any other class supporting ReadWriteMany
accessModes: ReadWriteMany
...
persistenceExtensions:
...
storageClass: "longhorn" #or any other class supporting ReadWriteMany
accessModes: ReadWriteMany
...
persistenceTemplates:
...
storageClass: "longhorn" #or any other class supporting ReadWriteMany
accessModes: ReadWriteMany
...
```

### Add helm repo
Expand Down Expand Up @@ -72,6 +82,11 @@ openssl rand -hex 16
helm install my-release-name -f my-overrides.yaml directus/directus
```

### Example files

In the root of the git repo, in folder examples, there are two examples deployment
overrides, one for a simple setup, and the other for a high availability setup.

### Simple installation test

```bash
Expand Down
56 changes: 56 additions & 0 deletions examples/ha.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
replicaCount: 3

autoscaling:
enabled: true
minReplicas: 3
maxReplicas: 5
targetCPUUtilizationPercentage: 80

resources:
limits:
cpu: 500m
memory: 512Mi
requests:
cpu: 100m
memory: 128Mi

admin:
email: me@email.com
password: secret-pass

public:
url: https://directus.test

key: 16480db0ea71cc6a10a2b1f44c89a3da
# An unique identifier, could be created like:
# openssl rand -hex 16
secret: d685770f666b4f86c7094a7df671ede9

persistence:
enabled: true
storageClass: "longhorn"
accessModes: ReadWriteMany

persistenceExtensions:
enabled: true
storageClass: "longhorn"
accessModes: ReadWriteMany

persistenceTemplates:
enabled: true
storageClass: "longhorn"
accessModes: ReadWriteMany

ingress:
enabled: true
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
hosts:
- host: directus.test
paths:
- path: /
pathType: Prefix
tls:
- secretName: directus-test-tls
hosts:
- directus.test
42 changes: 42 additions & 0 deletions examples/simple.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
resources:
limits:
cpu: 500m
memory: 512Mi
requests:
cpu: 100m
memory: 128Mi

admin:
email: me@email.com
password: secret-pass

public:
url: https://directus.test

key: 16480db0ea71cc6a10a2b1f44c89a3da
# An unique identifier, could be created like:
# openssl rand -hex 16
secret: d685770f666b4f86c7094a7df671ede9

persistence:
enabled: true

persistenceExtensions:
enabled: true

persistenceTemplates:
enabled: true

ingress:
enabled: true
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
hosts:
- host: directus.test
paths:
- path: /
pathType: Prefix
tls:
- secretName: directus-test-tls
hosts:
- directus.test
Loading